sqllogictest
Artifact Content
Not logged in

Artifact 53503315441b8547c5c1576ade577ba04ed33d06:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - 89 + col1 FROM tab2 AS cor0
----
654
7001
7048

query I rowsort
SELECT ALL + + 80 AS col1 FROM tab2 cor0
----
80
80
80

query I rowsort
SELECT 60 * col0 AS col0 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 + 8 AS col2 FROM tab2 cor0
----
-16
27
70

query I rowsort
SELECT ALL col2 * 70 AS col2 FROM tab1
----
3780
3990
6720

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

query I rowsort
SELECT DISTINCT + ( - col0 + - col2 ) * ( col2 + - tab2.col2 ) * + 13 FROM tab2
----
0

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

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

query I rowsort
SELECT - + col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col1 + col2 * + ( + 14 ) AS col1 FROM tab1 AS cor0
----
1357
782
808

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

query I rowsort
SELECT ALL - cor0.col0 + - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b82361c46cc0c2ce3377dc8e27527663

query I rowsort
SELECT ALL - 20 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT - cor0.col0 + + col0 * - 72 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT + col2 + 40 FROM tab0 AS cor0
----
122
41
73

query I rowsort
SELECT col1 + + 68 FROM tab1 AS cor0
----
78
81
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-16
SELECT ALL - + col2 DIV + ( col0 ) FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL - + col2 / + ( col0 ) FROM tab2 AS cor0
----
-3
0
0

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

query I rowsort
SELECT + - ( + col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT 68 + - 71 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

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

query I rowsort
SELECT + + 12 * col1 * col1 + 20 AS col1 FROM tab2 AS cor0
----
11552
3488
41792

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

query I rowsort
SELECT 8 * col2 + col1 FROM tab0 cor0
----
105
350
747

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

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

query I rowsort
SELECT DISTINCT + col0 - ( ( col2 ) + + 25 * col0 ) AS col1 FROM tab1 AS cor0
----
-126
-1593
-2016

query I rowsort
SELECT - + col1 * 62 + col2 FROM tab0 AS cor0
----
-5299
-5560
-6013

query I rowsort
SELECT DISTINCT col2 * 53 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT ALL + col0 * 2 * + 97 FROM tab0 AS cor0
----
17266
4656
6790

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

query I rowsort
SELECT col1 * - 10 * + col0 FROM tab0 AS cor0
----
-20640
-33950
-80990

query I rowsort
SELECT + 76 * - col2 * col0 FROM tab0
----
-2660
-554648
-60192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col0 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT - 30 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT DISTINCT + 89 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT + 89 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * + 49 col0 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT ALL + + 15 FROM tab2 cor0
----
15
15
15

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

query I rowsort
SELECT DISTINCT ( - col1 ) * + col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL 39 * col2 * col1 AS col2 FROM tab0
----
110682
291018
3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + 40 col0 FROM tab2 AS cor0
----
-1494
-606
-797

query I rowsort
SELECT ( + col1 ) * col1 + - col0 AS col2 FROM tab2 AS cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-44
SELECT - 44 DIV 22 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-44
SELECT - 44 / 22 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col1 * - 27 AS col1 FROM tab0
----
-2322
-2457
-2619

onlyif mysql # use DIV operator for integer division
query I rowsort label-46
SELECT - col2 * 86 DIV + col2 AS col1 FROM tab1
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-46
SELECT - col2 * 86 / + col2 AS col1 FROM tab1
----
-86
-86
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT DISTINCT + col2 * + col2 + col0 DIV col2 FROM tab1 AS cor0
----
2916
3250
9216

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + col2 * + col2 + col0 / col2 FROM tab1 AS cor0
----
2916
3250
9216

query I rowsort
SELECT - - col0 * cor0.col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT 5 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT ALL + col1 + - col1 * 69 FROM tab2 AS cor0
----
-1156
-2108
-4012

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96

query I rowsort
SELECT ALL - col2 * col1 + 64 FROM tab1 AS cor0
----
-1184
-1340
-506

query I rowsort
SELECT ALL + col0 * col0 + col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT - ( - cor1.col1 ) AS col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + col0 + tab2.col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT col0 * - 61 * col0 AS col2 FROM tab2 AS cor0
----
-2989
-371124
-380701

query I rowsort
SELECT + col2 * + cor0.col2 + col1 * + col1 FROM tab0 cor0
----
15005
8485
9410

query I rowsort
SELECT cor0.col2 * 44 + - col0 FROM tab2 AS cor0
----
1066
1181
1593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 * + col0 - 63 col2 FROM tab0
----
3332
664055
68049

query I rowsort
SELECT + + col2 * - 49 + + col2 * col2 - - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-405
1430
2584

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

query I rowsort
SELECT ALL + 68 + tab2.col0 FROM tab2
----
146
147
75

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

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

query I rowsort
SELECT ALL - 74 FROM tab1, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL 7 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-168
-245
-623

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) * + ( 76 * - col1 ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1027616
-154182
-486457

query I rowsort
SELECT DISTINCT + col1 + 7 * - col0 AS col2 FROM tab0 cor0
----
-148
-532
-82

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

query I rowsort
SELECT DISTINCT + ( col1 ) * cor0.col0 + + 25 + col0 AS col2 FROM tab1 AS cor0
----
106
1145
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * col1 col2 FROM tab1 cor0
----
30
39
78

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

query I rowsort
SELECT cor0.col1 + 10 FROM tab0, tab0 AS cor0
----
9 values hashing to 24c26605033a0df541155182699cad42

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

skipif mysql # not compatible
query I rowsort label-76
SELECT col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - ( ( - col2 ) ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT 8 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

query I rowsort
SELECT DISTINCT - + ( 45 ) AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT - cor0.col1 * - 70 + + col0 AS col0 FROM tab0 AS cor0
----
6044
6459
6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - + 7 * + col0 FROM tab2 AS cor0
----
-49
-546
-553

query I rowsort
SELECT ALL - col0 + - 84 * col1 FROM tab1 AS cor0
----
-1172
-2187
-904

query I rowsort
SELECT ALL 47 * - col1 FROM tab2 AS cor0
----
-1457
-2773
-799

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

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

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

query I rowsort
SELECT ALL + 1 + - col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ALL 66 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + col2 + ( + col2 ) * col2 AS col2 FROM tab1
----
2970
3306
9312

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

query I rowsort
SELECT ( cor0.col2 ) FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT col2 DIV - ( + 66 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-95
SELECT col2 / - ( + 66 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-96
SELECT ALL - col0 + ( col0 ) * + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - col0 + ( col0 ) * + col1 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-98
SELECT - CAST ( NULL AS INTEGER ) - + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 14 * - 71 * col0 + col2 - col1 AS col2 FROM tab1 AS cor0
----
3010
63663
79603

query I rowsort
SELECT DISTINCT - tab2.col1 + 92 + + col1 FROM tab2
----
92

query I rowsort
SELECT ALL col1 + 64 AS col1 FROM tab1
----
74
77
90

query I rowsort
SELECT - col0 * col0 + 36 * col1 + + col1 FROM tab1
----
-3726
-5919
953

query I rowsort
SELECT col1 + + 67 AS col2 FROM tab0
----
153
158
164

query I rowsort
SELECT - col0 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - cor0.col2 * - ( + col2 ) - col2 * ( - cor0.col1 ) FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT - - col1 + + col0 + - col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + col0 * col2 * + 41 FROM tab0 AS cor0
----
1435
299218
32472

onlyif mysql # use DIV operator for integer division
query I rowsort label-109
SELECT 59 DIV col1 FROM tab1 cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-109
SELECT 59 / col1 FROM tab1 cor0
----
2
4
5

query I rowsort
SELECT DISTINCT 28 * col0 + 60 + - col2 AS col1 FROM tab0 AS cor0
----
1039
2470
699

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

query I rowsort
SELECT DISTINCT + col2 * col2 + - ( ( + col0 ) ) * + ( col2 ) AS col0 FROM tab2 cor0
----
-1352
-1558
540

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

query I rowsort
SELECT ALL - col1 * - col1 + + cor0.col1 * cor0.col0 AS col1 FROM tab2 cor0
----
1178
1632
8083

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + cor0.col1 + col2 col2 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT + col2 * 68 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT - col2 + + 49 FROM tab1 cor0
----
-47
-5
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col1 FROM tab1
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT DISTINCT - col0 DIV 86 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT - col0 / 86 FROM tab0
----
-1
0

query I rowsort
SELECT - - col1 * 78 FROM tab1 cor0
----
1014
2028
780

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 col0 FROM tab2 AS cor0
----
189
2028
3002

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

query I rowsort
SELECT DISTINCT - 64 + + col0 AS col1 FROM tab0
----
-29
-40
25

query I rowsort
SELECT + 91 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 + col2 * - col2 * tab2.col2 + - 5 col2 FROM tab2
----
-17608
-19715
-54904

query I rowsort
SELECT DISTINCT - 72 + col1 + col0 FROM tab1 AS cor0
----
-43
2
21

query I rowsort
SELECT ALL - tab0.col0 + cor0.col1 - 80 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to edf388a00dc8cd3f618f4de5d4f84f78

query I rowsort
SELECT - 72 + - col1 FROM tab1 AS cor0
----
-82
-85
-98

query I rowsort
SELECT + col2 * - col1 + ( - col0 ) * + col1 AS col0 FROM tab0 cor0
----
-15561
-3492
-4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT col1 + cor0.col0 DIV 41 AS col0 FROM tab1 AS cor0
----
11
14
26

skipif mysql # not compatible
query I rowsort label-132
SELECT col1 + cor0.col0 / 41 AS col0 FROM tab1 AS cor0
----
11
14
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT DISTINCT - 24 * col0 + cor0.col2 DIV col0 FROM tab1 AS cor0
----
-1536
-1919
-54

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT - 24 * col0 + cor0.col2 / col0 FROM tab1 AS cor0
----
-1536
-1919
-54

query I rowsort
SELECT ALL - ( col2 ) + - 59 AS col2 FROM tab2 AS cor0
----
-85
-86
-97

query I rowsort
SELECT - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT - col0 + + col2 * CAST( - col0 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
-112
-13
-255

skipif mysql # not compatible
query I rowsort label-136
SELECT - col0 + + col2 * CAST ( - col0 AS INTEGER ) / col1 FROM tab2 AS cor0
----
-112
-13
-255

query I rowsort
SELECT DISTINCT col1 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT 90 + cor0.col2 AS col0 FROM tab0 AS cor0
----
123
172
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-139
SELECT - col0 + + col0 - CAST( - 91 + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
12
13
84

skipif mysql # not compatible
query I rowsort label-139
SELECT - col0 + + col0 - CAST ( - 91 + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
12
13
84

query I rowsort
SELECT ALL + 55 * + col2 FROM tab2 AS cor0
----
1430
1485
2090

onlyif mysql # use DIV operator for integer division
query I rowsort label-141
SELECT col1 * col0 + 67 * - col1 - + cor0.col1 DIV 71 AS col0 FROM tab0 AS cor0
----
-3105
-3699
2001

skipif mysql # not compatible
query I rowsort label-141
SELECT col1 * col0 + 67 * - col1 - + cor0.col1 / 71 AS col0 FROM tab0 AS cor0
----
-3105
-3699
2001

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

query I rowsort
SELECT DISTINCT - col1 + col1 * - col1 * - col2 AS col1 FROM tab1 AS cor0
----
16211
36478
5690

query I rowsort
SELECT + col0 + col0 * 51 * 58 + - col0 FROM tab2 AS cor0
----
20706
230724
233682

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

skipif mysql # not compatible
query I rowsort label-145
SELECT + 1 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ( - col2 ) + col1 - 71 FROM tab2
----
-38
-67
-92

query I rowsort
SELECT + ( cor0.col2 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + 94 * col1 FROM tab2
----
1598
2914
5546

onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT DISTINCT + ( + tab1.col2 ) * col1 DIV col1 + + col1 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT + ( + tab1.col2 ) * col1 / col1 + + col1 FROM tab1
----
109
67
80

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

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT - 38 / + col1 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - - col2 - - col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT + 99 * - col2 + ( + col2 ) FROM tab0 AS cor0
----
-3234
-8036
-98

query I rowsort
SELECT DISTINCT + ( col0 ) + + 76 FROM tab0 cor0
----
100
111
165

query I rowsort
SELECT ALL 5 * - col2 FROM tab0 AS cor0
----
-165
-410
-5

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

query I rowsort
SELECT - 48 + col1 AS col1 FROM tab0
----
38
43
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL 9 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

query I rowsort
SELECT col2 + - cor0.col2 * ( - col1 ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col0 + 90 FROM tab2
----
168
169
97

query I rowsort
SELECT 0 * - cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 77 * col2 - + col2 FROM tab2
----
1976
2052
2888

query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab1
----
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-164
SELECT col1 * + 61 + - col0 - + 61 DIV - col1 AS col0 FROM tab2
----
1885
3522
961

skipif mysql # not compatible
query I rowsort label-164
SELECT col1 * + 61 + - col0 - + 61 / - col1 AS col0 FROM tab2
----
1885
3522
961

query I rowsort
SELECT - 86 AS col1 FROM tab2
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 + - col0 col2 FROM tab0 AS cor0
----
-150
-85
-96

query I rowsort
SELECT ALL - col0 + - col2 * col2 AS col1 FROM tab1 cor0
----
-2919
-3313
-9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - 1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

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

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

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

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + CAST ( NULL AS REAL ) + + cor0.col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-174
SELECT + CAST ( col1 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
109
67
80

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

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

query I rowsort
SELECT DISTINCT - 93 + col2 FROM tab0 AS cor0
----
-11
-60
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-178
SELECT - 24 + + col2 DIV col0 FROM tab2 AS cor0
----
-21
-24
-24

skipif mysql # not compatible
query I rowsort label-178
SELECT - 24 + + col2 / col0 FROM tab2 AS cor0
----
-21
-24
-24

query I rowsort
SELECT ALL 99 * col0 FROM tab1 AS cor0
----
297
6336
7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-180
SELECT CAST( col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-180
SELECT CAST ( col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT ALL - 61 + ( col2 ) DIV - ( + 26 ) FROM tab0 AS cor0
----
-61
-62
-64

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL - 61 + ( col2 ) / - ( + 26 ) FROM tab0 AS cor0
----
-61
-62
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-182
SELECT - - CAST( - col1 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-182
SELECT - - CAST ( - col1 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 + - col2 * + col1 FROM tab1 cor0
----
-1168
-1401
-506

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

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

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-186
SELECT col2 * - 63 + col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-1637
-1701
-2390

skipif mysql # not compatible
query I rowsort label-186
SELECT col2 * - 63 + col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-1637
-1701
-2390

onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT DISTINCT - - col2 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT - - col2 / col0 AS col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - col2 * - col2 + - 59 * col0 FROM tab0 cor0
----
-2064
-327
1473

query I rowsort
SELECT col1 * 99 * col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
28628
344678
95170

query I rowsort
SELECT + col1 + ( + col1 * + col1 ) AS col2 FROM tab1
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL col1 * 10 AS col0 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 AS col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + - col2 + 89 AS col1 FROM tab0 cor0
----
56
7
88

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 DISTINCT - col2 * ( cor0.col0 ) * - col0 + 76 * - col0 AS col0 FROM tab2 AS cor0
----
152256
231154
791

onlyif mysql # use DIV operator for integer division
query I rowsort label-197
SELECT ALL + col1 DIV + 88 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + col1 / + 88 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - cor0.col0 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

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

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

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

query I rowsort
SELECT ALL + col2 * cor0.col0 + + col1 * 0 * - col0 - - col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + 96 * + col0 FROM tab1 cor0
----
288
6144
7680

query I rowsort
SELECT 45 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
1422
2681
803

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

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 * col2 col1 FROM tab0 AS cor0
----
-3267
-8118
-99

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-208
SELECT CAST( col1 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-208
SELECT CAST ( col1 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 21 col2 FROM tab2
----
47
48
59

query I rowsort
SELECT ALL + 58 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-212
SELECT CAST( NULL AS SIGNED ) / cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-212
SELECT CAST ( NULL AS INTEGER ) / cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab2, tab0 AS cor0
----
54

query I rowsort
SELECT ALL + col0 * col0 * + col2 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT tab2.col0 DIV + 24 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e28dcfeb40d8becacbc8bd219f1748bd

skipif mysql # not compatible
query I rowsort label-215
SELECT tab2.col0 / + 24 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e28dcfeb40d8becacbc8bd219f1748bd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-216
SELECT - ( 10 ) * + cor0.col0 / CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-216
SELECT - ( 10 ) * + cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT col2 * - col2 + tab0.col0 * - col1 + + tab0.col1 DIV col0 FROM tab0
----
-14822
-3150
-3394

skipif mysql # not compatible
query I rowsort label-217
SELECT col2 * - col2 + tab0.col0 * - col1 + + tab0.col1 / col0 FROM tab0
----
-14822
-3150
-3394

query I rowsort
SELECT + cor1.col1 * + cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * col0 + + col1 col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT + 15 + - ( col1 + - col0 ) * + 58 AS col1 FROM tab1 AS cor0
----
-1319
3147
3901

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

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 73 FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-222
SELECT ALL col0 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL col0 + col1 / col0 AS col0 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL - 35 + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
2803
62
7427

query I rowsort
SELECT + col2 * + ( - col2 ) AS col0 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 1 col2 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT DISTINCT - col0 + + col0 DIV - 31 AS col2 FROM tab1 AS cor0
----
-3
-66
-82

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT - col0 + + col0 / - 31 AS col2 FROM tab1 AS cor0
----
-3
-66
-82

query I rowsort
SELECT ALL - + col2 - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT col2 * col0 * 4 AS col1 FROM tab2 AS cor0
----
12008
756
8112

onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT ALL + col2 * col0 + - CAST( 87 AS SIGNED ) * col2 DIV + cor0.col1 FROM tab2 AS cor0
----
114
1990
2808

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + col2 * col0 + - CAST ( 87 AS INTEGER ) * col2 / + cor0.col1 FROM tab2 AS cor0
----
114
1990
2808

query I rowsort
SELECT 55 + + col1 * - col0 FROM tab0 AS cor0
----
-2009
-3340
-8044

query I rowsort
SELECT - - 3 + col0 AS col0 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT - ( + col1 ) * 50 AS col2 FROM tab1 AS cor0
----
-1300
-500
-650

query I rowsort
SELECT cor0.col2 * col1 + - ( col1 * cor0.col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 18 * - col2 + col0 AS col2 FROM tab1
----
1090
1808
975

query I rowsort
SELECT + 64 * - col0 + 10 FROM tab1 AS cor0
----
-182
-4086
-5110

query I rowsort
SELECT - 30 + col0 + 67 * 72 AS col1 FROM tab0 AS cor0
----
4818
4829
4883

query I rowsort
SELECT col1 * cor0.col1 * + 46 FROM tab1 AS cor0
----
31096
4600
7774

query I rowsort
SELECT - + col1 * + ( cor0.col2 ) + col0 * + 25 AS col1 FROM tab1 AS cor0
----
-1329
1030
752

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

query I rowsort
SELECT col2 + + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + - cor0.col0 * - 54 FROM tab1 AS cor0
----
162
3456
4320

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

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT + tab0.col1 / tab0.col2 AS col0 FROM tab0
----
1
2
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-243
SELECT CAST( NULL AS SIGNED ) + 81 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-243
SELECT CAST ( NULL AS INTEGER ) + 81 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - col2 + col0 * - 45 AS col2 FROM tab0 AS cor0
----
-1113
-1576
-4087

query I rowsort
SELECT DISTINCT + + col0 * ( col1 + - col2 ) AS col2 FROM tab2 AS cor0
----
-1659
2574
28

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + 66 * + col2 + + 72 * + col0 col0 FROM tab2 AS cor0
----
2279
7254
8117

query I rowsort
SELECT - 91 * ( + col1 ) * - 17 AS col0 FROM tab0 AS cor0
----
133042
140777
150059

query I rowsort
SELECT - 4 * - col1 + + col2 - + col0 AS col2 FROM tab2 AS cor0
----
144
184
27

query I rowsort
SELECT col2 + col1 - col1 AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT cor0.col1 * + col0 * + col1 + + col0 * col2 FROM tab0 AS cor0
----
178296
329350
744307

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

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

query I rowsort
SELECT - - 50 * 66 + col0 AS col2 FROM tab2 AS cor0
----
3307
3378
3379

query I rowsort
SELECT tab0.col2 + - col2 * + 33 FROM tab0
----
-1056
-2624
-32

query I rowsort
SELECT - col2 - 8 FROM tab1 AS cor0
----
-104
-62
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-257
SELECT col0 * 40 DIV col2 FROM tab0
----
1400
29
43

skipif mysql # not compatible
query I rowsort label-257
SELECT col0 * 40 / col2 FROM tab0
----
1400
29
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT - cor0.col0 DIV + col2 + 29 FROM tab0 AS cor0
----
-6
28
29

skipif mysql # not compatible
query I rowsort label-258
SELECT - cor0.col0 / + col2 + 29 FROM tab0 AS cor0
----
-6
28
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-259
SELECT cor0.col2 + + cor0.col1 * cor0.col0 DIV + cor0.col2 FROM tab1 AS cor0
----
106
55
68

skipif mysql # not compatible
query I rowsort label-259
SELECT cor0.col2 + + cor0.col1 * cor0.col0 / + cor0.col2 FROM tab1 AS cor0
----
106
55
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col1 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT + + 60 + + col0 * + 22 AS col0 FROM tab1 AS cor0
----
126
1468
1820

onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT - + col0 * col0 + + 82 DIV col1 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-263
SELECT - + col0 * col0 + + 82 / col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col0 * 92 AS col1 FROM tab2 AS cor0
----
644
7176
7268

onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT DISTINCT cor0.col2 DIV - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT cor0.col2 / - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - 30 col2 FROM tab0 AS cor0
----
56
61
67

query I rowsort
SELECT DISTINCT - col2 * col2 + 91 AS col2 FROM tab2 AS cor0
----
-1353
-585
-638

query I rowsort
SELECT ALL + cor0.col1 * 38 FROM tab0 AS cor0
----
3268
3458
3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT ALL col2 * ( + ( - col2 ) ) + - col1 DIV col0 col1 FROM tab0 AS cor0
----
-1092
-3
-6725

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-269
SELECT ALL col2 * ( + ( - col2 ) ) + - col1 / col0 col1 FROM tab0 AS cor0
----
-1092
-3
-6725

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

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

query I rowsort
SELECT cor0.col1 * 57 AS col0 FROM tab2 AS cor0
----
1767
3363
969

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

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

query I rowsort
SELECT ALL col0 * + 78 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT + + 91 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT ALL col2 + + ( + 44 ) * col2 AS col2 FROM tab2 cor0
----
1170
1215
1710

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

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT col2 / - col0 + col0 AS col1 FROM tab0 cor0
----
23
35
89

query I rowsort
SELECT DISTINCT col0 * + col0 * + 22 + col2 FROM tab2 AS cor0
----
1105
133874
137340

query I rowsort
SELECT ALL - col0 + - ( col1 ) * - cor0.col1 FROM tab2 AS cor0
----
210
3403
954

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

query I rowsort
SELECT - - 18 + ( col0 ) + + col2 FROM tab0 cor0
----
189
54
75

query I rowsort
SELECT DISTINCT - col2 + - ( - cor0.col2 ) * + 85 * 65 FROM tab1 cor0
----
298296
314868
530304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( 73 ) * col2 col1 FROM tab2 AS cor0
----
1898
1971
2774

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-284
SELECT DISTINCT - cor0.col1 DIV col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT - cor0.col1 / col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - - col0 * + cor0.col0 + col0 * col1 + col1 FROM tab0 AS cor0
----
16111
2726
4717

query I rowsort
SELECT + cor1.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 AS cor2, tab1
----
13122 values hashing to 1bdc73d080d2c975e0f41edc38139d15

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
-3068
-697
620

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

query I rowsort
SELECT - - 75 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + 54 + col2 FROM tab2 AS cor0
----
80
81
92

query I rowsort
SELECT + 82 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-293
SELECT ALL 50 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL 50 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( 85 ) AS col2 FROM tab2
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-295
SELECT ALL 16 DIV col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL 16 / col0 AS col2 FROM tab0
----
0
0
0

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

query I rowsort
SELECT 27 - col2 FROM tab1
----
-27
-30
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab2
----
61
61
61

query I rowsort
SELECT + 65 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + - col0 + + 13 AS col0 FROM tab0 AS cor0
----
-11
-22
-76

query I rowsort
SELECT DISTINCT 51 * col2 + - col2 - cor0.col1 FROM tab1 AS cor0
----
2674
2840
4787

query I rowsort
SELECT tab1.col1 + col0 * + ( + col0 ) FROM tab1
----
35
4106
6413

query I rowsort
SELECT - 11 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col1 - col1 col1 FROM tab1 AS cor0
----
-1261
-1430
-580

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

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

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

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
56

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT DISTINCT col0 DIV cor0.col0 + 69 * cor0.col1 col0 FROM tab1 AS cor0
----
1795
691
898

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT col0 / cor0.col0 + 69 * cor0.col1 col0 FROM tab1 AS cor0
----
1795
691
898

query I rowsort
SELECT DISTINCT + col1 * 32 - + col2 AS col0 FROM tab2 AS cor0
----
1862
506
965

query I rowsort
SELECT - + col0 + 96 AS col1 FROM tab2 AS cor0
----
17
18
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-312
SELECT ALL col1 DIV col0 + tab0.col0 + ( 16 ) FROM tab0
----
106
43
53

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL col1 / col0 + tab0.col0 + ( 16 ) FROM tab0
----
106
43
53

query I rowsort
SELECT ALL col1 * ( + col0 ) + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT - + col0 * col1 + col0 + col0 AS col0 FROM tab0 AS cor0
----
-2016
-3325
-7921

query I rowsort
SELECT + + 11 * col1 + + col2 FROM tab1 AS cor0
----
167
239
340

query I rowsort
SELECT DISTINCT + - 50 + - col2 * + cor0.col1 FROM tab0 cor0
----
-147
-2888
-7512

query I rowsort
SELECT - col0 * + cor0.col1 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
237
41024
83280

query I rowsort
SELECT ALL - ( 33 ) FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

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

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

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

query I rowsort
SELECT ALL + col2 + col2 - col0 AS col1 FROM tab1 cor0
----
105
112
50

query I rowsort
SELECT DISTINCT + col2 + - col2 * + 75 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT + - col1 * + col1 + ( - 27 ) * col1 + - 24 FROM tab0 AS cor0
----
-10762
-12052
-9742

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

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

query I rowsort
SELECT ALL col1 * + cor0.col0 + 26 - ( col1 ) AS col0 FROM tab2 AS cor0
----
1352
212
4569

query I rowsort
SELECT + col1 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-329
SELECT DISTINCT CAST( + col0 * - tab0.col0 AS SIGNED ) + - ( col2 ) * + col1 AS col0 FROM tab0
----
-1322
-15383
-3414

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT CAST ( + col0 * - tab0.col0 AS INTEGER ) + - ( col2 ) * + col1 AS col0 FROM tab0
----
-1322
-15383
-3414

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

query I rowsort
SELECT ALL - 42 * + col2 FROM tab0 AS cor0
----
-1386
-3444
-42

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

query I rowsort
SELECT col2 + + col0 + + ( ( col0 ) ) AS col1 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT 85 + col2 + col0 FROM tab0
----
121
142
256

query I rowsort
SELECT 91 + cor0.col1 AS col2 FROM tab0 AS cor0
----
177
182
188

query I rowsort
SELECT + 17 + 7 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT - col1 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - col1 * - ( col1 ) + col1 * + col0 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT ALL - + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT - 61 * col1 FROM tab2
----
-1037
-1891
-3599

query I rowsort
SELECT col1 * + col1 * + col1 + col1 * + col0 * col2 FROM tab1
----
102037
21788
37480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab0
----
24
24
24

query I rowsort
SELECT - - cor0.col2 * col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col0 * + cor0.col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - col2 * 41 AS col0 FROM tab0 cor0
----
-1353
-3362
-41

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1, tab0 cor2
----
-37

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT 10 DIV + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-348
SELECT 10 / + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT DISTINCT - tab0.col0 + + tab0.col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 24 * - col2 + col2 FROM tab0
----
2050
25
825

query I rowsort
SELECT + 76 AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT + col2 + col1 * + tab1.col1 AS col0 FROM tab1
----
157
265
730

query I rowsort
SELECT col2 - + 44 * 9 FROM tab0 AS cor0
----
-314
-363
-395

query I rowsort
SELECT ALL - 63 + - col0 AS col1 FROM tab1
----
-127
-143
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-355
SELECT ALL col0 + - tab2.col2 * CAST( col1 AS SIGNED ) * - col2 FROM tab2
----
22606
24627
39962

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL col0 + - tab2.col2 * CAST ( col1 AS INTEGER ) * - col2 FROM tab2
----
22606
24627
39962

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col0 * + 29 + 76 AS col1 FROM tab2 AS cor0
----
2338
2367
279

query I rowsort
SELECT ALL - col0 * col1 + - col2 + col0 AS col1 FROM tab2 AS cor0
----
-1302
-237
-4550

query I rowsort
SELECT ALL - cor0.col1 - - 13 * col0 AS col0 FROM tab2 AS cor0
----
1010
60
955

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

query I rowsort
SELECT col2 * + 95 AS col1 FROM tab2 AS cor0
----
2470
2565
3610

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

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

query I rowsort
SELECT + + col1 * + col2 + + 40 FROM tab0 AS cor0
----
137
2878
7502

onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT ALL + - col1 + cor0.col2 DIV - 70 AS col2 FROM tab1 AS cor0
----
-10
-14
-26

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + - col1 + cor0.col2 / - 70 AS col2 FROM tab1 AS cor0
----
-10
-14
-26

query I rowsort
SELECT ALL + col0 * 41 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT col0 * ( 29 ) AS col2 FROM tab0
----
1015
2581
696

onlyif mysql # use DIV operator for integer division
query I rowsort label-368
SELECT + col0 DIV + 28 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-368
SELECT + col0 / + 28 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort
SELECT col2 * - CAST ( + col1 + col1 AS REAL ) AS col1 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT col1 * + 24 * + col1 AS col1 FROM tab0
----
177504
198744
225816

onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT DISTINCT + 71 DIV cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT + 71 / cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - + col0 * 57 AS col1 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT + col2 + col1 * - cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73

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

query I rowsort
SELECT + col1 * 28 FROM tab1
----
280
364
728

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT 58 + col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
58
58
62

skipif mysql # not compatible
query I rowsort label-377
SELECT 58 + col1 / + col0 AS col0 FROM tab2 AS cor0
----
58
58
62

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

query I rowsort
SELECT - ( col2 ) + cor0.col0 * ( 40 ) FROM tab1 AS cor0
----
2503
3104
66

query I rowsort
SELECT DISTINCT - ( 67 ) AS col2 FROM tab1 AS cor0
----
-67

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + - cor0.col0 * - 46 * + 21 col2 FROM tab0 AS cor0
----
20346
33713
78512

query I rowsort
SELECT - + 8 + + 6 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + 73 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT + + col0 * col2 * 22 AS col0 FROM tab0 AS cor0
----
160556
17424
770

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

query I rowsort
SELECT + - 67 * cor0.col1 FROM tab1 AS cor0
----
-1742
-670
-871

onlyif mysql # use DIV operator for integer division
query I rowsort label-389
SELECT cor0.col0 DIV + 60 - + col1 * - col2 FROM tab0 AS cor0
----
2838
7463
97

skipif mysql # not compatible
query I rowsort label-389
SELECT cor0.col0 / + 60 - + col1 * - col2 FROM tab0 AS cor0
----
2838
7463
97

query I rowsort
SELECT - col2 + + ( + col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT - cor0.col2 * - col0 + col1 * - cor0.col1 FROM tab1 AS cor0
----
-514
3548
7511

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

query I rowsort
SELECT 54 - - col2 * - col1 * - col0 FROM tab2
----
119706
51088
5913

query I rowsort
SELECT ALL + 99 AS col1 FROM tab0
----
99
99
99

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

query I rowsort
SELECT ALL 59 * + 67 * col1 AS col1 FROM tab1 AS cor0
----
102778
39530
51389

query I rowsort
SELECT - 45 + col1 * col0 FROM tab0 AS cor0
----
2019
3350
8054

query I rowsort
SELECT DISTINCT + 33 * + col1 FROM tab2 AS cor0
----
1023
1947
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-399
SELECT 85 * + col2 + - tab1.col2 DIV + col2 col0 FROM tab1
----
4589
4844
8159

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-399
SELECT 85 * + col2 + - tab1.col2 / + col2 col0 FROM tab1
----
4589
4844
8159

query I rowsort
SELECT + 52 + tab2.col0 AS col2 FROM tab2
----
130
131
59

query I rowsort
SELECT DISTINCT + - col0 * - col2 + col2 * 39 FROM tab2 AS cor0
----
1242
3042
4484

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

query I rowsort
SELECT DISTINCT - col1 + + col2 + col2 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT ALL + + col0 - + col2 AS col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT 79 AS col2 FROM tab1 AS cor0
----
79
79
79

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-407
SELECT DISTINCT col1 * + col1 * - CAST( col2 AS SIGNED ) + col2 + 16 FROM tab2 AS cor0
----
-10928
-25904
-90464

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT col1 * + col1 * - CAST ( col2 AS INTEGER ) + col2 + 16 FROM tab2 AS cor0
----
-10928
-25904
-90464

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

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab2 cor0
----
46

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + col2 col0 FROM tab0 AS cor0
----
1226
609
8003

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col1 col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-414
SELECT ALL - - col2 + col2 + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-26
-3
47

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - - col2 + col2 + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT DISTINCT - - col1 - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + col0 * ( col0 ) + col2 * - 97 AS col0 FROM tab2 AS cor0
----
-2570
2555
3562

query I rowsort
SELECT + 87 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col1 + col1 + 49 FROM tab1 AS cor0
----
101
69
75

query I rowsort
SELECT + col1 + + ( - col1 ) + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col0 + 29 + - col1 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
1093
17608
2306

onlyif mysql # use DIV operator for integer division
query I rowsort label-421
SELECT ALL + col0 * ( col0 ) + col1 DIV 40 FROM tab0 AS cor0
----
1227
578
7923

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL + col0 * ( col0 ) + col1 / 40 FROM tab0 AS cor0
----
1227
578
7923

onlyif mysql # use DIV operator for integer division
query I rowsort label-422
SELECT cor0.col1 DIV + col2 + 15 FROM tab1 cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-422
SELECT cor0.col1 / + col2 + 15 FROM tab1 cor0
----
15
15
15

query I rowsort
SELECT cor0.col0 * + 71 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT ALL + cor0.col0 + 10 AS col0 FROM tab1 AS cor0
----
13
74
90

query I rowsort
SELECT ALL + - col2 + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
43
622
73

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

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 + ( col1 ) * col1 - - 93 FROM tab1 cor0
----
250
358
823

query I rowsort
SELECT ALL + cor0.col0 * + 25 AS col2 FROM tab0 cor0
----
2225
600
875

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 * col0 col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

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

query I rowsort
SELECT - 21 + cor0.col2 FROM tab1 AS cor0
----
33
36
75

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-435
SELECT + cor0.col2 * - col1 + col0 DIV + ( + 61 ) AS col1 FROM tab0 AS cor0
----
-2838
-7461
-97

skipif mysql # not compatible
query I rowsort label-435
SELECT + cor0.col2 * - col1 + col0 / + ( + 61 ) AS col1 FROM tab0 AS cor0
----
-2838
-7461
-97

query I rowsort
SELECT col1 + + ( - ( col2 ) ) * - col0 * tab2.col0 AS col2 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT ALL - col0 DIV 48 + - col1 * tab2.col2 AS col2 FROM tab2
----
-1535
-647
-837

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - col0 / 48 + - col1 * tab2.col2 AS col2 FROM tab2
----
-1535
-647
-837

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

skipif mysql # not compatible
query I rowsort label-439
SELECT + CAST ( NULL AS INTEGER ) + + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 67 * cor0.col1 FROM tab0 cor0
----
-5762
-6097
-6499

query I rowsort
SELECT ALL - 66 * - col0 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT - - 10 AS col2 FROM tab2 AS cor0
----
10
10
10

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

query I rowsort
SELECT ALL 87 + col2 FROM tab1 AS cor0
----
141
144
183

query I rowsort
SELECT - 7 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-555
-569
-678

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-447
SELECT DISTINCT + CAST( 15 AS SIGNED ) * - col2 AS col0 FROM tab1 cor0
----
-1440
-810
-855

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT + CAST ( 15 AS INTEGER ) * - col2 AS col0 FROM tab1 cor0
----
-1440
-810
-855

query I rowsort
SELECT ALL - 97 AS col1 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT col2 * - ( - tab1.col2 ) + col1 FROM tab1
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-450
SELECT tab0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-450
SELECT tab0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 + 55 + + col0 AS col0 FROM tab0
----
187
2917
7606

onlyif mysql # use DIV operator for integer division
query I rowsort label-452
SELECT + col0 DIV - 47 + col2 AS col1 FROM tab1 cor0
----
54
56
95

skipif mysql # not compatible
query I rowsort label-452
SELECT + col0 / - 47 + col2 AS col1 FROM tab1 cor0
----
54
56
95

query I rowsort
SELECT - + 93 AS col1 FROM tab2 AS cor0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 * - col2 + col1 col1 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT DISTINCT - col0 + 21 FROM tab1 AS cor0
----
-43
-59
18

query I rowsort
SELECT ALL - + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif mysql # not compatible
query I rowsort
SELECT + col0 + - CAST ( - col0 AS REAL ) AS col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL - col2 * + 50 AS col2 FROM tab0 AS cor0
----
-1650
-4100
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab0 cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-460
SELECT ALL + - cor0.col0 * + CAST( NULL AS SIGNED ) 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-460
SELECT ALL + - cor0.col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col1 + + tab2.col1 * - ( col2 ) ) AS col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + col1 * + col0 + col0 * + col1 FROM tab2
----
2686
434
9204

query I rowsort
SELECT ALL col1 * col2 + + 84 * col1 FROM tab0
----
10062
15106
8245

query I rowsort
SELECT DISTINCT ( 18 ) FROM tab1, tab1 AS cor0
----
18

query I rowsort
SELECT ALL - col1 * col1 * - 21 FROM tab0 AS cor0
----
155316
173901
197589

query I rowsort
SELECT + col1 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + cor0.col2 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + ( col2 ) * + 62 AS col0 FROM tab2 AS cor0
----
2635
2645
5093

query I rowsort
SELECT + 69 * col0 * col0 FROM tab1 AS cor0
----
282624
441600
621

onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT 92 * col1 + - col0 * + cor0.col2 + col2 DIV 74 FROM tab0 AS cor0
----
1075
7120
8889

skipif mysql # not compatible
query I rowsort label-471
SELECT 92 * col1 + - col0 * + cor0.col2 + col2 / 74 FROM tab0 AS cor0
----
1075
7120
8889

onlyif mysql # use DIV operator for integer division
query I rowsort label-472
SELECT + - col2 * + col0 + cor0.col0 DIV - col1 FROM tab2 AS cor0
----
-189
-2029
-3006

skipif mysql # not compatible
query I rowsort label-472
SELECT + - col2 * + col0 + cor0.col0 / - col1 FROM tab2 AS cor0
----
-189
-2029
-3006

query I rowsort
SELECT - - cor0.col0 * col0 * 2 + col2 * col0 AS col2 FROM tab2 AS cor0
----
14196
15484
287

query I rowsort
SELECT - cor0.col2 * 95 + - col2 AS col0 FROM tab0 AS cor0
----
-3168
-7872
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + 66 * col2 col0 FROM tab2 cor0
----
1742
1809
2546

query I rowsort
SELECT - - ( 41 ) * col1 FROM tab2 AS cor0
----
1271
2419
697

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT DISTINCT 94 DIV + 69 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT 94 / + 69 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - - col2 * + 40 * + col2 FROM tab2 AS cor0
----
27040
29160
57760

query I rowsort
SELECT - 34 * + col0 FROM tab1 AS cor0
----
-102
-2176
-2720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * col0 col2 FROM tab1 AS cor0
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT col1 + 66 DIV col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-482
SELECT col1 + 66 / col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL cor1.col1 * 15 AS col0 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to ac680aff82caf7343f960fd6256b27a2

query I rowsort
SELECT ALL + 20 + - col2 * col2 AS col2 FROM tab2
----
-1424
-656
-709

onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT tab1.col1 DIV col1 col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-485
SELECT tab1.col1 / col1 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - col1 + col0 * col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab2, tab0, tab1 AS cor0, tab0 AS cor1
----
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-488
SELECT - + col0 * col0 - - CAST( - col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-10686
-266
-7584

skipif mysql # not compatible
query I rowsort label-488
SELECT - + col0 * col0 - - CAST ( - col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT DISTINCT 91 FROM tab1, tab0 cor0
----
91

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

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * cor0.col1 FROM tab0, tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-492
SELECT ALL - CAST( ( + col0 ) AS SIGNED ) * + 52 + - col0 * col1 + + 12 AS col1 FROM tab2
----
-5439
-569
-8646

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - CAST ( ( + col0 ) AS INTEGER ) * + 52 + - col0 * col1 + + 12 AS col1 FROM tab2
----
-5439
-569
-8646

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

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

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

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL - col1 / + col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL - 73 AS col1 FROM tab0 AS cor0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

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

query I rowsort
SELECT DISTINCT 78 * - col2 * 52 AS col0 FROM tab0
----
-133848
-332592
-4056

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0, tab1 cor0
----
-10
-13
-26

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

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

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

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

query I rowsort
SELECT DISTINCT 20 - - col2 * - 56 FROM tab0
----
-1828
-36
-4572

query I rowsort
SELECT DISTINCT ( 79 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
79

query I rowsort
SELECT 35 * - 79 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to eb1dbaeabda17469a2047633807f3366

query I rowsort
SELECT DISTINCT 38 + - cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-51
14
3

query I rowsort
SELECT + - cor0.col0 + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

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

query I rowsort
SELECT DISTINCT - 65 * + cor0.col0 FROM tab2 cor0
----
-455
-5070
-5135

query I rowsort
SELECT DISTINCT + col1 + 63 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT col0 * 26 FROM tab0
----
2314
624
910

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

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

query I rowsort
SELECT + ( 15 ) * col0 AS col0 FROM tab2 AS cor0
----
105
1170
1185

onlyif mysql # use DIV operator for integer division
query I rowsort label-514
SELECT DISTINCT + 17 DIV col0 AS col0 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT + 17 / col0 AS col0 FROM tab2
----
0
2

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-516
SELECT DISTINCT ( col1 ) DIV col1 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT ( col1 ) / col1 + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT 53 * - col2 AS col2 FROM tab2 AS cor0
----
-1378
-1431
-2014

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

query I rowsort
SELECT col2 * col0 AS col2 FROM tab1 WHERE NOT ( NULL ) > + col0 / col0
----

query I rowsort
SELECT col0 + col1 * + col1 + col2 FROM tab0
----
7453
8452
9445

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col0 + + col2 * col1 AS col1 FROM tab0
----
-1093
-370
2286

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) <> NULL
----

query I rowsort
SELECT ALL - col0 + - tab2.col1 AS col0 FROM tab2 WHERE NOT NULL >= ( + col2 * col1 )
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + - col2 NOT IN ( - col2 * + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-526
SELECT col2 DIV col1 + col0 DIV + col0 + col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-526
SELECT col2 / col1 + col0 / + col0 + col0 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL + col1 * + col2 * + tab1.col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT - col0 + - tab0.col1 * + tab0.col0 AS col2 FROM tab0
----
-2088
-3430
-8188

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

query I rowsort
SELECT ALL col1 + col1 * col2 * + col2 AS col1 FROM tab1
----
119821
32500
75842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 + col2 col2 FROM tab1
----
216
3705
7776

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

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE col2 BETWEEN - col0 AND NULL
----

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-540
SELECT DISTINCT + col2 + - col1 DIV + col0 - + tab0.col0 * - col2 FROM tab0
----
34
7379
822

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT + col2 + - col1 / + col0 - + tab0.col0 * - col2 FROM tab0
----
34
7379
822

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

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

query I rowsort
SELECT ALL + col1 * col1 + + col0 * - cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
-3484
-7431
517

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * col0 col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT col1 * + col0 * + col1 + col2 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT col1 + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT + + col1 * col0 - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - - col2 * + ( - col2 ) AS col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + cor0.col2 * + 69 AS col0 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT + col0 * 13 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT DISTINCT - cor0.col2 + + 61 * 32 AS col1 FROM tab0 AS cor0
----
1870
1919
1951

onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT + + cor1.col2 DIV + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-553
SELECT + + cor1.col2 / + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL col0 * - col2 + + ( col0 ) AS col0 FROM tab0 cor0
----
-7209
-768
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-556
SELECT ALL col1 DIV col2 + + 7 AS col1 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL col1 / col2 + + 7 AS col1 FROM tab1 AS cor0
----
7
7
7

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-559
SELECT ALL col1 DIV + 12 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL col1 / + 12 FROM tab1 AS cor0
----
0
1
2

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + - col2 * 24 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT + col0 - 2 FROM tab2 AS cor0
----
5
76
77

query I rowsort
SELECT + + 47 + - 30 AS col2 FROM tab0 AS cor0
----
17
17
17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + 0 + 63 FROM tab2 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * col2 col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col0 * - 44 + col1 FROM tab1
----
-106
-2806
-3507

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 974a92f740f5f08d18564d29c05f7692

query I rowsort
SELECT ALL - col2 * - col0 + 51 + + col0 FROM tab1
----
216
3763
7811

onlyif mysql # use DIV operator for integer division
query I rowsort label-574
SELECT + + 12 DIV + col2 FROM tab0 AS cor0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-574
SELECT + + 12 / + col2 FROM tab0 AS cor0
----
0
0
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT col0 DIV + col0 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-575
SELECT col0 / + col0 col1 FROM tab1 AS cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT + + col2 * - col0 + + CAST ( NULL AS REAL ) * cor0.col0 + + col1 * - 18 FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT + col0 + col1 * col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NULL NOT IN ( tab1.col2 )
----

query I rowsort
SELECT DISTINCT - col0 * - tab0.col1 + col0 AS col0 FROM tab0
----
2088
3430
8188

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

query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
65

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) IN ( + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col1 - - col2 * - col0 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT + ( + col0 ) - + 52 FROM tab2
----
-45
26
27

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

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

query I rowsort
SELECT ALL + 84 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT - 27 + col2 AS col2 FROM tab1
----
27
30
69

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

query I rowsort
SELECT ALL + + col2 + + col1 * - 49 * col0 AS col0 FROM tab2 AS cor0
----
-10606
-225472
-65769

query I rowsort
SELECT - + cor0.col0 * 71 FROM tab2 AS cor0
----
-497
-5538
-5609

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-593
SELECT CAST( + col2 AS SIGNED ) * tab2.col1 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-593
SELECT CAST ( + col2 AS INTEGER ) * tab2.col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col2 * - col2 + cor0.col1 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
-21387
-270842
-5998

query I rowsort
SELECT + + col0 + 24 FROM tab1 AS cor0
----
104
27
88

query I rowsort
SELECT ALL 99 * - col1 FROM tab1
----
-1287
-2574
-990

query I rowsort
SELECT ALL - - ( - col0 ) + + ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - + 57 * col1 + - col0 * + col2 FROM tab1 AS cor0
----
-1644
-4218
-8421

query I rowsort
SELECT + col2 + - col2 * + 35 AS col2 FROM tab2 AS cor0
----
-1292
-884
-918

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

query I rowsort
SELECT - - col1 * + 13 FROM tab1 AS cor0
----
130
169
338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + 56 col2 FROM tab1 AS cor0
----
-24
-8
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT DISTINCT - tab0.col1 DIV tab0.col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - tab0.col1 / tab0.col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT tab0.col1 * + col1 * ( col1 ) AS col2 FROM tab0
----
636056
753571
912673

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

skipif mysql # not compatible
query I rowsort label-605
SELECT + - col1 / col1 FROM tab1 AS cor0
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col0 + cor0.col2 * - col0 col2 FROM tab0 AS cor0
----
-1260
-1368
-15219

onlyif mysql # use DIV operator for integer division
query I rowsort label-608
SELECT ALL - col2 DIV col0 + + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-964

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL - col2 / col0 + + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-964

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

query I rowsort
SELECT - col1 + + col0 * - col2 FROM tab1 AS cor0
----
-188
-3658
-7693

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

query I rowsort
SELECT DISTINCT - col2 + - col1 * + col0 FROM tab2 AS cor0
----
-1381
-244
-4628

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

query I rowsort
SELECT + col2 + - tab1.col0 * col1 * + col1 AS col0 FROM tab1
----
-13424
-1974
-6343

query I rowsort
SELECT DISTINCT 92 + col2 * col0 FROM tab2 AS cor0
----
2120
281
3094

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-617
SELECT DISTINCT + 54 DIV col0 AS col1 FROM tab1 AS cor0
----
0
18

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + 54 / col0 AS col1 FROM tab1 AS cor0
----
0
18

query I rowsort
SELECT - - col1 + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT 14 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2078
3409
8113

query I rowsort
SELECT 33 * col1 FROM tab0
----
2838
3003
3201

query I rowsort
SELECT - col1 * + 14 AS col2 FROM tab2
----
-238
-434
-826

query I rowsort
SELECT ALL + cor0.col0 * tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to eb103eabe531563e672e54874d056f9f

onlyif mysql # use DIV operator for integer division
query I rowsort label-623
SELECT 35 DIV - col0 + col0 * + col0 FROM tab2 AS cor0
----
44
6084
6241

skipif mysql # not compatible
query I rowsort label-623
SELECT 35 / - col0 + col0 * + col0 FROM tab2 AS cor0
----
44
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 * cor1.col1 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1534
646
837

query I rowsort
SELECT col1 * col2 + - col0 * col1 AS col2 FROM tab2
----
-3068
-697
620

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + col0 col0 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-628
SELECT - 41 * col0 DIV - col0 + - col1 col0 FROM tab2 AS cor0
----
-18
10
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-628
SELECT - 41 * col0 / - col0 + - col1 col0 FROM tab2 AS cor0
----
-18
10
24

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

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

query I rowsort
SELECT ALL + 64 * col0 AS col0 FROM tab1 AS cor0
----
192
4096
5120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 66 col2 FROM tab0 AS cor0
----
-66

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-634
SELECT - 82 * col1 + + ( col1 ) DIV col0 - ( col1 ) FROM tab2 AS cor0
----
-1411
-2569
-4897

skipif mysql # not compatible
query I rowsort label-634
SELECT - 82 * col1 + + ( col1 ) / col0 - ( col1 ) FROM tab2 AS cor0
----
-1411
-2569
-4897

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

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

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

query I rowsort
SELECT ALL - + col0 * - 70 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT col1 * 89 FROM tab2 AS cor0
----
1513
2759
5251

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

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

query I rowsort
SELECT ALL - col0 + col2 + - ( col2 ) * col2 FROM tab1
----
-2865
-3256
-9200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - cor0.col2 col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * col0 * 43 col1 FROM tab2
----
2080
261586
268325

query I rowsort
SELECT + + tab0.col1 AS col1 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT - col1 + col1 + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + 77 * cor0.col2 + col0 FROM tab1 AS cor0
----
4161
4453
7472

query I rowsort
SELECT DISTINCT + 67 * - col2 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT ALL col1 * - col2 + col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + 70 - col2 AS col1 FROM tab2 AS cor0
----
32
43
44

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

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

query I rowsort
SELECT - - 73 * 4 AS col1 FROM tab1 AS cor0
----
292
292
292

onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT DISTINCT - col0 + col1 DIV - col0 FROM tab2 cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT - col0 + col1 / - col0 FROM tab2 cor0
----
-11
-78
-79

query I rowsort
SELECT 90 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT ALL ( - 67 ) * + col1 AS col0 FROM tab0 AS cor0
----
-5762
-6097
-6499

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 11 AS REAL ) + + col2 FROM tab0 cor0
----
-10
22
71

query I rowsort
SELECT ALL + cor0.col2 + 86 FROM tab2 AS cor0
----
112
113
124

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

query I rowsort
SELECT DISTINCT cor0.col0 + + 97 + + col1 * - 46 FROM tab0 AS cor0
----
-3835
-4000
-4330

query I rowsort
SELECT ALL - ( - 24 ) + + col2 AS col1 FROM tab2 AS cor0
----
50
51
62

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

skipif mysql # not compatible
query I rowsort label-660
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 11 + - col2 FROM tab2
----
-104
-884
-907

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

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab0 AS cor0
----
NULL

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

query I rowsort
SELECT 62 + + col0 FROM tab1 AS cor0
----
126
142
65

query I rowsort
SELECT ALL - 4 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a

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

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

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 FROM tab0 cor0
----
-2838
-7462
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - 32 * col1 AS col0 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT ALL col1 + col1 + 11 FROM tab0 AS cor0
----
183
193
205

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

query I rowsort
SELECT + - col0 * + 89 + + 77 FROM tab1 AS cor0
----
-190
-5619
-7043

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

query I rowsort
SELECT ALL - col0 * 18 * col0 FROM tab0 AS cor0
----
-10368
-142578
-22050

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-677
SELECT ALL - col2 / col0 col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT - col2 * 14 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT DISTINCT - cor0.col0 * 9 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT + cor0.col2 * - 13 + + 5 AS col1 FROM tab1 cor0
----
-1243
-697
-736

query I rowsort
SELECT DISTINCT + col2 * - ( - 46 ) * col0 AS col1 FROM tab0 AS cor0
----
1610
335708
36432

query I rowsort
SELECT ALL + col1 * + col2 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT - col1 + col2 * + tab2.col0 AS col2 FROM tab2
----
158
1969
2985

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT - col0 + - ( 58 ) DIV col0 FROM tab0 AS cor0
----
-26
-36
-89

skipif mysql # not compatible
query I rowsort label-685
SELECT - col0 + - ( 58 ) / col0 FROM tab0 AS cor0
----
-26
-36
-89

query I rowsort
SELECT - + col0 * 24 * 4 AS col0 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT + col0 + ( - col1 ) * col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col0 * - 67 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT + - cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL 68 FROM tab2, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT col0 * + 85 FROM tab2
----
595
6630
6715

query I rowsort
SELECT - + col2 + col1 * + ( 45 ) FROM tab0 cor0
----
3837
4013
4364

query I rowsort
SELECT col1 * + cor0.col1 + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - 30 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

onlyif mysql # use DIV operator for integer division
query I rowsort label-696
SELECT cor0.col0 + + col2 DIV + col1 + - col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-696
SELECT cor0.col0 + + col2 / + col1 + - col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ( ( + cor0.col1 ) ) AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT cor0.col1 + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
54
57
96

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

query I rowsort
SELECT - 46 + col2 * - 10 FROM tab0 AS cor0
----
-376
-56
-866

query I rowsort
SELECT col2 + ( 81 ) FROM tab0 AS cor0
----
114
163
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT DISTINCT col2 DIV + 2 + - cor0.col2 FROM tab2 AS cor0
----
-13
-14
-19

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT col2 / + 2 + - cor0.col2 FROM tab2 AS cor0
----
-13
-14
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-705
SELECT - col2 + CAST( 55 * - col1 AS SIGNED ) FROM tab1
----
-1484
-607
-811

skipif mysql # not compatible
query I rowsort label-705
SELECT - col2 + CAST ( 55 * - col1 AS INTEGER ) FROM tab1
----
-1484
-607
-811

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

query I rowsort
SELECT DISTINCT col2 * col0 - + 40 AS col2 FROM tab0 AS cor0
----
-5
7258
752

query I rowsort
SELECT + col1 + ( col1 * col0 + col2 ) FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT DISTINCT + col1 * 65 + cor0.col1 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT + cor0.col0 + 20 * + col1 AS col1 FROM tab1 AS cor0
----
264
340
523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 18 col2 FROM tab2
----
20
8
9

query I rowsort
SELECT - - ( 91 ) FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT + 0 - 81 * col2 FROM tab1
----
-4374
-4617
-7776

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

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 35 / - col1 - - col0 AS col1 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-715
SELECT DISTINCT + ( + tab1.col1 ) - col2 DIV - ( - col2 ) FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + ( + tab1.col1 ) - col2 / - ( - col2 ) FROM tab1
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-716
SELECT + col2 DIV ( col0 ) + 62 + 53 * col2 FROM tab2 AS cor0
----
1440
1496
2076

skipif mysql # not compatible
query I rowsort label-716
SELECT + col2 / ( col0 ) + 62 + 53 * col2 FROM tab2 AS cor0
----
1440
1496
2076

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

query I rowsort
SELECT DISTINCT - ( col0 ) * - ( + cor0.col0 ) * col0 FROM tab0 cor0
----
13824
42875
704969

query I rowsort
SELECT ALL - + 23 + col2 FROM tab2 AS cor0
----
15
3
4

query I rowsort
SELECT ALL + + col2 * col0 + + 29 AS col0 FROM tab0 AS cor0
----
64
7327
821

onlyif mysql # use DIV operator for integer division
query I rowsort label-721
SELECT + 81 * col1 - ( - col1 + col1 ) DIV - col0 AS col0 FROM tab2 AS cor0
----
1377
2511
4779

skipif mysql # not compatible
query I rowsort label-721
SELECT + 81 * col1 - ( - col1 + col1 ) / - col0 AS col0 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT DISTINCT 48 + col1 AS col2 FROM tab2 AS cor0
----
107
65
79

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab1
----
10

query I rowsort
SELECT ( col1 ) * col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + cor2.col0 FROM tab0, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT + col0 * - 96 FROM tab1 AS cor0
----
-288
-6144
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-727
SELECT ALL cor0.col1 DIV - col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL cor0.col1 / - col2 FROM tab0 cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT col2 + + 83 DIV - 69 AS col2 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-728
SELECT col2 + + 83 / - 69 AS col2 FROM tab2
----
25
26
37

query I rowsort
SELECT tab0.col1 + 5 * + 10 FROM tab0
----
136
141
147

query I rowsort
SELECT ALL - 71 FROM tab2, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

query I rowsort
SELECT ALL + col2 * - 40 AS col0 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT ALL - col0 + col0 * + col1 * ( - col0 + col1 ) AS col2 FROM tab2 AS cor0
----
-83345
-87516
5201

query I rowsort
SELECT - cor0.col1 * col0 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + ( + cor0.col1 ) + - col2 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - ( + col1 ) - - col1 * + col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - - 85 * cor0.col2 AS col2 FROM tab1 AS cor0
----
4590
4845
8160

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

query I rowsort
SELECT ( - col2 ) - + col2 FROM tab2 AS cor0
----
-52
-54
-76

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

query I rowsort
SELECT - col0 + 16 * + ( col2 ) * col2 AS col1 FROM tab2
----
10738
11657
23025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + col0 - ( tab0.col0 ) FROM tab0
----
0

query I rowsort
SELECT ALL - - 4 * + col1 AS col0 FROM tab0 AS cor0
----
344
364
388

onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT - 89 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-745
SELECT - 89 / col0 FROM tab0 AS cor0
----
-1
-2
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT cor0.col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT + 59 * col0 AS col0 FROM tab0 cor0
----
1416
2065
5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 + ( col0 * col1 + + col2 ) col1 FROM tab1 AS cor0
----
-112
-1272
127

onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT ALL - ( col2 ) * col0 + - 1 DIV col1 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - ( col2 ) * col0 + - 1 / col1 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 72 AS col1 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT - cor0.col2 + col1 DIV 49 + col1 col0 FROM tab0 AS cor0
----
10
54
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-752
SELECT - cor0.col2 + col1 / 49 + col1 col0 FROM tab0 AS cor0
----
10
54
97

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

query I rowsort
SELECT + + 2 AS col1 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-755
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL 80 * - 44 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 388ac413e3fbb663d2cfbcccf9674872

query I rowsort
SELECT ALL + 29 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + ( - 61 + - col1 ) FROM tab1
----
-71
-74
-87

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT - + col2 DIV col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-760
SELECT - + col2 / col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-21
-64
-81

query I rowsort
SELECT ALL - + 80 + - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-242
-3728
-7760

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 * + 19 AS col2 FROM tab1 AS cor0
----
12160
1482
19760

query I rowsort
SELECT - + 16 * cor0.col0 AS col0 FROM tab1 cor0
----
-1024
-1280
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT ALL cor0.col0 + col2 DIV cor0.col2 col1 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-764
SELECT ALL cor0.col0 + col2 / cor0.col2 col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL 32 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT DISTINCT col1 * col2 * + 5 FROM tab0
----
14190
37310
485

query I rowsort
SELECT 1 + col2 AS col1 FROM tab2
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * 98 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dec36df45d02aca51d90baf32f134ad5

onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT ALL col2 DIV 3 + - col1 FROM tab0 AS cor0
----
-64
-75
-97

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL col2 / 3 + - col1 FROM tab0 AS cor0
----
-64
-75
-97

query I rowsort
SELECT DISTINCT + col2 * col2 + - col0 - col0 AS col2 FROM tab0 AS cor0
----
-69
1041
6546

query I rowsort
SELECT 24 * - col1 * + tab0.col1 AS col0 FROM tab0
----
-177504
-198744
-225816

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2, tab2 AS cor2, tab1 AS cor3
----
13122 values hashing to 5160fdfa219e58fc52f3dcdaeac40a85

query I rowsort
SELECT ALL tab1.col2 * + 96 FROM tab1
----
5184
5472
9216

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + + CAST ( + col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
104
117
34

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

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

query I rowsort
SELECT ALL col0 + - 76 FROM tab1 AS cor0
----
-12
-73
4

query I rowsort
SELECT ALL col2 * - 14 + - 47 AS col2 FROM tab0 cor0
----
-1195
-509
-61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-779
SELECT DISTINCT - + col1 + + CAST( - col1 * col1 + - 56 * + 48 AS SIGNED ) FROM tab1 AS cor0
----
-2798
-2870
-3390

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - + col1 + + CAST ( - col1 * col1 + - 56 * + 48 AS INTEGER ) FROM tab1 AS cor0
----
-2798
-2870
-3390

query I rowsort
SELECT ( - 23 ) FROM tab2
----
-23
-23
-23

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 * cor0.col2 AS col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + 28 + - col2 AS col2 FROM tab2 AS cor0
----
-10
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT col2 - - col0 DIV - col1 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-783
SELECT col2 - - col0 / - col1 FROM tab2 AS cor0
----
25
27
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-784
SELECT - CAST( col1 AS SIGNED ) + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
1427
617
698

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-784
SELECT - CAST ( col1 AS INTEGER ) + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
1427
617
698

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

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

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

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

query I rowsort
SELECT DISTINCT + 63 * 75 + + col1 FROM tab1
----
4735
4738
4751

onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT ALL - + col2 DIV - col2 + + ( 11 ) + + col2 FROM tab1 cor0
----
108
66
69

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - + col2 / - col2 + + ( 11 ) + + col2 FROM tab1 cor0
----
108
66
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT ALL col1 DIV cor0.col2 + + 40 FROM tab0 AS cor0
----
137
41
42

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL col1 / cor0.col2 + + 40 FROM tab0 AS cor0
----
137
41
42

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

query I rowsort
SELECT 81 * - col1 + + cor0.col0 FROM tab0 AS cor0
----
-6942
-7282
-7822

query I rowsort
SELECT DISTINCT - 32 * + col1 * - col1 AS col1 FROM tab0
----
236672
264992
301088

query I rowsort
SELECT ALL 32 - - col0 FROM tab0 AS cor0
----
121
56
67

query I rowsort
SELECT DISTINCT - ( 9 ) + - col1 AS col2 FROM tab0
----
-100
-106
-95

query I rowsort
SELECT - 26 * col2 + + ( col2 ) FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT DISTINCT - 33 + col0 AS col1 FROM tab0 cor0
----
-9
2
56

query I rowsort
SELECT ALL + 33 * cor0.col1 - + ( col0 * col1 ) AS col0 FROM tab1 AS cor0
----
-310
-611
780

query I rowsort
SELECT DISTINCT - col1 * col1 + ( - col2 * col0 ) FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT DISTINCT + 58 * + col0 + - 25 + col1 FROM tab2 cor0
----
412
4558
4574

query I rowsort
SELECT 20 * + 28 * col0 FROM tab1 cor0
----
1680
35840
44800

query I rowsort
SELECT - col1 + 85 AS col1 FROM tab1 AS cor0
----
59
72
75

query I rowsort
SELECT + - 98 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 14 * - col0 AS col2 FROM tab1
----
-1120
-42
-896

query I rowsort
SELECT ( + cor0.col0 ) + cor0.col0 AS col0 FROM tab1 cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-807
SELECT + + 89 DIV + 14 + cor0.col0 AS col0 FROM tab2 AS cor0
----
13
84
85

skipif mysql # not compatible
query I rowsort label-807
SELECT + + 89 / + 14 + cor0.col0 AS col0 FROM tab2 AS cor0
----
13
84
85

query I rowsort
SELECT - + 26 * cor0.col2 AS col0 FROM tab1 cor0
----
-1404
-1482
-2496

query I rowsort
SELECT - col1 + 96 * + col1 FROM tab1 cor0
----
1235
2470
950

query I rowsort
SELECT + ( 82 ) * - col0 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT - 66 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT 96 * col1 FROM tab0 AS cor0
----
8256
8736
9312

query I rowsort
SELECT + + cor0.col0 + col1 * + 7 FROM tab1 AS cor0
----
134
171
185

query I rowsort
SELECT cor0.col2 + - col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
185
1995
3023

query I rowsort
SELECT + + cor0.col1 * 6 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1241
-31
-4248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col2 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

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

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

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

query I rowsort
SELECT DISTINCT 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2

query I rowsort
SELECT ALL - ( col2 ) + + 80 FROM tab1
----
-16
23
26

query I rowsort
SELECT + col1 + col2 + - col0 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL col2 * + 30 FROM tab2
----
1140
780
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-823
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab1, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
86
91
97

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

query I rowsort
SELECT DISTINCT col1 * - 60 FROM tab2
----
-1020
-1860
-3540

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT - col0 * cor0.col1 + col0 * + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
115430
47472
712712

query I rowsort
SELECT DISTINCT - 65 + 85 FROM tab1 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 - col1 col0 FROM tab2 cor0
----
16
44
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 16 + 21 col0 FROM tab0 cor0
----
37
37
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT - + 67 DIV + col2 + col1 * - col2 - - col2 FROM tab0 AS cor0
----
-163
-2807
-7380

skipif mysql # not compatible
query I rowsort label-832
SELECT - + 67 / + col2 + col1 * - col2 - - col2 FROM tab0 AS cor0
----
-163
-2807
-7380

query I rowsort
SELECT - ( 33 ) + - col2 AS col1 FROM tab2 AS cor0
----
-59
-60
-71

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-835
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + tab2.col1 * - 1 * col2 AS col0 FROM tab2
----
-1593
-663
-868

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + tab2.col1 * - 1 * col2 AS col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT ALL 73 * col0 * col0 + tab1.col0 * col2 FROM tab1
----
302656
474880
819

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT ALL col1 + col2 DIV - col2 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL col1 + col2 / - col2 FROM tab0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT ALL + ( cor0.col1 ) * + col1 + col1 DIV + cor0.col1 FROM tab1 AS cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + ( cor0.col1 ) * + col1 + col1 / + cor0.col1 FROM tab1 AS cor0
----
101
170
677

query I rowsort
SELECT ( col1 ) + col0 * 83 FROM tab0 cor0
----
2078
3002
7478

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-841
SELECT ALL ( + 21 ) + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL ( + 21 ) + col1 / - col1 AS col1 FROM tab0 AS cor0
----
20
20
20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col0 * - tab2.col1 * + col2 FROM tab2
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-845
SELECT DISTINCT - ( + col0 + CAST( col2 AS SIGNED ) ) col1 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT - ( + col0 + CAST ( col2 AS INTEGER ) ) col1 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT + 25 * + col0 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT - cor0.col0 - 30 AS col2 FROM tab0 AS cor0
----
-119
-54
-65

query I rowsort
SELECT col1 - 90 * col2 FROM tab2 AS cor0
----
-2281
-2399
-3403

query I rowsort
SELECT cor0.col2 + + cor0.col1 * + 70 FROM tab2 AS cor0
----
1228
2197
4156

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-850
SELECT - col0 - CAST( + col1 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

skipif mysql # not compatible
query I rowsort label-850
SELECT - col0 - CAST ( + col1 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - - col2 * 62 + col2 * col2 FROM tab1 AS cor0
----
15168
6264
6783

query I rowsort
SELECT DISTINCT + - col1 - + ( 95 ) AS col0 FROM tab2 AS cor0
----
-112
-126
-154

query I rowsort
SELECT cor0.col2 * col2 * + col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - col1 + + 24 FROM tab1 AS cor0
----
-2
11
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 + ( col0 ) * - col0 - 35 col1 FROM tab2 AS cor0
----
-115
-6178
-6293

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

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

query I rowsort
SELECT cor0.col2 * 30 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT ALL col1 + col1 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
258
273
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT tab1.col1 + - col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-863
SELECT col2 * col1 + - col2 DIV col0 FROM tab2
----
1534
646
834

skipif mysql # not compatible
query I rowsort label-863
SELECT col2 * col1 + - col2 / col0 FROM tab2
----
1534
646
834

query I rowsort
SELECT col2 * col1 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col1
----

query I rowsort
SELECT col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT ALL col1 * tab2.col2 - - col1 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL col1 + - col0 * - col0 AS col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT DISTINCT col1 * + tab0.col0 + col0 * + tab0.col1 + + col0 * col0 AS col0 FROM tab0
----
24119
4704
8015

query I rowsort
SELECT DISTINCT tab2.col1 + + col0 * col0 FROM tab2
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col2 * + col1 col1 FROM tab0 AS cor0
----
132
2862
7551

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

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

query I rowsort
SELECT - cor0.col2 * cor0.col1 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

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

query I rowsort
SELECT - col1 * + col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - - col1 + - col0 * - col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT col0 + col2 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
1146
37
6895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col0 col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT ALL + col2 * col1 + col0 + + cor0.col1 DIV col1 FROM tab0 AS cor0
----
133
2863
7552

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL + col2 * col1 + col0 + + cor0.col1 / col1 FROM tab0 AS cor0
----
133
2863
7552

query I rowsort
SELECT + cor0.col0 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT DISTINCT col1 * col0 + col2 DIV + col0 FROM tab1
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT col1 * col0 + col2 / + col0 FROM tab1
----
1041
640
96

query I rowsort
SELECT col2 + tab1.col0 * + tab1.col0 * - col2 - - col1 * col2 FROM tab1
----
-232845
-613056
972

query I rowsort
SELECT DISTINCT - col2 + tab0.col2 AS col1 FROM tab0
----
0

query I rowsort
SELECT - tab0.col1 * col2 * + col2 + + col0 FROM tab0
----
-611795
-62
-93630

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

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 ) OR NOT ( - cor0.col2 / col0 + col0 * col2 ) <= NULL
----

query I rowsort
SELECT - + col0 + - col1 * - ( - 99 ) AS col1 FROM tab0 cor0
----
-8538
-9098
-9638

query I rowsort
SELECT + col1 + col1 * 6 FROM tab0 AS cor0
----
602
637
679

query I rowsort
SELECT DISTINCT - - 68 + + col2 FROM tab2 AS cor0
----
106
94
95

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

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

query I rowsort
SELECT - 89 AS col1 FROM tab2
----
-89
-89
-89

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

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT col0 * col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 59 * - col1 FROM tab1
----
1534
590
767

query I rowsort
SELECT - col2 + col1 + + col1 FROM tab2 AS cor0
----
-4
35
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-903
SELECT + - col2 DIV + col2 + 71 FROM tab0 cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-903
SELECT + - col2 / + col2 + 71 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT + + cor0.col2 + col0 + 39 FROM tab2 AS cor0
----
143
156
73

query I rowsort
SELECT - cor0.col1 * - ( 50 ) + col2 * + col1 AS col1 FROM tab0 AS cor0
----
12012
4947
7138

query I rowsort
SELECT + - cor0.col0 + + 34 AS col0 FROM tab1 AS cor0
----
-30
-46
31

query I rowsort
SELECT cor0.col1 * 26 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT col1 * col2 * - 17 + col1 * col0 + + 71 * col0 AS col0 FROM tab0
----
-112436
-44478
4231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 * col1 col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL + 33 * col1 FROM tab2
----
1023
1947
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + col2 * - col2 col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - col0 * - tab0.col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * - col0 - col2 col0 FROM tab0
----
-2097
-3396
-8181

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

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NULL = col1
----

query I rowsort
SELECT ALL - col2 * tab0.col0 + col2 * + col1 * - col2 + + col2 / - col2 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col2 + col1 + tab2.col2 AS col1 FROM tab2
----
111
85
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-918
SELECT col1 DIV col1 AS col2 FROM tab1 WHERE - col0 <> ( col2 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-918
SELECT col1 / col1 AS col2 FROM tab1 WHERE - col0 <> ( col2 )
----
1
1
1

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

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * - col0 col1 FROM tab0
----
1225
19008
649522

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 * + col0 * - tab1.col2 + col0 ) IN ( + col1 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col2 + col1 + col0 FROM tab2
----
134
163
65

query I rowsort
SELECT tab1.col2 * + col0 + + tab1.col2 * + col0 AS col1 FROM tab1
----
15360
324
7296

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-926
SELECT ALL + col0 + tab0.col0 + col0 DIV tab0.col2 AS col0 FROM tab0
----
105
179
48

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + col0 + tab0.col0 + col0 / tab0.col2 AS col0 FROM tab0
----
105
179
48

query I rowsort
SELECT DISTINCT + col2 + - col0 * tab1.col0 * col2 AS col0 FROM tab1
----
-233415
-432
-614304

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - col0 = - col2
----

query I rowsort
SELECT ALL + col0 - tab2.col1 * col1 FROM tab2
----
-210
-3403
-954

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( col2 * col2 ) AND NULL
----

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

query I rowsort
SELECT DISTINCT - tab1.col2 + - col0 AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab2 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN NULL AND + col0
----
3
26
54
80
13
96

query I rowsort
SELECT ALL col1 + - tab2.col0 * col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT ALL col0 * col0 * + col0 AS col2 FROM tab0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ( + col0 + - ( - col2 ) ) AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT - - 57 * + col0 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT - 28 + + col1 + 84 FROM tab0
----
142
147
153

query I rowsort
SELECT DISTINCT + 86 - + col2 AS col2 FROM tab2
----
48
59
60

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

query I rowsort
SELECT col2 + - ( col1 ) * - col0 + col2 FROM tab2 AS cor0
----
1419
271
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT + + col2 DIV col1 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-944
SELECT + + col2 / col1 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1241
-1402
-565

query I rowsort
SELECT tab0.col1 * - col0 - col0 AS col2 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL 96 + 57 FROM tab0, tab1 AS cor0
----
9 values hashing to a445e00df74bda4e6af4f1e4258ba685

query I rowsort
SELECT DISTINCT + - col0 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * + ( 23 ) * - cor0.col1 FROM tab2 AS cor0
----
-14858
-19251
-35282

query I rowsort
SELECT ALL col1 * ( col1 ) + + col1 * + col2 + col0 * col0 FROM tab2 AS cor0
----
11099
1847
7176

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

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

query I rowsort
SELECT - cor0.col1 - ( 26 * + col1 ) FROM tab2 cor0
----
-1593
-459
-837

query I rowsort
SELECT DISTINCT col2 * 94 - - col1 AS col2 FROM tab1 cor0
----
5102
5368
9037

query I rowsort
SELECT + - col1 * ( - col1 ) + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-3548
-7511
514

query I rowsort
SELECT + col2 * + cor0.col1 + 1 AS col2 FROM tab1 AS cor0
----
1249
1405
571

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

query I rowsort
SELECT DISTINCT - col0 * col0 * col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT + + col2 * - 83 AS col1 FROM tab1 AS cor0
----
-4482
-4731
-7968

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-959
SELECT ( - ( col0 ) ) * - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-959
SELECT ( - ( col0 ) ) * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 80 + col1 FROM tab1 AS cor0
----
106
90
93

query I rowsort
SELECT + + col0 * + col2 + col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-962
SELECT - col1 - - cor0.col0 * - CAST( - col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
208
40950
83187

skipif mysql # not compatible
query I rowsort label-962
SELECT - col1 - - cor0.col0 * - CAST ( - col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
208
40950
83187

onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT - - 27 * + cor0.col0 + col0 DIV - 56 AS col0 FROM tab1 AS cor0
----
1727
2159
81

skipif mysql # not compatible
query I rowsort label-963
SELECT - - 27 * + cor0.col0 + col0 / - 56 AS col0 FROM tab1 AS cor0
----
1727
2159
81

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

query I rowsort
SELECT ALL - 46 FROM tab2, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ( 9 ) AS col0 FROM tab0
----
9
9
9

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

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

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

query I rowsort
SELECT ALL 86 + col2 AS col2 FROM tab0 AS cor0
----
119
168
87

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

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL 50 * + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-1750
-364900
-39600

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

query I rowsort
SELECT ALL + col1 + - col2 * col1 * col0 AS col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ( tab1.col1 + cor0.col0 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b7e2a7b66ad60562d4872f7ae5eab2b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 + - cor0.col1 * + col2 col1 FROM tab1 AS cor0
----
-1212
-1368
-534

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

query I rowsort
SELECT ALL - cor0.col2 * + col0 + - col1 * col1 AS col2 FROM tab2 cor0
----
-1150
-3291
-5509

query I rowsort
SELECT ALL + col2 - - tab0.col2 FROM tab0
----
164
2
66

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

query I rowsort
SELECT - cor0.col1 * col1 - - col1 * + col0 FROM tab0 AS cor0
----
-182
-5332
-6014

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

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT col0 / col2 AS col0 FROM tab1 cor0
----
0
1

query I rowsort
SELECT + col2 * col1 + - cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + 72 + + col2 + col0 FROM tab0
----
108
129
243

query I rowsort
SELECT ALL - ( col2 ) * tab0.col1 - + col0 * - col1 FROM tab0
----
-774
3298
637

query I rowsort
SELECT ALL col1 * col1 + - col1 - - col1 AS col0 FROM tab2
----
289
3481
961

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col2 + col1 * col2 col1 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col2 + - 95 AS col2 FROM tab2
----
-57
-68
-69

query I rowsort
SELECT ALL + col2 * ( + 55 ) FROM tab1
----
2970
3135
5280

query I rowsort
SELECT ALL + 50 * + col2 AS col2 FROM tab0
----
1650
4100
50

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

query I rowsort
SELECT + 77 FROM tab0, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT col1 * - tab1.col1 - - col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT - 18 + 97 * + col2 FROM tab0 AS cor0
----
3183
79
7936

query I rowsort
SELECT ( col0 ) + - col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + - col2 * col1 col0 FROM tab1 AS cor0
----
-1261
-1430
-580

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

query I rowsort
SELECT - + col0 * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

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

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

query I rowsort
SELECT ALL + 74 + 15 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT col0 * - 46 + + col2 FROM tab1
----
-2887
-3584
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 * col1 + 52 col1 FROM tab2
----
-1607
2626
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * col2 col1 FROM tab2
----
364
378
532

query I rowsort
SELECT DISTINCT 10 * - col2 + cor0.col0 FROM tab1 AS cor0
----
-506
-537
-880

query I rowsort
SELECT + col2 + col1 * + col0 * - 97 FROM tab0 AS cor0
----
-200175
-329314
-785521

onlyif mysql # use DIV operator for integer division
query I rowsort label-1008
SELECT - col1 DIV - col1 + col1 * - ( 23 + + cor0.col0 ) FROM tab0 AS cor0
----
-10191
-4041
-5625

skipif mysql # not compatible
query I rowsort label-1008
SELECT - col1 / - col1 + col1 * - ( 23 + + cor0.col0 ) FROM tab0 AS cor0
----
-10191
-4041
-5625

query I rowsort
SELECT ALL - + col1 + col1 * col0 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * col1 col0 FROM tab2
----
-118
-34
-62

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

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

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT ( col0 ) - + col1 * col0 AS col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col0 - 18 * + 32 FROM tab0 AS cor0
----
-487
-541
-552

query I rowsort
SELECT ALL col1 - col1 * + col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + col0 - + col0 * ( - col0 * + col0 + - col2 ) AS col2 FROM tab0
----
14640
42945
712356

query I rowsort
SELECT ALL - col1 - tab0.col2 AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + col0 col2 FROM tab1
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1021
SELECT ALL + col1 * - cor0.col0 DIV - col0 col2 FROM tab2 AS cor0
----
17
31
59

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

query I rowsort
SELECT + col1 * 93 + cor0.col1 AS col0 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT DISTINCT + col1 + col1 * - col1 FROM tab0 cor0
----
-7310
-8190
-9312

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col0 + CAST ( col1 AS REAL ) * cor0.col2 AS col1 FROM tab2 cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-1025
SELECT col2 DIV + ( 85 ) + - col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1025
SELECT col2 / + ( 85 ) + - col2 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT + col0 - + col1 * col2 DIV + col0 FROM tab0 cor0
----
-94
33
6

skipif mysql # not compatible
query I rowsort label-1026
SELECT + col0 - + col1 * col2 / + col0 FROM tab0 cor0
----
-94
33
6

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1028
SELECT DISTINCT col2 * ( - col2 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT col2 * ( - col2 ) / col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + cor0.col0 + 37 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT ALL - col1 + cor0.col0 * 55 AS col2 FROM tab0 AS cor0
----
1234
1828
4804

query I rowsort
SELECT col2 - col1 * + 87 * - col0 AS col2 FROM tab0 cor0
----
179601
295366
704695

query I rowsort
SELECT DISTINCT + - cor0.col1 * - cor0.col1 - col1 AS col1 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT DISTINCT - - col2 + col1 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - col0 + 87 AS col2 FROM tab1 AS cor0
----
23
7
84

query I rowsort
SELECT - col1 * + col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

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

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

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

query I rowsort
SELECT ALL + - cor0.col2 * 98 + + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-2489
-2615
-3707

query I rowsort
SELECT col2 + col2 + col1 AS col0 FROM tab0
----
152
255
99

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

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

query I rowsort
SELECT 22 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT - col2 * - ( col2 * col1 ) FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT col1 + 67 AS col0 FROM tab2 AS cor0
----
126
84
98

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

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

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

query I rowsort
SELECT + ( 4 ) + cor0.col2 * col2 FROM tab1 cor0
----
2920
3253
9220

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 - - ( + 47 ) AS col0 FROM tab0 AS cor0
----
35984
48
551415

query I rowsort
SELECT DISTINCT + 40 + + 90 AS col2 FROM tab0 AS cor0
----
130

query I rowsort
SELECT 28 + - col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2036
-3367
-8071

query I rowsort
SELECT ALL + + ( 31 ) FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT ALL tab2.col2 * + ( 9 ) + + col1 AS col1 FROM tab2
----
274
293
359

query I rowsort
SELECT DISTINCT col2 + col2 * 93 * col2 FROM tab2
----
134330
62894
67824

query I rowsort
SELECT ALL + col1 + 70 AS col0 FROM tab0
----
156
161
167

query I rowsort
SELECT + - col2 * col0 * - cor0.col0 + ( col0 ) FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT + - 61 + + 22 * col2 FROM tab1 cor0
----
1127
1193
2051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col0 ) col0 FROM tab2 cor0
----
-7
-78
-79

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

query I rowsort
SELECT + - cor0.col0 * col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-1060
SELECT ALL 18 DIV - tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL 18 / - tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 2 * col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col2 * col0 * ( - 54 ) AS col1 FROM tab1 AS cor0
----
196992
414720
8748

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

query I rowsort
SELECT ALL 40 * - 43 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5774e92112c4c6d9f12d4b482c415bee

query I rowsort
SELECT 35 * + col0 + - tab1.col0 * col1 FROM tab1
----
1600
1760
27

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

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - col2 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 52 * col0 AS col1 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT DISTINCT - 13 * + col0 FROM tab1 AS cor0
----
-1040
-39
-832

query I rowsort
SELECT col2 * + cor0.col2 + ( - col2 ) FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT - col2 * + col2 + + ( col0 ) * + col1 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT - 22 + + col0 FROM tab1 AS cor0
----
-19
42
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col0 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - + 19 - - cor0.col1 FROM tab1 AS cor0
----
-6
-9
7

query I rowsort
SELECT - ( + 35 ) FROM tab1
----
-35
-35
-35

query I rowsort
SELECT + tab2.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - ( - col0 * col1 ) AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - - col0 * + cor0.col1 * 7 - - cor0.col1 FROM tab2 AS cor0
----
1550
32273
9418

query I rowsort
SELECT - + col0 + col0 * + 19 FROM tab0 cor0
----
1602
432
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT - - col0 DIV col1 + + 9 FROM tab1 AS cor0
----
15
15
9

skipif mysql # not compatible
query I rowsort label-1079
SELECT - - col0 / col1 + + 9 FROM tab1 AS cor0
----
15
15
9

query I rowsort
SELECT ALL - tab2.col2 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT col1 * - 40 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT - col1 * - col1 + col2 * - col2 FROM tab0 AS cor0
----
1557
6307
9408

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

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

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

query I rowsort
SELECT - col2 + + 17 FROM tab1 AS cor0
----
-37
-40
-79

query I rowsort
SELECT + col1 * 42 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT 9 + col0 * col2 AS col2 FROM tab1 AS cor0
----
171
3657
7689

query I rowsort
SELECT 68 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # use DIV operator for integer division
query I rowsort label-1089
SELECT + 85 DIV col1 AS col2 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-1089
SELECT + 85 / col1 AS col2 FROM tab2 AS cor0
----
1
2
5

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

query I rowsort
SELECT - + 31 * + 74 AS col0 FROM tab2 AS cor0
----
-2294
-2294
-2294

query I rowsort
SELECT col1 + - 89 AS col1 FROM tab0 AS cor0
----
-3
2
8

query I rowsort
SELECT ALL 30 * + col1 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT ( col0 ) + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col0 col1 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + col0 * ( 35 ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
218
2704
2727

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
82

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1100
SELECT - + col1 + - col1 DIV - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-1100
SELECT - + col1 + - col1 / - col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - col2 + + cor0.col0 * col0 + cor0.col0 * - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-107873
-46670
-5081

query I rowsort
SELECT DISTINCT - col2 * - 10 FROM tab2
----
260
270
380

query I rowsort
SELECT ALL - + 81 AS col1 FROM tab0 AS cor0
----
-81
-81
-81

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

query I rowsort
SELECT DISTINCT + 51 FROM tab0, tab2 AS cor0
----
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + tab2.col1 col1 FROM tab2
----
137
38
96

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

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

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

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

query I rowsort
SELECT DISTINCT - + col1 * col2 + - ( col2 ) * + col2 AS col0 FROM tab1 cor0
----
-10464
-3819
-4320

query I rowsort
SELECT - + col1 + cor0.col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 25 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT + + col1 + col0 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

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

query I rowsort
SELECT ALL + + 95 * - col2 - + 49 * 60 * col1 FROM tab1 AS cor0
----
-34815
-47340
-81570

query I rowsort
SELECT - col0 * cor0.col0 + - col1 AS col2 FROM tab2 cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT - + col2 + col1 + + col2 FROM tab0 AS cor0
----
86
91
97

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

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL col1 * + col1 - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + - 9 * col2 FROM tab1 AS cor0
----
-486
-513
-864

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

query I rowsort
SELECT col2 * col2 + - 65 FROM tab2 cor0
----
1379
611
664

query I rowsort
SELECT - - cor0.col1 * 5 + + cor0.col2 * col1 + + 1 FROM tab0 AS cor0
----
3269
583
7918

query I rowsort
SELECT ALL - col2 + col1 + col0 * - col1 FROM tab2 AS cor0
----
-1364
-213
-4569

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

query I rowsort
SELECT col1 * + ( cor0.col1 * col0 ) + - col1 * - 44 FROM tab0 AS cor0
----
181288
333583
741013

query I rowsort
SELECT ALL + 66 + col2 * col0 FROM tab2
----
2094
255
3068

query I rowsort
SELECT ALL - + col1 + + col0 * + col1 * + 38 AS col1 FROM tab0 AS cor0
----
128913
307671
78346

query I rowsort
SELECT DISTINCT - - 97 FROM tab1 AS cor0
----
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1130
SELECT - cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1130
SELECT - cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1131
SELECT DISTINCT + col0 * + CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + col0 * + CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 + + 25 * col2 col1 FROM tab0 AS cor0
----
2078
53
853

onlyif mysql # use DIV operator for integer division
query I rowsort label-1133
SELECT DISTINCT - ( col0 ) DIV tab1.col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT - ( col0 ) / tab1.col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 25 * col1 col0 FROM tab0
----
2183
2357
2426

query I rowsort
SELECT ( col2 ) * col1 + col2 * - col2 FROM tab0
----
1749
738
96

query I rowsort
SELECT + 64 * col2 + - col1 FROM tab2
----
1605
1697
2415

query I rowsort
SELECT ALL - 23 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT DISTINCT + + 46 DIV - 87 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT + + 46 / - 87 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1139
SELECT - CAST( cor0.col0 AS SIGNED ) DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1139
SELECT - CAST ( cor0.col0 AS INTEGER ) / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + 8 AS col1 FROM tab2 cor0
----
-136
-248
-472

query I rowsort
SELECT + - 97 * - col2 AS col0 FROM tab2 cor0
----
2522
2619
3686

query I rowsort
SELECT 51 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT + 89 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT + 92 FROM tab0, tab1 cor0
----
92

query I rowsort
SELECT DISTINCT + col1 * + col1 + + 40 + + col0 AS col2 FROM tab0 AS cor0
----
7460
8410
9484

query I rowsort
SELECT DISTINCT col2 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL col1 * + 48 + - col1 AS col2 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT ALL col1 + col0 * 51 - col0 AS col1 FROM tab1 AS cor0
----
176
3210
4013

query I rowsort
SELECT DISTINCT + col2 + - ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 + - col2 col2 FROM tab2 AS cor0
----
-118
-119
-130

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
1461
735
760

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

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

query I rowsort
SELECT 25 + col1 FROM tab2 cor0
----
42
56
84

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

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

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

query I rowsort
SELECT - col0 + 9 AS col0 FROM tab2 AS cor0
----
-69
-70
2

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

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

query I rowsort
SELECT 60 + + col0 AS col0 FROM tab0 AS cor0
----
149
84
95

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

query I rowsort
SELECT DISTINCT + 88 - + 22 FROM tab2 AS cor0
----
66

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

query I rowsort
SELECT + 38 * 24 AS col2 FROM tab1 cor0
----
912
912
912

query I rowsort
SELECT DISTINCT - 91 * - col2 AS col0 FROM tab1 AS cor0
----
4914
5187
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( col0 ) col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + + 55 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + + 74 AS col2 FROM tab2 cor0
----
74

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

query I rowsort
SELECT - ( col2 ) * 83 AS col0 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT + 31 + + col2 * 50 FROM tab0 cor0
----
1681
4131
81

query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1175
SELECT cor0.col2 * col2 DIV + col0 FROM tab0 AS cor0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-1175
SELECT cor0.col2 * col2 / + col0 FROM tab0 AS cor0
----
0
45
75

query I rowsort
SELECT - + 45 * - cor0.col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
10988
2277
80

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

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

query I rowsort
SELECT ALL - col0 * col2 * 17 FROM tab0
----
-124066
-13464
-595

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

query I rowsort
SELECT - 83 * + col2 + + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-675
1293
3312

query I rowsort
SELECT cor0.col2 * - col2 + + ( - col0 + col1 ) FROM tab1 AS cor0
----
-2893
-3303
-9283

query I rowsort
SELECT tab0.col0 * col2 + col0 - + 86 * - col2 FROM tab0
----
14439
156
3654

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

query I rowsort
SELECT + - col2 * 73 + 35 FROM tab2 AS cor0
----
-1863
-1936
-2739

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

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

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

query I rowsort
SELECT ALL + col0 + 31 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1099
-728
-830

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

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

query I rowsort
SELECT col0 + + tab0.col2 * 39 - 53 * - col2 FROM tab0
----
127
3060
7633

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

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

query I rowsort
SELECT + - col1 + 96 FROM tab0 AS cor0
----
-1
10
5

query I rowsort
SELECT DISTINCT - 9 FROM tab2, tab2 cor0
----
-9

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

query I rowsort
SELECT ALL col0 * 25 + col0 * col0 AS col2 FROM tab0 AS cor0
----
10146
1176
2100

query I rowsort
SELECT ALL + + col0 * + ( + ( col0 ) * + col1 + + 15 ) FROM tab2 AS cor0
----
107282
1624
360126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 28 col2 FROM tab0 AS cor0
----
2408
2548
2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-1201
SELECT DISTINCT + + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + + cor0.col1 / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT col1 * cor0.col0 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

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

query I rowsort
SELECT ALL + - col0 + - 59 FROM tab1 cor0
----
-123
-139
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - 92 col0 FROM tab0 AS cor0
----
-125
-174
-93

query I rowsort
SELECT DISTINCT + - 65 FROM tab0, tab0 cor0, tab1, tab2 cor1
----
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1207
SELECT CAST( - 77 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-1207
SELECT CAST ( - 77 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

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

query I rowsort
SELECT ALL + + ( 39 ) + col2 FROM tab1 AS cor0
----
135
93
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * - ( + col1 ) col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT - 64 + col0 * + 51 FROM tab1 AS cor0
----
3200
4016
89

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

query I rowsort
SELECT ALL 72 + col1 * col2 AS col2 FROM tab1 cor0
----
1320
1476
642

query I rowsort
SELECT - 41 + col2 * - col1 FROM tab1 AS cor0
----
-1289
-1445
-611

query I rowsort
SELECT - - 37 * cor0.col0 + 57 AS col1 FROM tab2 AS cor0
----
2943
2980
316

onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT DISTINCT cor0.col2 * + col2 + col1 DIV 9 col0 FROM tab2 AS cor0
----
1445
682
732

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT cor0.col2 * + col2 + col1 / 9 col0 FROM tab2 AS cor0
----
1445
682
732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col2 * - 99 col1 FROM tab1 AS cor0
----
-5292
-5586
-9408

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to 28a820d445f1d1e09fd3c7443bd16e29

query I rowsort
SELECT ALL 69 * + 91 FROM tab2, tab0 AS cor0
----
9 values hashing to ecc462e2cec6707381b86ea2f4f44f83

query I rowsort
SELECT DISTINCT col2 * col0 - - 28 * - col2 FROM tab0 AS cor0
----
-132
5002
7

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

query I rowsort
SELECT DISTINCT - cor0.col1 + ( col0 ) + cor0.col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * 52 FROM tab1 AS cor0
----
1352
520
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT DISTINCT - col1 DIV - CAST( 59 AS SIGNED ) + - col1 * - 31 FROM tab0 AS cor0
----
2667
2822
3008

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT - col1 / - CAST ( 59 AS INTEGER ) + - col1 * - 31 FROM tab0 AS cor0
----
2667
2822
3008

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1227
SELECT ALL col2 + + CAST( - 25 AS SIGNED ) FROM tab0 AS cor0
----
-24
57
8

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL col2 + + CAST ( - 25 AS INTEGER ) FROM tab0 AS cor0
----
-24
57
8

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

query I rowsort
SELECT - col0 + 5 * cor0.col2 FROM tab0 AS cor0
----
-30
141
321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT + - 42 + col1 * - col2 AS col0 FROM tab1 cor0
----
-1290
-1446
-612

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-1233
SELECT - cor1.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1233
SELECT - cor1.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col1 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT ALL + col2 * - col0 + col0 * col1 FROM tab1 AS cor0
----
-3008
-6640
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - - col2 * 43 col1 FROM tab0 AS cor0
----
1395
3437
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1239
SELECT ALL - cor0.col1 DIV - col0 col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL - cor0.col1 / - col0 col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT col1 * col2 + + 26 FROM tab1 AS cor0
----
1274
1430
596

query I rowsort
SELECT ALL + + 41 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 41a36cb645b32ee4314d66c764cd1bf9

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT 42 FROM tab2 cor0
----
42

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

query I rowsort
SELECT DISTINCT col2 * 58 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT col1 + - 42 AS col0 FROM tab1 AS cor0
----
-16
-29
-32

query I rowsort
SELECT + col2 * 80 FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT + tab0.col2 * + col2 + - 60 AS col2 FROM tab0
----
-59
1029
6664

query I rowsort
SELECT - 95 + tab2.col1 AS col2 FROM tab2
----
-36
-64
-78

query I rowsort
SELECT ALL cor0.col1 + 25 - 69 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f011437267154aaf608d952cd30a17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1251
SELECT col2 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-1251
SELECT col2 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1252
SELECT - col1 * ( 11 ) * tab0.col0 + CAST( - 98 AS SIGNED ) DIV + col1 FROM tab0
----
-22705
-37346
-89090

skipif mysql # not compatible
query I rowsort label-1252
SELECT - col1 * ( 11 ) * tab0.col0 + CAST ( - 98 AS INTEGER ) / + col1 FROM tab0
----
-22705
-37346
-89090

onlyif mysql # use DIV operator for integer division
query I rowsort label-1253
SELECT - 46 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 46 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT col0 * col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-1255
SELECT ALL + col2 DIV - col1 col2 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + col2 / - col1 col2 FROM tab1
----
-2
-5
-7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1257
SELECT ALL + col1 DIV 35 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + col1 / 35 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1258
SELECT - col1 + + 25 DIV - 92 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-1258
SELECT - col1 + + 25 / - 92 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

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

query I rowsort
SELECT DISTINCT - col2 * - 8 AS col0 FROM tab2
----
208
216
304

onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT DISTINCT + col2 * - col2 DIV - col2 + col2 AS col1 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT + col2 * - col2 / - col2 + col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT - ( - col0 ) + tab0.col2 * 80 FROM tab0
----
115
2664
6649

query I rowsort
SELECT - col2 * col0 + + col1 FROM tab2 cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-1264
SELECT 26 + - col0 * col0 DIV + col0 FROM tab1 AS cor0
----
-38
-54
23

skipif mysql # not compatible
query I rowsort label-1264
SELECT 26 + - col0 * col0 / + col0 FROM tab1 AS cor0
----
-38
-54
23

query I rowsort
SELECT - - 81 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL 27 + col2 * + col1 FROM tab1
----
1275
1431
597

query I rowsort
SELECT ( + 52 ) + - col0 * - col1 + + ( + col0 * 86 ) AS col2 FROM tab2
----
11362
8189
871

query I rowsort
SELECT ALL + 91 * col0 + - col1 + + col1 AS col0 FROM tab2
----
637
7098
7189

query I rowsort
SELECT - 19 AS col2 FROM tab0
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-1270
SELECT + col1 + cor0.col1 DIV + ( - col2 ) FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-1270
SELECT + col1 + cor0.col1 / + ( - col2 ) FROM tab0 AS cor0
----
0
84
90

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

skipif mysql # not compatible
query I rowsort label-1271
SELECT - cor0.col0 / - col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT + col1 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - 72 + col1 * 23 AS col2 FROM tab2 cor0
----
1285
319
641

onlyif mysql # use DIV operator for integer division
query I rowsort label-1274
SELECT + col0 - cor0.col0 DIV 59 AS col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-1274
SELECT + col0 - cor0.col0 / 59 AS col0 FROM tab2 AS cor0
----
7
77
78

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

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

query I rowsort
SELECT + 48 * col1 + - 16 AS col1 FROM tab2 AS cor0
----
1472
2816
800

query I rowsort
SELECT + + 71 + - col0 * col2 + cor0.col2 FROM tab1 AS cor0
----
-3520
-37
-7513

query I rowsort
SELECT 97 FROM tab1, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT 57 * + col0 AS col0 FROM tab0
----
1368
1995
5073

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

query I rowsort
SELECT 88 + 72 AS col0 FROM tab0 AS cor0
----
160
160
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col2 * col1 col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - - 59 * col1 FROM tab2 AS cor0
----
1003
1829
3481

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

query I rowsort
SELECT - - 67 + col2 FROM tab1 AS cor0
----
121
124
163

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

query I rowsort
SELECT DISTINCT - ( 48 ) FROM tab1, tab0, tab1 AS cor0
----
-48

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2
----
90

query I rowsort
SELECT DISTINCT + 83 + col1 AS col0 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT DISTINCT 1 + - col2 * cor0.col0 FROM tab1 cor0
----
-161
-3647
-7679

query I rowsort
SELECT - col0 * + col0 * 81 + + col0 FROM tab1 AS cor0
----
-331712
-518320
-726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col0 * col0 col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT col2 * - 99 FROM tab1
----
-5346
-5643
-9504

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

query I rowsort
SELECT - - col1 + - col0 + 50 FROM tab1 cor0
----
-17
-4
73

query I rowsort
SELECT col2 * + 97 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT + col2 - 69 AS col2 FROM tab2 AS cor0
----
-31
-42
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT - col0 + + col2 DIV + 42 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-6
18
52

skipif mysql # not compatible
query I rowsort label-1299
SELECT - col0 + + col2 / + 42 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-6
18
52

query I rowsort
SELECT DISTINCT + col1 + + ( col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98

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

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT - col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 74 * col0 + + 46 + - col0 FROM tab0
----
1798
2601
6543

query I rowsort
SELECT cor0.col0 * - 67 - col1 AS col2 FROM tab1 AS cor0
----
-227
-4298
-5373

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT + + col1 * col1 + - col0 * col1 / + cor0.col0 + col1 * col2 FROM tab0 AS cor0
----
10148
15652
9409

query I rowsort
SELECT col1 * 35 - ( - col0 * ( + col1 ) + + col0 ) FROM tab0 cor0
----
11195
5050
6755

query I rowsort
SELECT ALL + 23 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + 20 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 + 31 col2 FROM tab0 AS cor0
----
118
118
118

query I rowsort
SELECT col0 * + col1 + col0 * ( col0 ) * cor0.col0 + + 3 * col0 AS col1 FROM tab1 cor0
----
114
262976
513280

query I rowsort
SELECT ALL - col0 * col1 - col0 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT - 70 FROM tab1, tab0 cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

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

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

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

query I rowsort
SELECT ALL - ( 89 ) * col0 + + col0 AS col0 FROM tab2 AS cor0
----
-616
-6864
-6952

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

query I rowsort
SELECT 42 + 50 AS col0 FROM tab2 AS cor0
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT DISTINCT + + CAST( + 94 AS SIGNED ) DIV + cor0.col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + + CAST ( + 94 AS INTEGER ) / + cor0.col1 FROM tab1 AS cor0
----
3
7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT + col2 * col0 + col1 DIV - col1 FROM tab0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-1320
SELECT + col2 * col0 + col1 / - col1 FROM tab0
----
34
7297
791

query I rowsort
SELECT DISTINCT - col1 - 57 FROM tab0
----
-143
-148
-154

query I rowsort
SELECT + col1 + + col1 - tab1.col0 FROM tab1
----
-44
-54
49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1325
SELECT - - 56 DIV - col0 + col1 * 66 AS col1 FROM tab0 cor0
----
5674
6006
6401

skipif mysql # not compatible
query I rowsort label-1325
SELECT - - 56 / - col0 + col1 * 66 AS col1 FROM tab0 cor0
----
5674
6006
6401

query I rowsort
SELECT ALL col2 * 24 + col1 FROM tab0
----
121
2059
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-1327
SELECT - + 54 DIV cor0.col0 + cor0.col0 - + col1 * 58 * - col2 FROM tab1 AS cor0
----
33124
72464
81417

skipif mysql # not compatible
query I rowsort label-1327
SELECT - + 54 / cor0.col0 + cor0.col0 - + col1 * 58 * - col2 FROM tab1 AS cor0
----
33124
72464
81417

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 11 AS REAL ) * col2 + 49 * ( - cor0.col0 + + ( ( col0 ) ) ) FROM tab2 AS cor0
----
286
297
418

onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT ALL - + col2 + 19 DIV + col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-37

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - + col2 + 19 / + col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-37

query I rowsort
SELECT - ( col2 ) * - col2 + - 22 * ( + cor0.col0 ) * 87 + + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-115599
-136224
-2664

query I rowsort
SELECT ALL + 51 + 51 * col0 AS col1 FROM tab1 AS cor0
----
204
3315
4131

query I rowsort
SELECT DISTINCT + + 58 * 85 AS col1 FROM tab2 AS cor0
----
4930

query I rowsort
SELECT + 23 + + col1 FROM tab0 AS cor0
----
109
114
120

query I rowsort
SELECT ALL - col2 + + col0 * + cor0.col2 * - 17 + col0 AS col1 FROM tab0 AS cor0
----
-124059
-13473
-561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + + cor0.col2 col0 FROM tab2 AS cor0
----
-162
-2002
-2964

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1338
SELECT ALL - cor0.col0 + CAST( col0 AS SIGNED ) + cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - cor0.col0 + CAST ( col0 AS INTEGER ) + cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab0
----
38

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

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT col2 - + ( col1 ) * + col1 / CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1342
SELECT col0 - - CAST( NULL AS DECIMAL ) * 5 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT col0 - - CAST ( NULL AS REAL ) * 5 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - ( - col0 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 98 + - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 14c81aa2f73150f2d8e151618aab668e

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

query I rowsort
SELECT col2 + - col2 - - 70 * - col1 FROM tab2
----
-1190
-2170
-4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 6 col0 FROM tab2 AS cor0
----
-156
-162
-228

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * 21 col1 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT - col0 * col1 * + col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

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

query I rowsort
SELECT + + col0 + - col2 * col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
233536
489
614480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

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

skipif mysql # not compatible
query I rowsort label-1354
SELECT col2 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 72 col0 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT + - cor0.col0 * ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT ALL + col1 DIV - 5 col0 FROM tab1
----
-2
-2
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + col1 / - 5 col0 FROM tab1
----
-2
-2
-5

query I rowsort
SELECT ALL col1 * + col2 * 1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col0 * - col2 * col2 AS col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT + col0 * - 20 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT - + col2 * + col1 + 9 * - col0 AS col1 FROM tab0 AS cor0
----
-3054
-412
-8263

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

query I rowsort
SELECT ALL - col2 + + 21 AS col0 FROM tab1 AS cor0
----
-33
-36
-75

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

skipif mysql # not compatible
query I rowsort label-1366
SELECT + + cor0.col0 / - col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 35 * 45 * col1 + + col0 FROM tab1
----
-15686
-20395
-40947

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1369
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1369
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ( + col1 ) + - tab2.col0 FROM tab2
----
-19
-62
24

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

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

query I rowsort
SELECT DISTINCT - - 70 + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1374
-606
-659

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT ALL + col2 DIV - col1 + cor0.col1 * - col2 col2 FROM tab1 AS cor0
----
-1255
-1406
-575

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + col2 / - col1 + cor0.col1 * - col2 col2 FROM tab1 AS cor0
----
-1255
-1406
-575

onlyif mysql # use DIV operator for integer division
query I rowsort label-1375
SELECT - col2 DIV col0 - + col2 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-1375
SELECT - col2 / col0 - + col2 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

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

query I rowsort
SELECT ( - 30 ) * + col0 + col2 * col1 FROM tab2 AS cor0
----
-1724
-806
627

query I rowsort
SELECT ALL - col0 * cor0.col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + - 9 FROM tab0 cor0
----
-9
-9
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT ALL - - 60 DIV + col2 + - 97 + col0 FROM tab0 AS cor0
----
-2
-72
-8

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - - 60 / + col2 + - 97 + col0 FROM tab0 AS cor0
----
-2
-72
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT ALL col2 DIV col0 + cor0.col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL col2 / col0 + cor0.col1 FROM tab2 AS cor0
----
17
34
59

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

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

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

query I rowsort
SELECT - + col1 + - cor0.col1 * + 77 AS col1 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT + 55 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 3bb347264dd94dc95e5bdb885082db66

query I rowsort
SELECT ALL cor0.col0 * + col2 + + 60 * col0 AS col1 FROM tab0 AS cor0
----
12638
2135
2232

query I rowsort
SELECT ALL - 29 * + col1 + 4 FROM tab2 AS cor0
----
-1707
-489
-895

query I rowsort
SELECT ALL - 93 * - col2 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT - + col1 * col1 + + ( + col1 ) FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT + col0 * + col2 + + ( col0 ) FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + col0 * + col0 + 34 AS col2 FROM tab1 cor0
----
4130
43
6434

query I rowsort
SELECT + col1 + - col1 * 14 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT + cor0.col0 * - col1 + + col2 * - col1 + cor0.col1 FROM tab0 AS cor0
----
-15470
-3395
-4816

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

skipif mysql # not compatible
query I rowsort label-1394
SELECT + + col0 / + col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ( + col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col0 FROM tab1, tab0 cor0
----
24
35
89

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

query I rowsort
SELECT ALL col1 + col0 * col1 + col1 AS col2 FROM tab1
----
1066
130
660

query I rowsort
SELECT DISTINCT col2 + ( col2 ) * ( col0 ) FROM tab2
----
2054
216
3040

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

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

query I rowsort
SELECT ( col0 ) * + 85 + col2 AS col2 FROM tab2 AS cor0
----
622
6656
6753

query I rowsort
SELECT + 69 + col0 AS col0 FROM tab1 cor0
----
133
149
72

query I rowsort
SELECT + 23 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + ( 54 ) FROM tab2
----
54
54
54

query I rowsort
SELECT - 81 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT ALL 58 * cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 539babcdb4cdf7445a2706d8b843e193

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

query I rowsort
SELECT ALL 32 * + tab1.col2 + - col0 AS col1 FROM tab1
----
1725
1760
2992

query I rowsort
SELECT ALL cor0.col0 * tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 71e1c6f2098b2226c685e662111e4001

query I rowsort
SELECT DISTINCT - col1 + - ( col0 ) AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL cor0.col2 + col2 + col0 AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL col1 * + 96 * col0 FROM tab0 cor0
----
198144
325920
777504

query I rowsort
SELECT ALL - - 60 + - 57 * + col0 FROM tab0 AS cor0
----
-1308
-1935
-5013

query I rowsort
SELECT ALL col0 - 38 * + col2 FROM tab0
----
-1230
-3
-3027

onlyif mysql # use DIV operator for integer division
query I rowsort label-1415
SELECT ALL col1 - - ( col2 ) DIV col0 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL col1 - - ( col2 ) / col0 FROM tab0
----
87
91
97

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1417
SELECT DISTINCT ( ( - col0 ) ) DIV - 1 + + col1 + - col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT ( ( - col0 ) ) / - 1 + + col1 + - col1 FROM tab2
----
7
78
79

query I rowsort
SELECT + cor0.col1 + 1 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 1a56768f5118c30343c955aaa945a07b

query I rowsort
SELECT DISTINCT tab0.col0 + - 2 * - col2 * + col2 + - col1 FROM tab0
----
-60
13446
2116

query I rowsort
SELECT DISTINCT + 57 * + tab2.col1 + - col0 FROM tab2
----
1760
3285
890

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

skipif mysql # not compatible
query I rowsort label-1421
SELECT CAST ( col1 AS INTEGER ) * col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1423
SELECT DISTINCT CAST( 17 AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
170
221
442

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT CAST ( 17 AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT - + ( cor0.col1 ) * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1425
SELECT - + 93 * col0 + col2 DIV - col2 FROM tab0 AS cor0
----
-2233
-3256
-8278

skipif mysql # not compatible
query I rowsort label-1425
SELECT - + 93 * col0 + col2 / - col2 FROM tab0 AS cor0
----
-2233
-3256
-8278

query I rowsort
SELECT ALL + 51 * tab2.col1 AS col1 FROM tab2
----
1581
3009
867

query I rowsort
SELECT + 79 + col2 FROM tab0 AS cor0
----
112
161
80

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

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

skipif mysql # not compatible
query I rowsort label-1429
SELECT col2 + CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
164
2
66

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

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

query I rowsort
SELECT + col1 + 20 AS col2 FROM tab2 AS cor0
----
37
51
79

query I rowsort
SELECT DISTINCT + col1 * col0 * col0 + + col1 AS col2 FROM tab0 cor0
----
118922
49622
720902

query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1434
SELECT - col2 * col2 - col0 DIV - col0 col1 FROM tab2 AS cor0
----
-1443
-675
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1434
SELECT - col2 * col2 - col0 / - col0 col1 FROM tab2 AS cor0
----
-1443
-675
-728

query I rowsort
SELECT DISTINCT + cor0.col0 + 62 AS col0 FROM tab0 AS cor0
----
151
86
97

query I rowsort
SELECT + col2 - + 63 * col2 AS col1 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT ALL - col0 * + 33 AS col0 FROM tab0 AS cor0
----
-1155
-2937
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1438
SELECT - - col1 DIV 43 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1438
SELECT - - col1 / 43 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT col2 + ( + 31 + tab2.col0 ) FROM tab2
----
135
148
65

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

query I rowsort
SELECT ALL col1 + + col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL col2 * 41 + col2 + - col2 FROM tab2 AS cor0
----
1066
1107
1558

query I rowsort
SELECT - col0 + 31 FROM tab2 AS cor0
----
-47
-48
24

query I rowsort
SELECT DISTINCT - - ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

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

query I rowsort
SELECT - ( 72 ) * + col2 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT ALL col0 * col2 - col0 * - col0 AS col0 FROM tab2 cor0
----
238
8112
9243

query I rowsort
SELECT - 18 * col0 - + col1 FROM tab2 AS cor0
----
-1439
-1463
-157

onlyif mysql # use DIV operator for integer division
query I rowsort label-1450
SELECT ALL + col1 DIV 71 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL + col1 / 71 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 32 * col2 - col0 AS col0 FROM tab1 AS cor0
----
1725
1760
2992

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1453
SELECT DISTINCT + col1 + 2 * col1 DIV + ( cor0.col2 ) FROM tab0 AS cor0
----
291
91
93

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT + col1 + 2 * col1 / + ( cor0.col2 ) FROM tab0 AS cor0
----
291
91
93

query I rowsort
SELECT ALL ( 86 ) - + cor0.col2 AS col2 FROM tab0 AS cor0
----
4
53
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col0 col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col1 * col1 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT ALL - 97 - ( col1 ) AS col1 FROM tab2 cor0
----
-114
-128
-156

query I rowsort
SELECT + col0 * ( col2 ) + + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL 58 * - col2 * 14 AS col2 FROM tab0 AS cor0
----
-26796
-66584
-812

query I rowsort
SELECT DISTINCT + 82 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1122
160
722

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1464
SELECT + - 75 + col0 * + CAST( + 62 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
111
3893
4885

skipif mysql # not compatible
query I rowsort label-1464
SELECT + - 75 + col0 * + CAST ( + 62 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
111
3893
4885

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab1 AS cor0
----
24

query I rowsort
SELECT - 0 * - cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL - + col2 + 80 FROM tab2 AS cor0
----
42
53
54

query I rowsort
SELECT DISTINCT - - col2 * - 60 AS col0 FROM tab0 cor0
----
-1980
-4920
-60

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

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

query I rowsort
SELECT DISTINCT 63 * col0 FROM tab0
----
1512
2205
5607

query I rowsort
SELECT - ( col2 ) * - col2 + 0 * - cor0.col0 * col1 + + 27 AS col1 FROM tab1 AS cor0
----
2943
3276
9243

query I rowsort
SELECT DISTINCT - col1 * + 57 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT DISTINCT - cor0.col2 * 98 AS col2 FROM tab1 AS cor0
----
-5292
-5586
-9408

query I rowsort
SELECT col2 + col1 + + col0 * 74 * + col1 FROM tab2 AS cor0
----
16116
340633
99437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * + col0 col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1479
SELECT DISTINCT - 64 DIV + 2 AS col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT - 64 / + 2 AS col1 FROM tab0 AS cor0
----
-32

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

query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1484
SELECT + - CAST( - 69 AS SIGNED ) * col0 * ( cor0.col0 * + col2 ) - col1 FROM tab2 cor0
----
10914637
16363885
91256

skipif mysql # not compatible
query I rowsort label-1484
SELECT + - CAST ( - 69 AS INTEGER ) * col0 * ( cor0.col0 * + col2 ) - col1 FROM tab2 cor0
----
10914637
16363885
91256

query I rowsort
SELECT - + 83 + - col1 FROM tab0 cor0
----
-169
-174
-180

query I rowsort
SELECT - + 26 * col2 FROM tab0 AS cor0
----
-2132
-26
-858

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT col0 DIV + col2 + 56 FROM tab0
----
56
57
91

skipif mysql # not compatible
query I rowsort label-1489
SELECT col0 / + col2 + 56 FROM tab0
----
56
57
91

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT + tab2.col1 / - tab2.col0 FROM tab2, tab2 AS cor0
----
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

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

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

query I rowsort
SELECT ALL col0 + + col2 * - col1 * + col1 AS col1 FROM tab0
----
-244044
-678953
-9374

query I rowsort
SELECT ALL - col0 + - 40 * - col0 * + col0 FROM tab2
----
1953
243282
249561

query I rowsort
SELECT 86 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL ( - 54 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL - 40 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT - col0 + col1 + col2 DIV - col2 AS col0 FROM tab1 cor0
----
-55
-68
22

skipif mysql # not compatible
query I rowsort label-1499
SELECT - col0 + col1 + col2 / - col2 AS col0 FROM tab1 cor0
----
-55
-68
22

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

skipif mysql # not compatible
query I rowsort label-1500
SELECT + col0 * + CAST ( + 97 AS INTEGER ) + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * ( col1 ) + - col0 FROM tab0 AS cor0
----
2814
62
7373

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab0 AS cor2, tab1
----
13122 values hashing to 7f7bca88fe240757a372172aa94d179f

query I rowsort
SELECT 76 + tab2.col0 + tab2.col2 AS col2 FROM tab2
----
110
180
193

query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab1, tab1 AS cor0
----
95

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

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

query I rowsort
SELECT col1 + + col2 + col0 * + ( col2 ) FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - 1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1 AS cor0 WHERE NULL < NULL
----

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

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

query I rowsort
SELECT ALL - 60 + col0 FROM tab2 AS cor0
----
-53
18
19

query I rowsort
SELECT - col0 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT - 22 FROM tab0
----
-22

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

query I rowsort
SELECT - - col0 + - 21 AS col2 FROM tab1 AS cor0
----
-18
43
59

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

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

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

query I rowsort
SELECT DISTINCT + 23 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * ( - col1 ) col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL 57 * col2 AS col0 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT + + 2 + col0 * + col2 FROM tab0 AS cor0
----
37
7300
794

onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT ALL col0 * col2 DIV col0 AS col0 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL col0 * col2 / col0 AS col0 FROM tab0 cor0
----
1
33
82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col0 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT + col2 + tab1.col2 + + tab1.col0 FROM tab1
----
111
178
272

query I rowsort
SELECT DISTINCT col1 * - col1 - 2 * col1 * - col0 AS col2 FROM tab2
----
-527
2397
5723

query I rowsort
SELECT tab0.col2 * + col2 + + col1 AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT col2 * col1 + col2 * + col2 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT DISTINCT - col2 - - col2 FROM tab2
----
0

query I rowsort
SELECT + tab2.col2 * col0 + 6 * col1 * + col2 - col0 * + col0 FROM tab2
----
5148
5162
637

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT DISTINCT col1 + + col0 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT col1 + + col0 / col1 FROM tab0 AS cor0
----
86
91
97

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT CAST ( + 52 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + col1 * col2 * col2 + col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
21546
22410
37856

query I rowsort
SELECT ALL col2 * 46 + + col2 AS col2 FROM tab2
----
1222
1269
1786

query I rowsort
SELECT DISTINCT - col2 * - ( tab2.col1 ) AS col2 FROM tab2
----
1534
646
837

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

query I rowsort
SELECT + 71 * 46 AS col1 FROM tab2 cor0
----
3266
3266
3266

query I rowsort
SELECT - 71 + - col0 AS col0 FROM tab1 AS cor0
----
-135
-151
-74

query I rowsort
SELECT + ( cor0.col2 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1544
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col1 + + CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
164
249
679

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col1 + + CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
164
249
679

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

query I rowsort
SELECT ALL + ( - col2 ) - col1 FROM tab0 AS cor0
----
-119
-173
-98

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 * col1 + col1 col0 FROM tab1 AS cor0
----
1274
490
637

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

skipif mysql # not compatible
query I rowsort label-1549
SELECT + CAST ( col0 AS INTEGER ) + col2 FROM tab2
----
104
117
34

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

query I rowsort
SELECT DISTINCT + - col1 * + col2 + 82 AS col1 FROM tab2 AS cor0
----
-1452
-564
-755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * col2 col2 FROM tab0 AS cor0
----
-62
706
7207

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

query I rowsort
SELECT - col2 * + col2 * - 59 AS col0 FROM tab2 cor0
----
39884
43011
85196

onlyif mysql # use DIV operator for integer division
query I rowsort label-1555
SELECT DISTINCT + ( col1 ) DIV + cor0.col0 + ( col1 * col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + ( col1 ) / + cor0.col0 + ( col1 * col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
86

query I rowsort
SELECT 90 AS col1 FROM tab2
----
90
90
90

query I rowsort
SELECT ALL col2 + + col2 * col0 * - col2 + + col2 FROM tab2 AS cor0
----
-114000
-5049
-52676

query I rowsort
SELECT + ( + col0 ) + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + + col1 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - 24 * col1 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT ALL + + 4 + col1 * 47 FROM tab0 cor0
----
4046
4281
4563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 65 * + cor0.col2 col1 FROM tab0 AS cor0
----
-2145
-5330
-65

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

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

query I rowsort
SELECT ALL 28 + + col1 * 2 FROM tab2 AS cor0
----
146
62
90

query I rowsort
SELECT DISTINCT + + 55 + col0 * col1 FROM tab1 AS cor0
----
1095
133
695

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + - col2 / col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + col1 + - col2 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col1 + col0 + - col0 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - col0 + - 23 AS col2 FROM tab1 AS cor0
----
-103
-26
-87

query I rowsort
SELECT - col1 * - ( col2 ) + + col1 + + col0 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT ALL - col0 + ( - col2 + + col2 ) * col0 AS col0 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1573
SELECT DISTINCT cor0.col1 DIV - cor0.col2 - col1 * - col1 col2 FROM tab0 AS cor0
----
7394
8280
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT cor0.col1 / - cor0.col2 - col1 * - col1 col2 FROM tab0 AS cor0
----
7394
8280
9312

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

query I rowsort
SELECT DISTINCT col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - cor0.col1 * 86 FROM tab2 AS cor0
----
-1462
-2666
-5074

onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT ALL + col1 + - col1 DIV + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + col1 + - col1 / + col1 FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * + 77 col1 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT + - col1 * + cor0.col1 * col2 + - col0 FROM tab1 AS cor0
----
-16304
-36507
-5764

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

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

query I rowsort
SELECT DISTINCT - col2 * col2 + - 96 - col2 FROM tab0 AS cor0
----
-1218
-6902
-98

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1584
SELECT ALL + col2 - - CAST( col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL + col2 - - CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT ( col0 ) * + cor0.col2 * 67 FROM tab1 cor0
----
10854
244416
514560

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1588
SELECT DISTINCT - 92 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-30

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT - 92 / + col0 AS col0 FROM tab1 AS cor0
----
-1
-30

query I rowsort
SELECT - col2 + - 50 FROM tab2 AS cor0
----
-76
-77
-88

query I rowsort
SELECT - 54 * - 25 + col1 AS col2 FROM tab1 AS cor0
----
1360
1363
1376

query I rowsort
SELECT cor0.col0 * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT DISTINCT - + cor0.col2 * - 62 - col2 AS col0 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
34

query I rowsort
SELECT - - col0 * + col0 + - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT + col1 * col2 + 65 FROM tab1 AS cor0
----
1313
1469
635

query I rowsort
SELECT ALL 1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

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

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * 9 FROM tab0 AS cor0
----
-774
-819
-873

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

skipif mysql # not compatible
query I rowsort label-1599
SELECT - col2 / + ( + col2 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col1 + col1 * col1 FROM tab2 cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-1601
SELECT - col0 + - col0 DIV col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-1601
SELECT - col0 + - col0 / col0 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab2 AS cor0
----
61

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

query I rowsort
SELECT ALL 5 + col1 FROM tab1 AS cor0
----
15
18
31

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

query I rowsort
SELECT ALL 60 FROM tab2 cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - col1 * 59 AS col2 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT ALL - 65 * + col0 FROM tab2 AS cor0
----
-455
-5070
-5135

query I rowsort
SELECT DISTINCT 29 * - col1 + cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
-190
-208
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1610
SELECT + - CAST( col2 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-1610
SELECT + - CAST ( col2 AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - 17 * - col1 AS col0 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT ALL ( - cor0.col1 ) * col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + - 75 AS col2 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT 42 * - col2 AS col2 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT - ( - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 35 * tab0.col2 * + tab0.col1 AS col1 FROM tab0
----
261170
3395
99330

onlyif mysql # use DIV operator for integer division
query I rowsort label-1617
SELECT col2 * col2 DIV cor0.col0 FROM tab2 AS cor0
----
104
18
8

skipif mysql # not compatible
query I rowsort label-1617
SELECT col2 * col2 / cor0.col0 FROM tab2 AS cor0
----
104
18
8

query I rowsort
SELECT + 24 AS col1 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT + 29 * - cor0.col1 * - 28 AS col2 FROM tab0 cor0
----
69832
73892
78764

query I rowsort
SELECT - 47 * + col0 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT + 34 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
340
442
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-1622
SELECT ALL + + col0 * col0 DIV - col1 - + col0 FROM tab2 cor0
----
-181
-446
-8

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + + col0 * col0 / - col1 - + col0 FROM tab2 cor0
----
-181
-446
-8

query I rowsort
SELECT DISTINCT 33 * - ( col2 ) AS col1 FROM tab2
----
-1254
-858
-891

query I rowsort
SELECT DISTINCT - ( - 3 + col0 ) FROM tab2
----
-4
-75
-76

query I rowsort
SELECT DISTINCT col2 * col0 * + ( tab1.col2 ) AS col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT 46 * + tab1.col0 AS col2 FROM tab1
----
138
2944
3680

query I rowsort
SELECT DISTINCT - col0 - ( col2 ) FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - 99 + - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
-185
-190
-196

onlyif mysql # use DIV operator for integer division
query I rowsort label-1629
SELECT + col0 * + col0 + col1 DIV col0 FROM tab0 AS cor0
----
1227
579
7922

skipif mysql # not compatible
query I rowsort label-1629
SELECT + col0 * + col0 + col1 / col0 FROM tab0 AS cor0
----
1227
579
7922

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1631
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1631
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) + + col0 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL + 71 + - 51 * - tab2.col1 FROM tab2
----
1652
3080
938

query I rowsort
SELECT + ( 52 ) AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 * + col1 ) col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL ( + 72 ) * + col0 AS col2 FROM tab1
----
216
4608
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT + col0 * 67 DIV col0 + col0 FROM tab0 AS cor0
----
102
156
91

skipif mysql # not compatible
query I rowsort label-1637
SELECT + col0 * 67 / col0 + col0 FROM tab0 AS cor0
----
102
156
91

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

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

query I rowsort
SELECT col2 + + col1 * col1 AS col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - col1 * - 13 + + cor0.col0 AS col0 FROM tab0 cor0
----
1142
1272
1296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1642
SELECT ALL + - cor0.col2 + CAST( - col0 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + - cor0.col2 + CAST ( - col0 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT col0 * + ( + 96 ) + col0 AS col1 FROM tab2 AS cor0
----
679
7566
7663

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 36 col0 FROM tab2 cor0
----
1368
936
972

query I rowsort
SELECT DISTINCT + col0 * - 50 + col0 AS col2 FROM tab1 AS cor0
----
-147
-3136
-3920

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

query I rowsort
SELECT + cor1.col1 - 84 * + cor0.col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 88460ca85685400fb6c672ab2e0e228c

query I rowsort
SELECT ALL + col2 + 41 AS col2 FROM tab0 AS cor0
----
123
42
74

query I rowsort
SELECT DISTINCT 97 + - cor0.col0 + - col0 FROM tab1 cor0
----
-31
-63
91

query I rowsort
SELECT ALL + + ( - 10 ) FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-1652
SELECT + col1 + ( + col2 ) DIV tab1.col0 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1652
SELECT + col1 + ( + col2 ) / tab1.col0 FROM tab1
----
10
14
44

query I rowsort
SELECT + - col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 61 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1655
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0, tab2 AS cor1
----
NULL

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

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

query I rowsort
SELECT - 49 * + col0 * - col2 + 43 * col1 FROM tab2 AS cor0
----
101909
10594
147829

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1659
SELECT DISTINCT col2 - + col0 * + CAST( col2 * + col1 AS SIGNED ) FROM tab2 AS cor0
----
-119626
-50996
-5832

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT col2 - + col0 * + CAST ( col2 * + col1 AS INTEGER ) FROM tab2 AS cor0
----
-119626
-50996
-5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT - cor0.col1 DIV - col1 + ( + col0 ) FROM tab0 cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1660
SELECT - cor0.col1 / - col1 + ( + col0 ) FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT + col1 * col2 - + 30 AS col2 FROM tab2 AS cor0
----
1504
616
807

query I rowsort
SELECT ALL + col2 * 23 * col1 + col1 FROM tab1 cor0
----
13120
28717
32318

query I rowsort
SELECT + col1 * - 88 FROM tab1 AS cor0
----
-1144
-2288
-880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT DISTINCT col0 + + col0 DIV - 36 FROM tab0 AS cor0
----
24
35
87

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT col0 + + col0 / - 36 FROM tab0 AS cor0
----
24
35
87

query I rowsort
SELECT ALL + col2 * col2 + + col1 * col1 FROM tab1 AS cor0
----
3349
3592
9385

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

query I rowsort
SELECT + 35 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT col0 + col2 * tab1.col0 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT - - 4 + tab0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0
----
37
5
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-1670
SELECT ALL col2 DIV + col1 + col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL col2 / + col1 + col1 FROM tab2
----
19
31
59

query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col2 + col0 + 11 AS col2 FROM tab1 AS cor0
----
-40
-5
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1673
SELECT ALL + - col0 * - CAST( - col2 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + - col0 * - CAST ( - col2 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - col1 * - col2 + 29 FROM tab2 AS cor0
----
1563
675
866

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT ALL - col1 * col1 * 57 + col0 * + col2 FROM tab1
----
-1953
-2052
-38370

query I rowsort
SELECT ALL col0 * + col1 + col0 * tab2.col2 AS col1 FROM tab2
----
406
4345
6630

query I rowsort
SELECT ALL col0 * - ( col1 ) * col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - 84 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

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

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

query I rowsort
SELECT + col2 * col1 * col1 + + col1 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT ALL - col2 + - 54 AS col0 FROM tab1 AS cor0
----
-108
-111
-150

query I rowsort
SELECT + 84 + col1 - - col2 AS col2 FROM tab1
----
151
164
193

query I rowsort
SELECT ALL + 34 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT 64 * - col2 + col0 * - col1 + - col2 * + col2 FROM tab0
----
-20071
-3460
-5265

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT + col2 * - col1 + tab1.col2 DIV ( tab1.col1 ) - col2 FROM tab1
----
-1337
-1456
-622

skipif mysql # not compatible
query I rowsort label-1688
SELECT + col2 * - col1 + tab1.col2 / ( tab1.col1 ) - col2 FROM tab1
----
-1337
-1456
-622

query I rowsort
SELECT DISTINCT 28 * + 74 - col0 AS col1 FROM tab2
----
1993
1994
2065

onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT ALL + 84 * ( col0 ) DIV col0 AS col1 FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + 84 * ( col0 ) / col0 AS col1 FROM tab0
----
84
84
84

query I rowsort
SELECT ALL - 78 + col1 AS col0 FROM tab1 AS cor0
----
-52
-65
-68

query I rowsort
SELECT DISTINCT - ( - 77 ) - - col2 AS col1 FROM tab2
----
103
104
115

query I rowsort
SELECT + col1 + + 42 AS col1 FROM tab1
----
52
55
68

query I rowsort
SELECT ( tab2.col2 + + col0 ) FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col0 * + col1 * col1 + - col2 * + col0 * - 35 AS col1 FROM tab0 AS cor0
----
205224
330540
992439

query I rowsort
SELECT DISTINCT cor0.col2 + col2 + 25 * - col1 AS col0 FROM tab1 cor0
----
-133
-136
-542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + + col0 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col1 + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

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

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

query I rowsort
SELECT + col2 * - col1 - - col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT 81 + - col0 AS col2 FROM tab0 AS cor0
----
-8
46
57

query I rowsort
SELECT + col0 + col2 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1703
SELECT + col2 / col1 AS col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT - 23 + - col0 * col2 FROM tab1 AS cor0
----
-185
-3671
-7703

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

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL - cor0.col2 * col1 * - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 + col0 * + col2 FROM tab2 cor0
----
123
1962
2936

query I rowsort
SELECT + + 30 * col2 FROM tab2 AS cor0
----
1140
780
810

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

query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

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

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

query I rowsort
SELECT - col2 * - col0 + col0 AS col0 FROM tab0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col2 + col2 col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col2 + + col0 * - col0 * col2 FROM tab1 AS cor0
----
-233415
-432
-614304

query I rowsort
SELECT ALL col1 + + col0 * col1 * col1 FROM tab0 AS cor0
----
177590
329412
737100

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-12
-4160
-6480

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

query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 + + col0 FROM tab0 AS cor0
----
15
69
96

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT ALL + + col1 * + col0 DIV - col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + + col1 * + col0 / - col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col1 + + col2 AS col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1722
SELECT DISTINCT col1 DIV + col1 + col2 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT col1 / + col1 + col2 AS col0 FROM tab2 AS cor0
----
27
28
39

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

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

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL cor0.col1 + cor0.col2 / - col2 - + col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + 73 AS col1 FROM tab2 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col0 * - col0 col1 FROM tab2 AS cor0
----
-238
-8112
-9243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col2 col1 FROM tab2 cor0
----
-21
33
4

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

query I rowsort
SELECT DISTINCT - col2 + col1 + col2 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col2 + - col2 * col0 col0 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT + 47 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-7251
-745
12

query I rowsort
SELECT DISTINCT + - 55 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1170
521
7866

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

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

query I rowsort
SELECT col2 + + tab2.col1 * + col1 AS col0 FROM tab2
----
327
3507
988

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

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

query I rowsort
SELECT ALL col0 * + col0 * col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + col0 + + tab2.col0 * col0 AS col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT tab1.col1 + col1 * col0 - - tab1.col2 FROM tab1
----
1149
158
707

onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT col2 * col0 * tab0.col1 + + col1 + col1 DIV - col0 AS col0 FROM tab0
----
3490
664208
68195

skipif mysql # not compatible
query I rowsort label-1740
SELECT col2 * col0 * tab0.col1 + + col1 + col1 / - col0 AS col0 FROM tab0
----
3490
664208
68195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 * - col1 col0 FROM tab1
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col1 FROM tab2
----
52
54
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + col2 col1 FROM tab1
----
157
265
730

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

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

query I rowsort
SELECT ALL col2 * + col2 * + col1 FROM tab2
----
22599
24548
39884

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

query I rowsort
SELECT + col0 + - col0 * col2 AS col0 FROM tab0
----
-7209
-768
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE - col0 + - col2 * - col2 = NULL
----

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

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

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE ( col0 ) IN ( col0 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + - col1 col0 FROM tab1
----
156
650
90

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0 WHERE NOT + tab0.col2 IN ( - col0 + col2 )
----
-1
-33
-82

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT col2 + - col0 + - cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col0 + + col2 * col0 + - col0 * - tab1.col1 AS col2 FROM tab1
----
243
4352
8800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1761
SELECT DISTINCT - col0 - + col0 * col2 DIV + tab0.col0 FROM tab0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - col0 - + col0 * col2 / + tab0.col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT col2 * - col1 + + col1 AS col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL - col1 - col1 * col0 FROM tab0
----
-2150
-3492
-8190

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + ( col2 ) * col1 - 86 AS col0 FROM tab0
----
11
2752
7376

query I rowsort
SELECT + + col2 * 79 + - cor0.col1 FROM tab0 AS cor0
----
-18
2521
6387

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

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

query I rowsort
SELECT + - 26 + - 21 * col2 FROM tab0 AS cor0
----
-1748
-47
-719

query I rowsort
SELECT DISTINCT 60 * - col0 + - col1 FROM tab0
----
-1526
-2197
-5431

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

query I rowsort
SELECT DISTINCT + 99 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + col1 col0 FROM tab1 AS cor0
----
110
94
97

query I rowsort
SELECT ALL + cor0.col1 + col0 + col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL - - col1 * - col0 + col0 * + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
11760
39480
696870

query I rowsort
SELECT ALL 12 * - col1 AS col2 FROM tab0
----
-1032
-1092
-1164

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

query I rowsort
SELECT ALL + + col0 * + cor0.col2 + - col2 + col2 * col2 FROM tab1 AS cor0
----
16800
3024
6840

query I rowsort
SELECT - 22 * col0 FROM tab2 AS cor0
----
-154
-1716
-1738

onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT ALL + 75 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + 75 / col1 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT col2 + CAST( col2 AS SIGNED ) * - col2 AS col0 FROM tab2
----
-1406
-650
-702

skipif mysql # not compatible
query I rowsort label-1780
SELECT col2 + CAST ( col2 AS INTEGER ) * - col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab1, tab1 AS cor0
----
38

query I rowsort
SELECT + col2 * - 52 FROM tab2 AS cor0
----
-1352
-1404
-1976

query I rowsort
SELECT col0 * ( 85 ) * + col1 FROM tab0
----
175440
288575
688415

skipif mysql # not compatible
query I rowsort
SELECT + col0 - ( 76 + + col2 * CAST ( - col0 AS REAL ) ) AS col0 FROM tab2
----
120
2030
3005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 - + col2 col0 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT + col2 DIV ( - col0 ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT + col2 / ( - col0 ) AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 - 19 FROM tab1
----
-6
-9
7

query I rowsort
SELECT col2 + + tab2.col2 - col1 AS col0 FROM tab2
----
-7
23
59

query I rowsort
SELECT ALL col1 - col0 * col2 AS col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - col1 * - ( 87 ) + col2 AS col2 FROM tab0
----
7515
7999
8440

query I rowsort
SELECT + col0 * - col2 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
-2356
-494
648

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

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

query I rowsort
SELECT DISTINCT ( - col0 ) + col1 + col0 FROM tab0 AS cor0
----
86
91
97

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

query I rowsort
SELECT - col0 + 15 FROM tab0 AS cor0
----
-20
-74
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1796
SELECT DISTINCT cor0.col2 DIV + ( col0 ) AS col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT cor0.col2 / + ( col0 ) AS col0 FROM tab2 AS cor0
----
0
3

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT ( + 60 ) + + 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-1798
SELECT ALL - CAST( + col1 AS SIGNED ) * + col0 - + col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - CAST ( + col1 AS INTEGER ) * + col0 - + col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + col1 * - col1 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
-4558
-819
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1800
SELECT DISTINCT ( + col2 ) DIV - col0 + ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT ( + col2 ) / - col0 + ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-10
-78
-79

query I rowsort
SELECT ALL 36 + - cor0.col1 FROM tab2 cor0
----
-23
19
5

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

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL - + CAST ( NULL AS INTEGER ) - - col0 / - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1803
SELECT col2 DIV 60 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1803
SELECT col2 / 60 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + + ( + col1 ) * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - ( 47 ) * col0 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT ( col1 ) + col1 + col1 AS col1 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT col1 * + 14 + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
1103
1147
1322

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1809
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT 14 + ( - col0 * col0 ) + col2 AS col2 FROM tab1 AS cor0
----
-4025
-6290
59

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

query I rowsort
SELECT + + ( 77 ) * - cor0.col0 + col1 FROM tab2 AS cor0
----
-508
-5947
-6066

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + col1 + - col1 * - col0 * col1 - - tab1.col2 FROM tab1
----
13629
2108
6467

query I rowsort
SELECT - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + col2 - + 60 AS col2 FROM tab1
----
-3
-6
36

query I rowsort
SELECT + col1 + + col0 * - col2 + + col0 FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT DISTINCT + 66 * col1 AS col1 FROM tab1 AS cor0
----
1716
660
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT - 88 DIV - 92 + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1819
SELECT - 88 / - 92 + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - 35 + col2 * - col0 FROM tab1 cor0
----
-197
-3683
-7715

query I rowsort
SELECT + ( + col1 ) * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

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

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

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

query I rowsort
SELECT + 88 * col1 FROM tab0
----
7568
8008
8536

query I rowsort
SELECT 28 - tab2.col0 * + col2 FROM tab2
----
-161
-2000
-2974

query I rowsort
SELECT - col2 + + col2 * + col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - ( + 41 ) + + col1 FROM tab1
----
-15
-28
-31

query I rowsort
SELECT DISTINCT col0 * 84 + col2 AS col2 FROM tab1
----
306
5433
6816

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

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

query I rowsort
SELECT col2 * ( - col2 ) + col2 * col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 18 + col0 AS col2 FROM tab0
----
107
42
53

query I rowsort
SELECT DISTINCT col1 + 5 FROM tab1 AS cor0
----
15
18
31

query I rowsort
SELECT ALL - col2 + col1 * + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-244101
-679124
-9410

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

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

query I rowsort
SELECT col2 * - 33 FROM tab1 AS cor0
----
-1782
-1881
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + 45 col0 FROM tab0 AS cor0
----
-3870
-4095
-4365

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

query I rowsort
SELECT ALL + - col2 + 88 AS col0 FROM tab0 AS cor0
----
55
6
87

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

query I rowsort
SELECT DISTINCT + 15 * - tab1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-1200
-45
-960

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

query I rowsort
SELECT + 20 + col2 AS col2 FROM tab2
----
46
47
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT ALL + col1 DIV 8 FROM tab2
----
2
3
7

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL + col1 / 8 FROM tab2
----
2
3
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1846
SELECT DISTINCT col2 + col2 DIV 81 - - col1 FROM tab0
----
119
174
98

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT col2 + col2 / 81 - - col1 FROM tab0
----
119
174
98

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

query I rowsort
SELECT + col1 * 21 * col1 AS col1 FROM tab1 cor0
----
14196
2100
3549

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

query I rowsort
SELECT - - cor0.col1 * + col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT + col1 DIV col1 + col0 * col1 * cor0.col1 FROM tab2 AS cor0
----
22832
271519
6728

skipif mysql # not compatible
query I rowsort label-1851
SELECT + col1 / col1 + col0 * col1 * cor0.col1 FROM tab2 AS cor0
----
22832
271519
6728

onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT - - 9 DIV - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1852
SELECT - - 9 / - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT DISTINCT col2 * 11 AS col1 FROM tab1
----
1056
594
627

query I rowsort
SELECT col2 + + 2 AS col2 FROM tab0
----
3
35
84

query I rowsort
SELECT - 15 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

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

query I rowsort
SELECT DISTINCT - col0 * + 71 AS col0 FROM tab2
----
-497
-5538
-5609

onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT DISTINCT col1 DIV - 21 + ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
30
57

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT col1 / - 21 + ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
30
57

query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10
13
26

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1862
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + + tab0.col0 * - ( + tab0.col0 ) AS col2 FROM tab0
----
-1128
-490
-7830

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + + tab0.col0 * - ( + tab0.col0 ) AS col2 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT - col1 * - col2 + 87 FROM tab2 AS cor0
----
1621
733
924

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

query I rowsort
SELECT + col2 * col2 + col1 - + col2 AS col0 FROM tab0 AS cor0
----
1142
6733
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 + col1 col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( + col1 ) + col1 AS col2 FROM tab2
----
118
34
62

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

skipif mysql # not compatible
query I rowsort label-1869
SELECT CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 62 * + col2 AS col0 FROM tab2
----
-1612
-1674
-2356

query I rowsort
SELECT 46 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT - 55 + col0 FROM tab1 AS cor0
----
-52
25
9

query I rowsort
SELECT - 99 + + col0 AS col2 FROM tab2 AS cor0
----
-20
-21
-92

query I rowsort
SELECT DISTINCT 64 + col0 FROM tab0 cor0
----
153
88
99

query I rowsort
SELECT DISTINCT + col2 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT + col0 * + col1 + ( + 85 + col2 ) DIV - 72 FROM tab1 AS cor0
----
1038
639
77

skipif mysql # not compatible
query I rowsort label-1876
SELECT + col0 * + col1 + ( + 85 + col2 ) / - 72 FROM tab1 AS cor0
----
1038
639
77

query I rowsort
SELECT + 2 * col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT 98 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

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

query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - + col2 * ( 30 ) * + col1 FROM tab1 AS cor0
----
-17100
-37440
-42120

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT - col2 DIV - 38 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1882
SELECT - col2 / - 38 FROM tab2 cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1883
SELECT - - col0 + CAST( - cor0.col0 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-1883
SELECT - - col0 + CAST ( - cor0.col0 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - col0 + + 65 FROM tab1 AS cor0
----
-15
1
62

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1887
SELECT col1 + + CAST( col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
7482
8372
9506

skipif mysql # not compatible
query I rowsort label-1887
SELECT col1 + + CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
7482
8372
9506

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

query I rowsort
SELECT col2 * 13 * 59 FROM tab0 AS cor0
----
25311
62894
767

query I rowsort
SELECT - col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col1 FROM tab1
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab0 cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + ( - col1 ) AS REAL ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 33 * col0 AS col2 FROM tab2 AS cor0
----
-231
-2574
-2607

onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT + - col2 - col1 DIV col2 col1 FROM tab0 AS cor0
----
-35
-83
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1895
SELECT + - col2 - col1 / col2 col1 FROM tab0 AS cor0
----
-35
-83
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT ALL - - ( col0 ) + - col0 DIV cor0.col0 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - - ( col0 ) + - col0 / cor0.col0 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT col0 + + col2 * - 38 AS col1 FROM tab1 AS cor0
----
-2049
-2102
-3568

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT ALL 18 * - col2 + - 33 DIV 10 FROM tab0 AS cor0
----
-1479
-21
-597

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL 18 * - col2 + - 33 / 10 FROM tab0 AS cor0
----
-1479
-21
-597

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col2 - col0 * - col1 * - 44 AS col0 FROM tab2 AS cor0
----
-202540
-59168
-9602

query I rowsort
SELECT ALL col1 + 17 + - col0 * col1 AS col1 FROM tab2
----
-1309
-169
-4526

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

query I rowsort
SELECT + 88 * - ( - col1 ) + + col2 + + col2 FROM tab2 AS cor0
----
1572
2782
5244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 13 col2 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT DISTINCT + + ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - + 60 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT - 90 + col2 * - col0 + - col2 * ( + col2 + 34 ) * col1 AS col0 FROM tab0 AS cor0
----
-191028
-3520
-872980

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 AS col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL - 15 * + col0 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT 28 * + 8 + col1 + 55 * col2 AS col2 FROM tab2 AS cor0
----
1713
1740
2331

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1916
SELECT + CAST( col2 AS SIGNED ) * - col1 + - col1 + col0 * cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
156591
236495
455

skipif mysql # not compatible
query I rowsort label-1916
SELECT + CAST ( col2 AS INTEGER ) * - col1 + - col1 + col0 * cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
156591
236495
455

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 * col2 col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 20 + 7 FROM tab0
----
27

query I rowsort
SELECT ALL + 54 + - tab2.col2 FROM tab2
----
16
27
28

query I rowsort
SELECT DISTINCT + 81 + col1 AS col2 FROM tab1
----
107
91
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT - 68 * - cor0.col0 + cor0.col0 DIV + col0 FROM tab1 AS cor0
----
205
4353
5441

skipif mysql # not compatible
query I rowsort label-1921
SELECT - 68 * - cor0.col0 + cor0.col0 / + col0 FROM tab1 AS cor0
----
205
4353
5441

query I rowsort
SELECT DISTINCT - col0 + - 51 AS col1 FROM tab0 AS cor0
----
-140
-75
-86

query I rowsort
SELECT DISTINCT 93 * + 47 + col1 + cor0.col2 * 63 AS col1 FROM tab0 AS cor0
----
4531
6536
9628

query I rowsort
SELECT - col1 + col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL - 95 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1928
SELECT CAST( cor0.col0 AS SIGNED ) + col1 AS col0 FROM tab1 cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-1928
SELECT CAST ( cor0.col0 AS INTEGER ) + col1 AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1929
SELECT - CAST( 2 AS SIGNED ) * col0 AS col2 FROM tab2
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-1929
SELECT - CAST ( 2 AS INTEGER ) * col0 AS col2 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT col0 * - col2 + col2 * - col1 AS col2 FROM tab0
----
-132
-14760
-3630

query I rowsort
SELECT - col1 + - col2 * col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab1
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col0 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT DISTINCT - col0 + - 91 DIV + 30 FROM tab1
----
-6
-67
-83

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT - col0 + - 91 / + 30 FROM tab1
----
-6
-67
-83

query I rowsort
SELECT + - col0 + + 13 AS col0 FROM tab2 AS cor0
----
-65
-66
6

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

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT + + col0 / cor0.col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT col0 * ( + 48 ) AS col1 FROM tab2 AS cor0
----
336
3744
3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - 32 ) col1 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT DISTINCT - col0 * 79 FROM tab2 AS cor0
----
-553
-6162
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT ALL + col0 + + 70 DIV ( cor0.col0 + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
4
64
80

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL + col0 + + 70 / ( cor0.col0 + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
4
64
80

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

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

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

query I rowsort
SELECT DISTINCT - col2 + - ( + 73 ) AS col2 FROM tab1 AS cor0
----
-127
-130
-169

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT ALL col0 * ( cor0.col2 ) + col2 DIV 57 AS col2 FROM tab0 AS cor0
----
35
7299
792

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL col0 * ( cor0.col2 ) + col2 / 57 AS col2 FROM tab0 AS cor0
----
35
7299
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT DISTINCT col1 + col1 DIV + ( col0 ) AS col2 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT col1 + col1 / + ( col0 ) AS col2 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL - col2 * 45 AS col0 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT DISTINCT - col0 * - 45 AS col0 FROM tab1 cor0
----
135
2880
3600

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1952
SELECT CAST ( NULL AS REAL ) * - col2 + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1953
SELECT ALL - + CAST( + col2 AS SIGNED ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - + CAST ( + col2 AS INTEGER ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - 78 * + col1 AS col1 FROM tab1
----
-1014
-2028
-780

query I rowsort
SELECT ALL - 82 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + 25 FROM tab2, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540

onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT 47 DIV - cor0.col1 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-1958
SELECT 47 / - cor0.col1 FROM tab1 AS cor0
----
-1
-3
-4

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

query I rowsort
SELECT 8 + - 57 * col1 + + cor0.col0 FROM tab2 AS cor0
----
-1752
-3277
-882

query I rowsort
SELECT ALL - + col1 + - col1 * 76 AS col0 FROM tab0 AS cor0
----
-6622
-7007
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * 96 col2 FROM tab2 AS cor0
----
2437
2561
3631

query I rowsort
SELECT DISTINCT - + col0 - - col1 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL 8 - 67 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT ALL col2 + - col0 - - col2 AS col2 FROM tab0 AS cor0
----
-33
42
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT ALL - - col1 DIV + col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL - - col1 / + col1 FROM tab1 cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 * + 23 * col0 FROM tab0 AS cor0
----
16086
189645
28272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 6 col0 FROM tab1 AS cor0
----
-48
-51
-90

query I rowsort
SELECT DISTINCT col0 * cor0.col1 * col0 FROM tab1 cor0
----
234
40960
83200

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

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT + col1 / ( col0 + cor0.col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 + + ( col2 ) * col2 FROM tab2 AS cor0
----
1482
702
756

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

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

query I rowsort
SELECT ALL - col2 * 41 AS col1 FROM tab2 AS cor0
----
-1066
-1107
-1558

query I rowsort
SELECT + - ( col0 ) + - col2 * 21 AS col2 FROM tab2 AS cor0
----
-574
-624
-877

query I rowsort
SELECT ALL + - 27 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2037
3368
8072

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 39 ) + col2 col1 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT 61 + col0 AS col0 FROM tab0 AS cor0
----
150
85
96

query I rowsort
SELECT - cor0.col1 + + 56 FROM tab0 AS cor0
----
-30
-35
-41

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

query I rowsort
SELECT - - 49 AS col2 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - 98 FROM tab1
----
-98

query I rowsort
SELECT - col2 * col0 + - ( col0 + + col1 * col2 ) FROM tab2 AS cor0
----
-1033
-3640
-3727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + ( 56 ) col2 FROM tab2 AS cor0
----
18
29
30

query I rowsort
SELECT - + col2 * - ( 89 ) AS col2 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT - col1 - cor0.col2 * + 11 AS col2 FROM tab2 AS cor0
----
-328
-345
-435

query I rowsort
SELECT DISTINCT col0 + 70 AS col0 FROM tab2 AS cor0
----
148
149
77

query I rowsort
SELECT ALL + - col2 + + 47 FROM tab2 AS cor0
----
20
21
9

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

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

query I rowsort
SELECT + col1 + - ( - 21 ) * col0 AS col0 FROM tab2 cor0
----
1676
1697
178

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1994
SELECT - col2 DIV - 55 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1994
SELECT - col2 / - 55 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT tab2.col0 * 16 * tab2.col2 FROM tab2
----
3024
32448
48032

query I rowsort
SELECT ALL - cor0.col2 * - ( + cor0.col2 ) + col1 FROM tab1 AS cor0
----
2942
3259
9229

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

query I rowsort
SELECT + + ( col2 ) * - col1 - - 63 FROM tab1 AS cor0
----
-1185
-1341
-507

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

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

query I rowsort
SELECT - 99 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

query I rowsort
SELECT ALL - col0 * col0 * col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT + cor0.col2 * 77 AS col1 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT ALL col2 + - col2 * - col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2005
SELECT CAST( 2 AS SIGNED ) + col1 * + CAST( + 34 AS SIGNED ) FROM tab2 AS cor0
----
1056
2008
580

skipif mysql # not compatible
query I rowsort label-2005
SELECT CAST ( 2 AS INTEGER ) + col1 * + CAST ( + 34 AS INTEGER ) FROM tab2 AS cor0
----
1056
2008
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT DISTINCT 1 DIV col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT 1 / col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT 41 + 65 FROM tab1 AS cor0
----
106

query I rowsort
SELECT ALL + ( + 15 + tab0.col1 ) AS col0 FROM tab0, tab0 cor0
----
9 values hashing to e32ebabf2f91edf3c2fba79dd8030322

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

query I rowsort
SELECT - col0 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT col1 * + cor0.col2 * col1 + ( - 81 + col2 ) FROM tab2 AS cor0
----
10939
25893
90451

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

query I rowsort
SELECT + + col2 * 72 + col2 FROM tab1 AS cor0
----
3942
4161
7008

query I rowsort
SELECT 24 * + col1 FROM tab2 AS cor0
----
1416
408
744

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

query I rowsort
SELECT - + col2 + - col0 * 20 FROM tab0 AS cor0
----
-1862
-513
-701

query I rowsort
SELECT ALL 11 * 86 FROM tab2, tab1 AS cor0
----
9 values hashing to e69b857ff5cb70222d63ee6513f106bf

query I rowsort
SELECT DISTINCT - 64 FROM tab0, tab0 cor0, tab0 AS cor1
----
-64

query I rowsort
SELECT - - col1 * - 34 + + col2 AS col0 FROM tab0 AS cor0
----
-2891
-3012
-3297

query I rowsort
SELECT + 63 + col1 * 73 AS col2 FROM tab2 AS cor0
----
1304
2326
4370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - cor0.col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 26 + col0 * - col2 FROM tab1 AS cor0
----
-136
-3622
-7654

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

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

query I rowsort
SELECT ALL col2 + cor0.col2 * col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - 17 * col2 FROM tab2 cor0
----
-442
-459
-646

query I rowsort
SELECT ALL - - ( - col0 ) * col2 + + col0 * + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-3430
-671416
-68904

query I rowsort
SELECT ALL + + 70 * col0 AS col0 FROM tab2 AS cor0
----
490
5460
5530

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT DISTINCT - + col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - + col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

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

query I rowsort
SELECT ALL + - col0 * + col1 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + 17 * + col1 * + tab1.col0 - + col1 AS col1 FROM tab1
----
10870
1300
17667

query I rowsort
SELECT + col0 + col2 * + col1 * + col2 AS col2 FROM tab0 AS cor0
----
132
611973
93678

onlyif mysql # use DIV operator for integer division
query I rowsort label-2034
SELECT ALL - col1 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - col1 / - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 25 * + col0 + + col0 * col0 FROM tab2 AS cor0
----
-1176
-146016
-149784

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

query I rowsort
SELECT col2 * col2 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT col0 * + cor0.col0 - ( cor0.col0 ) FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT col0 + 45 AS col0 FROM tab0 AS cor0
----
134
69
80

query I rowsort
SELECT - col2 * - 56 + + col2 FROM tab0 AS cor0
----
1881
4674
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT DISTINCT col0 DIV - 44 + + col1 AS col0 FROM tab2 AS cor0
----
16
31
58

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT col0 / - 44 + + col1 AS col0 FROM tab2 AS cor0
----
16
31
58

query I rowsort
SELECT ALL + tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

query I rowsort
SELECT DISTINCT 41 * col0 AS col1 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT ALL + 72 FROM tab2, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL - 14 * - col2 FROM tab2 AS cor0
----
364
378
532

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

query I rowsort
SELECT ALL - 62 * col2 AS col2 FROM tab2
----
-1612
-1674
-2356

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 * + col2 AS REAL ) - - col1 AS col0 FROM tab2
----
2087
220
3019

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

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

query I rowsort
SELECT - 56 * + col1 FROM tab1 cor0
----
-1456
-560
-728

query I rowsort
SELECT DISTINCT + 4 * tab0.col2 FROM tab0
----
132
328
4

query I rowsort
SELECT ALL + tab1.col0 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT + 18 * col1 DIV + ( col0 ) FROM tab1 AS cor0
----
156
2
2

skipif mysql # not compatible
query I rowsort label-2056
SELECT + 18 * col1 / + ( col0 ) FROM tab1 AS cor0
----
156
2
2

query I rowsort
SELECT + 95 - ( col0 ) AS col2 FROM tab1
----
15
31
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT + 22 DIV col0 + col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2058
SELECT + 22 / col0 + col0 FROM tab2
----
10
78
79

query I rowsort
SELECT DISTINCT ( - 63 ) FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
-63

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

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

query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

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

query I rowsort
SELECT - cor0.col0 + cor0.col0 * 65 AS col2 FROM tab2 AS cor0
----
448
4992
5056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col1 * ( - col0 + col0 ) col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT DISTINCT - col0 DIV + ( + 41 ) FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - col0 / + ( + 41 ) FROM tab0 AS cor0
----
-2
0

query I rowsort
SELECT ALL - col0 * + ( 11 ) + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-231
-384
-897

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

query I rowsort
SELECT ALL + + cor0.col0 + ( col1 ) * - cor0.col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col0 * + 17 AS col2 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT ALL - col1 + + 29 * - col2 * ( col1 * col1 ) FROM tab1 AS cor0
----
-1058642
-165310
-470509

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2072
SELECT CAST( 32 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2072
SELECT CAST ( 32 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + ( 49 ) * cor0.col2 FROM tab1 cor0
----
2646
2793
4704

query I rowsort
SELECT - col2 * + 12 + col1 + col0 AS col2 FROM tab1 AS cor0
----
-1059
-610
-619

query I rowsort
SELECT ALL + + 68 AS col1 FROM tab1 AS cor0
----
68
68
68

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

query I rowsort
SELECT ALL - col1 * + col2 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT DISTINCT + col1 DIV col0 + - col2 + - 90 * 38 FROM tab0 AS cor0
----
-3419
-3450
-3501

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + col1 / col0 + - col2 + - 90 * 38 FROM tab0 AS cor0
----
-3419
-3450
-3501

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT col0 DIV - col0 - tab1.col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-2079
SELECT col0 / - col0 - tab1.col1 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT DISTINCT col2 + col2 * col1 AS col2 FROM tab2
----
1560
684
864

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2083
SELECT - tab2.col0 DIV - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2083
SELECT - tab2.col0 / - col0 FROM tab2
----
1
1
1

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

query I rowsort
SELECT - 83 * col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col0 FROM tab2
----
41
41
41

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2088
SELECT col1 DIV col2 + - col2 * tab0.col2 + tab0.col1 AS col0 FROM tab0
----
-1001
-6632
193

skipif mysql # not compatible
query I rowsort label-2088
SELECT col1 / col2 + - col2 * tab0.col2 + tab0.col1 AS col0 FROM tab0
----
-1001
-6632
193

query I rowsort
SELECT col1 + - col0 * col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT tab2.col0 - tab2.col1 * - col2 AS col2 FROM tab2
----
1612
725
844

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT - cor0.col2 * - col1 DIV - col1 + + col0 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-2092
SELECT - cor0.col2 * - col1 / - col1 + + col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT + col2 + + col1 * col0 DIV + col0 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2093
SELECT + col2 + + col1 * col0 / + col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - + cor0.col2 * col0 + col1 * - col0 FROM tab0 AS cor0
----
-15397
-2856
-3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 + tab1.col2 ) col0 FROM tab1
----
108
114
192

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col2 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2098
SELECT - CAST( 92 AS SIGNED ) AS col1 FROM tab2
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-2098
SELECT - CAST ( 92 AS INTEGER ) AS col1 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT + 59 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 63 ) col0 FROM tab2
----
-63

query I rowsort
SELECT - 65 * col0 AS col2 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT ALL - + col1 - + 7 FROM tab1 cor0
----
-17
-20
-33

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT 66 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2105
SELECT 66 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-3

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

query I rowsort
SELECT - col1 * - col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT ALL col2 DIV - ( + tab2.col0 + tab2.col0 * col2 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL col2 / - ( + tab2.col0 + tab2.col0 * col2 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 + col0 / col2 < NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 * col1 AS col2 FROM tab1 WHERE NOT - col1 BETWEEN ( + col2 + - col2 * col2 ) AND ( NULL )
----

query I rowsort
SELECT + col0 + col2 * col2 FROM tab0
----
1113
36
6813

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + col1 / col2
----

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + col0 + + col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT - col1 / + cor0.col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - cor0.col0 + col1 )
----

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE - col1 + + col1 NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE col1 NOT BETWEEN ( NULL ) AND ( col0 + col0 )
----
-1
-33

query I rowsort
SELECT - col1 + col2 * - col2 AS col0 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT col1 * col1 - - col2 * col0 AS col1 FROM tab2
----
1150
3291
5509

query I rowsort
SELECT - col2 + + col0 + col0 AS col0 FROM tab0
----
15
69
96

query III rowsort
SELECT * FROM tab1 WHERE NULL < col0 / col1
----

query I rowsort
SELECT + col0 * col1 + col2 + + tab2.col1 AS col1 FROM tab2
----
1398
275
4687

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT + tab1.col1 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2126
SELECT + tab1.col1 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 - col1 AS col1 FROM tab2
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + + col2 col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - col1 * cor0.col2 + + cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1749
-738
-96

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

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + col0 * cor0.col0 / - col1 FROM tab2 AS cor0
----
-1
-103
-367

query I rowsort
SELECT + col0 * + col2 * col2 FROM tab0 AS cor0
----
26136
35
598436

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

query I rowsort
SELECT + col1 * cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

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

query I rowsort
SELECT - col1 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-2136
SELECT ALL col2 DIV + col1 + tab1.col1 + - tab1.col1 * + col1 AS col0 FROM tab1
----
-149
-648
-85

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL col2 / + col1 + tab1.col1 + - tab1.col1 * + col1 AS col0 FROM tab1
----
-149
-648
-85

query I rowsort
SELECT ALL cor0.col0 + - 28 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 4989f61b1f7c861ce0824cb765602957

query I rowsort
SELECT + col1 - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 45 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL + col2 * - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2141
SELECT DISTINCT - col2 DIV 46 AS col0 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT - col2 / 46 AS col0 FROM tab0 cor0
----
-1
0

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

query I rowsort
SELECT ALL col0 * 68 + col1 AS col2 FROM tab0 AS cor0
----
1718
2477
6143

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

query I rowsort
SELECT ALL - - col0 * - 95 AS col0 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT + 7 + - 85 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL - ( 55 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT - col0 * - 42 FROM tab1 AS cor0
----
126
2688
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT ALL - - col0 * cor0.col2 DIV - col2 + + 58 FROM tab0 cor0
----
-31
23
34

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - - col0 * cor0.col2 / - col2 + + 58 FROM tab0 cor0
----
-31
23
34

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + - 1 + - col0 FROM tab2 AS cor0
----
-79
-8
-80

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT ALL + col2 DIV col0 + + col2 AS col2 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + col2 / col0 + + col2 AS col2 FROM tab0 AS cor0
----
1
34
82

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

query I rowsort
SELECT - + col0 * - 54 AS col1 FROM tab2 AS cor0
----
378
4212
4266

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

query I rowsort
SELECT ALL + tab1.col0 * col1 * + col1 AS col0 FROM tab1
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT + - col1 * cor0.col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-100
-224
-9409

skipif mysql # not compatible
query I rowsort label-2159
SELECT + - col1 * cor0.col1 / + col2 AS col2 FROM tab0 AS cor0
----
-100
-224
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 9 col0 FROM tab2 AS cor0
----
153
279
531

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

query I rowsort
SELECT col1 + 21 * - col2 FROM tab2 AS cor0
----
-487
-536
-781

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * cor0.col0 + 31 col1 FROM tab1 AS cor0
----
193
3679
7711

query I rowsort
SELECT ALL + col1 + - col0 + col1 * + 95 FROM tab1 AS cor0
----
1168
2493
896

query I rowsort
SELECT DISTINCT + + cor1.col1 * 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1643
3127
901

query I rowsort
SELECT + 24 + cor0.col2 AS col0 FROM tab1 cor0
----
120
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col2 FROM tab2 AS cor0
----
1534
646
837

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

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

query I rowsort
SELECT DISTINCT - ( - col1 ) + + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + ( + col2 ) + 16 * + col0 AS col0 FROM tab1 AS cor0
----
102
1081
1376

onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT DISTINCT - + cor0.col0 * + col2 + col0 * - col0 + cor0.col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-14080
-163
-7744

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - + cor0.col0 * + col2 + col0 * - col0 + cor0.col1 / col0 AS col1 FROM tab1 AS cor0
----
-14080
-163
-7744

query I rowsort
SELECT ALL - 49 + col2 AS col1 FROM tab0 AS cor0
----
-16
-48
33

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

query I rowsort
SELECT DISTINCT - - 72 - - col0 AS col0 FROM tab1 AS cor0
----
136
152
75

query I rowsort
SELECT DISTINCT + 60 + col0 - 2 FROM tab2 cor0
----
136
137
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2178
SELECT + col2 DIV + ( 80 ) AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT + col2 / + ( 80 ) AS col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 67 + + cor0.col0 + col1 col1 FROM tab1 AS cor0
----
-1713
-596
-778

query I rowsort
SELECT DISTINCT col2 + 94 AS col0 FROM tab2 AS cor0
----
120
121
132

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

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1
33
82

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 92 AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - col2 + 26 - 2 FROM tab2 AS cor0
----
-14
-2
-3

query I rowsort
SELECT col1 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL + - col1 * col2 + cor0.col1 * + col0 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT DISTINCT - - col0 - + ( - col2 * - col0 ) FROM tab0 cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2188
SELECT DISTINCT - col2 / CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - col2 / CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - cor0.col0 * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + cor0.col0 * + 5 + 27 FROM tab1 AS cor0
----
347
42
427

onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT DISTINCT col2 DIV col0 + col0 * col0 FROM tab2
----
52
6084
6241

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT col2 / col0 + col0 * col0 FROM tab2
----
52
6084
6241

query I rowsort
SELECT - 80 AS col2 FROM tab1
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + ( tab1.col0 * - col0 ) + col1 AS col0 FROM tab1
----
-4086
-6387
17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - tab1.col1 + - ( + col1 ) FROM tab1
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 97 ) col2 FROM tab1 AS cor0
----
97
97
97

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

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

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

query I rowsort
SELECT DISTINCT - + cor1.col0 + + 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
-2
70

query I rowsort
SELECT col2 + - 46 + col0 FROM tab2
----
-12
58
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT ALL col1 DIV col1 + + col0 * 13 - 54 FROM tab0
----
1104
259
402

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL col1 / col1 + + col0 * 13 - 54 FROM tab0
----
1104
259
402

onlyif mysql # use DIV operator for integer division
query I rowsort label-2204
SELECT + col2 + tab0.col1 + col2 DIV - col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2204
SELECT + col2 + tab0.col1 + col2 / - col1 FROM tab0
----
119
173
98

query I rowsort
SELECT 26 + 28 - col0 FROM tab1
----
-10
-26
51

query I rowsort
SELECT ALL + 2 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - col2 + tab1.col1 * col0 - + tab1.col1 FROM tab1
----
-2
573
931

query I rowsort
SELECT DISTINCT 19 * + col0 + + col0 FROM tab0
----
1780
480
700

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

query I rowsort
SELECT ALL + tab0.col1 * col1 + col2 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL - 78 + - col1 FROM tab1
----
-104
-88
-91

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

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

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col1 + ( - cor0.col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-35
2728
7282

onlyif mysql # use DIV operator for integer division
query I rowsort label-2215
SELECT + + 25 DIV + col1 + + col2 * col2 + col1 * col2 AS col1 FROM tab0 AS cor0
----
14186
3927
98

skipif mysql # not compatible
query I rowsort label-2215
SELECT + + 25 / + col1 + + col2 * col2 + col1 * col2 AS col1 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT - 21 * + cor0.col1 FROM tab2 AS cor0
----
-1239
-357
-651

query I rowsort
SELECT 48 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT - + 57 * + col1 AS col2 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT - - 77 AS col0 FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT ALL - 85 * - tab1.col2 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 69cde891f4c644123839f531ef39348c

query I rowsort
SELECT ALL + 95 FROM tab0
----
95
95
95

query I rowsort
SELECT col2 + + col0 * - ( - col0 + - col0 ) FROM tab0 AS cor0
----
1185
15924
2451

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - 94 col1 FROM tab2 AS cor0
----
-1598
-2914
-5546

onlyif mysql # use DIV operator for integer division
query I rowsort label-2224
SELECT + - 83 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT + - 83 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 21 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL - col0 * - ( 59 ) FROM tab2 AS cor0
----
413
4602
4661

query I rowsort
SELECT col2 * col2 * cor0.col1 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT ALL + CAST( + col1 AS SIGNED ) + + col0 + col1 AS col1 FROM tab1 AS cor0
----
106
55
84

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + CAST ( + col1 AS INTEGER ) + + col0 + col1 AS col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT 68 + 17 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + + 11 AS col2 FROM tab2 AS cor0
----
11

query I rowsort
SELECT - 37 * ( + cor0.col2 ) * + 49 FROM tab1 AS cor0
----
-103341
-174048
-97902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 51 col1 FROM tab2 cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT + col1 + - col2 DIV - col0 + - 81 FROM tab2 AS cor0
----
-22
-47
-64

skipif mysql # not compatible
query I rowsort label-2233
SELECT + col1 + - col2 / - col0 + - 81 FROM tab2 AS cor0
----
-22
-47
-64

query I rowsort
SELECT - ( col1 ) * cor0.col1 + ( + col0 ) FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT col0 - - ( col0 + col0 ) AS col0 FROM tab2
----
21
234
237

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

query I rowsort
SELECT - tab1.col1 * 30 + col0 AS col1 FROM tab1
----
-236
-310
-777

query I rowsort
SELECT - ( - ( - col0 ) ) FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col1 AS REAL ) + col1 AS col2 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT + - 73 DIV - cor0.col0 + - col0 + 86 FROM tab1 AS cor0
----
107
23
6

skipif mysql # not compatible
query I rowsort label-2240
SELECT + - 73 / - cor0.col0 + - col0 + 86 FROM tab1 AS cor0
----
107
23
6

query I rowsort
SELECT 41 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 24 + + col2 * col2 col0 FROM tab0 AS cor0
----
1113
25
6748

query I rowsort
SELECT DISTINCT + 61 * - col2 + + ( 76 ) FROM tab2 AS cor0
----
-1510
-1571
-2242

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT DISTINCT tab0.col2 DIV - col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT tab0.col2 / - col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - + 90 AS col2 FROM tab1 AS cor0
----
-90

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

skipif mysql # not compatible
query I rowsort label-2247
SELECT + + col0 + - col0 * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - cor0.col1 + - col1 col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - col1 + 29 FROM tab0 AS cor0
----
-57
-62
-68

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * + col2 + + 74 col0 FROM tab2 AS cor0
----
1608
720
911

query I rowsort
SELECT 82 + col0 + tab1.col2 * + ( + col1 ) FROM tab1
----
1410
1489
716

query I rowsort
SELECT DISTINCT + + col2 + - 34 FROM tab0 AS cor0
----
-1
-33
48

query I rowsort
SELECT - - col0 + + ( 54 ) * col1 + + 37 AS col1 FROM tab1 cor0
----
1444
641
819

query I rowsort
SELECT + col2 + col2 * - 22 AS col2 FROM tab0 AS cor0
----
-1722
-21
-693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT col1 * + col1 * - col1 - + cor0.col2 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-636057
-753572
-912674

skipif mysql # not compatible
query I rowsort label-2257
SELECT col1 * + col1 * - col1 - + cor0.col2 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-636057
-753572
-912674

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT + - CAST( col2 AS SIGNED ) + + col0 DIV + col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-2259
SELECT + - CAST ( col2 AS INTEGER ) + + col0 / + col2 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT ALL - col2 * - 70 + col1 + - col0 * - col1 * col0 FROM tab2 AS cor0
----
108774
3440
360835

query I rowsort
SELECT + 1 * col2 + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT tab1.col0 + col1 + + tab1.col0 FROM tab1
----
138
173
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2263
SELECT DISTINCT - col1 + - CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT - col1 + - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT - + col0 DIV col1 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-2265
SELECT - + col0 / col1 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-27
-42

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT DISTINCT + col0 DIV + 84 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + col0 / + 84 AS col2 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT 23 * - col1 AS col1 FROM tab0
----
-1978
-2093
-2231

query I rowsort
SELECT 44 + tab2.col0 FROM tab2
----
122
123
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col2 col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - - col1 * col2 * - 44 + col0 FROM tab0 AS cor0
----
-124848
-328239
-4233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + cor0.col1 * col1 col0 FROM tab2 AS cor0
----
1798
5015
935

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

query I rowsort
SELECT + col0 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + col1 * - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - - col0 * + col1 + - 73 FROM tab0 AS cor0
----
1991
3322
8026

query I rowsort
SELECT + - col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 67 + cor0.col2 col2 FROM tab0 AS cor0
----
-1575
-2344
-5881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col1 + - col1 col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT tab2.col1 + - col0 + - col1 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2282
SELECT DISTINCT col1 DIV - tab2.col0 AS col0 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT col1 / - tab2.col0 AS col0 FROM tab2
----
-4
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * - tab0.col1 + col1 col1 FROM tab0
----
-2719
-7289
1

query I rowsort
SELECT DISTINCT col1 * col1 + + col1 + - col2 AS col1 FROM tab2
----
268
3514
965

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

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

query I rowsort
SELECT ALL col1 + - col0 + + tab2.col0 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT tab1.col2 * + col2 * - col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT col2 * col2 + tab0.col2 * - col1 * tab0.col0 FROM tab0
----
-3394
-657394
-67023

query I rowsort
SELECT col1 * col2 * col0 FROM tab1
----
36480
4212
99840

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * col2 col2 FROM tab2 WHERE ( NULL ) <> ( col2 )
----

query I rowsort
SELECT ALL col1 + + col1 AS col0 FROM tab2 WHERE ( - col2 + - col2 ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2295
SELECT - col2 DIV col1 + - col0 * - col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2295
SELECT - col2 / col1 + - col0 * - col2 FROM tab0
----
35
7298
792

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

query I rowsort
SELECT - col1 * + col1 + - col0 AS col0 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT ALL col0 + col0 + - col2 FROM tab0
----
15
69
96

query I rowsort
SELECT ALL - col2 * + col2 + col0 + + col0 * + tab1.col1 AS col2 FROM tab1
----
-2545
-2835
-8096

query I rowsort
SELECT DISTINCT tab2.col1 * - tab2.col2 + col1 - - col2 * col1 AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + col2 * + col0 * + col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL - 79 * col0 AS col0 FROM tab1 AS cor0
----
-237
-5056
-6320

query I rowsort
SELECT ALL + ( col2 ) * + 63 + col2 FROM tab2 AS cor0
----
1664
1728
2432

query I rowsort
SELECT DISTINCT + 84 + - col1 AS col1 FROM tab0 AS cor0
----
-13
-2
-7

query I rowsort
SELECT + + 35 + - col2 AS col1 FROM tab2 AS cor0
----
-3
8
9

query I rowsort
SELECT ALL - cor0.col0 + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT ALL col1 * col1 DIV col1 + + tab1.col1 AS col2 FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL col1 * col1 / col1 + + tab1.col1 AS col2 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col1 + + cor0.col0 col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * col0 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 - 59 col1 FROM tab1 AS cor0
----
103
3589
7621

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2313
SELECT DISTINCT - ( + col2 ) DIV 3 FROM tab0 cor0
----
-11
-27
0

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT - ( + col2 ) / 3 FROM tab0 cor0
----
-11
-27
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2314
SELECT ALL + col1 * col2 + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL + col1 * col2 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT DISTINCT col0 DIV - col2 + - 24 FROM tab0
----
-24
-25
-59

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT col0 / - col2 + - 24 FROM tab0
----
-24
-25
-59

query I rowsort
SELECT ALL 64 + col0 AS col1 FROM tab1 cor0
----
128
144
67

query I rowsort
SELECT DISTINCT - 19 * - col1 AS col2 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT - col2 - - col1 * 72 FROM tab2 AS cor0
----
1186
2205
4222

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * + cor0.col2 * + col0 col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

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

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 + ( col2 ) FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - + 39 * + col2 AS col0 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT + - 15 - col0 AS col0 FROM tab2 AS cor0
----
-22
-93
-94

query I rowsort
SELECT DISTINCT - col0 * + col1 + 96 FROM tab1 cor0
----
-544
-944
18

query I rowsort
SELECT col1 + 51 + + ( - col0 * + col0 ) FROM tab0 AS cor0
----
-1077
-439
-7779

query I rowsort
SELECT ALL + col0 * - col1 + ( col1 ) FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT - col2 * col2 + col1 + + col1 * - col2 FROM tab0
----
-1
-14095
-3841

query I rowsort
SELECT 99 * 77 FROM tab1 AS cor0
----
7623
7623
7623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2331
SELECT + CAST( col0 AS SIGNED ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-2331
SELECT + CAST ( col0 AS INTEGER ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 - + col0 * col0 FROM tab0 AS cor0
----
-1191
-585
-7914

query I rowsort
SELECT ALL + ( - cor0.col0 ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + - 14 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-111
-2852
-7476

query I rowsort
SELECT - col1 + 41 FROM tab0
----
-45
-50
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT col2 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2336
SELECT col2 + col0 / col0 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT col2 - - col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT ( - 25 ) - col1 * col1 AS col1 FROM tab2
----
-314
-3506
-986

query I rowsort
SELECT ALL ( - 51 * + col0 ) FROM tab1
----
-153
-3264
-4080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT DISTINCT - 1 * + 56 / cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - 1 * + 56 / cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 14 + 94 * + col1 AS col0 FROM tab0
----
8098
8568
9132

query I rowsort
SELECT - ( col2 ) + + col1 FROM tab0
----
53
9
96

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

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

query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab2, tab2 AS cor0
----
-22

query I rowsort
SELECT cor0.col0 * cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + col2 * col2 * + col1 + col2 FROM tab1 cor0
----
119904
32547
75870

query I rowsort
SELECT ALL - col1 + 6 FROM tab2 AS cor0
----
-11
-25
-53

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

query I rowsort
SELECT - + cor0.col1 + + ( + col0 ) FROM tab0 AS cor0
----
-2
-62
-62

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT cor0.col2 * + cor0.col1 DIV + col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2351
SELECT cor0.col2 * + cor0.col1 / + col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 53 * + col0 FROM tab2 AS cor0
----
-371
-4134
-4187

onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT + 38 + - 7 DIV cor0.col2 col0 FROM tab1 AS cor0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2353
SELECT + 38 + - 7 / cor0.col2 col0 FROM tab1 AS cor0
----
38
38
38

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

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

query I rowsort
SELECT + 72 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

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

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

query I rowsort
SELECT DISTINCT - - tab2.col0 AS col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
7
78
79

query I rowsort
SELECT DISTINCT + 24 FROM tab1, tab1 AS cor0
----
24

query I rowsort
SELECT ALL + col2 * + col2 - - 16 AS col0 FROM tab2 AS cor0
----
1460
692
745

query I rowsort
SELECT ALL - col2 * col0 - 49 AS col2 FROM tab2 AS cor0
----
-2077
-238
-3051

query I rowsort
SELECT ALL cor0.col1 * 32 + col0 AS col1 FROM tab0 cor0
----
2776
3001
3139

query I rowsort
SELECT - col0 * - ( - col0 * - col0 ) FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT ALL col0 * cor0.col0 * - ( col2 + - col0 * - ( col1 ) ) FROM tab2 AS cor0
----
-11956
-28156752
-8618821

query I rowsort
SELECT DISTINCT cor0.col0 * - ( 54 ) AS col0 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT ALL - 93 - + col1 FROM tab0
----
-179
-184
-190

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

query I rowsort
SELECT ALL col1 * + 33 + ( tab0.col2 ) * + ( - 12 ) AS col1 FROM tab0
----
2019
2442
3189

query I rowsort
SELECT DISTINCT + 55 FROM tab0, tab2 AS cor0
----
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT ALL + tab1.col2 DIV - ( col0 ) + + col2 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL + tab1.col2 / - ( col0 ) + + col2 FROM tab1
----
36
57
95

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

query I rowsort
SELECT ALL - col1 * + ( - col0 + + col1 ) AS col0 FROM tab0 AS cor0
----
-182
-5332
-6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT DISTINCT + col0 DIV + col0 + - col1 * + col2 FROM tab0 cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + col0 / + col0 + - col1 * + col2 FROM tab0 cor0
----
-2837
-7461
-96

query I rowsort
SELECT cor0.col0 * - 77 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 34ae318a1011791e2e7d5fe2c90e5265

onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT DISTINCT + col1 DIV - col0 AS col2 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT + col1 / - col0 AS col2 FROM tab1
----
-8
0

query I rowsort
SELECT DISTINCT + ( col1 + col0 ) * - col0 FROM tab2
----
-10686
-266
-7584

query I rowsort
SELECT ( + 64 ) + col1 AS col0 FROM tab2 AS cor0
----
123
81
95

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

query I rowsort
SELECT ( + 51 ) * col2 AS col1 FROM tab2 AS cor0
----
1326
1377
1938

query I rowsort
SELECT col1 * col0 - ( 38 ) FROM tab0 AS cor0
----
2026
3357
8061

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

query I rowsort
SELECT - col1 * - col1 + ( - col1 ) - col1 FROM tab2 AS cor0
----
255
3363
899

query I rowsort
SELECT ALL - col1 * - col1 * + cor0.col2 + - col0 FROM tab1 AS cor0
----
16144
36501
5636

query I rowsort
SELECT + col1 * + col2 - 37 AS col1 FROM tab0 AS cor0
----
2801
60
7425

query I rowsort
SELECT ALL - + 42 + col2 FROM tab0 AS cor0
----
-41
-9
40

query I rowsort
SELECT + col0 + col2 + - 1 AS col0 FROM tab0 AS cor0
----
170
35
56

query I rowsort
SELECT DISTINCT + + col2 + col0 * + 56 FROM tab2 AS cor0
----
419
4394
4462

query I rowsort
SELECT - - col2 * + col1 + cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL + 84 + col1 * 65 FROM tab0 AS cor0
----
5674
5999
6389

query I rowsort
SELECT ALL - col0 * cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2391
SELECT - - CAST( 2 AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
-22
-33
-87

skipif mysql # not compatible
query I rowsort label-2391
SELECT - - CAST ( 2 AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
-22
-33
-87

query I rowsort
SELECT DISTINCT + col2 + - col2 + col1 AS col1 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT DISTINCT col1 + - cor0.col1 DIV - cor0.col2 + - col2 FROM tab1 cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT col1 + - cor0.col1 / - cor0.col2 + - col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - 42 + - col0 * + cor0.col2 FROM tab0 AS cor0
----
-7340
-77
-834

query I rowsort
SELECT - ( 29 ) * col2 + + col2 * - 69 AS col0 FROM tab1 AS cor0
----
-5292
-5586
-9408

query I rowsort
SELECT col2 - + col1 * + col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT tab2.col2 + + col1 - - col2 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT + col2 - 36 AS col2 FROM tab1
----
18
21
60

query I rowsort
SELECT ALL 88 - + cor0.col2 FROM tab2 AS cor0
----
50
61
62

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

query I rowsort
SELECT cor0.col2 + - col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT 15 * - 15 AS col0 FROM tab2
----
-225
-225
-225

query I rowsort
SELECT DISTINCT tab1.col1 * cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e15c44d5a431966f2851e6bf4041b374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col2 + ( + 27 ) * - tab1.col1 col0 FROM tab1
----
-540
3378
7329

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

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

query I rowsort
SELECT ( - 57 + tab2.col1 ) * - 30 FROM tab2
----
-60
1200
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT - col2 DIV - col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2407
SELECT - col2 / - col0 AS col2 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2408
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2408
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - tab2.col0 + - tab2.col1 * - col1 AS col1 FROM tab2
----
210
3403
954

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

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - cor0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + col0 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT + col2 + - col2 * + 52 FROM tab2 cor0
----
-1326
-1377
-1938

query I rowsort
SELECT DISTINCT - + col0 * + 54 - col2 * + col1 * + ( - col1 ) FROM tab0 AS cor0
----
242772
674236
7519

onlyif mysql # use DIV operator for integer division
query I rowsort label-2414
SELECT ALL col0 + 1 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL col0 + 1 / - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col2 + - ( + col0 + col1 ) FROM tab1 AS cor0
----
-131
-189
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2416
SELECT DISTINCT + cor0.col2 + ( + col1 ) DIV + col0 AS col2 FROM tab2 cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + cor0.col2 + ( + col1 ) / + col0 AS col2 FROM tab2 cor0
----
26
31
38

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

query I rowsort
SELECT ALL - tab1.col0 * + 46 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6c7c3a67b170f7d7926e5e951cc2ff64

query I rowsort
SELECT ( col1 + + 36 ) FROM tab0
----
122
127
133

onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT col2 * - col2 + 90 * col2 DIV col0 AS col2 FROM tab1
----
-1296
-3169
-9108

skipif mysql # not compatible
query I rowsort label-2420
SELECT col2 * - col2 + 90 * col2 / col0 AS col2 FROM tab1
----
-1296
-3169
-9108

query I rowsort
SELECT ALL - col2 * + 77 + + tab1.col2 FROM tab1
----
-4104
-4332
-7296

query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab2, tab2 AS cor0
----
41

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

query I rowsort
SELECT - 64 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT + col2 - col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col2 + 5 FROM tab0 AS cor0
----
38
6
87

query I rowsort
SELECT col0 * col2 + - col2 * col1 * - col1 FROM tab0
----
244860
686340
9444

query I rowsort
SELECT DISTINCT + col1 * - 18 FROM tab2
----
-1062
-306
-558

query I rowsort
SELECT + 75 FROM tab2, tab0 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 col2 FROM tab2
----
1534
646
837

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

query I rowsort
SELECT - col1 + 16 AS col0 FROM tab0 AS cor0
----
-70
-75
-81

query I rowsort
SELECT 14 * col0 * col2 FROM tab0 AS cor0
----
102172
11088
490

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

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

query I rowsort
SELECT + col0 + ( - col2 ) * - cor0.col0 * + 35 FROM tab1 AS cor0
----
127744
268880
5673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 40 * col0 col1 FROM tab0 cor0
----
1046
1497
3651

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

query I rowsort
SELECT - col0 * - 69 AS col0 FROM tab1 cor0
----
207
4416
5520

query I rowsort
SELECT ( cor0.col2 ) + + col0 + ( 79 ) AS col0 FROM tab0 AS cor0
----
115
136
250

query I rowsort
SELECT ALL + + 80 * col2 AS col0 FROM tab1 AS cor0
----
4320
4560
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * col0 - cor0.col2 col2 FROM tab2 AS cor0
----
386
4576
4623

query I rowsort
SELECT DISTINCT cor0.col1 * ( + 58 ) AS col1 FROM tab1, tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT 11 + - col2 FROM tab0
----
-22
-71
10

query I rowsort
SELECT ( col2 ) * + col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - 48 * + col2 AS col1 FROM tab1
----
-2592
-2736
-4608

onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT DISTINCT + col0 DIV col1 + col1 * + 91 FROM tab1 AS cor0
----
1189
2366
916

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + col0 / col1 + col1 * + 91 FROM tab1 AS cor0
----
1189
2366
916

query I rowsort
SELECT DISTINCT + 43 * + cor0.col2 - ( 94 + col0 ) FROM tab0 AS cor0
----
-86
1301
3343

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 - cor0.col0 * + CAST ( - col2 + - col2 AS REAL ) FROM tab2 AS cor0
----
351
4030
5966

query I rowsort
SELECT - 7 * col1 * col2 AS col2 FROM tab2 AS cor0
----
-10738
-4522
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + col0 col2 FROM tab2 AS cor0
----
1612
725
844

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

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + 77 / col0 + col2 AS col2 FROM tab2 cor0
----
26
38
38

query I rowsort
SELECT ALL - 54 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1404
-540
-702

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + cor0.col1 * - col0 + CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT + col0 * 6 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT DISTINCT col2 * - 18 AS col2 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL - col1 + + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - 20 + - col1 FROM tab1
----
-30
-33
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT - + col1 DIV + ( 11 ) AS col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-2460
SELECT - + col1 / + ( 11 ) AS col1 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT col0 * - 51 AS col1 FROM tab2
----
-357
-3978
-4029

query I rowsort
SELECT - ( + 20 ) * col2 FROM tab1 AS cor0
----
-1080
-1140
-1920

query I rowsort
SELECT + col0 + 98 AS col1 FROM tab2 AS cor0
----
105
176
177

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

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

query I rowsort
SELECT + col0 * cor0.col2 * cor0.col1 AS col0 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - + col2 * col0 + 18 FROM tab1 AS cor0
----
-144
-3630
-7662

onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT col0 DIV col2 + - 17 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-105
-141
-439

skipif mysql # not compatible
query I rowsort label-2467
SELECT col0 / col2 + - 17 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-105
-141
-439

query I rowsort
SELECT DISTINCT + + 62 AS col1 FROM tab2 cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab0, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
24
35
89

query I rowsort
SELECT col1 + 34 FROM tab2 cor0
----
51
65
93

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

query I rowsort
SELECT DISTINCT + col1 * 76 + tab0.col1 FROM tab0
----
6622
7007
7469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2473
SELECT + CAST( - 68 AS SIGNED ) * - col1 + ( cor0.col2 * - col1 ) AS col2 FROM tab2 AS cor0
----
1271
2478
510

skipif mysql # not compatible
query I rowsort label-2473
SELECT + CAST ( - 68 AS INTEGER ) * - col1 + ( cor0.col2 * - col1 ) AS col2 FROM tab2 AS cor0
----
1271
2478
510

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

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

query I rowsort
SELECT + col2 - col2 * col0 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
-233415
-432
-614304

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

query I rowsort
SELECT cor0.col2 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + - col0 * - ( col2 ) + 81 AS col1 FROM tab1 AS cor0
----
243
3729
7761

onlyif mysql # use DIV operator for integer division
query I rowsort label-2482
SELECT col2 DIV - col2 + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2482
SELECT col2 / - col2 + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT 95 * 43 AS col1 FROM tab0 AS cor0
----
4085

query I rowsort
SELECT - 80 + - col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1305
-656
-8001

query I rowsort
SELECT ALL col1 * col2 * col2 FROM tab1
----
119808
32490
75816

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

query I rowsort
SELECT ALL tab0.col1 * + 74 FROM tab0
----
6364
6734
7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 + - tab1.col1 + col0 * 20 col2 FROM tab1
----
102
1338
1655

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

query I rowsort
SELECT - - 49 * col0 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT - col0 * + col2 + - col0 - - col2 AS col2 FROM tab1
----
-111
-3655
-7664

query I rowsort
SELECT col0 + col1 * - tab1.col1 * + col0 + col1 * + tab1.col1 FROM tab1
----
-13271
-1349
-6236

onlyif mysql # use DIV operator for integer division
query I rowsort label-2493
SELECT DISTINCT 41 - ( col0 ) DIV 32 FROM tab2
----
39
41

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT 41 - ( col0 ) / 32 FROM tab2
----
39
41

query I rowsort
SELECT ALL + ( - ( + col1 ) ) - - 95 FROM tab2
----
36
64
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT DISTINCT - col1 - + col0 DIV col2 FROM tab0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - col1 - + col0 / col2 FROM tab0
----
-132
-86
-92

query I rowsort
SELECT DISTINCT col1 - - col2 AS col0 FROM tab0
----
119
173
98

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

query I rowsort
SELECT - ( + cor0.col1 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col0 * 10 col0 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT + col1 * + 4 AS col1 FROM tab0 AS cor0
----
344
364
388

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

query I rowsort
SELECT - ( - tab0.col0 ) AS col0 FROM tab0
----
24
35
89

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

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

query I rowsort
SELECT ALL + + 60 * + col0 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT DISTINCT - 32 * col1 + ( + col1 ) * cor0.col0 + col0 FROM tab2 AS cor0
----
-768
2792
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT + - col0 DIV ( + col0 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2507
SELECT + - col0 / ( + col0 ) FROM tab0 AS cor0
----
-1
-1
-1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT DISTINCT - col0 * col0 DIV col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - col0 * col0 / col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - col0 - 96 * - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
104520
61
645415

query I rowsort
SELECT - - col0 * + ( - 1 ) + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - col2 * 77 + + col0 FROM tab2 cor0
----
-1924
-2072
-2847

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT col2 DIV + col2 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2513
SELECT col2 / + col2 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL col2 + 64 FROM tab2 AS cor0
----
102
90
91

query I rowsort
SELECT ALL col2 * 88 FROM tab0 cor0
----
2904
7216
88

query I rowsort
SELECT ALL ( col0 ) * + 38 * col1 - col1 AS col2 FROM tab0
----
128913
307671
78346

query I rowsort
SELECT col0 * + col0 + 97 + + col0 * + col2 AS col1 FROM tab2
----
335
8209
9340

query I rowsort
SELECT ALL 60 * tab2.col0 - col2 * 57 FROM tab2
----
-1119
2574
3198

query I rowsort
SELECT DISTINCT - 22 - col0 * + ( - col1 ) FROM tab1
----
1018
56
618

query I rowsort
SELECT ALL col0 * 2 + col1 * + 74 FROM tab2 AS cor0
----
1416
2308
4522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT ALL - col2 + 66 DIV - col2 FROM tab0 AS cor0
----
-35
-67
-82

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - col2 + 66 / - col2 FROM tab0 AS cor0
----
-35
-67
-82

query I rowsort
SELECT + 91 + + col1 * - col0 * + col2 FROM tab1 AS cor0
----
-36389
-4121
-99749

onlyif mysql # use DIV operator for integer division
query I rowsort label-2523
SELECT DISTINCT + col1 DIV 97 - - col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + col1 / 97 - - col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

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

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

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

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

query I rowsort
SELECT ALL + - col0 + + col1 * col2 * + cor0.col1 AS col2 FROM tab1 cor0
----
16144
36501
5636

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

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

query I rowsort
SELECT ALL 35 + col0 FROM tab2 AS cor0
----
113
114
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT col0 - + tab1.col0 DIV col2 AS col2 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-2531
SELECT col0 - + tab1.col0 / col2 AS col2 FROM tab1
----
3
63
80

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2533
SELECT ALL + col2 + - col2 DIV col0 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL + col2 + - col2 / col0 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT 75 * - col1 * + col0 AS col0 FROM tab1 cor0
----
-48000
-5850
-78000

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

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

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

query I rowsort
SELECT DISTINCT + ( 33 ) AS col2 FROM tab0
----
33

query I rowsort
SELECT DISTINCT 84 * 61 FROM tab1
----
5124

query I rowsort
SELECT - cor0.col2 + + col1 * 26 * col2 FROM tab2 AS cor0
----
16758
21735
39858

query I rowsort
SELECT ALL 69 AS col0 FROM tab1
----
69
69
69

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

query I rowsort
SELECT + col0 * 94 FROM tab2
----
658
7332
7426

query I rowsort
SELECT ALL - ( - col1 ) * col0 * - 77 FROM tab0
----
-158928
-261415
-623623

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

query I rowsort
SELECT + 69 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-7229
-723
34

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

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) + ( - col0 ) FROM tab1 AS cor0
----
-128
-160
-6

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

query I rowsort
SELECT DISTINCT cor0.col2 - - col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2550
SELECT DISTINCT col0 DIV - col2 + col0 AS col0 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT col0 / - col2 + col0 AS col0 FROM tab0
----
0
24
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT - col1 DIV col1 + col1 * col1 FROM tab0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-2551
SELECT - col1 / col1 + col1 * col1 FROM tab0
----
7395
8280
9408

query I rowsort
SELECT DISTINCT + + col1 * 80 + - col2 FROM tab2 AS cor0
----
1322
2453
4694

query I rowsort
SELECT - col1 * + 99 + + col0 * - col2 FROM tab1 AS cor0
----
-2736
-4638
-8967

query I rowsort
SELECT + - col2 * col2 + + ( + cor0.col1 ) * + 34 - 81 FROM tab0 AS cor0
----
-3711
1754
3216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 93 ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL - + 22 AS col0 FROM tab0 cor0
----
-22
-22
-22

query I rowsort
SELECT - + 63 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-1579
-1670
-2377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( 93 ) col0 FROM tab0 cor0
----
93
93
93

query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - 37 * cor0.col2 + col1 FROM tab2 AS cor0
----
-1389
-903
-968

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT + - cor0.col1 DIV col1 + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1090
-2
-6725

skipif mysql # not compatible
query I rowsort label-2562
SELECT + - cor0.col1 / col1 + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1090
-2
-6725

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

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 FROM tab2 AS cor0
----
NULL

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * col0 - ( - 4 + + col1 ) col0 FROM tab2 AS cor0
----
-1356
-244
-4657

query I rowsort
SELECT DISTINCT + 74 - 37 FROM tab2 cor0
----
37

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT ALL + col1 + + col1 + + col0 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
19
26
52

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + col1 + + col1 + + col0 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
19
26
52

query I rowsort
SELECT DISTINCT + ( 11 ) * + col1 - 30 AS col0 FROM tab2 AS cor0
----
157
311
619

query I rowsort
SELECT + + col0 * + 87 + + col2 * + ( col0 * col2 + + col2 * col0 ) FROM tab1 AS cor0
----
1481520
17757
421440

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + cor0.col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL col1 * - ( + col2 ) FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT ALL col0 DIV - 52 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL col0 / - 52 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col0 * col0 * col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT DISTINCT + 29 - col1 * col1 AS col0 FROM tab1
----
-140
-647
-71

query I rowsort
SELECT ALL 81 - col0 * col0 FROM tab2
----
-6003
-6160
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2580
SELECT + - ( 40 ) * - col2 - 25 * ( - col1 * CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-11970
-27360
-32940

skipif mysql # not compatible
query I rowsort label-2580
SELECT + - ( 40 ) * - col2 - 25 * ( - col1 * CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-11970
-27360
-32940

query I rowsort
SELECT ALL 54 * col1 + tab1.col2 AS col0 FROM tab1
----
1458
597
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + tab0.col1 col1 FROM tab0
----
2064
3395
8099

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

query I rowsort
SELECT + + col1 * col1 + + 67 AS col2 FROM tab0 cor0
----
7463
8348
9476

onlyif mysql # use DIV operator for integer division
query I rowsort label-2585
SELECT ALL - col1 DIV - CAST( col2 * col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - col1 / - CAST ( col2 * col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
2

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

query I rowsort
SELECT 53 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

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

query I rowsort
SELECT DISTINCT - 66 * + 11 FROM tab0, tab1 cor0
----
-726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2590
SELECT col1 + CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-2590
SELECT col1 + CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT DISTINCT - col1 DIV + ( 27 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - col1 / + ( 27 ) FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT ALL - col1 DIV - cor0.col0 + - col1 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - col1 / - cor0.col0 + - col1 FROM tab0 AS cor0
----
-83
-90
-95

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

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

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

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT + col0 * CAST ( + ( - col1 ) AS INTEGER ) - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - col2 * col0 + - 68 AS col1 FROM tab0 AS cor0
----
-103
-7366
-860

query I rowsort
SELECT + + col0 * 56 FROM tab0 AS cor0
----
1344
1960
4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT DISTINCT - - col0 DIV + 70 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT - - col0 / + 70 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT ALL + + col0 + + ( cor0.col1 ) DIV - col1 FROM tab2 cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + + col0 + + ( cor0.col1 ) / - col1 FROM tab2 cor0
----
6
77
78

query I rowsort
SELECT DISTINCT - - col1 - + ( + col0 ) FROM tab2 AS cor0
----
-19
-62
24

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

skipif mysql # not compatible
query I rowsort label-2602
SELECT - + col0 / col0 FROM tab0 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT + - col1 * - 15 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT + + col0 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL col2 * + col0 * col2 FROM tab0 cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + - col0 * col0 col1 FROM tab1 AS cor0
----
-4153
-63
-6496

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2609
SELECT + + CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2609
SELECT + + CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 69 FROM tab0, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT - cor1.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col1 + - cor0.col1 * + ( - cor0.col0 ) * col2 AS col1 FROM tab1 AS cor0
----
36490
4238
99853

onlyif mysql # use DIV operator for integer division
query I rowsort label-2613
SELECT - + col2 * col2 + + cor0.col1 * col0 DIV col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif mysql # not compatible
query I rowsort label-2613
SELECT - + col2 * col2 + + cor0.col1 * col0 / col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL col1 + col2 * + 43 FROM tab2
----
1177
1192
1651

query I rowsort
SELECT - col2 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT 87 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT ALL - ( + col1 ) * + col2 + - col0 + cor0.col2 DIV - ( col1 + cor0.col1 ) FROM tab0 AS cor0
----
-132
-2862
-7551

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL - ( + col1 ) * + col2 + - col0 + cor0.col2 / - ( col1 + cor0.col1 ) FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL 18 - col2 AS col2 FROM tab2 AS cor0
----
-20
-8
-9

query I rowsort
SELECT 69 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT DISTINCT + ( + col1 ) - - ( + 60 ) * col2 DIV col2 AS col1 FROM tab1 AS cor0
----
70
73
86

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT + ( + col1 ) - - ( + 60 ) * col2 / col2 AS col1 FROM tab1 AS cor0
----
70
73
86

query I rowsort
SELECT ( + col0 ) * + 50 AS col1 FROM tab2
----
350
3900
3950

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT + + col2 + + 39 DIV col0 AS col1 FROM tab1 cor0
----
57
67
96

skipif mysql # not compatible
query I rowsort label-2624
SELECT + + col2 + + 39 / col0 AS col1 FROM tab1 cor0
----
57
67
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT + + col2 DIV ( col0 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2625
SELECT + + col2 / ( col0 ) FROM tab0 AS cor0
----
0
0
1

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

query I rowsort
SELECT + + col1 * - 24 FROM tab1 cor0
----
-240
-312
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT DISTINCT col1 DIV 11 + + col0 AS col0 FROM tab0 AS cor0
----
31
43
97

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT col1 / 11 + + col0 AS col0 FROM tab0 AS cor0
----
31
43
97

query I rowsort
SELECT ALL 22 + - tab2.col1 AS col0 FROM tab2
----
-37
-9
5

query I rowsort
SELECT ALL - 20 + col1 * + col1 AS col2 FROM tab2
----
269
3461
941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * - cor0.col1 + - 64 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 48b4891f849675915ee096949a591eed

query I rowsort
SELECT 3 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT DISTINCT - 61 + + tab1.col0 FROM tab1
----
-58
19
3

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT ( col0 * - col1 ) = + col0 / col2
----
1
33
82

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT ALL col1 DIV col0 + + col0 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL col1 / col0 + + col0 FROM tab1
----
11
64
80

query I rowsort
SELECT ALL - col1 - col1 * tab2.col2 AS col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT col0 * - tab0.col0 + col2 FROM tab0
----
-1224
-543
-7839

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

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

query I rowsort
SELECT ALL 98 * col0 * - col0 FROM tab1
----
-401408
-627200
-882

query I rowsort
SELECT DISTINCT - + 43 + + cor0.col1 - - col0 FROM tab1 AS cor0
----
-14
31
50

query I rowsort
SELECT DISTINCT - - 28 * col1 FROM tab2 AS cor0
----
1652
476
868

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

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

query I rowsort
SELECT - - ( col2 ) * ( col2 ) FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 77 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT DISTINCT - col0 * col1 * col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2 WHERE NOT + col1 + + col0 BETWEEN NULL AND - col2 * tab2.col1
----
-7
-78
-79

query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab0 WHERE - col0 * - col0 + col0 + + col2 NOT IN ( col1 * col0 )
----
35
7298
792

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE col2 * + col1 + + col1 * col0 + col0 * + col0 * + col0 NOT IN ( - tab2.col1 + + col1 / - col1 )
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * col1 col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT tab0.col0 * - tab0.col0 - - tab0.col1 FROM tab0
----
-1128
-490
-7830

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2655
SELECT col1 DIV cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2655
SELECT col1 / cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

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

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

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

query I rowsort
SELECT DISTINCT + col2 + col0 / cor0.col2 FROM tab1 AS cor0 WHERE + col1 * col0 - - col1 * col2 BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT IN ( col1 + col1 * - col0 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT DISTINCT - col2 + col1 DIV col1 AS col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - col2 + col1 / col1 AS col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT - col1 + - tab1.col1 AS col1 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - col1 - col0 * col0 AS col2 FROM tab0
----
-1322
-662
-8012

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab1.col1 col1 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT + tab0.col1 * - col0 DIV col0 AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2668
SELECT + tab0.col1 * - col0 / col0 AS col2 FROM tab0
----
-86
-91
-97

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

query I rowsort
SELECT DISTINCT col1 * 87 + + cor0.col0 FROM tab2 AS cor0
----
1558
2704
5211

query I rowsort
SELECT - 24 * - 72 FROM tab0 cor0
----
1728
1728
1728

query I rowsort
SELECT - 7 + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f22cc88b8e27bf6b225312a7f6b61497

query I rowsort
SELECT ALL + col2 + 57 * col0 FROM tab0 AS cor0
----
1401
1996
5155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 45 ) col2 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2675
SELECT DISTINCT ( - tab2.col1 ) DIV - col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT ( - tab2.col1 ) / - col1 FROM tab2
----
1

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

query I rowsort
SELECT - cor0.col0 + + cor0.col2 * + col0 * ( - cor0.col0 ) FROM tab2 AS cor0
----
-1330
-158262
-237237

query I rowsort
SELECT - - ( - col1 ) * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + - 79 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT - 56 FROM tab0 cor0
----
-56
-56
-56

query I rowsort
SELECT - + 81 * col1 AS col2 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT - 54 + col0 + + col2 FROM tab1 AS cor0
----
122
3
67

query I rowsort
SELECT + col2 + cor0.col0 * - 15 AS col0 FROM tab0 AS cor0
----
-1253
-327
-524

query I rowsort
SELECT col1 + col2 + - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT - col2 + - 38 AS col0 FROM tab1 cor0
----
-134
-92
-95

query I rowsort
SELECT col2 * col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + + col0 * + 25 + 7 AS col2 FROM tab2 AS cor0
----
182
1957
1982

query I rowsort
SELECT DISTINCT + - col0 * - col0 AS col1 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2689
SELECT - - col1 * + col1 + 47 DIV + col0 AS col0 FROM tab2 AS cor0
----
289
3481
967

skipif mysql # not compatible
query I rowsort label-2689
SELECT - - col1 * + col1 + 47 / + col0 AS col0 FROM tab2 AS cor0
----
289
3481
967

query I rowsort
SELECT - col0 * + cor0.col2 - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT cor0.col2 - 24 AS col0 FROM tab0 AS cor0
----
-23
58
9

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

query I rowsort
SELECT ALL - 51 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

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

query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - + cor0.col0 + ( 70 ) * - col0 AS col2 FROM tab2 AS cor0
----
-497
-5538
-5609

query I rowsort
SELECT cor0.col0 + 36 * + col0 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT + + cor0.col2 + 10 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT - 81 * col1 AS col0 FROM tab2 AS cor0
----
-1377
-2511
-4779

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab2, tab2 cor0
----
70

query I rowsort
SELECT + 83 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + - 1 + col1 - col1 * col1 AS col0 FROM tab1 AS cor0
----
-157
-651
-91

query I rowsort
SELECT col1 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT DISTINCT - col0 DIV - col2 + - 10 FROM tab1 AS cor0
----
-10
-9

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - col0 / - col2 + - 10 FROM tab1 AS cor0
----
-10
-9

query I rowsort
SELECT + tab2.col1 - - tab2.col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT + 85 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT - + ( + 15 ) * + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1290
-1365
-1455

query I rowsort
SELECT + 89 * cor0.col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to b015e382221541ee153b387d8d72274a

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

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

query I rowsort
SELECT + tab1.col1 + 2 FROM tab1, tab0 AS cor0
----
9 values hashing to 18e817b62724a9e6c343ab9a374e92bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT + 6 DIV col1 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2713
SELECT + 6 / col1 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + col1 * 9 + - cor0.col0 FROM tab1 AS cor0
----
-154
-197
-237

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

query I rowsort
SELECT ALL + 34 AS col1 FROM tab1
----
34
34
34

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + - cor0.col0 AS col2 FROM tab1 cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2718
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - col1 * + CAST( - col2 * + col0 AS SIGNED ) + + col2 * tab1.col2 FROM tab1
----
112428
1307136
368049

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - col1 * + CAST ( - col2 * + col0 AS INTEGER ) + + col2 * tab1.col2 FROM tab1
----
112428
1307136
368049

onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT ALL - + 59 DIV col0 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - + 59 / col0 FROM tab0 cor0
----
-1
-2
0

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

query I rowsort
SELECT ALL + + 6 + - col2 FROM tab1 AS cor0
----
-48
-51
-90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 * - col2 col2 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT + 99 * col1 AS col2 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT DISTINCT 94 + + col2 FROM tab2 AS cor0
----
120
121
132

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

query I rowsort
SELECT ALL col0 * 14 - - col1 FROM tab2 AS cor0
----
1123
1151
129

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

query I rowsort
SELECT + cor0.col0 + 0 FROM tab0 cor0
----
24
35
89

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2731
SELECT ALL + 16 DIV - col0 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + 16 / - col0 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

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

query I rowsort
SELECT DISTINCT col2 * - 2 AS col2 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT + ( + 43 ) * col2 FROM tab1 cor0
----
2322
2451
4128

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

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

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

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

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

query I rowsort
SELECT ALL - ( - 48 ) FROM tab0 AS cor0
----
48
48
48

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

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

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + 94 + - ( - col1 ) * col0 FROM tab2 AS cor0
----
1437
311
4696

query I rowsort
SELECT - col0 * - 37 FROM tab2
----
259
2886
2923

query I rowsort
SELECT ALL col2 * cor0.col1 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 - + 57 FROM tab1 AS cor0
----
-3
0
39

query I rowsort
SELECT ALL - cor0.col2 - 43 FROM tab2 AS cor0
----
-69
-70
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 54 col1 FROM tab2 AS cor0
----
132
133
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT DISTINCT + + col2 DIV 86 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT + + col2 / 86 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - col0 * cor0.col1 + - 76 AS col2 FROM tab1 cor0
----
-1116
-154
-716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2749
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 12 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL + + col0 + - 91 * - cor0.col2 FROM tab1 AS cor0
----
4917
5251
8816

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

query I rowsort
SELECT tab1.col1 + 9 AS col2 FROM tab1
----
19
22
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT 51 + col2 DIV col0 + - ( 71 ) * col0 AS col0 FROM tab0
----
-1652
-2434
-6268

skipif mysql # not compatible
query I rowsort label-2755
SELECT 51 + col2 / col0 + - ( 71 ) * col0 AS col0 FROM tab0
----
-1652
-2434
-6268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2756
SELECT + CAST( col2 * + col2 AS SIGNED ) + 84 FROM tab1
----
3000
3333
9300

skipif mysql # not compatible
query I rowsort label-2756
SELECT + CAST ( col2 * + col2 AS INTEGER ) + 84 FROM tab1
----
3000
3333
9300

onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT + 27 * + 25 + tab1.col2 DIV + col1 + 75 DIV + col2 FROM tab1
----
678
681
682

skipif mysql # not compatible
query I rowsort label-2757
SELECT + 27 * + 25 + tab1.col2 / + col1 + 75 / + col2 FROM tab1
----
678
681
682

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

query I rowsort
SELECT ALL col0 - - col2 * - col0 AS col0 FROM tab1
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT ALL col2 + col1 - col2 DIV - 22 AS col0 FROM tab2
----
56
59
86

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL col2 + col1 - col2 / - 22 AS col0 FROM tab2
----
56
59
86

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2762
SELECT DISTINCT + CAST( + 49 AS SIGNED ) * col0 + + col2 AS col1 FROM tab1 AS cor0
----
201
3193
4016

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT + CAST ( + 49 AS INTEGER ) * col0 + + col2 AS col1 FROM tab1 AS cor0
----
201
3193
4016

query I rowsort
SELECT DISTINCT col1 + col1 + col2 FROM tab2
----
144
72
89

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

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

query I rowsort
SELECT ( 9 ) + col2 FROM tab1
----
105
63
66

query I rowsort
SELECT col0 * 29 * col2 AS col0 FROM tab2
----
5481
58812
87058

query I rowsort
SELECT ALL + 88 + - 19 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

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

query I rowsort
SELECT ALL cor0.col2 * col2 FROM tab0 cor0
----
1
1089
6724

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

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

query I rowsort
SELECT ALL col0 * col1 + + 59 FROM tab1
----
1099
137
699

onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT ALL ( - col0 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL ( - col0 ) / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + 87 AS col1 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT ALL + ( col1 ) * + 8 * + 98 AS col1 FROM tab1 AS cor0
----
10192
20384
7840

query I rowsort
SELECT + col0 + - col2 * ( 72 ) AS col0 FROM tab1 AS cor0
----
-3885
-4040
-6832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col0 FROM tab0 AS cor0
----
88

query I rowsort
SELECT - col1 * col1 + + 23 + col1 AS col1 FROM tab1 AS cor0
----
-133
-627
-67

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + col0 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT 40 * + col2 * - col1 FROM tab0 AS cor0
----
-113520
-298480
-3880

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

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

query I rowsort
SELECT ALL - + ( + col1 ) * ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 34 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT ALL 6 + col2 FROM tab0
----
39
7
88

query I rowsort
SELECT ALL tab1.col0 * - 48 * + 77 FROM tab1, tab1 AS cor0
----
9 values hashing to 4e71ca4df562b77fb14d988336e7ccb6

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col1 * col2 + ( col1 * col0 ) FROM tab0 AS cor0
----
15561
3492
4902

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

query I rowsort
SELECT + col0 * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT col2 * ( - 99 ) + col0 FROM tab1 cor0
----
-5343
-5579
-9424

onlyif mysql # use DIV operator for integer division
query I rowsort label-2792
SELECT + col1 + - 56 DIV col0 FROM tab0 cor0
----
84
91
96

skipif mysql # not compatible
query I rowsort label-2792
SELECT + col1 + - 56 / col0 FROM tab0 cor0
----
84
91
96

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

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL col1 * - CAST ( NULL AS REAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL ( + col2 ) + + 3 + - ( - col0 ) FROM tab2
----
107
120
37

query I rowsort
SELECT + + col0 * - cor0.col1 + - ( cor0.col1 + ( col0 ) ) AS col0 FROM tab0 cor0
----
-2174
-3527
-8279

query I rowsort
SELECT + col1 + + ( 79 ) + col2 FROM tab0 AS cor0
----
177
198
252

query I rowsort
SELECT ALL - col2 * - 33 AS col1 FROM tab2 cor0
----
1254
858
891

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 * cor0.col0 col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + - col0 * + col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col0 FROM tab0 AS cor0
----
119
173
98

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

query I rowsort
SELECT ALL col1 * 28 AS col0 FROM tab2 cor0
----
1652
476
868

query I rowsort
SELECT DISTINCT 78 * col2 FROM tab0 AS cor0
----
2574
6396
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT ALL + col1 DIV - 92 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + col1 / - 92 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT - - 83 + - 50 AS col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT + + 86 * - 81 FROM tab2 AS cor0
----
-6966
-6966
-6966

query I rowsort
SELECT DISTINCT + - col1 + 68 * col0 FROM tab0 AS cor0
----
1546
2283
5961

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

query I rowsort
SELECT - + cor0.col1 + ( col2 ) * col0 FROM tab2 AS cor0
----
158
1969
2985

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

query I rowsort
SELECT ALL + 65 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT + + col1 * + col0 + - col2 + - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
1306
191
4577

skipif mysql # not compatible
query I rowsort label-2815
SELECT + + col1 * + col0 + - col2 + - col0 / - col0 AS col2 FROM tab2 AS cor0
----
1306
191
4577

query I rowsort
SELECT cor0.col0 + col2 * 31 AS col0 FROM tab0 AS cor0
----
1047
2631
66

query I rowsort
SELECT ( col0 ) * + col1 * + 63 + tab2.col0 FROM tab2
----
13678
290004
84688

query I rowsort
SELECT + col0 + 18 FROM tab1
----
21
82
98

query I rowsort
SELECT DISTINCT col0 + + col0 + col0 FROM tab0
----
105
267
72

query I rowsort
SELECT 46 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT tab1.col2 * + 61 FROM tab1
----
3294
3477
5856

query I rowsort
SELECT col2 + - 67 FROM tab1 AS cor0
----
-10
-13
29

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

query I rowsort
SELECT + col0 * - 6 + cor0.col1 + + col2 * - 45 AS col0 FROM tab2 AS cor0
----
-1226
-1579
-2167

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2826
SELECT CAST( 75 AS SIGNED ) * col2 * col2 col0 FROM tab2 AS cor0
----
108300
50700
54675

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2826
SELECT CAST ( 75 AS INTEGER ) * col2 * col2 col0 FROM tab2 AS cor0
----
108300
50700
54675

query I rowsort
SELECT DISTINCT + col2 * 86 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT + 8 + col1 * col0 FROM tab1 AS cor0
----
1048
648
86

query I rowsort
SELECT DISTINCT - ( 28 ) AS col2 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT - 62 + + col0 * col2 FROM tab1 cor0
----
100
3586
7618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - tab2.col0 * 68 col1 FROM tab2, tab1, tab0 AS cor0
----
476
5304
5372

query I rowsort
SELECT ( 93 ) FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT ( + 99 ) * col2 FROM tab0 AS cor0
----
3267
8118
99

query I rowsort
SELECT ALL col1 * col0 * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT ( + 64 ) + col1 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-13456
-1964
-6336

query I rowsort
SELECT DISTINCT - 45 * col1 FROM tab1 AS cor0
----
-1170
-450
-585

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

skipif mysql # not compatible
query I rowsort label-2837
SELECT + 13 / - col1 + + 94 AS col2 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT ALL - ( + col1 ) + 47 AS col1 FROM tab2
----
-12
16
30

query I rowsort
SELECT + 73 + - col2 FROM tab1 AS cor0
----
-23
16
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-2840
SELECT ALL - 6 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - 6 / col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 61 + col0 FROM tab0 AS cor0
----
150
85
96

query I rowsort
SELECT DISTINCT + 5 + cor0.col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT DISTINCT - col0 * col0 - cor0.col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT + 15 * - col2 + col0 FROM tab0 AS cor0
----
-1141
-471
20

query I rowsort
SELECT DISTINCT 10 + + 55 FROM tab1, tab2 AS cor0
----
65

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

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 56 * + col2 - + col1 FROM tab1
----
2998
3182
5363

query I rowsort
SELECT ALL - + 51 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

skipif mysql # not compatible
query I rowsort label-2852
SELECT - col1 * CAST ( NULL AS INTEGER ) + - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - 35 + col2 FROM tab0 AS cor0
----
1
136
22

query I rowsort
SELECT ALL col1 + 3 * + col2 FROM tab2 AS cor0
----
112
131
137

query I rowsort
SELECT ALL - + cor0.col0 - + 98 * col1 AS col0 FROM tab1 AS cor0
----
-1044
-1354
-2551

query I rowsort
SELECT + - col1 + ( + 80 ) FROM tab0 cor0
----
-11
-17
-6

query I rowsort
SELECT ALL - + col2 * 66 + + 72 FROM tab0 AS cor0
----
-2106
-5340
6

query I rowsort
SELECT ALL + + cor0.col1 + - ( 89 ) FROM tab1 AS cor0
----
-63
-76
-79

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

query I rowsort
SELECT DISTINCT col0 * + 26 * - col1 AS col1 FROM tab2 AS cor0
----
-119652
-34918
-5642

query I rowsort
SELECT - + col1 - 18 AS col2 FROM tab2 AS cor0
----
-35
-49
-77

query I rowsort
SELECT col2 * ( + col0 ) + col2 * 95 * + col1 FROM tab0 cor0
----
270402
716188
9250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - ( - 85 ) col0 FROM tab2 cor0
----
102
116
144

query I rowsort
SELECT DISTINCT - ( col0 ) - + 81 FROM tab1
----
-145
-161
-84

query I rowsort
SELECT + 50 * tab2.col1 FROM tab2
----
1550
2950
850

query I rowsort
SELECT DISTINCT - + cor0.col0 + + col0 + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col1 * col0 + 52 AS col0 FROM tab1 AS cor0
----
-26
-588
-988

query I rowsort
SELECT - col1 * 67 + - col1 * - cor0.col2 FROM tab0 AS cor0
----
-2924
-6402
1365

query I rowsort
SELECT col1 + 72 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT - tab2.col2 * ( 44 ) + + tab2.col2 AS col2 FROM tab2
----
-1118
-1161
-1634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * col0 + col1 * col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT - col0 - CAST ( - col0 AS REAL ) * col0 AS col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT ALL - col0 * 63 + + col1 * + cor0.col1 FROM tab0 AS cor0
----
2674
5884
7204

query I rowsort
SELECT col0 * ( + col1 ) + cor0.col1 * 15 AS col0 FROM tab2 AS cor0
----
1598
5487
682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col0 col1 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT DISTINCT + col1 DIV cor0.col1 + col2 * cor0.col1 - col1 FROM tab2 AS cor0
----
1476
630
807

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + col1 / cor0.col1 + col2 * cor0.col1 - col1 FROM tab2 AS cor0
----
1476
630
807

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - col0 + + 60 AS col1 FROM tab0
----
-29
25
36

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT + 83 DIV col0 - col0 AS col2 FROM tab1
----
-63
-79
24

skipif mysql # not compatible
query I rowsort label-2881
SELECT + 83 / col0 - col0 AS col2 FROM tab1
----
-63
-79
24

query I rowsort
SELECT DISTINCT 34 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + 19 col1 FROM tab1
----
-1021
-59
-621

query I rowsort
SELECT ALL 99 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT - 1 + col2 AS col0 FROM tab2 AS cor0
----
25
26
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2887
SELECT ALL - CAST( + cor0.col0 AS SIGNED ) + + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - CAST ( + cor0.col0 AS INTEGER ) + + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

query I rowsort
SELECT ALL 68 - + col1 FROM tab0
----
-18
-23
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT DISTINCT col2 DIV col0 + col1 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT col2 / col0 + col1 FROM tab0
----
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * - col2 + col1 + + tab1.col2 col0 FROM tab1
----
5156
5425
9133

query I rowsort
SELECT 37 + - col0 FROM tab2
----
-41
-42
30

query I rowsort
SELECT DISTINCT + 29 * - 7 AS col2 FROM tab1, tab1 AS cor0
----
-203

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

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

query I rowsort
SELECT ALL + col2 * + col2 * + col1 AS col1 FROM tab1 cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2896
SELECT + + 55 DIV + ( + col2 ) + - 12 * + cor0.col1 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
-110
-143
-285

skipif mysql # not compatible
query I rowsort label-2896
SELECT + + 55 / + ( + col2 ) + - 12 * + cor0.col1 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
-110
-143
-285

query I rowsort
SELECT + col2 * 82 FROM tab1
----
4428
4674
7872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2898
SELECT + CAST( col2 * - col1 AS SIGNED ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2898
SELECT + CAST ( col2 * - col1 AS INTEGER ) FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2899
SELECT ALL - - CAST( + cor0.col1 AS SIGNED ) * col1 + - col2 AS col2 FROM tab1 AS cor0
----
43
622
73

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - - CAST ( + cor0.col1 AS INTEGER ) * col1 + - col2 AS col2 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT - cor0.col2 + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2900
SELECT - cor0.col2 + col1 / col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - 16 + col1 FROM tab1 AS cor0
----
-3
-6
10

query I rowsort
SELECT - - 65 + + col1 * col1 FROM tab2 cor0
----
1026
354
3546

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL col0 / + col0 col0 FROM tab2 AS cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT + ( - 13 ) FROM tab0 AS cor0
----
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT DISTINCT col0 * - col0 + col2 DIV col0 + col0 FROM tab0 AS cor0
----
-1190
-551
-7832

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT col0 * - col0 + col2 / col0 + col0 FROM tab0 AS cor0
----
-1190
-551
-7832

query I rowsort
SELECT - - 63 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
1697
1732
2411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + 3 col0 FROM tab1 AS cor0
----
-1037
-637
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col1 col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT DISTINCT col0 DIV + 90 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT col0 / + 90 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - 38 + + col2 AS col1 FROM tab1 AS cor0
----
16
19
58

query I rowsort
SELECT - 70 * col0 * - col1 FROM tab1 AS cor0
----
44800
5460
72800

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2916
SELECT DISTINCT col1 - + CAST( 65 AS SIGNED ) FROM tab1 AS cor0
----
-39
-52
-55

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT col1 - + CAST ( 65 AS INTEGER ) FROM tab1 AS cor0
----
-39
-52
-55

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

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT - col0 - - CAST ( NULL AS REAL ) * col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col2 * + col0 - - 76 * - col2 FROM tab1
----
-3942
-684
384

query I rowsort
SELECT ALL col1 + - 99 + 55 FROM tab0
----
42
47
53

query I rowsort
SELECT tab0.col0 + + 3 AS col0 FROM tab0
----
27
38
92

query I rowsort
SELECT DISTINCT + col1 + + ( col1 ) * + col0 - col2 AS col0 FROM tab2
----
1322
221
4635

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

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

query I rowsort
SELECT ( + 58 ) * + col2 FROM tab0 AS cor0
----
1914
4756
58

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

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

query I rowsort
SELECT ALL 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

query I rowsort
SELECT DISTINCT 61 * ( - col2 + - col0 ) FROM tab2
----
-2074
-6344
-7137

query I rowsort
SELECT ( + 24 * col1 ) AS col2 FROM tab1
----
240
312
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT cor0.col0 DIV - cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 63a8c0cb1cf84ad2acbe35cce7af4f3e

skipif mysql # not compatible
query I rowsort label-2930
SELECT cor0.col0 / - cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 63a8c0cb1cf84ad2acbe35cce7af4f3e

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 93 ) + - col2 AS col0 FROM tab0 AS cor0
----
-126
-175
-94

query I rowsort
SELECT cor0.col0 * - cor0.col1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT ALL + 47 * - tab2.col2 AS col2 FROM tab2
----
-1222
-1269
-1786

query I rowsort
SELECT ALL 36 * col1 AS col0 FROM tab2
----
1116
2124
612

query I rowsort
SELECT ALL + 32 * + col2 FROM tab1
----
1728
1824
3072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col0 + 64 AS col2 FROM tab2 cor0
----
-14
-15
57

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab1 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

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

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

query I rowsort
SELECT + - col0 * + 19 * - col2 FROM tab2 AS cor0
----
3591
38532
57038

query I rowsort
SELECT - 66 * 1 FROM tab0
----
-66
-66
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT col1 + + col0 DIV col2 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-2943
SELECT col1 + + col0 / col2 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT ALL - col1 * + 92 FROM tab0
----
-7912
-8372
-8924

query I rowsort
SELECT DISTINCT 33 + tab1.col2 * + col0 + - col0 AS col1 FROM tab1
----
192
3617
7633

query I rowsort
SELECT DISTINCT 15 * - 48 AS col1 FROM tab2
----
-720

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT 81 + col0 DIV - col0 AS col2 FROM tab2
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2948
SELECT 81 + col0 / - col0 AS col2 FROM tab2
----
80
80
80

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

query I rowsort
SELECT 65 * col0 AS col2 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT - ( col1 ) * + col0 * + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-118728
-49450
-720720

query I rowsort
SELECT ALL + + 56 AS col2 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT DISTINCT - col2 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT - col2 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT + col2 + + col0 * col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-2954
SELECT + col2 + + col0 * col2 / + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2957
SELECT col2 DIV - 71 col2 FROM tab0 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2957
SELECT col2 / - 71 col2 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT + - 83 + + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 04ddd7dc3686f9fbdb5df22a6f8e42bf

query I rowsort
SELECT + - col0 * - col0 + + cor0.col0 * col0 + col0 FROM tab1 AS cor0
----
12880
21
8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 80 * - 19 col2 FROM tab1 cor0
----
1520

query I rowsort
SELECT + cor0.col1 * + 91 FROM tab1 cor0
----
1183
2366
910

query I rowsort
SELECT ( 87 ) + col1 FROM tab2 AS cor0
----
104
118
146

query I rowsort
SELECT 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT - 41 + col1 AS col0 FROM tab2 AS cor0
----
-10
-24
18

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL OR ( - col1 + col1 ) = NULL
----

query I rowsort
SELECT + col0 * + cor0.col0 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2816
-2907
847

query I rowsort
SELECT ALL + - col2 + + cor0.col0 * + col0 FROM tab0 AS cor0
----
1224
543
7839

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2971
SELECT cor0.col1 + col0 * col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-2971
SELECT cor0.col1 + col0 * col2 / - col0 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col0 * col0 + col1 * + col1 - col2 AS col2 FROM tab1 AS cor0
----
-4053
-6327
613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 * col2 col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - col2 * col2 - - col2 * col1 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT ALL - cor0.col0 * col1 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 * - col2 col2 FROM tab0
----
-244068
-679042
-9409

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

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

query I rowsort
SELECT ALL - - cor0.col0 + + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - col0 + - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1456
567
830

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col1 * col1 OR NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL - - cor0.col2 * col2 + - col0 - + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
-1464
-3429
-999

onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT DISTINCT - col0 DIV col2 + col2 * col0 * col0 FROM tab0 AS cor0
----
1190
19008
649521

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT - col0 / col2 + col2 * col0 * col0 FROM tab0 AS cor0
----
1190
19008
649521

query I rowsort
SELECT ALL col2 * - col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col1 * tab2.col1 - col0 AS col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT tab1.col0 * + col0 + + tab1.col1 + - col1 AS col2 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col2 FROM tab0 cor0
----
7396
8281
9409

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2989
SELECT col0 * - col0 / + col0 col1 FROM tab1
----
-3
-64
-80

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

query I rowsort
SELECT ALL + tab2.col0 * tab2.col0 - - col1 AS col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL - col2 * col0 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT col1 + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col2 * col0 + - col1 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT + cor0.col1 + + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 74faab35697b5ea1753f372919d97975

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

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

query I rowsort
SELECT DISTINCT 14 + + col2 FROM tab1 AS cor0
----
110
68
71

query I rowsort
SELECT - + ( cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col1 * col1 + + col1 AS col0 FROM tab0 cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT - - col0 + - col2 + + ( col2 ) DIV - 4 AS col1 FROM tab1 AS cor0
----
-40
-64
-7

skipif mysql # not compatible
query I rowsort label-3001
SELECT - - col0 + - col2 + + ( col2 ) / - 4 AS col1 FROM tab1 AS cor0
----
-40
-64
-7

query I rowsort
SELECT ALL 46 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL + col1 + + 10 * 10 FROM tab0 AS cor0
----
186
191
197

query I rowsort
SELECT - col2 - - 96 FROM tab2 AS cor0
----
58
69
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 47 + - ( + col2 ) col0 FROM tab0 cor0
----
1095
1644
4101

query I rowsort
SELECT + col0 + + col0 + - col2 FROM tab1 AS cor0
----
-48
64
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3007
SELECT - 97 + + col1 DIV - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-123
-187
-229

skipif mysql # not compatible
query I rowsort label-3007
SELECT - 97 + + col1 / - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-123
-187
-229

query I rowsort
SELECT DISTINCT - - 10 FROM tab0 AS cor0
----
10

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

query I rowsort
SELECT + 55 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL col1 / ( - col1 ) AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT - 85 + + col2 AS col1 FROM tab0 AS cor0
----
-3
-52
-84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 - - col1 col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col1 + 88 AS col2 FROM tab1 AS cor0
----
62
75
78

query I rowsort
SELECT ALL - 11 + - col0 FROM tab0 AS cor0
----
-100
-35
-46

query I rowsort
SELECT ALL - - col0 * - ( + col0 ) + 95 AS col2 FROM tab1 AS cor0
----
-4001
-6305
86

query I rowsort
SELECT col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + - CAST ( - cor0.col2 * col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
1417
2080
670

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

query I rowsort
SELECT DISTINCT - + 15 AS col1 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT 61 * - cor0.col1 * + 45 FROM tab2 AS cor0
----
-161955
-46665
-85095

query I rowsort
SELECT DISTINCT - col2 * col1 + - 54 * + col2 FROM tab1 AS cor0
----
-3648
-4320
-6432

query I rowsort
SELECT DISTINCT - - col2 + - col2 * - 72 FROM tab1 AS cor0
----
3942
4161
7008

query I rowsort
SELECT - 48 AS col2 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT ALL - tab2.col1 DIV - 82 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - tab2.col1 / - 82 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 89 * + 47 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ffd9e6de7b9a2f73e16ea6fca6cfdd29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT CAST( + ( col0 ) + + col2 AS SIGNED ) AS col0 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3028
SELECT CAST ( + ( col0 ) + + col2 AS INTEGER ) AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - 23 AS col0 FROM tab1
----
-23
-23
-23

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

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - col2 / + col2 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL + cor0.col2 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col2 FROM tab0
----
59
59
59

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

query I rowsort
SELECT 67 * + 20 + col1 + + 26 * col2 FROM tab1 AS cor0
----
2770
2832
3849

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

query I rowsort
SELECT DISTINCT col2 * - col0 + col2 * col2 AS col2 FROM tab1
----
-399
1536
2754

query I rowsort
SELECT col2 + ( + 72 + - col1 ) AS col1 FROM tab0
----
-24
19
63

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

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

skipif mysql # not compatible
query I rowsort label-3039
SELECT - + 45 + + 84 + + col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 35 + cor0.col0 * + col1 FROM tab2 AS cor0
----
1308
182
4567

query I rowsort
SELECT DISTINCT + + 82 + col0 FROM tab1 AS cor0
----
146
162
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT ( + cor0.col1 ) DIV col0 + - col2 AS col2 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-3042
SELECT ( + cor0.col1 ) / col0 + - col2 AS col2 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT + + col0 * + 37 AS col1 FROM tab1 AS cor0
----
111
2368
2960

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

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

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

query I rowsort
SELECT DISTINCT - - 97 + + 62 * col1 FROM tab2 AS cor0
----
1151
2019
3755

skipif mysql # not compatible
query I rowsort
SELECT + col2 * col2 - + col0 * - CAST ( col2 AS REAL ) * - col2 FROM tab1 AS cor0
----
-204687
-5832
-728064

query I rowsort
SELECT + 15 * - 23 FROM tab0
----
-345
-345
-345

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

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

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

query I rowsort
SELECT - 82 * col1 AS col2 FROM tab1
----
-1066
-2132
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT - tab1.col2 DIV - col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3052
SELECT - tab1.col2 / - col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT - 19 FROM tab0, tab2 AS cor0
----
-19

query I rowsort
SELECT - col1 + tab1.col1 * col2 + - col1 * col0 AS col0 FROM tab1
----
-80
1300
195

query I rowsort
SELECT - - 23 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT ALL ( - 76 ) - + col2 * col2 * col0 FROM tab1
----
-208012
-737356
-8824

query I rowsort
SELECT ALL + col2 * - 99 + col2 FROM tab2
----
-2548
-2646
-3724

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

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

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

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

query I rowsort
SELECT ALL - col0 + + ( - col0 ) FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL - + col0 + ( 80 ) * col1 FROM tab0 AS cor0
----
6856
7191
7725

query I rowsort
SELECT 21 - tab0.col1 AS col2 FROM tab0
----
-65
-70
-76

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT col1 * col1 + + 16 FROM tab0
----
7412
8297
9425

query I rowsort
SELECT ALL + + col2 * col0 * col0 FROM tab1 AS cor0
----
233472
486
614400

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT - col1 + - CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-3068
SELECT - col1 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-137
-38
-96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3070
SELECT - col1 * - CAST ( NULL AS REAL ) * - col0 + col2 * tab0.col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 77 + - col2 FROM tab2
----
1976
2052
2888

query I rowsort
SELECT 8 + tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 73c5a2412b9073c01f8f1eb60725236b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT DISTINCT + col0 DIV - ( + col2 + + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + col0 / - ( + col2 + + col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 + col2 * + col2 AS col2 FROM tab2 cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT ALL + col2 + col2 DIV col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + col2 + col2 / col1 FROM tab2 AS cor0
----
26
27
40

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT ALL - - 56 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - - 56 / + col1 AS col0 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT 38 * col2 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT ALL - 94 * col0 - col2 FROM tab2 AS cor0
----
-685
-7358
-7464

query I rowsort
SELECT ALL + - 66 + col0 FROM tab0 cor0
----
-31
-42
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3082
SELECT ALL - CAST( NULL AS SIGNED ) - + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - CAST ( NULL AS INTEGER ) - + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 33 * - col0 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT DISTINCT - 32 + col0 AS col1 FROM tab2 AS cor0
----
-25
46
47

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

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

query I rowsort
SELECT ALL col0 * - 58 FROM tab2 AS cor0
----
-406
-4524
-4582

onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT DISTINCT + ( col1 ) + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + ( col1 ) + col1 / - col0 AS col0 FROM tab2 AS cor0
----
17
27
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3089
SELECT + CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3089
SELECT + CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col0 + - 54 AS col1 FROM tab1 AS cor0
----
-118
-134
-57

query I rowsort
SELECT - 6 * col2 * - col1 AS col1 FROM tab2 AS cor0
----
3876
5022
9204

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

query I rowsort
SELECT ALL - + 3 * 15 AS col0 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL - col1 * + cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + 11 + col1 AS col2 FROM tab2 AS cor0
----
28
42
70

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3097
SELECT DISTINCT col1 DIV + col1 + + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
122
177
58

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT col1 / + col1 + + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
122
177
58

query I rowsort
SELECT - + 65 + col0 AS col1 FROM tab0 AS cor0
----
-30
-41
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT DISTINCT + col1 * - col0 + col2 DIV 63 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT + col1 * - col0 + col2 / 63 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - - col1 * - col1 - col2 * + 46 AS col2 FROM tab0 cor0
----
-12053
-8914
-9455

query I rowsort
SELECT + 81 * col2 + col0 * cor0.col0 * + col1 FROM tab0 AS cor0
----
118906
52209
727453

query I rowsort
SELECT + + col0 + - col2 * - col0 * col1 AS col2 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT ALL - + col1 + + cor0.col2 * + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
22568
24531
39825

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

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT col0 * - col2 + + CAST ( NULL AS INTEGER ) * cor0.col1 / col1 FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - ( - col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * 77 + col1 col1 FROM tab2 AS cor0
----
14584
156215
231171

query I rowsort
SELECT DISTINCT + col1 * col2 + - ( - col0 + + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1315
1381
624

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

query I rowsort
SELECT ALL cor0.col1 * ( 95 ) + - col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
1574
2965
5553

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

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

query I rowsort
SELECT ALL + 35 * col2 + - tab2.col0 AS col0 FROM tab2
----
1251
832
938

query I rowsort
SELECT + 27 * col1 AS col2 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT ALL + 50 * + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f5d32e025ea323d94f3c5110d24967f9

query I rowsort
SELECT DISTINCT - + 28 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2944
-3277
-9244

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT ALL + + 89 + col0 * cor0.col2 DIV col2 AS col1 FROM tab1 AS cor0
----
153
169
92

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + + 89 + col0 * cor0.col2 / col2 AS col1 FROM tab1 AS cor0
----
153
169
92

query I rowsort
SELECT ALL col2 + + col0 + 5 AS col0 FROM tab2 AS cor0
----
109
122
39

query I rowsort
SELECT ALL + 31 * + col2 - + col0 FROM tab0 AS cor0
----
-4
2453
999

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

query I rowsort
SELECT + - 61 AS col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT + col2 * - 49 + - col0 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-2167
-2587
-2886

query I rowsort
SELECT col0 * ( - col0 + col2 ) FROM tab1
----
-448
1280
153

query I rowsort
SELECT - col2 + 35 FROM tab0 AS cor0
----
-47
2
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT + col0 * + col0 + col1 - cor0.col2 DIV ( - col0 ) AS col0 FROM tab1 AS cor0
----
4106
53
6414

skipif mysql # not compatible
query I rowsort label-3124
SELECT + col0 * + col0 + col1 - cor0.col2 / ( - col0 ) AS col0 FROM tab1 AS cor0
----
4106
53
6414

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

query I rowsort
SELECT ALL col0 * 5 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT ALL - 37 + col0 FROM tab0 cor0
----
-13
-2
52

query I rowsort
SELECT DISTINCT - - 88 - + 91 AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - cor0.col0 + 9 * col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT ALL 37 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
63
64
75

query I rowsort
SELECT + 85 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1185
2213
914

query I rowsort
SELECT DISTINCT 54 * - 10 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-17820
-44280
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 col1 FROM tab1
----
52
52
52

query I rowsort
SELECT + col1 * col2 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - 95 * col0 - col1 FROM tab1 AS cor0
----
-311
-6090
-7613

query I rowsort
SELECT col2 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + ( 54 ) - + col0 FROM tab0 cor0
----
-35
19
30

query I rowsort
SELECT + ( + col0 ) * col0 + 67 FROM tab1 AS cor0
----
4163
6467
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT - - ( col2 ) DIV col1 + - 8 FROM tab2 AS cor0
----
-6
-8
-8

skipif mysql # not compatible
query I rowsort label-3139
SELECT - - ( col2 ) / col1 + - 8 FROM tab2 AS cor0
----
-6
-8
-8

query I rowsort
SELECT DISTINCT + cor0.col0 * 76 AS col0 FROM tab2, tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT + - 48 FROM tab1 cor0
----
-48
-48
-48

query I rowsort
SELECT + + 18 + - col2 FROM tab2 AS cor0
----
-20
-8
-9

query I rowsort
SELECT cor0.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - - 16 FROM tab0 cor0
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT col0 DIV + col1 + col2 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-3145
SELECT col0 / + col1 + col2 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - col2 + + col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab1, tab1 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - col1 * + 10 AS col0 FROM tab1 cor0
----
-100
-130
-260

query I rowsort
SELECT - - col2 + + 38 FROM tab0 AS cor0
----
120
39
71

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0, tab2 cor0, tab2, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT col1 * 81 FROM tab0 cor0
----
6966
7371
7857

onlyif mysql # use DIV operator for integer division
query I rowsort label-3154
SELECT 45 + - 27 DIV - col1 - - col2 * + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
11028
25992
90551

skipif mysql # not compatible
query I rowsort label-3154
SELECT 45 + - 27 / - col1 - - col2 * + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
11028
25992
90551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT 83 - 72 DIV - col0 FROM tab1 AS cor0
----
107
83
84

skipif mysql # not compatible
query I rowsort label-3155
SELECT 83 - 72 / - col0 FROM tab1 AS cor0
----
107
83
84

query I rowsort
SELECT - col0 * - ( col2 ) AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - - 31 * col1 * 31 FROM tab1 AS cor0
----
12493
24986
9610

query I rowsort
SELECT DISTINCT + 10 * + col2 FROM tab0 AS cor0
----
10
330
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT DISTINCT - - col0 DIV - col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - - col0 / - col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT - + col2 + 25 * col2 AS col0 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT col2 - + ( col2 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3163
SELECT ALL col0 + - CAST( - 41 AS SIGNED ) * col2 * col2 AS col0 FROM tab0 cor0
----
275773
44673
76

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL col0 + - CAST ( - 41 AS INTEGER ) * col2 * col2 AS col0 FROM tab0 cor0
----
275773
44673
76

query I rowsort
SELECT DISTINCT + col2 + ( 16 + + cor0.col0 ) * 68 AS col1 FROM tab1 AS cor0
----
1346
5497
6624

query I rowsort
SELECT DISTINCT + cor0.col0 + ( col1 ) * + col0 FROM tab1 cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT ALL + col2 DIV + col2 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + col2 / + col2 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT DISTINCT + col1 * col1 DIV 69 FROM tab0
----
107
120
136

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT + col1 * col1 / 69 FROM tab0
----
107
120
136

query I rowsort
SELECT DISTINCT - + 33 + col0 AS col2 FROM tab2 AS cor0
----
-26
45
46

query I rowsort
SELECT + + 12 + col1 FROM tab0 cor0
----
103
109
98

query I rowsort
SELECT + - col2 * + 89 + col2 * col0 AS col0 FROM tab1 AS cor0
----
-1425
-4644
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3171
SELECT + CAST( - 14 AS SIGNED ) + col0 FROM tab2 cor0
----
-7
64
65

skipif mysql # not compatible
query I rowsort label-3171
SELECT + CAST ( - 14 AS INTEGER ) + col0 FROM tab2 cor0
----
-7
64
65

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + + cor0.col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL - ( - ( col1 ) ) * + ( cor0.col1 ) - col0 AS col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL ( + 62 ) AS col0 FROM tab1 cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - col0 * 95 FROM tab1 AS cor0
----
-285
-6080
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 79 + + col2 col0 FROM tab1 AS cor0
----
-2000
-733
-931

query I rowsort
SELECT DISTINCT + ( + ( col0 ) ) FROM tab0
----
24
35
89

query I rowsort
SELECT ALL ( + col1 ) * col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + 0 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT 65 + col2 FROM tab0 AS cor0
----
147
66
98

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col0 AS REAL ) * - cor0.col1 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL col1 * col2 + + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col1 * col2 - - col2 AS col2 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3185
SELECT 79 DIV - col1 + col2 AS col2 FROM tab1
----
50
51
90

skipif mysql # not compatible
query I rowsort label-3185
SELECT 79 / - col1 + col2 AS col2 FROM tab1
----
50
51
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3186
SELECT CAST( - col0 AS SIGNED ) * col1 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-3186
SELECT CAST ( - col0 AS INTEGER ) * col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3187
SELECT + CAST( NULL AS SIGNED ) - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT + CAST ( NULL AS INTEGER ) - + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 28 + ( + col1 ) AS col2 FROM tab1
----
38
41
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT - + col1 * - col0 + + col2 DIV 81 AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3189
SELECT - + col1 * - col0 + + col2 / 81 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col0 * col2 + 31 * + 91 FROM tab0 AS cor0
----
-4477
2029
2786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * col2 col0 FROM tab0 AS cor0
----
2145
5330
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + col2 * col0 col1 FROM tab0 AS cor0
----
7348
842
85

query I rowsort
SELECT DISTINCT - 44 + - col0 * + 25 AS col0 FROM tab1 AS cor0
----
-119
-1644
-2044

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3195
SELECT DISTINCT + col1 DIV + col2 + col0 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + col1 / + col2 + col0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + 78 FROM tab2, tab1, tab0 AS cor0
----
78

query I rowsort
SELECT 92 * + 37 * col0 AS col2 FROM tab0
----
119140
302956
81696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3198
SELECT - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( tab0.col0 ) * - col0 + - col1 FROM tab0
----
1128
490
7830

query I rowsort
SELECT DISTINCT 69 + col2 * - col2 FROM tab0
----
-1020
-6655
68

query I rowsort
SELECT + 78 + tab0.col1 AS col2 FROM tab0
----
164
169
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL - 47 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT - col2 + col2 * ( + col0 * col0 ) AS col2 FROM tab0 AS cor0
----
1224
18975
649440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * col0 col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL ( col0 ) * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col1 + + col0 * - 0 * + 88 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 / - cor0.col0 + - CAST ( col0 AS REAL ) AS col2 FROM tab1 AS cor0
----
-21
-64
-81

query I rowsort
SELECT DISTINCT col2 - - col2 * col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col0 + + col2 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT col2 + - ( + 73 ) FROM tab1
----
-16
-19
23

query I rowsort
SELECT DISTINCT + col1 - + col0 * col1 * col0 FROM tab0
----
-118728
-49450
-720720

query I rowsort
SELECT + cor0.col1 - col0 * + col2 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3216
SELECT col0 DIV cor0.col2 - + 62 FROM tab0 AS cor0
----
-27
-61
-62

skipif mysql # not compatible
query I rowsort label-3216
SELECT col0 / cor0.col2 - + 62 FROM tab0 AS cor0
----
-27
-61
-62

query I rowsort
SELECT + col0 + - col0 * col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT ALL 85 * cor0.col0 - + col2 AS col2 FROM tab0 AS cor0
----
2007
2974
7483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - col1 + + col1 col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT + cor1.col2 + 45 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 32675edc11aaa48a8f2d135738717428

query I rowsort
SELECT ALL col1 + ( - cor0.col1 + 60 ) FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT ALL + + 49 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT col0 * - col2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
-1352
-1558
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT - + ( ( col2 ) ) + ( col1 ) DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3224
SELECT - + ( ( col2 ) ) + ( col1 ) / - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + + 88 * col2 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT DISTINCT + col1 * 98 + - col1 FROM tab1 AS cor0
----
1261
2522
970

query I rowsort
SELECT ALL col0 * 52 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT - col1 * 19 AS col0 FROM tab1 AS cor0
----
-190
-247
-494

query I rowsort
SELECT DISTINCT col0 + 56 + col0 FROM tab1 AS cor0
----
184
216
62

query I rowsort
SELECT - + col1 + + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col0 + 32 AS col0 FROM tab1 AS cor0
----
-32
-48
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT DISTINCT - + col0 + cor0.col1 DIV col0 AS col2 FROM tab2 cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - + col0 + cor0.col1 / col0 AS col2 FROM tab2 cor0
----
-3
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - 62 - - 10 col2 FROM tab0 AS cor0
----
5342
5652
6024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3234
SELECT col1 * CAST( NULL AS SIGNED ) + + 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT col1 * CAST ( NULL AS INTEGER ) + + 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + 3 * 83 FROM tab1 cor0
----
303
306
345

onlyif mysql # use DIV operator for integer division
query I rowsort label-3236
SELECT col1 DIV - col0 + 24 FROM tab2
----
20
24
24

skipif mysql # not compatible
query I rowsort label-3236
SELECT col1 / - col0 + 24 FROM tab2
----
20
24
24

query I rowsort
SELECT DISTINCT tab0.col1 * col2 + - col1 * col2 * + col0 AS col2 FROM tab0
----
-3298
-65274
-656656

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT col1 + - 95 AS col0 FROM tab1
----
-69
-82
-85

query I rowsort
SELECT - ( - 62 ) AS col2 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT - + ( 89 ) DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
89

skipif mysql # not compatible
query I rowsort label-3241
SELECT - + ( 89 ) / - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
89

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab2, tab2 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( 11 ) col1 FROM tab1
----
-43
-46
-85

query I rowsort
SELECT - + cor0.col0 + col0 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197

onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT ( col0 ) DIV col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3246
SELECT ( col0 ) / col1 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT col0 + col0 DIV 42 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7553

skipif mysql # not compatible
query I rowsort label-3247
SELECT col0 + col0 / 42 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7553

query I rowsort
SELECT 98 * col0 - 28 FROM tab0 cor0
----
2324
3402
8694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3249
SELECT 17 + col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
52
7315
809

skipif mysql # not compatible
query I rowsort label-3249
SELECT 17 + col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
52
7315
809

query I rowsort
SELECT DISTINCT 18 * + col2 + 85 FROM tab1
----
1057
1111
1813

query I rowsort
SELECT ALL 31 + + col2 * col0 FROM tab2
----
2059
220
3033

query I rowsort
SELECT DISTINCT + 74 + - col2 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3253
SELECT + - col1 + cor0.col2 DIV + col2 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3253
SELECT + - col1 + cor0.col2 / + col2 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT + cor0.col0 * 7 FROM tab0, tab1 cor0
----
21
448
560

query I rowsort
SELECT ALL + 7 * col2 + + ( col0 ) + + col0 AS col0 FROM tab2 AS cor0
----
203
338
424

onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT ALL + cor0.col1 + + col2 DIV + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL + cor0.col1 + + col2 / + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col1 * 25 + col0 + cor0.col2 * - 39 AS col1 FROM tab2 AS cor0
----
-271
-978
539

onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT DISTINCT + + col2 + 86 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
58
82
97

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + + col2 + 86 / cor0.col0 AS col0 FROM tab1 AS cor0
----
58
82
97

query I rowsort
SELECT - col2 * col2 * - cor0.col1 - col1 * - col1 FROM tab0 AS cor0
----
101050
620165
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 - - col0 col0 FROM tab2 AS cor0
----
-3
-4
-75

query I rowsort
SELECT - 81 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT - col1 + + 45 AS col0 FROM tab2
----
-14
14
28

query I rowsort
SELECT - cor0.col2 * + 85 + - 95 AS col1 FROM tab2 AS cor0
----
-2305
-2390
-3325

query I rowsort
SELECT - col0 * col2 - 56 FROM tab2 cor0
----
-2084
-245
-3058

query I rowsort
SELECT col2 * 58 * + 51 + cor0.col2 + ( col2 * - col0 ) FROM tab0 AS cor0
----
235340
2924
96855

query I rowsort
SELECT + col0 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - ( 73 ) AS col2 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT ALL + - cor0.col2 + + 32 AS col1 FROM tab2 AS cor0
----
-6
5
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3270
SELECT DISTINCT - CAST( + 27 AS SIGNED ) * col2 FROM tab1
----
-1458
-1539
-2592

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - CAST ( + 27 AS INTEGER ) * col2 FROM tab1
----
-1458
-1539
-2592

onlyif mysql # use DIV operator for integer division
query I rowsort label-3271
SELECT 67 + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
102
67
68

skipif mysql # not compatible
query I rowsort label-3271
SELECT 67 + col0 / + col2 AS col0 FROM tab0 AS cor0
----
102
67
68

query I rowsort
SELECT ALL + cor0.col2 - 30 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40e7770080d6e03efc9a2d3af77829db

query I rowsort
SELECT ALL + ( col2 ) * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT - - 69 DIV 37 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3274
SELECT - - 69 / 37 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3275
SELECT + - CAST( NULL AS SIGNED ) * col1 / + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT + - CAST ( NULL AS INTEGER ) * col1 / + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col0 * + col0 + + col1 + + 64 * col2 AS col2 FROM tab2 AS cor0
----
1808
7807
8690

query I rowsort
SELECT + 39 * + cor0.col0 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 3a348112fdd91fe2b3539c63b529c830

query I rowsort
SELECT DISTINCT tab2.col0 * 50 AS col1 FROM tab2
----
350
3900
3950

query I rowsort
SELECT - 19 * + col2 FROM tab2 AS cor0
----
-494
-513
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT ALL tab0.col1 DIV tab0.col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL tab0.col1 / tab0.col0 AS col1 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3282
SELECT DISTINCT - col0 DIV - col2 + col2 col2 FROM tab0
----
33
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT - col0 / - col2 + col2 col2 FROM tab0
----
33
36
83

query I rowsort
SELECT tab2.col0 * col2 + 87 AS col2 FROM tab2
----
2115
276
3089

query I rowsort
SELECT DISTINCT col1 + ( + col1 ) AS col1 FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3285
SELECT DISTINCT - CAST( 14 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT - CAST ( 14 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL col1 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - + ( - col1 ) * col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 - + col0 * + col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL col0 * - 26 FROM tab0
----
-2314
-624
-910

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab1
----
59

query I rowsort
SELECT ALL 90 + - col1 * - col2 FROM tab0 AS cor0
----
187
2928
7552

query I rowsort
SELECT - 24 * - col2 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT DISTINCT 75 * + col0 - col2 * col0 AS col1 FROM tab2 AS cor0
----
2923
336
3822

query I rowsort
SELECT - 83 + col2 AS col1 FROM tab1 cor0
----
-26
-29
13

query I rowsort
SELECT ALL + - 68 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT col2 * tab0.col0 + 42 * - col1 AS col0 FROM tab0
----
-2820
-4039
3476

query I rowsort
SELECT - + ( + col1 ) * - col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT DISTINCT - cor0.col1 DIV tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
-1
-2
-3
-4
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - cor0.col1 / tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
-1
-2
-3
-4
0

query I rowsort
SELECT ALL ( col2 ) * 95 + tab0.col1 * col1 * col0 + + col1 AS col1 FROM tab0
----
180725
329507
744890

query I rowsort
SELECT col1 * - col2 + + col2 + + tab2.col0 FROM tab2
----
-1430
-529
-803

query I rowsort
SELECT col0 + col2 + + 61 AS col0 FROM tab1 AS cor0
----
118
182
237

query I rowsort
SELECT ALL cor0.col0 + - col1 * 78 FROM tab0 AS cor0
----
-6684
-7009
-7531

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

query I rowsort
SELECT col1 * col2 * + col2 + + col2 FROM tab2 AS cor0
----
22626
24586
39910

query I rowsort
SELECT - - col2 * + cor0.col2 AS col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT ALL col0 + col2 * col0 DIV - col1 FROM tab0 AS cor0
----
15
35
9

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL col0 + col2 * col0 / - col1 FROM tab0 AS cor0
----
15
35
9

query I rowsort
SELECT col1 * + col1 + - col0 + + col0 * col0 FROM tab2 AS cor0
----
1003
6451
9487

query I rowsort
SELECT - col0 * ( - col1 ) + + col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT ALL cor0.col2 - + ( col0 + - col1 ) AS col2 FROM tab0 cor0
----
63
84
95

query I rowsort
SELECT ALL + + col0 + + 95 FROM tab1 AS cor0
----
159
175
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * col2 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3313
SELECT - col2 DIV - cor0.col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT - col2 / - cor0.col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3314
SELECT - col0 DIV + 80 + col2 * col2 * - col2 FROM tab0 AS cor0
----
-1
-35937
-551369

skipif mysql # not compatible
query I rowsort label-3314
SELECT - col0 / + 80 + col2 * col2 * - col2 FROM tab0 AS cor0
----
-1
-35937
-551369

query I rowsort
SELECT col2 + - col0 * 9 AS col0 FROM tab1 AS cor0
----
-519
-624
27

query I rowsort
SELECT DISTINCT col2 + + 68 AS col1 FROM tab2 cor0
----
106
94
95

query I rowsort
SELECT ALL + tab0.col2 * col2 * + col1 + - col1 - col1 FROM tab0
----
-97
611702
93482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3318
SELECT ALL - col1 * col1 - - CAST( - col1 AS SIGNED ) * col0 AS col2 FROM tab0
----
-12804
-16380
-9460

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - col1 * col1 - - CAST ( - col1 AS INTEGER ) * col0 AS col2 FROM tab0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL - - col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT + col2 * col2 DIV + col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-3320
SELECT + col2 * col2 / + col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - col1 * + col2 + - col1 * + col0 * + col1 FROM tab2 AS cor0
----
-23477
-273052
-7564

query I rowsort
SELECT ALL col0 * col2 * + col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT + - cor0.col2 + cor0.col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT - + col2 - - col0 * col2 DIV col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3324
SELECT - + col2 - - col0 * col2 / col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT cor0.col2 + cor0.col2 * col2 FROM tab1 cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col2 * - col0 col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col0 + col2 + - col1 AS col2 FROM tab0
----
-29
-61
80

query I rowsort
SELECT col2 + col0 * + tab1.col1 + col1 AS col2 FROM tab1
----
1149
158
707

query I rowsort
SELECT tab2.col0 + - col1 * - col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT + col1 + col0 * col1 * + tab1.col2 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT col0 * + tab2.col2 AS col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3333
SELECT DISTINCT tab1.col1 DIV tab1.col0 + + col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT tab1.col1 / tab1.col0 + + col2 FROM tab1
----
57
62
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3334
SELECT col2 * col1 DIV tab0.col0 + tab0.col0 AS col0 FROM tab0
----
142
172
37

skipif mysql # not compatible
query I rowsort label-3334
SELECT col2 * col1 / tab0.col0 + tab0.col0 AS col0 FROM tab0
----
142
172
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT - col2 DIV + tab0.col1 + + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3335
SELECT - col2 / + tab0.col1 + + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - - ( + col2 ) + cor0.col1 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT + + cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + col1 * col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
177537
329316
737091

query I rowsort
SELECT DISTINCT + 82 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1066
2132
820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 * - cor0.col0 col1 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT - ( 57 * col1 ) AS col0 FROM tab2
----
-1767
-3363
-969

query I rowsort
SELECT ALL - ( + col1 * col2 ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ( - col1 ) + + col0 AS col0 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab0
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3346
SELECT + tab2.col1 DIV - col0 + - col0 FROM tab2
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-3346
SELECT + tab2.col1 / - col0 + - col0 FROM tab2
----
-11
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3347
SELECT - col2 DIV col0 + + col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-3347
SELECT - col2 / col0 + + col1 FROM tab2
----
17
28
59

query I rowsort
SELECT DISTINCT - col2 * col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + 16 + - cor0.col0 FROM tab1 AS cor0
----
-48
-64
13

query I rowsort
SELECT ALL - - cor0.col1 * + col2 + - col0 + + col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col0 + col0 * col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT ALL + ( + col0 ) DIV col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL + ( + col0 ) / col0 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - ( + 53 ) FROM tab0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT 44 * - col2 AS col2 FROM tab1
----
-2376
-2508
-4224

query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 + + 71 * 87 FROM tab0
----
-1219
-2104
-3232

onlyif mysql # use DIV operator for integer division
query I rowsort label-3356
SELECT - tab1.col0 DIV + ( - tab1.col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3356
SELECT - tab1.col0 / + ( - tab1.col0 ) FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 93 * 85 AS col1 FROM tab0
----
-7905
-7905
-7905

query I rowsort
SELECT + 36 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
132
90
93

query I rowsort
SELECT + + col2 + + cor0.col0 * ( - 53 * - col1 ) AS col2 FROM tab1 AS cor0
----
33977
4188
55216

query I rowsort
SELECT - col2 * col1 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col0 + + col2 * - col2 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT + cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - col2 + + tab2.col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT DISTINCT + 63 * + 23 * col1 + - col2 + - col0 FROM tab2
----
24516
44885
85387

onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT - 82 + + cor0.col2 DIV - 34 FROM tab1 AS cor0
----
-83
-83
-84

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 82 + + cor0.col2 / - 34 FROM tab1 AS cor0
----
-83
-83
-84

query I rowsort
SELECT - + cor0.col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col2 + 40 FROM tab1 AS cor0
----
136
94
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + ( - col2 + + cor0.col0 ) * col2 col2 FROM tab2 AS cor0
----
-509
1411
1575

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3370
SELECT + + col1 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-3370
SELECT + + col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + - col0 * - 33 + + col2 AS col2 FROM tab2 AS cor0
----
258
2600
2645

onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT + col1 DIV + col0 col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3372
SELECT + col1 / + col0 col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT - - col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT - + col1 + 62 + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
60

query I rowsort
SELECT - - ( ( col1 ) ) * + col1 * col2 + cor0.col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
16307
36532
5747

onlyif mysql # use DIV operator for integer division
query I rowsort label-3377
SELECT CAST( col2 AS SIGNED ) * col0 DIV - col0 - col2 FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-3377
SELECT CAST ( col2 AS INTEGER ) * col0 / - col0 - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT tab2.col1 + 17 * + tab2.col1 FROM tab2
----
1062
306
558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3379
SELECT ( + col0 ) + - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-3379
SELECT ( + col0 ) + - col1 / col0 AS col2 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT - ( - cor0.col0 ) * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 + - 74 FROM tab2 AS cor0
----
-15
-43
-57

query I rowsort
SELECT 35 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT - 63 + + col1 * + col1 FROM tab0 cor0
----
7333
8218
9346

query I rowsort
SELECT - 92 AS col1 FROM tab1
----
-92
-92
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT CAST ( col1 AS INTEGER ) / col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col1 * + 19 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT - col1 * 29 FROM tab2 AS cor0
----
-1711
-493
-899

query I rowsort
SELECT cor0.col2 * 55 FROM tab2, tab0 AS cor0
----
9 values hashing to 8a756501255b38d6a7d7b424505dacb7

query I rowsort
SELECT ALL - col2 + 98 * + cor0.col0 FROM tab1 cor0
----
240
6215
7744

query I rowsort
SELECT - col2 + - 2 * + col1 AS col1 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT + col2 * 94 AS col1 FROM tab2 AS cor0
----
2444
2538
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * - col0 col0 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT + col0 * - cor0.col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col0 * col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + + col0 col1 FROM tab2
----
12
83
84

query I rowsort
SELECT ALL + 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT 49 - tab0.col2 FROM tab0
----
-33
16
48

query I rowsort
SELECT DISTINCT col2 + - 69 * col0 AS col2 FROM tab1
----
-153
-4359
-5424

query I rowsort
SELECT ALL - col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col2 * col0 - - col2 * + col0 AS col0 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT DISTINCT - col0 + 38 - + 15 * + col0 FROM tab1 AS cor0
----
-10
-1242
-986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * - col2 col2 FROM tab0
----
-1419
-3526
-43

query I rowsort
SELECT + 16 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab2, tab0, tab0 cor0, tab1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT ALL - 71 DIV + col0 FROM tab1
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - 71 / + col0 FROM tab1
----
-1
-23
0

query I rowsort
SELECT - + 76 * col0 AS col2 FROM tab2 AS cor0
----
-532
-5928
-6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3408
SELECT ALL - CAST( + col1 AS SIGNED ) * col0 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - CAST ( + col1 AS INTEGER ) * col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT 81 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT + col2 + - col0 / + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT + col2 + - col0 / + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - col2 * col0 * ( + col2 * col2 + - col0 * col1 ) FROM tab0 AS cor0
----
10034750
118790
772200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT - + 2 + - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT - + 2 + - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 7 + col2 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-2909
-3242
-9209

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + - col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - tab2.col2 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col1 * + col2 * + col1 AS col0 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL - col0 * + cor0.col2 - - col0 * 63 FROM tab1 AS cor0
----
-2640
27
384

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + + col2 * + col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT + + col2 * col0 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + + col0 + + col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - cor0.col0 * + 23 FROM tab0, tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT - col1 + col0 * - 60 FROM tab2
----
-451
-4739
-4757

query I rowsort
SELECT DISTINCT ( tab0.col2 ) + + ( - ( col0 ) + ( - 38 ) ) AS col2 FROM tab0
----
-29
-45
-72

query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab2 AS cor0
----
63

query I rowsort
SELECT 64 * + col2 FROM tab1 cor0
----
3456
3648
6144

query I rowsort
SELECT ALL - cor1.col2 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - 15 * + col1 AS col2 FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT ALL + 15 AS col2 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT + 9 * - cor0.col0 AS col2 FROM tab2 cor0
----
-63
-702
-711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT cor0.col2 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3436
SELECT DISTINCT - - cor0.col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - - cor0.col0 / CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3437
SELECT cor0.col1 * col0 + cor0.col1 + col2 * col2 DIV cor0.col2 FROM tab0 AS cor0
----
2183
3493
8272

skipif mysql # not compatible
query I rowsort label-3437
SELECT cor0.col1 * col0 + cor0.col1 + col2 * col2 / cor0.col2 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + - 43 AS col0 FROM tab0 AS cor0
----
2021
3352
8056

query I rowsort
SELECT - cor0.col2 + + cor0.col0 + + col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT + col0 + ( - col0 ) * col2 * col2 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
-113980
-5065
-52591

query I rowsort
SELECT ALL - - col2 * - ( 1 ) AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - col2 + col1 + col0 AS col1 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT DISTINCT - col0 + - col0 + - 49 * col2 AS col2 FROM tab0
----
-119
-1665
-4196

query I rowsort
SELECT ALL col0 - - col2 AS col0 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 4 ) * col1 + col1 col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT - col2 * col0 + col0 * - col0 + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-14000
-168
-7680

query I rowsort
SELECT DISTINCT - - ( - col0 ) + col2 * - 88 FROM tab0 AS cor0
----
-123
-2928
-7305

onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT DISTINCT - col0 + + col1 DIV + col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - col0 + + col1 / + col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ( + 79 ) FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT cor0.col1 + + 87 AS col1 FROM tab2 AS cor0
----
104
118
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 3 col1 FROM tab1 AS cor0
----
13
16
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3452
SELECT ALL + col2 * col2 DIV + col0 FROM tab2 cor0
----
104
18
8

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + col2 * col2 / + col0 FROM tab2 cor0
----
104
18
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3453
SELECT DISTINCT col0 * + col0 * + col0 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
13910
42972
705060

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT col0 * + col0 * + col0 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
13910
42972
705060

query I rowsort
SELECT ALL + col2 * col0 + - col2 * col2 - - ( col0 ) FROM tab2 AS cor0
----
-533
1430
1637

query I rowsort
SELECT DISTINCT + - 79 * - ( cor0.col0 ) + - col1 FROM tab1 AS cor0
----
211
5046
6307

query I rowsort
SELECT col0 * 32 - - col2 AS col2 FROM tab1
----
150
2105
2656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 73 * col0 + - col1 col1 FROM tab2 AS cor0
----
480
5635
5750

query I rowsort
SELECT - + col1 * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + + ( 93 ) + + col2 FROM tab1 AS cor0
----
147
150
189

query I rowsort
SELECT ALL col2 + 79 * col1 * - ( + col0 * col2 ) AS col0 FROM tab0 cor0
----
-268204
-52465240
-5380815

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

query I rowsort
SELECT + col2 + - ( + col1 ) FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 30 ) + + col2 * col0 col0 FROM tab2
----
2058
219
3032

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE - col0 NOT IN ( col2 )
----
-1
-33
-82

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 AND tab1.col2
----

query I rowsort
SELECT ALL tab0.col2 - col0 * - col0 FROM tab0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT DISTINCT col0 - col1 DIV - col0 AS col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT col0 - col1 / - col0 AS col0 FROM tab0
----
27
37
90

query I rowsort
SELECT - tab1.col1 FROM tab1 WHERE NOT col2 * + col1 < ( NULL )
----

query I rowsort
SELECT col2 + - tab2.col2 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col1 + + tab0.col1 col0 FROM tab0
----
7482
8372
9506

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) = col1 + - col1
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col2 NOT IN ( + col1 + - tab0.col1 )
----

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab1 WHERE - col1 NOT IN ( + col0 )
----
1040
640
78

query I rowsort
SELECT ALL + col0 - - col0 * col0 * - col0 AS col1 FROM tab1
----
-24
-262080
-511920

query I rowsort
SELECT col2 * col2 + + col1 * - col2 FROM tab2
----
-108
-858
798

query I rowsort
SELECT DISTINCT + col0 + - tab2.col2 * col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - tab0.col1 + tab0.col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1 WHERE - col0 - + col2 NOT IN ( - tab1.col2 )
----
10
13
26

query I rowsort
SELECT - col2 * + col1 + col0 AS col1 FROM tab2
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT ALL col1 + col1 - + col1 * tab0.col0 DIV tab0.col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL col1 + col1 - + col1 * tab0.col0 / tab0.col0 FROM tab0
----
86
91
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + col2 / col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT DISTINCT tab1.col2 * col2 DIV col0 AS col2 FROM tab1
----
115
50
972

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT tab1.col2 * col2 / col0 AS col2 FROM tab1
----
115
50
972

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 - - col0 ) IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col1 * + col1 + col2 * col1 * - col2 AS col2 FROM tab2
----
-21638
-24259
-36403

query I rowsort
SELECT col1 FROM tab1 WHERE - col0 * col1 - col0 < ( NULL )
----

query I rowsort
SELECT - col0 * col2 * tab1.col1 + - col1 * col1 + col0 FROM tab1
----
-36516
-4885
-99929

query I rowsort
SELECT DISTINCT col2 * tab1.col2 * col1 FROM tab1
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + + col2 col2 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT + + cor0.col1 DIV col1 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3491
SELECT + + cor0.col1 / col1 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col1 + + cor0.col1 AS col2 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3493
SELECT + col1 * - cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3493
SELECT + col1 * - cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - tab0.col1 * col0 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col0 + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( col0 + + col1 + + col2 )
----

query I rowsort
SELECT col0 * - 80 AS col1 FROM tab2 cor0
----
-560
-6240
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3498
SELECT col1 + + CAST( + col0 * + cor0.col1 + + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1377
279
4720

skipif mysql # not compatible
query I rowsort label-3498
SELECT col1 + + CAST ( + col0 * + cor0.col1 + + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1377
279
4720

query I rowsort
SELECT ALL col2 * ( col2 ) AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT col2 * + 34 + + col0 AS col2 FROM tab1 AS cor0
----
1839
2002
3344

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 * + col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT + - col1 + col1 * - 65 AS col0 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT col2 + - col1 * + col0 + cor0.col0 FROM tab2 AS cor0
----
-1226
-183
-4498

query I rowsort
SELECT + 72 + col1 AS col2 FROM tab2 AS cor0
----
103
131
89

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a

query I rowsort
SELECT DISTINCT 65 FROM tab1, tab2 cor0
----
65

query I rowsort
SELECT + col2 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + + col1 * + col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 IN ( - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT tab2.col1 * + tab2.col2 - col1 AS col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT - tab2.col0 + col0 AS col2 FROM tab2 WHERE col1 IN ( col1 )
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3512
SELECT ALL col0 DIV + col2 + - col2 * + col2 FROM tab1
----
-2916
-3248
-9216

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL col0 / + col2 + - col2 * + col2 FROM tab1
----
-2916
-3248
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3513
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT cor0.col1 + - cor0.col1 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT ALL col0 * col1 DIV - col1 AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL col0 * col1 / - col1 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 * - col0 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT ALL col2 + 21 AS col0 FROM tab1 AS cor0
----
117
75
78

query I rowsort
SELECT ALL - + cor0.col1 - + 94 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6a84f1fe58014fdab5c7c3ae7aa9421b

query I rowsort
SELECT 97 - tab0.col1 AS col1 FROM tab0
----
0
11
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT + cor0.col1 DIV cor0.col1 + + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3520
SELECT + cor0.col1 / cor0.col1 + + col0 FROM tab2 AS cor0
----
79
8
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col2 FROM tab2
----
28
28
28

query I rowsort
SELECT 51 * cor0.col2 * col0 + + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
103487
153119
9670

query I rowsort
SELECT ALL - - col1 + + 65 FROM tab0 AS cor0
----
151
156
162

query I rowsort
SELECT DISTINCT - col0 + ( - col1 ) FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT - 62 * col1 - col1 AS col2 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT ALL - + 47 FROM tab1 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 10 + + col1 + - col0 * 86 col2 FROM tab2 cor0
----
-561
-6639
-6767

query I rowsort
SELECT DISTINCT - 73 * - col0 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT ALL - 76 * 34 AS col2 FROM tab2 AS cor0
----
-2584
-2584
-2584

query I rowsort
SELECT ALL + 75 + 1 AS col2 FROM tab1 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( 67 ) col0 FROM tab2 cor0
----
-67

query I rowsort
SELECT + + col2 + - col1 * cor0.col0 - + ( + col0 ) FROM tab2 AS cor0
----
-1384
-197
-4654

query I rowsort
SELECT DISTINCT 4 * - col0 * - col1 FROM tab0 AS cor0
----
13580
32396
8256

query I rowsort
SELECT DISTINCT + col2 + + 1 * col1 FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT DISTINCT + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + col0 / - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - ( - col1 ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3537
SELECT - - col1 * - col1 + - ( - ( - cor0.col2 ) ) * - cor0.col2 DIV + col2 + - col0 * - col2 FROM tab0 AS cor0
----
-6571
-901
-9373

skipif mysql # not compatible
query I rowsort label-3537
SELECT - - col1 * - col1 + - ( - ( - cor0.col2 ) ) * - cor0.col2 / + col2 + - col0 * - col2 FROM tab0 AS cor0
----
-6571
-901
-9373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3538
SELECT ALL CAST( - 2 AS SIGNED ) FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL CAST ( - 2 AS INTEGER ) FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT + 45 * cor0.col1 + + 76 * col2 AS col1 FROM tab2 AS cor0
----
3447
3653
4631

query I rowsort
SELECT DISTINCT col1 + 46 AS col1 FROM tab2
----
105
63
77

query I rowsort
SELECT ALL col2 + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - 15 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3543
SELECT ALL col1 * CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL col1 * CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 * - 62 AS col0 FROM tab1 AS cor0
----
-186
-3968
-4960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col0 - col0 col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT ALL col1 DIV + col0 AS col2 FROM tab2 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL col1 / + col0 AS col2 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT DISTINCT col2 * + 67 + col0 FROM tab1 cor0
----
3621
3883
6512

onlyif mysql # use DIV operator for integer division
query I rowsort label-3548
SELECT + col1 DIV 97 + - ( tab0.col0 ) DIV - tab0.col2 AS col2 FROM tab0
----
0
1
36

skipif mysql # not compatible
query I rowsort label-3548
SELECT + col1 / 97 + - ( tab0.col0 ) / - tab0.col2 AS col2 FROM tab0
----
0
1
36

query I rowsort
SELECT - col1 + + 30 * 74 FROM tab0
----
2123
2129
2134

query I rowsort
SELECT ALL - tab1.col0 * 12 AS col1 FROM tab1
----
-36
-768
-960

query I rowsort
SELECT + col0 + + tab2.col2 * + 84 AS col1 FROM tab2
----
2262
2275
3271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ( 19 ) + + col2 FROM tab2
----
45
46
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3554
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + ( - col2 ) * col1 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + ( - col2 ) * col1 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab2 cor0
----
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3556
SELECT - 48 + col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT - 48 + col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3557
SELECT DISTINCT col2 * + col2 + CAST( NULL AS SIGNED ) + - tab2.col2 * col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT col2 * + col2 + CAST ( NULL AS INTEGER ) + - tab2.col2 * col1 FROM tab2
----
NULL

query I rowsort
SELECT + col1 + + col2 * col0 * 55 FROM tab1
----
200650
422413
8936

query I rowsort
SELECT DISTINCT col0 + - col0 * tab2.col0 + col0 AS col0 FROM tab2
----
-35
-5928
-6083

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + 4 * cor0.col0 FROM tab0 AS cor0
----
140
356
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * + 31 col1 FROM tab1 AS cor0
----
300
390
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col2 FROM tab0 AS cor0
----
88

query I rowsort
SELECT 48 * - col2 + col0 AS col1 FROM tab1 cor0
----
-2589
-2672
-4528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3565
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * 38 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT DISTINCT - + col0 * 26 FROM tab1 cor0
----
-1664
-2080
-78

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + col2 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col1 * - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + + col0 * + ( + 77 ) AS col0 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT ALL + - cor0.col0 * - ( + 91 ) FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT ALL - col1 + col0 * ( + cor0.col1 ) FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3574
SELECT - cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT - cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col2 + ( cor0.col0 + + col2 ) * - col0 FROM tab0 AS cor0
----
-1259
-1335
-15137

query I rowsort
SELECT col1 * 19 FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT ALL + 22 + - col1 * col2 + col1 * - col2 AS col0 FROM tab2
----
-1270
-1652
-3046

query I rowsort
SELECT DISTINCT + col2 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL col2 + cor0.col0 * + col2 * col1 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3581
SELECT + col1 * col0 + col1 * col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT + col1 * col0 + col1 * col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 65 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT ( - col1 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT ( - col1 ) / + col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT + 21 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT 98 * col1 FROM tab2
----
1666
3038
5782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * - col1 col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT 39 * - tab1.col0 FROM tab1
----
-117
-2496
-3120

query I rowsort
SELECT col0 * 84 * + ( col2 ) AS col1 FROM tab0
----
2940
613032
66528

query I rowsort
SELECT - col2 + 17 AS col0 FROM tab2
----
-10
-21
-9

query I rowsort
SELECT + tab2.col0 + 25 + + 99 AS col0 FROM tab2
----
131
202
203

query I rowsort
SELECT ( + 15 ) FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT + col0 + - ( col2 ) AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab2, tab1 AS cor0
----
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3595
SELECT col2 * CAST( NULL AS SIGNED ) * tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT col2 * CAST ( NULL AS INTEGER ) * tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT DISTINCT - col1 + CAST( 9 AS SIGNED ) FROM tab0
----
-77
-82
-88

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - col1 + CAST ( 9 AS INTEGER ) FROM tab0
----
-77
-82
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3597
SELECT col2 + + CAST( NULL AS SIGNED ) + - 18 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT col2 + + CAST ( NULL AS INTEGER ) + - 18 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 90 FROM tab1, tab0 AS cor0
----
-90

query I rowsort
SELECT 78 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
81 values hashing to f0487ba81d377516702723e098c02ba1

query I rowsort
SELECT col0 + ( - cor0.col1 + + col2 ) * col2 * col2 AS col2 FROM tab0 AS cor0
----
-57693
-60427
-61

query I rowsort
SELECT ( + col2 ) AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - 16 * + col0 AS col1 FROM tab0 cor0
----
-1424
-384
-560

query I rowsort
SELECT DISTINCT + 17 * + col2 + + col0 AS col2 FROM tab1 AS cor0
----
1033
1712
921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3604
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 + col2 + 84 * ( col2 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 + col2 + 84 * ( col2 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col0 ) * col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + 92 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + tab1.col0 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + 79 FROM tab1
----
79
79
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3609
SELECT + - col0 * + cor0.col0 + + CAST( - col2 AS SIGNED ) * + cor0.col0 * ( - col1 ) FROM tab1 AS cor0
----
32384
4203
93440

skipif mysql # not compatible
query I rowsort label-3609
SELECT + - col0 * + cor0.col0 + + CAST ( - col2 AS INTEGER ) * + cor0.col0 * ( - col1 ) FROM tab1 AS cor0
----
32384
4203
93440

query I rowsort
SELECT ALL 80 * - col2 * - col2 AS col1 FROM tab2
----
115520
54080
58320

query I rowsort
SELECT ALL 7 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3612
SELECT ALL + CAST( NULL AS SIGNED ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + CAST ( NULL AS INTEGER ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 96 * - col1 + + col0 AS col2 FROM tab0
----
-8232
-8647
-9277

query I rowsort
SELECT - col2 * + col1 * + col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - - col1 + - col0 * col0 * - col0 FROM tab2 AS cor0
----
374
474611
493056

query I rowsort
SELECT + col2 - col1 * - ( - 2 * + col0 ) FROM tab2
----
-2648
-407
-9178

query I rowsort
SELECT DISTINCT 60 + col2 AS col0 FROM tab1 AS cor0
----
114
117
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col0 + 32 * - 50 col0 FROM tab1 AS cor0
----
-1438
2048
6080

query I rowsort
SELECT - + 83 + col1 AS col1 FROM tab0 AS cor0
----
14
3
8

query I rowsort
SELECT ALL + col1 * - cor0.col1 + + 26 * col2 * + col2 FROM tab2 AS cor0
----
14095
17993
37255

query I rowsort
SELECT - 55 + col0 * - col0 FROM tab2 AS cor0
----
-104
-6139
-6296

query I rowsort
SELECT DISTINCT - 39 - col1 FROM tab1 AS cor0
----
-49
-52
-65

query I rowsort
SELECT - 37 * col0 + 39 AS col2 FROM tab2 AS cor0
----
-220
-2847
-2884

query I rowsort
SELECT ALL + ( col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL col0 * col0 + 46 * col0 FROM tab0 AS cor0
----
12015
1680
2835

query I rowsort
SELECT DISTINCT - 28 * + col0 FROM tab2 AS cor0
----
-196
-2184
-2212

query I rowsort
SELECT DISTINCT - col0 * - col1 + 31 FROM tab2 cor0
----
1374
248
4633

query I rowsort
SELECT + col1 + 31 * + col1 AS col2 FROM tab0
----
2752
2912
3104

query I rowsort
SELECT col0 - col1 * col0 * + col0 FROM tab0
----
-118790
-49512
-720722

query I rowsort
SELECT col1 * 34 * - col0 FROM tab1 AS cor0
----
-21760
-2652
-35360

query I rowsort
SELECT ( - 95 ) - + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 451dad485e961f6c198d6ce524572cf6

skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col2 * col0 col0 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 46 col0 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT col1 * - cor0.col1 * + 40 FROM tab0 AS cor0
----
-295840
-331240
-376360

query I rowsort
SELECT col1 + - 65 + col1 FROM tab2 cor0
----
-3
-31
53

query I rowsort
SELECT ALL 90 + + 38 * + col2 FROM tab0 AS cor0
----
128
1344
3206

query I rowsort
SELECT - col0 * col1 * cor0.col0 - col2 * col1 AS col0 FROM tab2 AS cor0
----
-106743
-2356
-360490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3639
SELECT DISTINCT - - CAST( - cor0.col1 AS SIGNED ) - cor0.col1 * - 4 * col0 FROM tab0 AS cor0
----
13483
32305
8170

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - - CAST ( - cor0.col1 AS INTEGER ) - cor0.col1 * - 4 * col0 FROM tab0 AS cor0
----
13483
32305
8170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3640
SELECT + - CAST( NULL AS SIGNED ) * col0 + col1 * 43 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT + - CAST ( NULL AS INTEGER ) * col0 + col1 * 43 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 88 ) + + col2 + + 10 * + col2 * col0 FROM tab2 cor0
----
2005
20394
30146

query I rowsort
SELECT + - ( 35 ) * + col1 + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-286
-375
-907

query I rowsort
SELECT DISTINCT col2 + + 55 * col1 AS col2 FROM tab1 AS cor0
----
1484
607
811

onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT ALL ( col1 ) DIV - col2 - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL ( col1 ) / - col2 - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + 94 col1 FROM tab0
----
1183
6818
95

query I rowsort
SELECT + col1 + col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT col1 * + cor0.col1 * + 80 AS col0 FROM tab2 AS cor0
----
23120
278480
76880

query I rowsort
SELECT - - 44 * cor0.col2 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT DISTINCT - 96 + - cor0.col1 * - 53 FROM tab0 AS cor0
----
4462
4727
5045

query I rowsort
SELECT + col2 * col0 * ( - col1 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - - 55 AS col2 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT col1 + + ( + col1 * + col2 ) FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - + col1 * + 46 + col0 + col0 AS col2 FROM tab1 AS cor0
----
-1190
-332
-438

query I rowsort
SELECT - cor0.col2 + 37 FROM tab0 AS cor0
----
-45
36
4

query I rowsort
SELECT DISTINCT col1 * - 74 AS col0 FROM tab1 AS cor0
----
-1924
-740
-962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * + col2 col0 FROM tab0
----
2310
5740
70

query I rowsort
SELECT + col2 - tab0.col0 * + col2 * 53 AS col2 FROM tab0
----
-1854
-386712
-41943

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL - - col2 * cor0.col0 + col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col1 FROM tab0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 16 * 7 col1 FROM tab1 AS cor0
----
112

query I rowsort
SELECT ALL - 85 * cor0.col1 + + col2 FROM tab1 AS cor0
----
-1009
-2156
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-3664
SELECT DISTINCT ( col2 ) DIV col0 + 52 FROM tab2 AS cor0
----
52
55

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT ( col2 ) / col0 + 52 FROM tab2 AS cor0
----
52
55

query I rowsort
SELECT ( col1 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT DISTINCT + col2 * + col1 + 27 DIV col0 AS col1 FROM tab2 AS cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + col2 * + col1 + 27 / col0 AS col1 FROM tab2 AS cor0
----
1534
646
840

query I rowsort
SELECT ALL - + col1 + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col1 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL tab1.col1 - 87 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a90a92d5b4e97d21ffc3443944c7efaf

query I rowsort
SELECT DISTINCT - 50 + 60 FROM tab2
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 + col0 * col2 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT + col0 DIV col2 + + col1 * - col1 * col0 col2 FROM tab0 AS cor0
----
-177504
-329280
-737008

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3672
SELECT + col0 / col2 + + col1 * - col1 * col0 col2 FROM tab0 AS cor0
----
-177504
-329280
-737008

query I rowsort
SELECT ALL + - 69 - cor0.col1 * + col1 FROM tab2 AS cor0
----
-1030
-3550
-358

onlyif mysql # use DIV operator for integer division
query I rowsort label-3674
SELECT ALL - col1 DIV - 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-3674
SELECT ALL - col1 / - col1 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 87 - col2 FROM tab2 AS cor0
----
49
60
61

query I rowsort
SELECT ALL 78 + + col0 FROM tab2
----
156
157
85

query I rowsort
SELECT col0 + - tab0.col2 * 74 AS col2 FROM tab0
----
-2418
-39
-5979

query I rowsort
SELECT ALL + 62 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT + - col2 + - col1 * ( cor0.col2 ) * + col1 AS col1 FROM tab1 cor0
----
-16320
-36558
-5757

query I rowsort
SELECT DISTINCT 37 * - col1 + cor0.col0 * col0 FROM tab2 cor0
----
-1098
3901
5612

query I rowsort
SELECT + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + + col1 * col0 + 76 FROM tab1 AS cor0
----
1116
154
716

query I rowsort
SELECT DISTINCT + col2 + col1 - ( col0 * + col2 ) AS col0 FROM tab1
----
-3581
-7571
-82

query I rowsort
SELECT ALL - col2 - ( col0 ) AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT col2 * 97 + - col2 AS col2 FROM tab1
----
5184
5472
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 + + col0 col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT - 55 + + col0 FROM tab0 AS cor0
----
-20
-31
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3688
SELECT ALL + - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col1 * col1 * col0 AS col2 FROM tab2
----
22848
271577
6758

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT col2 DIV ( col2 + col2 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT col2 / ( col2 + col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + col2 * col1 ) AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + + ( - cor0.col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL - ( col1 ) + cor0.col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL 68 - + col0 AS col1 FROM tab1 AS cor0
----
-12
4
65

query I rowsort
SELECT + ( + col2 ) * tab1.col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + col0 - + ( - col0 ) * col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT + - 10 * + 93 + col2 FROM tab0 AS cor0
----
-848
-897
-929

query I rowsort
SELECT ALL + 72 * 66 + - cor0.col1 FROM tab1 AS cor0
----
4726
4739
4742

query I rowsort
SELECT DISTINCT - 24 * + col1 + + col2 FROM tab1 AS cor0
----
-183
-216
-570

query I rowsort
SELECT DISTINCT 10 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-68
-69
3

query I rowsort
SELECT ALL + 26 FROM tab0 cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) - col2 * cor0.col0 col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - 34 * - ( col2 * col0 ) AS col2 FROM tab1 AS cor0
----
124032
261120
5508

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT DISTINCT 29 DIV + col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT 29 / + col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 + + 30 AS col2 FROM tab2 cor0
----
108
109
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 + - cor0.col1 col0 FROM tab2 AS cor0
----
-22
20
6

query I rowsort
SELECT ALL + - ( col1 ) * col0 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + 68 * + col1 + col1 col2 FROM tab2 cor0
----
1251
2217
4149

query I rowsort
SELECT ALL + - col1 * - col0 + + col0 + 52 FROM tab1 AS cor0
----
1172
133
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3711
SELECT col0 * CAST( + cor0.col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-3711
SELECT col0 * CAST ( + cor0.col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + - col1 + 17 FROM tab0 AS cor0
----
-69
-74
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT - + col1 DIV 77 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3713
SELECT - + col1 / 77 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 65 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3715
SELECT + - col1 + + col0 DIV + col1 FROM tab2 AS cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-3715
SELECT + - col1 + + col0 / + col1 FROM tab2 AS cor0
----
-13
-31
-58

query I rowsort
SELECT + col0 * - 6 + - 7 FROM tab0 AS cor0
----
-151
-217
-541

query I rowsort
SELECT + col2 * 98 * col2 + 16 * col0 FROM tab1 AS cor0
----
285816
319426
904448

query I rowsort
SELECT - 83 * + col2 FROM tab0 AS cor0
----
-2739
-6806
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col2 * + 70 FROM tab2
----
1820
1890
2660

query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + - col0 - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort
SELECT 41 * - col0 + CAST ( col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
-280
-3120
-3160

query I rowsort
SELECT 53 - cor0.col1 FROM tab1 AS cor0
----
27
40
43

query I rowsort
SELECT 68 * col1 AS col0 FROM tab1 AS cor0
----
1768
680
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT DISTINCT ( cor0.col1 ) DIV cor0.col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT ( cor0.col1 ) / cor0.col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - col1 - cor0.col0 * + col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ( - col2 ) * + cor0.col0 + + col1 * - col0 AS col1 FROM tab0 cor0
----
-15397
-2856
-3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT ALL + col1 DIV col2 + ( col0 ) AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL + col1 / col2 + ( col0 ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + 67 + 24 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
91

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3732
SELECT + + col1 * col2 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1593
663
868

skipif mysql # not compatible
query I rowsort label-3732
SELECT + + col1 * col2 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - ( col0 ) * + cor0.col0 + - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT - col1 * + col2 - + col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3735
SELECT + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 - - ( - col1 * + col0 ) AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + col0 + ( col1 + - col0 * - 76 ) FROM tab0 AS cor0
----
1934
2792
6944

query I rowsort
SELECT DISTINCT - col1 * - 25 - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-5187
-688
2328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col0 + col1 col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL - col1 * + col2 + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-3741
SELECT ALL - - col2 - col0 DIV col1 AS col1 FROM tab1 cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - - col2 - col0 / col1 AS col1 FROM tab1 cor0
----
51
54
90

query I rowsort
SELECT + ( tab1.col0 ) AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - cor0.col2 * 80 FROM tab1, tab1 AS cor0
----
9 values hashing to 02f760529381ca25cbb9e53d6037c8c2

query I rowsort
SELECT + 94 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT 66 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
243 values hashing to 93e4a06b51672049393fa7785427dac9

query I rowsort
SELECT 26 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT - col1 * - col0 * + ( col1 ) + + cor0.col2 FROM tab1 AS cor0
----
13616
2082
6457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3748
SELECT - col1 + CAST( NULL AS SIGNED ) * - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3748
SELECT - col1 + CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL 5 AS col1 FROM tab1
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * + col2 col1 FROM tab1 AS cor0
----
-162
-171
-288

query I rowsort
SELECT 5 * + col2 AS col1 FROM tab0 cor0
----
165
410
5

query I rowsort
SELECT + ( - col0 ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b

query I rowsort
SELECT - 86 * cor0.col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT - 72 + tab2.col0 FROM tab2
----
-65
6
7

query I rowsort
SELECT DISTINCT + ( col0 ) + + tab1.col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT + 38 * + col1 AS col1 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT DISTINCT 63 - col1 FROM tab2 AS cor0
----
32
4
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-3760
SELECT DISTINCT - col0 DIV col1 + - 62 col2 FROM tab1 cor0
----
-62
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - col0 / col1 + - 62 col2 FROM tab1 cor0
----
-62
-68

query I rowsort
SELECT + cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - 36 * + tab2.col1 * - col2 + tab2.col2 FROM tab2
----
23294
30159
55250

query I rowsort
SELECT DISTINCT ( col2 ) + - col1 * + col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - ( col2 ) * col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 21 + + col0 FROM tab1
----
101
24
85

query I rowsort
SELECT DISTINCT ( 64 ) + - col0 AS col1 FROM tab2
----
-14
-15
57

query I rowsort
SELECT + ( + col1 ) * - tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - 80 + + 91 + col1 FROM tab0
----
102
108
97

query I rowsort
SELECT 78 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + col0 * cor0.col2 * col2 + ( col0 ) AS col1 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - 92 FROM tab0 AS cor0
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT DISTINCT + col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - - 90 + col2 AS col2 FROM tab2 AS cor0
----
116
117
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 + - col2 col0 FROM tab0 AS cor0
----
-29
20
52

query I rowsort
SELECT ALL + - col2 + - col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col1 * col0 * 29 AS col0 FROM tab1 AS cor0
----
-18560
-2262
-30160

query I rowsort
SELECT DISTINCT col1 + + 49 * tab0.col1 FROM tab0
----
4300
4550
4850

query I rowsort
SELECT DISTINCT - - col0 + - ( 72 ) * - col2 AS col1 FROM tab1 cor0
----
3891
4168
6992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3781
SELECT - col1 * - col2 - + ( cor0.col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT - col1 * - col2 - + ( cor0.col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 + 34 AS col1 FROM tab0 cor0
----
69
7332
826

query I rowsort
SELECT + col0 * 92 + 66 + cor0.col1 AS col0 FROM tab1 AS cor0
----
368
5964
7439

query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 * + 7 AS col1 FROM tab0 AS cor0
----
51772
57967
65863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT col1 * + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-3785
SELECT col1 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT 50 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + - ( 21 ) + col0 * - ( 74 ) AS col1 FROM tab2 AS cor0
----
-539
-5793
-5867

query I rowsort
SELECT ALL - 41 * col1 AS col0 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT ALL + - 32 + - col1 AS col2 FROM tab1 AS cor0
----
-42
-45
-58

query I rowsort
SELECT DISTINCT col0 + col0 * col0 FROM tab0 cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 + col2 - + col2 col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 32 * + 82 + col0 * ( - col2 ) FROM tab2 AS cor0
----
-378
2435
596

query I rowsort
SELECT - col0 - + 26 * - col1 * cor0.col0 FROM tab0 AS cor0
----
210485
53640
88235

query I rowsort
SELECT DISTINCT + col2 * col0 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + ( 8 ) col0 FROM tab1
----
18
2
5

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + + col2 + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3798
SELECT DISTINCT - col0 * 10 + col1 + - CAST( 40 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-1114
-1653
-4359

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - col0 * 10 + col1 + - CAST ( 40 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-1114
-1653
-4359

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + - col0 col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - cor0.col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + 56 * 3 + - col2 * - col0 + col0 * col2 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
238
27096
605902

query I rowsort
SELECT 73 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT ALL - ( 72 ) * - col2 FROM tab1
----
3888
4104
6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + cor0.col0 - col1 * + col0 col0 FROM tab0 AS cor0
----
-1954
-3263
-7919

query I rowsort
SELECT DISTINCT + col1 * col0 * - col1 AS col2 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col1 + 87 AS col2 FROM tab1 AS cor0
----
61
74
77

query I rowsort
SELECT ALL + - 80 + - col0 AS col0 FROM tab0 AS cor0
----
-104
-115
-169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + 98 ) * col0 col0 FROM tab0 AS cor0
----
2352
3430
8722

query I rowsort
SELECT - col0 * + 14 + col1 AS col2 FROM tab0 AS cor0
----
-1155
-250
-393

query I rowsort
SELECT ALL - - ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 40 FROM tab0 AS cor0
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3814
SELECT col0 * col0 + - CAST( 67 * col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1032
-1120
1958

skipif mysql # not compatible
query I rowsort label-3814
SELECT col0 * col0 + - CAST ( 67 * col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1032
-1120
1958

query I rowsort
SELECT - 77 * col0 + col1 FROM tab0 AS cor0
----
-1762
-2598
-6762

query I rowsort
SELECT 64 + + col1 AS col0 FROM tab1 AS cor0
----
74
77
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3817
SELECT ALL col1 DIV col2 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL col1 / col2 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL + col2 + + ( - col0 ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT col1 + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683

query I rowsort
SELECT - - col1 * col1 + col2 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - col0 + 60 + + col2 FROM tab1
----
111
53
76

query I rowsort
SELECT 71 * - cor0.col2 + col0 * ( cor0.col0 ) * col1 - 42 * - col2 AS col0 FROM tab1 AS cor0
----
-1332
39307
80416

query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL col0 + col0 + - col0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col2 * + col1 + + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT 44 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE ( - col1 * col2 ) BETWEEN ( NULL ) AND - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT DISTINCT col0 DIV - col1 + col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT col0 / - col1 + col1 FROM tab2 AS cor0
----
13
31
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT + col0 DIV + col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3831
SELECT + col0 / + col0 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab2 WHERE col1 NOT IN ( + col2 + - col2 )
----
104
117
34

query I rowsort
SELECT col1 * col0 * tab0.col2 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + col1 - + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab2 WHERE ( col2 * + col1 ) NOT IN ( - col2 + + col1 )
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col0 * - col0 * - col1 FROM tab2
----
-106097
-1519
-358956

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND col1
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT + col0 + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-3840
SELECT DISTINCT + col1 * + tab0.col2 DIV col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT + col1 * + tab0.col2 / col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - + col2 + col0 - - col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + - col1 * - col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - 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 - col0 * col0 * - col0 col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT - - col1 + - cor0.col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT col1 + + col1 + col1 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-13494
-1976
-6380

query I rowsort
SELECT col2 + - col0 AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - tab1.col0 * - tab1.col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + 51 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT DISTINCT 26 * - col1 FROM tab0 AS cor0
----
-2236
-2366
-2522

query I rowsort
SELECT DISTINCT - 56 * - cor0.col0 * - 62 FROM tab1 cor0
----
-10416
-222208
-277760

query I rowsort
SELECT + - col1 * + col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 52 * 48 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 62fca33f0653c82356a0fc45dccbec85

query I rowsort
SELECT DISTINCT 7 FROM tab0 AS cor0
----
7

query I rowsort
SELECT - col2 * - 71 FROM tab1 AS cor0
----
3834
4047
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 49 col2 FROM tab0 AS cor0
----
1176
1715
4361

query I rowsort
SELECT DISTINCT - + col0 * 74 AS col0 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT ALL - col1 * 34 FROM tab1 AS cor0
----
-340
-442
-884

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col0 * CAST ( - 83 AS REAL ) FROM tab1 cor0
----
-249
-5312
-6640

query I rowsort
SELECT col0 * - 30 + cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
-1900
-2374
-38

query I rowsort
SELECT DISTINCT - - col0 * + col2 * - 63 FROM tab1 AS cor0
----
-10206
-229824
-483840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( + col0 ) col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 + col2 * col0 * col0 + col2 * - 23 * + col0 FROM tab0 AS cor0
----
323
481577
706

query I rowsort
SELECT + col2 * col2 - + col1 FROM tab2
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT DISTINCT - col0 DIV tab1.col2 - - col1 FROM tab1
----
13
26
9

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - col0 / tab1.col2 - - col1 FROM tab1
----
13
26
9

query I rowsort
SELECT ALL col0 + + col2 * col1 AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + col2 - - col2 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT - col2 * col2 + - col2 AS col0 FROM tab2
----
-1482
-702
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab2.col0 col2 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * - col2 - col2 col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL col0 * col0 + + col2 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT - col2 * col0 + - col2 DIV col0 FROM tab2
----
-192
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3872
SELECT - col2 * col0 + - col2 / col0 FROM tab2
----
-192
-2028
-3002

query I rowsort
SELECT ALL - tab1.col2 * + col1 + - col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT col0 + + col1 * - col2 AS col1 FROM tab2
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col1 col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT + col2 + tab1.col2 * + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - col1 * col0 + - col1 * + col2 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT col2 + - col0 * col0 * col0 AS col2 FROM tab1
----
-262087
-511904
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + col1 col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - col2 * + col2 + - tab2.col1 FROM tab2
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT col0 * tab2.col2 - col0 * + col0 FROM tab2
----
-3239
-4056
140

query I rowsort
SELECT col0 + - col2 + - col2 AS col2 FROM tab2
----
-47
26
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / col1 col2 FROM tab0 WHERE NULL NOT BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1 WHERE NOT col0 IN ( + col1 * col1 )
----
54
57
96

query I rowsort
SELECT + col1 + 0 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 * cor0.col2 - col0 AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT + col2 + + 56 AS col1 FROM tab1 AS cor0
----
110
113
152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3888
SELECT col1 * CAST( col2 AS SIGNED ) col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3888
SELECT col1 * CAST ( col2 AS INTEGER ) col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
182
5332
6014

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * - CAST ( - ( - col2 ) AS REAL ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3891
SELECT cor0.col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3891
SELECT cor0.col1 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( 76 ) col2 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 + + col1 * - col2 FROM tab0 AS cor0
----
-159
-2900
-7464

query I rowsort
SELECT ALL + col0 * col1 + ( col2 + col2 ) AS col0 FROM tab0 AS cor0
----
2130
3397
8263

query I rowsort
SELECT DISTINCT cor0.col1 * 18 FROM tab0 AS cor0
----
1548
1638
1746

onlyif mysql # use DIV operator for integer division
query I rowsort label-3896
SELECT DISTINCT + - col1 DIV ( 55 + - col2 ) AS col0 FROM tab1 cor0
----
-26
0
5

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + - col1 / ( 55 + - col2 ) AS col0 FROM tab1 cor0
----
-26
0
5

query I rowsort
SELECT ALL col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + - cor0.col1 + + col0 * cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - 65 * col0 - 25 FROM tab2
----
-480
-5095
-5160

query I rowsort
SELECT - cor0.col1 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT col2 + 30 * + col1 FROM tab2 cor0
----
1796
548
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3902
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + + col2 * + col2 col0 FROM tab0 AS cor0
----
1123
35
6758

onlyif mysql # use DIV operator for integer division
query I rowsort label-3904
SELECT ALL + col2 DIV col0 col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL + col2 / col0 col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 * col1 + + 14 FROM tab0 AS cor0
----
111
2852
7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * + col1 + + cor0.col2 col2 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT + col2 DIV ( 62 * col0 ) + - 71 AS col2 FROM tab0 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-3907
SELECT + col2 / ( 62 * col0 ) + - 71 AS col2 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - - col2 + ( + cor0.col2 ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT col2 + cor0.col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL - + col2 + + 52 AS col2 FROM tab2 AS cor0
----
14
25
26

query I rowsort
SELECT ALL cor1.col1 * - tab1.col0 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to d25bbc3be8b7534a255ca7e00cb9edeb

query I rowsort
SELECT DISTINCT - - col0 * + cor0.col1 + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL 52 + - col1 AS col1 FROM tab0 AS cor0
----
-34
-39
-45

query I rowsort
SELECT DISTINCT 1 FROM tab2, tab0 cor0, tab2 cor1
----
1

query I rowsort
SELECT col0 * + col0 + + ( + col0 ) AS col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT 59 + - col0 * 20 - - ( + col1 * - col0 ) AS col1 FROM tab2
----
-2864
-298
-6103

query I rowsort
SELECT - 56 + - col0 FROM tab2 AS cor0
----
-134
-135
-63

query I rowsort
SELECT DISTINCT - ( col1 ) * - ( + col2 ) * - col1 + col1 AS col2 FROM tab0 AS cor0
----
-243982
-678951
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + col0 col0 FROM tab0 AS cor0
----
30
41
95

query I rowsort
SELECT ALL col0 * - col1 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 + col1 col1 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT ALL - ( col2 ) * + 3 AS col2 FROM tab1 AS cor0
----
-162
-171
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 + col0 col1 FROM tab2 AS cor0
----
149
150
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT tab2.col0 DIV col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3924
SELECT tab2.col0 / col0 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col0 + col1 * 2 FROM tab1 cor0
----
106
55
84

query I rowsort
SELECT ALL - + col2 + col2 * 39 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT DISTINCT + - col2 + - col0 * 25 FROM tab1 AS cor0
----
-129
-1657
-2096

query I rowsort
SELECT ALL cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT ALL - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - col1 / col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3930
SELECT DISTINCT cor0.col2 + + CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab1 cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT cor0.col2 + + CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT + - col1 * col1 - - cor0.col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - tab0.col2 * col1 + - ( - 42 ) + - tab0.col0 AS col0 FROM tab0
----
-2820
-7509
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3933
SELECT - - cor0.col1 + CAST( - 67 * col2 AS SIGNED ) FROM tab1 AS cor0
----
-3592
-3809
-6419

skipif mysql # not compatible
query I rowsort label-3933
SELECT - - cor0.col1 + CAST ( - 67 * col2 AS INTEGER ) FROM tab1 AS cor0
----
-3592
-3809
-6419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 14 col1 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT DISTINCT + - col0 * + ( - cor0.col0 ) + ( - col0 + col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT col2 * + col0 * cor0.col2 + - cor0.col0 + - col0 AS col2 FROM tab0 cor0
----
-35
26088
598258

query I rowsort
SELECT DISTINCT 13 FROM tab1, tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT - 77 * cor0.col0 AS col1 FROM tab2 cor0
----
-539
-6006
-6083

query I rowsort
SELECT ALL ( col1 ) * col0 * ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + cor2.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + 68 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT col2 * ( cor0.col0 ) + - ( - 43 ) AS col1 FROM tab0 AS cor0
----
7341
78
835

onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT + 74 DIV + col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3944
SELECT + 74 / + col1 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3945
SELECT cor0.col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT cor0.col1 / - col0 AS col2 FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3946
SELECT - col0 * col1 DIV - 54 AS col1 FROM tab0 AS cor0
----
149
38
62

skipif mysql # not compatible
query I rowsort label-3946
SELECT - col0 * col1 / - 54 AS col1 FROM tab0 AS cor0
----
149
38
62

query I rowsort
SELECT 77 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL col1 * + tab1.col0 * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT - + ( 82 ) * col2 FROM tab0 AS cor0
----
-2706
-6724
-82

query I rowsort
SELECT cor0.col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ( 29 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + tab2.col2 * col0 + col2 * - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + cor0.col1 + + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7

query I rowsort
SELECT ALL + tab1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 * col2 ) col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 92 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - ( - tab1.col1 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ( 2 ) * col0 FROM tab0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3959
SELECT DISTINCT CAST( - 22 AS SIGNED ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT CAST ( - 22 AS INTEGER ) FROM tab2
----
-22

query I rowsort
SELECT ( - col1 ) * + col1 FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + 3 + col1 FROM tab0 AS cor0
----
83
88
94

query I rowsort
SELECT ALL - ( - col0 ) * + col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - tab1.col2 * + col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - col1 - - cor0.col1 * + ( 68 ) FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT - - col0 * + col1 * 6 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-208
3740
6071

query I rowsort
SELECT + + col0 * + 3 FROM tab2 AS cor0
----
21
234
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + col2 ) col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 * - 88 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT DISTINCT col2 + 36 * 37 AS col1 FROM tab0
----
1333
1365
1414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( col0 ) + + col1 col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + col0 - - tab1.col2 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT + col0 + - col0 + - col0 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col2 - col0 * 3 FROM tab2
----
-199
-208
6

query I rowsort
SELECT + 21 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT - col2 * - ( - col0 ) * - cor0.col2 + 57 * 19 * col1 AS col2 FROM tab1 AS cor0
----
218766
36906
751359

query I rowsort
SELECT + + col0 * + col0 + + col2 AS col2 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT + 74 + col0 * col0 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-269
-474478
-492965

query I rowsort
SELECT ALL - 37 + + col0 AS col1 FROM tab1 cor0
----
-34
27
43

query I rowsort
SELECT ALL col1 * - cor0.col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 39 * col0 FROM tab2 AS cor0
----
273
3042
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3982
SELECT DISTINCT - CAST( + cor0.col0 AS SIGNED ) * + cor0.col1 - 6 FROM tab0 AS cor0
----
-2070
-3401
-8105

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT - CAST ( + cor0.col0 AS INTEGER ) * + cor0.col1 - 6 FROM tab0 AS cor0
----
-2070
-3401
-8105

onlyif mysql # use DIV operator for integer division
query I rowsort label-3983
SELECT DISTINCT - 66 + 63 DIV - col0 FROM tab1 AS cor0
----
-66
-87

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - 66 + 63 / - col0 FROM tab1 AS cor0
----
-66
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col1 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL + col2 * ( + col1 + col2 ) FROM tab2
----
1566
2090
2210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3986
SELECT ALL + CAST( col2 AS SIGNED ) + cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
131
189
83

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + CAST ( col2 AS INTEGER ) + cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT ( - 27 ) - col1 FROM tab1 AS cor0
----
-37
-40
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3988
SELECT + CAST( - 89 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
-4806
-5073
-8544

skipif mysql # not compatible
query I rowsort label-3988
SELECT + CAST ( - 89 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
-4806
-5073
-8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT ALL col2 + + 36 * col0 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
62
63
74

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL col2 + + 36 * col0 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
62
63
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3990
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 / col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 / col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT + cor0.col1 * - col2 + + ( - 5 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-3991
SELECT + cor0.col1 * - col2 + + ( - 5 ) / - col0 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT - + 6 DIV col0 + 5 FROM tab1 cor0
----
3
5
5

skipif mysql # not compatible
query I rowsort label-3992
SELECT - + 6 / col0 + 5 FROM tab1 cor0
----
3
5
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT - + 15 + col1 - - col0 DIV - 20 AS col2 FROM tab0 AS cor0
----
70
72
81

skipif mysql # not compatible
query I rowsort label-3993
SELECT - + 15 + col1 - - col0 / - 20 AS col2 FROM tab0 AS cor0
----
70
72
81

query I rowsort
SELECT ALL ( - col2 ) + ( + col2 ) AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col2 + - col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 65 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT ALL col2 * cor0.col0 + - 99 AS col0 FROM tab0 AS cor0
----
-64
693
7199

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3998
SELECT - col1 * col0 * 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-3998
SELECT - col1 * col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3999
SELECT - - col2 * col0 * CAST( - 19 AS SIGNED ) + col2 * col2 - - 7 AS col2 FROM tab1 AS cor0
----
-136697
-155
-66056

skipif mysql # not compatible
query I rowsort label-3999
SELECT - - col2 * col0 * CAST ( - 19 AS INTEGER ) + col2 * col2 - - 7 AS col2 FROM tab1 AS cor0
----
-136697
-155
-66056

query I rowsort
SELECT DISTINCT + 46 + cor0.col1 * + 11 FROM tab0 AS cor0
----
1047
1113
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT - + col0 + col2 DIV - 92 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4001
SELECT - + col0 + col2 / - 92 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + col2 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab1, tab1 cor0
----
15

query I rowsort
SELECT - col1 * + ( + col2 ) * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + + 28 + cor0.col0 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 81dfe39b52dd1b6b1b7c4d1a321cf525

onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT DISTINCT ( - col2 ) DIV col0 + + 14 * + ( - col2 ) * - tab1.col2 col2 FROM tab1
----
129023
40806
45486

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT ( - col2 ) / col0 + + 14 * + ( - col2 ) * - tab1.col2 col2 FROM tab1
----
129023
40806
45486

query I rowsort
SELECT ( 52 ) + - col1 + col0 * + col2 * col1 FROM tab2
----
119645
51069
5880

query I rowsort
SELECT - col0 * col0 + col1 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + 68 * + tab2.col0 AS col1 FROM tab2, tab1, tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT 81 * + col2 AS col0 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT + - ( + col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4012
SELECT ALL - + cor0.col0 DIV col2 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - + cor0.col0 / col2 AS col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT ALL 31 * + col0 * + col2 AS col0 FROM tab1 cor0
----
113088
238080
5022

query I rowsort
SELECT ALL + 10 * ( col2 ) AS col2 FROM tab2 AS cor0
----
260
270
380

onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT DISTINCT - ( 74 ) DIV col1 + 57 AS col0 FROM tab2 AS cor0
----
53
55
56

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT - ( 74 ) / col1 + 57 AS col0 FROM tab2 AS cor0
----
53
55
56

query I rowsort
SELECT DISTINCT - 11 * cor0.col2 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT + 35 * col1 + col2 * col0 AS col0 FROM tab0 AS cor0
----
10483
3430
3802

query I rowsort
SELECT DISTINCT - col0 * + col0 - 0 * cor0.col1 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT col0 * col0 + - ( col1 ) FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL - ( cor0.col2 ) - + col1 * - col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + - 6 * - cor0.col1 + col2 FROM tab2 AS cor0
----
140
213
380

query I rowsort
SELECT DISTINCT col0 + - col1 + 70 AS col0 FROM tab0 cor0
----
68
8

query I rowsort
SELECT ALL + 9 + col1 AS col0 FROM tab0 AS cor0
----
100
106
95

skipif mysql # not compatible
query I rowsort
SELECT + col0 + cor0.col1 * CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT - - col1 * col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col2 + + col0 * + col0 * - 22 FROM tab2
----
-1051
-133822
-137264

query I rowsort
SELECT ALL col1 * - tab0.col1 + col2 * + col0 FROM tab0
----
-6604
-9374
-983

onlyif mysql # use DIV operator for integer division
query I rowsort label-4028
SELECT col0 DIV col0 - + col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4028
SELECT col0 / col0 - + col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT ALL col2 DIV col0 - tab0.col2 FROM tab0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL col2 / col0 - tab0.col2 FROM tab0
----
-1
-32
-82

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 + + col1 AS col0 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT + - col0 * ( + 37 ) AS col1 FROM tab1 AS cor0
----
-111
-2368
-2960

query I rowsort
SELECT ALL + col1 * 26 FROM tab1 AS cor0
----
260
338
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4033
SELECT ALL - + col2 + + col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL - + col2 + + col2 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT + col1 * + col1 + col1 * col1 FROM tab2 AS cor0
----
1922
578
6962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col0 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - cor0.col2 * - col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + cor0.col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - + cor0.col2 * cor0.col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT DISTINCT + col1 DIV 42 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + col1 / 42 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col1 * 22 AS col0 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT + col0 - - col1 AS col1 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4042
SELECT ALL - col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col1 + + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col2 * ( col1 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT DISTINCT + col0 DIV - 36 AS col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + col0 / - 36 AS col0 FROM tab0
----
-2
0

query I rowsort
SELECT - col2 * + col0 + col2 AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT + + 52 AS col0 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT col0 + col2 DIV + ( + tab2.col1 ) AS col1 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-4048
SELECT col0 + col2 / + ( + tab2.col1 ) AS col1 FROM tab2
----
7
78
81

query I rowsort
SELECT + tab0.col2 * col0 + + col0 AS col2 FROM tab0
----
70
7387
816

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT - 81 * 27 AS col0 FROM tab1 AS cor0
----
-2187
-2187
-2187

query I rowsort
SELECT - ( 44 ) * col2 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT + 0 * + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT DISTINCT - tab2.col0 DIV ( - col0 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - tab2.col0 / ( - col0 ) AS col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * - 59 + - col1 col1 FROM tab0
----
-167528
-440349
-5820

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab2, tab0 AS cor1
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT - 19 DIV - 54 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 19 / - 54 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( ( - col1 ) ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col2 + 55 FROM tab1 AS cor0
----
109
112
151

query I rowsort
SELECT ALL - col2 + - tab0.col2 * + col2 * col1 AS col2 FROM tab0
----
-611966
-93687
-98

query I rowsort
SELECT - 39 + + col1 AS col1 FROM tab0
----
47
52
58

query I rowsort
SELECT DISTINCT + col1 + col0 + ( col0 * col0 ) AS col2 FROM tab2 AS cor0
----
6221
6337
87

query I rowsort
SELECT col2 * col2 + col2 * ( - col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4065
SELECT DISTINCT CAST( NULL AS SIGNED ) + 0 FROM tab1, tab0 cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 0 FROM tab1, tab0 cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 16 * 82 AS col2 FROM tab1, tab0 AS cor0
----
1312

query I rowsort
SELECT DISTINCT col0 + + 91 AS col0 FROM tab1 AS cor0
----
155
171
94

query I rowsort
SELECT ALL - - cor0.col2 * + cor0.col1 - - col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + 48 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL + col2 + + cor0.col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col1 + 72 * col0 AS col2 FROM tab0 AS cor0
----
1642
2423
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-4072
SELECT 29 DIV + 81 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4072
SELECT 29 / + 81 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 37 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( + cor0.col1 ) * - cor0.col1 col1 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - col0 * + 35 FROM tab0 AS cor0
----
-1225
-3115
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT ALL col0 + + col1 * col0 DIV + col1 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL col0 + + col1 * col0 / + col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col1 * col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT ALL + 76 DIV - col0 AS col1 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + 76 / - col0 AS col1 FROM tab0
----
-2
-3
0

query I rowsort
SELECT + 72 * col2 AS col1 FROM tab2 cor0
----
1872
1944
2736

query I rowsort
SELECT ALL - 57 + col2 * 22 FROM tab1 AS cor0
----
1131
1197
2055

onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT + col1 DIV col0 + - 71 * + 90 + col2 * col0 AS col2 FROM tab2 AS cor0
----
-3388
-4362
-6197

skipif mysql # not compatible
query I rowsort label-4081
SELECT + col1 / col0 + - 71 * + 90 + col2 * col0 AS col2 FROM tab2 AS cor0
----
-3388
-4362
-6197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4082
SELECT + + col0 * + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT + + col0 * + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 * col2 * + ( 87 * col2 ) FROM tab1 AS cor0
----
-27260928
-8625528
-9610542

onlyif mysql # use DIV operator for integer division
query I rowsort label-4084
SELECT - + col1 DIV col0 + col1 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-4084
SELECT - + col1 / col0 + col1 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT DISTINCT + cor0.col2 * ( col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - col1 * 69 AS col0 FROM tab2 AS cor0
----
1173
2139
4071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4087
SELECT - col1 * + CAST( NULL AS SIGNED ) * - 84 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT - col1 * + CAST ( NULL AS INTEGER ) * - 84 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * 66 col2 FROM tab2
----
-12474
-133848
-198132

query I rowsort
SELECT + 16 * + 19 + - cor0.col1 * + 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cfcc52b7fba7e630027a9e4c57d6dd05

query I rowsort
SELECT + 42 + + cor0.col2 FROM tab1 cor0
----
138
96
99

query I rowsort
SELECT - 92 + + col0 FROM tab0 AS cor0
----
-3
-57
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4092
SELECT ALL col1 + CAST( ( - col0 ) + 83 AS SIGNED ) AS col0 FROM tab0
----
145
145
85

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL col1 + CAST ( ( - col0 ) + 83 AS INTEGER ) AS col0 FROM tab0
----
145
145
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4093
SELECT ALL ( ( col1 ) ) DIV - 58 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL ( ( col1 ) ) / - 58 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - col0 * - cor0.col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - 65 * - 46 AS col1 FROM tab2
----
2990
2990
2990

query I rowsort
SELECT - ( - cor0.col1 ) * col0 + + col2 * - col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT - ( col0 ) * - col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - 55 FROM tab0, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT - - 16 FROM tab1 cor0
----
16
16
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4100
SELECT ALL - - col2 + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL - - col2 + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 90 + + col2 FROM tab0 AS cor0
----
-57
-8
-89

query I rowsort
SELECT DISTINCT + cor0.col2 * - 73 * 84 FROM tab2, tab1 AS cor0
----
-331128
-349524
-588672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + - col0 col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + col1 + + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4105
SELECT ALL - 72 + col0 DIV col0 + + col2 FROM tab2 AS cor0
----
-33
-44
-45

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - 72 + col0 / col0 + + col2 FROM tab2 AS cor0
----
-33
-44
-45

query I rowsort
SELECT ALL tab0.col2 + + 24 FROM tab0
----
106
25
57

query I rowsort
SELECT ALL 79 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT 55 * col0 - + col0 AS col2 FROM tab1
----
162
3456
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4109
SELECT ( + col1 ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ( + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + tab0.col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT + + 75 + + col2 AS col1 FROM tab0 AS cor0
----
108
157
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4112
SELECT DISTINCT + col0 + col1 * CAST( + col1 * - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-16144
-36501
-5636

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + col0 + col1 * CAST ( + col1 * - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-16144
-36501
-5636

query I rowsort
SELECT DISTINCT - col0 + + col0 + 24 FROM tab0 cor0
----
24

query I rowsort
SELECT + col1 + col1 + + col1 FROM tab1 AS cor0
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT - ( col0 ) DIV CAST( 49 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-4115
SELECT - ( col0 ) / CAST ( 49 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
24
35
88

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col2 * col2 * - col0 FROM tab0 cor0
----
-25344
-591138
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT col2 + - col1 DIV col1 + col0 col0 FROM tab2
----
103
116
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4117
SELECT col2 + - col1 / col1 + col0 col0 FROM tab2
----
103
116
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4118
SELECT - col0 DIV ( 72 * col0 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4118
SELECT - col0 / ( 72 * col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT + - cor0.col2 + + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + 20 - col0 * + col0 FROM tab0 AS cor0
----
-1205
-556
-7901

query I rowsort
SELECT ALL + + 80 + + col2 FROM tab2 AS cor0
----
106
107
118

query I rowsort
SELECT + 82 * col1 + cor0.col0 FROM tab2 AS cor0
----
1473
2549
4916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4123
SELECT + CAST( NULL AS SIGNED ) - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT + CAST ( NULL AS INTEGER ) - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 97 + cor0.col2 AS col2 FROM tab0 cor0
----
130
179
98

query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 - - 8 * col2 AS col1 FROM tab0 AS cor0
----
-1800
-3387
-7443

query I rowsort
SELECT DISTINCT - 0 + col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + + 96 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-2496
-960

query I rowsort
SELECT DISTINCT + 59 FROM tab2, tab1 cor0, tab2 AS cor1
----
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4129
SELECT - CAST( - cor0.col2 AS SIGNED ) + - col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT - CAST ( - cor0.col2 AS INTEGER ) + - col2 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 65 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL - ( - 78 ) * cor0.col2 * - col2 FROM tab0 AS cor0
----
-524472
-78
-84942

query I rowsort
SELECT col2 - - tab2.col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL + 32 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT + ( - col2 ) - col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 - - 60 FROM tab2 AS cor0
----
-1283
-157
-4542

query I rowsort
SELECT ALL - ( col2 ) * + cor0.col0 - ( col2 ) FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL - 99 * + col0 - + ( + 24 * col1 ) FROM tab2 AS cor0
----
-1437
-8229
-9138

query I rowsort
SELECT ALL - col1 + + 98 * col1 AS col0 FROM tab1 AS cor0
----
1261
2522
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT DISTINCT col1 DIV + 82 + col2 * - col2 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT col1 / + 82 + col2 * - col2 FROM tab0 AS cor0
----
-1088
-6723
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4141
SELECT DISTINCT + col1 * - CAST( - 95 * + cor0.col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
702620
786695
893855

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT + col1 * - CAST ( - 95 * + cor0.col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
702620
786695
893855

query I rowsort
SELECT DISTINCT - - col2 + 10 - col0 * - col2 AS col2 FROM tab2 AS cor0
----
2064
226
3050

query I rowsort
SELECT col2 * 56 FROM tab0 AS cor0
----
1848
4592
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-4144
SELECT DISTINCT + col0 DIV + col1 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1533
-642
-837

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + col0 / + col1 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1533
-642
-837

query I rowsort
SELECT - - cor0.col1 * - 11 + col2 FROM tab2 AS cor0
----
-149
-314
-623

query I rowsort
SELECT + - col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT tab2.col0 * col2 + col1 FROM tab2
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4148
SELECT ALL - - col0 + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL - - col0 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4149
SELECT + col0 * CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4149
SELECT + col0 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col1 * + 80 + + col0 FROM tab2 AS cor0
----
1439
2487
4798

query I rowsort
SELECT DISTINCT + - cor0.col2 + 44 * + col0 FROM tab0 cor0
----
1023
1539
3834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + 29 * + col0 * - col0 col0 FROM tab0
----
-16697
-229702
-35518

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4153
SELECT col0 * - cor0.col0 + - cor0.col2 * CAST( + 85 + col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-10117
-3181
-9828

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4153
SELECT col0 * - cor0.col0 + - cor0.col2 * CAST ( + 85 + col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-10117
-3181
-9828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col1 col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col2 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4156
SELECT DISTINCT + - CAST( + 26 AS SIGNED ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT + - CAST ( + 26 AS INTEGER ) FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL - col2 * 54 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1465
-1482
-2131

query I rowsort
SELECT ALL - + 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 64 * + 33 AS col2 FROM tab1 AS cor0
----
-2112

query I rowsort
SELECT 52 + 80 AS col1 FROM tab0 AS cor0
----
132
132
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + - col1 * + cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - + col2 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT + 72 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT + 72 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 * 2 + - col2 * - 35 FROM tab1 AS cor0
----
1896
2123
3520

query I rowsort
SELECT DISTINCT - 58 * cor0.col1 AS col0 FROM tab1 cor0
----
-1508
-580
-754

query I rowsort
SELECT - cor0.col1 * col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4169
SELECT ALL ( - col1 ) * cor0.col0 DIV CAST( + 35 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-18
-2
-29

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL ( - col1 ) * cor0.col0 / CAST ( + 35 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-18
-2
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4170
SELECT - CAST( + 39 AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
-22
-8
20

skipif mysql # not compatible
query I rowsort label-4170
SELECT - CAST ( + 39 AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
-22
-8
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col1 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT col1 DIV - col1 + + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4172
SELECT col1 / - col1 + + col1 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 * + 43 col1 FROM tab2 AS cor0
----
-1059
-1130
-1617

query I rowsort
SELECT DISTINCT + 4 * + col1 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT ALL + cor0.col0 * + 35 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f8b6965b2221db8fd6407963c2285112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT ALL col0 DIV 27 + tab1.col2 DIV + ( tab1.col0 ) FROM tab1
----
18
2
3

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL col0 / 27 + tab1.col2 / + ( tab1.col0 ) FROM tab1
----
18
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 + + col2 col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col2 * - col1 + + col1 * - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
-6
1329
288

query I rowsort
SELECT ALL - 8 + - cor0.col0 * - col2 FROM tab1 AS cor0
----
154
3640
7672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col0 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL + cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + + 29 * - col2 AS col2 FROM tab1 AS cor0
----
-1566
-1653
-2784

onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT DISTINCT - col0 + col0 DIV - col2 AS col2 FROM tab0 cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - col0 + col0 / - col2 AS col2 FROM tab0 cor0
----
-24
-70
-90

query I rowsort
SELECT - col0 + col2 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1264
1455
563

onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT + CAST( - col0 AS SIGNED ) DIV col0 + + col1 * - col2 - - col2 FROM tab2
----
-1509
-609
-811

skipif mysql # not compatible
query I rowsort label-4185
SELECT + CAST ( - col0 AS INTEGER ) / col0 + + col1 * - col2 - - col2 FROM tab2
----
-1509
-609
-811

query I rowsort
SELECT tab0.col1 * col0 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col0 * - col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 95 + col0 col1 FROM tab1 AS cor0
----
-15
-31
-92

query I rowsort
SELECT col2 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT col2 * col2 + + col2 * - col0 FROM tab0
----
-34
-574
297

query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab2
----
32

query I rowsort
SELECT ALL col1 * col1 * - col1 FROM tab1
----
-1000
-17576
-2197

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL OR NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT tab0.col2 * + ( - col1 * - col0 ) FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col0 + - col2 * - 52 * col2 + col1 AS col2 FROM tab0
----
184
349828
56738

query I rowsort
SELECT - col1 * col1 - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 77 + - col0 col0 FROM tab2
----
532
5928
6004

query I rowsort
SELECT DISTINCT - col1 + col1 + col0 FROM tab2
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4199
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col0 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL 18 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT - 51 + - col2 AS col2 FROM tab0
----
-133
-52
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4202
SELECT + CAST( 18 AS SIGNED ) * - col2 + col2 * - cor0.col0 FROM tab1 AS cor0
----
-1134
-4674
-9408

skipif mysql # not compatible
query I rowsort label-4202
SELECT + CAST ( 18 AS INTEGER ) * - col2 + col2 * - cor0.col0 FROM tab1 AS cor0
----
-1134
-4674
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 29 + ( + col2 ) col0 FROM tab1 cor0
----
125
83
86

query I rowsort
SELECT DISTINCT - + col1 * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT 86 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT + 97 AS col1 FROM tab0, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4207
SELECT - col1 * + CAST( 49 AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
-27930
-61152
-68796

skipif mysql # not compatible
query I rowsort label-4207
SELECT - col1 * + CAST ( 49 AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
-27930
-61152
-68796

query I rowsort
SELECT - col1 * - 50 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
1599
7091
9034

query I rowsort
SELECT + col1 + 51 FROM tab2 cor0
----
110
68
82

query I rowsort
SELECT cor0.col2 + 9 AS col2 FROM tab1 AS cor0
----
105
63
66

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col1 FROM tab0, tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + ( 51 ) * col1 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT - col0 + - 77 FROM tab1 AS cor0
----
-141
-157
-80

query I rowsort
SELECT - + col0 * - cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 74 * col2 + - col2 + col2 * + col2 FROM tab1 cor0
----
-1026
-1134
2016

query I rowsort
SELECT + + ( col0 ) * col0 + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4217
SELECT ALL - - col1 DIV - 77 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - - col1 / - 77 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * - cor0.col0 + - col2 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL 77 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT - col0 * + col1 + - col1 - - col0 * 44 AS col2 FROM tab1 AS cor0
----
2166
2467
28

query I rowsort
SELECT + col0 + + ( 43 + col1 ) AS col0 FROM tab1 AS cor0
----
117
136
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4222
SELECT - cor0.col0 * - CAST( NULL AS SIGNED ) + 11 + + col2 * cor0.col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT - cor0.col0 * - CAST ( NULL AS INTEGER ) + 11 + + col2 * cor0.col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 23 * col1 FROM tab1
----
230
299
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab2.col2 * + col0 col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT - col0 + ( col0 ) * col1 * col1 AS col0 FROM tab2 AS cor0
----
22752
271440
6720

query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 * 57 + col1 AS col0 FROM tab0 AS cor0
----
-1898
-415895
-45058

query I rowsort
SELECT DISTINCT col0 * + 3 + col1 AS col2 FROM tab1 AS cor0
----
202
253
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4228
SELECT ALL - 53 DIV + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - 53 / + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + col1 * col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL cor0.col0 * - 1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + col0 - - cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT ALL + col1 DIV + tab1.col0 col0 FROM tab1
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + col1 / + tab1.col0 col0 FROM tab1
----
0
0
8

query I rowsort
SELECT col0 + 95 AS col2 FROM tab2 cor0
----
102
173
174

query I rowsort
SELECT DISTINCT - - col0 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col0 * - col2 + - 19 FROM tab1 AS cor0
----
143
3629
7661

query I rowsort
SELECT + col1 + - col1 - + col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT ALL col2 - - ( - col2 + + tab1.col2 ) DIV 48 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL col2 - - ( - col2 + + tab1.col2 ) / 48 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 - col0 col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 + + 10 * col1 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT cor0.col0 + 66 * - col2 AS col0 FROM tab2 AS cor0
----
-1638
-1775
-2429

query I rowsort
SELECT - 93 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT - tab2.col0 + 75 + ( - col0 ) FROM tab2
----
-81
-83
61

query I rowsort
SELECT ALL + ( col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4245
SELECT DISTINCT + + 12 * + col2 + CAST( NULL AS SIGNED ) * + col2 + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT + + 12 * + col2 + CAST ( NULL AS INTEGER ) * + col2 + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4246
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ( col2 ) * col2 * col1 - col2 AS col2 FROM tab0
----
611802
93621
96

query I rowsort
SELECT ALL + 76 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4249
SELECT CAST( - col2 AS SIGNED ) * + col2 + tab2.col2 AS col0 FROM tab2
----
-1406
-650
-702

skipif mysql # not compatible
query I rowsort label-4249
SELECT CAST ( - col2 AS INTEGER ) * + col2 + tab2.col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ( ( + col0 ) ) AS col1 FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4251
SELECT + CAST( NULL AS SIGNED ) - 64 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT + CAST ( NULL AS INTEGER ) - 64 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4252
SELECT CAST( ( col1 ) + + ( 53 ) AS SIGNED ) AS col2 FROM tab2
----
112
70
84

skipif mysql # not compatible
query I rowsort label-4252
SELECT CAST ( ( col1 ) + + ( 53 ) AS INTEGER ) AS col2 FROM tab2
----
112
70
84

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + col1 col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 13 * col1 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT ALL + - col2 + col1 + + 43 FROM tab0 AS cor0
----
139
52
96

query I rowsort
SELECT ALL - cor0.col2 * + col2 + 57 AS col0 FROM tab1 AS cor0
----
-2859
-3192
-9159

query I rowsort
SELECT - 87 * + col0 FROM tab2 AS cor0
----
-609
-6786
-6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT - - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4260
SELECT - - cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * cor0.col0 + col2 col1 FROM tab1 AS cor0
----
-243
-6279
-7824

query I rowsort
SELECT cor0.col2 * cor0.col1 + ( + 25 + col0 ) AS col2 FROM tab2 AS cor0
----
1637
750
869

query I rowsort
SELECT ALL + col0 + 73 FROM tab2
----
151
152
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487

query I rowsort
SELECT + col2 * - col0 * - ( 20 ) + tab2.col2 AS col2 FROM tab2
----
3807
40586
60078

query I rowsort
SELECT + 87 + 73 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 657a59eb2ad19b061a701df88105c303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4267
SELECT DISTINCT - 28 + + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT - 28 + + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * ( + 71 * + col1 ) col2 FROM tab1 AS cor0
----
45376
5535
73760

query I rowsort
SELECT ALL tab0.col2 * col1 - ( - col1 ) FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL col0 + + col1 * + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT - - ( - col1 ) * col1 + + col0 AS col2 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT + ( - 83 ) FROM tab0 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + col2 * + col1 + 85 * - col2 + col0 FROM tab2
----
-1451
-2505
-598

query I rowsort
SELECT - ( 68 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT ALL - cor0.col0 + + 25 FROM tab0, tab1 AS cor0
----
9 values hashing to 041054200942dbd3fbf422d04855b3a0

query I rowsort
SELECT ALL col2 * + 3 + + col1 FROM tab1
----
181
188
301

query I rowsort
SELECT col0 + + 81 AS col2 FROM tab1
----
145
161
84

query I rowsort
SELECT ALL + col1 * - col0 + - col2 * - ( - 90 ) FROM tab2 cor0
----
-2647
-4763
-6942

query I rowsort
SELECT DISTINCT 12 * - 76 + col2 AS col2 FROM tab0 AS cor0
----
-830
-879
-911

query I rowsort
SELECT DISTINCT + col0 + col2 * - col0 + - ( + col1 ) FROM tab1 AS cor0
----
-185
-3594
-7613

query I rowsort
SELECT DISTINCT + col0 - - ( + cor0.col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + col2 * ( col2 * 71 ) FROM tab1 AS cor0
----
207036
230679
654336

query I rowsort
SELECT DISTINCT + col2 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 87 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT - col1 * - 16 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1456
1820
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 + + col1 col2 FROM tab0 AS cor0
----
33
38
44

query I rowsort
SELECT DISTINCT + - col0 + + 44 FROM tab1 AS cor0
----
-20
-36
41

query I rowsort
SELECT cor0.col0 * 68 + col0 * col1 FROM tab1 AS cor0
----
282
4992
6480

query I rowsort
SELECT ALL 22 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
1078
133848
137302

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4290
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 91 * 44 - + col0 FROM tab1 AS cor0
----
3924
3940
4001

query I rowsort
SELECT DISTINCT 88 * - cor0.col1 + col1 * col2 AS col1 FROM tab1 AS cor0
----
-310
-884
104

query I rowsort
SELECT DISTINCT - col1 * + col1 * + col0 + - col1 FROM tab1 AS cor0
----
-13533
-2054
-6410

query I rowsort
SELECT ALL ( - 8 ) AS col0 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT - - cor0.col0 + + ( + col1 * ( - col2 ) ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + 19 * - col1 FROM tab1
----
-190
-247
-494

query I rowsort
SELECT 63 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + ( col2 ) * + col1 * tab1.col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL col0 * ( + tab2.col2 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + tab2.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT 12 * tab1.col0 - col0 AS col0 FROM tab1
----
33
704
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + - col2 col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4305
SELECT cor0.col1 * col0 + - CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-4305
SELECT cor0.col1 * col0 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT + + 54 * col1 + 79 AS col2 FROM tab0 AS cor0
----
4723
4993
5317

query I rowsort
SELECT + + col2 * 23 AS col1 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT + cor0.col2 * - cor0.col0 * - 72 FROM tab1 AS cor0
----
11664
262656
552960

query I rowsort
SELECT ALL - + cor0.col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - + col1 + - 73 * 98 AS col1 FROM tab0 AS cor0
----
-7240
-7245
-7251

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 69 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab2, tab0 cor0
----
-40

query I rowsort
SELECT DISTINCT + 95 + - 28 FROM tab2, tab1 AS cor0
----
67

query I rowsort
SELECT DISTINCT col1 + - 79 AS col2 FROM tab0 AS cor0
----
12
18
7

query I rowsort
SELECT + - col1 * 10 FROM tab2 AS cor0
----
-170
-310
-590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 20 col0 FROM tab2 AS cor0
----
-520
-540
-760

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e

query I rowsort
SELECT 40 * col1 - col1 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT DISTINCT col0 + - ( + tab0.col0 ) * col0 + - col0 AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + ( - col1 ) + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 - 13 FROM tab1 cor0
----
-109
-67
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4325
SELECT DISTINCT col0 DIV 67 + - ( + col1 * ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-1533
-645
-837

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT col0 / 67 + - ( + col1 * ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-1533
-645
-837

query I rowsort
SELECT col2 + ( - cor0.col2 ) - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col1 + + col2 AS col0 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4328
SELECT col2 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * + col2 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
11061
25954
90584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT + ( col1 + - 54 ) DIV col0 FROM tab1
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT + ( col1 + - 54 ) / col0 FROM tab1
----
-9
0
0

query I rowsort
SELECT DISTINCT + ( + tab0.col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT col1 + + 84 AS col0 FROM tab2 AS cor0
----
101
115
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT - col1 DIV - 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT - col1 / - 64 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + 25 FROM tab0 AS cor0
----
-61
-66
-72

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4336
SELECT ALL cor1.col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL cor1.col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 30 * + tab1.col2 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
1620
1710
2880

query I rowsort
SELECT ( ( + tab2.col1 ) * col0 ) FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab1, tab1 AS cor0
----
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4341
SELECT CAST( + 96 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-4341
SELECT CAST ( + 96 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL - col2 * 60 AS col2 FROM tab1
----
-3240
-3420
-5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * + tab0.col2 col0 FROM tab0
----
2277
5658
69

query I rowsort
SELECT DISTINCT 3 - + col2 * col1 * + tab1.col2 AS col0 FROM tab1
----
-119805
-32487
-75813

query I rowsort
SELECT - + 82 AS col1 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4346
SELECT ALL - 9 * - col0 + CAST( NULL AS SIGNED ) / 17 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - 9 * - col0 + CAST ( NULL AS INTEGER ) / 17 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL - - 69 AS col0 FROM tab0 cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * - ( + 52 ) col1 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT ALL - col2 * col2 + + col1 - + 16 AS col1 FROM tab1 AS cor0
----
-2906
-3255
-9219

query I rowsort
SELECT + 38 * col0 AS col2 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT DISTINCT ( col2 ) * col1 * col2 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4353
SELECT ALL 23 DIV col0 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL 23 / col0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - 34 * 78 + col2 FROM tab2 AS cor0
----
-18537
-206830
-209470

query I rowsort
SELECT DISTINCT cor0.col0 * - 41 FROM tab1, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
-123
-2624
-3280

query I rowsort
SELECT 65 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL col1 * - col1 + ( col2 ) FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT - col1 + - 90 AS col1 FROM tab0 AS cor0
----
-176
-181
-187

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT cor0.col1 + - 17 FROM tab0 AS cor0
----
69
74
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4361
SELECT DISTINCT - col1 + ( + col1 ) * col1 DIV col0 FROM tab0 cor0
----
171
2
222

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - col1 + ( + col1 ) * col1 / col0 FROM tab0 cor0
----
171
2
222

query I rowsort
SELECT ALL - cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - 0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT - tab0.col0 - + col1 DIV tab0.col2 FROM tab0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-4364
SELECT - tab0.col0 - + col1 / tab0.col2 FROM tab0
----
-132
-26
-90

query I rowsort
SELECT ALL col0 + + 27 AS col0 FROM tab1 AS cor0
----
107
30
91

query I rowsort
SELECT + col1 * + col2 + col2 * - 43 AS col0 FROM tab1 AS cor0
----
-1881
-2880
-918

query I rowsort
SELECT DISTINCT + 62 * + col2 AS col0 FROM tab0 AS cor0
----
2046
5084
62

query I rowsort
SELECT - col1 + - col0 * col0 FROM tab2
----
-6143
-6258
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT + col1 DIV col0 + + col1 * - 74 AS col2 FROM tab1 AS cor0
----
-1916
-740
-962

skipif mysql # not compatible
query I rowsort label-4369
SELECT + col1 / col0 + + col1 * - 74 AS col2 FROM tab1 AS cor0
----
-1916
-740
-962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col1 ) + col0 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - 46 * + col1 * - tab1.col2 FROM tab1
----
26220
57408
64584

query I rowsort
SELECT ALL ( ( + col2 ) + - col0 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL - + col1 + + col1 - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + 89 * cor0.col0 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT - 28 + col2 AS col1 FROM tab2
----
-1
-2
10

query I rowsort
SELECT 81 + - col1 FROM tab0
----
-10
-16
-5

query I rowsort
SELECT + 9 AS col0 FROM tab2
----
9
9
9

query I rowsort
SELECT DISTINCT 50 * ( + col0 ) + 97 AS col2 FROM tab0
----
1297
1847
4547

query I rowsort
SELECT DISTINCT ( - 1 ) + - col2 + 89 FROM tab0
----
55
6
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4380
SELECT DISTINCT ( - col2 * col0 + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT ( - col2 * col0 + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * col2 * - col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + + col1 * + col2 + - col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - + col0 * col2 + - ( col1 * 41 ) FROM tab2 AS cor0
----
-1460
-3699
-4447

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + 88 * - col1 + ( col1 ) * + col0 - - 34 FROM tab0
----
-5107
-5470
125

query I rowsort
SELECT ALL col1 + + col0 * col0 + col1 AS col2 FROM tab2 AS cor0
----
111
6202
6275

query I rowsort
SELECT ALL - cor0.col1 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL - col1 * 47 AS col0 FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT + col0 * - col2 * - 4 + col1 FROM tab2 AS cor0
----
12025
787
8171

query I rowsort
SELECT - col0 + col2 * - col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT col0 + - 35 FROM tab0
----
-11
0
54

query I rowsort
SELECT col0 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - - col1 * 12 + + col2 FROM tab2 cor0
----
242
399
734

query I rowsort
SELECT ALL - 87 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - col2 * col0 + - col2 AS col1 FROM tab1
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT col1 + + 58 * - col1 FROM tab1
----
-1482
-570
-741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4398
SELECT + CAST( NULL AS SIGNED ) + - 46 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4398
SELECT + CAST ( NULL AS INTEGER ) + - 46 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - cor0.col2 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - + 7 * col2 FROM tab1 AS cor0
----
-378
-399
-672

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL ( - col2 ) + ( col0 + col1 ) FROM tab1 AS cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col0 FROM tab2
----
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT - 60 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT - 60 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 + - col1 * 45 FROM tab2 AS cor0
----
-1422
-2681
-803

query I rowsort
SELECT - + 88 AS col2 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - - col2 * cor0.col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT DISTINCT - - 71 * col2 + ( + 47 ) AS col2 FROM tab2 AS cor0
----
1893
1964
2745

query I rowsort
SELECT tab1.col2 - - tab1.col0 FROM tab1
----
121
176
57

query I rowsort
SELECT + col0 * + tab1.col0 * col2 + col0 AS col1 FROM tab1
----
233536
489
614480

query I rowsort
SELECT ALL - 36 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT DISTINCT + col2 * col2 + + col0 AS col1 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL - - col1 * - col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL 93 AS col2 FROM tab0 cor0
----
93
93
93

query I rowsort
SELECT - + col0 * + cor0.col2 + col1 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT ALL + ( tab0.col0 ) + tab0.col0 * - col0 AS col2 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT col0 * + col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 54 * col0 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT DISTINCT + - 1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - 73 AS col1 FROM tab1
----
-73
-73
-73

query I rowsort
SELECT ALL - + cor0.col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - col1 * + tab2.col1 * - ( col1 ) AS col0 FROM tab2
----
205379
29791
4913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT ALL col1 * CAST( 65 AS SIGNED ) FROM tab0 AS cor0
----
5590
5915
6305

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL col1 * CAST ( 65 AS INTEGER ) FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT ALL - 38 + cor0.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1dbde497b09828b0b945e244a9d95546

query I rowsort
SELECT - cor0.col0 + - ( col1 ) - - col0 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - + col0 + 79 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-4269
-4567
-7664

query I rowsort
SELECT - col2 + ( + 92 ) FROM tab0 AS cor0
----
10
59
91

query I rowsort
SELECT + + col1 * - 10 + - 83 * col2 AS col2 FROM tab0 AS cor0
----
-1053
-3599
-7716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 15 + - col0 * col1 * col2 col1 FROM tab1 AS cor0
----
-3402
-35625
-98400

query I rowsort
SELECT col0 * - 86 FROM tab1 cor0
----
-258
-5504
-6880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4431
SELECT + + col0 + CAST( col2 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-4431
SELECT + + col0 + CAST ( col2 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col2 * col1 + - col0 - - col2 AS col2 FROM tab1 AS cor0
----
1264
1455
563

query I rowsort
SELECT DISTINCT 99 * col0 AS col1 FROM tab2
----
693
7722
7821

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94

query I rowsort
SELECT ALL - col1 - 11 * + col0 AS col1 FROM tab0 AS cor0
----
-1070
-350
-482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * col1 col2 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT ALL + 67 * 99 AS col2 FROM tab1 cor0
----
6633
6633
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 68 * col0 + + cor0.col0 col2 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT col0 * 53 AS col2 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - ( col1 ) * - col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - + 43 * col2 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT DISTINCT ( 35 ) * col0 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT DISTINCT + col1 * 27 + col2 + col2 FROM tab0 cor0
----
2388
2621

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT DISTINCT - - 54 DIV col1 - col0 AS col2 FROM tab2 AS cor0
----
-6
-76
-78

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - - 54 / col1 - col0 AS col2 FROM tab2 AS cor0
----
-6
-76
-78

query I rowsort
SELECT ALL - 10 * + col0 FROM tab0 cor0
----
-240
-350
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab0.col2 ) col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + 49 * + col1 AS col2 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT 52 + cor0.col2 FROM tab0 AS cor0
----
134
53
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT + col0 DIV + 15 AS col0 FROM tab1 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-4451
SELECT + col0 / + 15 AS col0 FROM tab1 AS cor0
----
0
4
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4452
SELECT + CAST( NULL AS SIGNED ) + 49 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT + CAST ( NULL AS INTEGER ) + 49 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + 92 * + col2 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT ALL 39 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-150
-1989
-2963

query I rowsort
SELECT col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + 83 * col1 AS col2 FROM tab0 AS cor0
----
7138
7553
8051

onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT ALL + + CAST( col0 AS SIGNED ) DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + + CAST ( col0 AS INTEGER ) / - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4458
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + col0 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - + CAST ( NULL AS REAL ) + col0 * col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4459
SELECT - - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4459
SELECT - - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4460
SELECT DISTINCT - CAST( - cor0.col1 AS SIGNED ) * - col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT - CAST ( - cor0.col1 AS INTEGER ) * - col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + col2 + - col0 + col0 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - ( col2 ) * ( - col2 ) + col2 * col1 - col2 * - cor0.col2 * ( - 35 + - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-60324
-819590
28

query I rowsort
SELECT + 23 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2, tab2 AS cor3
----
13122 values hashing to 3b386f27499c10267127d126936398fa

query I rowsort
SELECT - 12 * + col1 AS col2 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT ALL col0 * + col1 + + 65 FROM tab0 AS cor0
----
2129
3460
8164

query I rowsort
SELECT 36 + cor0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 01eea2942002ddd5d9758b49ad8cc2af

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4468
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT - col1 DIV + ( col0 * cor0.col0 ) FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT - col1 / + ( col0 * cor0.col0 ) FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT - + col0 + cor0.col1 * col2 + - col2 FROM tab2 AS cor0
----
1430
529
803

query I rowsort
SELECT 7 * + 96 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2f886f2998b1bbd63c859f78ab4fab90

query I rowsort
SELECT ALL - col1 + - 31 FROM tab0
----
-117
-122
-128

query I rowsort
SELECT - + 55 * 46 AS col1 FROM tab2 AS cor0
----
-2530
-2530
-2530

query I rowsort
SELECT col2 * ( + col1 ) FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT col1 + col0 DIV + 28 FROM tab2 AS cor0
----
19
31
61

skipif mysql # not compatible
query I rowsort label-4475
SELECT col1 + col0 / + 28 FROM tab2 AS cor0
----
19
31
61

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - col2 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col1 * + cor0.col0 col2 FROM tab1 AS cor0
----
237
41024
83280

query I rowsort
SELECT DISTINCT - col1 + 26 * + col2 AS col2 FROM tab0 AS cor0
----
-71
2041
772

query I rowsort
SELECT DISTINCT + 88 + - ( col1 ) + col2 FROM tab0 AS cor0
----
-8
35
79

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 5 FROM tab0, tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT 44 * + col1 + - 26 + 84 AS col1 FROM tab0
----
3842
4062
4326

query I rowsort
SELECT ALL - col0 * col2 + tab0.col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT 46 + + tab2.col2 FROM tab2
----
72
73
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT col2 * col0 + + ( 43 ) DIV col2 + + ( + ( - col1 ) ) AS col0 FROM tab1
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-4486
SELECT col2 * col0 + + ( 43 ) / col2 + + ( + ( - col1 ) ) AS col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT + col1 * tab0.col2 * col2 - - 41 FROM tab0
----
138
611925
93695

onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT DISTINCT col2 + + col0 DIV + 18 FROM tab2 AS cor0
----
27
30
42

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT col2 + + col0 / + 18 FROM tab2 AS cor0
----
27
30
42

query I rowsort
SELECT ALL - + col2 + cor0.col0 - col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - 12 * col0 + col1 FROM tab2 AS cor0
----
-53
-877
-931

onlyif mysql # use DIV operator for integer division
query I rowsort label-4491
SELECT - + col1 DIV + cor0.col1 - - col1 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4491
SELECT - + col1 / + cor0.col1 - - col1 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 40 * col2 + col1 col0 FROM tab2 AS cor0
----
25857
33511
61419

query I rowsort
SELECT DISTINCT + - col2 + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - + col0 * + 93 FROM tab0 cor0
----
-2232
-3255
-8277

query I rowsort
SELECT ALL + col1 + - col0 * 57 FROM tab0 AS cor0
----
-1282
-1898
-4982

query I rowsort
SELECT DISTINCT + col2 * + col0 + 72 FROM tab0 AS cor0
----
107
7370
864

query I rowsort
SELECT + col0 * + col2 * + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT ALL + - col1 + col1 * col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - col2 * col0 + 42 AS col1 FROM tab0 AS cor0
----
-7256
-750
7

query I rowsort
SELECT DISTINCT - + col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( col0 + + col1 ) * + ( col0 + col0 ) col1 FROM tab0 AS cor0
----
2915640
454080
896280

query I rowsort
SELECT col1 + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + 98 - col1 FROM tab1 AS cor0
----
98

query I rowsort
SELECT ALL col0 * - col1 + - col0 AS col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + 68 + col2 FROM tab0
----
101
150
69

query I rowsort
SELECT col2 * - col1 * cor0.col1 FROM tab0 cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + col0 * col1 col2 FROM tab0
----
14823
3153
3396

query I rowsort
SELECT ALL - 2 * col1 + - tab1.col1 AS col1 FROM tab1
----
-30
-39
-78

query I rowsort
SELECT ALL + - col0 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + cor0.col2 + + ( + col0 ) FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 95 + - col0 col0 FROM tab0 cor0
----
8146
8556
9180

query I rowsort
SELECT ALL + cor0.col1 + cor0.col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + 17 * 18 FROM tab0 AS cor0
----
306
306
306

onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT ALL - + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL - + col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) + - 72 col2 FROM tab1 AS cor0
----
-82
-85
-98

query I rowsort
SELECT 24 * - col1 - ( + col0 ) FROM tab2 AS cor0
----
-1494
-487
-751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4519
SELECT - col0 * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-4519
SELECT - col0 * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4520
SELECT DISTINCT - + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 + - 57 FROM tab2 AS cor0
----
-50
21
22

query I rowsort
SELECT ALL - 5 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT ALL + col0 * - 12 FROM tab0 AS cor0
----
-1068
-288
-420

query I rowsort
SELECT ALL - col0 + + col2 * col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - 13 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT - ( - col2 ) * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col1 * + 48 FROM tab0 AS cor0
----
4128
4368
4656

query I rowsort
SELECT DISTINCT - + ( 58 ) + - col0 AS col0 FROM tab0 AS cor0
----
-147
-82
-93

query I rowsort
SELECT ALL - ( + col0 ) * + col0 + + ( 57 ) * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-12418
-268398
-82792

query I rowsort
SELECT - - ( + col0 ) * - col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT 57 * - ( - col1 ) FROM tab1 AS cor0
----
1482
570
741

onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT - col0 + - col2 DIV + col2 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4532
SELECT - col0 + - col2 / + col2 FROM tab1
----
-4
-65
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT CAST( + 81 AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif mysql # not compatible
query I rowsort label-4533
SELECT CAST ( + 81 AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL col1 * 47 AS col2 FROM tab0
----
4042
4277
4559

onlyif mysql # use DIV operator for integer division
query I rowsort label-4535
SELECT + cor0.col1 + - 36 * col1 DIV col1 FROM tab2 AS cor0
----
-19
-5
23

skipif mysql # not compatible
query I rowsort label-4535
SELECT + cor0.col1 + - 36 * col1 / col1 FROM tab2 AS cor0
----
-19
-5
23

query I rowsort
SELECT - 27 * 18 FROM tab1 AS cor0
----
-486
-486
-486

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 98 col1 FROM tab0
----
2352
3430
8722

query I rowsort
SELECT - - ( col1 ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - + col1 - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT + 75 * col1 AS col2 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT + 69 AS col0 FROM tab0
----
69
69
69

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ( - 22 ) AS col1 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT ALL col2 * - 37 FROM tab0
----
-1221
-3034
-37

query I rowsort
SELECT + ( - col2 * tab0.col2 ) FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4547
SELECT DISTINCT col1 DIV - 8 FROM tab2
----
-2
-3
-7

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT col1 / - 8 FROM tab2
----
-2
-3
-7

query I rowsort
SELECT - col0 + col2 AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + tab2.col2 + - col1 * col2 AS col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col2 * col0 + - 88 FROM tab0
----
-53
704
7210

query I rowsort
SELECT + + col0 * ( - col1 ) AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT col0 * cor0.col2 + + col2 DIV col1 FROM tab2 AS cor0
----
189
2028
3004

skipif mysql # not compatible
query I rowsort label-4552
SELECT col0 * cor0.col2 + + col2 / col1 FROM tab2 AS cor0
----
189
2028
3004

query I rowsort
SELECT 59 * - col1 AS col0 FROM tab2
----
-1003
-1829
-3481

query I rowsort
SELECT col2 * col2 + 24 AS col0 FROM tab0
----
1113
25
6748

query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + col0 * 88 * - ( + col2 ) FROM tab2
----
-16632
-178464
-264176

query I rowsort
SELECT col1 + col0 * - col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + - col0 * 2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - col0 + - 10 FROM tab0 AS cor0
----
-34
-45
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4560
SELECT ALL - col0 DIV + 23 + col1 col0 FROM tab1 cor0
----
10
26
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - col0 / + 23 + col1 col0 FROM tab1 cor0
----
10
26
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + + ( 66 + - col0 ) * - cor0.col2 col0 FROM tab0 AS cor0
----
-1410
-66
1797

onlyif mysql # use DIV operator for integer division
query I rowsort label-4562
SELECT + col2 DIV col1 + ( 53 ) FROM tab2
----
53
53
55

skipif mysql # not compatible
query I rowsort label-4562
SELECT + col2 / col1 + ( 53 ) FROM tab2
----
53
53
55

query I rowsort
SELECT + tab2.col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 63 - col2 * - col2 AS col1 FROM tab2
----
1507
739
792

query I rowsort
SELECT 59 + col2 AS col0 FROM tab2 AS cor0
----
85
86
97

query I rowsort
SELECT DISTINCT - col1 - + col0 * - 45 AS col2 FROM tab2 AS cor0
----
284
3451
3538

query I rowsort
SELECT col1 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - + col2 * 39 - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1073
-1084
-1499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + + 43 col2 FROM tab0 AS cor0
----
-46
19
8

query I rowsort
SELECT ALL + cor0.col0 * ( + cor0.col2 ) AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4571
SELECT DISTINCT col0 + col2 + 69 DIV col2 AS col2 FROM tab1 AS cor0
----
122
176
58

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT col0 + col2 + 69 / col2 AS col2 FROM tab1 AS cor0
----
122
176
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT DISTINCT + cor0.col0 DIV 65 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-31
-58

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + cor0.col0 / 65 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-31
-58

query I rowsort
SELECT ALL col0 * - 67 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-252
-3950
-624

query I rowsort
SELECT - - col1 + + col0 * col1 AS col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col2 * col2 * + col1 + + col0 FROM tab2 AS cor0
----
22606
24627
39962

query I rowsort
SELECT ALL - 62 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT DISTINCT ( + col2 + - col2 ) AS col2 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT DISTINCT - + col0 * 40 + col1 DIV + col1 FROM tab1 cor0
----
-119
-2559
-3199

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT - + col0 * 40 + col1 / + col1 FROM tab1 cor0
----
-119
-2559
-3199

query I rowsort
SELECT ALL - col2 * cor0.col2 + - ( + col1 ) + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-2763
-4463
-949

query I rowsort
SELECT DISTINCT col2 * + 27 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT + - 99 + - col2 FROM tab1 AS cor0
----
-153
-156
-195

query I rowsort
SELECT - 36 + + 83 AS col1 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4583
SELECT + CAST( + 24 AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
240
312
624

skipif mysql # not compatible
query I rowsort label-4583
SELECT + CAST ( + 24 AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
240
312
624

query I rowsort
SELECT + - 94 + + 61 * col0 AS col2 FROM tab2 AS cor0
----
333
4664
4725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 + cor0.col0 * + ( - 95 ) col1 FROM tab0 AS cor0
----
-15753
-3072
-3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-4586
SELECT col1 + col1 + + cor0.col2 DIV - col1 FROM tab2 cor0
----
118
32
62

skipif mysql # not compatible
query I rowsort label-4586
SELECT col1 + col1 + + cor0.col2 / - col1 FROM tab2 cor0
----
118
32
62

query I rowsort
SELECT - 73 + col2 AS col2 FROM tab0 cor0
----
-40
-72
9

query I rowsort
SELECT - tab1.col1 * - tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT - + col0 + ( + cor0.col2 ) - - 77 FROM tab2 cor0
----
25
36
97

query I rowsort
SELECT DISTINCT cor0.col0 * - 84 AS col0 FROM tab0 AS cor0
----
-2016
-2940
-7476

query I rowsort
SELECT ALL + ( col2 ) * + col1 * - col0 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT DISTINCT - cor0.col1 DIV col1 + col1 * 38 + + col0 * col2 FROM tab1 AS cor0
----
1149
4027
8173

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT - cor0.col1 / col1 + col1 * 38 + + col0 * col2 FROM tab1 AS cor0
----
1149
4027
8173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 * - col2 col1 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT ALL - 62 DIV + col0 FROM tab1 AS cor0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - 62 / + col0 FROM tab1 AS cor0
----
-20
0
0

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ALL + 51 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
-144738
-380562
-4947

query I rowsort
SELECT ALL 89 * col2 AS col1 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT + + 83 * col0 + col0 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT - col0 * + col0 + col0 * + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col0 * col1 + - 22 AS col2 FROM tab0 AS cor0
----
2042
3373
8077

query I rowsort
SELECT ALL 19 * col0 AS col2 FROM tab0 AS cor0
----
1691
456
665

onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT - ( + col0 ) DIV col0 + col0 col2 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4602
SELECT - ( + col0 ) / col0 + col0 col2 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * col2 col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + + cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT cor0.col0 * cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + col0 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL + col2 + 15 * - col1 FROM tab2
----
-217
-438
-859

query I rowsort
SELECT ALL - - cor0.col0 + + col1 * ( + col0 * + col2 + - 30 * - 28 ) AS col0 FROM tab2 AS cor0
----
169290
31906
65393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - col1 + + col2 * - 87 AS col1 FROM tab2 cor0
----
-2321
-2380
-3323

query I rowsort
SELECT + + cor0.col1 * col1 * 63 + - col0 AS col2 FROM tab2 AS cor0
----
18128
219225
60536

query I rowsort
SELECT ALL 48 - col2 FROM tab0
----
-34
15
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4613
SELECT DISTINCT ( - col1 ) - - col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT ( - col1 ) - - col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 * col0 + tab1.col2 * - col1 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT ALL ( col2 ) * - col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + + col0 * col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL + 34 AS col0 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT ALL - - 46 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT ALL - CAST( 54 AS SIGNED ) + + col2 DIV ( col2 ) AS col1 FROM tab1 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - CAST ( 54 AS INTEGER ) + + col2 / ( col2 ) AS col1 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL + - 13 * 17 AS col0 FROM tab2 AS cor0
----
-221
-221
-221

query I rowsort
SELECT + 12 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL - 38 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT - 30 + col0 AS col1 FROM tab1
----
-27
34
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT DISTINCT col2 DIV - col0 + col2 AS col1 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT col2 / - col0 + col2 AS col1 FROM tab1
----
36
57
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4625
SELECT col0 + 8 * tab2.col1 * CAST( - col0 AS SIGNED ) + col2 * col2 AS col1 FROM tab2
----
-1000
-36062
-9221

skipif mysql # not compatible
query I rowsort label-4625
SELECT col0 + 8 * tab2.col1 * CAST ( - col0 AS INTEGER ) + col2 * col2 AS col1 FROM tab2
----
-1000
-36062
-9221

onlyif mysql # use DIV operator for integer division
query I rowsort label-4626
SELECT tab2.col1 DIV 79 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4626
SELECT tab2.col1 / 79 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 79 - + col2 AS col0 FROM tab2
----
-105
-106
-117

query I rowsort
SELECT ALL + 37 + - col1 FROM tab1 AS cor0
----
11
24
27

query I rowsort
SELECT DISTINCT - + 76 * + 24 AS col0 FROM tab0 AS cor0
----
-1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT - col2 + col2 DIV - col2 AS col0 FROM tab1 cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-4631
SELECT - col2 + col2 / - col2 AS col0 FROM tab1 cor0
----
-55
-58
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4632
SELECT - CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4632
SELECT - CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col2 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL - 33 + - 17 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4635
SELECT - + 94 DIV col2 + + col0 AS col0 FROM tab0 AS cor0
----
-59
22
88

skipif mysql # not compatible
query I rowsort label-4635
SELECT - + 94 / col2 + + col0 AS col0 FROM tab0 AS cor0
----
-59
22
88

query I rowsort
SELECT - 54 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col1 FROM tab2, tab0 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * - col0 col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 90 * col2 + col2 FROM tab0
----
-2937
-7298
-89

query I rowsort
SELECT ( 37 + - col2 ) FROM tab2
----
-1
10
11

query I rowsort
SELECT DISTINCT + ( + 12 ) * - col0 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT - - 51 * - 9 FROM tab1 AS cor0
----
-459
-459
-459

query I rowsort
SELECT - - 82 FROM tab0 cor0
----
82
82
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4644
SELECT + - CAST( 61 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-120
-78
-92

skipif mysql # not compatible
query I rowsort label-4644
SELECT + - CAST ( 61 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-120
-78
-92

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1 cor0
----
-89

query I rowsort
SELECT ALL - + 3 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
177
51
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + tab0.col2 * - col0 + col2 col0 FROM tab0
----
-131
-7307
-845

query I rowsort
SELECT + 12 + col2 * + col0 FROM tab1
----
174
3660
7692

onlyif mysql # use DIV operator for integer division
query I rowsort label-4649
SELECT DISTINCT - col0 + col2 DIV + tab0.col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT - col0 + col2 / + tab0.col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT + tab1.col1 * tab1.col2 + 36 AS col2 FROM tab1
----
1284
1440
606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT + - col1 * + col1 + - 84 FROM tab1 cor0
----
-184
-253
-760

query I rowsort
SELECT ALL + col0 * col2 + - 4 FROM tab0 AS cor0
----
31
7294
788

query I rowsort
SELECT DISTINCT col1 - col2 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + ( - col0 ) + + 66 FROM tab0 AS cor0
----
-23
31
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4656
SELECT ALL + col0 DIV + col2 + ( - 33 ) + col1 * - 86 FROM tab1 AS cor0
----
-1151
-2269
-892

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + col0 / + col2 + ( - 33 ) + col1 * - 86 FROM tab1 AS cor0
----
-1151
-2269
-892

query I rowsort
SELECT 16 * - col1 AS col1 FROM tab1
----
-160
-208
-416

query I rowsort
SELECT + - cor0.col1 * - col2 * col2 + - col1 FROM tab0 AS cor0
----
0
611793
93568

query I rowsort
SELECT ALL - col2 + - ( 40 ) * col0 AS col1 FROM tab2 AS cor0
----
-307
-3146
-3198

query I rowsort
SELECT DISTINCT col0 * - col0 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-118824
-49503
-720729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT DISTINCT + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + col1 / + col2 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT DISTINCT - col2 + + 47 DIV col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - col2 + + 47 / col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + col0 + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL col0 - 59 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
-39806
-43004
-85117

query I rowsort
SELECT col1 + + col0 * ( + cor0.col0 ) FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + col1 - 70 FROM tab1 AS cor0
----
-44
-57
-60

query I rowsort
SELECT col2 * + col0 - 34 FROM tab1
----
128
3614
7646

query I rowsort
SELECT - tab1.col0 - cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 41d5a9bd2085c265bfcaf0f8facfa543

query I rowsort
SELECT ALL tab1.col2 * col2 + col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT 48 + - col0 AS col1 FROM tab2
----
-30
-31
41

query I rowsort
SELECT DISTINCT + col1 + col2 * - 44 AS col0 FROM tab2
----
-1085
-1157
-1655

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4674
SELECT - col2 + CAST( NULL AS DECIMAL ) * - 13 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT - col2 + CAST ( NULL AS REAL ) * - 13 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 10 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - + col1 * ( - col0 ) FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + 12 - + cor0.col2 FROM tab0, tab0 AS cor0
----
-21
-70
11

query I rowsort
SELECT - 50 * - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 44bc5334d6e7adab2bd9631469888c1e

query I rowsort
SELECT - col0 * 5 + col0 * col0 FROM tab1 AS cor0
----
-6
3776
6000

query I rowsort
SELECT - cor0.col2 * 29 * - col1 AS col1 FROM tab2 AS cor0
----
18734
24273
44486

query I rowsort
SELECT + 58 * col1 AS col0 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ( - 28 ) AS col2 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4683
SELECT + - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4683
SELECT + - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - 24 FROM tab0, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT - col2 * tab1.col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 95 FROM tab2, tab0 AS cor0
----
-95

query I rowsort
SELECT ALL + + 16 * cor0.col0 + + col2 * ( col2 ) FROM tab2 AS cor0
----
1924
2708
841

query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 54 * 25 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to db26b691879db31e9519cd3ccf28d1fb

query I rowsort
SELECT + cor0.col1 * col1 + 15 + + col0 FROM tab2 AS cor0
----
3574
383
983

query I rowsort
SELECT + col0 + col2 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - 37 * + col1 AS col1 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT ( col0 ) * + cor0.col2 * col2 + + col0 AS col0 FROM tab0 cor0
----
26160
598525
70

query I rowsort
SELECT + - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT 28 * + col2 + col2 - + col1 * col1 FROM tab2 AS cor0
----
-178
-2727
813

query I rowsort
SELECT + cor0.col1 + cor0.col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL col2 * 18 + + col1 * col1 * + col1 + col2 * - 10 AS col1 FROM tab2
----
205587
30007
5217

onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT ALL ( + 89 ) DIV - col2 + col1 FROM tab0
----
8
84
90

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL ( + 89 ) / - col2 + col1 FROM tab0
----
8
84
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4699
SELECT - col0 DIV + col1 AS col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT - col0 / + col1 AS col1 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col0 col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - 3 FROM tab1, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT cor0.col2 + cor0.col2 * 81 * + 77 - + col2 AS col0 FROM tab2 AS cor0
----
162162
168399
237006

query I rowsort
SELECT 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + col0 * col2 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-69
3456
5360

query I rowsort
SELECT DISTINCT + tab2.col0 + tab2.col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + col1 * - col2 + col2 AS col1 FROM tab2
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT DISTINCT col1 DIV - cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT col1 / - cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT ALL - col0 + col0 - - col2 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col0 * col1 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT + col1 * + col0 + + col2 + cor0.col2 AS col0 FROM tab1 cor0
----
1232
186
754

query I rowsort
SELECT DISTINCT + col0 + + col1 + + cor0.col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT cor0.col2 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + col0 * cor0.col1 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - - ( + col0 ) * + col1 + + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + 88 - col2 FROM tab1 AS cor0
----
-8
31
34

query I rowsort
SELECT + col1 * - col1 - + col2 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT + col1 - col1 * cor0.col1 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT - - col0 * - col2 - - cor0.col2 AS col1 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT + col0 + col0 DIV col1 + + col2 FROM tab1 AS cor0
----
127
182
57

skipif mysql # not compatible
query I rowsort label-4721
SELECT + col0 + col0 / col1 + + col2 FROM tab1 AS cor0
----
127
182
57

query I rowsort
SELECT col2 * + col1 + + col1 * col1 FROM tab2
----
1798
5015
935

query I rowsort
SELECT - col1 * col0 * tab0.col1 AS col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col1 - + col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL - col0 * + tab1.col1 FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col0 col2 FROM tab2
----
1264
210
4524

query III rowsort
SELECT * FROM tab0 WHERE - col1 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT DISTINCT + col0 DIV col2 FROM tab1 WHERE NOT ( col1 * col2 ) < ( col1 )
----
0
1

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT + col0 / col2 FROM tab1 WHERE NOT ( col1 * col2 ) < ( col1 )
----
0
1

query I rowsort
SELECT col1 * - col2 - col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT ALL col1 * - col0 + + tab2.col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + col0 * col2 - + col1 * + col0 FROM tab1
----
3008
6640
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4733
SELECT + col0 * col2 + - col1 DIV - col0 FROM tab0
----
37
7299
795

skipif mysql # not compatible
query I rowsort label-4733
SELECT + col0 * col2 + - col1 / - col0 FROM tab0
----
37
7299
795

query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

query I rowsort
SELECT DISTINCT col0 + tab0.col1 + col0 * col2 AS col0 FROM tab0
----
167
7478
902

onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT ALL col1 + + col0 + col0 DIV col1 AS col2 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL col1 + + col0 + col0 / col1 AS col2 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT ALL tab2.col0 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL tab2.col0 / - col0 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT + tab1.col1 DIV - col0 + col1 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-4738
SELECT + tab1.col1 / - col0 + col1 FROM tab1
----
10
13
18

query I rowsort
SELECT - col2 * + col1 + col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT ALL + + 45 * col2 + CAST ( - col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( col1 * tab2.col1 / col2 - - col2 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * + col2 + col0 col1 FROM tab2
----
22606
24627
39962

query I rowsort
SELECT ALL - col0 + col0 * + col1 + + col0 * + col1 AS col0 FROM tab0
----
16109
4104
6755

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT tab0.col1 + + col0 NOT BETWEEN ( + col0 ) AND col2
----

query I rowsort
SELECT + col2 * + col2 + - col2 AS col2 FROM tab1 WHERE - col0 * - col0 * col1 + + col0 = - col0 * col0
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NULL IN ( col2 + col0 * - col0 / - col0 )
----

query I rowsort
SELECT ALL - col1 + - col0 + + col1 * col1 FROM tab2
----
193
3344
923

query I rowsort
SELECT + col1 * col1 + col0 * - col2 + col0 AS col1 FROM tab0
----
1072
6628
9409

query I rowsort
SELECT ALL col1 * - tab2.col1 AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL + col0 + + col1 + col2 * col0 * tab0.col2 AS col0 FROM tab0
----
167
26246
598616

query I rowsort
SELECT ALL col0 * tab0.col0 + col0 + col0 AS col2 FROM tab0
----
1295
624
8099

query I rowsort
SELECT DISTINCT + col1 * + col0 * col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT cor0.col0 * col2 * col0 FROM tab1 AS cor0
----
233472
486
614400

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + cor0.col0 / col0 <= col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL col1 * col0 * col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT col1 + cor0.col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( cor0.col0 * col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col1 > ( NULL )
----

query I rowsort
SELECT ALL - col0 * col2 AS col0 FROM tab1
----
-162
-3648
-7680

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + col1 IN ( tab0.col0 * col1 + + tab0.col2 + - col0 * + tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - col0 * col1 = NULL
----

query I rowsort
SELECT + col1 + col0 * col1 - + tab1.col0 FROM tab1
----
101
586
973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT tab0.col2 * - col0 - col1 FROM tab0
----
-132
-7389
-878

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col0 * - col1 )
----

query I rowsort
SELECT col1 + - col1 + tab1.col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT - col0 DIV tab2.col1 AS col0 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4767
SELECT - col0 / tab2.col1 AS col0 FROM tab2
----
-1
-4
0

query I rowsort
SELECT col0 / tab0.col2 FROM tab0 WHERE NOT - col2 / col2 BETWEEN - col0 AND col0
----

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab2 AS cor0 WHERE NOT + col2 = ( + col1 )
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4770
SELECT ALL col2 * col1 + col2 * col0 DIV col2 AS col1 FROM tab1
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL col2 * col1 + col2 * col0 / col2 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT col1 * col1 - col2 AS col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT + col0 * col2 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + + 31 AS col1 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT ALL - col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL col0 + col0 + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
192
240
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 * 70 col2 FROM tab1 AS cor0
----
-39900
-87360
-98280

query I rowsort
SELECT + col1 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT 18 + col1 AS col1 FROM tab2
----
35
49
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4780
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4780
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4781
SELECT DISTINCT 24 DIV tab2.col0 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT 24 / tab2.col0 FROM tab2
----
0
3

query I rowsort
SELECT + 29 * tab0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b206d80429a622020fb024c43230ba42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT ( col0 ) DIV col0 + - 28 - + col1 FROM tab0 AS cor0
----
-113
-118
-124

skipif mysql # not compatible
query I rowsort label-4783
SELECT ( col0 ) / col0 + - 28 - + col1 FROM tab0 AS cor0
----
-113
-118
-124

query I rowsort
SELECT + + 61 + col0 FROM tab2 cor0
----
139
140
68

query I rowsort
SELECT + col1 + ( col0 ) * tab1.col0 + col1 * + col1 AS col0 FROM tab1
----
4206
6582
711

query I rowsort
SELECT DISTINCT + col2 * - ( + col0 ) + - col0 FROM tab1
----
-165
-3712
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4787
SELECT + + CAST( - tab0.col1 AS SIGNED ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif mysql # not compatible
query I rowsort label-4787
SELECT + + CAST ( - tab0.col1 AS INTEGER ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT ALL CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT 31 * col2 * + col0 + - col0 DIV - col0 FROM tab1
----
113089
238081
5023

skipif mysql # not compatible
query I rowsort label-4791
SELECT 31 * col2 * + col0 + - col0 / - col0 FROM tab1
----
113089
238081
5023

query I rowsort
SELECT ALL + col1 * + 19 + - col0 * 87 FROM tab0 AS cor0
----
-1202
-454
-6014

query I rowsort
SELECT ALL + + ( 22 ) FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT + col2 * - 57 + + col1 AS col1 FROM tab0 AS cor0
----
-1795
-4583
40

query I rowsort
SELECT ALL ( cor0.col1 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT ALL + col1 + + cor0.col0 DIV cor0.col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + col1 + + cor0.col0 / cor0.col2 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT ALL 49 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT + tab0.col1 AS col0 FROM tab0, tab1, tab1 cor0
----
86
91
97

query I rowsort
SELECT ( - 72 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT col0 * ( 88 ) AS col2 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT - ( 86 ) - col0 AS col0 FROM tab2 cor0
----
-164
-165
-93

query I rowsort
SELECT - 30 * - col0 + col1 FROM tab1 AS cor0
----
116
1930
2413

query I rowsort
SELECT 25 - - col2 AS col2 FROM tab2 cor0
----
51
52
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0, tab0 cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4805
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0, tab0 cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + col2 * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 * col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col0 * - col2 + + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT + + col0 * - 96 * 32 + col1 FROM tab1 AS cor0
----
-196598
-245747
-9190

query I rowsort
SELECT ALL - col1 + col0 * - 9 AS col1 FROM tab0 AS cor0
----
-302
-412
-892

query I rowsort
SELECT DISTINCT col1 + + 92 * + 38 FROM tab1 AS cor0
----
3506
3509
3522

onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT DISTINCT - col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - col1 / - col0 AS col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT ALL + + col1 * 29 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT DISTINCT - - cor1.col0 * - cor1.col0 + cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0a03eb2fcda23872dcd9a57c27fbe57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 + col2 - - col2 col2 FROM tab1
----
111
178
272

query I rowsort
SELECT ALL + col1 + + 13 * ( + cor0.col1 + + col1 ) FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT ALL - col0 * col2 * col2 + col1 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT DISTINCT - - col1 - - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT ALL CAST( NULL AS SIGNED ) + + ( + col2 + 78 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL CAST ( NULL AS INTEGER ) + + ( + col2 + 78 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col2 * - 72 * - col1 AS col1 FROM tab2
----
110448
46512
60264

onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT + col2 * col1 DIV - col2 AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4822
SELECT + col2 * col1 / - col2 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT tab0.col0 * + col1 * + col2 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - ( - 37 ) FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 95 * + col1 col2 FROM tab1 AS cor0
----
1235
2470
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT - 57 + col0 DIV cor0.col0 FROM tab0 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-4826
SELECT - 57 + col0 / cor0.col0 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ( tab2.col0 ) + - col1 * 24 AS col0 FROM tab2
----
-1338
-329
-737

query I rowsort
SELECT - ( 8 * tab0.col0 ) FROM tab0
----
-192
-280
-712

query I rowsort
SELECT + + ( cor0.col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 29 + col0 * + col1 FROM tab0 AS cor0
----
2093
3424
8128

query I rowsort
SELECT DISTINCT col0 * + col2 + - 93 FROM tab0 AS cor0
----
-58
699
7205

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL - cor0.col1 + 14 FROM tab2, tab1 cor0
----
9 values hashing to 6c8e0965c675d69b605dd8f5ee836301

query I rowsort
SELECT 64 + tab2.col2 FROM tab2
----
102
90
91

query I rowsort
SELECT 60 * 24 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to dc81358b023b433e0e41adf3da6a52dd

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 - 87 AS col2 FROM tab1 AS cor0
----
-187
-256
-763

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199

query I rowsort
SELECT + + col2 + 34 AS col0 FROM tab2 cor0
----
60
61
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT + col0 * - CAST( NULL AS DECIMAL ) - col0 * + col1 * - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT + col0 * - CAST ( NULL AS REAL ) - col0 * + col1 * - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 * + 81 AS col1 FROM tab2 AS cor0
----
-1377
-2511
-4779

query I rowsort
SELECT col1 + + col0 - col0 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col1 + 92 AS col2 FROM tab0 cor0
----
178
183
189

query I rowsort
SELECT col2 + - col0 * tab1.col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - - cor0.col1 + - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT ALL - 31 + + col0 DIV col2 - col2 FROM tab1 AS cor0
----
-127
-85
-87

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - 31 + + col0 / col2 - col2 FROM tab1 AS cor0
----
-127
-85
-87

query I rowsort
SELECT - 68 + + col1 FROM tab2 cor0
----
-37
-51
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT DISTINCT + 55 DIV col0 AS col1 FROM tab1 AS cor0
----
0
18

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT + 55 / col0 AS col1 FROM tab1 AS cor0
----
0
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4849
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col1 + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col1 + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT col1 * col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL + ( + col2 ) * - cor0.col1 * - ( col1 ) - col1 AS col1 FROM tab2 AS cor0
----
10965
25916
90447

query I rowsort
SELECT ALL + 39 * col0 * + col1 FROM tab0 cor0
----
132405
315861
80496

query I rowsort
SELECT + col0 * - 19 + col1 AS col2 FROM tab1 AS cor0
----
-1206
-1507
-31

query I rowsort
SELECT ALL - cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4856
SELECT 24 * - col2 + col0 * - CAST( - cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-459
1404
2090

skipif mysql # not compatible
query I rowsort label-4856
SELECT 24 * - col2 + col0 * - CAST ( - cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-459
1404
2090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 55 col0 FROM tab1 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * cor0.col1 col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + col2 - col0 FROM tab1 cor0
----
-111
-3655
-7664

query I rowsort
SELECT ALL + ( 51 ) FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT 94 * col1 * + col1 FROM tab1 AS cor0
----
15886
63544
9400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT ALL + + CAST( 52 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + + CAST ( 52 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT - col0 * + 8 + col0 AS col1 FROM tab1 AS cor0
----
-21
-448
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4865
SELECT DISTINCT - col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4865
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-4866
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col0 + col0 * ( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col0 + col0 * ( + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - col1 ) * col1 + - ( + col0 ) FROM tab0 AS cor0
----
-7420
-8370
-9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + cor0.col2 * col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + ( col1 ) * - col2 + 26 + + col0 FROM tab2 AS cor0
----
-1430
-541
-804

query I rowsort
SELECT cor0.col2 + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + 3 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
165
3651
7683

query I rowsort
SELECT DISTINCT - 10 FROM tab2, tab1 AS cor0
----
-10

query I rowsort
SELECT + 29 AS col1 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT - col0 * col0 + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1287
-638
-7923

query I rowsort
SELECT + - col0 * col0 - 55 * + col0 FROM tab2 AS cor0
----
-10374
-10586
-434

query I rowsort
SELECT - col1 + - col1 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + + col2 * - ( 9 ) + - col0 FROM tab0 cor0
----
-321
-44
-827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col1 + col0 * col0 + col2 FROM tab1 AS cor0
----
37
4143
6483

query I rowsort
SELECT + 40 * col1 FROM tab2 cor0
----
1240
2360
680

query I rowsort
SELECT - - ( - col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 45 col2 FROM tab1
----
102
141
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4884
SELECT - col0 * - col1 * - CAST( cor0.col2 AS SIGNED ) col0 FROM tab0 cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4884
SELECT - col0 * - col1 * - CAST ( cor0.col2 AS INTEGER ) col0 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT 88 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT + - col0 * cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT DISTINCT - col1 + + col1 DIV + 64 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - col1 + + col1 / + 64 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT + cor0.col2 + col1 DIV col1 col0 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4888
SELECT + cor0.col2 + col1 / col1 col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT - col0 * col0 - ( col0 ) * + 77 FROM tab0 cor0
----
-14774
-2424
-3920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT cor0.col2 DIV - col2 + + 49 AS col1 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-4890
SELECT cor0.col2 / - col2 + + 49 AS col1 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4891
SELECT + 14 DIV col2 FROM tab0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-4891
SELECT + 14 / col2 FROM tab0
----
0
0
14

query I rowsort
SELECT DISTINCT - ( + col1 * - 91 + + 70 ) FROM tab2
----
1477
2751
5299

query I rowsort
SELECT ALL ( + 33 ) AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT ALL col2 + col2 + + 18 FROM tab1
----
126
132
210

onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT ALL col2 * col0 * + ( - 65 ) + + col1 DIV 53 FROM tab1
----
-10530
-237120
-499200

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL col2 * col0 * + ( - 65 ) + + col1 / 53 FROM tab1
----
-10530
-237120
-499200

query I rowsort
SELECT + - col1 + ( col0 ) * - col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT - - col2 * col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT + col2 + col0 * 33 * ( + col0 ) FROM tab0
----
19041
261475
40426

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT col2 DIV - 5 FROM tab2 AS cor0
----
-5
-5
-7

skipif mysql # not compatible
query I rowsort label-4899
SELECT col2 / - 5 FROM tab2 AS cor0
----
-5
-5
-7

query I rowsort
SELECT DISTINCT + - 93 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT col2 DIV 53 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4901
SELECT col2 / 53 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT - col0 * + 85 AS col0 FROM tab1
----
-255
-5440
-6800

query I rowsort
SELECT DISTINCT tab2.col1 * + col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT col1 * tab0.col2 - col2 AS col1 FROM tab0
----
2805
7380
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + + col1 col2 FROM tab2
----
23
51
9

query I rowsort
SELECT ( - ( col1 ) ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - - 81 FROM tab2 cor0
----
81
81
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4908
SELECT - - CAST( NULL AS SIGNED ) + 67 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT - - CAST ( NULL AS INTEGER ) + 67 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col1 AS col1 FROM tab0 cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col1 col1 FROM tab2 cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * col1 col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - 18 * col2 FROM tab1 AS cor0
----
-1026
-1728
-972

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4914
SELECT - CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT - CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 17 AS col2 FROM tab0 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 48 AS REAL ) * col1 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
30730
3770
49933

query I rowsort
SELECT ALL + col0 + 88 * - col1 * 9 FROM tab1 AS cor0
----
-10216
-20589
-7856

query I rowsort
SELECT ALL - ( cor0.col1 ) + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + 49 FROM tab0 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT 3 - + col2 FROM tab1 AS cor0
----
-51
-54
-93

query I rowsort
SELECT ALL - col0 * col2 * - col2 - - 9 FROM tab0 AS cor0
----
26145
44
598445

onlyif mysql # use DIV operator for integer division
query I rowsort label-4922
SELECT ALL col1 DIV col1 + 90 AS col2 FROM tab2 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL col1 / col1 + 90 AS col2 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT - cor0.col0 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - col2 * - col2 + - 61 AS col2 FROM tab1 AS cor0
----
2855
3188
9155

query I rowsort
SELECT col2 * - 41 AS col2 FROM tab1
----
-2214
-2337
-3936

query I rowsort
SELECT DISTINCT + - col2 - + col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - 47 + - col2 FROM tab2 AS cor0
----
-73
-74
-85

query I rowsort
SELECT ALL - - 76 * + col0 AS col1 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT + col2 * col1 + col0 * - col2 AS col2 FROM tab0 cor0
----
164
2046
62

query I rowsort
SELECT ALL - + col2 - - col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * - col2 + - 83 col1 FROM tab1 AS cor0
----
-1331
-1487
-653

query I rowsort
SELECT DISTINCT - - 25 * - col1 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT tab1.col0 - + 69 * col0 FROM tab1
----
-204
-4352
-5440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4934
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT + col1 DIV 8 FROM tab1
----
1
1
3

skipif mysql # not compatible
query I rowsort label-4935
SELECT + col1 / 8 FROM tab1
----
1
1
3

query I rowsort
SELECT DISTINCT tab0.col1 - col0 * - tab0.col2 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL col0 * - ( col2 ) FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT DISTINCT col2 DIV - ( col2 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT col2 / - ( col2 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT + col2 + + col2 DIV col1 + col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4939
SELECT + col2 + + col2 / col1 + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL col0 + + ( - col0 ) AS col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - cor0.col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + 16 AS col2 FROM tab0 AS cor0
----
102
107
113

query I rowsort
SELECT - + col1 * - cor0.col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT col1 * - 55 AS col1 FROM tab1 AS cor0
----
-1430
-550
-715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4946
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + + 74 AS col0 FROM tab0 AS cor0
----
-12
-17
-23

query I rowsort
SELECT ALL - - col2 * - 30 AS col2 FROM tab0 AS cor0
----
-2460
-30
-990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - + col1 * - 69 FROM tab0 AS cor0
----
5934
6279
6693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4951
SELECT col0 * cor0.col2 + col0 + - col0 DIV + 62 AS col2 FROM tab0 AS cor0
----
70
7386
816

skipif mysql # not compatible
query I rowsort label-4951
SELECT col0 * cor0.col2 + col0 + - col0 / + 62 AS col2 FROM tab0 AS cor0
----
70
7386
816

query I rowsort
SELECT ALL - 20 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT DISTINCT col1 + 54 + - col2 AS col1 FROM tab0 AS cor0
----
107
150
63

query I rowsort
SELECT - + col1 * - col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - - col1 + 6 FROM tab2 AS cor0
----
23
37
65

query I rowsort
SELECT ALL + 87 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to f1666fadc663c90ea9374fcb108b4477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 28 col0 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT + col2 + - ( 16 * col2 + tab0.col2 ) FROM tab0
----
-1312
-16
-528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + + ( - col1 ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4962
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT ALL + col1 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + col1 + col2 / col0 AS col2 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT - + 98 AS col1 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT 73 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT ALL + 65 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-4967
SELECT ALL col1 + ( + col2 + col1 ) DIV + col0 FROM tab1
----
11
14
52

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL col1 + ( + col2 + col1 ) / + col0 FROM tab1
----
11
14
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 4 col2 FROM tab2
----
-104
-108
-152

onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT ALL - 38 + - col0 DIV cor0.col2 col0 FROM tab0 AS cor0
----
-38
-39
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - 38 + - col0 / cor0.col2 col0 FROM tab0 AS cor0
----
-38
-39
-73

query I rowsort
SELECT DISTINCT + - 95 + col1 AS col0 FROM tab2 AS cor0
----
-36
-64
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT col0 + 90 DIV col2 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-4971
SELECT col0 + 90 / col2 FROM tab1 AS cor0
----
4
65
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4972
SELECT DISTINCT + - ( - 39 ) * col1 + - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + - ( - 39 ) * col1 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 * - 79 AS col1 FROM tab2 AS cor0
----
-584
-6221
-6258

query I rowsort
SELECT + + 1 + + col0 AS col0 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT DISTINCT 15 * col0 + cor0.col0 FROM tab2 AS cor0
----
112
1248
1264

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 56 AS REAL ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL + col1 * + cor0.col2 + col2 * col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
23436
25194
41418

query I rowsort
SELECT ALL + col0 + + ( 8 ) + - col2 FROM tab1 cor0
----
-43
-8
15

query I rowsort
SELECT - 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT + cor0.col2 + + 30 FROM tab2 AS cor0
----
56
57
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4981
SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) / - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 40 AS col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 + + CAST ( - col2 AS REAL ) * - col0 * - col2 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT ALL + col0 - - 83 AS col2 FROM tab2 AS cor0
----
161
162
90

query I rowsort
SELECT col1 * cor0.col0 + ( - col2 + ( 19 ) ) * col1 FROM tab2 AS cor0
----
-31
1020
4189

query I rowsort
SELECT ALL 23 * + col0 FROM tab1
----
1472
1840
69

query I rowsort
SELECT + + col0 + cor0.col0 * 99 AS col0 FROM tab1 AS cor0
----
300
6400
8000

query I rowsort
SELECT col1 + + 89 * - 55 - col1 AS col1 FROM tab0 AS cor0
----
-4895
-4895
-4895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - 23 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4991
SELECT + - col0 * cor0.col0 + + col0 DIV col0 FROM tab1 AS cor0
----
-4095
-6399
-8

skipif mysql # not compatible
query I rowsort label-4991
SELECT + - col0 * cor0.col0 + + col0 / col0 FROM tab1 AS cor0
----
-4095
-6399
-8

query I rowsort
SELECT - col1 * col1 + - 2 FROM tab0 AS cor0
----
-7398
-8283
-9411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - ( 45 * col1 ) col0 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT + + col2 * + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + col1 + 52 AS col0 FROM tab1 AS cor0
----
62
65
78

query I rowsort
SELECT ALL + col2 * - col1 FROM tab1 WHERE - col0 BETWEEN NULL AND + col1
----

query I rowsort
SELECT - col1 - - tab2.col2 * + col2 AS col1 FROM tab2
----
1427
617
698

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( NULL ) < - col0
----

query I rowsort
SELECT - col0 + + col0 * - col0 * + col1 AS col2 FROM tab1
----
-237
-41024
-83280

query I rowsort
SELECT - col1 - col1 AS col1 FROM tab0 WHERE NOT NULL >= + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT ALL - tab0.col2 * col2 - col0 * col2 DIV col0 FROM tab0
----
-1122
-2
-6806

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - tab0.col2 * col2 - col0 * col2 / col0 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT - col1 * - col2 * col2 + + col2 + - col1 * - col0 * col2 AS col2 FROM tab2
----
159562
28485
75620

query I rowsort
SELECT DISTINCT col0 * col2 + + col0 + + col0 * - tab0.col0 FROM tab0 WHERE NULL IN ( + col0 + tab0.col2 )
----

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - tab1.col1 * - col2 AS col0 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NULL IN ( tab1.col2 + tab1.col1 )
----

query I rowsort
SELECT ALL tab2.col0 * + col0 + - col1 AS col2 FROM tab2
----
18
6025
6224

query I rowsort
SELECT + col1 - + col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 29 + col1 AS col0 FROM tab2 AS cor0
----
-12
2
30

query I rowsort
SELECT 97 + col0 * + 47 AS col1 FROM tab2 AS cor0
----
3763
3810
426

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT + - col0 DIV + col2 + - col2 FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-5012
SELECT + - col0 / + col2 + - col2 FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT 93 + - col0 FROM tab2 AS cor0
----
14
15
86

query I rowsort
SELECT ALL 30 + col2 * col0 FROM tab1 AS cor0
----
192
3678
7710

query I rowsort
SELECT + 44 * cor0.col2 * - col2 + - col0 FROM tab1 cor0
----
-128307
-143020
-405584

query I rowsort
SELECT + + 98 * col1 AS col0 FROM tab2 cor0
----
1666
3038
5782

query I rowsort
SELECT col0 * - col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - + col0 + + 25 + 76 FROM tab1 AS cor0
----
21
37
98

query I rowsort
SELECT + ( + cor1.col1 ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col0 * cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT - - col2 * 76 * cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT - - col2 * 76 * cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor2.col0 - 37 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 5b236af22e6e28856afe3a8d4530e625

onlyif mysql # use DIV operator for integer division
query I rowsort label-5023
SELECT - + ( + 44 ) DIV col0 + col0 FROM tab0 AS cor0
----
23
34
89

skipif mysql # not compatible
query I rowsort label-5023
SELECT - + ( + 44 ) / col0 + col0 FROM tab0 AS cor0
----
23
34
89

query I rowsort
SELECT + col0 * + 33 AS col0 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT + - 72 * 12 FROM tab2 AS cor0
----
-864
-864
-864

query I rowsort
SELECT DISTINCT - ( + 4 ) * + col1 FROM tab0
----
-344
-364
-388

query I rowsort
SELECT ALL cor0.col2 + col0 * 73 + col0 AS col0 FROM tab2 AS cor0
----
545
5798
5884

query I rowsort
SELECT + 86 + cor0.col1 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT + ( 22 ) * col2 FROM tab2
----
572
594
836

query I rowsort
SELECT col0 * - 73 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
-4323
-5018
218

onlyif mysql # use DIV operator for integer division
query I rowsort label-5031
SELECT ALL + 55 DIV col1 col1 FROM tab2
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + 55 / col1 col1 FROM tab2
----
0
1
3

query I rowsort
SELECT ALL tab1.col2 * 45 + - tab1.col2 FROM tab1
----
2376
2508
4224

query I rowsort
SELECT ALL tab1.col2 + + col2 + - col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT ( col1 ) * col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col0 * col0 + col1 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT - + 10 AS col2 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab2
----
16

query I rowsort
SELECT + - col0 * col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - + col1 + + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col0 * col1 FROM tab0 WHERE ( NULL ) = ( + col2 ) AND ( col1 * col2 ) IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 * col2 + - col1 * - col2 FROM tab0 AS cor0
----
38775
558830
98

query I rowsort
SELECT DISTINCT - tab1.col0 + 11 AS col1 FROM tab1
----
-53
-69
8

query I rowsort
SELECT DISTINCT col2 + - 13 FROM tab1
----
41
44
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT ALL + 3 DIV col0 + col2 AS col1 FROM tab1
----
55
57
96

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + 3 / col0 + col2 AS col1 FROM tab1
----
55
57
96

query I rowsort
SELECT ALL - col2 + + col0 * col1 FROM tab2
----
1305
190
4576

query I rowsort
SELECT ALL ( col0 ) + - col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 83 * + col1 + col2 FROM tab2
----
1449
2600
4923

query I rowsort
SELECT + 71 + + col0 AS col2 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT - col1 + - 71 * + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-102541
-48055
-51790

onlyif mysql # use DIV operator for integer division
query I rowsort label-5050
SELECT DISTINCT 17 DIV - 48 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT 17 / - 48 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - 57 AS col1 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + col1 + - 75 AS col2 FROM tab2 AS cor0
----
-16
-44
-58

query I rowsort
SELECT col1 + col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT + col1 * 99 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
1972
4030
9322

query I rowsort
SELECT DISTINCT - 57 - ( col0 ) * col0 FROM tab2 AS cor0
----
-106
-6141
-6298

query I rowsort
SELECT DISTINCT + + cor0.col0 * - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - 54 + - col1 AS col0 FROM tab1 AS cor0
----
-64
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 * col2 + + col0 * col1 + - col1 col1 FROM tab0 cor0
----
13748
3368
4288

query I rowsort
SELECT DISTINCT 15 * - col1 * cor0.col2 FROM tab0 AS cor0
----
-111930
-1455
-42570

query I rowsort
SELECT ALL - 92 * - col2 + col0 FROM tab1 AS cor0
----
4971
5308
8912

query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col2 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT ALL col2 + + cor0.col2 DIV col0 AS col1 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL col2 + + cor0.col2 / col0 AS col1 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT - col0 + col1 + + col0 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col2 + col2 * col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT + col1 - - cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL 64 * cor0.col2 + - col2 * col1 * col0 AS col1 FROM tab0 cor0
----
-3331
-658870
-66000

query I rowsort
SELECT DISTINCT - cor0.col2 + col2 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT DISTINCT col1 DIV - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1248
-1412
-570

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT col1 / - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1248
-1412
-570

query I rowsort
SELECT col2 * + col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - col1 * col1 - cor0.col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT col2 * + col1 * col0 + col1 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT + col2 + col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT col0 + - col0 - + col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT + cor0.col0 DIV + col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-5076
SELECT + cor0.col0 / + col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1046
646
78

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NULL BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - tab0.col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5079
SELECT - col2 + col1 DIV + tab0.col0 + - col2 DIV col0 AS col0 FROM tab0
----
-31
-81
1

skipif mysql # not compatible
query I rowsort label-5079
SELECT - col2 + col1 / + tab0.col0 + - col2 / col0 AS col0 FROM tab0
----
-31
-81
1

query I rowsort
SELECT DISTINCT col0 * + tab0.col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT tab1.col1 * + col1 + col0 + + col2 AS col0 FROM tab1
----
221
345
733

query I rowsort
SELECT DISTINCT col1 + + tab2.col2 AS col2 FROM tab2
----
55
58
85

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col2 * - col0 NOT IN ( - col2 * col1 + - col2 / + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - tab1.col2 col1 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - col2 - - col0 * col0 FROM tab0
----
1224
543
7839

query I rowsort
SELECT col1 - - col0 * - col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT col0 - col0 FROM tab1 WHERE ( NULL ) > col2
----

query I rowsort
SELECT DISTINCT - tab1.col2 + + col2 AS col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5089
SELECT col0 + col1 DIV + col2 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5089
SELECT col0 + col1 / + col2 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT col2 * col2 + - col1 * col1 FROM tab0 cor0
----
-1557
-6307
-9408

query I rowsort
SELECT ALL + - col2 + col0 FROM tab2 cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 - - col1 col2 FROM tab1 cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * - col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT - col1 + + col1 * - col1 * - col1 FROM tab1
----
17550
2184
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT + col1 DIV - col1 + - col0 AS col0 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-5096
SELECT + col1 / - col1 + - col0 AS col0 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT + col2 * + col0 * col1 - + col1 FROM tab1
----
36470
4186
99827

query I rowsort
SELECT DISTINCT - col2 * + col2 * - tab2.col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT tab2.col2 - - col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT + cor0.col0 * - col1 + col1 + col1 AS col2 FROM tab2 AS cor0
----
-1309
-155
-4484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - col2 + - col2 - col0 FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT + + col1 * - col2 + + col0 + col1 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT ALL col0 * col0 + + cor0.col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - col0 * - col0 FROM tab0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - col1 * + col2 * - col0 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ( - 51 ) + + col2 * 42 FROM tab1 AS cor0
----
2217
2343
3981

query I rowsort
SELECT - + col0 * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5109
SELECT 68 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
2
68

skipif mysql # not compatible
query I rowsort label-5109
SELECT 68 / + col2 AS col0 FROM tab0 AS cor0
----
0
2
68

query I rowsort
SELECT + col2 * 40 FROM tab1 AS cor0
----
2160
2280
3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5111
SELECT ALL CAST( NULL AS SIGNED ) * 86 + + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL CAST ( NULL AS INTEGER ) * 86 + + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5113
SELECT DISTINCT col0 * - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT col0 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + col2 * col1 + cor0.col0 * col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL + ( + col1 ) + col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT ALL + CAST( NULL AS DECIMAL ) * + 23 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + CAST ( NULL AS REAL ) * + 23 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col1 + - col2 * col1 + + col1 FROM tab2 AS cor0
----
-1416
-612
-775

query I rowsort
SELECT + + 6 * - col2 FROM tab0 AS cor0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5121
SELECT - col0 * + col1 DIV cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT - col0 * + col1 / cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 + + 34 FROM tab0 AS cor0
----
120
125
131

query I rowsort
SELECT DISTINCT - col2 + + ( 85 ) * - col2 AS col1 FROM tab1 AS cor0
----
-4644
-4902
-8256

query I rowsort
SELECT + col0 + + ( + col0 ) + col1 AS col0 FROM tab0 AS cor0
----
134
167
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT DISTINCT + + col2 DIV col1 col0 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + + col2 / col1 col0 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT ALL col0 DIV ( 7 ) FROM tab1
----
0
11
9

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL col0 / ( 7 ) FROM tab1
----
0
11
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col0 FROM tab1, tab2 AS cor0
----
84

query I rowsort
SELECT DISTINCT - - col2 + col0 * - col1 * - cor0.col2 + - ( 93 ) AS col1 FROM tab0 AS cor0
----
3303
664107
68052

query I rowsort
SELECT cor0.col0 * + col0 + - 24 FROM tab0 AS cor0
----
1201
552
7897

query I rowsort
SELECT 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5131
SELECT - - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT - - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT col1 + col1 * + 75 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT - col2 * + col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT col1 * - 57 * col2 FROM tab2 cor0
----
-36822
-47709
-87438

query I rowsort
SELECT ALL cor0.col1 * 43 AS col2 FROM tab0 cor0
----
3698
3913
4171

onlyif mysql # use DIV operator for integer division
query I rowsort label-5137
SELECT col1 + + 68 DIV col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5137
SELECT col1 + + 68 / col1 AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5138
SELECT + CAST( NULL AS SIGNED ) + 20 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT + CAST ( NULL AS INTEGER ) + 20 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 67 + col0 * col1 FROM tab2 AS cor0
----
1276
150
4535

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5140
SELECT 99 + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT 99 + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col0 + + 93 AS col2 FROM tab1 cor0
----
-547
-947
15

query I rowsort
SELECT + + col2 + col0 + + col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT 3 - col1 FROM tab1 cor0
----
-10
-23
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT - 39 * + col0 + + col0 DIV col1 + - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-224
3043
3164

skipif mysql # not compatible
query I rowsort label-5144
SELECT - 39 * + col0 + + col0 / col1 + - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-224
3043
3164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5145
SELECT ALL + col0 * CAST( NULL AS SIGNED ) * - col0 - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) * - col0 - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT col1 * 91 + + 82 DIV - col2 FROM tab1 AS cor0
----
1183
2365
909

skipif mysql # not compatible
query I rowsort label-5146
SELECT col1 * 91 + + 82 / - col2 FROM tab1 AS cor0
----
1183
2365
909

query I rowsort
SELECT DISTINCT + col0 + 72 AS col2 FROM tab2 AS cor0
----
150
151
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 + ( + col1 ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * + 42 + col0 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT col1 * - col2 + col1 FROM tab2 cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT DISTINCT - col1 DIV col2 AS col1 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - col1 / col2 AS col1 FROM tab0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * tab1.col0 col0 FROM tab1
----
222
4736
5920

onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT + col1 DIV col0 col1 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5153
SELECT + col1 / col0 col1 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL + ( + cor0.col1 ) + + cor0.col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col0 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT + 79 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 24 * col0 AS col2 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT ALL + 76 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT 29 + col2 FROM tab2
----
55
56
67

query I rowsort
SELECT ALL 67 + + tab1.col2 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 0b8c70c7080caf579094b9270fba2121

query I rowsort
SELECT ( - 33 ) FROM tab1
----
-33
-33
-33

query I rowsort
SELECT - 19 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT + col2 + col2 * + ( 15 ) AS col0 FROM tab1
----
1536
864
912

query I rowsort
SELECT ALL + - col2 + col2 * + 24 FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT ALL - col2 * col0 + + col0 + + col1 FROM tab0 AS cor0
----
-682
-7118
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5167
SELECT + ( col0 ) * CAST( NULL AS SIGNED ) + col2 + col0 / 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT + ( col0 ) * CAST ( NULL AS INTEGER ) + col2 + col0 / 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + col0 + ( col1 ) FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-5169
SELECT ALL col1 - tab2.col2 DIV 94 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL col1 - tab2.col2 / 94 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - col1 * - col2 - ( col2 ) * - col1 FROM tab2
----
1292
1674
3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT + col0 DIV + col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5171
SELECT + col0 / + col0 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT col2 * - ( - col2 + + col0 ) AS col2 FROM tab2
----
-1352
-1558
540

query I rowsort
SELECT tab1.col1 + ( col1 ) * col2 + 99 * + 4 AS col2 FROM tab1
----
1657
1826
976

onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT DISTINCT col1 DIV 9 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT col1 / 9 FROM tab1
----
1
2

query I rowsort
SELECT ALL col1 * + 50 - 94 * - tab0.col1 FROM tab0
----
12384
13104
13968

query I rowsort
SELECT ALL col0 * tab2.col2 * col1 - + col1 AS col0 FROM tab2
----
119593
51017
5828

query I rowsort
SELECT - ( - col1 ) * - col0 + 54 - col0 * - col2 FROM tab2 AS cor0
----
-2520
1713
26

query I rowsort
SELECT - 73 + col2 AS col0 FROM tab1 cor0
----
-16
-19
23

query I rowsort
SELECT ALL col2 * - ( col2 ) * 87 + ( - col1 + - 31 ) * + 89 AS col2 FROM tab0
----
-105156
-11479
-595846

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5180
SELECT CAST( NULL AS SIGNED ) * col0 + + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT CAST ( NULL AS INTEGER ) * col0 + + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5182
SELECT DISTINCT 29 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT 29 / col0 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + col1 - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + + 80 FROM tab1 AS cor0
----
106
90
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + cor0.col1 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( - 92 ) * col0 AS col0 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT - col1 * 41 AS col1 FROM tab0
----
-3526
-3731
-3977

onlyif mysql # use DIV operator for integer division
query I rowsort label-5188
SELECT ALL ( ( col0 ) ) DIV col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL ( ( col0 ) ) / col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 57 * - col0 + + col1 FROM tab2 AS cor0
----
430
4505
4520

query I rowsort
SELECT - - 40 + col1 FROM tab0 AS cor0
----
126
131
137

query I rowsort
SELECT - ( + 7 ) + col1 FROM tab1 AS cor0
----
19
3
6

query I rowsort
SELECT DISTINCT - col2 * - 19 * - col2 + 10 AS col2 FROM tab2 AS cor0
----
-12834
-13841
-27426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + col2 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 60 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1560
-1620
-2280

query I rowsort
SELECT col2 * 43 FROM tab2
----
1118
1161
1634

query I rowsort
SELECT DISTINCT - 49 + - tab0.col1 AS col0 FROM tab0
----
-135
-140
-146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5198
SELECT DISTINCT - + CAST( + 21 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - + CAST ( + 21 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT 74 AS col2 FROM tab2 cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col1 ) + cor0.col2 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - + 21 * + col1 AS col1 FROM tab0 cor0
----
-1806
-1911
-2037

query I rowsort
SELECT - 11 * ( + cor0.col2 ) FROM tab1 cor0
----
-1056
-594
-627

query I rowsort
SELECT + + col0 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col0 AS REAL ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - - 94 * col0 AS col1 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT cor0.col0 - - col2 * - ( + 95 * cor0.col2 ) AS col0 FROM tab2 cor0
----
-137101
-64142
-69248

query I rowsort
SELECT col0 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 * col2 * col2 col2 FROM tab0 AS cor0
----
106722
658952
98

query I rowsort
SELECT + - cor0.col0 + - col0 + 43 * 17 AS col1 FROM tab2 AS cor0
----
573
575
717

query I rowsort
SELECT ALL col2 + + col2 * + col1 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT - + 16 AS col1 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + ( col2 ) + col0 AS col0 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 + col0 col0 FROM tab2 AS cor0
----
106
107
35

query I rowsort
SELECT 34 + col2 FROM tab2 AS cor0
----
60
61
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5215
SELECT ALL + col1 * CAST( col2 + col2 AS SIGNED ) FROM tab2 AS cor0
----
1292
1674
3068

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + col1 * CAST ( col2 + col2 AS INTEGER ) FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT DISTINCT - + col1 * 80 AS col1 FROM tab2 AS cor0
----
-1360
-2480
-4720

query I rowsort
SELECT ALL - + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col0 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT col2 * + ( + cor0.col0 + cor0.col1 * ( + col0 ) ) FROM tab0 AS cor0
----
3430
671416
68904

onlyif mysql # use DIV operator for integer division
query I rowsort label-5220
SELECT DISTINCT - col2 DIV + 21 FROM tab1 AS cor0
----
-2
-4

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT - col2 / + 21 FROM tab1 AS cor0
----
-2
-4

query I rowsort
SELECT DISTINCT col1 * ( col2 ) FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - ( + col2 ) col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + - col0 * col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5224
SELECT DISTINCT col2 DIV + 1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT col2 / + 1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * + 12 * + col2 + - col0 * CAST ( col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
385
80278
8712

query I rowsort
SELECT ALL - - col1 + col2 * + col2 - col1 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - - cor0.col0 * - 8 * + col2 FROM tab1 AS cor0
----
-1296
-29184
-61440

query I rowsort
SELECT + cor0.col1 * + ( - col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col2 / + cor0.col0 - cor0.col2 AS col0 FROM tab1, tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 66 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + cor0.col1 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT cor0.col2 * cor0.col0 + 48 AS col2 FROM tab0 AS cor0
----
7346
83
840

query I rowsort
SELECT - col1 * + 73 AS col0 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT + col1 + 96 FROM tab2 AS cor0
----
113
127
155

query I rowsort
SELECT DISTINCT + + col1 * + 21 * col0 AS col0 FROM tab1 AS cor0
----
13440
1638
21840

query I rowsort
SELECT ( col2 ) * - col2 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
-157461
-185129
-884656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * col0 + col0 col1 FROM tab2 AS cor0
----
385
4290
4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col2 ) + col1 col1 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 0 + + col0 col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - + ( ( col0 ) ) + ( col1 ) * cor0.col0 * col1 FROM tab2 AS cor0
----
22752
271440
6720

query I rowsort
SELECT - 48 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT ALL - col1 * 10 + - tab1.col0 AS col2 FROM tab1
----
-164
-210
-263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) + + col0 col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - - 38 FROM tab0 cor0
----
38
38
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT - 51 * + col1 DIV + col1 + col0 AS col1 FROM tab1 AS cor0
----
-48
13
29

skipif mysql # not compatible
query I rowsort label-5248
SELECT - 51 * + col1 / + col1 + col0 AS col1 FROM tab1 AS cor0
----
-48
13
29

query I rowsort
SELECT - ( + col2 ) + - cor0.col1 + col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5250
SELECT ALL col1 DIV + col0 + 61 FROM tab1 cor0
----
61
61
69

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL col1 / + col0 + 61 FROM tab1 cor0
----
61
61
69

query I rowsort
SELECT + + col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - col2 * col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - cor0.col0 * - col1 * + ( - col2 * col0 ) AS col2 FROM tab2 AS cor0
----
-4031686
-41013
-9332856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 63 * col2 col2 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT - 68 * col1 FROM tab2
----
-1156
-2108
-4012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( col2 ) col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + ( + 74 ) * col2 FROM tab2
----
1924
1998
2812

query I rowsort
SELECT col0 - ( - col1 ) FROM tab2
----
137
38
96

query I rowsort
SELECT ALL 31 + tab0.col0 * + col1 - 46 AS col0 FROM tab0
----
2049
3380
8084

query I rowsort
SELECT ALL col0 * + 74 * - col2 - ( + 35 ) AS col2 FROM tab1
----
-12023
-269987
-568355

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5261
SELECT + CAST( NULL AS SIGNED ) * - 47 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT + CAST ( NULL AS INTEGER ) * - 47 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 42 + col1 * - col1 AS col1 FROM tab2
----
-247
-3439
-919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + col1 * - 78 * col2 col0 FROM tab2 AS cor0
----
-124254
-51731
-65503

query I rowsort
SELECT DISTINCT 81 + + tab1.col1 * - col1 FROM tab1
----
-19
-595
-88

query I rowsort
SELECT ALL col2 + col2 * col0 * 73 + col0 * col1 AS col2 FROM tab1
----
11958
267001
561776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT DISTINCT col0 DIV ( - col1 * + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT col0 / ( - col1 * + col0 ) AS col1 FROM tab0
----
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5268
SELECT ALL col2 DIV 13 FROM tab0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL col2 / 13 FROM tab0
----
0
2
6

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT DISTINCT col2 DIV CAST( - col1 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT col2 / CAST ( - col1 AS INTEGER ) FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5271
SELECT + CAST( NULL AS SIGNED ) + cor0.col2 * + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT + CAST ( NULL AS INTEGER ) + cor0.col2 * + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab0.col2 - col0 AS col1 FROM tab0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5273
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( - col0 ) + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - col0 ) + + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( - cor0.col2 ) + - col1 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1357
-1484
-637

query I rowsort
SELECT DISTINCT col2 * col2 * col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL + - col0 + + ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - col2 + 48 FROM tab2 cor0
----
10
21
22

query I rowsort
SELECT DISTINCT col2 * 8 + col2 * + col0 FROM tab1
----
4104
594
8448

query I rowsort
SELECT DISTINCT - col1 + + col2 * col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5281
SELECT ALL col0 + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL col0 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - + col2 * col0 - ( cor0.col1 ) FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + - col0 * 66 AS col0 FROM tab0 AS cor0
----
-1584
-2310
-5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT DISTINCT - col1 DIV col0 col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - col1 / col0 col1 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT DISTINCT + col1 - CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + col1 - CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col0 * - col0 + - 97 AS col2 FROM tab1 AS cor0
----
-106
-4193
-6497

query I rowsort
SELECT - + cor0.col0 * + col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - tab1.col0 + 75 AS col0 FROM tab1
----
-5
11
72

query I rowsort
SELECT ALL cor1.col1 * + ( 83 ) * cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 1e00915c38d1d9bd77548c13f2415d81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5290
SELECT DISTINCT + CAST( + cor1.col1 AS SIGNED ) AS col0 FROM tab2, tab1 cor0, tab1, tab1 AS cor1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + CAST ( + cor1.col1 AS INTEGER ) AS col0 FROM tab2, tab1 cor0, tab1, tab1 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT DISTINCT - cor0.col2 DIV col1 AS col0 FROM tab2 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - cor0.col2 / col1 AS col0 FROM tab2 cor0
----
-2
0

query I rowsort
SELECT ( cor0.col2 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 2 col1 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - 94 * - col2 FROM tab0 AS cor0
----
3102
7708
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5295
SELECT DISTINCT - - col2 + col2 DIV + 35 AS col2 FROM tab0 AS cor0
----
1
33
84

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT - - col2 + col2 / + 35 AS col2 FROM tab0 AS cor0
----
1
33
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * cor0.col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - 14 FROM tab0, tab0 cor0
----
-14

query I rowsort
SELECT DISTINCT col0 * + 37 FROM tab0
----
1295
3293
888

query I rowsort
SELECT DISTINCT col1 * - 8 AS col2 FROM tab2
----
-136
-248
-472

onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT col1 DIV col0 + 85 FROM tab2
----
85
85
89

skipif mysql # not compatible
query I rowsort label-5300
SELECT col1 / col0 + 85 FROM tab2
----
85
85
89

query I rowsort
SELECT ALL 54 AS col2 FROM tab2
----
54
54
54

query I rowsort
SELECT DISTINCT + 86 - + tab1.col2 AS col2 FROM tab1
----
-10
29
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT col2 + + col2 DIV 88 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5303
SELECT col2 + + col2 / 88 AS col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5305
SELECT + ( col1 ) * col1 DIV + 57 FROM tab1 AS cor0
----
1
11
2

skipif mysql # not compatible
query I rowsort label-5305
SELECT + ( col1 ) * col1 / + 57 FROM tab1 AS cor0
----
1
11
2

query I rowsort
SELECT 14 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT cor0.col0 * CAST( - 82 AS SIGNED ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 95d887320be8039c41f7e782389cb9aa

skipif mysql # not compatible
query I rowsort label-5308
SELECT cor0.col0 * CAST ( - 82 AS INTEGER ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 95d887320be8039c41f7e782389cb9aa

onlyif mysql # use DIV operator for integer division
query I rowsort label-5309
SELECT DISTINCT + tab0.col0 DIV col0 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT + tab0.col0 / col0 AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * + col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + 65 FROM tab1, tab1 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - tab2.col2 * - col0 + + 20 * col1 + - col2 AS col1 FROM tab2
----
3182
3304
782

query I rowsort
SELECT DISTINCT + col0 * - 40 + col1 AS col2 FROM tab0
----
-1303
-3469
-874

onlyif mysql # use DIV operator for integer division
query I rowsort label-5314
SELECT - col0 DIV + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5314
SELECT - col0 / + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT col1 DIV ( 5 + col1 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5315
SELECT col1 / ( 5 + col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * col2 * - tab1.col2 col0 FROM tab1
----
-18432
-5832
-6498

onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT col0 + - ( - col2 ) DIV - col2 AS col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5318
SELECT col0 + - ( - col2 ) / - col2 AS col2 FROM tab0
----
23
34
88

query I rowsort
SELECT 81 + col1 FROM tab1
----
107
91
94

query I rowsort
SELECT ALL + ( + 51 ) * tab2.col2 FROM tab2
----
1326
1377
1938

query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 + - ( - col1 ) FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL 89 - 49 * col0 FROM tab0 AS cor0
----
-1087
-1626
-4272

query I rowsort
SELECT ALL + 66 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
130
146
69

query I rowsort
SELECT DISTINCT - 87 * 65 + col2 * - cor0.col1 FROM tab1 cor0
----
-6225
-6903
-7059

query I rowsort
SELECT + ( - 28 ) AS col2 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL - col0 * col0 + - col0 * + 81 - - col0 * col2 AS col0 FROM tab0 AS cor0
----
-1728
-4025
-7832

query I rowsort
SELECT ALL 9 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col0 FROM tab0
----
1
33
82

query I rowsort
SELECT - col1 * - cor0.col2 + + col1 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 31 * col0 + col2 * + 79 + col2 AS col2 FROM tab1 AS cor0
----
2576
4227
5200

query I rowsort
SELECT ALL + 60 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab0, tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT + - 91 + - cor0.col1 FROM tab0 cor0
----
-177
-182
-188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + + 50 AS col2 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5336
SELECT DISTINCT - 30 * col1 + + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-236
-310
-777

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - 30 * col1 + + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-236
-310
-777

onlyif mysql # use DIV operator for integer division
query I rowsort label-5337
SELECT ALL + col0 + col1 DIV - 19 AS col0 FROM tab2 AS cor0
----
6
75
79

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL + col0 + col1 / - 19 AS col0 FROM tab2 AS cor0
----
6
75
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 + + cor0.col2 col2 FROM tab1 AS cor0
----
-30
-33
9

query I rowsort
SELECT + + 71 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT + col2 + col2 * - 17 AS col2 FROM tab2 AS cor0
----
-416
-432
-608

onlyif mysql # use DIV operator for integer division
query I rowsort label-5341
SELECT - + col1 DIV col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5341
SELECT - + col1 / col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 1 * + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + cor0.col0 * + col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col0 * 21 * - ( tab0.col0 ) AS col1 FROM tab0
----
-12096
-166341
-25725

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT DISTINCT col0 DIV - col2 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT col0 / - col2 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT ALL - 91 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT + + col2 * ( 67 ) + + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-2860
1203
1592

query I rowsort
SELECT DISTINCT + col2 + col0 + - 27 FROM tab0 AS cor0
----
144
30
9

query I rowsort
SELECT - + 21 * - 74 FROM tab0 AS cor0
----
1554
1554
1554

query I rowsort
SELECT + col1 + 27 + - col1 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT + - col2 * col0 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT 48 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT - 94 + - col1 FROM tab2 AS cor0
----
-111
-125
-153

query I rowsort
SELECT ALL - 26 + col1 AS col0 FROM tab0 cor0
----
60
65
71

query I rowsort
SELECT DISTINCT 64 - + col1 AS col2 FROM tab0 AS cor0
----
-22
-27
-33

query I rowsort
SELECT DISTINCT + - col1 * - col2 - - col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 49 + + col0 FROM tab1
----
113
129
52

query I rowsort
SELECT + col0 * ( - ( col2 ) ) * col1 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col1 + + ( 48 ) * col0 AS col1 FROM tab0 AS cor0
----
1238
1777
4363

query I rowsort
SELECT ALL + 11 AS col2 FROM tab2
----
11
11
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5362
SELECT + + cor0.col2 DIV + ( - col0 * col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5362
SELECT + + cor0.col2 / + ( - col0 * col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + ( + col1 ) * + col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + ( col1 ) + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + ( 26 ) * - cor0.col1 + col2 FROM tab2 AS cor0
----
-1508
-404
-779

query I rowsort
SELECT DISTINCT + col2 * col2 + col0 * - col0 FROM tab1 AS cor0
----
-847
2816
2907

onlyif mysql # use DIV operator for integer division
query I rowsort label-5367
SELECT DISTINCT tab1.col0 DIV + col0 - tab1.col1 AS col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT tab1.col0 / + col0 - tab1.col1 AS col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT - + col0 + 66 * col1 + - col1 FROM tab2 AS cor0
----
1026
2008
3757

query I rowsort
SELECT DISTINCT - col2 - 6 FROM tab1
----
-102
-60
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 36 + + col0 col1 FROM tab0 AS cor0
----
-1
-12
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5371
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * col1 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + 27 * tab0.col1 AS col2 FROM tab0
----
2322
2457
2619

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2, tab0, tab0 AS cor0
----
58

query I rowsort
SELECT + + col1 * - cor0.col0 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL + ( 84 ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ( + col0 ) * col0 + + ( - 46 ) * col2 FROM tab0
----
-942
1179
4149

query I rowsort
SELECT + col0 + col0 * tab0.col0 * + 33 FROM tab0
----
19032
261482
40460

query I rowsort
SELECT + ( 74 ) FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT ALL + ( + col0 ) * col2 + - col0 + 70 * + col1 FROM tab2 cor0
----
2352
4113
6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT DISTINCT - col0 DIV col1 - - cor0.col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - col0 / col1 - - cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ( col1 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col0 + - 77 * col1 AS col0 FROM tab0 AS cor0
----
-6646
-7096
-7504

query I rowsort
SELECT DISTINCT + - ( 30 ) + col1 * 0 AS col1 FROM tab2 cor0
----
-30

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 50 AS REAL ) AS col2 FROM tab0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - ( - 42 ) + - col0 FROM tab1 AS cor0
----
-22
-38
39

query I rowsort
SELECT ALL - col0 - + 54 FROM tab2 AS cor0
----
-132
-133
-61

query I rowsort
SELECT ALL + ( col0 ) * cor0.col1 + - 27 FROM tab0 AS cor0
----
2037
3368
8072

query I rowsort
SELECT ALL col1 * col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL 79 AS col2 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT col0 + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + + 48 AS col0 FROM tab1 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + 60 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - 20 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-1689
-394
-603

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - cor0.col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT + - col2 * - col1 * col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT col0 * + 6 + + 45 FROM tab0
----
189
255
579

query I rowsort
SELECT col2 + + col1 * - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT - - col1 * + col2 * - col2 FROM tab0 cor0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5402
SELECT col2 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - ( + col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col0 col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5405
SELECT ALL col0 + CAST( 9 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
798
908
908

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL col0 + CAST ( 9 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
798
908
908

onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT DISTINCT - col0 DIV 66 AS col0 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - col0 / 66 AS col0 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT DISTINCT + - 99 * col2 AS col0 FROM tab0 AS cor0
----
-3267
-8118
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5408
SELECT ALL - - CAST( NULL AS SIGNED ) + - 95 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 95 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * ( col0 ) * col2 - col2 FROM tab2
----
119626
50996
5832

query I rowsort
SELECT col1 * - ( + col1 ) + - tab2.col1 * 37 AS col0 FROM tab2
----
-2108
-5664
-918

query I rowsort
SELECT col0 * - tab1.col2 - 32 FROM tab1
----
-194
-3680
-7712

query I rowsort
SELECT + 26 * 59 * - col0 + ( 34 + cor0.col0 ) FROM tab1 AS cor0
----
-122606
-4565
-98078

query I rowsort
SELECT cor0.col1 * 22 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 783d9577dce7b56e94f9fc6ad192106c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + ( 57 ) + - col2 * col1 FROM tab0 AS cor0
----
-2781
-40
-7405

query I rowsort
SELECT DISTINCT + ( + col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT DISTINCT + tab1.col0 DIV col0 + col2 * + col2 col2 FROM tab1
----
2917
3250
9217

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + tab1.col0 / col0 + col2 * + col2 col2 FROM tab1
----
2917
3250
9217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 * 87 col1 FROM tab2
----
4524
4524
4524

query I rowsort
SELECT col1 * col2 * + col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + col0 col2 FROM tab2
----
148
149
77

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab1, tab1 AS cor0
----
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5422
SELECT CAST( NULL AS SIGNED ) + + 42 / + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT CAST ( NULL AS INTEGER ) + + 42 / + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col2 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT ALL - 97 * col2 + - ( + 52 ) DIV - col1 FROM tab0
----
-3201
-7954
-97

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - 97 * col2 + - ( + 52 ) / - col1 FROM tab0
----
-3201
-7954
-97

query I rowsort
SELECT - col2 * - 95 + - col2 AS col0 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT + col2 * col0 - col2 AS col1 FROM tab0 cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5428
SELECT + col2 * CAST( col0 * col2 AS SIGNED ) FROM tab0 AS cor0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-5428
SELECT + col2 * CAST ( col0 * col2 AS INTEGER ) FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT DISTINCT + col0 * col1 DIV col0 + 52 FROM tab2
----
111
69
83

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + col0 * col1 / col0 + 52 FROM tab2
----
111
69
83

query I rowsort
SELECT ALL ( + tab2.col2 ) + + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - col0 * + col0 * 39 + col0 + col0 FROM tab1
----
-159616
-249440
-345

query I rowsort
SELECT ALL col1 + - col1 * col2 + col0 * + col0 FROM tab1
----
-1369
3536
5165

query I rowsort
SELECT col1 + col2 * + 87 FROM tab1 cor0
----
4724
4969
8365

query I rowsort
SELECT ALL + col0 * 75 FROM tab1
----
225
4800
6000

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT ALL + col2 DIV 20 + 23 FROM tab0 AS cor0
----
23
24
27

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL + col2 / 20 + 23 FROM tab0 AS cor0
----
23
24
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5436
SELECT col1 DIV + 91 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT col1 / + 91 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT DISTINCT - col0 * col1 + + 29 DIV - col0 FROM tab2 AS cor0
----
-1343
-221
-4602

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - col0 * col1 + + 29 / - col0 FROM tab2 AS cor0
----
-1343
-221
-4602

query I rowsort
SELECT ALL - + cor0.col2 + + ( col1 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT cor0.col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5441
SELECT col0 * col2 + col1 DIV col0 col0 FROM tab2 AS cor0
----
193
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5441
SELECT col0 * col2 + col1 / col0 col0 FROM tab2 AS cor0
----
193
2028
3002

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - col1 + - col2 * - 28 AS col0 FROM tab2 AS cor0
----
1047
669
725

query I rowsort
SELECT DISTINCT + - col1 * - ( + ( col1 ) ) FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5445
SELECT + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + col1 * + col1 - + col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + col2 + - cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col1 * ( + 72 ) AS col1 FROM tab0
----
6192
6552
6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col2 + col0 * + col1 col0 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT ALL + col0 - + col2 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT col2 - 99 FROM tab0
----
-17
-66
-98

query I rowsort
SELECT ALL - 75 FROM tab0, tab2 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT + ( + col2 ) * - col1 + - col0 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT col1 * - 74 AS col2 FROM tab0
----
-6364
-6734
-7178

query I rowsort
SELECT ALL 71 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1296
647
7992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5457
SELECT ALL + 73 + col0 * col2 DIV - col1 FROM tab1 cor0
----
-291
-517
67

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL + 73 + col0 * col2 / - col1 FROM tab1 cor0
----
-291
-517
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col2 * col2 * col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT - 90 AS col2 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5461
SELECT col1 DIV - col0 AS col2 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT col1 / - col0 AS col2 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT - col1 * + cor0.col2 * + ( + col2 * col1 ) AS col0 FROM tab2 AS cor0
----
-2353156
-417316
-700569

query I rowsort
SELECT 8 * + col1 + - col0 FROM tab2
----
241
394
57

query I rowsort
SELECT - 99 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5465
SELECT + col0 + + tab1.col0 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT + col0 + + tab1.col0 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + + col1 * ( + 38 ) AS col1 FROM tab2 AS cor0
----
1147
2183
629

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT + col0 + + col0 DIV col0 AS col2 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-5467
SELECT + col0 + + col0 / col0 AS col2 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT DISTINCT - - col2 * col2 * - col1 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5469
SELECT DISTINCT col2 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT col2 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col2 + col2 * 12 FROM tab1 cor0
----
1248
702
741

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT + col0 + - col1 DIV col0 AS col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-5471
SELECT + col0 + - col1 / col0 AS col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT DISTINCT + col1 * ( - 33 ) FROM tab1 AS cor0
----
-330
-429
-858

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT col0 DIV - 24 FROM tab0 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5473
SELECT col0 / - 24 FROM tab0 AS cor0
----
-1
-1
-3

query I rowsort
SELECT ALL col2 * + 14 FROM tab1 AS cor0
----
1344
756
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT - col0 DIV + 92 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5475
SELECT - col0 / + 92 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 * + 97 + col2 AS col0 FROM tab2 AS cor0
----
706
7592
7701

query I rowsort
SELECT DISTINCT - col2 * col2 * - col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT cor0.col2 * - 89 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-5479
SELECT + + col2 DIV + 60 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5479
SELECT + + col2 / + 60 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab1 cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * ( + col0 ) col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - col2 * - cor0.col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * ( + 37 + cor0.col1 * - col2 ) col1 FROM tab1 AS cor0
----
15743
35542
5330

query I rowsort
SELECT DISTINCT 42 * + tab2.col2 * tab2.col1 + + col2 * + ( tab2.col2 ) FROM tab2
----
28576
35883
65104

query I rowsort
SELECT ALL - 21 AS col1 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT + 38 + 32 + col0 AS col2 FROM tab0 AS cor0
----
105
159
94

query I rowsort
SELECT DISTINCT + - col2 * + col1 - col0 * - col1 FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5488
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 39 col2 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT + 91 + col0 FROM tab0 AS cor0
----
115
126
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT ALL ( col0 ) DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL ( col0 ) / col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - - col1 + + col1 * col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + ( + col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + 96 FROM tab2 cor0
----
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5495
SELECT col2 * + ( + col2 ) + + CAST( + 77 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1521
753
806

skipif mysql # not compatible
query I rowsort label-5495
SELECT col2 * + ( + col2 ) + + CAST ( + 77 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1521
753
806

query I rowsort
SELECT ALL ( + col0 ) + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col0 - 85 * col1 AS col2 FROM tab0 AS cor0
----
-7286
-7646
-8210

query I rowsort
SELECT DISTINCT 80 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-109
-1948
-2922

query I rowsort
SELECT + - 12 * - col1 AS col0 FROM tab1 AS cor0
----
120
156
312

query I rowsort
SELECT DISTINCT + + 88 * col1 * - ( + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-109824
-123552
-50160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + + col0 col2 FROM tab0 cor0
----
30
41
95

query I rowsort
SELECT + tab2.col2 * + col2 + + col0 * - col1 FROM tab2
----
-3926
101
512

query I rowsort
SELECT ALL - 3 + + 70 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT + col2 * ( cor0.col0 ) DIV + col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5504
SELECT + col2 * ( cor0.col0 ) / + col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 3 * col1 AS col1 FROM tab2 AS cor0
----
-177
-51
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT + - 56 DIV - ( col2 ) AS col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5506
SELECT + - 56 / - ( col2 ) AS col2 FROM tab1 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT + ( col0 ) + col1 * col1 DIV + 10 AS col0 FROM tab0 AS cor0
----
763
917
975

skipif mysql # not compatible
query I rowsort label-5507
SELECT + ( col0 ) + col1 * col1 / + 10 AS col0 FROM tab0 AS cor0
----
763
917
975

query I rowsort
SELECT DISTINCT col0 * ( - 41 ) AS col1 FROM tab1
----
-123
-2624
-3280

query I rowsort
SELECT ALL - 28 FROM tab0, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL + cor1.col2 * tab0.col1 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 2e57e4b12842f2ed2947ccb372f0c23b

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

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-5513
SELECT - 40 DIV - 71 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT - 40 / - 71 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - col1 ) + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + + 24 AS col0 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT ( col2 ) * + 86 + - 79 * - col2 AS col0 FROM tab2
----
4290
4455
6270

onlyif mysql # use DIV operator for integer division
query I rowsort label-5517
SELECT col1 * col2 + col0 DIV - col0 FROM tab2
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-5517
SELECT col1 * col2 + col0 / - col0 FROM tab2
----
1533
645
836

query I rowsort
SELECT ALL - col1 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT col2 * - col1 + + ( col2 + + col0 ) FROM tab1 AS cor0
----
-1072
-1347
-449

query I rowsort
SELECT ALL + cor0.col0 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + - col2 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + + 7 - col0 FROM tab1 AS cor0
----
-57
-73
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5523
SELECT ALL - - col0 DIV col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL - - col0 / col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT + 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + col1 + - ( col2 ) FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT col2 DIV + 86 + col2 FROM tab1 AS cor0
----
54
57
97

skipif mysql # not compatible
query I rowsort label-5528
SELECT col2 / + 86 + col2 FROM tab1 AS cor0
----
54
57
97

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( 59 AS REAL ) + + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
13350
3480
5460

query I rowsort
SELECT ALL col2 + + 21 FROM tab2 AS cor0
----
47
48
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT DISTINCT - + col0 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT - + col0 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 5 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT col1 + - col0 + - 92 AS col0 FROM tab2 AS cor0
----
-111
-154
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col1 * 71 col2 FROM tab0 AS cor0
----
-6192
-6552
-6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 * cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4945d570778da02ac40f08af3f2decd6

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 * + col0 FROM tab1 cor0
----
4736
7440
87

query I rowsort
SELECT ALL + 56 FROM tab0, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT - ( 3 ) FROM tab2, tab2 AS cor0
----
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5539
SELECT DISTINCT cor0.col2 * CAST( NULL AS DECIMAL ) + + cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT cor0.col2 * CAST ( NULL AS REAL ) + + cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT - + col0 * + CAST ( - col1 AS REAL ) + cor0.col1 * + 72 FROM tab0 AS cor0
----
10379
14651
8256

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5541
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + 33 AS col1 FROM tab1 AS cor0
----
129
87
90

query I rowsort
SELECT - col1 + - ( 65 ) * + col1 FROM tab1 AS cor0
----
-1716
-660
-858

query I rowsort
SELECT cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5545
SELECT CAST( - cor0.col0 AS SIGNED ) + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-5545
SELECT CAST ( - cor0.col0 AS INTEGER ) + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5547
SELECT - - CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT - - CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col2 * + col2 * + 31 AS col1 FROM tab0 AS cor0
----
208526
32
33792

query I rowsort
SELECT ALL - col2 * cor0.col1 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + 60 + + col2 FROM tab0 AS cor0
----
142
61
93

query I rowsort
SELECT ALL + tab1.col0 * col0 + col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT col1 * col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - tab0.col1 * tab0.col2 AS col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 63 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5555
SELECT col2 DIV + tab1.col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5555
SELECT col2 / + tab1.col0 AS col2 FROM tab1
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5556
SELECT CAST( - col0 AS SIGNED ) + col1 * - 41 AS col2 FROM tab2 AS cor0
----
-1278
-2497
-776

skipif mysql # not compatible
query I rowsort label-5556
SELECT CAST ( - col0 AS INTEGER ) + col1 * - 41 AS col2 FROM tab2 AS cor0
----
-1278
-2497
-776

query I rowsort
SELECT ALL tab0.col0 * ( col1 + col1 ) FROM tab0
----
16198
4128
6790

query I rowsort
SELECT - 32 + col0 * col0 FROM tab2 AS cor0
----
17
6052
6209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT - 35 * - col2 * cor0.col0 FROM tab1 AS cor0
----
127680
268800
5670

query I rowsort
SELECT ALL + - 59 AS col0 FROM tab2 cor0
----
-59
-59
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT DISTINCT col1 DIV col0 AS col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT col1 / col0 AS col0 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT DISTINCT ( 69 ) FROM tab2
----
69

query I rowsort
SELECT cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + col0 - col2 * - col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT col0 * - cor0.col2 + col0 * + col1 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT + col0 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col2 * 85 FROM tab1 AS cor0
----
4590
4845
8160

query I rowsort
SELECT ALL col0 * tab0.col1 AS col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
85

query I rowsort
SELECT col1 * - ( + col2 * + col1 ) AS col1 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + cor0.col1 * + col0 * col2 + + col1 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT ALL col0 * - col0 * 63 AS col0 FROM tab0
----
-36288
-499023
-77175

query I rowsort
SELECT DISTINCT col1 + ( + 8 ) FROM tab0
----
105
94
99

query I rowsort
SELECT DISTINCT col0 + col1 + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT DISTINCT col0 * - 85 + col0 FROM tab0 AS cor0
----
-2016
-2940
-7476

onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT + - col2 + cor0.col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-5577
SELECT + - col2 + cor0.col0 / col1 AS col2 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT ALL + - col0 + 7 FROM tab2 AS cor0
----
-71
-72
0

query I rowsort
SELECT ALL - col2 * - col1 + + col1 * + tab0.col1 FROM tab0
----
10234
15743
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT ALL col0 + - col2 DIV col0 AS col1 FROM tab2
----
4
78
79

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL col0 + - col2 / col0 AS col1 FROM tab2
----
4
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT ALL col1 + col1 DIV 29 + + col2 AS col2 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL col1 + col1 / 29 + + col2 AS col2 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5582
SELECT ALL ( - col2 ) * col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL ( - col2 ) * col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + ( col2 ) ) AS col0 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT 26 * col0 + + col1 AS col0 FROM tab2
----
2071
2087
213

query I rowsort
SELECT ALL + col2 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + 95 + cor0.col2 AS col2 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT + 64 AS col2 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT ALL + 98 * ( col2 ) AS col2 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT + 74 + col2 + - col1 FROM tab0 AS cor0
----
-22
21
65

query I rowsort
SELECT ALL - - 32 + + col1 FROM tab1 AS cor0
----
42
45
58

query I rowsort
SELECT DISTINCT + + col2 * - cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + 76 * col0 AS col1 FROM tab2 AS cor0
----
532
5928
6004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 * + 89 col2 FROM tab2 cor0
----
5518

query I rowsort
SELECT ALL - col1 * + col1 + + col0 + 23 AS col1 FROM tab2 AS cor0
----
-187
-3380
-931

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 24 + col0 FROM tab0
----
0
11
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5598
SELECT - - cor0.col2 * 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-5598
SELECT - - cor0.col2 * col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - - 89 * + cor0.col1 + 61 FROM tab1 AS cor0
----
1218
2375
951

query I rowsort
SELECT + cor0.col0 - ( col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5602
SELECT DISTINCT + col1 * CAST( cor0.col1 * col1 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
205320
29760
4896

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + col1 * CAST ( cor0.col1 * col1 AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
205320
29760
4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT col0 + col1 DIV 52 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5603
SELECT col0 + col1 / 52 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT DISTINCT + col1 DIV - CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + col1 / - CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT ALL - col0 * - col1 - col1 * col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - + col2 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5608
SELECT DISTINCT + ( + col0 ) + - CAST( 34 AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
-1098
-2699
1

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT + ( + col0 ) + - CAST ( 34 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
-1098
-2699
1

query I rowsort
SELECT - - 43 + - col0 AS col1 FROM tab0 AS cor0
----
-46
19
8

query I rowsort
SELECT DISTINCT col0 + col1 * - ( col2 ) FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT ALL - + 38 DIV col1 - cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - + 38 / col1 - cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT DISTINCT - 96 DIV col0 FROM tab0 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - 96 / col0 FROM tab0 AS cor0
----
-1
-2
-4

query I rowsort
SELECT + 90 * col0 + col2 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1467
7756
8554

onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT DISTINCT - col2 DIV - cor0.col1 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT - col2 / - cor0.col1 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + + 57 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT ALL + - 0 + + col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT col0 * - col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col2 - col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL + ( 14 ) + col0 FROM tab0
----
103
38
49

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - 46 * col1 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT - + col1 * - col0 * + 54 FROM tab0 AS cor0
----
111456
183330
437346

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

query I rowsort
SELECT - + col1 * + cor0.col0 * - col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + 66 AS col2 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT - col0 + - col1 * 25 FROM tab2 AS cor0
----
-1553
-504
-782

query I rowsort
SELECT ALL + - cor0.col0 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL col2 + + 17 FROM tab0 cor0
----
18
50
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT col2 * 78 + - col0 * tab1.col2 DIV - col1 + col2 FROM tab1
----
4272
4867
8174

skipif mysql # not compatible
query I rowsort label-5630
SELECT col2 * 78 + - col0 * tab1.col2 / - col1 + col2 FROM tab1
----
4272
4867
8174

query I rowsort
SELECT ALL + 52 + - col1 * + col1 AS col2 FROM tab0
----
-7344
-8229
-9357

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5632
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 17 + + col2 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT + col2 + - cor0.col0 * - col2 + - ( + col0 ) FROM tab2 AS cor0
----
1976
209
2961

query I rowsort
SELECT ALL + ( col0 ) * cor0.col2 * ( col2 + - col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 5 ) + + col1 - + col1 * 15 col2 FROM tab1 AS cor0
----
-135
-177
-359

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5637
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 + col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * cor0.col2 + col1 + 55 * col0 AS col2 FROM tab2 AS cor0
----
-313
2918
3673

query I rowsort
SELECT ALL - col1 + + 35 * col2 * col1 FROM tab1 AS cor0
----
19940
43667
49114

query I rowsort
SELECT DISTINCT col0 + 46 * - col0 * - col0 FROM tab0
----
26520
364455
56385

onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT ALL col1 DIV col0 + + col1 AS col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL col1 / col0 + + col1 AS col0 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT DISTINCT - ( - col2 ) * col2 + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5644
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 70 + + 1 AS col1 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT ALL + ( col0 ) + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col0 * col1 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - + 3 * col0 + ( 71 ) FROM tab2 AS cor0
----
-163
-166
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col1 col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + 61 * + tab2.col0 FROM tab2
----
427
4758
4819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5651
SELECT DISTINCT - - cor0.col2 + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT - - cor0.col2 + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 - - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5653
SELECT - col1 DIV cor0.col2 + col0 * - col2 * cor0.col1 FROM tab0 AS cor0
----
-3492
-664119
-68114

skipif mysql # not compatible
query I rowsort label-5653
SELECT - col1 / cor0.col2 + col0 * - col2 * cor0.col1 FROM tab0 AS cor0
----
-3492
-664119
-68114

query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + - col1 * 32 - - col2 * + col2 FROM tab0 AS cor0
----
-1663
-3103
3812

query I rowsort
SELECT DISTINCT col0 * 39 * - 14 FROM tab0 AS cor0
----
-13104
-19110
-48594

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT - 92 DIV + 77 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5657
SELECT - 92 / + 77 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 98 + + col2 AS col2 FROM tab0 AS cor0
----
131
180
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab0 cor0
----
-76
-76
-76

query I rowsort
SELECT - - col0 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 29 * - col1 col1 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT - 46 + 90 AS col2 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT ALL + cor0.col1 * 42 FROM tab1 cor0
----
1092
420
546

query I rowsort
SELECT tab1.col2 + - 50 AS col0 FROM tab1
----
4
46
7

query I rowsort
SELECT + + col1 * - cor0.col2 * ( col0 ) + col0 AS col1 FROM tab2 AS cor0
----
-119574
-50955
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 6 AS REAL ) AS col1 FROM tab1, tab1 AS cor0
----
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT + col1 DIV 86 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT + col1 / 86 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 42 * - col2 col1 FROM tab2 AS cor0
----
-28392
-30618
-60648

query I rowsort
SELECT - col2 + + 76 + ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
110
67
83

query I rowsort
SELECT ALL - col1 * - 84 FROM tab0 AS cor0
----
7224
7644
8148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * 9 + col0 col2 FROM tab0 AS cor0
----
870
881
935

query I rowsort
SELECT + 36 * - col2 * + col2 FROM tab2
----
-24336
-26244
-51984

onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT col1 * + 36 + - tab1.col2 DIV 58 FROM tab1
----
360
467
936

skipif mysql # not compatible
query I rowsort label-5674
SELECT col1 * + 36 + - tab1.col2 / 58 FROM tab1
----
360
467
936

query I rowsort
SELECT DISTINCT 64 - - col0 FROM tab0
----
153
88
99

query I rowsort
SELECT - cor0.col1 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT 69 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2769
-28
-7393

query I rowsort
SELECT DISTINCT - 98 + col0 + col2 FROM tab2 AS cor0
----
-64
19
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 - + cor0.col2 col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + 8 * col2 AS col2 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT + 59 * 44 FROM tab0
----
2596
2596
2596

query I rowsort
SELECT + + col2 + + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + col2 * + 24 AS col2 FROM tab2
----
624
648
912

query I rowsort
SELECT 84 * + 64 * col0 FROM tab2
----
37632
419328
424704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * tab2.col2 col1 FROM tab2
----
114
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * - tab1.col0 * - col0 col0 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT ALL + + 10 + cor0.col1 + - cor0.col2 DIV + cor0.col2 AS col0 FROM tab1 cor0
----
19
22
35

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + + 10 + cor0.col1 + - cor0.col2 / + cor0.col2 AS col0 FROM tab1 cor0
----
19
22
35

query I rowsort
SELECT - ( + cor0.col0 ) + ( 44 * cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1141
376
492

query I rowsort
SELECT ALL - 23 * col2 AS col0 FROM tab0 AS cor0
----
-1886
-23
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5691
SELECT - col0 DIV col0 - 81 FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-5691
SELECT - col0 / col0 - 81 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT - + 90 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
-57
-8
-89

query I rowsort
SELECT - col2 - - cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + col0 * col2 + col0 * - 82 + col0 FROM tab0 AS cor0
----
-1152
-2800
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 - col1 col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5696
SELECT + + 30 * col1 + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT + + 30 * col1 + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 75 + col1 AS col0 FROM tab1
----
101
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * col2 * - 24 + - col1 col0 FROM tab2
----
15487
20057
36757

query I rowsort
SELECT ALL - col2 + - col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT col2 * 55 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT DISTINCT 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 + 48 col1 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT ALL col1 - - 49 AS col2 FROM tab1 AS cor0
----
59
62
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5704
SELECT - col0 DIV col1 + + 63 * + ( + col0 ) + col1 * - col0 AS col2 FROM tab1
----
111
3386
3994

skipif mysql # not compatible
query I rowsort label-5704
SELECT - col0 / col1 + + 63 * + ( + col0 ) + col1 * - col0 AS col2 FROM tab1
----
111
3386
3994

query I rowsort
SELECT 98 * - col1 AS col1 FROM tab2
----
-1666
-3038
-5782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 * - 23 col0 FROM tab2
----
-154
-1716
-1738

query I rowsort
SELECT DISTINCT 64 + col1 FROM tab2
----
123
81
95

query I rowsort
SELECT ALL 46 * + col0 + + col1 AS col1 FROM tab0 AS cor0
----
1190
1707
4185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5709
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1 + + cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 + + cor0.col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5710
SELECT ALL + + CAST( NULL AS SIGNED ) + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL + + CAST ( NULL AS INTEGER ) + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5711
SELECT CAST( NULL AS SIGNED ) + - col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT CAST ( NULL AS INTEGER ) + - col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5712
SELECT + - 41 + - col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-33
-41
-41

skipif mysql # not compatible
query I rowsort label-5712
SELECT + - 41 + - col1 / - col0 AS col1 FROM tab1 AS cor0
----
-33
-41
-41

query I rowsort
SELECT DISTINCT col2 * - 28 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT ALL - ( col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT col1 * - 8 FROM tab1
----
-104
-208
-80

query I rowsort
SELECT ALL + + tab1.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + ( + col1 ) * - col1 col2 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT - col1 * col0 * 34 - col2 AS col0 FROM tab0
----
-115431
-275448
-70209

query I rowsort
SELECT col0 - - tab0.col2 FROM tab0
----
171
36
57

query I rowsort
SELECT col0 * - 70 + col0 AS col2 FROM tab1
----
-207
-4416
-5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5721
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 31 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 31 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col2 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ( col0 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col2 + + cor0.col0 * col2 * col0 FROM tab0 cor0
----
1224
18975
649440

query I rowsort
SELECT col2 * 66 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
187308
492492
6402

query I rowsort
SELECT - + ( col2 ) * col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col2 + - col2 * + col0 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT - col0 DIV ( + col2 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5728
SELECT - col0 / ( + col2 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT 60 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT DISTINCT 70 FROM tab0, tab2 AS cor0
----
70

query I rowsort
SELECT + col0 + - 4 FROM tab2 cor0
----
3
74
75

query I rowsort
SELECT ALL col0 + - 92 FROM tab1 cor0
----
-12
-28
-89

query I rowsort
SELECT ALL + cor0.col1 * 22 + col2 AS col1 FROM tab2 AS cor0
----
1324
412
709

query I rowsort
SELECT DISTINCT col1 + ( - 82 + col2 ) FROM tab1 AS cor0
----
-15
-2
27

query I rowsort
SELECT - + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL 74 + col1 * + col1 FROM tab2 AS cor0
----
1035
3555
363

query I rowsort
SELECT + + 74 + ( col0 ) FROM tab0 AS cor0
----
109
163
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT col2 * - col2 + + col1 DIV + ( + 48 ) FROM tab2 AS cor0
----
-1444
-675
-729

skipif mysql # not compatible
query I rowsort label-5738
SELECT col2 * - col2 + + col1 / + ( + 48 ) FROM tab2 AS cor0
----
-1444
-675
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5739
SELECT - col0 DIV 62 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1533
645
837

skipif mysql # not compatible
query I rowsort label-5739
SELECT - col0 / 62 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1533
645
837

query I rowsort
SELECT ALL + col1 * col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + col2 * 46 * col1 FROM tab1 AS cor0
----
26220
57408
64584

query I rowsort
SELECT DISTINCT 11 * + col0 + cor0.col2 FROM tab0 cor0
----
1061
297
386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT col2 + - 57 FROM tab2 AS cor0
----
-19
-30
-31

query I rowsort
SELECT ALL + 56 * col1 * col0 AS col1 FROM tab2 AS cor0
----
12152
257712
75208

onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT DISTINCT + + ( 9 ) * + col1 + + 57 DIV col2 FROM tab0 AS cor0
----
775
819
930

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + + ( 9 ) * + col1 + + 57 / col2 FROM tab0 AS cor0
----
775
819
930

query I rowsort
SELECT ALL - col2 * 25 AS col1 FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT - 13 * col2 * + col0 + col1 FROM tab2 AS cor0
----
-2426
-26305
-39009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT col1 + + ( - ( - col0 ) ) AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - tab1.col0 * ( - 22 ) + + col1 FROM tab1
----
1418
1773
92

query I rowsort
SELECT ALL + tab2.col1 + + col0 * col0 AS col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT - cor0.col0 + 31 AS col0 FROM tab0 AS cor0
----
-4
-58
7

query I rowsort
SELECT + - cor0.col2 + - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col2 - - col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + 68 + + col0 FROM tab2 AS cor0
----
-61
10
11

query I rowsort
SELECT ALL - 85 + col0 AS col2 FROM tab0 AS cor0
----
-50
-61
4

query I rowsort
SELECT - - col1 * + cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + ( + col0 ) + + 22 * + 32 * col1 FROM tab1
----
18307
7104
9232

query I rowsort
SELECT DISTINCT col0 * - col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 - - 0 * 98 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 + col0 * cor0.col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * cor0.col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT - + col0 + col1 * + col0 AS col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT col1 + + 4 FROM tab0
----
101
90
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col0 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT ALL - col1 DIV + col2 + + col2 * 20 AS col1 FROM tab1 AS cor0
----
1080
1140
1920

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL - col1 / + col2 + + col2 * 20 AS col1 FROM tab1 AS cor0
----
1080
1140
1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 * col2 + - col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 10 * tab2.col0 AS col2 FROM tab2
----
70
780
790

query I rowsort
SELECT col2 * ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col0 + 5 AS col1 FROM tab1 AS cor0
----
69
8
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5773
SELECT + col0 * - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-5773
SELECT + col0 * - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col0 + cor0.col2 * 75 FROM tab2 AS cor0
----
1872
2018
2771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL 17 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT DISTINCT + tab0.col0 * + ( + col2 ) FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT DISTINCT - cor0.col0 DIV ( col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - cor0.col0 / ( col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col2 * 89 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT + 83 * 0 FROM tab1
----
0
0
0

query I rowsort
SELECT + - col1 + col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5782
SELECT + + col0 + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT + + col0 + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col1 + tab1.col2 ) FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5784
SELECT - col1 + col2 DIV + 36 FROM tab0 AS cor0
----
-86
-89
-97

skipif mysql # not compatible
query I rowsort label-5784
SELECT - col1 + col2 / + 36 FROM tab0 AS cor0
----
-86
-89
-97

query I rowsort
SELECT + 49 * col1 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT + - cor0.col1 * - cor0.col0 * + 62 FROM tab2 AS cor0
----
13454
285324
83266

query I rowsort
SELECT DISTINCT col2 / col2 + col1 * col0 / + col0 FROM tab2 WHERE col1 * col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT 14 + col2 AS col0 FROM tab2 AS cor0
----
40
41
52

query I rowsort
SELECT ALL - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + + 60 * - col1 + - col0 * - col0 FROM tab1 AS cor0
----
-1551
3496
5620

query I rowsort
SELECT ALL col2 - col2 / + col2 AS col2 FROM tab1 WHERE ( + col2 - + col0 ) IN ( - col1 * col0 )
----

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col0 - col2 AS col1 FROM tab0
----
-2847
-63
-7455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + col0 * col1 + col2 * + tab2.col0 col2 FROM tab2
----
595
7347
8658

query I rowsort
SELECT col1 * col1 * tab1.col0 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + col1 * - col2 + - col0 AS col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT col2 + tab1.col2 * col2 * col2 AS col0 FROM tab1
----
157518
185250
884832

query I rowsort
SELECT + 77 * col1 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT DISTINCT 59 * - tab2.col1 AS col2 FROM tab2
----
-1003
-1829
-3481

query I rowsort
SELECT ALL col0 * col1 + 85 FROM tab0
----
2149
3480
8184

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - col2 * col1 + col0 / + col0 FROM tab0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE ( NULL ) BETWEEN - col0 AND col1 + - col1
----

query I rowsort
SELECT - col0 + col0 * + col1 AS col1 FROM tab0
----
2040
3360
8010

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND ( + col0 )
----

query I rowsort
SELECT + col0 + col1 * + col1 FROM tab0 AS cor0 WHERE col2 * + col2 * - col2 + cor0.col2 * + col0 NOT IN ( col0 * + col2 )
----
7420
8370
9444

query I rowsort
SELECT ALL + cor0.col1 * - col0 FROM tab2 cor0 WHERE NOT NULL IN ( - col0 / + col2 )
----

query I rowsort
SELECT col2 + + col2 + col0 * + col1 AS col0 FROM tab2
----
1419
271
4654

query I rowsort
SELECT + tab2.col1 * col2 * tab2.col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col0 + + col0 + col1 AS col2 FROM tab1
----
138
173
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * + col2 * + col2 col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT ALL col0 DIV + tab1.col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL col0 / + tab1.col0 AS col0 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5814
SELECT DISTINCT - col0 DIV - col0 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT - col0 / - col0 AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL + col2 + + col0 * col2 - + col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col1 * - col0 * col0 AS col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT tab0.col0 + + col1 * - col0 * col1 + col1 FROM tab0
----
-177394
-329183
-736829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 * col2 col1 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - col0 + + col1 + col0 * tab2.col1 FROM tab2
----
1281
241
4583

query I rowsort
SELECT col2 * col2 + col0 AS col1 FROM tab0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5822
SELECT ALL col2 + - tab2.col2 DIV - col1 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL col2 + - tab2.col2 / - col1 FROM tab2
----
26
27
40

query I rowsort
SELECT + cor0.col0 * 71 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e674318d1c1f37f21287c95f3070a6b9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT DISTINCT col1 DIV col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT col1 / col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 63 + col1 col0 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT ALL + ( - col1 ) + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 48 * col1 + col0 FROM tab1 AS cor0
----
1251
544
704

query I rowsort
SELECT + - ( + 78 ) AS col0 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + 13 AS col0 FROM tab0 AS cor0
----
-1212
-563
-7908

onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT ALL - col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL - col1 / + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + cor0.col0 - col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5834
SELECT - tab2.col0 DIV ( - col0 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5834
SELECT - tab2.col0 / ( - col0 ) AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT - - 83 AS col2 FROM tab2 cor0
----
83
83
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5836
SELECT DISTINCT - 48 DIV + cor0.col2 + - ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT - 48 / + cor0.col2 + - ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5837
SELECT DISTINCT + ( col0 ) * + CAST( col2 AS SIGNED ) * col2 - col2 FROM tab2 AS cor0
----
114038
5076
52702

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT + ( col0 ) * + CAST ( col2 AS INTEGER ) * col2 - col2 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT col0 - cor0.col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT + + col2 * col0 + 43 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
195
2028
3002

skipif mysql # not compatible
query I rowsort label-5839
SELECT + + col2 * col0 + 43 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
195
2028
3002

query I rowsort
SELECT ALL - - 5 - + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
-1035
-635
-73

query I rowsort
SELECT 94 + + 35 + col0 FROM tab0
----
153
164
218

query I rowsort
SELECT + ( - col1 ) + + col0 - 31 FROM tab1
----
-54
23
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT 8 + + 88 - - col2 DIV - 87 AS col1 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-5843
SELECT 8 + + 88 - - col2 / - 87 AS col1 FROM tab2
----
96
96
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT + col1 DIV 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5844
SELECT + col1 / 63 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - col0 * - col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT - ( + col2 ) - col2 AS col0 FROM tab0
----
-164
-2
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5847
SELECT - col2 + ( - col2 ) + CAST( - 4 AS SIGNED ) FROM tab1
----
-112
-118
-196

skipif mysql # not compatible
query I rowsort label-5847
SELECT - col2 + ( - col2 ) + CAST ( - 4 AS INTEGER ) FROM tab1
----
-112
-118
-196

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT DISTINCT cor0.col0 + - 60 DIV 17 FROM tab0 AS cor0
----
21
32
86

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT cor0.col0 + - 60 / 17 FROM tab0 AS cor0
----
21
32
86

query I rowsort
SELECT - cor0.col1 * + cor0.col1 * col2 + - cor0.col0 AS col2 FROM tab0 cor0
----
-244092
-679131
-9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 29 * + col2 col0 FROM tab1 AS cor0
----
1592
1663
2797

query I rowsort
SELECT DISTINCT + col2 - 55 * col2 FROM tab2 cor0
----
-1404
-1458
-2052

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT - col2 * - col2 + + ( col0 ) + + col2 FROM tab0 AS cor0
----
1146
37
6895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 36 * - col1 * col2 col2 FROM tab0 AS cor0
----
-102135
-268550
-3491

query I rowsort
SELECT col2 * 43 FROM tab0 AS cor0
----
1419
3526
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5856
SELECT + - cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5856
SELECT + - cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * - col1 * + col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + 31 FROM tab2
----
31
31
31

query I rowsort
SELECT DISTINCT cor0.col1 - - 80 AS col1 FROM tab2 cor0
----
111
139
97

query I rowsort
SELECT + col0 * 88 * + col2 FROM tab0 AS cor0
----
3080
642224
69696

query I rowsort
SELECT DISTINCT + + col2 * - ( cor0.col2 ) + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - col1 + 32 FROM tab0 AS cor0
----
-54
-59
-65

query I rowsort
SELECT + ( - col2 ) * + col1 AS col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5864
SELECT + col1 * CAST( + ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-5864
SELECT + col1 * CAST ( + ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - col2 * - col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 74 AS col2 FROM tab1
----
74
74
74

query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab2
----
-97

query I rowsort
SELECT ALL 22 * + tab2.col2 AS col1 FROM tab2
----
572
594
836

query I rowsort
SELECT + 66 - - col1 FROM tab2
----
125
83
97

query I rowsort
SELECT tab0.col1 * - 72 + + col1 * - tab0.col1 FROM tab0
----
-13588
-14833
-16393

query I rowsort
SELECT ALL col0 + + 21 AS col2 FROM tab1 cor0
----
101
24
85

query I rowsort
SELECT ALL - ( col2 ) * col1 * + col1 FROM tab0 cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5873
SELECT DISTINCT - + ( - col1 ) + + col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT - + ( - col1 ) + + col1 / + col0 AS col2 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL + ( 71 ) * - col2 + col0 FROM tab2 AS cor0
----
-1768
-1910
-2619

query I rowsort
SELECT ALL - tab2.col0 * 85 * + col2 AS col1 FROM tab2
----
-16065
-172380
-255170

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 + - col2 * col2 AS REAL ) FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT - 12 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT + 98 * + col0 FROM tab0 cor0
----
2352
3430
8722

query I rowsort
SELECT ALL + + 41 AS col1 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT + 68 * col0 AS col2 FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 * - col2 * col1 col2 FROM tab2 AS cor0
----
142662
60078
77841

query I rowsort
SELECT ALL - + col1 + col2 * col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + col0 * + ( + 44 ) * + col2 AS col2 FROM tab1
----
160512
337920
7128

query I rowsort
SELECT DISTINCT col0 * 90 AS col0 FROM tab1 cor0
----
270
5760
7200

query I rowsort
SELECT + col2 * + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT - + col1 + col0 * + col2 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL - + col1 - + ( col0 + - col0 ) * + col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - col2 * + 76 + 25 AS col0 FROM tab1 AS cor0
----
-4079
-4307
-7271

query I rowsort
SELECT - + col1 + + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5892
SELECT DISTINCT cor0.col2 DIV col1 + - cor0.col1 FROM tab1 cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT cor0.col2 / col1 + - cor0.col1 FROM tab1 cor0
----
-24
-5
-6

query I rowsort
SELECT DISTINCT + col0 * + col1 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 * 36 FROM tab2 AS cor0
----
1116
2124
612

query I rowsort
SELECT + col1 * cor0.col2 + - col1 * col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT - 23 * + 87 FROM tab0 AS cor0
----
-2001
-2001
-2001

query I rowsort
SELECT - - 74 * col1 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT ALL - - 32 AS col2 FROM tab0 cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT DISTINCT - - CAST( col1 AS SIGNED ) DIV col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) / col0 AS col2 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5900
SELECT + col1 + CAST( col0 AS SIGNED ) FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-5900
SELECT + col1 + CAST ( col0 AS INTEGER ) FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT col2 * col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - - col1 * + col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT DISTINCT col2 * col1 DIV col1 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-5903
SELECT DISTINCT col2 * col1 / col1 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col1 * col1 + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + cor0.col0 * + col1 * cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT - col0 + + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT col0 * - col0 + cor0.col0 DIV col2 FROM tab1 AS cor0
----
-4095
-6400
-9

skipif mysql # not compatible
query I rowsort label-5907
SELECT col0 * - col0 + cor0.col0 / col2 FROM tab1 AS cor0
----
-4095
-6400
-9

query I rowsort
SELECT col2 * + col2 + col2 AS col1 FROM tab0
----
1122
2
6806

query I rowsort
SELECT + + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT col1 * + col1 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE + col2 + col0 <> col2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + col2 col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ( + col1 ) + + col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT - col0 + col2 * col2 FROM tab2
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT DISTINCT col1 + - col2 DIV - tab2.col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT col1 + - col2 / - tab2.col1 FROM tab2
----
19
31
59

query I rowsort
SELECT DISTINCT col0 * + tab2.col1 * + col0 AS col1 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT - col2 + - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-5918
SELECT - col2 + - col1 / col0 AS col2 FROM tab1 AS cor0
----
-57
-62
-96

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col0 * cor0.col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
-1190
-623
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col0 * col0 * + col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL col2 + + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + cor0.col1 + - 35 AS col1 FROM tab1 AS cor0
----
-22
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT DISTINCT - col1 DIV ( - col0 ) + - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
16

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT - col1 / ( - col0 ) + - col1 / - col0 AS col2 FROM tab1 AS cor0
----
0
16

query I rowsort
SELECT - col1 * 70 - - col1 AS col0 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT - col1 - + ( col2 ) FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + col1 * + col0 + + col1 AS col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT + + col0 - - 80 FROM tab2 AS cor0
----
158
159
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + 85 col1 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT ALL + col0 * 99 FROM tab2 AS cor0
----
693
7722
7821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT ALL col0 + - cor0.col0 * - col1 / col0 + - ( ( + col2 ) ) / - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL col0 + - cor0.col0 * - col1 / col0 + - ( ( + col2 ) ) / - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT ALL + + col2 + col0 DIV - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + + col2 + col0 / - col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT DISTINCT - cor0.col1 * + 92 AS col0 FROM tab2 cor0
----
-1564
-2852
-5428

query I rowsort
SELECT - + ( - cor0.col2 ) FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5938
SELECT DISTINCT col1 + + col1 * col0 DIV - col1 FROM tab0 AS cor0
----
2
62

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT col1 + + col1 * col0 / - col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT - - 65 * + col2 * - col1 + col1 FROM tab0 AS cor0
----
-184384
-484939
-6208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5940
SELECT + col2 * - CAST( NULL AS SIGNED ) - ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT + col2 * - CAST ( NULL AS INTEGER ) - ( col1 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1, tab1 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT ALL col0 DIV 42 - + tab0.col0 * - col0 AS col0 FROM tab0
----
1225
576
7923

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL col0 / 42 - + tab0.col0 * - col0 AS col0 FROM tab0
----
1225
576
7923

query I rowsort
SELECT DISTINCT - - 55 * col0 AS col2 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT tab2.col2 + + col1 AS col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT ALL - col2 * col1 DIV ( - col1 + col2 ) FROM tab2
----
-30
209
46

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - col2 * col1 / ( - col1 + col2 ) FROM tab2
----
-30
209
46

query I rowsort
SELECT 58 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT col0 * col1 + col0 DIV + 93 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5947
SELECT col0 * col1 + col0 / + 93 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - col1 * + 99 + col0 AS col2 FROM tab0 AS cor0
----
-8490
-8920
-9568

query I rowsort
SELECT ALL col2 * - tab1.col1 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT + + 58 + col0 + + 30 DIV col1 FROM tab1 AS cor0
----
125
140
62

skipif mysql # not compatible
query I rowsort label-5950
SELECT + + 58 + col0 + + 30 / col1 FROM tab1 AS cor0
----
125
140
62

query I rowsort
SELECT DISTINCT 53 * col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT - - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + + col2 + cor0.col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( - 25 ) * cor0.col0 col2 FROM tab2 AS cor0
----
-1225
-152100
-156025

query I rowsort
SELECT col0 + 22 AS col0 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT ALL ( 95 ) + col1 * ( col2 ) FROM tab2
----
1629
741
932

query I rowsort
SELECT DISTINCT col0 + + col1 * tab1.col1 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL - ( col1 ) + - col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT + 44 + cor0.col0 * + col2 FROM tab0 AS cor0
----
7342
79
836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5962
SELECT ALL - CAST( 57 AS SIGNED ) + col0 * col2 FROM tab0
----
-22
7241
735

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL - CAST ( 57 AS INTEGER ) + col0 * col2 FROM tab0
----
-22
7241
735

query I rowsort
SELECT ALL col1 * - ( - col2 ) + + 51 AS col2 FROM tab0
----
148
2889
7513

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab0, tab1 AS cor0
----
-64

query I rowsort
SELECT ALL + - col2 + - col2 * + col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL col2 + - 46 FROM tab0 AS cor0
----
-13
-45
36

query I rowsort
SELECT col2 - col2 * - cor0.col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + - col2 - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col1 * + col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) + col0 * col0 + 41 * + col2 * col1 FROM tab0 AS cor0
----
116967
313945
5203

query I rowsort
SELECT DISTINCT col0 * + col1 * + col0 + 23 * + col1 * col0 AS col2 FROM tab0 cor0
----
196910
907088
97008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT col0 + col1 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5972
SELECT col0 + col1 / - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 82 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-7085
-7544
-7955

query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 + 41 + 80 AS col2 FROM tab2 AS cor0
----
-1323
-555
-608

query I rowsort
SELECT + col1 * col0 + - 91 + col1 * col0 FROM tab2 AS cor0
----
2595
343
9113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + cor0.col2 col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col0 * col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL col1 * + col1 + - 46 * - col2 AS col1 FROM tab2 AS cor0
----
2037
2203
4677

query I rowsort
SELECT DISTINCT + col1 * - col1 + + 26 + - col0 FROM tab0 AS cor0
----
-7394
-8344
-9418

query I rowsort
SELECT col2 * col0 + - 80 FROM tab0 AS cor0
----
-45
712
7218

query I rowsort
SELECT DISTINCT - col2 * col1 + + 43 * col0 AS col2 FROM tab2 AS cor0
----
-536
1820
2751

query I rowsort
SELECT - 78 - col0 AS col0 FROM tab1
----
-142
-158
-81

query I rowsort
SELECT ALL col1 * + ( col0 * - 85 ) + col2 * col2 AS col2 FROM tab2
----
-112711
-17716
-390494

query I rowsort
SELECT ALL + + 61 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT ALL col0 * - 10 * col0 AS col1 FROM tab0
----
-12250
-5760
-79210

query I rowsort
SELECT + + ( - 82 ) * col0 * - 58 FROM tab1 AS cor0
----
14268
304384
380480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT DISTINCT - 93 - + 23 DIV - col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT - 93 - + 23 / - col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT - 95 * - tab0.col2 + + col0 AS col1 FROM tab0
----
130
3159
7879

query I rowsort
SELECT + ( - 15 ) * + col1 + col1 * + 60 FROM tab0
----
3870
4095
4365

query I rowsort
SELECT DISTINCT - 38 * + 47 * - col0 - col1 FROM tab2 AS cor0
----
12471
139249
141077

query I rowsort
SELECT ALL + 90 + - 60 * cor0.col0 AS col2 FROM tab2 cor0
----
-330
-4590
-4650

query I rowsort
SELECT ALL - ( col1 ) + - col1 + - 33 FROM tab0
----
-205
-215
-227

query I rowsort
SELECT + col0 * 94 + col1 AS col1 FROM tab1 AS cor0
----
308
6026
7533

query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - + cor0.col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 + + cor0.col2 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + - col1 * + 72 + + 56 * - col0 AS col0 FROM tab0 AS cor0
----
-11536
-7536
-8944

query I rowsort
SELECT ALL + - cor0.col1 * 25 - - col1 * col1 AS col0 FROM tab1 AS cor0
----
-150
-156
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6000
SELECT DISTINCT col1 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT col1 / - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( col1 AS REAL ) + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col1 * 13 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT - 25 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT - + cor0.col1 + + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 + 57 FROM tab2, tab1, tab2 AS cor0
----
83
84
95

query I rowsort
SELECT DISTINCT - 20 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6007
SELECT DISTINCT col1 * + CAST( col1 AS SIGNED ) FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT col1 * + CAST ( col1 AS INTEGER ) FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT - 71 DIV col0 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT - 71 / col0 FROM tab0 AS cor0
----
-2
-2
0

query I rowsort
SELECT - col0 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - + cor0.col0 * + col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - col0 * + 27 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT - ( - col0 ) + col0 * + ( - col0 ) FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL + 76 * col1 + - col2 FROM tab2 AS cor0
----
1254
2329
4458

query I rowsort
SELECT cor0.col1 + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT ALL + col2 * CAST( - tab1.col1 AS SIGNED ) FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL + col2 * CAST ( - tab1.col1 AS INTEGER ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col1 * col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL 93 + col0 AS col1 FROM tab2 AS cor0
----
100
171
172

query I rowsort
SELECT ALL + - 27 + col0 - - ( 27 + col1 ) * col0 FROM tab1 AS cor0
----
135
2405
3253

query I rowsort
SELECT + 24 + col2 FROM tab2 AS cor0
----
50
51
62

query I rowsort
SELECT + - col0 + - 27 FROM tab1 AS cor0
----
-107
-30
-91

query I rowsort
SELECT - col0 * - col2 - - col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + cor0.col0 + ( cor0.col0 + col0 ) * - 19 AS col2 FROM tab0 AS cor0
----
-1295
-3293
-888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6023
SELECT DISTINCT col1 / col1 + + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT col1 / col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( 17 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - 76 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - ( + 45 ) FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT ALL - col0 + - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL - col0 + - col1 / - col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT DISTINCT + ( 21 ) + - col1 FROM tab2 cor0
----
-10
-38
4

query I rowsort
SELECT DISTINCT ( col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + 19 - - ( col2 ) FROM tab2 AS cor0
----
45
46
57

query I rowsort
SELECT ALL - - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT 79 * + col0 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT - - col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - + col1 + - col1 + - col0 FROM tab2 AS cor0
----
-113
-196
-69

query I rowsort
SELECT ALL 65 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6036
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + - col2 * + col0 - ( col0 ) * - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) + - col2 * + col0 - ( col0 ) * - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + cor1.col2 * + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aeb56f097f17f262600266df7fcf8652

query I rowsort
SELECT ALL - tab1.col1 + - 43 FROM tab1, tab1 AS cor0
----
9 values hashing to 16c1a241d4231c870dd71619acc7054f

query I rowsort
SELECT DISTINCT + - col0 + 88 * cor0.col1 FROM tab2 cor0
----
1417
2721
5114

query I rowsort
SELECT ALL - col0 * + 91 FROM tab1 AS cor0
----
-273
-5824
-7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT DISTINCT col2 + + col2 DIV - col0 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT col2 + + col2 / - col0 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT ALL tab2.col1 + - col1 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col0 FROM tab2 cor0
----
-50

query I rowsort
SELECT - ( + col2 ) * col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col0 ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
70

query I rowsort
SELECT DISTINCT col1 * + 53 AS col0 FROM tab1 AS cor0
----
1378
530
689

query I rowsort
SELECT tab0.col1 - - col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - 16 FROM tab0, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT + tab2.col1 + col2 FROM tab2
----
55
58
85

query I rowsort
SELECT - col0 * 43 FROM tab1
----
-129
-2752
-3440

query I rowsort
SELECT DISTINCT - 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-6053
SELECT CAST( col2 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6053
SELECT CAST ( col2 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - 84 + cor0.col0 FROM tab1 AS cor0
----
-20
-4
-81

query I rowsort
SELECT 37 * col2 + col1 * - ( - col0 ) FROM tab1 AS cor0
----
2076
2749
4592

query I rowsort
SELECT - ( col0 ) * col0 * + 50 + col1 * col1 * - col1 FROM tab2 AS cor0
----
-316963
-32241
-509579

query I rowsort
SELECT tab1.col0 + - tab1.col1 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT - ( + tab0.col1 ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL + + ( cor0.col1 ) - + col2 AS col2 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * col1 - - col1 * - col2 col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 + + col0 - col1 FROM tab2
----
-51
-7
24

query I rowsort
SELECT ALL + 29 - - col1 FROM tab1
----
39
42
55

query I rowsort
SELECT ALL - ( - col1 * - ( - 91 ) ) + + col2 - col2 AS col1 FROM tab2
----
1547
2821
5369

onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT - - col2 DIV + 65 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6064
SELECT - - col2 / + 65 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col2 + col1 * col2 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 + - CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - + col1 * ( + ( + cor0.col1 ) ) FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6068
SELECT - + cor0.col2 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-6068
SELECT - + cor0.col2 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT ALL + + cor0.col2 DIV - 30 col1 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + + cor0.col2 / - 30 col1 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - col1 * cor0.col0 + + 41 - col1 FROM tab0 AS cor0
----
-2109
-3451
-8149

query I rowsort
SELECT DISTINCT - + col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + - col0 * 94 FROM tab2 AS cor0
----
-658
-7332
-7426

query I rowsort
SELECT col2 * - col0 + + col1 + col2 * 61 AS col1 FROM tab0 AS cor0
----
-2205
123
1307

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT + col2 + col0 DIV col2 FROM tab1 cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-6074
SELECT + col2 + col0 / col2 FROM tab1 cor0
----
54
58
96

query I rowsort
SELECT + - col1 + + cor0.col0 * 32 AS col1 FROM tab1 AS cor0
----
2038
2547
70

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + col0 * col1 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + col0 * + col2 + 87 FROM tab2 AS cor0
----
2115
276
3089

query I rowsort
SELECT DISTINCT + 88 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
121
170
89

query I rowsort
SELECT ALL + - ( + col1 ) * col2 + col0 - + col1 * + 17 FROM tab2 cor0
----
-1357
-2459
-856

query I rowsort
SELECT ALL + col1 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT - col1 + col1 * 40 AS col2 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT ( - col1 ) * - col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 42 + col0 AS col2 FROM tab2
----
120
121
49

query I rowsort
SELECT DISTINCT + ( 34 ) * col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT col0 + + 51 AS col0 FROM tab2 cor0
----
129
130
58

query I rowsort
SELECT - - col2 - cor0.col2 * col0 * - 62 FROM tab1 cor0
----
10098
226233
476256

query I rowsort
SELECT + ( + 18 ) * col0 + col2 AS col2 FROM tab0 AS cor0
----
1684
465
631

onlyif mysql # use DIV operator for integer division
query I rowsort label-6089
SELECT ALL - col2 * ( - col1 ) DIV + ( col2 ) AS col0 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL - col2 * ( - col1 ) / + ( col2 ) AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + ( 23 ) * cor0.col1 FROM tab1 cor0
----
230
299
598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6091
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT - 48 DIV col2 - + cor0.col0 FROM tab0 AS cor0
----
-25
-83
-89

skipif mysql # not compatible
query I rowsort label-6092
SELECT - 48 / col2 - + cor0.col0 FROM tab0 AS cor0
----
-25
-83
-89

query I rowsort
SELECT ALL - - 8 AS col2 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6094
SELECT + + CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT + + CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 98 AS col0 FROM tab1
----
152
155
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT - tab2.col1 * - col1 + 25 DIV + tab2.col1 AS col1 FROM tab2
----
290
3481
961

skipif mysql # not compatible
query I rowsort label-6096
SELECT - tab2.col1 * - col1 + 25 / + tab2.col1 AS col1 FROM tab2
----
290
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT + col1 * 14 + + 90 * col2 DIV col0 AS col0 FROM tab0
----
1327
1356
1360

skipif mysql # not compatible
query I rowsort label-6097
SELECT + col1 * 14 + + 90 * col2 / col0 AS col0 FROM tab0
----
1327
1356
1360

query I rowsort
SELECT DISTINCT - col0 + - 74 * col1 AS col1 FROM tab1
----
-1042
-1927
-804

query I rowsort
SELECT ALL + tab0.col2 + 26 FROM tab0
----
108
27
59

query I rowsort
SELECT 64 * 31 + col2 FROM tab2
----
2010
2011
2022

query I rowsort
SELECT ALL - 74 * - col1 - - col2 AS col1 FROM tab1 AS cor0
----
1058
1978
797

query I rowsort
SELECT ALL + 85 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1105
2210
850

query I rowsort
SELECT DISTINCT + col2 + - col0 * + col1 AS col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - col0 * - cor0.col1 - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - col0 * - col2 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT + 26 * + tab2.col0 FROM tab2
----
182
2028
2054

query I rowsort
SELECT ALL + col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + - 11 col0 FROM tab1
----
26
26
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT ALL 20 * - col2 + col0 DIV col0 + col1 FROM tab0
----
-1548
-573
78

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL 20 * - col2 + col0 / col0 + col1 FROM tab0
----
-1548
-573
78

query I rowsort
SELECT col1 * + col1 - 95 * col0 AS col2 FROM tab1 AS cor0
----
-5980
-7431
391

onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT ALL + 2 * col2 + col2 DIV col0 FROM tab2
----
52
57
76

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + 2 * col2 + col2 / col0 FROM tab2
----
52
57
76

query I rowsort
SELECT DISTINCT - col1 * 69 FROM tab1
----
-1794
-690
-897

query I rowsort
SELECT + ( + col0 + + col2 ) FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + col0 * col0 * col0 + col1 - cor0.col2 FROM tab2 AS cor0
----
347
474585
493018

query I rowsort
SELECT + col1 + col0 - 49 AS col2 FROM tab1 cor0
----
-20
25
44

query I rowsort
SELECT + col2 * col2 + 76 FROM tab2 AS cor0
----
1520
752
805

query I rowsort
SELECT - + col0 + col2 + col2 FROM tab2 AS cor0
----
-26
-3
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT cor0.col2 * col2 * col2 AS col1 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT - - col1 + + ( col1 + - col2 ) AS col1 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT ALL col2 * + ( - col2 ) AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT col0 * - 53 * col2 AS col1 FROM tab2 AS cor0
----
-10017
-107484
-159106

query I rowsort
SELECT DISTINCT - col0 * - ( - col0 ) + col2 FROM tab0 cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 71 col2 FROM tab0 AS cor0
----
2343
5822
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6126
SELECT - CAST( NULL AS DECIMAL ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT - CAST ( NULL AS REAL ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT ALL ( - col2 ) DIV col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL ( - col2 ) / col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - col2 * - 2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + + col2 * col0 * + col2 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT + col1 + col0 * col0 * col2 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT col2 + - col0 * col0 + col1 FROM tab0
----
-1127
-457
-7748

query I rowsort
SELECT - col1 * col1 + col0 * col2 AS col2 FROM tab1
----
-514
3548
7511

query I rowsort
SELECT DISTINCT + col2 + col1 - col2 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL col1 * tab2.col0 + - col1 * col0 + + col0 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - col1 * + tab1.col2 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col1 * - col0 + + tab2.col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + tab0.col0 + col0 AS col0 FROM tab0
----
178
48
70

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col2 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT col0 + - tab0.col2 - col1 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT ALL col1 * col1 + + col2 AS col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL - col1 + - tab0.col2 AS col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT col1 + tab1.col2 * + col2 FROM tab1
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * - tab0.col0 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col2 + col0 AS col1 FROM tab0 WHERE ( col1 * + col2 ) = + col2
----

query I rowsort
SELECT ALL col0 + + col1 * col2 AS col2 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT + col1 + col2 DIV + col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6148
SELECT + col1 + col2 / + col2 FROM tab1
----
11
14
27

query I rowsort
SELECT - - col2 + col0 - col2 AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT col1 DIV col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6150
SELECT col1 / col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT col1 + col2 * col0 - + col1 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT + col0 DIV - cor0.col1 + + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6152
SELECT + col0 / - cor0.col1 + + col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT col2 + - col2 * - col2 * col2 - cor0.col0 DIV + col0 col2 FROM tab0 AS cor0
----
1
35969
551449

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6153
SELECT col2 + - col2 * - col2 * col2 - cor0.col0 / + col0 col2 FROM tab0 AS cor0
----
1
35969
551449

query I rowsort
SELECT ALL + cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col2 * + col1 * col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT col0 + col0 * - col0 AS col0 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * - col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT ALL - col2 - 45 FROM tab2 AS cor0
----
-71
-72
-83

query I rowsort
SELECT DISTINCT - col0 * - col0 + - cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT DISTINCT - - col2 + - ( + col1 ) + + col1 * col2 FROM tab1 AS cor0
----
1331
1432
617

query I rowsort
SELECT ALL - col1 - + 47 AS col0 FROM tab2 AS cor0
----
-106
-64
-78

query I rowsort
SELECT - col1 * col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL - col1 * + col0 * 79 + + col0 FROM tab0 AS cor0
----
-163032
-268170
-639732

query I rowsort
SELECT + col1 * col0 - 31 FROM tab0 AS cor0
----
2033
3364
8068

query I rowsort
SELECT ALL + col2 * - col0 + cor0.col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 AS col2 FROM tab2 cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6167
SELECT col0 + CAST( NULL AS SIGNED ) * ( + col2 * col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT col0 + CAST ( NULL AS INTEGER ) * ( + col2 * col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 * - 11 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT col0 * ( - cor0.col2 ) - col1 * 13 FROM tab0 AS cor0
----
-1296
-1910
-8481

query I rowsort
SELECT DISTINCT + col1 * + col0 + 23 FROM tab1 AS cor0
----
101
1063
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6171
SELECT ALL - cor0.col0 + CAST( col1 + col1 AS SIGNED ) FROM tab0 AS cor0
----
148
159
93

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL - cor0.col0 + CAST ( col1 + col1 AS INTEGER ) FROM tab0 AS cor0
----
148
159
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6172
SELECT + - col1 * CAST( NULL AS SIGNED ) + - col2 * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT + - col1 * CAST ( NULL AS INTEGER ) + - col2 * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * + cor0.col0 col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT DISTINCT 76 DIV 67 + - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT 76 / 67 + - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT - ( cor0.col1 ) * - col1 + + 11 AS col1 FROM tab0 AS cor0
----
7407
8292
9420

query I rowsort
SELECT DISTINCT col0 * 16 + + col2 FROM tab1 AS cor0
----
102
1081
1376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( + col0 * + col1 ) + 39 * col1 col1 FROM tab2
----
-117351
-4650
-50371

query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col1 FROM tab2 cor0
----
14

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab1 cor0
----
95

query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT BETWEEN - col2 * - col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT ALL - tab0.col2 * col1 DIV + col1 + - col0 AS col1 FROM tab0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - tab0.col2 * col1 / + col1 + - col0 AS col1 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + 46 col0 FROM tab1 AS cor0
----
-1202
-1358
-524

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( - col2 + - col2 * - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col0 * tab2.col0 + col0 AS col0 FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6186
SELECT DISTINCT + col2 DIV - col1 - col1 * + col2 AS col2 FROM tab2
----
-1534
-648
-837

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT + col2 / - col1 - col1 * + col2 AS col2 FROM tab2
----
-1534
-648
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col0 FROM tab2
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + - cor0.col2 col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
26
37
38

query I rowsort
SELECT + 39 * + cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5fc42376feebb6e49c09736934df5cf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT ALL 9 + - col2 DIV - col1 FROM tab1 AS cor0
----
11
14
16

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL 9 + - col2 / - col1 FROM tab1 AS cor0
----
11
14
16

query I rowsort
SELECT 8 - col1 * + col0 AS col1 FROM tab0
----
-2056
-3387
-8091

query I rowsort
SELECT + col2 + 10 + col1 * col0 AS col1 FROM tab1 cor0
----
1146
142
707

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6193
SELECT ALL + - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL + - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 71 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL - 51 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1495
-727
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col1 FROM tab1 AS cor0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 67 * col1 col0 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT + - 83 + - cor0.col0 FROM tab2 AS cor0
----
-161
-162
-90

query I rowsort
SELECT + col2 + col2 - + cor0.col0 FROM tab1 cor0
----
105
112
50

query I rowsort
SELECT ( 15 ) * col1 * - col0 FROM tab1 cor0
----
-1170
-15600
-9600

query I rowsort
SELECT DISTINCT - 23 * + col1 AS col1 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT - 20 AS col0 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT - 98 AS col1 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT - ( - col0 ) + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - cor0.col2 + - col1 * col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT - - 85 * + col0 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT + col2 * col1 * + 80 FROM tab1 cor0
----
112320
45600
99840

query I rowsort
SELECT DISTINCT - - col0 * ( - cor0.col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - + cor0.col1 * + ( col2 ) * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT 92 * + col1 + 47 AS col2 FROM tab0
----
7959
8419
8971

query I rowsort
SELECT DISTINCT col2 * + col1 * + 76 AS col2 FROM tab0
----
215688
567112
7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT col1 * tab1.col2 DIV + col1 + + col0 AS col1 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-6212
SELECT col1 * tab1.col2 / + col1 + + col0 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT - col2 * + cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT - - col2 * + col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - - col1 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT ALL + col2 + + col0 DIV - col0 + + col2 * col1 FROM tab1 cor0
----
1343
1457
626

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL + col2 + + col0 / - col0 + + col2 * col1 FROM tab1 cor0
----
1343
1457
626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + col0 * col1 col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - + cor0.col0 - + col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL - + col1 * + col2 + col1 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * - col1 - - col0 col2 FROM tab0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2, tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL ( 33 ) * - col1 AS col1 FROM tab2
----
-1023
-1947
-561

query I rowsort
SELECT + - col1 * col2 * col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ( - tab0.col0 ) * col0 AS col2 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * 58 col2 FROM tab2
----
2320

query I rowsort
SELECT col2 * + ( - col0 ) AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 82 * - col2 FROM tab1
----
-4428
-4674
-7872

query I rowsort
SELECT + cor0.col0 * + col1 + + col2 * col0 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT - + 15 + col1 FROM tab2 AS cor0
----
16
2
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + col2 col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT col0 + + col1 * + col1 * 23 + - col0 * - ( 31 ) AS col0 FROM tab2 AS cor0
----
22327
82559
9175

onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT DISTINCT - - 43 DIV - col1 col0 FROM tab1 AS cor0
----
-1
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT - - 43 / - col1 col0 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT - col2 + col0 - 55 FROM tab1 AS cor0
----
-106
-48
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL - col0 * - tab2.col0 * col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - 23 + cor0.col1 * col1 * - col2 FROM tab2 AS cor0
----
-11005
-25970
-90529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col2 FROM tab2 cor0
----
61
61
61

query I rowsort
SELECT + 29 AS col1 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - 96 FROM tab1 cor0
----
-96
-96
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6242
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 * - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 * - col2 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 66 * + col1 col0 FROM tab2
----
14322
303732
88638

onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT ALL - 55 DIV col0 - col0 FROM tab1
----
-21
-64
-80

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - 55 / col0 - col0 FROM tab1
----
-21
-64
-80

query I rowsort
SELECT col2 + 92 + col2 AS col1 FROM tab1
----
200
206
284

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6246
SELECT col2 + col2 - - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT col2 + col2 - - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + 13 * + col1 * + col0 FROM tab1
----
1014
13520
8320

query I rowsort
SELECT DISTINCT + 99 + + col1 FROM tab0
----
185
190
196

query I rowsort
SELECT + 52 + + col0 AS col1 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT - 83 + col0 FROM tab2 AS cor0
----
-4
-5
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6252
SELECT + - ( + col0 ) + 74 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-2
-63
-80

skipif mysql # not compatible
query I rowsort label-6252
SELECT + - ( + col0 ) + 74 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-2
-63
-80

query I rowsort
SELECT - 76 FROM tab0, tab2 cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT + - cor0.col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6254
SELECT + - cor0.col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + cor0.col0 + - 87 * - col1 AS col1 FROM tab0 AS cor0
----
7506
8006
8474

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6256
SELECT - CAST( NULL AS SIGNED ) / + col0 + - cor0.col0 + col0 / + 16 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT - CAST ( NULL AS INTEGER ) / + col0 + - cor0.col0 + col0 / + 16 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + - col2 - - col2 AS col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT DISTINCT - col0 - col0 DIV + col2 AS col1 FROM tab0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT - col0 - col0 / + col2 AS col1 FROM tab0
----
-24
-70
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6259
SELECT + - cor0.col1 DIV 44 FROM tab0 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6259
SELECT + - cor0.col1 / 44 FROM tab0 AS cor0
----
-1
-2
-2

query I rowsort
SELECT ALL 13 FROM tab2 cor0
----
13
13
13

query I rowsort
SELECT ALL - ( 51 ) * - cor0.col1 FROM tab2 AS cor0
----
1581
3009
867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col2 ) * - col2 + col2 * col1 col0 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * + col1 * 15 AS col2 FROM tab2 AS cor0
----
12506
16926
3449

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6264
SELECT ALL - CAST( NULL AS SIGNED ) 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-6264
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col0 * + 19 * - col2 AS col2 FROM tab2 AS cor0
----
3591
38532
57038

query I rowsort
SELECT DISTINCT - col0 * 54 + col1 AS col1 FROM tab2 AS cor0
----
-347
-4153
-4249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * + cor0.col0 + - col1 col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + col2 * - ( + col1 ) * ( - col1 ) FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 43 col1 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT ALL cor0.col1 * - 43 * col0 FROM tab2 AS cor0
----
-197886
-57749
-9331

query I rowsort
SELECT col1 * 28 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT ( ( col0 ) ) FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6274
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 95 + + col0 FROM tab0 AS cor0
----
119
130
184

query I rowsort
SELECT - cor0.col0 * - col0 + - 36 FROM tab0 AS cor0
----
1189
540
7885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * - col1 - - col2 * col2 col2 FROM tab1
----
10352
3048
3946

query I rowsort
SELECT col2 * 82 + col1 * + col1 * + col2 AS col1 FROM tab0 AS cor0
----
246774
685766
9491

query I rowsort
SELECT - - col0 * ( - col1 ) FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col1 - + col2 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT ALL + + col0 * ( col0 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
1
103
367

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + + col0 * ( col0 ) / + col1 AS col2 FROM tab2 AS cor0
----
1
103
367

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT DISTINCT + + col2 * - col0 DIV col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + + col2 * - col0 / col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col0 * + col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT ALL ( 37 ) + col2 DIV - col1 FROM tab1 cor0
----
30
32
35

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL ( 37 ) + col2 / - col1 FROM tab1 cor0
----
30
32
35

query I rowsort
SELECT ALL col2 * col0 * col1 + col1 * col1 AS col0 FROM tab0 AS cor0
----
12804
672399
75508

query I rowsort
SELECT ALL + ( - 4 ) + - cor0.col0 * - 36 AS col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 9bd224b76a8c355d02720690f1730d98

query I rowsort
SELECT ( 35 ) FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - ( 37 ) FROM tab0 AS cor0
----
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT ALL - col2 + 89 DIV + col0 FROM tab1 AS cor0
----
-25
-56
-95

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL - col2 + 89 / + col0 FROM tab1 AS cor0
----
-25
-56
-95

query I rowsort
SELECT - + 77 * - 49 FROM tab0 AS cor0
----
3773
3773
3773

query I rowsort
SELECT ALL + - 98 - - col2 AS col2 FROM tab0 AS cor0
----
-16
-65
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT - col1 DIV - col0 - - tab0.col2 * col0 * col1 FROM tab0
----
3397
664119
68115

skipif mysql # not compatible
query I rowsort label-6294
SELECT - col1 / - col0 - - tab0.col2 * col0 * col1 FROM tab0
----
3397
664119
68115

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT tab0.col2 DIV 47 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-6295
SELECT tab0.col2 / 47 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

query I rowsort
SELECT tab1.col2 * - tab1.col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + cor1.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col1 FROM tab1, tab2, tab2 cor0
----
10
13
26

query I rowsort
SELECT ALL col0 + ( + col1 ) AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col0 + ( - 68 * col2 ) AS col0 FROM tab2
----
-1690
-1829
-2505

onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT ALL + + cor0.col2 + col2 DIV + col1 + col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + + cor0.col2 + col2 / + col1 + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + cor0.col0 + 30 * 49 FROM tab0 AS cor0
----
1494
1505
1559

query I rowsort
SELECT col1 * 53 * 88 AS col0 FROM tab2 AS cor0
----
144584
275176
79288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6304
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL

query I rowsort
SELECT cor1.col2 * + 41 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1cda8e8697393aa2efaa26887f75ed2b

query I rowsort
SELECT ALL - - col0 * 86 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
3009
930
975

query I rowsort
SELECT DISTINCT - - col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col0 * + col2 * - col2 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-6309
SELECT DISTINCT - + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT - + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + - 84 * - col2 FROM tab2 AS cor0
----
2184
2268
3192

query I rowsort
SELECT col0 + col2 * + cor0.col2 FROM tab1 cor0
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6312
SELECT DISTINCT + col0 + + cor0.col1 + + 47 DIV + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + col0 + + cor0.col1 + + 47 / + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6313
SELECT ALL + 92 * col0 DIV - col1 + col2 * - col1 FROM tab1 AS cor0
----
-1158
-1414
-1814

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + 92 * col0 / - col1 + col2 * - col1 FROM tab1 AS cor0
----
-1158
-1414
-1814

query I rowsort
SELECT ALL + - 49 + col2 AS col0 FROM tab1 AS cor0
----
47
5
8

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab1 cor0
----
-84

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT - + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6317
SELECT - + col0 / col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 25 + col2 * + ( col1 + col0 ) * 91 AS col2 FROM tab2 AS cor0
----
324117
331943
93341

query I rowsort
SELECT DISTINCT 78 FROM tab2, tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab0, tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT - 21 * - 81 FROM tab2
----
1701

query I rowsort
SELECT + + col0 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL - col1 + + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + cor0.col1 + 54 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3c4109757b862d7ca1eff7555ff515b6

query I rowsort
SELECT ALL tab0.col1 + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT + 15 * - cor0.col0 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
-539
364
732

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT DISTINCT - tab2.col2 + + tab2.col0 DIV - 40 FROM tab2, tab2 AS cor0
----
-27
-39

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - tab2.col2 + + tab2.col0 / - 40 FROM tab2, tab2 AS cor0
----
-27
-39

query I rowsort
SELECT DISTINCT 17 * 30 FROM tab1, tab0 AS cor0
----
510

query I rowsort
SELECT col1 + + col2 + + 21 AS col2 FROM tab2 AS cor0
----
106
76
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT - 22 + col1 * col1 DIV 79 FROM tab0 AS cor0
----
71
82
97

skipif mysql # not compatible
query I rowsort label-6331
SELECT - 22 + col1 * col1 / 79 FROM tab0 AS cor0
----
71
82
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT + cor0.col1 + col1 + col1 DIV - cor0.col2 FROM tab0 AS cor0
----
170
181
97

skipif mysql # not compatible
query I rowsort label-6332
SELECT + cor0.col1 + col1 + col1 / - cor0.col2 FROM tab0 AS cor0
----
170
181
97

query I rowsort
SELECT - col1 * + col0 * + col0 + + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-106076
-1523
-358989

query I rowsort
SELECT col0 * + 76 AS col1 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT DISTINCT col2 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT - col1 * col1 DIV ( - col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6336
SELECT - col1 * col1 / ( - col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + cor0.col0 * ( 75 ) FROM tab1 AS cor0
----
225
4800
6000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6338
SELECT DISTINCT - - col0 + + 56 DIV 50 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT - - col0 + + 56 / 50 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + col1 * + ( + cor0.col2 ) AS col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6340
SELECT - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6340
SELECT - col2 / col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + col2 * + 53 AS col0 FROM tab0 cor0
----
1749
4346
53

query I rowsort
SELECT - + col0 - - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + col0 * col1 * 58 FROM tab2 AS cor0
----
12617
266975
77911

query I rowsort
SELECT - + ( cor0.col2 ) + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - ( + 55 ) + col2 + col2 AS col0 FROM tab1 AS cor0
----
137
53
59

query I rowsort
SELECT + 85 * + cor0.col2 - col0 AS col1 FROM tab2 AS cor0
----
2132
2288
3151

query I rowsort
SELECT - 26 + 36 * + col0 AS col2 FROM tab0 cor0
----
1234
3178
838

query I rowsort
SELECT ALL + tab2.col2 * 1 + + 53 * col1 FROM tab2
----
1670
3153
939

query I rowsort
SELECT - + col0 * + col1 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6350
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6350
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + col1 * - 95 + - col1 AS col0 FROM tab2 AS cor0
----
-1632
-2976
-5664

query I rowsort
SELECT col0 * + col0 - col1 * + col0 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT - - 62 + col1 FROM tab0 AS cor0
----
148
153
159

query I rowsort
SELECT DISTINCT + 41 FROM tab2, tab1 cor0
----
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6355
SELECT DISTINCT CAST( - 27 AS SIGNED ) * - cor0.col0 * + col1 FROM tab0 AS cor0
----
218673
55728
91665

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT CAST ( - 27 AS INTEGER ) * - cor0.col0 * + col1 FROM tab0 AS cor0
----
218673
55728
91665

query I rowsort
SELECT col1 + + ( col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT tab1.col1 + + 42 + + tab1.col2 AS col0 FROM tab1
----
109
122
151

query I rowsort
SELECT - 31 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 80b3ced88f886d6e15182ebf21c93987

query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 13 + + 99 + cor0.col1 * 57 * 59 FROM tab0, tab2 AS cor0
----
104339
198503
57257

query I rowsort
SELECT ALL - + col1 + - 41 AS col0 FROM tab1 cor0
----
-51
-54
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col2 col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + ( 47 ) FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - ( cor0.col1 ) + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * + 60 AS col1 FROM tab0 AS cor0
----
1980
4920
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT DISTINCT - cor0.col0 * - 6 + + col1 + col1 DIV col2 FROM tab1 cor0
----
394
44
493

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT - cor0.col0 * - 6 + + col1 + col1 / col2 FROM tab1 cor0
----
394
44
493

onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT + col1 DIV + col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6369
SELECT + col1 / + col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col1 + + ( col2 + col2 ) AS col1 FROM tab2 cor0
----
-7
23
59

query I rowsort
SELECT DISTINCT + col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + col1 + - 21 AS col2 FROM tab2 AS cor0
----
-4
10
38

query I rowsort
SELECT DISTINCT - + 95 FROM tab1 cor0
----
-95

query I rowsort
SELECT DISTINCT - + col1 + 46 FROM tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT - col1 * 29 FROM tab1
----
-290
-377
-754

query I rowsort
SELECT - col2 - - ( 52 + col1 ) * ( + col2 ) AS col0 FROM tab2
----
2214
2584
2860

query I rowsort
SELECT DISTINCT + col0 * col1 + + col0 * - col2 - + col1 * 47 AS col0 FROM tab0
----
-1199
-2770
-3476

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6379
SELECT - col2 * 32 DIV + 8 AS col0 FROM tab0
----
-132
-328
-4

skipif mysql # not compatible
query I rowsort label-6379
SELECT - col2 * 32 / + 8 AS col0 FROM tab0
----
-132
-328
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT DISTINCT - 39 + - cor0.col2 + col0 DIV 36 AS col2 FROM tab0 AS cor0
----
-119
-40
-72

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT - 39 + - cor0.col2 + col0 / 36 AS col2 FROM tab0 AS cor0
----
-119
-40
-72

query I rowsort
SELECT ALL - 85 * - col2 + 22 * col2 AS col0 FROM tab2 AS cor0
----
2782
2889
4066

query I rowsort
SELECT DISTINCT + - 82 AS col1 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT ALL + 85 * cor0.col0 FROM tab0 cor0
----
2040
2975
7565

query I rowsort
SELECT - cor0.col1 * col0 + ( - ( - col1 ) + - 34 ) FROM tab2 AS cor0
----
-1360
-220
-4577

query I rowsort
SELECT - 67 + col1 FROM tab1 AS cor0
----
-41
-54
-57

query I rowsort
SELECT DISTINCT + 88 - col2 AS col0 FROM tab1 AS cor0
----
-8
31
34

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - + 5 * + col2 + col1 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-244233
-679452
-9414

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6389
SELECT DISTINCT col1 * col0 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT col1 * col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * - col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL col2 * - 86 FROM tab1 AS cor0
----
-4644
-4902
-8256

query I rowsort
SELECT DISTINCT 84 * 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
5040

query I rowsort
SELECT - 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT + 95 + col1 FROM tab2
----
112
126
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT + col2 + - col1 DIV - col1 AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6395
SELECT + col2 + - col1 / - col1 AS col1 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + tab2.col2 col1 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab1, tab0, tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT - 55 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
-55

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT ALL + 27 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 092918b9163061e291041d594b1a402a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 + 75 col1 FROM tab0 AS cor0
----
7471
8356
9484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 * col2 col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + + cor0.col1 - col1 * ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - - col1 * 36 FROM tab2 cor0
----
1116
2124
612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * ( - cor0.col2 ) col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - - col1 + + col2 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
194
611975
93740

query I rowsort
SELECT - cor0.col1 * - ( - col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 57 + - 79 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT ALL tab1.col2 * - col0 * + col1 + 93 FROM tab1
----
-36387
-4119
-99747

query I rowsort
SELECT ALL 69 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6411
SELECT DISTINCT 13 DIV 68 + + col1 * col0 AS col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT 13 / 68 + + col1 * col0 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6412
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 86 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 86 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 73 AS col0 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT - ( 52 ) AS col0 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT DISTINCT col1 * - 9 AS col0 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT ( col1 ) - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - ( + cor0.col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb

query I rowsort
SELECT + ( - col0 ) * + tab2.col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 90 * col2 * col0 FROM tab2 AS cor0
----
17010
182520
270180

query I rowsort
SELECT ALL - col2 * 10 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT - + ( ( col2 ) ) + ( col1 ) * col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + col1 * - col0 * - ( col2 ) FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - - 28 FROM tab1 cor0
----
28
28
28

query I rowsort
SELECT + - ( - col1 ) + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - 0 * + col0 * 10 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * + col2 col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT + col0 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-6429
SELECT + col0 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT - 69 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
3579
7611
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6431
SELECT ALL 23 + col2 * + col2 DIV - cor0.col2 FROM tab1 AS cor0
----
-31
-34
-73

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL 23 + col2 * + col2 / - cor0.col2 FROM tab1 AS cor0
----
-31
-34
-73

query I rowsort
SELECT ALL ( - col0 ) * + col0 + + 87 AS col0 FROM tab1 AS cor0
----
-4009
-6313
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * col0 col0 FROM tab0 cor0
----
1295
3293
888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT + col0 + + col2 * + col1 + CAST( - col1 + + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6434
SELECT + col0 + + col2 * + col1 + CAST ( - col1 + + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - 59 * + col0 FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT + - col0 * col0 + - 19 * + col2 AS col0 FROM tab2 cor0
----
-562
-6578
-6963

query I rowsort
SELECT + col1 + + ( 6 ) FROM tab2 cor0
----
23
37
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - - 89 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT - + 28 + cor1.col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0afd03d57ecc5690c2292dc570d1992c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT col2 + - col0 DIV tab1.col2 FROM tab1
----
54
56
96

skipif mysql # not compatible
query I rowsort label-6441
SELECT col2 + - col0 / tab1.col2 FROM tab1
----
54
56
96

query I rowsort
SELECT cor0.col1 * col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT col0 + ( 59 ) * - col0 FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT ALL - + col1 + + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + - col2 * + col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - col1 * + 93 AS col1 FROM tab0
----
-7998
-8463
-9021

query I rowsort
SELECT DISTINCT - col1 + 7 * col1 AS col1 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT DISTINCT ( - col2 ) * col0 - ( - cor0.col1 * col0 ) FROM tab1 AS cor0
----
-3008
-6640
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6449
SELECT ALL + col2 DIV + col0 col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL + col2 / + col0 col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col2 * 67 + col0 * - ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
-1158
-16797
-644028

query I rowsort
SELECT ALL + 39 + + col1 * tab0.col1 FROM tab0
----
7435
8320
9448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * col1 col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL - 88 + + col0 FROM tab1
----
-24
-8
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT + + ( col2 ) + - col0 * - col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-6454
SELECT + + ( col2 ) + - col0 * - col0 / - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT - col1 * col2 + col2 DIV - col0 FROM tab2 AS cor0
----
-1534
-646
-840

skipif mysql # not compatible
query I rowsort label-6455
SELECT - col1 * col2 + col2 / - col0 FROM tab2 AS cor0
----
-1534
-646
-840

query I rowsort
SELECT - 6 + col1 AS col2 FROM tab0 AS cor0
----
80
85
91

query I rowsort
SELECT DISTINCT ( col1 ) * col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col1 - col1 * col0 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT - col0 + col1 - 98 * - col1 AS col0 FROM tab2 cor0
----
1604
3062
5763

query I rowsort
SELECT - - col1 * 61 + 49 - - col2 FROM tab2 AS cor0
----
1124
1967
3674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + col1 * col2 * col1 + cor0.col1 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT DISTINCT + col0 + ( col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 55 + - tab1.col2 * col0 + col2 AS col1 FROM tab1
----
-163
-3646
-7639

query I rowsort
SELECT col2 + col2 + 29 FROM tab0 AS cor0
----
193
31
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6467
SELECT + col0 - CAST( 5 AS SIGNED ) FROM tab1 AS cor0
----
-2
59
75

skipif mysql # not compatible
query I rowsort label-6467
SELECT + col0 - CAST ( 5 AS INTEGER ) FROM tab1 AS cor0
----
-2
59
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6468
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + 15 FROM tab0 AS cor0
----
-18
-67
14

query I rowsort
SELECT - col0 * - col2 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT DISTINCT cor0.col0 * cor0.col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT cor0.col0 * cor0.col1 / + col1 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6473
SELECT ALL CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 86 col0 FROM tab1 AS cor0
----
4644
4902
8256

onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT ALL - - col1 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - - col1 / col1 + col1 AS col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT - + ( 4 ) * - col1 AS col2 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT ALL + 50 * cor0.col2 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT DISTINCT - + 48 AS col1 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * - ( + col2 ) FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + + col1 * + col2 * 88 FROM tab1 AS cor0
----
109824
123552
50160

query I rowsort
SELECT - + col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab1 AS cor0
----
8

query I rowsort
SELECT DISTINCT col1 * + col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + col2 + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + tab2.col2 * + col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col0 + - cor0.col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + col2 * col2 AS col1 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT ALL - + col1 * - col1 + + ( col2 ) FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - - col0 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT col1 + + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6491
SELECT col1 + + col0 / col2 AS col1 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT + cor0.col0 + - col1 * 72 * col1 FROM tab0 AS cor0
----
-532488
-596143
-677413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - cor0.col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col1 + + 46 * col2 FROM tab1 AS cor0
----
2458
2612
4403

query I rowsort
SELECT - - col1 + + col2 * 82 AS col2 FROM tab0 AS cor0
----
179
2792
6815

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 + + 45 AS col0 FROM tab0 AS cor0
----
45

query I rowsort
SELECT DISTINCT + cor0.col2 + - 43 * - 67 AS col0 FROM tab1 cor0
----
2935
2938
2977

query I rowsort
SELECT - - col0 * cor0.col0 + 45 AS col1 FROM tab0 AS cor0
----
1270
621
7966

query I rowsort
SELECT + cor0.col1 * cor0.col0 + ( col0 ) + - ( - col2 ) * - col1 AS col1 FROM tab0 cor0
----
-750
3333
726

query I rowsort
SELECT ALL ( - ( cor0.col1 ) ) AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - - 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6502
SELECT + - col0 DIV 63 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT + - col0 / 63 AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6503
SELECT ALL + + CAST( NULL AS SIGNED ) + + 53 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL + + CAST ( NULL AS INTEGER ) + + 53 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT DISTINCT + - col0 - + cor0.col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT + - col0 - + cor0.col2 / - col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ( - col1 ) + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 86 * 90 AS col2 FROM tab0 AS cor0
----
-7740
-7740
-7740

query I rowsort
SELECT DISTINCT - 96 - col1 * + col0 FROM tab2 AS cor0
----
-1439
-313
-4698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6508
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) + + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + 37 + col0 AS col0 FROM tab1 AS cor0
----
101
117
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6511
SELECT ALL + + CAST( NULL AS SIGNED ) - - 17 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + + CAST ( NULL AS INTEGER ) - - 17 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6512
SELECT col2 * 66 + + col1 DIV ( col0 ) FROM tab0 AS cor0
----
2181
5413
68

skipif mysql # not compatible
query I rowsort label-6512
SELECT col2 * 66 + + col1 / ( col0 ) FROM tab0 AS cor0
----
2181
5413
68

query I rowsort
SELECT ALL + col1 + col1 * cor0.col2 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-243982
-678951
-9312

query I rowsort
SELECT DISTINCT - ( - 32 ) * col1 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT ALL 91 + - col1 * col0 FROM tab1 AS cor0
----
-549
-949
13

query I rowsort
SELECT ALL + col2 - - col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT col0 * - col1 + - col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT + col0 + col2 - + col0 FROM tab1
----
54
57
96

query I rowsort
SELECT col0 * tab0.col2 + tab0.col0 * + tab0.col1 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT ALL col0 + + col2 * - tab2.col2 * tab2.col0 FROM tab2
----
-113997
-5096
-52650

query I rowsort
SELECT - col0 + 17 FROM tab0
----
-18
-7
-72

query I rowsort
SELECT - ( - 34 ) + - col0 FROM tab0 AS cor0
----
-1
-55
10

query I rowsort
SELECT ALL - cor1.col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6525
SELECT - CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6525
SELECT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
86
91
97

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT col0 + col2 DIV - col0 FROM tab1 cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-6527
SELECT col0 + col2 / - col0 FROM tab1 cor0
----
-15
64
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6528
SELECT DISTINCT CAST( NULL AS SIGNED ) * 86 + - col1 * - ( 76 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 86 + - col1 * - ( 76 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 17 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col2 col1 FROM tab0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6531
SELECT DISTINCT col0 + CAST( col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT col0 + CAST ( col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT ALL + + col1 + cor0.col2 DIV + 64 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL + + col1 + cor0.col2 / + 64 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col2 - tab0.col0 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL col2 + + 6 FROM tab0
----
39
7
88

query I rowsort
SELECT ALL + tab2.col0 + col0 + col1 * - col1 AS col2 FROM tab2
----
-131
-3325
-947

query I rowsort
SELECT DISTINCT col1 + 22 AS col2 FROM tab2
----
39
53
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col1 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT col1 + - 7 FROM tab2 cor0
----
10
24
52

query I rowsort
SELECT col2 * 90 + - ( + col0 ) FROM tab0 cor0
----
2946
55
7291

query I rowsort
SELECT DISTINCT col0 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT ALL cor0.col1 DIV col0 - - col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
841

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL cor0.col1 / col0 - - col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
841

query I rowsort
SELECT - col1 * col2 + + 35 * col1 * + cor0.col0 FROM tab0 cor0
----
118728
276003
69402

query I rowsort
SELECT - cor0.col0 + + col2 AS col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL 68 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT - 39 - 7 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6546
SELECT + 67 DIV col1 col1 FROM tab2 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6546
SELECT + 67 / col1 col1 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT - + col0 * + col0 + - 73 * 30 AS col2 FROM tab1 AS cor0
----
-2199
-6286
-8590

onlyif mysql # use DIV operator for integer division
query I rowsort label-6548
SELECT col2 DIV col2 + - col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6548
SELECT col2 / col2 + - col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 73 * col0 col2 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT + 32 * col0 + + 6 + - col0 FROM tab2 AS cor0
----
223
2424
2455

query I rowsort
SELECT + col2 + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT ALL + cor0.col1 * + 6 + col2 AS col0 FROM tab1 AS cor0
----
117
174
210

query I rowsort
SELECT - ( - 48 ) * - cor0.col0 + 80 AS col1 FROM tab0 AS cor0
----
-1072
-1600
-4192

query I rowsort
SELECT ( ( col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * - 69 col1 FROM tab1 AS cor0
----
-6279
-6279
-6279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT ALL - + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6559
SELECT + CAST( col0 AS SIGNED ) + + col0 AS col0 FROM tab0 cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-6559
SELECT + CAST ( col0 AS INTEGER ) + + col0 AS col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT ALL col0 DIV ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL col0 / ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6561
SELECT DISTINCT + ( + col2 ) * - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + ( + col2 ) * - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3

query I rowsort
SELECT - 45 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL 61 + + 19 AS col2 FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 89 AS REAL ) AS col1 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT ALL - col0 + + 39 AS col1 FROM tab1
----
-25
-41
36

query I rowsort
SELECT - col0 - - cor0.col0 * col2 * col2 FROM tab0 cor0
----
0
26112
598347

query I rowsort
SELECT col0 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + 58 + col2 AS col1 FROM tab0 AS cor0
----
140
59
91

query I rowsort
SELECT DISTINCT - cor0.col0 * tab1.col2 AS col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
9 values hashing to 99e52647357b835698a6730896ff820d

query I rowsort
SELECT 56 + - tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 69150553ec8894e8cbcf2827ac5f52d1

query I rowsort
SELECT + 43 * col1 FROM tab0
----
3698
3913
4171

query I rowsort
SELECT ALL tab0.col1 + + col1 * col2 + col0 FROM tab0
----
229
2948
7642

query I rowsort
SELECT DISTINCT - + 92 * cor0.col2 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT col2 * - cor0.col2 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * col0 - + ( col2 ) FROM tab0 AS cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * + ( cor0.col0 ) + - col1 col1 FROM tab1 AS cor0
----
-233482
-512
-614413

query I rowsort
SELECT 94 * col0 * + col0 FROM tab0
----
115150
54144
744574

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT DISTINCT col1 DIV + col1 - + col0 AS col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT col1 / + col1 - + col0 AS col0 FROM tab2
----
-6
-77
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT - tab0.col1 DIV - col1 - col1 AS col2 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6580
SELECT - tab0.col1 / - col1 - col1 AS col2 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT col1 * col0 * + 61 AS col0 FROM tab2
----
13237
280722
81923

query I rowsort
SELECT + 54 + col2 AS col0 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT + col1 - - tab2.col0 * col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL col1 * 57 AS col2 FROM tab2
----
1767
3363
969

query I rowsort
SELECT tab0.col0 + - 25 FROM tab0, tab0 AS cor0
----
9 values hashing to 8c01861655db553c6402de5d7f0033ea

query I rowsort
SELECT ALL col0 + - col0 * col0 AS col2 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT - 15 * + col0 * col0 FROM tab2 AS cor0
----
-735
-91260
-93615

query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col1 FROM tab1
----
100
169
676

query I rowsort
SELECT + + col1 * ( cor0.col2 ) + - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT 84 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-105
-1944
-2918

query I rowsort
SELECT + ( - cor0.col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT - col1 DIV col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6592
SELECT - col1 / col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT DISTINCT + + cor0.col0 + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT + + cor0.col0 + col0 / + col2 AS col0 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT col0 + + 59 * col2 AS col1 FROM tab2 AS cor0
----
1600
1612
2321

query I rowsort
SELECT ALL + ( - col0 ) * col0 + - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-6596
SELECT ALL - - cor0.col1 + col2 DIV col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - - cor0.col1 + col2 / col2 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6597
SELECT ALL col0 * 10 - - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL col0 * 10 - - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 90 col0 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT - col2 + ( 42 ) * - col1 AS col2 FROM tab0
----
-3645
-3904
-4075

query I rowsort
SELECT ALL + 96 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT DISTINCT col2 + ( 56 + + col2 ) * + ( - col0 ) * col1 AS col0 FROM tab1
----
-157984
-72263
-8526

query I rowsort
SELECT col1 * - ( tab0.col2 ) + col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + 71 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + - col1 col0 FROM tab1
----
1027
52
630

query I rowsort
SELECT - col2 + - col1 * col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - ( - cor0.col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6608
SELECT DISTINCT - + 77 + - col1 * col0 * + CAST( 29 + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2105
22323
52963

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - + 77 + - col1 * col0 * + CAST ( 29 + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2105
22323
52963

query I rowsort
SELECT DISTINCT - col0 + - 90 * col0 AS col0 FROM tab0 AS cor0
----
-2184
-3185
-8099

query I rowsort
SELECT ALL - ( - cor0.col1 ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 51 * 42 + col1 FROM tab1 AS cor0
----
-2116
-2129
-2132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col2 * + tab2.col0 + + tab2.col0 - tab2.col2 FROM tab2
----
169
2080
3043

query I rowsort
SELECT col0 + tab1.col0 + + col2 FROM tab1
----
185
256
60

query I rowsort
SELECT + col2 + col2 + + col1 FROM tab1
----
124
134
205

query I rowsort
SELECT 35 + col1 FROM tab1
----
45
48
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * col0 col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT 19 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - col2 * - col0 + 48 AS col1 FROM tab2 cor0
----
2076
237
3050

query I rowsort
SELECT - col2 * - cor0.col0 + - col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT DISTINCT - 12 + - col0 DIV + col0 - - tab1.col0 AS col2 FROM tab1
----
-10
51
67

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - 12 + - col0 / + col0 - - tab1.col0 AS col2 FROM tab1
----
-10
51
67

query I rowsort
SELECT ALL col1 * - col1 - ( + col1 * - tab2.col2 ) AS col2 FROM tab2
----
-124
-1947
357

query I rowsort
SELECT + 9 * col2 * col1 FROM tab0
----
25542
67158
873

query I rowsort
SELECT col1 + 48 * col1 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT - col0 * 84 + 2 AS col0 FROM tab0 AS cor0
----
-2014
-2938
-7474

query I rowsort
SELECT ALL - - col0 * ( col0 ) + + col0 AS col2 FROM tab0 cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT - + cor0.col1 DIV + col2 + col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-6627
SELECT - + cor0.col1 / + col2 + col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT - cor0.col1 DIV + ( - 76 ) - cor0.col2 col2 FROM tab0 AS cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6628
SELECT - cor0.col1 / + ( - 76 ) - cor0.col2 col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT + + col0 * - 91 + + col2 - - col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-11674
-827
-8494

query I rowsort
SELECT - col0 + ( ( + col2 ) * col2 ) FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT col2 * + col0 + col0 AS col0 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT DISTINCT - - col1 + + 67 * - col0 + cor0.col2 * - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-1555
-2249
-5954

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - - col1 + + 67 * - col0 + cor0.col2 * - col0 / col0 AS col1 FROM tab0 AS cor0
----
-1555
-2249
-5954

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + - col1 AS col0 FROM tab1 cor0
----
-110
-182
-702

query I rowsort
SELECT col1 * 93 + col2 * - col2 FROM tab0 AS cor0
----
1739
6909
9020

query I rowsort
SELECT + - col0 * + col1 + + col0 * - col1 FROM tab0 AS cor0
----
-16198
-4128
-6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-6636
SELECT DISTINCT - col2 * 22 DIV 71 FROM tab1 AS cor0
----
-16
-17
-29

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT - col2 * 22 / 71 FROM tab1 AS cor0
----
-16
-17
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 40 col2 FROM tab0 cor0
----
1400
3560
960

query I rowsort
SELECT + col0 + col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL - col1 + ( col1 + col2 ) AS col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT DISTINCT - col1 * - col1 DIV - col1 + + col1 + 53 AS col0 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT - col1 * - col1 / - col1 + + col1 + 53 AS col0 FROM tab0
----
53

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab2, tab2 AS cor0
----
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT + col0 * col0 DIV col0 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6642
SELECT + col0 * col0 / col0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL col1 + + ( - col1 ) * + col2 AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL + col2 + + ( 98 ) FROM tab2
----
124
125
136

query I rowsort
SELECT + col0 * ( - col0 ) * + col1 + + col2 AS col1 FROM tab0
----
-118824
-49503
-720729

query I rowsort
SELECT col2 + + 16 AS col2 FROM tab2 AS cor0
----
42
43
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT + + col1 DIV ( col1 ) + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-6647
SELECT + + col1 / ( col1 ) + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT DISTINCT - + cor0.col1 + ( col0 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + ( 6 ) AS col2 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT - ( col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT ( 79 ) * col2 DIV 72 FROM tab2 AS cor0
----
28
29
41

skipif mysql # not compatible
query I rowsort label-6651
SELECT ( 79 ) * col2 / 72 FROM tab2 AS cor0
----
28
29
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6652
SELECT - CAST( NULL AS DECIMAL ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT - CAST ( NULL AS REAL ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 + - 37 FROM tab2 AS cor0
----
-54
-68
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT ALL 57 DIV col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL 57 / col0 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT - 96 * - ( - col2 ) * col1 FROM tab0 AS cor0
----
-272448
-716352
-9312

query I rowsort
SELECT - ( - col2 ) * cor0.col0 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + - col1 + - 23 FROM tab0 cor0
----
-109
-114
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT DISTINCT col0 / CAST( NULL AS SIGNED ) + - 53 / + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT col0 / CAST ( NULL AS INTEGER ) + - 53 / + col0 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6660
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) + 57 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) + 57 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 32 * col1 AS col1 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT + + 25 * ( col1 ) + - col1 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT col1 * col0 + col0 - 73 AS col2 FROM tab0 AS cor0
----
2015
3357
8115

onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT ALL - + 20 * cor0.col1 + + col1 * + col2 DIV col2 FROM tab1 cor0
----
-190
-247
-494

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - + 20 * cor0.col1 + + col1 * + col2 / col2 FROM tab1 cor0
----
-190
-247
-494

query I rowsort
SELECT ALL - - 78 + + col0 FROM tab1 AS cor0
----
142
158
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6666
SELECT ALL + + col0 DIV + col0 + - ( 96 ) + col1 * 87 AS col0 FROM tab2 AS cor0
----
1384
2602
5038

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + + col0 / + col0 + - ( 96 ) + col1 * 87 AS col0 FROM tab2 AS cor0
----
1384
2602
5038

onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT DISTINCT - col1 DIV col2 + col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - col1 / col2 + col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - 87 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
23
7
84

query I rowsort
SELECT - - col1 * cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - + 23 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + - 33 AS col0 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT - - ( + col2 ) AS col0 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6673
SELECT ALL + ( col1 ) * CAST( NULL AS DECIMAL ) + 33 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL + ( col1 ) * CAST ( NULL AS REAL ) + 33 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 55 * col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT ALL ( - col1 * - col0 ) AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL - + ( col1 ) + 82 FROM tab1 AS cor0
----
56
69
72

query I rowsort
SELECT DISTINCT - + ( - col1 ) * 41 - 86 AS col1 FROM tab2 cor0
----
1185
2333
611

query I rowsort
SELECT + + 44 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT ALL - 97 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-17
-33
-94

query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 + col0 FROM tab1 AS cor0
----
-1072
-1347
-449

query I rowsort
SELECT col1 + ( col1 ) - col2 FROM tab2 cor0
----
-4
35
92

query I rowsort
SELECT + col0 + + col0 + col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT 12 FROM tab0, tab0 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6684
SELECT ALL CAST( - col2 AS SIGNED ) + col2 * ( col0 ) + col2 * + col2 col1 FROM tab1
----
16800
3024
6840

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL CAST ( - col2 AS INTEGER ) + col2 * ( col0 ) + col2 * + col2 col1 FROM tab1
----
16800
3024
6840

query I rowsort
SELECT ALL ( + 42 * - tab0.col1 ) AS col2 FROM tab0
----
-3612
-3822
-4074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab2, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ( + col0 * col1 ) AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - + 13 + - col0 * col0 AS col0 FROM tab1 cor0
----
-22
-4109
-6413

query I rowsort
SELECT 53 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col0 * 62 AS col0 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT ALL col0 * 9 * 72 AS col2 FROM tab0 cor0
----
15552
22680
57672

onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT DISTINCT col1 DIV - 23 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT col1 / - 23 AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT ALL - col2 + 97 FROM tab2 cor0
----
59
70
71

query I rowsort
SELECT DISTINCT - col1 * - 56 FROM tab2 AS cor0
----
1736
3304
952

onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT + + col2 + 48 * + col1 DIV + col1 FROM tab0 cor0
----
130
49
81

skipif mysql # not compatible
query I rowsort label-6696
SELECT + + col2 + 48 * + col1 / + col1 FROM tab0 cor0
----
130
49
81

query I rowsort
SELECT col2 + 78 AS col1 FROM tab0 AS cor0
----
111
160
79

query I rowsort
SELECT + + 70 * col2 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT + cor0.col1 * + 84 AS col2 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT - ( + 82 ) AS col2 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6701
SELECT + 97 * col1 DIV col0 FROM tab0 AS cor0
----
268
347
99

skipif mysql # not compatible
query I rowsort label-6701
SELECT + 97 * col1 / col0 FROM tab0 AS cor0
----
268
347
99

query I rowsort
SELECT - + ( col0 ) * + col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) 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 tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6705
SELECT + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6705
SELECT + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6706
SELECT DISTINCT 69 + col2 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
71
74
76

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT 69 + col2 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
71
74
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6707
SELECT - + CAST( - 81 AS SIGNED ) FROM tab2 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-6707
SELECT - + CAST ( - 81 AS INTEGER ) FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + + col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT ALL 73 + cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d04d054941c860441df9bac8db21cb97

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 20 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT col1 * 59 + col0 AS col0 FROM tab2
----
1082
1836
3559

query I rowsort
SELECT - cor0.col0 * 84 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2027acce54418cd6be1f9bdb349717c0

query I rowsort
SELECT + col1 + - ( + col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 * - col2 + 28 AS col2 FROM tab1 AS cor0
----
1276
1432
598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT DISTINCT CAST( NULL AS SIGNED ) + + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6718
SELECT ALL - - col0 + col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL - - col0 + col0 / + col1 AS col1 FROM tab2 AS cor0
----
7
79
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT - 89 DIV col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-6719
SELECT - 89 / col1 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT ALL tab0.col2 * + 0 + 76 FROM tab0
----
76
76
76

query I rowsort
SELECT ALL col2 + 50 AS col1 FROM tab1
----
104
107
146

query I rowsort
SELECT - - col2 * col2 - 34 AS col2 FROM tab2 AS cor0
----
1410
642
695

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + col1 - cor0.col0 * ( 60 ) FROM tab1 AS cor0
----
-154
-3830
-4787

query I rowsort
SELECT - col1 * - col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT 34 * - col2 + col0 FROM tab0 AS cor0
----
-1098
-2699
1

query I rowsort
SELECT + - cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * + 81 + + 0 col0 FROM tab1 AS cor0
----
4374
4617
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT ALL + col2 + + col1 DIV + col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + col2 + + col1 / + col1 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT + 95 * col2 + cor0.col2 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT ALL + - 99 - col1 FROM tab1 AS cor0
----
-109
-112
-125

query I rowsort
SELECT + col1 - + col2 AS col0 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 * col0 * col0 + cor0.col2 col2 FROM tab1 AS cor0
----
127033
198496
333

query I rowsort
SELECT DISTINCT + col0 * col1 * + 84 + + tab1.col2 AS col2 FROM tab1
----
53817
6606
87456

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT 80 + col0 DIV + col2 FROM tab1
----
80
80
81

skipif mysql # not compatible
query I rowsort label-6735
SELECT 80 + col0 / + col2 FROM tab1
----
80
80
81

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6737
SELECT DISTINCT + col2 DIV tab0.col1 + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT + col2 / tab0.col1 + col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT ALL - col2 + - col1 DIV + col0 FROM tab1 cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - col2 + - col1 / + col0 FROM tab1 cor0
----
-57
-62
-96

query I rowsort
SELECT - col0 + 21 FROM tab2 AS cor0
----
-57
-58
14

query I rowsort
SELECT ALL - col2 + col1 * - 16 AS col1 FROM tab1
----
-217
-304
-470

query I rowsort
SELECT ALL + col0 * col2 * + col2 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
208000
737360
8751

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT ALL 60 + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL 60 + col0 / col0 AS col0 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT ALL 26 * col2 + col1 * - col0 FROM tab0 AS cor0
----
-1206
-3369
-5967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 82 * cor0.col0 col0 FROM tab0 AS cor0
----
1992
2905
7387

query I rowsort
SELECT ALL 9 * + col1 + - col2 FROM tab1 AS cor0
----
180
21
33

query I rowsort
SELECT DISTINCT + col0 - col2 AS col0 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT + col1 + col1 DIV col0 AS col0 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-6747
SELECT + col1 + col1 / col0 AS col0 FROM tab2
----
17
35
59

query I rowsort
SELECT + tab0.col1 - col2 * 68 AS col0 FROM tab0
----
-2158
-5485
29

query I rowsort
SELECT DISTINCT + col0 * ( ( - col2 ) ) * tab1.col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col2 * + tab2.col0 + - tab2.col2 * col2 AS col1 FROM tab2
----
-540
1352
1558

query I rowsort
SELECT DISTINCT - col0 * ( + 18 ) AS col0 FROM tab1
----
-1152
-1440
-54

query I rowsort
SELECT - col1 * col2 + - col0 AS col1 FROM tab2
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6753
SELECT ALL tab0.col1 DIV - col1 - tab0.col0 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL tab0.col1 / - col1 - tab0.col0 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT col2 - 19 FROM tab1
----
35
38
77

query I rowsort
SELECT ALL + col0 * + col2 - col0 * - col2 * - 27 AS col2 FROM tab1
----
-199680
-4212
-94848

query I rowsort
SELECT DISTINCT - col2 * - 71 + col2 * - 73 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL col2 * col2 + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-6758
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT CAST ( col0 AS INTEGER ) / cor0.col0 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 8 * - 58 + col0 FROM tab2 AS cor0
----
-385
-386
-457

query I rowsort
SELECT ALL - ( + col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + ( - 22 ) + col1 AS col1 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT DISTINCT col2 * 84 AS col1 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT - 57 * 74 AS col2 FROM tab2 AS cor0
----
-4218
-4218
-4218

query I rowsort
SELECT DISTINCT - col0 * 91 + col2 FROM tab2 cor0
----
-610
-7072
-7151

query I rowsort
SELECT - ( - tab0.col2 ) + col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col1 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL - - ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT + ( col1 * - tab1.col2 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab0, tab1 AS cor0
----
19

query I rowsort
SELECT ALL tab2.col0 * - 2 AS col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT + col0 * col0 - col0 * cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 6 AS col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + - 10 AS col2 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT 8 + col1 * 94 * col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
266756
701347
9091

query I rowsort
SELECT DISTINCT + 57 * + col2 AS col2 FROM tab1 AS cor0
----
3078
3249
5472

query I rowsort
SELECT DISTINCT - 60 + + col0 AS col2 FROM tab0 AS cor0
----
-25
-36
29

query I rowsort
SELECT DISTINCT tab2.col0 + - 4 AS col1 FROM tab2, tab2 AS cor0
----
3
74
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6779
SELECT col2 + col2 * + CAST( col1 AS SIGNED ) col0 FROM tab0 cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6779
SELECT col2 + col2 * + CAST ( col1 AS INTEGER ) col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT - - 17 + cor0.col0 * col2 FROM tab2 AS cor0
----
2045
206
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 11 - cor0.col1 col2 FROM tab2 AS cor0
----
-28
-42
-70

query I rowsort
SELECT + col2 + - col1 + col0 * col2 FROM tab0 AS cor0
----
-61
7289
739

query I rowsort
SELECT ALL + + 40 AS col2 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT + - 27 * - col2 - + 70 * col2 FROM tab0 cor0
----
-1419
-3526
-43

query I rowsort
SELECT ALL - col1 * - 51 AS col1 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab1, tab2 AS cor0
----
27

query I rowsort
SELECT - col2 * + ( + cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + col0 + ( + col0 ) * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - col1 + + col0 * ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + col2 * - 35 AS col1 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT ALL - cor0.col0 + - 22 AS col1 FROM tab0 AS cor0
----
-111
-46
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 74 + + col1 + cor0.col2 col2 FROM tab0 AS cor0
----
172
2561
6241

query I rowsort
SELECT ALL + col2 * ( col0 ) + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col0 + 43 * + col2 FROM tab1 AS cor0
----
2319
2387
4048

query I rowsort
SELECT ALL + - col0 + ( + col1 * - col0 ) FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 * col0 col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - 75 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT - col1 * col1 * col2 AS col0 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT cor0.col0 * + 50 FROM tab2 cor0
----
350
3900
3950

query I rowsort
SELECT - - 85 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col0 col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + ( col1 + - tab0.col2 ) FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * 27 AS col1 FROM tab1 AS cor0
----
-270
-351
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) + cor0.col1 * - cor0.col1 col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT + + 84 * col2 FROM tab2 cor0
----
2184
2268
3192

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL col1 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL + tab2.col2 + - cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 346ecce5023d3440fcfb161aa071fa19

query I rowsort
SELECT DISTINCT + 61 + - cor0.col2 FROM tab0 cor0
----
-21
28
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * + 62 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f34f0398680a7f30feb481be04388d72

query I rowsort
SELECT - 56 * col2 AS col2 FROM tab1 cor0
----
-3024
-3192
-5376

query I rowsort
SELECT - - col1 + col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * col2 col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + 55 + - col0 * + ( + col1 * col1 ) FROM tab2 AS cor0
----
-22776
-271463
-6672

query I rowsort
SELECT ( - col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT col1 + - col0 * + col2 * cor0.col2 FROM tab1 AS cor0
----
-207926
-737267
-8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT - tab2.col1 * col1 DIV col0 + col0 FROM tab2
----
-130
34
76

skipif mysql # not compatible
query I rowsort label-6819
SELECT - tab2.col1 * col1 / col0 + col0 FROM tab2
----
-130
34
76

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( - 23 AS REAL ) * col2 FROM tab2 cor0
----
-520
-614
-795

query I rowsort
SELECT DISTINCT + + 3 + + cor0.col1 FROM tab1, tab1 AS cor0
----
13
16
29

query I rowsort
SELECT col2 * col2 + cor0.col1 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT + ( + ( col2 DIV + col2 ) ) * - col0 DIV - col1 + - col2 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-6823
SELECT + ( + ( col2 / + col2 ) ) * - col0 / - col1 + - col2 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT - 20 + col0 * col2 * 9 FROM tab2 AS cor0
----
1681
18232
26998

query I rowsort
SELECT ALL ( - col2 * col0 ) - - col0 * col2 * tab1.col0 FROM tab1
----
229824
324
606720

query I rowsort
SELECT - col2 * cor0.col0 + - cor0.col2 * - 94 FROM tab0 AS cor0
----
2310
410
59

query I rowsort
SELECT DISTINCT + 17 - + ( + col0 + + ( col2 ) ) FROM tab0
----
-154
-19
-40

query I rowsort
SELECT DISTINCT - ( - 43 ) + + col0 FROM tab1 AS cor0
----
107
123
46

query I rowsort
SELECT - + col2 + col2 - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - 78 * col2 - col1 * - ( + col1 ) AS col0 FROM tab1 cor0
----
-3536
-4346
-7319

query I rowsort
SELECT + col1 * - 12 + col0 FROM tab1 AS cor0
----
-309
-56
-76

query I rowsort
SELECT - - col1 * col1 + col1 + col2 AS col0 FROM tab1 AS cor0
----
167
278
756

query I rowsort
SELECT ALL col1 + col0 * + col0 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab1, tab2, tab1 AS cor0
----
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT - + col1 DIV cor0.col0 + + col1 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-5

skipif mysql # not compatible
query I rowsort label-6836
SELECT - + col1 / cor0.col0 + + col1 / - col1 FROM tab2 AS cor0
----
-1
-1
-5

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab1 AS cor0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT - cor0.col1 DIV - cor0.col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6838
SELECT - cor0.col1 / - cor0.col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ( - tab2.col1 + - col0 ) * ( ( - col2 ) ) FROM tab2
----
1026
3562
3648

query I rowsort
SELECT + col2 * - tab1.col1 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * + 12 AS col2 FROM tab2
----
312
324
456

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query I rowsort
SELECT DISTINCT col1 * - 30 FROM tab2 AS cor0
----
-1770
-510
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6844
SELECT DISTINCT + col0 / CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT + col0 / CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + cor0.col0 * - ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col1 + col0 col2 FROM tab2 cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6847
SELECT + col1 DIV 1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6847
SELECT + col1 / 1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col0 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6849
SELECT + col1 DIV 66 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6849
SELECT + col1 / 66 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * - ( + col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6851
SELECT ALL col2 DIV + 82 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL col2 / + 82 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col0 * + 57 + + col0 - - col1 AS col2 FROM tab1 AS cor0
----
200
3722
4653

query I rowsort
SELECT ALL + - cor0.col1 * + cor0.col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6855
SELECT + CAST( NULL AS SIGNED ) + col0 + 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-6855
SELECT + CAST ( NULL AS INTEGER ) + col0 + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + col1 * + col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + ( col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT 56 * - 28 * + cor0.col2 + 27 * - col1 FROM tab1 AS cor0
----
-150879
-85374
-89646

onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT DISTINCT col0 DIV + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT col0 / + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - + cor0.col2 + col0 + ( - col0 ) * + col0 * + col2 AS col2 FROM tab1 cor0
----
-233465
-537
-614416

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + 84 * col1 FROM tab1
----
1092
2184
840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6864
SELECT - cor0.col2 + col1 * - cor0.col1 / - ( col2 * CAST( NULL AS SIGNED ) + + cor0.col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT - cor0.col2 + col1 * - cor0.col1 / - ( col2 * CAST ( NULL AS INTEGER ) + + cor0.col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 15 + col2 AS col1 FROM tab0 cor0
----
16
48
97

query I rowsort
SELECT - + 19 AS col0 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL + cor0.col2 * + col1 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + cor0.col2 + - col1 * + ( + col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + - ( - col0 ) - + ( - col1 ) FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 17 col2 FROM tab2 cor0
----
-17

query I rowsort
SELECT ALL + - col1 * + 80 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT DISTINCT - + col1 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 95 col1 FROM tab1 AS cor0
----
-149
-152
-191

query I rowsort
SELECT col1 * col0 * ( + cor0.col0 ) FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + cor0.col2 * + 46 AS col2 FROM tab2 AS cor0
----
1196
1242
1748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6877
SELECT DISTINCT cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT tab2.col1 * + tab2.col0 + + 79 AS col1 FROM tab2
----
1422
296
4681

query I rowsort
SELECT - col1 * - ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT - cor0.col2 DIV 60 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-6880
SELECT - cor0.col2 / 60 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

query I rowsort
SELECT col1 * + 75 * + col1 FROM tab0 AS cor0
----
554700
621075
705675

onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT - + col0 DIV cor0.col0 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6882
SELECT - + col0 / cor0.col0 AS col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + col0 + + 21 FROM tab2 AS cor0
----
-57
-58
14

query I rowsort
SELECT ALL - col1 * + 24 * + col2 AS col1 FROM tab2 AS cor0
----
-15504
-20088
-36816

query I rowsort
SELECT - 6 * col0 * col0 FROM tab1
----
-24576
-38400
-54

query I rowsort
SELECT - 55 FROM tab1 cor0
----
-55
-55
-55

query I rowsort
SELECT 88 * tab0.col0 * col1 AS col0 FROM tab0
----
181632
298760
712712

query I rowsort
SELECT ALL ( - ( col1 ) ) + - col2 * col2 AS col0 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT ALL col0 * - 2 + - col2 AS col2 FROM tab1
----
-185
-256
-60

query I rowsort
SELECT cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) FROM tab0, tab1, tab1 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6892
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( col1 ) + CAST( col0 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( col1 ) + CAST ( col0 AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + tab2.col2 * + 44 + col1 AS col2 FROM tab2
----
1203
1219
1689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6894
SELECT - - col1 * - col1 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT - - col1 * - col1 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 68 + + col1 AS col0 FROM tab0 AS cor0
----
18
23
29

query I rowsort
SELECT DISTINCT + col1 - - col2 * 63 FROM tab1 AS cor0
----
3428
3601
6061

query I rowsort
SELECT ALL - 99 * + col2 * col1 FROM tab0 AS cor0
----
-280962
-738738
-9603

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6899
SELECT + + CAST( ( col1 ) AS SIGNED ) * + ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-6899
SELECT + + CAST ( ( col1 ) AS INTEGER ) * + ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 84 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT + 53 * cor0.col0 AS col0 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT ALL - col1 * tab0.col0 AS col1 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT ALL - 13 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - 13 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 + col0 * - col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT col2 * col1 + ( + col2 ) * + 74 * - col2 AS col1 FROM tab0 AS cor0
----
-490114
-77748
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 99 * col0 col2 FROM tab2 AS cor0
----
-700
-7800
-7900

query I rowsort
SELECT - col2 + + 50 * col1 FROM tab0 AS cor0
----
4267
4468
4849

query I rowsort
SELECT + + col1 + ( + 71 * - col0 ) FROM tab1 AS cor0
----
-187
-4534
-5667

query I rowsort
SELECT + col0 * col2 - + col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - col2 * 14 + 84 * - col1 FROM tab2 AS cor0
----
-1960
-2982
-5320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6911
SELECT ALL - col2 DIV col0 + - ( tab0.col2 * + col0 ) AS col2 FROM tab0
----
-35
-7298
-793

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL - col2 / col0 + - ( tab0.col2 * + col0 ) AS col2 FROM tab0
----
-35
-7298
-793

query I rowsort
SELECT ALL - 81 + + col1 FROM tab1
----
-55
-68
-71

query I rowsort
SELECT ALL ( + col1 ) + 63 + + 12 * + col2 FROM tab0
----
1138
172
545

query I rowsort
SELECT col2 * tab0.col2 * - ( col1 ) AS col1 FROM tab0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * 20 FROM tab1
----
1080
1140
1920

query I rowsort
SELECT ALL + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - 42 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT DISTINCT - - col2 + col0 * cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT + - ( + 5 ) + + col0 FROM tab1 AS cor0
----
-2
59
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col0 col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col0 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - col0 + + 64 FROM tab1 AS cor0
----
-16
0
61

query I rowsort
SELECT DISTINCT + col0 * col1 + col2 + 92 AS col0 FROM tab0 AS cor0
----
2189
3488
8273

query I rowsort
SELECT + 65 * - col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1744
-707
-941

query I rowsort
SELECT ALL + 94 + + ( col2 ) + - col1 FROM tab1 AS cor0
----
122
141
177

query I rowsort
SELECT DISTINCT + col1 * col2 - 57 FROM tab1
----
1191
1347
513

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - col0 * + ( + tab1.col1 ) * col2 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col2 * 35 AS col1 FROM tab2
----
1330
910
945

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( 11 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT DISTINCT - - 69 + ( - col2 ) * + col1 FROM tab0 AS cor0
----
-2769
-28
-7393

query I rowsort
SELECT DISTINCT - ( + col0 ) + col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT 38 * + 60 + + col2 AS col1 FROM tab0
----
2281
2313
2362

query I rowsort
SELECT ALL + col1 * col0 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col2 - + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * col1 + 34 AS col1 FROM tab2 AS cor0
----
323
3515
995

query I rowsort
SELECT + cor0.col1 * - cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6941
SELECT col1 * CAST( col2 AS SIGNED ) + col2 - - 56 FROM tab1
----
1400
1514
683

skipif mysql # not compatible
query I rowsort label-6941
SELECT col1 * CAST ( col2 AS INTEGER ) + col2 - - 56 FROM tab1
----
1400
1514
683

query I rowsort
SELECT - tab2.col2 * + col0 + - col1 AS col2 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT col1 * + ( - col0 ) - - tab0.col1 * - 78 AS col1 FROM tab0
----
-10961
-15197
-8772

query I rowsort
SELECT - 48 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6945
SELECT ALL - col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 73 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
243 values hashing to eba0d5133c113efdb9a1713e1b521c68

query I rowsort
SELECT ALL - col1 * - 22 FROM tab1 cor0
----
220
286
572

query I rowsort
SELECT - col0 + ( + col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col2 * col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + cor0.col1 + + 15 FROM tab2 AS cor0
----
32
46
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT + tab1.col1 * + col0 - + col1 DIV - col0 FROM tab1
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-6951
SELECT + tab1.col1 * + col0 - + col1 / - col0 FROM tab1
----
1040
640
86

query I rowsort
SELECT DISTINCT - - col1 - + col1 * + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - cor0.col2 * col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col2 * + tab0.col2 * col1 FROM tab0
----
-611884
-93654
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - tab1.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6956
SELECT DISTINCT + col1 * - col2 + + col0 DIV - col2 FROM tab1
----
-1248
-1404
-571

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT + col1 * - col2 + + col0 / - col2 FROM tab1
----
-1248
-1404
-571

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND cor0.col0 + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT ALL col0 DIV col2 + col0 AS col0 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL col0 / col2 + col0 AS col0 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT ALL - col2 * col2 * col1 + + col1 FROM tab1 AS cor0
----
-119795
-32480
-75790

query I rowsort
SELECT + col0 * - col2 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 * cor0.col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT DISTINCT col0 * - col2 + + tab0.col1 DIV col1 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT col0 * - col2 + + tab0.col1 / col1 FROM tab0
----
-34
-7297
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col1 * + col0 col0 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT col1 * col0 + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL + col2 + tab0.col1 + col2 AS col0 FROM tab0
----
152
255
99

query I rowsort
SELECT ALL + col1 + tab2.col2 AS col0 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col2 col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + col1 * col2 * col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 FROM tab2, tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - - cor0.col0 * - col2 * + col2 + col0 FROM tab0 AS cor0
----
-26112
-598347
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT - col0 DIV col0 - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-6972
SELECT - col0 / col0 - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1344
-218
-4603

onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT ALL + - col1 DIV + col2 AS col0 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL + - col1 / + col2 AS col0 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT - - cor0.col0 + col0 * - col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * + col1 col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT DISTINCT col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT col0 / cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + tab1.col0 * col1 * col1 - tab1.col2 FROM tab1
----
13424
1974
6343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * - col1 col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col2 + col0 * tab1.col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - - col2 + - col1 * + col2 * col2 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT DISTINCT - - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + + col1 * - col2 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT ALL col1 DIV tab2.col0 AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL col1 / tab2.col0 AS col1 FROM tab2
----
0
0
4

query I rowsort
SELECT - 0 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + + col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6989
SELECT DISTINCT + cor0.col2 * cor0.col0 + col2 DIV col0 + col1 FROM tab2 AS cor0
----
2087
223
3019

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT + cor0.col2 * cor0.col0 + col2 / col0 + col1 FROM tab2 AS cor0
----
2087
223
3019

query I rowsort
SELECT + col1 * - col1 * col2 AS col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT + 29 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT DISTINCT + + col1 * col2 + col2 * - col1 DIV cor0.col1 FROM tab2 AS cor0
----
1508
608
810

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT + + col1 * col2 + col2 * - col1 / cor0.col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - col0 * col0 * 39 + col1 * + col1 FROM tab0 AS cor0
----
-15068
-300638
-38366

query I rowsort
SELECT ALL - col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col2 + tab2.col0 + col0 FROM tab2
----
182
196
41

query I rowsort
SELECT - 82 * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
1992
2905
7387

query I rowsort
SELECT + col1 * - ( 96 ) FROM tab2 AS cor0
----
-1632
-2976
-5664

query I rowsort
SELECT col1 + col2 + col2 * col2 * - col0 FROM tab2 AS cor0
----
-114021
-5045
-52643

query I rowsort
SELECT DISTINCT 45 * - col1 AS col2 FROM tab1
----
-1170
-450
-585

query I rowsort
SELECT + - col0 + + ( col2 ) + - col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-131
-2829
-7469

query I rowsort
SELECT + + col2 * - ( cor0.col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT ALL - col1 * col0 DIV + ( + col0 ) col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL - col1 * col0 / + ( + col0 ) col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col2 * + col0 + col0 FROM tab1
----
165
3712
7760

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + col1 + tab0.col0 + col2 AS col2 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-7006
SELECT - col2 * col0 DIV + col1 AS col1 FROM tab1
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-7006
SELECT - col2 * col0 / + col1 AS col1 FROM tab1
----
-364
-590
-6

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT col1 - col0 IN ( col0 * + col2 )
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT DISTINCT col2 DIV - tab1.col0 AS col1 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT col2 / - tab1.col0 AS col1 FROM tab1
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT col1 * col0 DIV tab1.col2 FROM tab1
----
1
10
11

skipif mysql # not compatible
query I rowsort label-7009
SELECT col1 * col0 / tab1.col2 FROM tab1
----
1
10
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + + tab0.col2 col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - col1 * + col1 + + tab0.col1 + col2 * col2 FROM tab0
----
-1466
-6221
-9311

query I rowsort
SELECT DISTINCT col1 - + tab1.col2 * col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT col0 * col1 - - col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL col0 + tab0.col0 - + col1 AS col2 FROM tab0
----
-27
-38
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * tab1.col2 + col2 - + col0 col1 FROM tab1
----
213
3641
7696

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 + - col0 ) NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT col2 * - col1 + - col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 + tab2.col0 FROM tab2
----
114155
5110
52806

query I rowsort
SELECT ALL col0 * - col0 + col1 * + col2 FROM tab1
----
-3526
-5152
1395

query I rowsort
SELECT - col2 + + tab2.col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE col0 + col0 >= ( + col2 + - tab1.col1 )
----
64
10
57
80
13
96

query I rowsort
SELECT + col1 * col1 + - col1 AS col0 FROM tab0
----
7310
8190
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL - tab2.col1 + col0 * - col0 AS col0 FROM tab2
----
-6143
-6258
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT ALL - col0 DIV tab0.col2 - + col2 * - col1 AS col1 FROM tab0
----
2838
62
7461

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL - col0 / tab0.col2 - + col2 * - col1 AS col1 FROM tab0
----
2838
62
7461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col0 col0 FROM tab0
----
2088
3430
8188

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT col2 * tab1.col0 + - col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT DISTINCT - tab1.col0 * + tab1.col1 * + col1 + - col0 AS col1 FROM tab1
----
-13600
-2031
-6464

onlyif mysql # use DIV operator for integer division
query I rowsort label-7030
SELECT + col1 * col2 + tab0.col2 DIV - col0 AS col1 FROM tab0
----
2837
7462
97

skipif mysql # not compatible
query I rowsort label-7030
SELECT + col1 * col2 + tab0.col2 / - col0 AS col1 FROM tab0
----
2837
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT - tab0.col0 DIV - col1 + - col0 AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7031
SELECT - tab0.col0 / - col1 + - col0 AS col2 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * - col1 col0 FROM tab0
----
-4386
-4641
-4947

query I rowsort
SELECT 61 * + col2 AS col0 FROM tab1
----
3294
3477
5856

query I rowsort
SELECT + col2 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT - 69 DIV + col2 + - col0 * - col0 AS col0 FROM tab1 cor0
----
4095
6400
8

skipif mysql # not compatible
query I rowsort label-7035
SELECT - 69 / + col2 + - col0 * - col0 AS col0 FROM tab1 cor0
----
4095
6400
8

query I rowsort
SELECT col2 * col2 + col0 * col0 AS col1 FROM tab2 AS cor0
----
6760
7685
778

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT 62 AS col1 FROM tab2
----
62
62
62

query I rowsort
SELECT + col0 + 68 FROM tab1 AS cor0
----
132
148
71

query I rowsort
SELECT + col2 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7041
SELECT + tab2.col2 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT + tab2.col2 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - + col1 + - ( cor0.col2 ) AS col0 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7044
SELECT DISTINCT col1 + cor0.col1 - col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
19
25
51

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT col1 + cor0.col1 - col0 / + col0 AS col1 FROM tab1 AS cor0
----
19
25
51

query I rowsort
SELECT + col0 + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT cor0.col1 * col0 + col0 * cor0.col1 AS col0 FROM tab1 cor0
----
1280
156
2080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7047
SELECT + + col0 + CAST( + col2 AS SIGNED ) * col2 FROM tab0 AS cor0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-7047
SELECT + + col0 + CAST ( + col2 AS INTEGER ) * col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + 87 * - col2 FROM tab0 AS cor0
----
-2871
-7134
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 col1 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT + - col2 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT + ( 98 ) AS col1 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT + ( - cor0.col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + 72 * col2 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT + col0 + col1 - + ( col0 ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT + + 92 + + col0 DIV - col0 col2 FROM tab0 AS cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7055
SELECT + + 92 + + col0 / - col0 col2 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL - 92 + - col2 FROM tab0
----
-125
-174
-93

query I rowsort
SELECT 17 * + tab2.col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 105f3ce9cefe1bdb17ce2c7c3ffaecb6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT - col2 * + col2 + col2 DIV + col1 FROM tab2 AS cor0
----
-1442
-676
-729

skipif mysql # not compatible
query I rowsort label-7058
SELECT - col2 * + col2 + col2 / + col1 FROM tab2 AS cor0
----
-1442
-676
-729

query I rowsort
SELECT ALL + cor0.col2 + - col0 * cor0.col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT + + col0 - - col0 * - col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - + 82 + col2 * - col0 FROM tab1 AS cor0
----
-244
-3730
-7762

query I rowsort
SELECT - + col0 + - cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT col1 + - col1 * cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + col0 + + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7065
SELECT DISTINCT 84 DIV col0 + col0 * + col0 FROM tab1 AS cor0
----
37
4097
6401

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT 84 / col0 + col0 * + col0 FROM tab1 AS cor0
----
37
4097
6401

query I rowsort
SELECT ALL ( - tab2.col1 ) * - col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL - 80 + - cor0.col2 FROM tab2 cor0
----
-106
-107
-118

query I rowsort
SELECT DISTINCT + - ( col2 ) * - col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col0 FROM tab0 AS cor0
----
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT ALL + 46 * + col1 + - col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
1196
461
598

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL + 46 * + col1 + - col0 / - col2 AS col1 FROM tab1 AS cor0
----
1196
461
598

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 - - col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + col0 * col2 * col1 + + col1 + col1 FROM tab2 cor0
----
119770
51068
5921

query I rowsort
SELECT - + col0 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT ALL + col1 * col2 + - col0 + - col1 FROM tab2 AS cor0
----
1397
550
799

query I rowsort
SELECT ALL + col2 - - col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT col0 + + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT - 52 - - col0 * tab2.col0 FROM tab2
----
-3
6032
6189

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 44 FROM tab1, tab2 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col0 FROM tab0
----
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT col2 - + col1 DIV + col0 AS col0 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-7082
SELECT col2 - + col1 / + col0 AS col0 FROM tab0
----
-1
30
81

query I rowsort
SELECT 23 + col1 AS col2 FROM tab1 AS cor0
----
33
36
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT DISTINCT + 77 * - col2 + col2 DIV + col1 AS col2 FROM tab2 cor0
----
-2002
-2079
-2924

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT + 77 * - col2 + col2 / + col1 AS col2 FROM tab2 cor0
----
-2002
-2079
-2924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col0 col2 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7086
SELECT + - CAST( col2 AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-7086
SELECT + - CAST ( col2 AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7087
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + col2 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7089
SELECT DISTINCT - 19 * 74 + - col1 + CAST( NULL AS SIGNED ) / + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT - 19 * 74 + - col1 + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - + 74 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + - col1 + + 6 * + col0 FROM tab2 AS cor0
----
11
409
457

onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT + ( - col0 ) + + col2 DIV - ( 34 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-91

skipif mysql # not compatible
query I rowsort label-7092
SELECT + ( - col0 ) + + col2 / - ( 34 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-91

query I rowsort
SELECT - cor0.col1 + - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT DISTINCT 41 + - col2 * - col2 DIV col2 FROM tab0 AS cor0
----
123
42
74

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT 41 + - col2 * - col2 / col2 FROM tab0 AS cor0
----
123
42
74

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT - - 8 + col2 AS col1 FROM tab0 cor0
----
41
9
90

query I rowsort
SELECT DISTINCT - col0 * 92 * 53 + + col1 AS col1 FROM tab2
----
-34101
-380269
-385187

query I rowsort
SELECT - 10 * col1 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT - 98 AS col0 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7101
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT - 63 - - col2 FROM tab0
----
-30
-62
19

query I rowsort
SELECT ALL - + col2 + + ( - 83 ) FROM tab2 cor0
----
-109
-110
-121

query I rowsort
SELECT + - col0 * + col2 - + 24 AS col0 FROM tab2 AS cor0
----
-2052
-213
-3026

query I rowsort
SELECT ALL col2 * - col2 + col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + - col2 + + 87 AS col1 FROM tab2 cor0
----
49
60
61

query I rowsort
SELECT - col2 - 50 FROM tab2 AS cor0
----
-76
-77
-88

query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab1 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL col1 * + col2 * - 67 - + col2 AS col0 FROM tab2
----
-102804
-43320
-56106

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT ALL col1 + + col2 DIV - col0 AS col2 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL col1 + + col2 / - col0 AS col2 FROM tab2
----
17
28
59

query I rowsort
SELECT ALL col0 * + ( tab2.col2 ) + col2 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7113
SELECT ALL col2 - cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL col2 - cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 6 col2 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT ALL - cor0.col2 + - col1 * - 96 + col1 FROM tab2 AS cor0
----
1611
2980
5697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7116
SELECT ALL col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col1 + col1 * + col2 * + ( cor0.col1 ) + col2 FROM tab0 AS cor0
----
12805
246165
687223

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7118
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) / ( col0 + - ( + 61 ) * col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) / ( col0 + - ( + 61 ) * col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 13 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7120
SELECT - col0 DIV - 45 - col1 FROM tab1 AS cor0
----
-12
-26
-9

skipif mysql # not compatible
query I rowsort label-7120
SELECT - col0 / - 45 - col1 FROM tab1 AS cor0
----
-12
-26
-9

query I rowsort
SELECT ALL - col1 * + col1 * - col1 AS col2 FROM tab1 cor0
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT ALL col1 * - ( + 47 ) + col0 DIV ( + 34 * - col0 ) FROM tab0 AS cor0
----
-4042
-4277
-4559

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL col1 * - ( + 47 ) + col0 / ( + 34 * - col0 ) FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT - + col1 * + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * col1 col2 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7126
SELECT DISTINCT - ( col1 + col2 * CAST( col2 AS SIGNED ) ) AS col0 FROM tab0
----
-1175
-6815
-98

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - ( col1 + col2 * CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT ALL ( col1 ) + - cor0.col0 * - col1 * - 31 AS col1 FROM tab0 AS cor0
----
-105148
-250978
-63898

query I rowsort
SELECT col2 * 37 AS col1 FROM tab1
----
1998
2109
3552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7129
SELECT 29 * col0 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT 29 * col0 + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col1 + + ( col2 ) FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT - + cor0.col1 + col2 DIV 9 AS col2 FROM tab1 AS cor0
----
-20
-3
-4

skipif mysql # not compatible
query I rowsort label-7131
SELECT - + cor0.col1 + col2 / 9 AS col2 FROM tab1 AS cor0
----
-20
-3
-4

query I rowsort
SELECT ALL + 86 + + col1 AS col2 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT + 54 * cor0.col1 AS col1 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT DISTINCT - col2 * + col1 + + 61 AS col2 FROM tab2 AS cor0
----
-1473
-585
-776

onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT + col1 DIV - cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7135
SELECT + col1 / - cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 + + 36 AS col0 FROM tab0 AS cor0
----
-50
-55
-61

query I rowsort
SELECT - col0 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7138
SELECT col0 + + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT col0 + + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col0 + - col0 * ( - col1 ) FROM tab1
----
576
75
960

query I rowsort
SELECT col1 + + 31 AS col0 FROM tab0 AS cor0
----
117
122
128

query I rowsort
SELECT + cor0.col2 * - cor0.col1 AS col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to cbc7ea781e219f4177126feeb59feb2d

query I rowsort
SELECT 48 - col2 * col0 * 34 AS col0 FROM tab2 AS cor0
----
-102020
-6378
-68904

query I rowsort
SELECT cor0.col1 * + col2 + - col2 * 47 AS col2 FROM tab0 AS cor0
----
1287
3608
50

query I rowsort
SELECT ALL col2 * col1 + - 34 FROM tab1 AS cor0
----
1214
1370
536

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * col2 * col2 FROM tab2 AS cor0
----
114114
5130
52754

skipif post