sqllogictest

Artifact [b480b9d94e]
Login

Artifact b480b9d94e8dfa5ad714919d3409a0d2f517e2e1:


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 III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN tab2.col0 + - col0 AND ( + col1 )
----

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 DISTINCT - col1 * + col1 + - tab1.col0 AS col0 FROM tab1
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + - col0 col1 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL IN ( tab0.col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT + col1 * col1 * + col1 FROM tab1 WHERE + col0 >= NULL
----

query I rowsort
SELECT - col2 * - col0 + col1 * cor0.col0 FROM tab0 AS cor0
----
15397
2856
3430

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

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

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

query I rowsort
SELECT + col0 + - col2 + col0 * col2 AS col1 FROM tab2 AS cor0
----
169
2080
3043

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( + col1 * - col2 ) OR - cor0.col0 <> ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

query I rowsort
SELECT col2 * col2 + col2 * col0 AS col1 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT + col2 * col0 + + col1 * col0 FROM tab2
----
406
4345
6630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col2 * - cor0.col2 * - col1 col2 FROM tab2 AS cor0
----
22626
24586
39910

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

query I rowsort
SELECT + col0 + - 79 * - col0 FROM tab1 AS cor0
----
240
5120
6400

query I rowsort
SELECT col0 * ( + col2 ) + + col0 * - col0 + 57 FROM tab2 AS cor0
----
-3182
-3999
197

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

query I rowsort
SELECT ALL + col1 + - 2 AS col1 FROM tab2 AS cor0
----
15
29
57

query I rowsort
SELECT - col0 * col1 + cor0.col2 - - col0 FROM tab1 AS cor0
----
-21
-519
-864

query I rowsort
SELECT ALL col1 + 27 * col1 AS col0 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT - col2 * - ( 24 * + col2 ) + + 85 + + col0 * + col2 FROM tab1 cor0
----
228949
70231
81709

query I rowsort
SELECT - col1 + 82 FROM tab2 AS cor0
----
23
51
65

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-30
SELECT ALL col1 * CAST( + col0 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL col1 * CAST ( + col0 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
2088
3430
8188

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

query I rowsort
SELECT - 9 + + col2 AS col0 FROM tab1 AS cor0
----
45
48
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * + col2 * - col0 col0 FROM tab1 cor0
----
-186048
-391680
-8262

query I rowsort
SELECT ( 80 ) + + col1 AS col2 FROM tab2 AS cor0
----
111
139
97

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE col0 NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 >= ( col0 * - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 )
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-42
SELECT DISTINCT col2 DIV cor0.col0 + 11 col0 FROM tab0 AS cor0
----
11
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT col2 / cor0.col0 + 11 col0 FROM tab0 AS cor0
----
11
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + tab1.col0 + - col0 * + col2 col0 FROM tab1
----
-335
1616
2757

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( - col2 ) IN ( + col1 )
----
17
31
59

query I rowsort
SELECT + col1 + col0 * col2 * + tab0.col0 FROM tab0
----
1322
19094
649613

query I rowsort
SELECT DISTINCT - col1 * col1 * - col2 + col1 * tab2.col2 AS col1 FROM tab2
----
11628
26784
92040

query I rowsort
SELECT DISTINCT 29 + + col1 * - 49 - - col1 FROM tab2
----
-1459
-2803
-787

query I rowsort
SELECT 89 + col1 + + tab2.col2 AS col2 FROM tab2
----
144
147
174

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-51
SELECT tab1.col2 - + col1 DIV + ( + 83 ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-51
SELECT tab1.col2 - + col1 / + ( + 83 ) FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT ALL col2 + tab2.col0 DIV 16 - + col2 FROM tab2
----
0
4
4

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL col2 + tab2.col0 / 16 - + col2 FROM tab2
----
0
4
4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + + col1 - + 16 col1 FROM tab1
----
101
85
88

query I rowsort
SELECT ALL - tab1.col1 * col0 - col0 * + 3 * col2 AS col1 FROM tab1
----
-11584
-24080
-564

query I rowsort
SELECT ALL - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-57
SELECT ALL + CAST( - col0 AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + CAST ( - col0 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + 15 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT - ( - 2 ) AS col0 FROM tab0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + tab1.col2 col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT ( col1 ) * - col0 - - 50 * + col0 AS col1 FROM tab0 cor0
----
-1645
-3649
-864

query I rowsort
SELECT DISTINCT 59 + col0 AS col0 FROM tab1 AS cor0
----
123
139
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT - + CAST( 59 AS SIGNED ) FROM tab0 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-63
SELECT - + CAST ( 59 AS INTEGER ) FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT + 35 * 69 - - col0 AS col1 FROM tab0 cor0
----
2439
2450
2504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-65
SELECT ALL - col0 + - ( col1 ) * CAST( 15 AS SIGNED ) FROM tab0 AS cor0
----
-1314
-1454
-1490

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL - col0 + - ( col1 ) * CAST ( 15 AS INTEGER ) FROM tab0 AS cor0
----
-1314
-1454
-1490

onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT DISTINCT col0 DIV + 73 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT col0 / + 73 FROM tab2
----
0
1

query I rowsort
SELECT ALL 39 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb

query I rowsort
SELECT ALL col1 * col0 + col2 * cor0.col0 * + col1 FROM tab0 cor0
----
672217
6790
70176

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

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

query I rowsort
SELECT ALL - col0 * tab2.col1 + + col0 * - ( - tab2.col0 ) AS col2 FROM tab2
----
-168
1482
4898

query I rowsort
SELECT DISTINCT col2 + tab1.col2 * 53 FROM tab1
----
2916
3078
5184

onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT + col1 + col0 * 18 DIV col2 AS col2 FROM tab0
----
110
727
99

skipif mysql # not compatible
query I rowsort label-73
SELECT + col1 + col0 * 18 / col2 AS col2 FROM tab0
----
110
727
99

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

query I rowsort
SELECT DISTINCT col1 + col2 + + 48 AS col1 FROM tab1
----
115
128
157

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab2, tab0, tab2 AS cor0
----
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + ( - col2 ) col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT - col1 * col0 + - 68 FROM tab2 AS cor0
----
-1411
-285
-4670

query I rowsort
SELECT ALL - ( cor0.col0 ) AS col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL ( + col0 ) * 67 + - col1 AS col2 FROM tab2
----
438
5167
5276

query I rowsort
SELECT ALL + col2 + + 25 FROM tab1 AS cor0
----
121
79
82

query I rowsort
SELECT + col2 * col2 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
2609
2838
8176

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

query I rowsort
SELECT DISTINCT + cor0.col2 * 75 + col1 FROM tab2 AS cor0
----
2009
2056
2867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 74 col1 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT DISTINCT + - col0 + 64 FROM tab2 AS cor0
----
-14
-15
57

query I rowsort
SELECT col2 + - 10 AS col2 FROM tab2 AS cor0
----
16
17
28

query I rowsort
SELECT DISTINCT + - col2 + 38 FROM tab0 AS cor0
----
-44
37
5

query I rowsort
SELECT ALL + - col0 * 26 - 74 AS col2 FROM tab2 AS cor0
----
-2102
-2128
-256

query I rowsort
SELECT ALL - col0 * col1 + 91 FROM tab2 AS cor0
----
-1252
-126
-4511

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 76 AS col0 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT col0 * - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

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

query I rowsort
SELECT - col0 * - ( + 51 * + col0 ) AS col1 FROM tab1
----
208896
326400
459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + ( cor0.col2 ) + - col1 col2 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT - col1 * col1 + - 44 DIV + col1 FROM tab1 AS cor0
----
-104
-172
-677

skipif mysql # not compatible
query I rowsort label-97
SELECT - col1 * col1 + - 44 / + col1 FROM tab1 AS cor0
----
-104
-172
-677

query I rowsort
SELECT ALL + - cor0.col2 * - 5 AS col1 FROM tab1 cor0
----
270
285
480

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-100
SELECT ALL + - col2 / + col0 col0 FROM tab0 AS cor0
----
-1
0
0

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

query I rowsort
SELECT ALL 63 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - 64 * - col1 + col0 FROM tab2 AS cor0
----
1167
1991
3854

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-105
SELECT ALL + col0 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + col0 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - col2 + col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + + col1 * col1 - 85 FROM tab1 AS cor0
----
15
591
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT - cor0.col2 DIV col1 - + 13 col0 FROM tab2 AS cor0
----
-13
-13
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-108
SELECT - cor0.col2 / col1 - + 13 col0 FROM tab2 AS cor0
----
-13
-13
-15

query I rowsort
SELECT DISTINCT - 61 * + col2 AS col1 FROM tab1 cor0
----
-3294
-3477
-5856

query I rowsort
SELECT ALL + 64 + + col2 FROM tab2 AS cor0
----
102
90
91

query I rowsort
SELECT - col1 * + cor0.col2 + + 2 * - col1 + - col0 FROM tab1 AS cor0
----
-1354
-1459
-654

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

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL ( + col2 ) + CAST ( NULL AS REAL ) * - 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-113
SELECT DISTINCT + ( col0 ) * ( - cor0.col2 ) + cor0.col2 * + CAST( + col1 AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
-3068
-6419
1268

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT + ( col0 ) * ( - cor0.col2 ) + cor0.col2 * + CAST ( + col1 AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
-3068
-6419
1268

onlyif mysql # use DIV operator for integer division
query I rowsort label-114
SELECT col1 * + col0 + - cor0.col0 DIV col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-114
SELECT col1 * + col0 + - cor0.col0 / col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 65 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT + - cor0.col2 + + col0 + - col1 FROM tab2 AS cor0
----
-51
-7
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * + col2 + col2 + + 50 col1 FROM tab0 AS cor0
----
26219
598568
86

query I rowsort
SELECT - cor0.col2 + 27 + col1 AS col2 FROM tab1 AS cor0
----
-1
-20
-56

query I rowsort
SELECT col0 + col1 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT + + 15 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT ALL + 59 - - col0 FROM tab0 AS cor0
----
148
83
94

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

query I rowsort
SELECT ALL - + cor0.col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + 92 * col2 FROM tab0
----
3036
7544
92

query I rowsort
SELECT ( col0 ) * ( + 13 ) + col2 FROM tab1 AS cor0
----
1136
889
93

query I rowsort
SELECT - + col0 + col1 * ( + 27 ) FROM tab0 AS cor0
----
2298
2368
2584

query I rowsort
SELECT - 3 + + col0 AS col2 FROM tab1 cor0
----
0
61
77

query I rowsort
SELECT 18 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1476
18
594

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa

onlyif mysql # use DIV operator for integer division
query I rowsort label-131
SELECT col0 DIV 71 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-131
SELECT col0 / 71 AS col1 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT DISTINCT col1 DIV - 2 AS col2 FROM tab1
----
-13
-5
-6

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT col1 / - 2 AS col2 FROM tab1
----
-13
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * ( - 59 ) col2 FROM tab0 AS cor0
----
-1947
-4838
-59

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-135
SELECT DISTINCT + cor0.col2 DIV - 60 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT + cor0.col2 / - 60 AS col2 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - + ( - 43 ) + + col2 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT 80 + - col0 FROM tab1 AS cor0
----
0
16
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-139
SELECT ALL col1 + CAST( col2 AS SIGNED ) * + col1 col1 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-139
SELECT ALL col1 + CAST ( col2 AS INTEGER ) * + col1 col1 FROM tab2
----
1593
663
868

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * - 30 + - col2 col2 FROM tab2 cor0
----
1822
1833
1834

query I rowsort
SELECT ALL 1 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

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

query I rowsort
SELECT + + col0 + + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081

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

query I rowsort
SELECT DISTINCT - col1 + - col2 * cor0.col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + 94 * + cor0.col0 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT ALL - col2 * 71 + - col2 + col1 FROM tab1 AS cor0
----
-3862
-4094
-6899

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

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

query I rowsort
SELECT + col2 + cor0.col2 * cor0.col1 * - 17 FROM tab0 AS cor0
----
-126772
-1648
-48213

query I rowsort
SELECT DISTINCT - - 61 * + col1 FROM tab1 AS cor0
----
1586
610
793

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

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

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

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

query I rowsort
SELECT - - col2 * - col1 + + ( col1 + cor0.col0 ) AS col2 FROM tab2 cor0
----
-1397
-550
-799

query I rowsort
SELECT ALL + col1 * - col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT 98 + col0 AS col1 FROM tab1 AS cor0
----
101
162
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-158
SELECT DISTINCT - - 17 DIV col2 FROM tab0 cor0
----
0
17

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT - - 17 / col2 FROM tab0 cor0
----
0
17

query I rowsort
SELECT ALL - 93 + - col2 AS col1 FROM tab1 AS cor0
----
-147
-150
-189

query I rowsort
SELECT - col0 + col0 + + col2 * 54 AS col2 FROM tab2 cor0
----
1404
1458
2052

query I rowsort
SELECT DISTINCT + - 29 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7367
8252
9380

query I rowsort
SELECT + 32 + col1 * ( col2 + col1 * - col2 ) FROM tab2 AS cor0
----
-10304
-25078
-88940

query I rowsort
SELECT DISTINCT - + col1 * + col0 + - col0 * 92 + + col1 * + col1 FROM tab2 cor0
----
-8297
-8322
100

onlyif mysql # use DIV operator for integer division
query I rowsort label-164
SELECT DISTINCT + 31 DIV 73 + col0 DIV col0 - - 5 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT + 31 / 73 + col0 / col0 - - 5 FROM tab0
----
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-165
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-165
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

query I rowsort
SELECT DISTINCT - 75 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-167
SELECT + - cor0.col0 * CAST( 54 AS SIGNED ) col1 FROM tab1 AS cor0
----
-162
-3456
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-167
SELECT + - cor0.col0 * CAST ( 54 AS INTEGER ) col1 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT - + col1 + 6 AS col2 FROM tab1 AS cor0
----
-20
-4
-7

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

query I rowsort
SELECT ALL - 99 + + col1 AS col1 FROM tab2 AS cor0
----
-40
-68
-82

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

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

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

query I rowsort
SELECT ALL col0 * col0 + 49 * - col1 AS col0 FROM tab0 AS cor0
----
-3528
-3638
3462

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

query I rowsort
SELECT + col1 + - col2 * col0 + + 63 AS col2 FROM tab2 AS cor0
----
-1906
-2922
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-176
SELECT CAST( 22 AS SIGNED ) - tab1.col0 * col0 FROM tab1
----
-4074
-6378
13

skipif mysql # not compatible
query I rowsort label-176
SELECT CAST ( 22 AS INTEGER ) - tab1.col0 * col0 FROM tab1
----
-4074
-6378
13

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

skipif mysql # not compatible
query I rowsort label-177
SELECT + - 22 / + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 49 + cor0.col0 * + col1 FROM tab1 AS cor0
----
29
591
991

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

query I rowsort
SELECT + col2 + - col0 * 32 AS col1 FROM tab1 cor0
----
-1991
-2464
-42

query I rowsort
SELECT DISTINCT + 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
35

query I rowsort
SELECT - 35 * - cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35381d4b1bafece14e54bae094681e69

query I rowsort
SELECT ALL - col0 * + ( + col0 ) + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

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

query I rowsort
SELECT + - col1 * - col1 + col0 - + cor0.col0 * - 68 AS col2 FROM tab2 AS cor0
----
1444
5740
8863

query I rowsort
SELECT ALL - 63 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT DISTINCT - + 80 + 85 * col0 AS col0 FROM tab0 AS cor0
----
1960
2895
7485

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

onlyif mysql # use DIV operator for integer division
query I rowsort label-190
SELECT + col0 DIV - col2 + - tab0.col1 + - tab0.col0 AS col1 FROM tab0
----
-110
-167
-181

skipif mysql # not compatible
query I rowsort label-190
SELECT + col0 / - col2 + - tab0.col1 + - tab0.col0 AS col1 FROM tab0
----
-110
-167
-181

query I rowsort
SELECT col0 * + tab2.col0 * ( + tab2.col0 ) AS col1 FROM tab2
----
343
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 8 col2 FROM tab2
----
136
248
472

query I rowsort
SELECT ALL - + ( + 24 ) AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT ALL + 59 * + tab2.col2 + col0 AS col2 FROM tab2
----
1600
1612
2321

query I rowsort
SELECT + 44 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT DISTINCT - col0 + col1 + col1 * - ( col1 ) FROM tab0
----
-7334
-8279
-9347

query I rowsort
SELECT + ( col1 ) + + col2 * + 45 * - col0 AS col2 FROM tab2
----
-135073
-8474
-91201

onlyif mysql # use DIV operator for integer division
query I rowsort label-198
SELECT DISTINCT 83 * - col0 + + col1 * col1 + col0 DIV col0 FROM tab1
----
-5211
-6470
428

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT 83 * - col0 + + col1 * col1 + col0 / col0 FROM tab1
----
-5211
-6470
428

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT + ( + col2 ) + - col0 DIV + col0 AS col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-199
SELECT + ( + col2 ) + - col0 / + col0 AS col1 FROM tab1
----
53
56
95

query I rowsort
SELECT ALL 1 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT DISTINCT 51 * - ( col0 ) FROM tab1 AS cor0
----
-153
-3264
-4080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-202
SELECT ALL + + CAST( + col2 AS SIGNED ) + col2 * + col2 FROM tab2 cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL + + CAST ( + col2 AS INTEGER ) + col2 * + col2 FROM tab2 cor0
----
1482
702
756

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT col0 DIV 45 + + col2 AS col0 FROM tab0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-204
SELECT col0 / 45 + + col2 AS col0 FROM tab0
----
1
33
83

query I rowsort
SELECT ALL - col0 + + ( col2 * - 21 ) FROM tab0
----
-1811
-56
-717

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT - 21 + 46 DIV col2 AS col1 FROM tab0
----
-20
-21
25

skipif mysql # not compatible
query I rowsort label-206
SELECT - 21 + 46 / col2 AS col1 FROM tab0
----
-20
-21
25

query I rowsort
SELECT ALL - col2 * - tab2.col0 + + col0 * col1 + 37 FROM tab2
----
4382
443
6667

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

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

query I rowsort
SELECT ALL + + 3 AS col2 FROM tab0, tab0 AS cor0, tab2, tab1 cor1
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

onlyif mysql # use DIV operator for integer division
query I rowsort label-210
SELECT + + col2 * cor0.col2 - col1 DIV col1 FROM tab0 AS cor0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-210
SELECT + + col2 * cor0.col2 - col1 / col1 FROM tab0 AS cor0
----
0
1088
6723

onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT col2 DIV + 3 col2 FROM tab1
----
18
19
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-211
SELECT col2 / + 3 col2 FROM tab1
----
18
19
32

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

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 42 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + 44 * + tab0.col0 AS col2 FROM tab0
----
1056
1540
3916

query I rowsort
SELECT ALL + 51 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT + 8 * + col2 + + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1647
433
4810

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

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

query I rowsort
SELECT ALL + col2 * cor0.col0 - - 75 FROM tab2 AS cor0
----
2103
264
3077

query I rowsort
SELECT + + cor0.col1 * - 2 AS col2 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - - col1 * - col0 - - col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 + - col1 * col1 - 54 AS col2 FROM tab2 AS cor0
----
-1852
-5069
-989

skipif mysql # not compatible
query I rowsort
SELECT CAST ( cor0.col0 AS REAL ) - col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT - 25 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1600
2000
75

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

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

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

query I rowsort
SELECT - + col2 * - ( 49 * - col0 + col1 ) AS col1 FROM tab1 AS cor0
----
-178182
-375072
-6534

query I rowsort
SELECT - - col1 * 64 * col0 FROM tab1 AS cor0
----
40960
4992
66560

query I rowsort
SELECT + 70 * col2 + col0 * 49 AS col1 FROM tab0 cor0
----
10101
1785
3486

query I rowsort
SELECT DISTINCT - - col1 * 85 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT - ( col1 ) * col0 + + ( col2 ) * col1 + - col0 AS col2 FROM tab2 AS cor0
----
-3146
-776
613

query I rowsort
SELECT + 80 * - col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
1161
5476
6609

query I rowsort
SELECT DISTINCT 66 * + 48 AS col2 FROM tab2 AS cor0
----
3168

query I rowsort
SELECT tab0.col1 * - ( - 57 ) AS col1 FROM tab0
----
4902
5187
5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT ALL col1 * col1 + ( col0 ) - + col0 DIV 79 FROM tab0
----
7420
8369
9444

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL col1 * col1 + ( col0 ) - + col0 / 79 FROM tab0
----
7420
8369
9444

query I rowsort
SELECT DISTINCT - col2 + - 83 * + col2 - tab1.col0 FROM tab1
----
-4539
-4852
-8144

query I rowsort
SELECT - col0 * tab2.col0 * col1 - - col0 AS col1 FROM tab2
----
-106018
-1512
-358878

query I rowsort
SELECT - col2 * 58 + col0 * col0 * - ( 97 ) + - col2 FROM tab2
----
-591682
-607619
-6346

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

query I rowsort
SELECT 33 * col0 * + col0 + + 10 AS col1 FROM tab0
----
19018
261403
40435

query I rowsort
SELECT + 33 * col0 + col1 FROM tab0 AS cor0
----
1252
3028
878

query I rowsort
SELECT - 53 * - col0 + + tab1.col1 FROM tab1
----
185
3402
4253

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 - + tab2.col0 * 80 col1 FROM tab2
----
-587
-6266
-6358

onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT - - 88 DIV + cor0.col1 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-246
SELECT - - 88 / + cor0.col1 FROM tab2 AS cor0
----
1
2
5

query I rowsort
SELECT + - 87 * - col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT - 5 * + col0 FROM tab0 AS cor0
----
-120
-175
-445

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-250
SELECT ALL col0 + ( col0 ) DIV col0 + ( ( - col2 ) ) * - col0 col0 FROM tab2 cor0
----
197
2107
3082

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-250
SELECT ALL col0 + ( col0 ) / col0 + ( ( - col2 ) ) * - col0 col0 FROM tab2 cor0
----
197
2107
3082

query I rowsort
SELECT DISTINCT - col0 + - ( - col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
10
13
26

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

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

query I rowsort
SELECT ALL - + cor0.col0 + + 65 FROM tab1 AS cor0
----
-15
1
62

query I rowsort
SELECT DISTINCT - - col1 * - 55 AS col0 FROM tab1 AS cor0
----
-1430
-550
-715

query I rowsort
SELECT - + col1 * 54 AS col2 FROM tab1 AS cor0
----
-1404
-540
-702

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

query I rowsort
SELECT ALL cor0.col0 * 58 + col0 AS col0 FROM tab1 AS cor0
----
177
3776
4720

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

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

query I rowsort
SELECT DISTINCT + + col1 + ( - col0 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + - col1 * 43 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT 17 + col1 FROM tab0
----
103
108
114

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

query I rowsort
SELECT - + 29 * + col1 FROM tab2 AS cor0
----
-1711
-493
-899

query I rowsort
SELECT DISTINCT + 38 + 67 * col0 AS col1 FROM tab2 AS cor0
----
507
5264
5331

query I rowsort
SELECT - 4 + + col0 + + col0 FROM tab2 AS cor0
----
10
152
154

query I rowsort
SELECT + col0 + 3 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-47
26
3

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

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + cor0.col2 / col0 + - col1 / + col2 AS col1 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT ALL - col1 DIV - col2 AS col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - col1 / - col2 AS col2 FROM tab0 cor0
----
1
2
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT ALL + 76 DIV + cor0.col0 + 55 * col2 AS col1 FROM tab1 AS cor0
----
2995
3136
5280

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL + 76 / + cor0.col0 + 55 * col2 AS col1 FROM tab1 AS cor0
----
2995
3136
5280

query I rowsort
SELECT DISTINCT + 2 * col2 + + ( - col0 ) AS col2 FROM tab0 cor0
----
-33
42
75

query I rowsort
SELECT + - 19 * + col1 + - 3 AS col1 FROM tab1 AS cor0
----
-193
-250
-497

query I rowsort
SELECT ALL cor2.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ALL col0 + 50 AS col0 FROM tab1
----
114
130
53

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

query I rowsort
SELECT cor2.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

query I rowsort
SELECT DISTINCT + col2 + - 62 * col2 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT DISTINCT - + col2 + + 25 AS col0 FROM tab2 AS cor0
----
-1
-13
-2

query I rowsort
SELECT + col0 * - 28 + 54 * col0 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT ALL - col0 * 41 FROM tab2 cor0
----
-287
-3198
-3239

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

skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col0 * CAST ( - col0 AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - cor0.col0 * 76 - col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT DISTINCT col0 + + ( - col2 ) * col2 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34

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

query I rowsort
SELECT - col0 - 17 AS col1 FROM tab2 AS cor0
----
-24
-95
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT + + col2 * - col2 + ( - col2 + + col2 ) DIV col1 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-288
SELECT + + col2 * - col2 + ( - col2 + + col2 ) / col1 FROM tab0 AS cor0
----
-1
-1089
-6724

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

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT 84 / - col1 + + col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-290
SELECT + CAST( ( + col1 ) AS SIGNED ) FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-290
SELECT + CAST ( ( + col1 ) AS INTEGER ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + col1 * 73 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
1279
2290
4333

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

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - 21 ) * col2 + - col0 * col2 FROM tab1 AS cor0
----
-2451
-5664
972

query I rowsort
SELECT + 80 * + 71 + + col2 AS col0 FROM tab0 AS cor0
----
5681
5713
5762

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

query I rowsort
SELECT DISTINCT - - 43 * - col1 AS col2 FROM tab1 AS cor0
----
-1118
-430
-559

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

query I rowsort
SELECT ALL tab0.col2 + ( col1 + col2 ) AS col2 FROM tab0
----
152
255
99

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

query I rowsort
SELECT DISTINCT - 95 + col0 FROM tab1 AS cor0
----
-15
-31
-92

query I rowsort
SELECT ALL - + 26 + - cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
-6110
-6267
-75

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

query I rowsort
SELECT ALL + + col2 * + col0 + col0 * - 87 + - col2 FROM tab1 AS cor0
----
-153
-1977
624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col2 FROM tab0, tab2 cor0
----
24
35
89

query I rowsort
SELECT ALL + cor0.col0 + - col1 * ( + 26 ) FROM tab2 cor0
----
-1456
-363
-799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 + - col1 col0 FROM tab2 AS cor0
----
34
48
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 10 * - col2 col0 FROM tab0 AS cor0
----
-10
-330
-820

query I rowsort
SELECT ALL + 84 * - cor0.col2 + + col2 * + col2 FROM tab1 AS cor0
----
-1539
-1620
1152

query I rowsort
SELECT ALL col1 * col0 - tab1.col0 AS col0 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT - col0 + + col2 * + cor0.col2 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT + cor0.col1 * + ( 80 + cor0.col1 ) FROM tab2 AS cor0
----
1649
3441
8201

query I rowsort
SELECT + cor0.col2 * + col2 - 55 AS col0 FROM tab0 cor0
----
-54
1034
6669

query I rowsort
SELECT + 50 + col2 FROM tab2
----
76
77
88

query I rowsort
SELECT DISTINCT ( - col2 ) * + 96 AS col1 FROM tab1
----
-5184
-5472
-9216

query I rowsort
SELECT col0 * - tab2.col0 * + col1 AS col0 FROM tab2
----
-106097
-1519
-358956

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT col2 / - col0 col0 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT - col1 DIV cor0.col2 + + col0 + col2 AS col2 FROM tab0 cor0
----
-61
170
55

skipif mysql # not compatible
query I rowsort label-319
SELECT - col1 / cor0.col2 + + col0 + col2 AS col2 FROM tab0 cor0
----
-61
170
55

query I rowsort
SELECT - col2 * tab2.col1 + + col1 * - col0 FROM tab2
----
-1054
-1989
-6136

query I rowsort
SELECT DISTINCT col0 + tab2.col2 + col1 * + col1 FROM tab2
----
3585
406
995

onlyif mysql # use DIV operator for integer division
query I rowsort label-322
SELECT DISTINCT + col2 DIV + col1 + col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + col2 / + col1 + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - col1 * col0 * - col0 FROM tab1 AS cor0
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col2 * - col2 col1 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-325
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col1 * col0 FROM tab0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col1 * col0 FROM tab0
----
-177504
-329315
-737009

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

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL CAST ( NULL AS REAL ) * tab1.col0 * tab1.col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

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

query I rowsort
SELECT DISTINCT - col1 + - col1 + - col2 FROM tab1 AS cor0
----
-106
-122
-77

query I rowsort
SELECT - ( - 61 ) + + col1 AS col2 FROM tab0
----
147
152
158

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

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

query I rowsort
SELECT ALL + col0 + + col0 + - col1 FROM tab0 AS cor0
----
-27
-38
87

query I rowsort
SELECT cor0.col1 + - col0 AS col0 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT ALL + col2 DIV col2 + + col0 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL + col2 / col2 + + col0 AS col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - 16 * - ( - tab2.col0 ) + ( 76 * col2 ) FROM tab2
----
1624
1940
728

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-339
SELECT + 73 - col0 DIV col2 col0 FROM tab0 AS cor0
----
38
72
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-339
SELECT + 73 - col0 / col2 col0 FROM tab0 AS cor0
----
38
72
73

query I rowsort
SELECT ALL + 75 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1609
721
912

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-343
SELECT DISTINCT + col2 + - col0 DIV - 10 FROM tab0 cor0
----
35
4
90

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + col2 + - col0 / - 10 FROM tab0 cor0
----
35
4
90

query I rowsort
SELECT + 80 * + col0 + col2 FROM tab0 cor0
----
1953
2801
7202

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT ALL + + cor0.col0 * col1 + + col0 * col1 DIV col1 FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL + + cor0.col0 * col1 + + col0 * col1 / col1 FROM tab1 AS cor0
----
1120
704
81

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

query I rowsort
SELECT DISTINCT + ( - 99 ) * col2 AS col2 FROM tab0
----
-3267
-8118
-99

query I rowsort
SELECT - col0 + - col0 * col2 * col1 FROM tab1 AS cor0
----
-36544
-4215
-99920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col0 + 62 col1 FROM tab2 AS cor0
----
-1281
-155
-4540

query I rowsort
SELECT col2 + + ( col2 ) AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT cor0.col2 * col2 + 25 FROM tab1 AS cor0
----
2941
3274
9241

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

query I rowsort
SELECT + 97 * 60 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to c03b79b370c9ffe32d9280c80f356595

query I rowsort
SELECT ALL - + col1 * 75 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT ALL - - cor0.col2 + - 59 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to 4bda0f2712c5623b2c4370baa5630a15

query I rowsort
SELECT ALL + 18 * cor0.col2 AS col0 FROM tab1 cor0
----
1026
1728
972

query I rowsort
SELECT DISTINCT + 64 * + col0 + + col0 * + cor0.col0 FROM tab2 AS cor0
----
11076
11297
497

query I rowsort
SELECT 17 * + 70 FROM tab1 AS cor0
----
1190
1190
1190

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

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

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

query I rowsort
SELECT ALL - - cor0.col1 + 68 AS col1 FROM tab2 AS cor0
----
127
85
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT ALL + ( - 1 ) + + col2 + ( + col2 ) * col2 DIV col2 FROM tab1 AS cor0
----
107
113
191

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + ( - 1 ) + + col2 + ( + col2 ) * col2 / col2 FROM tab1 AS cor0
----
107
113
191

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

query I rowsort
SELECT DISTINCT col2 + 88 AS col1 FROM tab0
----
121
170
89

query I rowsort
SELECT ALL col2 + - ( + col0 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT + col2 * - ( 61 ) * col1 + + 92 FROM tab2
----
-39314
-50965
-93482

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

query I rowsort
SELECT - tab0.col2 * + col2 - + ( - col0 ) * ( + col2 ) AS col2 FROM tab0
----
-297
34
574

query I rowsort
SELECT DISTINCT col1 * - 74 AS col2 FROM tab1
----
-1924
-740
-962

onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT cor0.col2 + col2 DIV cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
116
72
82

skipif mysql # not compatible
query I rowsort label-373
SELECT cor0.col2 + col2 / cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
116
72
82

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

query I rowsort
SELECT DISTINCT 37 + col0 + - col2 AS col0 FROM tab2 cor0
----
17
78
89

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

query I rowsort
SELECT DISTINCT col2 * - 35 AS col0 FROM tab1
----
-1890
-1995
-3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-378
SELECT 96 + - ( col2 ) DIV - col1 col0 FROM tab2 AS cor0
----
96
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-378
SELECT 96 + - ( col2 ) / - col1 col0 FROM tab2 AS cor0
----
96
96
98

query I rowsort
SELECT tab1.col1 * 87 FROM tab1, tab0 AS cor0
----
9 values hashing to 94d3f50bda14108158af1067c622f947

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT col1 + + col0 DIV + ( - 89 ) FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-381
SELECT col1 + + col0 / + ( - 89 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL 69 * - col1 * 31 - + 31 * - col0 AS col2 FROM tab0
----
-183210
-191890
-206398

query I rowsort
SELECT DISTINCT col0 - tab2.col0 * - col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL - col1 - col2 AS col0 FROM tab0
----
-119
-173
-98

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-387
SELECT DISTINCT col1 * - col2 - col1 DIV + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT col1 * - col2 - col1 / + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT DISTINCT - - col0 DIV - col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
120
175
56

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT - - col0 / - col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
120
175
56

query I rowsort
SELECT DISTINCT - - col0 * 98 + - col0 FROM tab0 AS cor0
----
2328
3395
8633

query I rowsort
SELECT - - col1 * col2 + + 93 * - col2 AS col1 FROM tab1 AS cor0
----
-3618
-4731
-7680

query I rowsort
SELECT ALL col0 + 18 FROM tab1 AS cor0
----
21
82
98

query I rowsort
SELECT ALL + - cor0.col2 * - 10 AS col0 FROM tab0 cor0
----
10
330
820

query I rowsort
SELECT DISTINCT col2 + 60 * - 1 FROM tab0 AS cor0
----
-27
-59
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + + tab2.col1 col1 FROM tab2
----
33
47
75

query I rowsort
SELECT + + cor0.col1 + - ( + col1 ) * col1 * + 27 FROM tab0 AS cor0
----
-199606
-223496
-253946

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

query I rowsort
SELECT 73 * col1 + 84 FROM tab1
----
1033
1982
814

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col0 FROM tab1
----
77

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

query I rowsort
SELECT - - col2 * + 50 AS col1 FROM tab2 AS cor0
----
1300
1350
1900

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

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

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + col1 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + 16 AS col1 FROM tab0 AS cor0
----
17
49
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col2 FROM tab0
----
55
55
55

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

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

query I rowsort
SELECT + - 89 * 4 + + col0 AS col1 FROM tab2 AS cor0
----
-277
-278
-349

query I rowsort
SELECT ALL + col1 + 97 AS col1 FROM tab1 AS cor0
----
107
110
123

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 - 45 AS col1 FROM tab1 cor0
----
-1293
-1449
-615

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

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

query I rowsort
SELECT ( col0 ) + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL ( - col0 ) + + col1 FROM tab1 AS cor0
----
-54
-67
23

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

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

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - col0 * - 41 FROM tab2 AS cor0
----
314
3224
3277

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-418
SELECT cor0.col1 * 71 DIV 92 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 19ace7e1463be4888dae6b410c02b874

skipif mysql # not compatible
query I rowsort label-418
SELECT cor0.col1 * 71 / 92 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 19ace7e1463be4888dae6b410c02b874

query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab2 AS cor0
----
-8

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

query I rowsort
SELECT 14 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT DISTINCT - col2 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34

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

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

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

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

query I rowsort
SELECT ALL ( - col0 ) * col0 FROM tab1
----
-4096
-6400
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * col1 col0 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT 24 + + col2 * col0 AS col1 FROM tab0 cor0
----
59
7322
816

query I rowsort
SELECT - - ( col0 ) * + 27 AS col1 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT ALL 62 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

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

query I rowsort
SELECT 80 AS col0 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT - 18 + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-9
35
78

query I rowsort
SELECT col0 + 44 FROM tab2 cor0
----
122
123
51

query I rowsort
SELECT + - 77 + col1 * col2 FROM tab2 AS cor0
----
1457
569
760

query I rowsort
SELECT + col0 * col2 + col1 * - col2 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT ALL col0 + + col1 + col2 * - col2 FROM tab2
----
-1348
-539
-691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) * col2 + + ( 94 ) col1 FROM tab0 AS cor0
----
-698
-7204
59

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

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

query I rowsort
SELECT DISTINCT + 3 * + col1 FROM tab2
----
177
51
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT + col1 DIV cor0.col1 + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-443
SELECT + col1 / cor0.col1 + col0 FROM tab1 AS cor0
----
4
65
81

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

query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

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

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

query I rowsort
SELECT + 34 * + col2 FROM tab0
----
1122
2788
34

query I rowsort
SELECT ALL - cor0.col1 + - col2 + - col2 FROM tab0 AS cor0
----
-152
-255
-99

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

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

query I rowsort
SELECT ALL col1 * - 18 + + ( col1 * tab2.col0 ) AS col2 FROM tab2
----
-341
1037
3540

query I rowsort
SELECT ALL 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - 89 * - 19 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aa14ad7bd3f680c32a3e799c1a02e41c

query I rowsort
SELECT - tab0.col1 - col1 AS col2 FROM tab0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab0.col0 ) col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL col2 * - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + col2 AS REAL ) / + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT + + col2 / + ( - col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 * - 12 AS col0 FROM tab2 AS cor0
----
-204
-372
-708

onlyif mysql # use DIV operator for integer division
query I rowsort label-460
SELECT ALL - ( - col2 ) DIV col1 - 80 AS col2 FROM tab2
----
-78
-80
-80

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL - ( - col2 ) / col1 - 80 AS col2 FROM tab2
----
-78
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 + ( + col1 ) col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - - col0 * + col0 + + col1 FROM tab2 cor0
----
6143
6258
80

query I rowsort
SELECT ALL - col0 * - 35 AS col1 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT + col1 * + ( ( - col0 ) ) + 28 AS col0 FROM tab2 cor0
----
-1315
-189
-4574

query I rowsort
SELECT ALL - + col2 * col0 + col0 * - col1 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT DISTINCT - - col0 * + ( 3 ) AS col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT + - col0 * ( col2 ) + + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-468
SELECT DISTINCT - cor0.col0 + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT - cor0.col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180

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

query I rowsort
SELECT DISTINCT + + col1 * 76 * + 87 FROM tab1 AS cor0
----
171912
66120
85956

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

query I rowsort
SELECT DISTINCT + col1 * col2 + tab2.col1 FROM tab2
----
1593
663
868

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

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

query I rowsort
SELECT DISTINCT + 10 * cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
70
780
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-475
SELECT + col2 DIV + ( col0 * + col2 ) + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-475
SELECT + col2 / + ( col0 * + col2 ) + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * - 69 col1 FROM tab1 AS cor0
----
11178
251712
529920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + - ( col2 ) + - col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col1 + - ( col0 + col1 ) * - col0 FROM tab1 AS cor0
----
4726
61
7427

query I rowsort
SELECT 56 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT - - cor0.col2 + - ( 52 ) * - col2 FROM tab0 cor0
----
1749
4346
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT ALL - col1 DIV 72 + col0 DIV - col1 + + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - col1 / 72 + col0 / - col1 + + col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL - + col2 + col1 * 8 AS col2 FROM tab1 AS cor0
----
154
23
8

query I rowsort
SELECT ALL + - ( + col0 ) * - cor0.col0 * - 99 FROM tab0 AS cor0
----
-121275
-57024
-784179

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 + col1 col2 FROM tab1 AS cor0
----
63
66
79

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

query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 * - 76 - + col0 * col0 FROM tab0 AS cor0
----
-1149
503103
82188

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

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

query I rowsort
SELECT ALL ( - 36 ) FROM tab1 cor0
----
-36
-36
-36

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-494
SELECT col0 DIV 86 + col1 AS col2 FROM tab0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-494
SELECT col0 / 86 + col1 AS col2 FROM tab0
----
86
92
97

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

query I rowsort
SELECT ALL + 12 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

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

query I rowsort
SELECT ALL - 83 * col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-118
-2763
-6895

query I rowsort
SELECT DISTINCT + + 64 + - col1 AS col1 FROM tab2 AS cor0
----
33
47
5

query I rowsort
SELECT DISTINCT col0 + + cor0.col2 * ( + 10 ) FROM tab1 cor0
----
1040
543
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT ALL - + col0 * col0 + + col0 DIV + col1 FROM tab2 AS cor0
----
-49
-6083
-6237

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - + col0 * col0 + + col0 / + col1 FROM tab2 AS cor0
----
-49
-6083
-6237

query I rowsort
SELECT ALL + col1 * + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

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

query I rowsort
SELECT ALL - col0 + - cor0.col1 * ( - ( col1 ) ) * - 53 FROM tab0 AS cor0
----
-392012
-438982
-498712

query I rowsort
SELECT ALL - col0 * + col0 + col2 * ( col0 ) FROM tab2 AS cor0
----
-3239
-4056
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-506
SELECT col2 * col0 DIV 18 FROM tab0 AS cor0
----
1
405
44

skipif mysql # not compatible
query I rowsort label-506
SELECT col2 * col0 / 18 FROM tab0 AS cor0
----
1
405
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 68 * col2 col0 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT 77 - + col1 AS col2 FROM tab1
----
51
64
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT + col0 DIV + col1 + - 97 * + col0 + - col0 FROM tab0
----
-2352
-3430
-8722

skipif mysql # not compatible
query I rowsort label-509
SELECT + col0 / + col1 + - 97 * + col0 + - col0 FROM tab0
----
-2352
-3430
-8722

query I rowsort
SELECT DISTINCT col1 + col1 * col2 - tab0.col0 FROM tab0
----
159
2900
7464

query I rowsort
SELECT col0 + + col2 + - 93 AS col2 FROM tab2
----
-59
11
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-512
SELECT + 49 + col2 - CAST( ( col2 ) AS SIGNED ) * ( + col1 ) FROM tab1
----
-1103
-1301
-464

skipif mysql # not compatible
query I rowsort label-512
SELECT + 49 + col2 - CAST ( ( col2 ) AS INTEGER ) * ( + col1 ) FROM tab1
----
-1103
-1301
-464

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

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) * col0 + 99 FROM tab2 AS cor0
----
-118
-1244
-4503

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

query I rowsort
SELECT ALL + col2 + - col1 * + col2 * + 16 + col2 * - col1 FROM tab2 AS cor0
----
-10944
-14202
-26052

query I rowsort
SELECT ALL + col1 + - cor0.col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT ALL - ( col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

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

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

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

query I rowsort
SELECT - cor0.col0 * - 85 AS col2 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT 70 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL 56 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to f78ab7f4ab7761f90d40be7050808ae6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 12 ) col2 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT ALL - + 71 * col2 + + col1 FROM tab0 AS cor0
----
-2257
-5731
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-527
SELECT - CAST( - 88 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif mysql # not compatible
query I rowsort label-527
SELECT - CAST ( - 88 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT - col2 / + col1 + ( tab2.col2 ) AS col1 FROM tab2
----
26
27
36

query I rowsort
SELECT ALL - col1 + col2 * - 79 AS col2 FROM tab0 AS cor0
----
-176
-2693
-6569

query I rowsort
SELECT + tab1.col2 * + ( 98 ) FROM tab1
----
5292
5586
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT ALL col1 + + cor0.col1 * col0 DIV col0 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL col1 + + cor0.col1 * col0 / col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col1 * 94 FROM tab1 cor0
----
1222
2444
940

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT DISTINCT col1 * col2 DIV - col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT col1 * col2 / - col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - + cor0.col2 + + ( - 54 ) FROM tab2 AS cor0
----
-80
-81
-92

query I rowsort
SELECT - col0 + ( + 36 ) AS col2 FROM tab0 cor0
----
-53
1
12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( ( col0 ) + col1 ) col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT DISTINCT + col0 + + col0 * + col0 FROM tab2 cor0
----
56
6162
6320

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

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 - col2 * + col0 AS col2 FROM tab0 cor0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT + - col2 + - 96 FROM tab1 AS cor0
----
-150
-153
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - - ( cor0.col2 ) + col0 * - cor0.col2 * col0 FROM tab1 AS cor0
----
-233415
-432
-614304

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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

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

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

query I rowsort
SELECT + col1 * - 24 AS col0 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT - col0 + - col1 * - 48 FROM tab2 AS cor0
----
1481
2754
737

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

query I rowsort
SELECT DISTINCT tab2.col1 * col1 + + col0 * 5 AS col1 FROM tab2
----
3871
684
996

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - 10 col2 FROM tab1
----
1030
630
68

query I rowsort
SELECT DISTINCT + + col1 * col1 + col0 AS col2 FROM tab2 cor0
----
3559
368
968

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

query I rowsort
SELECT + + 47 * col1 + cor0.col0 * - col1 FROM tab0 cor0
----
-3822
1164
1978

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-558
SELECT DISTINCT - tab1.col2 * 13 DIV - col2 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT - tab1.col2 * 13 / - col2 FROM tab1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + col0 col0 FROM tab2
----
136
137
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 * col0 ) + + col0 col0 FROM tab0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab2.col1 ) * - 17 * 90 + col0 + + col1 col0 FROM tab2
----
26106
47468
90407

query I rowsort
SELECT DISTINCT - col2 * - tab2.col2 * + col2 + - ( col2 ) * - col1 AS col0 FROM tab2
----
19110
20520
55518

query I rowsort
SELECT ALL - ( col1 ) AS col0 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-564
SELECT DISTINCT 91 DIV + col0 FROM tab1
----
1
30

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT 91 / + col0 FROM tab1
----
1
30

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-565
SELECT - + col2 / col0 col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + 10 + tab1.col1 * + col2 AS col0 FROM tab1
----
1258
1414
580

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-568
SELECT 18 + + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
18
18
19

skipif mysql # not compatible
query I rowsort label-568
SELECT 18 + + col0 / col2 AS col1 FROM tab1 AS cor0
----
18
18
19

query I rowsort
SELECT - col2 * - col2 + - col2 + + cor0.col0 FROM tab0 AS cor0
----
1080
35
6731

query I rowsort
SELECT 90 + - 81 AS col2 FROM tab1 AS cor0
----
9
9
9

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

query I rowsort
SELECT ALL - 17 + + col2 AS col0 FROM tab2 AS cor0
----
10
21
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-573
SELECT - - col1 + + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-573
SELECT - - col1 + + col2 / - col0 AS col2 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT + + ( 10 ) + col0 FROM tab2 AS cor0
----
17
88
89

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

query I rowsort
SELECT + 65 * + 69 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 1c67c4f751cecd0f9f47d2b39c4aefb2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-577
SELECT DISTINCT CAST( col1 * + col1 AS SIGNED ) FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT CAST ( col1 * + col1 AS INTEGER ) FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL + 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

query I rowsort
SELECT ALL col0 + - ( - col1 ) FROM tab1 cor0
----
29
74
93

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

query I rowsort
SELECT + 55 + + col0 AS col0 FROM tab1 AS cor0
----
119
135
58

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

query I rowsort
SELECT - cor0.col2 * col2 - 89 FROM tab2 AS cor0
----
-1533
-765
-818

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

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL ( - col0 ) * CAST ( NULL AS INTEGER ) + - 37 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 35 * col1 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT DISTINCT - col2 * col0 + - 39 AS col0 FROM tab1 AS cor0
----
-201
-3687
-7719

onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT ALL - cor0.col2 DIV col2 - 47 * col1 FROM tab1 AS cor0
----
-1223
-471
-612

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - cor0.col2 / col2 - 47 * col1 FROM tab1 AS cor0
----
-1223
-471
-612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-589
SELECT DISTINCT - col2 * col0 - CAST( + col1 * cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
-15397
-2856
-3430

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT - col2 * col0 - CAST ( + col1 * cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
-15397
-2856
-3430

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

query I rowsort
SELECT + 25 - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1015
-53
-615

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-593
SELECT ALL - - col2 DIV col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - - col2 / col2 FROM tab1 AS cor0
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-595
SELECT ALL + - col0 * col2 + - col1 * col0 DIV col1 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL + - col0 * col2 + - col1 * col0 / col1 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT ALL - col1 DIV + col0 - 73 FROM tab0 AS cor0
----
-74
-75
-76

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - col1 / + col0 - 73 FROM tab0 AS cor0
----
-74
-75
-76

query I rowsort
SELECT + 31 * - col2 + col0 FROM tab1 AS cor0
----
-1671
-1703
-2896

onlyif mysql # use DIV operator for integer division
query I rowsort label-598
SELECT col1 DIV 88 - - tab0.col1 FROM tab0
----
86
92
98

skipif mysql # not compatible
query I rowsort label-598
SELECT col1 / 88 - - tab0.col1 FROM tab0
----
86
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT DISTINCT cor0.col2 DIV col0 + col2 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT cor0.col2 / col0 + col2 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT ALL + col0 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL - ( col1 ) * - ( - col1 * + cor0.col0 ) + + col2 * col1 FROM tab1 AS cor0
----
-12272
-5830
-624

skipif mysql # not compatible
query I rowsort
SELECT - col0 * col1 * ( - col0 ) + + col1 * + CAST ( - 89 AS REAL ) * col0 FROM tab0 AS cor0
----
-134160
-183330
0

query I rowsort
SELECT ALL + cor0.col1 * + col2 + 19 FROM tab0 AS cor0
----
116
2857
7481

query I rowsort
SELECT DISTINCT col0 + 61 AS col1 FROM tab0 AS cor0
----
150
85
96

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + - col2 * + 86 FROM tab0 AS cor0
----
-2838
-7052
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-611
SELECT DISTINCT - cor0.col2 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT - cor0.col2 + col1 / col1 AS col1 FROM tab2 AS cor0
----
-25
-26
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-612
SELECT ALL + + CAST( col1 AS SIGNED ) FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL + + CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT 56 * col2 FROM tab1 AS cor0
----
3024
3192
5376

query I rowsort
SELECT col2 + 25 AS col1 FROM tab0
----
107
26
58

query I rowsort
SELECT DISTINCT - col2 * col0 * 74 AS col1 FROM tab2
----
-13986
-150072
-222148

query I rowsort
SELECT ALL 34 FROM tab0, tab1 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL - 32 AS col2 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT - + col2 * col2 + + col2 * + 29 FROM tab0 cor0
----
-132
-4346
28

query I rowsort
SELECT + col2 * + col0 + - ( cor0.col1 ) FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL col2 * - col0 + - 28 FROM tab2 AS cor0
----
-2056
-217
-3030

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col2 + 15 col2 FROM tab1 AS cor0
----
2931
3264
9231

query I rowsort
SELECT - - col0 + 94 AS col2 FROM tab0 AS cor0
----
118
129
183

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

query I rowsort
SELECT - 16 + - cor0.col2 * + tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e1022b25ca30dedbde7511288334107b

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

query I rowsort
SELECT + 22 * col2 AS col1 FROM tab2 AS cor0
----
572
594
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-628
SELECT col0 DIV ( col1 * - col1 ) - - col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-628
SELECT col0 / ( col1 * - col1 ) - - col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col1 + + col2 + + col1 AS col0 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL - - ( 62 ) FROM tab2 AS cor0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT + 39 DIV - col1 + col2 + + col1 FROM tab1 AS cor0
----
106
64
79

skipif mysql # not compatible
query I rowsort label-631
SELECT + 39 / - col1 + col2 + + col1 FROM tab1 AS cor0
----
106
64
79

query I rowsort
SELECT - col0 * col2 * + col1 FROM tab2 cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-633
SELECT - col0 * col2 + col0 DIV - ( + col0 * col0 ) + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort label-633
SELECT - col0 * col2 + col0 / - ( + col0 * col0 ) + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-635
SELECT DISTINCT + col2 DIV col1 + col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT + col2 / col1 + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT cor0.col2 + + col2 AS col1 FROM tab0 cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 0 AS REAL ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + 38 * - tab2.col0 + col0 AS col0 FROM tab2
----
-259
-2886
-2923

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

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

skipif mysql # not compatible
query I rowsort label-640
SELECT col0 - col2 / - col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - + col0 - col1 * col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-642
SELECT + ( + col2 ) + col0 + cor0.col0 DIV - col0 FROM tab0 AS cor0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-642
SELECT + ( + col2 ) + col0 + cor0.col0 / - col0 FROM tab0 AS cor0
----
170
35
56

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

skipif mysql # not compatible
query I rowsort label-643
SELECT ( col0 ) / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * 64 * tab0.col1 AS col1 FROM tab0
----
181632
477568
6208

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

query I rowsort
SELECT - 20 + + cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a07f36af762bae0c7ae7a9d33427bd24

onlyif mysql # use DIV operator for integer division
query I rowsort label-647
SELECT ALL - ( + 69 ) DIV - col2 FROM tab0
----
0
2
69

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - ( + 69 ) / - col2 FROM tab0
----
0
2
69

query I rowsort
SELECT ALL + - 7 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-169
-3655
-7687

query I rowsort
SELECT DISTINCT - 85 * - col1 + col1 FROM tab1 AS cor0
----
1118
2236
860

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

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

query I rowsort
SELECT DISTINCT - 56 * + col1 * - col2 + col1 + - col0 AS col1 FROM tab1
----
31866
69821
78647

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

query I rowsort
SELECT - 25 + + col0 + cor0.col0 * + col0 FROM tab0 cor0
----
1235
575
7985

query I rowsort
SELECT DISTINCT 17 - col2 FROM tab0
----
-16
-65
16

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

query I rowsort
SELECT DISTINCT + col1 * col1 + col0 AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - 27 * - col2 * + tab1.col1 AS col1 FROM tab1
----
15390
33696
37908

query I rowsort
SELECT - - 20 + - 62 * + col0 * - col1 FROM tab2 AS cor0
----
13474
285344
83286

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

query I rowsort
SELECT 86 * col1 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT col2 * ( col0 ) - - col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col0 + 69 FROM tab2 AS cor0
----
147
148
76

query I rowsort
SELECT DISTINCT - tab2.col0 * 18 FROM tab2, tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT ALL - col2 * col0 + - tab2.col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT ALL col1 + col0 * col2 AS col0 FROM tab0 AS cor0
----
132
7389
878

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

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

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

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

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

query I rowsort
SELECT + - col0 + 61 FROM tab1 AS cor0
----
-19
-3
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT DISTINCT - col0 * - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT - col0 * - col0 / col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col2 * + col2 - + cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
-1749
-738
-96

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

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

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

query I rowsort
SELECT col0 * + 11 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
13476
6369
87213

query I rowsort
SELECT ALL - 91 + 24 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + 97 * 37 + - col0 AS col2 FROM tab1 AS cor0
----
3509
3525
3586

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

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

query I rowsort
SELECT DISTINCT ( + 79 ) * - col2 * + cor0.col2 FROM tab2 AS cor0
----
-114076
-53404
-57591

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-683
SELECT + col2 DIV 39 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-683
SELECT + col2 / 39 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 77 AS col0 FROM tab1 cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT cor0.col1 + - cor0.col1 DIV + 78 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-685
SELECT cor0.col1 + - cor0.col1 / + 78 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL 12 * col1 + col0 FROM tab0 cor0
----
1056
1181
1199

query I rowsort
SELECT + 71 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
81
84
97

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

query I rowsort
SELECT - - col2 * - 58 AS col0 FROM tab0 AS cor0
----
-1914
-4756
-58

query I rowsort
SELECT ALL - col0 + - ( + ( - col1 ) ) * + ( col1 + + col1 ) FROM tab0 AS cor0
----
14768
16473
18783

onlyif mysql # use DIV operator for integer division
query I rowsort label-691
SELECT DISTINCT - col0 + - cor0.col0 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT - col0 + - cor0.col0 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
-24
-70
-90

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

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

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

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

query I rowsort
SELECT + col0 + 52 AS col0 FROM tab0
----
141
76
87

query I rowsort
SELECT + col0 * + 84 * tab2.col1 + + col0 AS col2 FROM tab2
----
112891
18235
386646

onlyif mysql # use DIV operator for integer division
query I rowsort label-697
SELECT ALL + col2 DIV tab2.col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL + col2 / tab2.col1 FROM tab2
----
0
0
2

query I rowsort
SELECT ALL col1 * + ( col1 + col1 * 6 ) AS col2 FROM tab0 AS cor0
----
51772
57967
65863

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-699
SELECT ALL + col0 + col1 / 85 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 + col2 * 38 FROM tab1 AS cor0
----
2026
2156
3635

query I rowsort
SELECT + col2 * 28 FROM tab1 AS cor0
----
1512
1596
2688

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT DISTINCT - 89 * - col0 + + col2 * col0 DIV - 66 FROM tab1
----
265
5641
7004

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT - 89 * - col0 + + col2 * col0 / - 66 FROM tab1
----
265
5641
7004

query I rowsort
SELECT + tab0.col0 * + 59 FROM tab0
----
1416
2065
5251

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-707
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + col0 * - 71 AS col2 FROM tab0
----
-1737
-2486
-6401

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + col0 * - 71 AS col2 FROM tab0
----
-1737
-2486
-6401

query I rowsort
SELECT DISTINCT + tab1.col1 + - tab1.col1 * col2 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - 31 * col0 + - col2 AS col2 FROM tab2
----
-244
-2444
-2487

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

query I rowsort
SELECT DISTINCT + + 18 AS col2 FROM tab2 AS cor0
----
18

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

query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 + cor0.col0 AS col0 FROM tab1 cor0
----
107
1133
714

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-715
SELECT DISTINCT + 52 DIV col0 + col0 AS col1 FROM tab2
----
14
78
79

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + 52 / col0 + col0 AS col1 FROM tab2
----
14
78
79

query I rowsort
SELECT DISTINCT 97 + col0 AS col1 FROM tab0
----
121
132
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 + col0 col2 FROM tab1
----
17
78
94

query I rowsort
SELECT DISTINCT ( - tab1.col0 ) + col1 * + col2 AS col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT cor0.col1 * col1 + + ( 17 * col2 ) FROM tab2 AS cor0
----
1420
3923
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT ALL - - col2 DIV col1 + ( ( + cor0.col0 ) ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL - - col2 / col1 + ( ( + cor0.col0 ) ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-721
SELECT DISTINCT + - col0 DIV col2 + ( + col0 ) + col0 * + col1 FROM tab0 AS cor0
----
2088
3395
8187

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT + - col0 / col2 + ( + col0 ) + col0 * + col1 FROM tab0 AS cor0
----
2088
3395
8187

query I rowsort
SELECT ALL col0 + + col1 * 89 + 28 * col2 FROM tab1 AS cor0
----
2550
3829
3925

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

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

query I rowsort
SELECT + - 53 * - col0 + + 46 * cor0.col0 FROM tab0 AS cor0
----
2376
3465
8811

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT ALL + col2 DIV col1 + - col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + col2 / col1 + - col1 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - 42 * col0 + col2 FROM tab0 AS cor0
----
-1469
-3656
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-729
SELECT 80 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-729
SELECT 80 / - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-11

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-114114
-5130
-52754

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-732
SELECT DISTINCT cor0.col1 DIV - col2 + + col0 col2 FROM tab0 AS cor0
----
-62
22
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT cor0.col1 / - col2 + + col0 col2 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT ALL col0 * - col1 - ( + col2 * col2 ) AS col0 FROM tab0 AS cor0
----
-14823
-3153
-3396

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-734
SELECT + col1 + col0 + CAST( - 20 AS SIGNED ) * + col1 * + cor0.col1 FROM tab0 cor0
----
-147810
-165440
-188048

skipif mysql # not compatible
query I rowsort label-734
SELECT + col1 + col0 + CAST ( - 20 AS INTEGER ) * + col1 * + cor0.col1 FROM tab0 cor0
----
-147810
-165440
-188048

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

query I rowsort
SELECT + 80 * col2 FROM tab0
----
2640
6560
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-737
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 27 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 27 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col1 * col1 + col0 + 87 * tab1.col2 FROM tab1
----
5123
5377
8601

query I rowsort
SELECT - col0 + + 76 AS col2 FROM tab2
----
-2
-3
69

query I rowsort
SELECT DISTINCT + col2 + 6 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT - - col1 + + 65 AS col1 FROM tab2 cor0
----
124
82
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT DISTINCT + 91 DIV col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + 91 / col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT + ( + col0 ) * 53 + col1 AS col0 FROM tab0 AS cor0
----
1358
1952
4808

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-744
SELECT ALL cor0.col1 + col0 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
113
196
69

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL cor0.col1 + col0 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT - 91 * - col0 + cor0.col1 FROM tab1 AS cor0
----
299
5834
7293

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

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

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

skipif mysql # not compatible
query I rowsort label-748
SELECT - col2 * - col2 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1122
2
6806

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

query I rowsort
SELECT - - 41 * + cor0.col0 FROM tab0 cor0
----
1435
3649
984

query I rowsort
SELECT + col2 * - col2 * + col2 + - ( col0 ) * + col0 * - 71 AS col1 FROM tab2 AS cor0
----
-16204
388239
414388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * - col1 + ( - cor0.col2 ) col0 FROM tab2 AS cor0
----
-1109
-1980
-3743

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

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

query I rowsort
SELECT ALL + + col2 * + col0 - col0 * - col2 FROM tab2 AS cor0
----
378
4056
6004

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-756
SELECT ALL col0 * 22 DIV - col2 FROM tab1 AS cor0
----
-1
-18
-24

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL col0 * 22 / - col2 FROM tab1 AS cor0
----
-1
-18
-24

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

query I rowsort
SELECT DISTINCT + col0 + col2 - + col0 * col1 AS col0 FROM tab1 AS cor0
----
-21
-519
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT DISTINCT + col1 + ( - 81 + + col2 ) DIV col1 AS col0 FROM tab1 cor0
----
14
25
8

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + col1 + ( - 81 + + col2 ) / col1 AS col0 FROM tab1 cor0
----
14
25
8

query I rowsort
SELECT + ( - 18 ) * + col2 + + col2 AS col2 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT + + 46 * - col0 + - cor0.col2 FROM tab1 AS cor0
----
-192
-3001
-3776

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

query I rowsort
SELECT + 54 * col0 AS col0 FROM tab0 AS cor0
----
1296
1890
4806

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

query I rowsort
SELECT + ( - 65 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT + 91 * col1 AS col2 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT - 16 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
-116768
-12672
-560

query I rowsort
SELECT - - col0 * col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400

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

skipif mysql # not compatible
query I rowsort label-769
SELECT + CAST ( - col0 AS INTEGER ) * col2 * col0 AS col0 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT - col2 * + cor0.col1 * col1 FROM tab0 cor0
----
-244068
-679042
-9409

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT + col1 * col2 + 18 DIV - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-773
SELECT + col1 * col2 + 18 / - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor2.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
243 values hashing to aad6a39cc782d0570960622f04a07424

query I rowsort
SELECT DISTINCT - 35 * 54 FROM tab1
----
-1890

query I rowsort
SELECT DISTINCT + 80 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT ( 4 ) DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-777
SELECT ( 4 ) / col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * + col2 * col2 AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT + 87 * col1 + + 33 * 5 FROM tab2
----
1644
2862
5298

onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT DISTINCT col2 DIV ( + tab1.col0 ) col0 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT col2 / ( + tab1.col0 ) col0 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab1, tab2 cor0
----
65

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

query I rowsort
SELECT ALL - 13 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

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

query I rowsort
SELECT + + cor0.col1 * - ( 15 ) FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT col2 + + col0 AS col2 FROM tab2 WHERE + col2 + - col2 NOT BETWEEN - col0 * + col2 + + col0 AND - col2 * + col2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT + col0 DIV tab1.col1 - col2 AS col2 FROM tab1
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-787
SELECT + col0 / tab1.col1 - col2 AS col2 FROM tab1
----
-51
-54
-90

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT DISTINCT + tab0.col1 DIV col2 + col0 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT + tab0.col1 / col2 + col0 FROM tab0
----
132
26
90

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT + cor0.col2 DIV + col2 + + col2 DIV col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-791
SELECT + cor0.col2 / + col2 + + col2 / col1 FROM tab1 AS cor0
----
3
6
8

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

query I rowsort
SELECT ALL + col0 + + col1 + col1 FROM tab0 cor0
----
196
229
271

query I rowsort
SELECT - col2 * col2 - col1 * - col2 FROM tab1
----
-1512
-2679
-7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-795
SELECT col1 + - col0 DIV + col0 col2 FROM tab0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-795
SELECT col1 + - col0 / + col0 col2 FROM tab0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT ALL 91 DIV - col0 + col1 FROM tab1 AS cor0
----
-4
12
9

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL 91 / - col0 + col1 FROM tab1 AS cor0
----
-4
12
9

query I rowsort
SELECT ALL - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-798
SELECT tab1.col2 DIV tab1.col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-798
SELECT tab1.col2 / tab1.col0 FROM tab1
----
0
1
18

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT + col1 + col2 - - col2 DIV col2 FROM tab0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-800
SELECT + col1 + col2 - - col2 / col2 FROM tab0
----
120
174
99

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT col1 * + col0 + col1 NOT BETWEEN - col1 + col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * - col0 + col0 col1 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT DISTINCT 82 + cor0.col0 AS col2 FROM tab0 AS cor0
----
106
117
171

query I rowsort
SELECT ALL + col0 * + col0 * tab0.col0 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT + 72 + - col2 * col1 FROM tab1
----
-1176
-1332
-498

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

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

query I rowsort
SELECT cor0.col0 * + tab1.col2 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to aeeeb4bec4be16eaf92fcfb414a1ef1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT col1 * tab1.col2 DIV - col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT col1 * tab1.col2 / - col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL col0 + + col1 + col0 AS col2 FROM tab2
----
175
215
45

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-811
SELECT ALL col2 * + col1 + - col1 + col1 DIV col2 FROM tab1
----
1235
1378
560

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL col2 * + col1 + - col1 + col1 / col2 FROM tab1
----
1235
1378
560

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col2 / - col1 AND NULL
----

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

query I rowsort
SELECT + col1 * col0 + - col2 * col1 AS col0 FROM tab0
----
-774
3298
637

query I rowsort
SELECT ALL col2 + col0 * + col0 + col1 * - col1 AS col0 FROM tab2
----
-885
2629
5990

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

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

query I rowsort
SELECT DISTINCT col0 + col0 + tab2.col1 AS col0 FROM tab2
----
175
215
45

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT col1 DIV col0 + + col2 AS col1 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-821
SELECT col1 / col0 + + col2 AS col1 FROM tab1
----
57
62
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( - col0 / - col0 )
----

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----

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

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

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + col2
----

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

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL col1 + + col2 / tab2.col0 AS col1 FROM tab2
----
17
34
59

query I rowsort
SELECT + col1 * - col0 + col0 * + tab1.col0 AS col2 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT + + cor0.col0 * - 3 * + 51 FROM tab1 AS cor0
----
-12240
-459
-9792

query I rowsort
SELECT col2 + col2 * 49 AS col0 FROM tab2
----
1300
1350
1900

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-835
SELECT ALL + col0 + - cor0.col1 DIV ( col1 ) FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + col0 + - cor0.col1 / ( col1 ) FROM tab2 AS cor0
----
6
77
78

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

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

skipif mysql # not compatible
query I rowsort label-837
SELECT col0 / 28 AS col1 FROM tab2
----
0
2
2

query I rowsort
SELECT DISTINCT + 9 * 13 AS col1 FROM tab0, tab1 AS cor0
----
117

query I rowsort
SELECT + col0 + - 22 AS col0 FROM tab2
----
-15
56
57

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-841
SELECT col1 * col2 * + CAST( + 22 * + cor0.col0 + cor0.col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
15274714
1566576
78085

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-841
SELECT col1 * col2 * + CAST ( + 22 * + cor0.col0 + cor0.col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
15274714
1566576
78085

query I rowsort
SELECT + + 51 * + cor0.col1 FROM tab1 AS cor0
----
1326
510
663

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

query I rowsort
SELECT - + 88 FROM tab1 cor0
----
-88
-88
-88

query I rowsort
SELECT + cor0.col1 * cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ae5946db6904798b8afac35f5777bb79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-846
SELECT - CAST( 51 AS SIGNED ) * col0 AS col0 FROM tab2
----
-357
-3978
-4029

skipif mysql # not compatible
query I rowsort label-846
SELECT - CAST ( 51 AS INTEGER ) * col0 AS col0 FROM tab2
----
-357
-3978
-4029

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

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

query I rowsort
SELECT + 9 * - col2 * 67 FROM tab0 AS cor0
----
-19899
-49446
-603

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-851
SELECT DISTINCT + + col1 DIV col0 + + col2 * 85 + col2 FROM tab1 AS cor0
----
4652
4902
8256

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT + + col1 / col0 + + col2 * 85 + col2 FROM tab1 AS cor0
----
4652
4902
8256

query I rowsort
SELECT - + 14 + col0 * 20 AS col2 FROM tab2 AS cor0
----
126
1546
1566

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + 52 + col1 + - 73 AS col2 FROM tab1
----
-11
-8
5

query I rowsort
SELECT col0 * col2 - 83 * col1 * + ( col2 ) AS col2 FROM tab0
----
-234762
-612048
-8016

query I rowsort
SELECT col0 * 39 AS col2 FROM tab0 AS cor0
----
1365
3471
936

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

query I rowsort
SELECT - - 48 AS col2 FROM tab0 AS cor0
----
48
48
48

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-860
SELECT + cor0.col2 - + ( + col1 ) DIV + cor0.col1 FROM tab2 cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-860
SELECT + cor0.col2 - + ( + col1 ) / + cor0.col1 FROM tab2 cor0
----
25
26
37

query I rowsort
SELECT + + 86 + - 96 FROM tab1 AS cor0
----
-10
-10
-10

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-863
SELECT col1 * + 71 + col0 + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1269
2177
4208

skipif mysql # not compatible
query I rowsort label-863
SELECT col1 * + 71 + col0 + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1269
2177
4208

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT - col2 * col0 - col0 DIV + col0 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-865
SELECT - col2 * col0 - col0 / + col0 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT DISTINCT 53 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
53

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

query I rowsort
SELECT ALL col1 + col2 * - col2 FROM tab0 cor0
----
-1003
-6633
96

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

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

query I rowsort
SELECT ALL - - col1 * - ( col2 ) + + 48 FROM tab1 AS cor0
----
-1200
-1356
-522

query I rowsort
SELECT col2 * + 99 AS col0 FROM tab0 AS cor0
----
3267
8118
99

query I rowsort
SELECT - 28 * + ( cor0.col1 ) AS col2 FROM tab2, tab1 cor0
----
9 values hashing to ecd1132838adf34d1df922ccad739f9b

query I rowsort
SELECT ALL col0 * col2 * col2 AS col2 FROM tab1 cor0
----
207936
737280
8748

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

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - CAST ( NULL AS INTEGER ) * 82 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL - col2 / col0 AS col1 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT - col1 + 42 FROM tab2
----
-17
11
25

query I rowsort
SELECT + col0 + - 72 FROM tab1
----
-69
-8
8

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

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

query I rowsort
SELECT DISTINCT - col2 + ( + 62 ) FROM tab0
----
-20
29
61

query I rowsort
SELECT col0 - ( col0 + col0 ) * + col1 AS col0 FROM tab1
----
-1216
-153
-2000

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

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

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

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

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

query I rowsort
SELECT - ( + 71 ) + - col0 * col1 FROM tab2 AS cor0
----
-1414
-288
-4673

query I rowsort
SELECT + + 61 * col0 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT DISTINCT - 11 * col2 AS col0 FROM tab2 AS cor0
----
-286
-297
-418

query I rowsort
SELECT - + ( - 36 ) + - col0 FROM tab2 AS cor0
----
-42
-43
29

query I rowsort
SELECT - + ( - col0 ) * + col2 * - ( - col1 ) FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col0 * col0 + col1 * - col1 FROM tab0 AS cor0
----
-360
-6820
-8184

onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT - col2 DIV col1 + ( col0 ) * - col2 FROM tab1 cor0
----
-164
-3653
-7687

skipif mysql # not compatible
query I rowsort label-892
SELECT - col2 / col1 + ( col0 ) * - col2 FROM tab1 cor0
----
-164
-3653
-7687

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

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

skipif mysql # not compatible
query I rowsort label-894
SELECT col0 * + CAST ( - col0 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL col2 + 94 AS col0 FROM tab0 cor0
----
127
176
95

query I rowsort
SELECT col2 + + 48 AS col0 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT col0 * + ( 84 ) FROM tab1 AS cor0
----
252
5376
6720

query I rowsort
SELECT col1 * 2 * + col1 FROM tab2
----
1922
578
6962

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

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

query I rowsort
SELECT DISTINCT - - col1 * 3 + 70 AS col2 FROM tab0 cor0
----
328
343
361

query I rowsort
SELECT ALL - col0 * ( + 38 ) + + col0 FROM tab0 AS cor0
----
-1295
-3293
-888

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-904
SELECT col0 + + CAST( 51 AS SIGNED ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2757
2971
4976

skipif mysql # not compatible
query I rowsort label-904
SELECT col0 + + CAST ( 51 AS INTEGER ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2757
2971
4976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 20 col0 FROM tab0 AS cor0
----
-1640
-20
-660

query I rowsort
SELECT DISTINCT - col2 * 77 AS col0 FROM tab0 AS cor0
----
-2541
-6314
-77

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

query I rowsort
SELECT DISTINCT - - cor0.col0 + - ( 19 ) FROM tab0 cor0
----
16
5
70

query I rowsort
SELECT + col1 * col0 * cor0.col0 + col2 FROM tab2 AS cor0
----
106135
1546
358982

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

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

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - col1 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 + - cor0.col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL - 96 + + 92 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT col1 + 68 * - col2 AS col2 FROM tab1 AS cor0
----
-3646
-3866
-6515

query I rowsort
SELECT - ( 92 ) * col2 + - 36 AS col0 FROM tab2 AS cor0
----
-2428
-2520
-3532

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

query I rowsort
SELECT ALL 93 + col1 * - col2 + + ( col0 ) FROM tab2 AS cor0
----
-1363
-474
-737

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

query I rowsort
SELECT + - 51 + - col1 FROM tab0 AS cor0
----
-137
-142
-148

query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT 95 * + col1 * col0 AS col1 FROM tab1
----
60800
7410
98800

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 * cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL 12 - - col1 FROM tab2
----
29
43
71

query I rowsort
SELECT + col2 + col2 + col2 AS col0 FROM tab2
----
114
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-926
SELECT ALL col0 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL col0 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * - ( + col1 * + 76 ) + col2 col1 FROM tab2 AS cor0
----
-1717497
-1865610
-3031158

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

skipif mysql # not compatible
query I rowsort label-928
SELECT + col2 * CAST ( + col2 AS INTEGER ) * cor0.col1 - col1 FROM tab2 AS cor0
----
22568
24531
39825

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

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

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL tab1.col0 + - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT - 73 * col1 AS col0 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT DISTINCT + 42 * col1 * + col2 FROM tab0
----
119196
313404
4074

query I rowsort
SELECT ALL 35 * - tab1.col2 + + 23 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to dc03a33b7ab99d5c4a3ea5d6ea55d477

query I rowsort
SELECT DISTINCT + 59 * - cor0.col0 FROM tab0 AS cor0
----
-1416
-2065
-5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col2 FROM tab1
----
10
13
26

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

query I rowsort
SELECT ( + 43 ) * col0 AS col1 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT 49 * col2 AS col0 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT ALL - col2 * - 26 AS col1 FROM tab2 AS cor0
----
676
702
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-941
SELECT - - col2 DIV + ( col2 ) + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-941
SELECT - - col2 / + ( col2 ) + col0 FROM tab1 AS cor0
----
4
65
81

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

query I rowsort
SELECT col0 + col2 + - ( + col2 ) * col2 FROM tab1
----
-2859
-3128
-9040

query I rowsort
SELECT DISTINCT 66 + - tab2.col0 AS col1 FROM tab2
----
-12
-13
59

query I rowsort
SELECT ALL - 65 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

query I rowsort
SELECT DISTINCT tab0.col2 * 12 FROM tab0
----
12
396
984

query I rowsort
SELECT DISTINCT 37 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
37

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

query I rowsort
SELECT + col1 * + 40 AS col0 FROM tab1 AS cor0
----
1040
400
520

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

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

query I rowsort
SELECT - 8 * - col0 + + col1 FROM tab0 AS cor0
----
278
377
803

query I rowsort
SELECT ALL + col2 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - cor0.col1 * 59 AS col1 FROM tab0 AS cor0
----
-5074
-5369
-5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT ALL col0 DIV col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL col0 / col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 96 + col1 col2 FROM tab0 cor0
----
-2218
-3263
-8453

onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT + col2 + 63 * col0 DIV col1 FROM tab1 AS cor0
----
460
483
61

skipif mysql # not compatible
query I rowsort label-957
SELECT + col2 + 63 * col0 / col1 FROM tab1 AS cor0
----
460
483
61

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-959
SELECT - col0 * col0 DIV - tab2.col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-959
SELECT - col0 * col0 / - tab2.col0 FROM tab2
----
7
78
79

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

query I rowsort
SELECT DISTINCT col0 - + 10 FROM tab1
----
-7
54
70

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-49
-546
-553
-6084
-6162
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-963
SELECT + 83 * - 68 * cor0.col1 + + CAST( + 1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-485360
-513515
-547433

skipif mysql # not compatible
query I rowsort label-963
SELECT + 83 * - 68 * cor0.col1 + + CAST ( + 1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-485360
-513515
-547433

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT + col0 DIV col0 + - col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-965
SELECT + col0 / col0 + - col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT - + ( - cor0.col2 ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + - 49 * col0 AS col2 FROM tab0 cor0
----
-1176
-1715
-4361

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * col0 col2 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT col1 + + 2 AS col0 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT ALL + 28 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) + - 29 * cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
-105802
-222733
-4724

onlyif mysql # use DIV operator for integer division
query I rowsort label-974
SELECT ALL + 50 DIV - col1 FROM tab1 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL + 50 / - col1 FROM tab1 AS cor0
----
-1
-3
-5

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

query I rowsort
SELECT DISTINCT + 54 * col1 AS col1 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT - + col1 * + col2 * col2 + + col1 - col0 FROM tab1 cor0
----
-119875
-32544
-75793

query I rowsort
SELECT ALL col1 * col2 * - 76 FROM tab1 AS cor0
----
-106704
-43320
-94848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + col2 * - col1 col1 FROM tab1 AS cor0
----
-1207
-1363
-529

onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT + col1 * cor0.col1 DIV CAST( col2 AS SIGNED ) + + col0 * 12 * col0 + + col0 FROM tab1 AS cor0
----
123
49217
76881

skipif mysql # not compatible
query I rowsort label-980
SELECT + col1 * cor0.col1 / CAST ( col2 AS INTEGER ) + + col0 * 12 * col0 + + col0 FROM tab1 AS cor0
----
123
49217
76881

query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab1 cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 + + col0 col1 FROM tab1 AS cor0
----
-54
23
7

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

query I rowsort
SELECT DISTINCT - + col1 + + col2 + cor0.col1 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL - col1 + - col0 * + 80 FROM tab2 AS cor0
----
-591
-6299
-6337

query I rowsort
SELECT ALL col1 * col1 + ( 20 ) FROM tab0
----
7416
8301
9429

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT ALL - col0 + - CAST( ( col1 ) AS SIGNED ) DIV ( col1 ) AS col2 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL - col0 + - CAST ( ( col1 ) AS INTEGER ) / ( col1 ) AS col2 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT + + col1 + 30 * + col2 FROM tab1 AS cor0
----
1646
1720
2893

query I rowsort
SELECT DISTINCT - + col0 * 74 - col0 AS col0 FROM tab2 AS cor0
----
-525
-5850
-5925

query I rowsort
SELECT ALL 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

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

query I rowsort
SELECT cor0.col1 + 28 FROM tab0, tab2 AS cor0
----
9 values hashing to ac5728d6a67b1ee5db32d7b34c238f5a

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 76 FROM tab1
----
4104
4332
7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * col0 col0 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-999
SELECT DISTINCT + col2 DIV - 65 + col1 * - col2 - col0 AS col2 FROM tab2
----
-1612
-725
-844

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + col2 / - 65 + col1 * - col2 - col0 AS col2 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL col2 - - ( - col0 ) * - col2 * + col0 FROM tab2
----
1350
158210
237196

query I rowsort
SELECT 22 + + 89 AS col1 FROM tab0
----
111
111
111

query I rowsort
SELECT + 43 + 75 AS col2 FROM tab0
----
118
118
118

query I rowsort
SELECT col2 + col0 + - col1 * ( ( tab1.col2 ) ) AS col1 FROM tab1
----
-1072
-1347
-449

query I rowsort
SELECT ALL + col1 * col0 * + col0 + col0 - - col1 AS col2 FROM tab1
----
263
41034
83293

query I rowsort
SELECT 54 * - cor0.col1 * - col1 FROM tab1 cor0
----
36504
5400
9126

query I rowsort
SELECT ALL + col2 * 5 AS col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT ( 8 ) - - col1 * - col2 FROM tab1 AS cor0
----
-1240
-1396
-562

query I rowsort
SELECT - 7 + + 24 * col2 FROM tab1 AS cor0
----
1289
1361
2297

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

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

query I rowsort
SELECT - - 48 + + col1 FROM tab0 AS cor0
----
134
139
145

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

query I rowsort
SELECT - 37 * + col1 + tab2.col2 + + col1 AS col2 FROM tab2
----
-1089
-2098
-574

query I rowsort
SELECT DISTINCT 73 - col1 AS col0 FROM tab0
----
-13
-18
-24

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

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

query I rowsort
SELECT ALL + + 55 + + col2 + + col1 AS col2 FROM tab0 AS cor0
----
153
174
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 * col1 col1 FROM tab0 AS cor0
----
-1892
-2002
-2134

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

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

query I rowsort
SELECT - col1 * col1 + cor0.col0 * 27 AS col0 FROM tab0 AS cor0
----
-5878
-6748
-8464

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

query I rowsort
SELECT - cor0.col1 + + col2 * col0 AS col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - - col0 - 19 * 32 AS col2 FROM tab2 AS cor0
----
-529
-530
-601

query I rowsort
SELECT - col1 * - col0 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT ALL + - col0 * - col1 * col1 + + col0 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT DISTINCT + col0 * 74 AS col2 FROM tab2 AS cor0
----
518
5772
5846

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

query I rowsort
SELECT DISTINCT - + col2 * + col1 + cor0.col1 FROM tab0 cor0
----
-2752
-7371
0

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col2 + + 35 * + col2 FROM tab1 AS cor0
----
1944
2052
3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT ALL + ( 65 ) DIV + col2 + col0 + 82 * + col0 * + col0 FROM tab0 cor0
----
100550
47257
649611

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL + ( 65 ) / + col2 + col0 + 82 * + col0 * + col0 FROM tab0 cor0
----
100550
47257
649611

query I rowsort
SELECT ALL + cor0.col2 - + 20 * col2 FROM tab0 AS cor0
----
-1558
-19
-627

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

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

query I rowsort
SELECT - + col0 + + 86 FROM tab2 cor0
----
7
79
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 col0 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1039
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col2 * + cor0.col0 + + col0 * + col2 * - 67 AS col2 FROM tab1 AS cor0
----
-10666
-240758
-506867

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col2 * + cor0.col0 + + col0 * + col2 * - 67 AS col2 FROM tab1 AS cor0
----
-10666
-240758
-506867

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

query I rowsort
SELECT - 37 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
3182
3367
3589

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

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - col0 + col2 / col0 AS col1 FROM tab2 AS cor0
----
-4
-78
-79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1044
SELECT + col2 + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + col0 + - 7 * col1 FROM tab2 AS cor0
----
-210
-335
-40

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT col0 DIV col1 - col1 AS col1 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-1048
SELECT col0 / col1 - col1 AS col1 FROM tab2
----
-13
-31
-58

query I rowsort
SELECT ( + tab1.col2 ) + col2 AS col1 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT - 5 * + ( col0 ) DIV - col0 AS col2 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1050
SELECT - 5 * + ( col0 ) / - col0 AS col2 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT + col1 + 97 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-5212
-5519
-9299

query I rowsort
SELECT ALL + - 86 * col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT - - cor0.col1 * col1 + col1 FROM tab2 AS cor0
----
306
3540
992

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT + 64 DIV col1 FROM tab1
----
2
4
6

skipif mysql # not compatible
query I rowsort label-1055
SELECT + 64 / col1 FROM tab1
----
2
4
6

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

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

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

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

query I rowsort
SELECT - col1 * col1 + - tab0.col1 - col1 FROM tab0
----
-7568
-8463
-9603

query I rowsort
SELECT + - col0 * - 38 AS col1 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT DISTINCT col1 * ( col1 * - col2 ) + cor0.col2 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT + + col2 * + 12 + + ( col1 ) * col0 FROM tab2 AS cor0
----
1799
4914
541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 39 + + col1 FROM tab1 AS cor0
----
49
52
65

query I rowsort
SELECT DISTINCT - 44 * + 53 AS col1 FROM tab2 AS cor0
----
-2332

query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 + - col1 + col0 * col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

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

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

query I rowsort
SELECT DISTINCT - ( - 96 ) FROM tab0 cor0
----
96

query I rowsort
SELECT DISTINCT - - ( col0 ) * col1 * - col2 + col1 * - col2 FROM tab0 AS cor0
----
-3492
-671580
-70950

query I rowsort
SELECT + + col1 * - 83 AS col0 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT ALL - cor0.col2 - - 64 FROM tab1 AS cor0
----
-32
10
7

query I rowsort
SELECT DISTINCT col2 * col2 * col1 - col1 FROM tab0
----
0
611793
93568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - tab2.col2 col0 FROM tab2
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1075
SELECT - 15 * col1 DIV + col0 FROM tab1 AS cor0
----
-130
-2
-2

skipif mysql # not compatible
query I rowsort label-1075
SELECT - 15 * col1 / + col0 FROM tab1 AS cor0
----
-130
-2
-2

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

query I rowsort
SELECT col1 + + col2 * ( + 23 + col0 ) AS col0 FROM tab2 AS cor0
----
2685
3893
841

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

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT CAST ( 4 AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
4

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

query I rowsort
SELECT + col1 + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + cor0.col1 * - cor0.col0 + - 50 FROM tab1 AS cor0
----
-1090
-128
-690

query I rowsort
SELECT col0 + + col1 * - 18 AS col1 FROM tab1 AS cor0
----
-116
-154
-465

query I rowsort
SELECT - col1 + tab1.col1 + col2 FROM tab1
----
54
57
96

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

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

query I rowsort
SELECT + col1 * col1 + col2 + - col1 AS col0 FROM tab1
----
147
252
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT - - col0 DIV - cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-1087
SELECT - - col0 / - cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60

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

query I rowsort
SELECT DISTINCT + col2 * - col1 * - col0 + col2 FROM tab1 AS cor0
----
36537
4266
99936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col2 * col1 * + col2 col1 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT + col0 * col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
12168
12482
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT - + col1 * col1 DIV + col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1092
SELECT - + col1 * col1 / + col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col0 + - col1 + col1 * cor0.col0 FROM tab2 AS cor0
----
1247
179
4465

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 + col1 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT col0 + + col1 * cor0.col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + col0 + - col2 * col0 - col1 AS col0 FROM tab1 AS cor0
----
-185
-3594
-7613

query I rowsort
SELECT ALL - col2 * col1 + + col2 * col1 - col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - col2 + col1 - col0 AS col0 FROM tab2
----
-100
-3
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT DISTINCT - + col0 + cor0.col0 DIV col2 AS col0 FROM tab1 cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT - + col0 + cor0.col0 / col2 AS col0 FROM tab1 cor0
----
-3
-63
-80

query I rowsort
SELECT 90 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
2118
279
3092

query I rowsort
SELECT ALL - 43 - col0 FROM tab2 AS cor0
----
-121
-122
-50

query I rowsort
SELECT - 25 * + col0 FROM tab0 cor0
----
-2225
-600
-875

query I rowsort
SELECT DISTINCT 75 * cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
2625
547350
59400

query I rowsort
SELECT 54 * + cor0.col2 FROM tab1 AS cor0
----
2916
3078
5184

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT ALL - + col1 DIV - col0 + + col1 + cor0.col1 FROM tab0 AS cor0
----
175
183
196

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL - + col1 / - col0 + + col1 + cor0.col1 FROM tab0 AS cor0
----
175
183
196

query I rowsort
SELECT ALL - 11 + col1 AS col2 FROM tab0 cor0
----
75
80
86

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1112
SELECT DISTINCT col0 * col2 DIV - col1 FROM tab1 cor0
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT col0 * col2 / - col1 FROM tab1 cor0
----
-364
-590
-6

query I rowsort
SELECT DISTINCT - + col2 * - col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + + 12 * - col1 FROM tab1 AS cor0
----
-120
-156
-312

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

query I rowsort
SELECT ALL + col1 + + col0 * - col1 * - cor0.col1 FROM tab0 AS cor0
----
177590
329412
737100

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + tab2.col1 + col0 FROM tab2
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + col2 * col2 * + col1 col2 FROM tab1
----
119904
32547
75870

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

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

query I rowsort
SELECT DISTINCT col1 + + col0 * tab0.col1 AS col2 FROM tab0
----
2150
3492
8190

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

query I rowsort
SELECT ALL col0 * col1 * + col1 + - col1 * col0 AS col2 FROM tab1
----
12480
1950
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE NOT col0 IN ( col0 + col1 * tab2.col0 * col1 )
----
7
78
79

query I rowsort
SELECT DISTINCT col0 - - col2 * col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT tab0.col2 + + col0 + col0 AS col1 FROM tab0
----
260
71
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * col0 * col2 + col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT ALL col0 * col2 + col1 * col2 FROM tab0
----
132
14760
3630

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

skipif mysql # not compatible
query I rowsort label-1136
SELECT cor0.col1 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + col0 * + col1 * + col0 FROM tab1
----
260
40970
83213

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

query I rowsort
SELECT + col0 * col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + col0 * cor0.col1 FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

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

query I rowsort
SELECT DISTINCT + col1 + 93 FROM tab0
----
179
184
190

query I rowsort
SELECT + 90 + col1 * - ( col2 ) + col1 FROM tab0 AS cor0
----
-2662
-7281
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col0 * cor0.col2 - - 17 col0 FROM tab2 AS cor0
----
-141
-1952
-2968

onlyif mysql # use DIV operator for integer division
query I rowsort label-1145
SELECT - ( - cor0.col2 ) * ( - 20 ) DIV col2 + cor0.col1 + col0 FROM tab1 cor0
----
54
73
9

skipif mysql # not compatible
query I rowsort label-1145
SELECT - ( - cor0.col2 ) * ( - 20 ) / col2 + cor0.col1 + col0 FROM tab1 cor0
----
54
73
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1146
SELECT DISTINCT + tab2.col0 DIV 27 AS col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT + tab2.col0 / 27 AS col1 FROM tab2
----
0
2

query I rowsort
SELECT - ( col2 + - col1 ) AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT 93 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

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

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

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

skipif mysql # not compatible
query I rowsort label-1150
SELECT CAST ( ( - col2 ) AS INTEGER ) + col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * + col2 + - col2 * col1 col1 FROM tab0 AS cor0
----
-1287
-3608
-50

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 23 AS REAL ) AS col1 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT - 7 * - col2 - + col1 * col2 FROM tab1 AS cor0
----
-1026
-171
-576

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

query I rowsort
SELECT - col1 * + col1 + + col1 * ( + 53 ) + + col0 * ( col2 ) AS col1 FROM tab1 cor0
----
4078
8200
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT DISTINCT col0 DIV + 65 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT col0 / + 65 FROM tab1 AS cor0
----
0
1

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

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

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

query I rowsort
SELECT - 27 + - col1 FROM tab0
----
-113
-118
-124

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

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

query I rowsort
SELECT + + 90 * col2 AS col1 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT DISTINCT - 39 * cor0.col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

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

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

query I rowsort
SELECT DISTINCT - 87 * col2 + 63 FROM tab2 cor0
----
-2199
-2286
-3243

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1169
SELECT DISTINCT col1 DIV + cor0.col0 + col1 FROM tab2 cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT col1 / + cor0.col0 + col1 FROM tab2 cor0
----
17
35
59

query I rowsort
SELECT + col0 * + cor0.col2 - - col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - - col0 * + col2 * 23 + + col1 + + col0 FROM tab0 cor0
----
168034
18326
937

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( ( col2 ) + - 37 AS REAL ) AS col2 FROM tab0
----
-36
-4
45

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 53 ) col2 FROM tab0
----
-53

query I rowsort
SELECT DISTINCT + col1 + - 33 AS col2 FROM tab0 cor0
----
53
58
64

query I rowsort
SELECT ALL + 80 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

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

query I rowsort
SELECT ALL ( col1 ) + col2 * col1 + col2 FROM tab0 cor0
----
195
2957
7635

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

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

query I rowsort
SELECT ALL + + cor0.col2 * ( - col1 ) + col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96

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

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

query I rowsort
SELECT - + 69 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

query I rowsort
SELECT ALL + - col1 * 16 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT + col0 * + 20 AS col1 FROM tab2 AS cor0
----
140
1560
1580

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT DISTINCT col0 + CAST( + col0 AS SIGNED ) DIV col1 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT col0 + CAST ( + col0 AS INTEGER ) / col1 AS col2 FROM tab0 AS cor0
----
24
35
89

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1189
SELECT ALL col1 + + CAST( + col0 AS SIGNED ) + col2 FROM tab2
----
134
163
65

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL col1 + + CAST ( + col0 AS INTEGER ) + col2 FROM tab2
----
134
163
65

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

query I rowsort
SELECT ALL - - col2 * - 70 FROM tab0 cor0
----
-2310
-5740
-70

query I rowsort
SELECT - - col0 * + 87 AS col2 FROM tab1 AS cor0
----
261
5568
6960

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

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

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

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT + + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + col1 / + 59 col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 67 col2 FROM tab1 AS cor0
----
201
4288
5360

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

query I rowsort
SELECT DISTINCT + - ( 0 ) * col2 + 49 FROM tab1 AS cor0
----
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1201
SELECT + CAST( + col1 AS SIGNED ) + col0 * + ( + 90 ) FROM tab0 AS cor0
----
2246
3247
8101

skipif mysql # not compatible
query I rowsort label-1201
SELECT + CAST ( + col1 AS INTEGER ) + col0 * + ( + 90 ) FROM tab0 AS cor0
----
2246
3247
8101

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

query I rowsort
SELECT ALL + ( + ( cor0.col1 ) ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-1204
SELECT cor0.col1 * col2 + - cor0.col1 * 52 DIV - col0 FROM tab1 AS cor0
----
1256
1854
578

skipif mysql # not compatible
query I rowsort label-1204
SELECT cor0.col1 * col2 + - cor0.col1 * 52 / - col0 FROM tab1 AS cor0
----
1256
1854
578

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 + 37 * col1 col2 FROM tab2 AS cor0
----
2108
5664
918

query I rowsort
SELECT 12 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1209
SELECT ALL 63 * - cor0.col0 + + ( - col1 ) DIV + col1 FROM tab0 AS cor0
----
-1513
-2206
-5608

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL 63 * - cor0.col0 + + ( - col1 ) / + col1 FROM tab0 AS cor0
----
-1513
-2206
-5608

onlyif mysql # use DIV operator for integer division
query I rowsort label-1210
SELECT DISTINCT 83 DIV - col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT 83 / - col1 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT DISTINCT + col1 + col2 - - 53 DIV col1 AS col2 FROM tab1 AS cor0
----
113
72
82

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT + col1 + col2 - - 53 / col1 AS col2 FROM tab1 AS cor0
----
113
72
82

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

query I rowsort
SELECT - 16 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1214
SELECT ALL + col1 DIV + col1 + col0 + col2 FROM tab0 AS cor0
----
172
37
58

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL + col1 / + col1 + col0 + col2 FROM tab0 AS cor0
----
172
37
58

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

query I rowsort
SELECT col2 * col0 + + ( - col0 ) * col0 FROM tab1 AS cor0
----
-448
1280
153

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

query I rowsort
SELECT ALL - + col1 - col0 * col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-13910
-42972
-705060

query I rowsort
SELECT ALL 80 + col2 FROM tab1 AS cor0
----
134
137
176

query I rowsort
SELECT DISTINCT - 13 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-302
-3494
-974

query I rowsort
SELECT ALL - 59 * - col1 FROM tab0 AS cor0
----
5074
5369
5723

query I rowsort
SELECT - + 9 + + col2 AS col2 FROM tab2 AS cor0
----
17
18
29

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

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

query I rowsort
SELECT ALL + - 60 AS col2 FROM tab2 cor0
----
-60
-60
-60

query I rowsort
SELECT + col0 + + col1 * - 39 + 74 * - col0 AS col0 FROM tab1 AS cor0
----
-1233
-5062
-6347

query I rowsort
SELECT + - col1 + 39 AS col2 FROM tab1 AS cor0
----
13
26
29

query I rowsort
SELECT ALL col1 * - cor0.col0 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - 92 - col2 * col2 FROM tab1 AS cor0
----
-3008
-3341
-9308

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

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

query I rowsort
SELECT + col0 * + 50 * col1 FROM tab1
----
32000
3900
52000

onlyif mysql # use DIV operator for integer division
query I rowsort label-1233
SELECT DISTINCT ( col1 ) * - col0 * - col2 + col2 DIV - tab2.col1 AS col2 FROM tab2
----
119652
51032
5859

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT ( col1 ) * - col0 * - col2 + col2 / - tab2.col1 AS col2 FROM tab2
----
119652
51032
5859

query I rowsort
SELECT 2 + tab0.col0 + + tab0.col1 FROM tab0
----
112
134
182

query I rowsort
SELECT - 29 + - col0 * col2 FROM tab0
----
-64
-7327
-821

query I rowsort
SELECT DISTINCT - col2 * - tab1.col1 * + col1 + col0 FROM tab1
----
16304
36507
5764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT 63 DIV col0 + col2 * col1 * - col0 AS col2 FROM tab1 cor0
----
-36480
-4191
-99840

skipif mysql # not compatible
query I rowsort label-1238
SELECT 63 / col0 + col2 * col1 * - col0 AS col2 FROM tab1 cor0
----
-36480
-4191
-99840

query I rowsort
SELECT ALL 21 + + col0 * + col2 FROM tab1
----
183
3669
7701

query I rowsort
SELECT + cor0.col0 + - 33 FROM tab1 AS cor0
----
-30
31
47

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1244
SELECT CAST( 61 AS SIGNED ) * + cor0.col2 - + 19 AS col1 FROM tab0 AS cor0
----
1994
42
4983

skipif mysql # not compatible
query I rowsort label-1244
SELECT CAST ( 61 AS INTEGER ) * + cor0.col2 - + 19 AS col1 FROM tab0 AS cor0
----
1994
42
4983

onlyif mysql # use DIV operator for integer division
query I rowsort label-1245
SELECT ALL - col2 + col0 DIV + col1 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - col2 + col0 / + col1 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col2 FROM tab2 AS cor0
----
-52
-54
-76

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

query I rowsort
SELECT ALL - 4 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT DISTINCT ( tab2.col2 ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT + 40 * - col2 * ( col1 ) AS col2 FROM tab1
----
-22800
-49920
-56160

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

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

query I rowsort
SELECT ALL 94 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

onlyif mysql # use DIV operator for integer division
query I rowsort label-1253
SELECT + cor0.col0 DIV + col1 + - ( - 54 ) FROM tab2 AS cor0
----
54
55
58

skipif mysql # not compatible
query I rowsort label-1253
SELECT + cor0.col0 / + col1 + - ( - 54 ) FROM tab2 AS cor0
----
54
55
58

query I rowsort
SELECT DISTINCT cor0.col2 * + 47 FROM tab1, tab2 cor0
----
1222
1269
1786

query I rowsort
SELECT DISTINCT - col2 + 81 FROM tab2 AS cor0
----
43
54
55

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 77 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-1258
SELECT col1 DIV - 29 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1258
SELECT col1 / - 29 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col1 FROM tab1, tab0 AS cor0
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-1260
SELECT col2 - - ( col2 ) DIV - col0 AS col2 FROM tab0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-1260
SELECT col2 - - ( col2 ) / - col0 AS col2 FROM tab0
----
1
32
82

query I rowsort
SELECT ALL - + cor0.col2 * - 88 AS col1 FROM tab2 cor0
----
2288
2376
3344

query I rowsort
SELECT DISTINCT + cor0.col1 + + ( col0 ) * - col1 * + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT ALL - col1 * + col0 + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1047
-645
-80

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL - col1 * + col0 + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-1047
-645
-80

query I rowsort
SELECT col1 * 13 + col1 FROM tab0
----
1204
1274
1358

query I rowsort
SELECT DISTINCT - 94 - + col1 AS col2 FROM tab2
----
-111
-125
-153

query I rowsort
SELECT + 39 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT + col0 * - 8 FROM tab1
----
-24
-512
-640

query I rowsort
SELECT ALL ( + 37 ) FROM tab2
----
37
37
37

query I rowsort
SELECT - col0 * - 27 + cor0.col0 AS col1 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT + ( 12 ) * - col2 AS col2 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT DISTINCT + 64 * col1 * 0 + + ( - col2 ) * 28 FROM tab1 AS cor0
----
-1512
-1596
-2688

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

query I rowsort
SELECT ALL + col0 + col2 * + 43 * col1 AS col1 FROM tab0 AS cor0
----
122058
320955
4206

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

query I rowsort
SELECT ALL - 78 + - col0 AS col0 FROM tab2 AS cor0
----
-156
-157
-85

query I rowsort
SELECT ALL ( col0 ) + + cor0.col2 AS col2 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 63 * + cor0.col0 + cor0.col0 col0 FROM tab1 AS cor0
----
192
4096
5120

query I rowsort
SELECT ALL - col2 + - col1 * - 83 AS col0 FROM tab2 AS cor0
----
1373
2546
4871

query I rowsort
SELECT DISTINCT + col2 + - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL + col0 * - 51 - col2 FROM tab1 cor0
----
-207
-3321
-4176

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

query I rowsort
SELECT DISTINCT - ( 81 ) * + col1 * col1 + cor0.col1 FROM tab0 AS cor0
----
-598990
-670670
-762032

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + 44 * - col1 col2 FROM tab1 AS cor0
----
-1198
-497
-668

query I rowsort
SELECT DISTINCT + + col1 + 35 * + cor0.col1 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT DISTINCT + col0 + + 12 FROM tab2
----
19
90
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 46 * - col0 col2 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT + col0 * ( - col2 ) * ( + 2 ) + - col1 FROM tab2 AS cor0
----
-409
-4115
-6021

query I rowsort
SELECT - 87 * + col1 * + col1 FROM tab1 AS cor0
----
-14703
-58812
-8700

query I rowsort
SELECT DISTINCT - tab2.col2 + ( - col2 ) FROM tab2
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1291
SELECT 96 DIV - 69 + - tab2.col0 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-1291
SELECT 96 / - 69 + - tab2.col0 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT + 45 * - col1 FROM tab1 AS cor0
----
-1170
-450
-585

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

query I rowsort
SELECT + 86 FROM tab2, tab0 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL 78 - + col0 * 65 FROM tab1
----
-117
-4082
-5122

query I rowsort
SELECT ALL col0 * - 54 + 48 FROM tab2 AS cor0
----
-330
-4164
-4218

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT + col0 / col1 + 47 AS col2 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + - col1 + + 99 AS col1 FROM tab2 cor0
----
40
68
82

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1300
SELECT - 24 DIV tab2.col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 24 / tab2.col0 AS col1 FROM tab2
----
-3
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1301
SELECT ALL ( col0 ) * + CAST( + 80 AS SIGNED ) * tab2.col0 + col0 + - col0 AS col1 FROM tab2
----
3920
486720
499280

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL ( col0 ) * + CAST ( + 80 AS INTEGER ) * tab2.col0 + col0 + - col0 AS col1 FROM tab2
----
3920
486720
499280

query I rowsort
SELECT ALL col2 + - col2 - col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + 72 + col2 * col1 * col1 - tab0.col1 FROM tab0
----
244054
679023
9384

query I rowsort
SELECT + ( + 7 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT col0 * - 8 * - 21 + - col0 FROM tab1
----
10688
13360
501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + ( col2 ) * - col0 + - cor0.col0 * + col0 col1 FROM tab2 AS cor0
----
-211
-8086
-9205

query I rowsort
SELECT ALL + col2 + - ( + 62 + + col1 * + 78 ) AS col1 FROM tab0 AS cor0
----
-6737
-7078
-7627

query I rowsort
SELECT DISTINCT cor0.col2 * + 81 AS col0 FROM tab1 cor0
----
4374
4617
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 + + col1 * col0 col0 FROM tab2 AS cor0
----
1178
1632
8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-1310
SELECT + col1 * cor0.col0 + col1 * - col1 + col2 DIV col1 FROM tab2 AS cor0
----
-744
1056
1121

skipif mysql # not compatible
query I rowsort label-1310
SELECT + col1 * cor0.col0 + col1 * - col1 + col2 / col1 FROM tab2 AS cor0
----
-744
1056
1121

query I rowsort
SELECT DISTINCT col0 + + 37 * col1 AS col1 FROM tab0 AS cor0
----
3206
3456
3624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1312
SELECT DISTINCT + col1 * ( 69 ) + col0 + + CAST( + 69 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1321
2215
4218

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + col1 * ( 69 ) + col0 + + CAST ( + 69 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1321
2215
4218

query I rowsort
SELECT ALL 8 FROM tab2, tab1 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1314
SELECT DISTINCT col1 DIV - col0 + - col2 * col1 FROM tab1
----
-1248
-1412
-570

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT col1 / - col0 + - col2 * col1 FROM tab1
----
-1248
-1412
-570

query I rowsort
SELECT col0 * + ( 34 ) FROM tab0
----
1190
3026
816

query I rowsort
SELECT ALL - col0 * 28 + 71 * + tab2.col1 + - col2 AS col2 FROM tab2
----
-1043
1978
1979

query I rowsort
SELECT + 26 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT col2 * + col0 + 85 + - col0 * col0 AS col2 FROM tab2
----
-3154
-3971
225

onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT + col1 DIV col0 + + col1 * col2 FROM tab1
----
1248
1412
570

skipif mysql # not compatible
query I rowsort label-1319
SELECT + col1 / col0 + + col1 * col2 FROM tab1
----
1248
1412
570

query I rowsort
SELECT - col0 + 88 * + col0 FROM tab1
----
261
5568
6960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1321
SELECT - cor0.col2 + CAST( 71 AS SIGNED ) DIV cor0.col0 FROM tab1 AS cor0
----
-31
-56
-96

skipif mysql # not compatible
query I rowsort label-1321
SELECT - cor0.col2 + CAST ( 71 AS INTEGER ) / cor0.col0 FROM tab1 AS cor0
----
-31
-56
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT DISTINCT + - col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT + - col2 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT - ( + 38 ) + - col2 FROM tab2 AS cor0
----
-64
-65
-76

query I rowsort
SELECT + - 97 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-3168
-7872
-96

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

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL - - CAST ( col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * - 49 + - col1 * 23 FROM tab2 AS cor0
----
-1056
-4262
-5179

query I rowsort
SELECT + 84 * + col2 FROM tab0
----
2772
6888
84

query I rowsort
SELECT DISTINCT + 79 * col0 FROM tab2
----
553
6162
6241

query I rowsort
SELECT - 58 + col1 AS col0 FROM tab0 AS cor0
----
28
33
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT ALL + + col2 * - col1 + - 60 DIV + col1 FROM tab1 AS cor0
----
-1252
-1406
-576

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL + + col2 * - col1 + - 60 / + col1 FROM tab1 AS cor0
----
-1252
-1406
-576

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

query I rowsort
SELECT ALL 44 + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
106
20
63

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

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

query I rowsort
SELECT col0 + cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

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

query I rowsort
SELECT cor1.col2 * + 83 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 47b3125ded3146df5efc7431bb751acb

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

query I rowsort
SELECT + - 74 + - 45 AS col2 FROM tab0 AS cor0
----
-119
-119
-119

query I rowsort
SELECT + + col1 * + 87 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT - - 21 + + col1 * col1 FROM tab0 AS cor0
----
7417
8302
9430

query I rowsort
SELECT - + 20 + - col2 * - col0 FROM tab1 AS cor0
----
142
3628
7660

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

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

query I rowsort
SELECT + col1 + 32 AS col1 FROM tab1 AS cor0
----
42
45
58

query I rowsort
SELECT + + col0 + 19 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
112
48
93

query I rowsort
SELECT cor0.col1 + col0 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT 16 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-10
3
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * 15 * col2 col2 FROM tab2
----
12555
23010
9690

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1350
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - - col1 * col1 * cor0.col1 + col0 AS col0 FROM tab0 cor0
----
636080
753660
912708

query I rowsort
SELECT - 91 + - col0 * - col2 FROM tab1 AS cor0
----
3557
71
7589

query I rowsort
SELECT + 85 * - col1 + + tab2.col2 FROM tab2
----
-1407
-2608
-4989

query I rowsort
SELECT + tab0.col0 + + 82 FROM tab0
----
106
117
171

query I rowsort
SELECT DISTINCT - col0 + - 36 * tab0.col1 * col0 AS col1 FROM tab0
----
-122255
-291653
-74328

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
86
91
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * - col0 + tab2.col0 col2 FROM tab2
----
-15
-5980
-6124

query I rowsort
SELECT - 63 - + 20 FROM tab2
----
-83
-83
-83

query I rowsort
SELECT col1 * col0 * col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT 72 * col2 FROM tab0
----
2376
5904
72

query I rowsort
SELECT ALL col1 + - 24 AS col1 FROM tab2 AS cor0
----
-7
35
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT DISTINCT - + cor0.col0 + + 28 DIV col0 col2 FROM tab2 AS cor0
----
-3
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT - + cor0.col0 + + 28 / col0 col2 FROM tab2 AS cor0
----
-3
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 - col1 col1 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col2 * - 47 + - col2 AS col0 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT col1 * 40 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT + col0 + + 61 AS col0 FROM tab1 AS cor0
----
125
141
64

query I rowsort
SELECT - col0 * - col2 - + 57 FROM tab1 AS cor0
----
105
3591
7623

query I rowsort
SELECT + col1 * 47 + - 68 AS col0 FROM tab1 cor0
----
1154
402
543

query I rowsort
SELECT ALL - cor0.col0 * - 72 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT DISTINCT + col0 + 27 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1461
1603
2672

query I rowsort
SELECT + col1 - - 0 * + col0 * + col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - col0 + + cor0.col2 + + ( + col0 ) FROM tab2 AS cor0
----
182
196
41

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1376
SELECT ALL - 51 + col1 + CAST( - col0 + col1 AS SIGNED ) FROM tab0 AS cor0
----
108
42
97

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - 51 + col1 + CAST ( - col0 + col1 AS INTEGER ) FROM tab0 AS cor0
----
108
42
97

query I rowsort
SELECT DISTINCT 55 + col2 AS col0 FROM tab2
----
81
82
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 * col0 ) + + col0 col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL - + 66 * - col2 FROM tab0 AS cor0
----
2178
5412
66

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

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

query I rowsort
SELECT DISTINCT col0 + cor0.col1 + - col1 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT DISTINCT - col1 DIV + col0 + col2 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - col1 / + col0 + col2 FROM tab0 AS cor0
----
-1
30
81

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

skipif mysql # not compatible
query I rowsort label-1383
SELECT col0 * - col0 * CAST ( col1 AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
-118860
-49560
-720900

query I rowsort
SELECT DISTINCT + 16 + col2 AS col2 FROM tab1 cor0
----
112
70
73

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

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

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

query I rowsort
SELECT + col0 * 4 + - 59 FROM tab0 AS cor0
----
297
37
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1388
SELECT - col0 + CAST( - col1 AS SIGNED ) * + col1 * col0 AS col1 FROM tab1 AS cor0
----
-13600
-2031
-6464

skipif mysql # not compatible
query I rowsort label-1388
SELECT - col0 + CAST ( - col1 AS INTEGER ) * + col1 * col0 AS col1 FROM tab1 AS cor0
----
-13600
-2031
-6464

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

query I rowsort
SELECT ALL col2 * col1 + - 14 FROM tab1 AS cor0
----
1234
1390
556

query I rowsort
SELECT DISTINCT - cor0.col0 + + tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
-3
2
51
56
62
67
73
8

query I rowsort
SELECT + col2 * col2 + 56 AS col2 FROM tab1
----
2972
3305
9272

query I rowsort
SELECT col1 * col0 + + 15 FROM tab0
----
2079
3410
8114

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + tab2.col2 col2 FROM tab2
----
156
162
228

query I rowsort
SELECT + 57 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 73 ) + cor0.col2 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
100
111
99

query I rowsort
SELECT + tab1.col2 * col0 - col0 AS col0 FROM tab1
----
159
3584
7600

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + 14 col1 FROM tab0 AS cor0
----
100
105
111

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

query I rowsort
SELECT - + col1 * - 30 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT - 76 * + 17 + col2 AS col0 FROM tab2 AS cor0
----
-1254
-1265
-1266

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

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

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

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT - + col1 / 17 AS col1 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT + 86 * 29 * - col2 AS col0 FROM tab2 AS cor0
----
-64844
-67338
-94772

query I rowsort
SELECT + col0 * tab0.col2 - col2 * tab0.col2 AS col1 FROM tab0
----
-297
34
574

query I rowsort
SELECT DISTINCT ( - 49 ) * cor0.col0 FROM tab0 cor0
----
-1176
-1715
-4361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 15 col0 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT ALL + 21 * + col1 AS col1 FROM tab0 AS cor0
----
1806
1911
2037

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1412
SELECT + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1412
SELECT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
-33
-82

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

query I rowsort
SELECT DISTINCT col0 * col1 - - col0 AS col2 FROM tab2
----
1422
224
4680

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1415
SELECT col2 / 61 col0 FROM tab1
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1416
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 86 col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 86 col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - + 26 * - cor0.col1 * col1 + - 38 FROM tab2 AS cor0
----
24948
7476
90468

query I rowsort
SELECT + 10 * ( col2 ) + 43 AS col0 FROM tab0 cor0
----
373
53
863

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

query I rowsort
SELECT DISTINCT 4 FROM tab1, tab2 cor0
----
4

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

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

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

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

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

query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + ( col1 ) + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT + 84 + + col1 FROM tab0 AS cor0
----
170
175
181

query I rowsort
SELECT DISTINCT col2 + - col2 * + ( - 77 ) FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT ( - col0 ) - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - col2 * - col1 + + 45 AS col0 FROM tab1 AS cor0
----
1293
1449
615

query I rowsort
SELECT + 39 * cor0.col1 - col0 * col2 AS col0 FROM tab0 AS cor0
----
-3749
2562
3748

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL col0 * - cor0.col2 + 3 AS col1 FROM tab1 cor0
----
-159
-3645
-7677

query I rowsort
SELECT - - 27 + + col2 * - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-2892
-3286
-9269

query I rowsort
SELECT ALL + 27 * + col0 AS col1 FROM tab0 AS cor0
----
2403
648
945

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

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

query I rowsort
SELECT + 43 * cor0.col0 * + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c82b81e2c7507e10ff317ed9a5043d5f

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1439
SELECT DISTINCT + col1 * - col0 + 35 DIV col0 AS col2 FROM tab1 cor0
----
-1040
-640
-67

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + col1 * - col0 + 35 / col0 AS col2 FROM tab1 cor0
----
-1040
-640
-67

query I rowsort
SELECT ALL - col2 * + col0 - 53 * + col0 AS col1 FROM tab1 AS cor0
----
-11920
-321
-7040

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

query I rowsort
SELECT col2 + ( + 60 ) * col2 + - col0 AS col1 FROM tab0 AS cor0
----
1989
26
4913

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

query I rowsort
SELECT ( + tab1.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT - + 95 * - col2 FROM tab1 AS cor0
----
5130
5415
9120

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

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 + + 51 * cor0.col1 AS col2 FROM tab1 cor0
----
1352
520
676

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

query I rowsort
SELECT - cor0.col1 * - cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 87 * - ( col0 + col0 ) col0 FROM tab2
----
1245
13598
13784

query I rowsort
SELECT DISTINCT + col2 * + ( 10 ) FROM tab0
----
10
330
820

query I rowsort
SELECT 41 FROM tab2, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1462
SELECT - col1 * + ( - col2 ) + + col1 DIV 45 FROM tab0 AS cor0
----
2839
7464
99

skipif mysql # not compatible
query I rowsort label-1462
SELECT - col1 * + ( - col2 ) + + col1 / 45 FROM tab0 AS cor0
----
2839
7464
99

query I rowsort
SELECT + 91 * col1 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT 47 + + 11 * col2 AS col1 FROM tab0 AS cor0
----
410
58
949

query I rowsort
SELECT + ( 9 ) * col0 + + col1 FROM tab1 AS cor0
----
53
586
733

query I rowsort
SELECT 59 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
1593
2242

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1467
SELECT + - CAST ( - col0 AS INTEGER ) * col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + 57 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

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

query I rowsort
SELECT + col0 * ( - 54 ) FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT - col2 + - ( + 25 ) FROM tab2 AS cor0
----
-51
-52
-63

query I rowsort
SELECT ALL 88 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col0 col2 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 59 col1 FROM tab2 AS cor0
----
-137
-138
-66

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

query I rowsort
SELECT - col1 + 97 AS col2 FROM tab1 AS cor0
----
71
84
87

query I rowsort
SELECT ALL - tab1.col0 + + 61 FROM tab1
----
-19
-3
58

query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT + 70 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL + tab1.col0 * 12 + col1 FROM tab1
----
62
778
973

query I rowsort
SELECT DISTINCT - col2 - - 55 * + ( col0 ) FROM tab1 AS cor0
----
111
3463
4304

query I rowsort
SELECT DISTINCT col2 * 81 * 82 FROM tab1 AS cor0
----
358668
378594
637632

query I rowsort
SELECT + col2 * - col2 - 26 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-2704
-3498
-911

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

query I rowsort
SELECT ALL + + cor0.col2 * 55 + col2 AS col0 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT - col2 * 85 - + col0 AS col1 FROM tab1 AS cor0
----
-4593
-4909
-8240

query I rowsort
SELECT ALL - col2 * - col0 + - 57 AS col2 FROM tab2 AS cor0
----
132
1971
2945

query I rowsort
SELECT ALL - col1 + - 37 AS col1 FROM tab2 AS cor0
----
-54
-68
-96

query I rowsort
SELECT ALL - col0 * 59 * col0 AS col0 FROM tab2 AS cor0
----
-2891
-358956
-368219

onlyif mysql # use DIV operator for integer division
query I rowsort label-1491
SELECT ALL col2 DIV col1 + col2 - - col0 AS col0 FROM tab1 AS cor0
----
126
183
59

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL col2 / col1 + col2 - - col0 AS col0 FROM tab1 AS cor0
----
126
183
59

query I rowsort
SELECT + col0 * 12 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT ALL col1 * 24 + + col2 * - cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-118236
-50626
-5115

query I rowsort
SELECT DISTINCT - col2 * 33 FROM tab2 AS cor0
----
-1254
-858
-891

query I rowsort
SELECT ALL - col1 * col1 * - col2 + + ( + col1 ) * col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
1432613
880124
922082

onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT + + ( col0 ) + col1 * + col2 DIV col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-1496
SELECT + + ( col0 ) + col1 * + col2 / col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT DISTINCT - col1 DIV + 14 + + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2058
3389
8093

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT - col1 / + 14 + + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2058
3389
8093

skipif mysql # not compatible
query I rowsort
SELECT col2 * + CAST ( + col1 AS REAL ) / + col1 + col0 * + tab2.col2 * col2 FROM tab2
----
114114
5130
52754

query I rowsort
SELECT col0 + 40 AS col1 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT - col1 + - 49 + col2 FROM tab2
----
-28
-53
-82

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + - 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-6
-67
-83

query I rowsort
SELECT DISTINCT - ( tab0.col2 + col1 * + ( col1 ) ) FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT + 86 * - cor0.col1 FROM tab2 cor0
----
-1462
-2666
-5074

onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT DISTINCT + 12 DIV col0 FROM tab1 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT + 12 / col0 FROM tab1 AS cor0
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 21 col1 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT ALL cor0.col2 * + cor0.col2 + + col1 + + col0 FROM tab1 AS cor0
----
2945
3323
9309

query I rowsort
SELECT DISTINCT + 36 + col2 * col1 + col1 * col2 FROM tab1
----
1176
2532
2844

query I rowsort
SELECT - col1 + - col1 * col2 + ( - col1 ) * col0 FROM tab0 cor0
----
-15652
-3589
-4988

query I rowsort
SELECT + + ( - 43 ) * - col0 AS col0 FROM tab1 AS cor0
----
129
2752
3440

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

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

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + CAST ( 65 AS INTEGER ) FROM tab1 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + - col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT - - 87 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - col1 + col1 * 36 AS col2 FROM tab0 AS cor0
----
3010
3185
3395

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

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

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

skipif mysql # not compatible
query I rowsort label-1516
SELECT col1 / - col2 + 50 AS col2 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT DISTINCT col1 DIV ( - tab1.col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT col1 / ( - tab1.col1 ) FROM tab1
----
-1

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + - CAST ( - col2 AS REAL ) - - col0 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT ALL 2 * + cor1.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 742cb84003fd090efc5ed158b4c7e268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT DISTINCT + cor0.col1 DIV - ( cor0.col0 ) + - col0 FROM tab0 cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + cor0.col1 / - ( cor0.col0 ) + - col0 FROM tab0 cor0
----
-27
-37
-90

query I rowsort
SELECT DISTINCT + col2 + + 17 - col0 * col0 FROM tab1 AS cor0
----
-4022
-6287
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * 56 * 55 + - col0 col2 FROM tab2 AS cor0
----
116961
80002
83153

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

query I rowsort
SELECT - - ( - col1 ) + cor0.col0 * 15 AS col2 FROM tab2 cor0
----
1111
1168
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - cor0.col1 + - col2 * col0 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-1530
SELECT - CAST( col0 AS SIGNED ) + col0 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1530
SELECT - CAST ( col0 AS INTEGER ) + col0 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1533
SELECT col0 DIV col0 - 79 AS col2 FROM tab0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-1533
SELECT col0 / col0 - 79 AS col2 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 * 49 AS col0 FROM tab1 cor0
----
12384
2808
6441

query I rowsort
SELECT - - 6 * cor0.col2 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT - col2 - 60 FROM tab0
----
-142
-61
-93

query I rowsort
SELECT DISTINCT - + 5 + 39 AS col2 FROM tab2, tab0, tab0 AS cor0
----
34

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

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

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

query I rowsort
SELECT + 18 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

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

query I rowsort
SELECT cor0.col2 + + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 000003476840160ea4e33204b8667672

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT cor0.col0 + 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-1544
SELECT + col1 + - CAST( - cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-1544
SELECT + col1 + - CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col0 + 35 AS col0 FROM tab1 AS cor0
----
115
38
99

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

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

query I rowsort
SELECT DISTINCT tab0.col2 + + col2 FROM tab0
----
164
2
66

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

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

query I rowsort
SELECT + tab0.col0 * - col2 * 98 AS col1 FROM tab0
----
-3430
-715204
-77616

query I rowsort
SELECT DISTINCT col2 + - tab1.col2 * - col0 + col0 * col0 * 90 FROM tab1
----
1026
372345
583776

onlyif mysql # use DIV operator for integer division
query I rowsort label-1552
SELECT DISTINCT + col0 + col0 DIV tab2.col1 + tab2.col2 col0 FROM tab2
----
105
121
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT + col0 + col0 / tab2.col1 + tab2.col2 col0 FROM tab2
----
105
121
34

query I rowsort
SELECT DISTINCT col2 * - col2 + ( - col2 ) FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT + col0 + col2 * col0 * + col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT ALL + 35 FROM tab1, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT col2 + 20 FROM tab1
----
116
74
77

query I rowsort
SELECT ALL + cor0.col0 + - 70 AS col1 FROM tab1 cor0
----
-6
-67
10

query I rowsort
SELECT + col0 + - 73 FROM tab0 AS cor0
----
-38
-49
16

query I rowsort
SELECT ( - 71 ) FROM tab0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT col0 * - 16 AS col2 FROM tab2
----
-112
-1248
-1264

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

query I rowsort
SELECT ALL col1 + - col1 * + 56 * 79 AS col1 FROM tab1 AS cor0
----
-114998
-44230
-57499

query I rowsort
SELECT tab1.col2 * col1 + tab1.col0 + + col2 * 15 FROM tab1
----
1489
2217
2768

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

query I rowsort
SELECT + col0 * col2 + + col1 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
3758
7862
864

query I rowsort
SELECT ALL - - col1 * - 43 FROM tab2 AS cor0
----
-1333
-2537
-731

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

query I rowsort
SELECT 7 + + 49 * - tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to e9fa127ee986b602834b2b94ba91eac8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT col2 * cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT ( + col0 ) + col2 * + 34 AS col2 FROM tab2 AS cor0
----
1371
925
962

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col0 ) * col0 col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - 36 * - 92 AS col0 FROM tab2 AS cor0
----
3312
3312
3312

query I rowsort
SELECT DISTINCT + col2 * col0 + + col0 * - 14 * - cor0.col2 + col2 * + 95 AS col0 FROM tab1 cor0
----
124320
60135
7560

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

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - - 98 / + cor0.col1 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT col1 * - col1 * + ( col1 * - col0 ) AS col2 FROM tab2 cor0
----
16019562
208537
388127

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

query I rowsort
SELECT + + col0 * - col2 * + 57 FROM tab2 cor0
----
-10773
-115596
-171114

query I rowsort
SELECT - 45 * + col1 + col0 + - 49 FROM tab2 AS cor0
----
-1437
-2626
-735

query I rowsort
SELECT DISTINCT - + 99 + col2 AS col0 FROM tab0 cor0
----
-17
-66
-98

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

query I rowsort
SELECT DISTINCT - 44 + - col1 * ( 15 ) FROM tab2 AS cor0
----
-299
-509
-929

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * + 9 + - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
-12087
-1953
-41418

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

query I rowsort
SELECT ALL 26 * - col1 AS col2 FROM tab1 AS cor0
----
-260
-338
-676

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - 32 * - tab0.col0 FROM tab0
----
1085
2759
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT tab1.col1 + col0 DIV + 25 FROM tab1
----
12
16
26

skipif mysql # not compatible
query I rowsort label-1593
SELECT tab1.col1 + col0 / + 25 FROM tab1
----
12
16
26

query I rowsort
SELECT - - cor0.col1 + - col0 * 30 * col2 FROM tab2 cor0
----
-5639
-60781
-90043

query I rowsort
SELECT ALL - col1 * - 28 AS col2 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT + col2 * col0 + cor0.col1 AS col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT col2 * + ( 16 ) + - cor0.col2 FROM tab0 AS cor0
----
1230
15
495

query I rowsort
SELECT + col1 * - col2 + - 83 * - cor0.col2 * + col0 FROM tab1 AS cor0
----
12042
302214
636192

query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 * 63 FROM tab0 AS cor0
----
-423612
-63
-68607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1600
SELECT + CAST( 92 AS SIGNED ) FROM tab0 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-1600
SELECT + CAST ( 92 AS INTEGER ) FROM tab0 AS cor0
----
92
92
92

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

query I rowsort
SELECT DISTINCT - - 32 FROM tab1 AS cor0
----
32

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

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

query I rowsort
SELECT DISTINCT - col0 + + 59 FROM tab2 AS cor0
----
-19
-20
52

query I rowsort
SELECT tab1.col2 * - col1 + + 83 AS col0 FROM tab1
----
-1165
-1321
-487

query I rowsort
SELECT + 28 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT + col2 - col2 * 17 FROM tab1
----
-1536
-864
-912

query I rowsort
SELECT tab1.col0 * - tab1.col0 + - col2 AS col1 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT ALL + - cor0.col2 - - 74 FROM tab1 AS cor0
----
-22
17
20

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

query I rowsort
SELECT + - col2 * 25 AS col0 FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT 85 * col0 + + ( col0 ) FROM tab0
----
2064
3010
7654

query I rowsort
SELECT + col0 * col2 * tab1.col0 + col2 * - col2 FROM tab1
----
-2430
230223
605184

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

query I rowsort
SELECT ALL - col1 + col1 * + 58 FROM tab1
----
1482
570
741

query I rowsort
SELECT tab1.col1 + col2 * 56 FROM tab1
----
3050
3202
5389

query I rowsort
SELECT DISTINCT col0 * ( - 56 ) AS col0 FROM tab2 AS cor0
----
-392
-4368
-4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-1618
SELECT + col0 * + 0 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1618
SELECT + col0 * + 0 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + col2 + 39 * + cor0.col2 FROM tab0 cor0
----
1320
3280
40

query I rowsort
SELECT DISTINCT + - col0 * 79 + 2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-185
-5036
-6294

query I rowsort
SELECT ALL col0 + 8 FROM tab0
----
32
43
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT col0 DIV - col2 + - col2 * - 64 AS col0 FROM tab0
----
2112
29
5247

skipif mysql # not compatible
query I rowsort label-1623
SELECT col0 / - col2 + - col2 * - 64 AS col0 FROM tab0
----
2112
29
5247

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1624
SELECT DISTINCT - CAST( 59 AS SIGNED ) + - tab1.col2 + - 96 AS col0 FROM tab1
----
-209
-212
-251

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - CAST ( 59 AS INTEGER ) + - tab1.col2 + - 96 AS col0 FROM tab1
----
-209
-212
-251

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

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

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

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 76 * - col1 + 8 * col2 FROM tab0
----
NULL

query I rowsort
SELECT 55 + 88 FROM tab2
----
143
143
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2

query I rowsort
SELECT ALL 87 + + col0 FROM tab0 AS cor0
----
111
122
176

query I rowsort
SELECT + cor0.col2 + + cor0.col0 AS col0 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - ( tab0.col1 ) + + col1 + - CAST ( col0 * col0 AS REAL ) col2 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * + col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1633
SELECT DISTINCT - 70 + col0 DIV ( + cor0.col1 ) AS col1 FROM tab1 cor0
----
-64
-70

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT - 70 + col0 / ( + cor0.col1 ) AS col1 FROM tab1 cor0
----
-64
-70

query I rowsort
SELECT + cor0.col2 * - col2 * 92 AS col2 FROM tab2 AS cor0
----
-132848
-62192
-67068

query I rowsort
SELECT DISTINCT 67 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-7231
-725
32

query I rowsort
SELECT DISTINCT + 80 * - col2 FROM tab1 AS cor0
----
-4320
-4560
-7680

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

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

query I rowsort
SELECT ALL + + ( + cor0.col0 ) + - col0 * 17 FROM tab0 AS cor0
----
-1424
-384
-560

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

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

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT ( col0 ) / 18 + + col1 FROM tab0 AS cor0
----
87
95
98

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

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

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

query I rowsort
SELECT DISTINCT - - 38 AS col2 FROM tab2 AS cor0
----
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1644
SELECT DISTINCT 48 DIV - 34 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT 48 / - 34 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-1

query I rowsort
SELECT 61 * col0 * col0 FROM tab1
----
249856
390400
549

query I rowsort
SELECT + 22 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT 70 DIV col0 + + col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
72

skipif mysql # not compatible
query I rowsort label-1648
SELECT 70 / col0 + + col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
72

query I rowsort
SELECT ALL cor0.col1 + + col0 * 41 AS col2 FROM tab2 AS cor0
----
318
3256
3257

query I rowsort
SELECT DISTINCT + col1 * col1 + cor0.col2 * - cor0.col2 AS col0 FROM tab0 cor0
----
1557
6307
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

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

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

skipif mysql # not compatible
query I rowsort label-1653
SELECT - - col2 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 + + 14 * - col2 FROM tab0 AS cor0
----
-1230
-15
-495

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1655
SELECT CAST( - 76 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

skipif mysql # not compatible
query I rowsort label-1655
SELECT CAST ( - 76 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT - - 6 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col2 ) + col1 * + col1 col0 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT - - ( 13 ) * - col2 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT - + cor0.col2 + - 41 AS col1 FROM tab1 AS cor0
----
-137
-95
-98

query I rowsort
SELECT ALL + 20 * + col0 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT 70 * + 75 - col1 AS col1 FROM tab2 AS cor0
----
5191
5219
5233

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

query I rowsort
SELECT - col0 + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT DISTINCT - - 95 DIV - col2 - col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-80

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - - 95 / - col2 - col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-80

query I rowsort
SELECT ALL - cor0.col2 + + col1 * col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
1322
221
4635

query I rowsort
SELECT ALL + col0 + + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * ( - col1 ) col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT DISTINCT + col2 + col0 DIV + col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + col2 + col0 / + col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT - col0 - col0 * col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + ( 48 ) + + col2 AS col1 FROM tab2 AS cor0
----
74
75
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT ALL + tab1.col2 * col1 DIV col0 - + col0 * col1 FROM tab1
----
-1025
-632
390

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + tab1.col2 * col1 / col0 - + col0 * col1 FROM tab1
----
-1025
-632
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 - col1 col0 FROM tab1
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT ALL - col1 - col0 DIV - col1 AS col0 FROM tab1
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - col1 - col0 / - col1 AS col0 FROM tab1
----
-26
-4
-7

query I rowsort
SELECT - + 74 - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
3574
7606
88

query I rowsort
SELECT + + col2 + - col0 * - col2 * - col0 AS col2 FROM tab0 AS cor0
----
-1224
-18975
-649440

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

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL col1 / + ( col2 * col1 ) FROM tab0
----
0
0
1

query I rowsort
SELECT - cor0.col0 * 66 AS col1 FROM tab0 AS cor0
----
-1584
-2310
-5874

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

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

query I rowsort
SELECT DISTINCT - 58 * - col0 * col1 FROM tab2 AS cor0
----
12586
266916
77894

query I rowsort
SELECT ALL + - col2 + 1 + col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7217
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT 18 DIV + col2 + col0 + + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-1682
SELECT 18 / + col2 + col0 + + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - 64 + - col1 * cor0.col0 FROM tab0 AS cor0
----
-2000
-3331
-8035

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1684
SELECT + CAST( - col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-21
33
4

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col0 AS REAL ) * - col2 + - col1 + col1 * - cor0.col0 FROM tab1 cor0
----
-266
-4298
-8733

onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT + - cor0.col1 + 40 DIV - col0 FROM tab0 AS cor0
----
-87
-91
-98

skipif mysql # not compatible
query I rowsort label-1686
SELECT + - cor0.col1 + 40 / - col0 FROM tab0 AS cor0
----
-87
-91
-98

query I rowsort
SELECT ALL - tab1.col0 + + 10 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d9400e2cbeeb1d2f75293665547aa9a3

query I rowsort
SELECT - - ( col2 ) * col2 - 28 * - 70 AS col0 FROM tab0 AS cor0
----
1961
3049
8684

query I rowsort
SELECT ALL + 43 + + 83 AS col2 FROM tab1 AS cor0
----
126
126
126

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 98 AS REAL ) AS col1 FROM tab0
----
98

query I rowsort
SELECT ALL 18 * + col0 AS col2 FROM tab1
----
1152
1440
54

query I rowsort
SELECT DISTINCT - col2 - + cor0.col2 * + col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT + col1 * + cor0.col1 + 93 AS col0 FROM tab1 AS cor0
----
193
262
769

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

query I rowsort
SELECT ALL 48 + + col0 * + ( - col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
282
41008
83248

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

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL col2 * col2 + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
2942
3259
9229

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

query I rowsort
SELECT - 32 + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a8ebf28d4e034a7e739c4774359b168d

query I rowsort
SELECT DISTINCT col1 + - col2 + col1 AS col0 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT ALL cor0.col0 - col0 * - 99 AS col0 FROM tab1 AS cor0
----
300
6400
8000

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

query I rowsort
SELECT ALL - col2 * ( + col1 + cor0.col1 ) * col1 FROM tab1 AS cor0
----
-11400
-32448
-73008

query I rowsort
SELECT DISTINCT + + col1 - - ( col2 ) * col1 * - col2 AS col1 FROM tab2 AS cor0
----
-22568
-24531
-39825

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT - col2 DIV - 9 AS col0 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1706
SELECT - col2 / - 9 AS col0 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT - + col1 + + 89 AS col0 FROM tab2 cor0
----
30
58
72

query I rowsort
SELECT ALL - + cor0.col0 * ( - col0 ) FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL col1 * - 90 + 4 FROM tab2 AS cor0
----
-1526
-2786
-5306

query I rowsort
SELECT DISTINCT + tab0.col1 + col1 * - col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL 8 + col1 AS col2 FROM tab1
----
18
21
34

query I rowsort
SELECT DISTINCT 79 * col2 + - 66 + col1 * + col1 FROM tab2
----
3028
3225
5469

query I rowsort
SELECT DISTINCT col0 * col2 + tab2.col2 AS col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT - col1 * - ( + tab1.col1 + - col2 ) AS col1 FROM tab1
----
-1079
-470
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT + col0 DIV + col0 + - tab1.col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-1715
SELECT + col0 / + col0 + - tab1.col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT DISTINCT 0 + 64 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
64

query I rowsort
SELECT + col0 * 54 - col2 FROM tab0 AS cor0
----
1263
1889
4724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + + ( + tab2.col2 ) col1 FROM tab2
----
102
90
91

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

query I rowsort
SELECT DISTINCT - col1 + - col1 + + col1 * + 89 AS col1 FROM tab0
----
7482
7917
8439

query I rowsort
SELECT col0 * col2 + 67 * 12 FROM tab1
----
4452
8484
966

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + + col1 + 51 FROM tab1 AS cor0
----
118
131
160

query I rowsort
SELECT - ( col1 ) + 56 AS col1 FROM tab0 AS cor0
----
-30
-35
-41

query I rowsort
SELECT - 55 + col1 FROM tab1 AS cor0
----
-29
-42
-45

query I rowsort
SELECT ALL 80 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
115
7378
872

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

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

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

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

query I rowsort
SELECT - - 57 + 14 AS col0 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT - - 56 + - col1 FROM tab0 AS cor0
----
-30
-35
-41

query I rowsort
SELECT ALL - 9 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
2829
7453
88

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

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

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - + ( + 90 ) * + cor0.col2 AS col0 FROM tab0 cor0
----
-2970
-7380
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col0 + col0 col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT DISTINCT col0 DIV col0 + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT col0 / col0 + col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT ALL + 72 AS col2 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT + col0 + 72 AS col1 FROM tab0 cor0
----
107
161
96

query I rowsort
SELECT - 20 * + cor0.col2 AS col1 FROM tab1 cor0
----
-1080
-1140
-1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT + ( + col2 ) DIV - 52 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1739
SELECT + ( + col2 ) / - 52 FROM tab0 AS cor0
----
-1
0
0

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

query I rowsort
SELECT DISTINCT ( + 82 ) AS col1 FROM tab1
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1742
SELECT CAST( + 11 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif mysql # not compatible
query I rowsort label-1742
SELECT CAST ( + 11 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL + col2 * + 39 + 54 + cor0.col2 FROM tab1 AS cor0
----
2214
2334
3894

query I rowsort
SELECT ALL cor0.col1 + col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT col2 * - col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT cor0.col0 * + 60 AS col0 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT col0 + - ( + ( + col0 ) ) * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT tab2.col2 + + col0 * col1 + col0 FROM tab2
----
1460
251
4706

onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT - - col1 - + col1 DIV col1 col2 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1749
SELECT - - col1 - + col1 / col1 col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT col2 * tab2.col1 + col1 - col0 FROM tab2
----
1515
584
861

query I rowsort
SELECT DISTINCT col1 + - tab1.col2 * - col1 FROM tab1
----
1261
1430
580

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

query I rowsort
SELECT - tab0.col2 + ( + 58 * col1 ) FROM tab0
----
4955
5196
5625

query I rowsort
SELECT DISTINCT + tab1.col2 + ( - col2 ) AS col1 FROM tab1
----
0

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

query I rowsort
SELECT col1 - - 34 FROM tab0
----
120
125
131

query I rowsort
SELECT ALL col2 * + 10 + tab2.col1 AS col2 FROM tab2
----
301
319
397

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

query I rowsort
SELECT DISTINCT - col2 * - ( + 70 ) AS col1 FROM tab1 AS cor0
----
3780
3990
6720

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

query I rowsort
SELECT col0 * + 57 AS col2 FROM tab1
----
171
3648
4560

query I rowsort
SELECT DISTINCT col1 + ( col2 + tab1.col2 ) FROM tab1
----
124
134
205

query I rowsort
SELECT tab1.col2 + + col0 * + 24 + + col1 * tab1.col1 AS col0 FROM tab1
----
1693
2185
802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col1 * col2 col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - 13 + col2 FROM tab0 AS cor0
----
-12
20
69

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

query I rowsort
SELECT + 58 * cor1.col0 + cor1.col1 + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ea3f385940a1e63a6b3df403ec9a114b

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

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

query I rowsort
SELECT - col0 * 81 + col0 + col2 FROM tab2 AS cor0
----
-533
-6214
-6282

onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT col2 * + col1 + - col2 DIV col2 FROM tab1 cor0
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-1771
SELECT col2 * + col1 + - col2 / col2 FROM tab1 cor0
----
1247
1403
569

query I rowsort
SELECT + 56 + col1 AS col2 FROM tab1 cor0
----
66
69
82

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT ALL + ( col1 ) DIV + tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + ( col1 ) / + tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 50 * - col1 AS col0 FROM tab1
----
-1300
-500
-650

query I rowsort
SELECT ALL cor0.col0 * tab1.col0 * 73 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to dcc64cd524c7435cdb014fb8607819f0

query I rowsort
SELECT ALL - tab1.col1 - 20 FROM tab1, tab1 AS cor0
----
9 values hashing to 04885d9d04c14fd4dfbbb6244b8faf46

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

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

query I rowsort
SELECT ALL + cor0.col1 * col1 * + 62 FROM tab2 cor0
----
17918
215822
59582

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

query I rowsort
SELECT + col1 + - col2 * + col0 * cor0.col2 + 90 AS col1 FROM tab1 AS cor0
----
-207836
-737177
-8632

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

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

query I rowsort
SELECT ALL + 59 * tab0.col2 FROM tab0
----
1947
4838
59

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - col0 * col0 + col1 AS col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT ALL + 76 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT + col2 + col0 * 0 * col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + + col0 + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480

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

query I rowsort
SELECT ALL + col0 + + col2 * - ( - col1 ) + col0 * 58 FROM tab0 AS cor0
----
12713
2162
4254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col2 + 93 * - col2 + ( + 82 ) col0 FROM tab1 AS cor0
----
-18062
-7856
-8468

query I rowsort
SELECT DISTINCT col2 + - col1 + + col2 FROM tab1
----
104
179
82

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col0 + col1 > NULL
----

query I rowsort
SELECT + col1 + col0 + tab0.col1 FROM tab0
----
196
229
271

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

query I rowsort
SELECT - col1 * col1 * - tab1.col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT col0 + col2 + col1 AS col0 FROM tab0
----
133
143
262

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> ( col1 )
----

query I rowsort
SELECT ALL tab1.col1 * col2 * col1 FROM tab1
----
16224
36504
5700

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

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

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 + 21 + 74 AS col0 FROM tab0 AS cor0
----
-6629
-994
94

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) >= ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col0 * + col0 * + col2 + col0 AS col2 FROM tab1
----
233536
489
614480

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

query I rowsort
SELECT ALL col1 + + col1 AS col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT + 20 * col2 + - ( - 87 + col0 ) FROM tab1 AS cor0
----
1163
1164
1927

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

query I rowsort
SELECT ALL + + 86 + col1 FROM tab2 AS cor0
----
103
117
145

query I rowsort
SELECT DISTINCT 50 * col0 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT ALL - - col1 + cor0.col1 * ( - 40 ) + col0 FROM tab1 cor0
----
-1011
-326
-427

query I rowsort
SELECT ALL + 53 FROM tab0, tab2 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL col1 * + col1 * - tab0.col2 AS col0 FROM tab0
----
-244068
-679042
-9409

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

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

query I rowsort
SELECT DISTINCT + + cor0.col0 - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + 69 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
5901
6197
6692

query I rowsort
SELECT + ( - col0 ) * - 24 * - col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-13738
-190013
-29303

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1824
SELECT - col0 DIV + col2 + 7 FROM tab1 AS cor0
----
6
7
7

skipif mysql # not compatible
query I rowsort label-1824
SELECT - col0 / + col2 + 7 FROM tab1 AS cor0
----
6
7
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT DISTINCT + col1 + + col2 DIV ( col0 ) FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT + col1 + + col2 / ( col0 ) FROM tab1
----
10
14
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1827
SELECT DISTINCT + col2 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT + col2 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col2 * 5 + col0 * + col0 FROM tab2 AS cor0
----
-86
5954
6051

query I rowsort
SELECT ALL 74 + + tab1.col0 FROM tab1
----
138
154
77

query I rowsort
SELECT ALL 37 * + cor0.col1 FROM tab0 AS cor0
----
3182
3367
3589

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

query I rowsort
SELECT 19 * 84 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-1406
-432
1407

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

query I rowsort
SELECT + col2 * + col0 * col2 + ( ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
207946
737293
8774

query I rowsort
SELECT + col2 * + tab2.col2 + ( tab2.col1 ) * col2 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT ALL - 99 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT ALL tab1.col1 * 37 * col1 - col0 DIV tab1.col0 AS col1 FROM tab1
----
25011
3699
6252

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL tab1.col1 * 37 * col1 - col0 / tab1.col0 AS col1 FROM tab1
----
25011
3699
6252

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1838
SELECT DISTINCT col0 + - ( - col0 ) * - CAST( col0 AS SIGNED ) FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT col0 + - ( - col0 ) * - CAST ( col0 AS INTEGER ) FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL - tab1.col1 + col2 * col2 AS col2 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT DISTINCT 7 + col1 * col2 AS col0 FROM tab2
----
1541
653
844

query I rowsort
SELECT - col1 * - 60 AS col1 FROM tab0
----
5160
5460
5820

query I rowsort
SELECT ALL ( - col1 ) - - col0 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL - 41 * 4 - - col0 AS col0 FROM tab1
----
-100
-161
-84

query I rowsort
SELECT + - col2 * 46 AS col1 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT - col1 * + 3 * + col1 AS col0 FROM tab0 AS cor0
----
-22188
-24843
-28227

query I rowsort
SELECT 9 - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to fd57e1ceb7ab0db920d7c858f4537a40

query I rowsort
SELECT DISTINCT + - col1 * - col2 * col0 AS col0 FROM tab2 cor0
----
119652
51034
5859

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

query I rowsort
SELECT + - 36 * 92 + - col1 + 44 AS col1 FROM tab0 AS cor0
----
-3354
-3359
-3365

query I rowsort
SELECT ALL - 83 * col0 + + col2 * - col0 AS col0 FROM tab1
----
-14320
-411
-8960

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

query I rowsort
SELECT DISTINCT 46 * - col2 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1854
SELECT ALL + + col0 * - col0 + - col2 * cor0.col1 DIV col2 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + + col0 * - col0 + - col2 * cor0.col1 / col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL - 52 + cor0.col2 * - col1 * + col0 FROM tab1 AS cor0
----
-36532
-4264
-99892

query I rowsort
SELECT DISTINCT + - 17 - - col1 * + col0 AS col1 FROM tab2 AS cor0
----
1326
200
4585

query I rowsort
SELECT 5 * col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
454
520
544

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

query I rowsort
SELECT + 42 + + col1 AS col0 FROM tab2 AS cor0
----
101
59
73

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

query I rowsort
SELECT ( - col1 ) * col0 - - col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + 61 + + col2 AS col1 FROM tab1 AS cor0
----
115
118
157

onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT - cor0.col0 DIV col2 + col2 * + col2 FROM tab1 cor0
----
2916
3248
9216

skipif mysql # not compatible
query I rowsort label-1864
SELECT - cor0.col0 / col2 + col2 * + col2 FROM tab1 cor0
----
2916
3248
9216

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

query I rowsort
SELECT DISTINCT - col1 * 68 + col2 AS col2 FROM tab2 AS cor0
----
-1118
-2081
-3986

query I rowsort
SELECT ALL 62 FROM tab0 cor0
----
62
62
62

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

query I rowsort
SELECT ALL col1 + 95 FROM tab0
----
181
186
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1870
SELECT DISTINCT CAST( - 80 + col0 AS SIGNED ) AS col1 FROM tab0
----
-45
-56
9

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT CAST ( - 80 + col0 AS INTEGER ) AS col1 FROM tab0
----
-45
-56
9

query I rowsort
SELECT ALL - + col1 * 43 * - cor0.col0 + - col2 FROM tab2 AS cor0
----
197860
57711
9304

query I rowsort
SELECT ALL - ( col2 ) + + cor0.col0 * - col1 * col1 FROM tab1 AS cor0
----
-13616
-2082
-6457

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

query I rowsort
SELECT ALL + tab2.col0 - 16 FROM tab2
----
-9
62
63

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 cor0
----
8

query I rowsort
SELECT + + 99 * - col1 + - col1 - col2 AS col0 FROM tab0 AS cor0
----
-8633
-9182
-9701

query I rowsort
SELECT 19 + - col2 * + col0 * - col1 FROM tab2 cor0
----
119671
51053
5878

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

query I rowsort
SELECT ALL 22 - - tab0.col1 AS col1 FROM tab0
----
108
113
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-1880
SELECT ALL - col1 DIV - col2 + + col0 AS col2 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - col1 / - col2 + + col0 AS col2 FROM tab0
----
132
26
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT + col1 + - cor0.col2 DIV col0 AS col1 FROM tab1 AS cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-1881
SELECT + col1 + - cor0.col2 / col0 AS col1 FROM tab1 AS cor0
----
10
12
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + - col2 col1 FROM tab2
----
-2054
-216
-3040

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN col0 * - col2 + + col2 * col1 AND col0
----
7
31
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT DISTINCT col1 DIV col0 + tab1.col2 col1 FROM tab1
----
57
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT col1 / col0 + tab1.col2 col1 FROM tab1
----
57
62
96

query I rowsort
SELECT - col2 * col1 * - col0 AS col1 FROM tab1 WHERE ( col1 ) <> ( NULL )
----

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

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

query I rowsort
SELECT col0 * - tab0.col0 AS col0 FROM tab0 WHERE NOT ( col0 + col1 ) IN ( + col0 )
----
-1225
-576
-7921

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) < col1
----
78
59
26
79
17
38

query I rowsort
SELECT col2 * + col0 + - col2 * tab1.col2 FROM tab1
----
-1536
-2754
399

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 <> col1
----

query I rowsort
SELECT ALL col1 * col0 + col1 * - col2 AS col0 FROM tab0
----
-774
3298
637

query I rowsort
SELECT DISTINCT + col0 * - col1 + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT tab0.col0 + - cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 433ab71ade4f9ca647cd1e5cae4a1a44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * - col2 col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT - col1 * cor0.col2 + - col1 * + col2 FROM tab0 AS cor0
----
-14924
-194
-5676

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

query I rowsort
SELECT ALL col1 * - col2 * - col2 FROM tab0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * - col2 col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT + cor0.col1 * + col1 DIV col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1903
SELECT + cor0.col1 * + col1 / col1 FROM tab1 cor0
----
10
13
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND ( col0 ) OR ( - col1 ) NOT IN ( col2 / - cor0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1906
SELECT - + 83 DIV - col1 + col1 * ( - col1 ) FROM tab2 AS cor0
----
-285
-3480
-959

skipif mysql # not compatible
query I rowsort label-1906
SELECT - + 83 / - col1 + col1 * ( - col1 ) FROM tab2 AS cor0
----
-285
-3480
-959

query I rowsort
SELECT ALL col2 * 29 FROM tab1 cor0
----
1566
1653
2784

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

query I rowsort
SELECT col0 * col2 + col0 * + col1 FROM tab1 AS cor0
----
240
4288
8720

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT DISTINCT col1 DIV 28 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT col1 / 28 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - col2 * col0 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT - 45 + + col1 FROM tab1
----
-19
-32
-35

query I rowsort
SELECT 37 * 3 * - col1 + col2 * col0 FROM tab0
----
-10732
-2803
-8754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1915
SELECT - 13 DIV tab2.col0 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1915
SELECT - 13 / tab2.col0 AS col1 FROM tab2
----
-1
0
0

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

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT col1 + - CAST ( - col2 AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

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

query I rowsort
SELECT col1 * - col2 * 23 FROM tab2 AS cor0
----
-14858
-19251
-35282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1919
SELECT DISTINCT + col2 * + CAST( + 1 AS SIGNED ) * col1 + col2 * + col2 col0 FROM tab1 AS cor0
----
10464
3819
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT + col2 * + CAST ( + 1 AS INTEGER ) * col1 + col2 * + col2 col0 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT - ( - tab1.col1 ) * 2 FROM tab1
----
20
26
52

query I rowsort
SELECT - col2 * col2 - col1 AS col0 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT + col2 + col0 * 38 FROM tab1 AS cor0
----
168
2489
3136

query I rowsort
SELECT DISTINCT + col0 - col1 * - tab1.col1 AS col2 FROM tab1
----
164
249
679

query I rowsort
SELECT - + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL + cor0.col2 * 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 4df48b292225a1849da2c64bdc5f078e

query I rowsort
SELECT col2 + + cor0.col2 + + 70 FROM tab1 AS cor0
----
178
184
262

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

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

query I rowsort
SELECT - col0 * + 39 + + 14 + col1 AS col0 FROM tab2 AS cor0
----
-228
-2969
-3050

query I rowsort
SELECT ALL col1 + + 64 * - col2 FROM tab1 AS cor0
----
-3430
-3638
-6131

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

query I rowsort
SELECT - col2 * col0 + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-1976
-209
-2961

query I rowsort
SELECT ALL - tab1.col1 * ( 4 ) + + col0 AS col2 FROM tab1
----
-101
24
28

query I rowsort
SELECT col2 + + 71 FROM tab1
----
125
128
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + 3 col1 FROM tab1 cor0
----
192
240
9

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT + col0 * col1 - + 46 * col2 DIV + ( col2 * + col2 + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
2063
3372
8099

skipif mysql # not compatible
query I rowsort label-1937
SELECT + col0 * col1 - + 46 * col2 / + ( col2 * + col2 + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
2063
3372
8099

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

query I rowsort
SELECT ALL + 47 * col2 * - col0 FROM tab1 AS cor0
----
-171456
-360960
-7614

query I rowsort
SELECT ALL - - 52 * + col0 + - col0 AS col2 FROM tab2 AS cor0
----
357
3978
4029

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

query I rowsort
SELECT ALL - + ( 89 ) AS col2 FROM tab1 AS cor0
----
-89
-89
-89

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

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

query I rowsort
SELECT + - col2 + - 70 * col1 FROM tab0 AS cor0
----
-6053
-6452
-6791

query I rowsort
SELECT col1 * + 62 + col0 FROM tab2 AS cor0
----
1133
1929
3736

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1948
SELECT CAST( 39 AS SIGNED ) * col2 + + 80 * + 87 * col0 AS col2 FROM tab0 AS cor0
----
168327
243639
622638

skipif mysql # not compatible
query I rowsort label-1948
SELECT CAST ( 39 AS INTEGER ) * col2 + + 80 * + 87 * col0 AS col2 FROM tab0 AS cor0
----
168327
243639
622638

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 28 + + col2 + + ( + col1 * col0 + - 73 ) col2 FROM tab1 AS cor0
----
-1168
-1177
-25

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

query I rowsort
SELECT col2 - + ( tab2.col0 + + col2 ) FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1953
SELECT + + 96 DIV - 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT + + 96 / - 98 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL col1 * 66 AS col2 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT ALL - col2 * + col1 * - col2 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col0 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + + 99 AS col1 FROM tab1 AS cor0
----
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1959
SELECT - CAST( + 89 AS SIGNED ) * + col2 + col2 - - col1 FROM tab0 AS cor0
----
-2818
-7125
9

skipif mysql # not compatible
query I rowsort label-1959
SELECT - CAST ( + 89 AS INTEGER ) * + col2 + col2 - - col1 FROM tab0 AS cor0
----
-2818
-7125
9

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1961
SELECT DISTINCT + col0 + col1 DIV - ( - cor0.col2 ) FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT + col0 + col1 / - ( - cor0.col2 ) FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT ALL - - col1 * col1 * 61 - - col1 AS col0 FROM tab1 AS cor0
----
10322
41262
6110

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

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - ( col1 ) / col1 AS col0 FROM tab2 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col2 col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + 4 * cor0.col1 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT ALL - - cor0.col0 + col2 * ( 90 ) * + col2 FROM tab2 AS cor0
----
130039
60918
65617

query I rowsort
SELECT DISTINCT + col1 + - col1 * cor0.col1 * 92 AS col2 FROM tab0 AS cor0
----
-680346
-761761
-865531

query I rowsort
SELECT DISTINCT - col0 * col1 + 72 FROM tab0 AS cor0
----
-1992
-3323
-8027

query I rowsort
SELECT - + col1 * 13 AS col2 FROM tab0 AS cor0
----
-1118
-1183
-1261

query I rowsort
SELECT DISTINCT col0 * - col1 * 62 AS col0 FROM tab0 AS cor0
----
-127968
-210490
-502138

query I rowsort
SELECT col1 * 83 AS col1 FROM tab1 cor0
----
1079
2158
830

query I rowsort
SELECT + 90 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

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

query I rowsort
SELECT cor0.col0 * + ( 2 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - col1 * + 57 FROM tab1 cor0
----
-1482
-570
-741

query I rowsort
SELECT ALL + col0 * 35 AS col1 FROM tab0 AS cor0
----
1225
3115
840

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

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + 25 - - col2 AS col0 FROM tab0 cor0
----
107
26
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col1 col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT 46 * + col2 - + col0 FROM tab2 AS cor0
----
1118
1235
1669

query I rowsort
SELECT - 44 - 21 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT DISTINCT - col2 DIV col2 + + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT - col2 / col2 + + col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - 5 * - col1 + + 36 + + 90 AS col1 FROM tab0 cor0
----
556
581
611

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

query I rowsort
SELECT DISTINCT - 17 + - col0 + + 73 AS col1 FROM tab0 AS cor0
----
-33
21
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 58 * col2 col2 FROM tab2 AS cor0
----
-1508
-1566
-2204

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * - col1 - col2 col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL col0 * + ( + col1 * col2 ) FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col0 + + ( + 84 ) FROM tab0
----
108
119
173

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

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT col2 + + CAST ( NULL AS REAL ) * + 89 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - + col0 * + ( - col1 * cor0.col0 ) FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1994
SELECT DISTINCT + - cor0.col0 + - CAST( - col2 * col0 AS SIGNED ) FROM tab0 AS cor0
----
0
7209
768

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT + - cor0.col0 + - CAST ( - col2 * col0 AS INTEGER ) FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT + col0 * + 36 FROM tab2 AS cor0
----
252
2808
2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT ALL + col2 + - 60 DIV - 73 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL + col2 + - 60 / - 73 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + + cor0.col0 * 8 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT DISTINCT - ( col0 ) - - col1 FROM tab1 AS cor0
----
-54
-67
23

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

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

query I rowsort
SELECT ALL + - 28 + col1 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT - 88 + + col2 * + col2 FROM tab0 AS cor0
----
-87
1001
6636

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

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

query I rowsort
SELECT - ( 77 ) FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT - cor0.col0 * 83 AS col0 FROM tab0 cor0
----
-1992
-2905
-7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT ( col0 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2006
SELECT ( col0 ) / + col2 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT 89 * ( col2 ) FROM tab1 AS cor0
----
4806
5073
8544

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

query I rowsort
SELECT - col2 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - 87 FROM tab0, tab0 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT DISTINCT + - col2 * col1 + 54 AS col2 FROM tab1 AS cor0
----
-1194
-1350
-516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 28 col1 FROM tab2 AS cor0
----
106
107
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT ALL + col2 + 9 DIV col2 col2 FROM tab0 AS cor0
----
10
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + col2 + 9 / col2 col2 FROM tab0 AS cor0
----
10
33
82

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

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

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

query I rowsort
SELECT ALL - 28 FROM tab2, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT + cor0.col1 * 79 + - ( + col1 + - 52 ) * ( + col2 * col2 ) FROM tab0 cor0
----
-255047
-30232
7618

query I rowsort
SELECT - col2 * cor0.col2 + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

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

skipif mysql # not compatible
query I rowsort label-2019
SELECT col0 * + col0 + 22 / + col0 FROM tab2 AS cor0
----
52
6084
6241

query I rowsort
SELECT + col2 * + 79 * col0 FROM tab1
----
12798
288192
606720

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT CAST ( 16 AS INTEGER ) FROM tab2, tab1 cor0
----
16

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL col0 * col2 * - col2 + - col1 AS col2 FROM tab2 cor0
----
-114093
-5134
-52787

query I rowsort
SELECT ALL - col0 * col0 - ( 2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1295
-624
-8099

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

query I rowsort
SELECT DISTINCT + - ( col2 ) * + col1 + 65 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1209
3590
3952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2032
SELECT + + 70 * + col1 + col2 * - ( - cor0.col0 ) * + CAST( - col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
-62092
-657748
3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2032
SELECT + + 70 * + col1 + col2 * - ( - cor0.col0 ) * + CAST ( - col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-62092
-657748
3395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2033
SELECT DISTINCT - col1 * col0 + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - col1 * col0 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col1 + 2 FROM tab0 AS cor0
----
88
93
99

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

query I rowsort
SELECT - tab2.col1 * + 79 + 84 FROM tab2, tab0 AS cor0
----
9 values hashing to 27d276c600e3a3a14c29b875443ff3fe

query I rowsort
SELECT DISTINCT + col1 + + 77 AS col2 FROM tab2 AS cor0
----
108
136
94

query I rowsort
SELECT ALL col0 * 98 AS col2 FROM tab0 AS cor0
----
2352
3430
8722

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 col1 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL + 67 * col0 + col2 AS col2 FROM tab2 AS cor0
----
496
5252
5331

query I rowsort
SELECT ALL - + ( - col0 ) + col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT 22 * col0 AS col0 FROM tab1 cor0
----
1408
1760
66

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

query I rowsort
SELECT + col2 + 11 * - cor0.col0 FROM tab0 AS cor0
----
-231
-384
-897

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * col0 * col1 col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - 34 * col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT DISTINCT col2 * col0 * + col0 AS col1 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - col1 * 29 * 84 AS col1 FROM tab2
----
-143724
-41412
-75516

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 28 col0 FROM tab2
----
54
55
66

query I rowsort
SELECT + ( + col2 * tab1.col2 ) - + col1 FROM tab1
----
2890
3239
9203

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + cor0.col1 ) * col1 * - ( col2 ) col1 FROM tab0 AS cor0
----
244068
679042
9409

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

query I rowsort
SELECT ALL cor0.col2 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - 74 - col2 FROM tab2 AS cor0
----
-100
-101
-112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 + col0 col2 FROM tab1 AS cor0
----
-5
-66
11

query I rowsort
SELECT DISTINCT 60 * + col2 AS col0 FROM tab2 AS cor0
----
1560
1620
2280

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

skipif mysql # not compatible
query I rowsort label-2061
SELECT tab2.col2 * + tab2.col1 * + CAST ( col0 AS INTEGER ) + - col0 AS col1 FROM tab2
----
119574
50955
5852

query I rowsort
SELECT ALL + + 31 AS col1 FROM tab1 AS cor0
----
31
31
31

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

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

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

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL + col1 / col1 AS col2 FROM tab2 cor0
----
1
1
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 64 + ( col2 ) + col1 col2 FROM tab0 AS cor0
----
5623
5997
6306

query I rowsort
SELECT ALL cor0.col2 * + 39 + cor0.col1 FROM tab2 AS cor0
----
1073
1084
1499

query I rowsort
SELECT DISTINCT - col1 + + 14 AS col1 FROM tab1 AS cor0
----
-12
1
4

query I rowsort
SELECT + col1 + + col2 * 9 FROM tab1 AS cor0
----
512
523
877

query I rowsort
SELECT + - col2 + 94 FROM tab2 AS cor0
----
56
67
68

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2077
SELECT + - 74 * + col2 DIV col2 AS col0 FROM tab1 cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2077
SELECT + - 74 * + col2 / col2 AS col0 FROM tab1 cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + - 36 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-125
-60
-71

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT 30 + col1 AS col2 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT + cor2.col1 - ( 38 ) AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab2 cor2
----
243 values hashing to 2c4e9bd90e8f1b0efb472edbb56a87c4

query I rowsort
SELECT ALL + - ( + col0 ) + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + ( + 36 ) FROM tab1 AS cor0
----
36
36
36

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

query I rowsort
SELECT - - col0 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col1 + - 71 AS col2 FROM tab2 AS cor0
----
-102
-130
-88

query I rowsort
SELECT + + col2 + col0 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
4153
63
6496

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT - col0 - + col2 DIV + 6 FROM tab2
----
-11
-82
-85

skipif mysql # not compatible
query I rowsort label-2091
SELECT - col0 - + col2 / + 6 FROM tab2
----
-11
-82
-85

query I rowsort
SELECT + ( col2 ) * col1 + - 55 * tab1.col2 AS col0 FROM tab1
----
-1566
-2565
-4032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2093
SELECT + CAST( col0 AS SIGNED ) * col1 + + col0 * col0 FROM tab1 AS cor0
----
4736
7440
87

skipif mysql # not compatible
query I rowsort label-2093
SELECT + CAST ( col0 AS INTEGER ) * col1 + + col0 * col0 FROM tab1 AS cor0
----
4736
7440
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 17 col0 FROM tab0 AS cor0
----
69
74
80

query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL + col1 - 5 AS col2 FROM tab0 AS cor0
----
81
86
92

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

query I rowsort
SELECT - ( - col0 ) * + 99 + - col1 AS col0 FROM tab2 AS cor0
----
662
7663
7804

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

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

query I rowsort
SELECT + - ( + col1 ) * - 45 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT DISTINCT - ( + col1 ) + 53 AS col0 FROM tab2 AS cor0
----
-6
22
36

query I rowsort
SELECT ALL + col1 * + col0 * + col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - cor0.col1 * + col0 + 16 AS col0 FROM tab0 cor0
----
-2048
-3379
-8083

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

query I rowsort
SELECT + 48 AS col1 FROM tab1
----
48
48
48

query I rowsort
SELECT + 87 + + cor1.col2 * cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 20c2a202e72ef898cbd518d0e3998888

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2108
SELECT CAST ( NULL AS INTEGER ) + cor0.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT + cor0.col0 DIV col0 + + ( 46 ) * col0 FROM tab0 cor0
----
1105
1611
4095

skipif mysql # not compatible
query I rowsort label-2109
SELECT + cor0.col0 / col0 + + ( 46 ) * col0 FROM tab0 cor0
----
1105
1611
4095

query I rowsort
SELECT + - 10 + + col1 FROM tab1 AS cor0
----
0
16
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2111
SELECT ALL - CAST( cor0.col0 AS SIGNED ) + cor1.col2 * + 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 13580e09b2db38a2a33f79d0f536b587

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - CAST ( cor0.col0 AS INTEGER ) + cor1.col2 * + 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 13580e09b2db38a2a33f79d0f536b587

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

query I rowsort
SELECT - col1 * + col2 * col0 + col1 * 90 FROM tab1
----
-1872
-35580
-98670

query I rowsort
SELECT - + col1 * - 68 FROM tab0 cor0
----
5848
6188
6596

query I rowsort
SELECT col0 + - 9 AS col2 FROM tab1 cor0
----
-6
55
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT + col2 DIV CAST( 57 AS SIGNED ) + col1 AS col0 FROM tab0 cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-2116
SELECT + col2 / CAST ( 57 AS INTEGER ) + col1 AS col0 FROM tab0 cor0
----
86
92
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT col1 * col0 DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2117
SELECT col1 * col0 / col1 FROM tab0
----
24
35
89

query I rowsort
SELECT 61 * col1 + col1 * 3 AS col2 FROM tab2 AS cor0
----
1088
1984
3776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2119
SELECT CAST( cor0.col0 AS SIGNED ) * col0 + col1 FROM tab0 cor0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-2119
SELECT CAST ( cor0.col0 AS INTEGER ) * col0 + col1 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT - 81 * + cor0.col1 FROM tab1 AS cor0
----
-1053
-2106
-810

query I rowsort
SELECT - ( 78 ) FROM tab0
----
-78
-78
-78

query I rowsort
SELECT - 13 * + col2 FROM tab0
----
-1066
-13
-429

onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT col0 DIV - 65 col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2123
SELECT col0 / - 65 col1 FROM tab0
----
-1
0
0

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

query I rowsort
SELECT col2 + - col1 + + col1 * + col2 AS col2 FROM tab1
----
1331
1432
617

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col0 * + tab1.col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( + tab0.col1 ) IN ( col1 / col1 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * col2 <> col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2129
SELECT - col0 DIV col2 + + col2 * + col1 + col1 AS col0 FROM tab1
----
1261
1430
579

skipif mysql # not compatible
query I rowsort label-2129
SELECT - col0 / col2 + + col2 * + col1 + col1 AS col0 FROM tab1
----
1261
1430
579

query I rowsort
SELECT DISTINCT + col0 * col0 - + col1 * - col0 AS col1 FROM tab1
----
4736
7440
87

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

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

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

query I rowsort
SELECT ALL - col0 * cor0.col0 * - ( col0 + - col2 ) AS col0 FROM tab0 AS cor0
----
-5184
41650
55447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + + tab2.col1 col2 FROM tab2
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-2136
SELECT DISTINCT col1 DIV - col0 col0 FROM tab1 AS cor0
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT col1 / - col0 col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT cor0.col0 * col1 + + 64 FROM tab0 AS cor0
----
2128
3459
8163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col2 * - cor0.col0 + - col0 col0 FROM tab2 AS cor0
----
-165
-2047
-3064

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

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

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

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

query I rowsort
SELECT col2 * col0 + col0 - col0 * col2 FROM tab2
----
7
78
79

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( tab0.col1 )
----

query I rowsort
SELECT - col0 * col0 + tab0.col0 - + col2 FROM tab0
----
-1191
-585
-7914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col1 * col1 * cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col0 * col1 + + col1 col2 FROM tab2 cor0
----
1439
255
4739

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col0 >= NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col2 < col1 * + col1 + - col1 + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL col2 + - col1 * col1 FROM tab1
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT ALL - col1 + col1 DIV col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - col1 + col1 / col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT tab0.col1 * col0 - col0 * tab0.col2 FROM tab0
----
1272
3360
801

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <= ( NULL )
----

query I rowsort
SELECT ALL ( 96 ) + col1 FROM tab1 AS cor0
----
106
109
122

query I rowsort
SELECT DISTINCT - cor0.col1 + 94 * + cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
-266858
-701519
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col1 AS REAL ) + + col0 col2 FROM tab0 AS cor0
----
110
132
180

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

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

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

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

query I rowsort
SELECT + col0 + - 3 FROM tab0
----
21
32
86

query I rowsort
SELECT col0 * col0 * col0 + - col2 FROM tab1 AS cor0
----
-27
262087
511904

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + 99 AS INTEGER ) * - col1 + CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-8428
-8918
-9506

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

query I rowsort
SELECT + ( + 59 ) FROM tab0
----
59
59
59

query I rowsort
SELECT ALL col1 * 41 AS col0 FROM tab1
----
1066
410
533

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

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab0, tab2 AS cor0
----
-81

query I rowsort
SELECT ALL + col1 * + 82 - - col2 AS col0 FROM tab0 AS cor0
----
7085
7544
7955

onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT ALL col1 + - col2 DIV + col0 + col0 * 87 FROM tab0 AS cor0
----
2173
3142
7834

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL col1 + - col2 / + col0 + col0 * 87 FROM tab0 AS cor0
----
2173
3142
7834

onlyif mysql # use DIV operator for integer division
query I rowsort label-2174
SELECT - col1 DIV 8 + - 20 col2 FROM tab1 AS cor0
----
-21
-21
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2174
SELECT - col1 / 8 + - 20 col2 FROM tab1 AS cor0
----
-21
-21
-23

query I rowsort
SELECT ALL + col2 * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

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

query I rowsort
SELECT DISTINCT col2 * col1 + + 85 AS col2 FROM tab0 cor0
----
182
2923
7547

query I rowsort
SELECT ALL - - col1 * ( - 89 ) FROM tab1 AS cor0
----
-1157
-2314
-890

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

query I rowsort
SELECT - col1 * 83 + - 7 + - col1 FROM tab1 cor0
----
-1099
-2191
-847

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 * - col0 + col0 col1 FROM tab0
----
2376
3465
8811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2185
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 34 * + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 34 * + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
NULL

query I rowsort
SELECT ALL + + col2 - - 1 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + col0 * - 21 AS col2 FROM tab2 AS cor0
----
-147
-1638
-1659

query I rowsort
SELECT DISTINCT - col0 * - col1 * + col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

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

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

query I rowsort
SELECT DISTINCT - col1 * 63 * col1 + col0 + col1 * + col0 * col1 AS col2 FROM tab1 AS cor0
----
-40557
164
2953

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2193
SELECT ALL - cor0.col2 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - cor0.col2 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2195
SELECT DISTINCT + cor0.col2 * CAST( 76 * - col0 AS SIGNED ) - 76 * col2 FROM tab0 AS cor0
----
-2736
-560880
-62700

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT + cor0.col2 * CAST ( 76 * - col0 AS INTEGER ) - 76 * col2 FROM tab0 AS cor0
----
-2736
-560880
-62700

query I rowsort
SELECT ALL + col1 * - ( + col0 + tab2.col0 * + tab2.col2 ) FROM tab2
----
-124254
-52377
-6076

query I rowsort
SELECT + tab0.col0 * + 36 + col0 AS col0 FROM tab0
----
1295
3293
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab2
----
30
30
30

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

query I rowsort
SELECT - ( + 96 ) + col0 * + col2 AS col1 FROM tab2 cor0
----
1932
2906
93

query I rowsort
SELECT - + 66 * - col1 * - col1 FROM tab1 AS cor0
----
-11154
-44616
-6600

query I rowsort
SELECT - 25 * col1 * + col0 FROM tab2 AS cor0
----
-115050
-33575
-5425

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

query I rowsort
SELECT ALL + col0 * ( - col0 * col1 ) FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT + ( - col1 ) + col2 * - col2 AS col2 FROM tab2
----
-1461
-735
-760

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

query I rowsort
SELECT - 74 * + col0 AS col2 FROM tab1 AS cor0
----
-222
-4736
-5920

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

query I rowsort
SELECT DISTINCT - col0 * + 12 * col0 FROM tab1
----
-108
-49152
-76800

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 69 + 9 col2 FROM tab1 AS cor0
----
-198
-4407
-5511

onlyif mysql # use DIV operator for integer division
query I rowsort label-2215
SELECT - - col2 * CAST( ( + col2 ) AS SIGNED ) + - col0 DIV col1 FROM tab1 AS cor0
----
2916
3243
9210

skipif mysql # not compatible
query I rowsort label-2215
SELECT - - col2 * CAST ( ( + col2 ) AS INTEGER ) + - col0 / col1 FROM tab1 AS cor0
----
2916
3243
9210

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

query I rowsort
SELECT DISTINCT - col2 * 17 * ( cor0.col1 ) FROM tab1 AS cor0
----
-21216
-23868
-9690

query I rowsort
SELECT DISTINCT + col0 + 33 FROM tab1 AS cor0
----
113
36
97

query I rowsort
SELECT ALL - col1 * col0 - - col1 * col2 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT ALL col1 + col0 * ( - col1 ) * col1 AS col1 FROM tab1
----
-13507
-2002
-6390

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT ( col1 ) + + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2222
SELECT ( col1 ) + + col0 / col0 AS col2 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - - col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

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

query I rowsort
SELECT ALL - col1 * col1 * cor0.col0 FROM tab1 cor0
----
-13520
-2028
-6400

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

query I rowsort
SELECT - col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT tab0.col0 DIV - col1 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2229
SELECT tab0.col0 / - col1 col0 FROM tab0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + + cor0.col1 / col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col1 FROM tab1
----
-2916
-3249
-9216

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) NOT BETWEEN - col2 AND col0 + col1
----

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

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

query I rowsort
SELECT ALL + 41 * + col0 FROM tab1
----
123
2624
3280

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

query I rowsort
SELECT + col2 * col0 * + cor0.col2 FROM tab2 AS cor0
----
114076
5103
52728

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

query I rowsort
SELECT col1 + - 5 FROM tab1
----
21
5
8

query I rowsort
SELECT ALL 64 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

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

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

skipif mysql # not compatible
query I rowsort label-2242
SELECT + cor0.col0 * col1 * - CAST ( col2 AS INTEGER ) + + col0 FROM tab0 cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + col0 * col2 * + 8 FROM tab1 AS cor0
----
1296
29184
61440

query I rowsort
SELECT DISTINCT + ( col1 ) * + 15 AS col1 FROM tab1 AS cor0
----
150
195
390

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

query I rowsort
SELECT + 57 * cor0.col0 AS col0 FROM tab2 cor0
----
399
4446
4503

query I rowsort
SELECT ALL - ( + 94 ) FROM tab2
----
-94
-94
-94

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

query I rowsort
SELECT ALL col0 + col2 * - ( + ( col1 ) ) FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2250
SELECT + col0 * col2 DIV - CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-2250
SELECT + col0 * col2 / - CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
0
80
9

query I rowsort
SELECT ALL - 38 + col0 AS col1 FROM tab1 AS cor0
----
-35
26
42

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

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2255
SELECT col1 + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-2255
SELECT col1 + col2 / - col1 AS col0 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT DISTINCT - col0 * + col1 + 33 AS col1 FROM tab1
----
-1007
-45
-607

query I rowsort
SELECT - col2 + + col0 * tab1.col2 + col1 FROM tab1
----
134
3601
7597

query I rowsort
SELECT ALL 6 + col1 FROM tab2 AS cor0
----
23
37
65

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 - 65 FROM tab1 AS cor0
----
-11
-88
2

query I rowsort
SELECT ALL + 9 + col2 * - col1 FROM tab0 AS cor0
----
-2829
-7453
-88

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

query I rowsort
SELECT - 21 + + col0 * + ( + ( col0 ) ) AS col2 FROM tab0 cor0
----
1204
555
7900

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

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

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

query I rowsort
SELECT DISTINCT col2 * - col1 * + 66 + col0 + - col0 * col0 FROM tab1 AS cor0
----
-41652
-88688
-92670

query I rowsort
SELECT col1 * 45 + 64 FROM tab1 AS cor0
----
1234
514
649

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

query I rowsort
SELECT ALL - col2 + - col2 * + col0 * - 8 AS col2 FROM tab2
----
1485
16198
23978

query I rowsort
SELECT DISTINCT + col2 + + col1 * ( + ( col2 ) ) * + ( tab0.col0 ) FROM tab0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT tab0.col1 * col2 + - col1 AS col2 FROM tab0
----
0
2752
7371

query I rowsort
SELECT - 6 + + col0 FROM tab0
----
18
29
83

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT - col2 DIV col0 - - tab1.col2 * 69 col1 FROM tab1
----
3708
3933
6623

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2273
SELECT - col2 / col0 - - tab1.col2 * 69 col1 FROM tab1
----
3708
3933
6623

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

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

query I rowsort
SELECT ALL ( - 9 ) * - col0 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT DISTINCT col1 * col2 + - cor0.col0 * 59 FROM tab0 AS cor0
----
-1968
1422
2211

onlyif mysql # use DIV operator for integer division
query I rowsort label-2277
SELECT ALL col0 * col1 DIV col0 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL col0 * col1 / col0 FROM tab1 cor0
----
10
13
26

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT DISTINCT - col1 DIV cor0.col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - col1 / cor0.col2 + col1 FROM tab1 AS cor0
----
10
13
26

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

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

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

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - 33 * - ( + col0 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL 42 + - 33 AS col2 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT col2 * 2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT - tab0.col0 - - col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 + + col2 * col2 AS col2 FROM tab2
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2288
SELECT col2 * - 85 + + col2 DIV - col0 AS col1 FROM tab0
----
-2806
-6970
-85

skipif mysql # not compatible
query I rowsort label-2288
SELECT col2 * - 85 + + col2 / - col0 AS col1 FROM tab0
----
-2806
-6970
-85

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

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - + CAST ( cor0.col2 AS INTEGER ) * col1 - - col0 / + col0 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT DISTINCT col2 * - col0 + - tab0.col1 FROM tab0
----
-132
-7389
-878

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

query I rowsort
SELECT + cor0.col2 * col1 * - col2 + + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

query I rowsort
SELECT - col1 * + cor0.col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 6 * - col0 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT + - 57 - col0 FROM tab2 AS cor0
----
-135
-136
-64

query I rowsort
SELECT DISTINCT - - 94 * ( + col0 ) - cor0.col2 AS col0 FROM tab0 AS cor0
----
2223
3289
8284

query I rowsort
SELECT DISTINCT 38 * - 99 + - col0 * - col0 FROM tab2
----
-3713
2322
2479

query I rowsort
SELECT col0 + + 25 FROM tab0
----
114
49
60

query I rowsort
SELECT col0 * - ( col2 ) + + col0 + - col1 AS col1 FROM tab2
----
-2009
-213
-2940

query I rowsort
SELECT + 18 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT - 98 FROM tab2, tab0 cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT - col2 * - 67 * col0 FROM tab2
----
12663
135876
201134

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT + tab0.col1 * + CAST ( col1 AS INTEGER ) col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL col1 * - col1 - cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL 90 / - col2 FROM tab1
----
-1
-1
0

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

query I rowsort
SELECT DISTINCT col2 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT - + col2 + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2313
SELECT + + col1 DIV ( 25 ) + - col2 AS col2 FROM tab0 AS cor0
----
-30
-79
2

skipif mysql # not compatible
query I rowsort label-2313
SELECT + + col1 / ( 25 ) + - col2 AS col2 FROM tab0 AS cor0
----
-30
-79
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 25 * - 60 * + col2 col2 FROM tab2 AS cor0
----
-39026
-40527
-57038

query I rowsort
SELECT - col0 * col2 * 82 AS col0 FROM tab2
----
-15498
-166296
-246164

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

query I rowsort
SELECT DISTINCT col2 + + col1 - - col2 FROM tab0
----
152
255
99

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

query I rowsort
SELECT + - col0 * + 10 AS col0 FROM tab1 AS cor0
----
-30
-640
-800

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2321
SELECT ALL + + col2 * - CAST( col0 + col0 * + col0 AS SIGNED ) FROM tab1 cor0
----
-237120
-622080
-648

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + + col2 * - CAST ( col0 + col0 * + col0 AS INTEGER ) FROM tab1 cor0
----
-237120
-622080
-648

query I rowsort
SELECT DISTINCT col2 + ( - 31 ) + col1 FROM tab1 AS cor0
----
36
49
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 5 col1 FROM tab2 AS cor0
----
-155
-295
-85

query I rowsort
SELECT - 6 + col2 - col1 FROM tab1 AS cor0
----
22
41
77

query I rowsort
SELECT - 10 + + col2 FROM tab1 AS cor0
----
44
47
86

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

query I rowsort
SELECT DISTINCT + - ( + 68 ) AS col1 FROM tab1 cor0
----
-68

query I rowsort
SELECT ALL - - 57 + + cor0.col2 FROM tab1 AS cor0
----
111
114
153

query I rowsort
SELECT - ( 52 ) + col0 FROM tab1 AS cor0
----
-49
12
28

query I rowsort
SELECT DISTINCT + 94 * 59 AS col0 FROM tab1 AS cor0
----
5546

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

query I rowsort
SELECT + cor1.col1 * + 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 51cbd84c10b203af80e3e5a9fabb8e09

query I rowsort
SELECT ALL - 36 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

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

query I rowsort
SELECT + - 47 * - col0 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT - tab2.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1
----
243 values hashing to aad6a39cc782d0570960622f04a07424

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT - + ( - col2 ) + + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2337
SELECT - + ( - col2 ) + + col0 / col0 AS col1 FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 * + col2 col2 FROM tab0 AS cor0
----
-2244
-5576
-68

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

query I rowsort
SELECT - col1 * - col1 + + cor0.col1 * + col1 AS col1 FROM tab2 cor0
----
1922
578
6962

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

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT + 63 / 45 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT 44 + + col2 AS col0 FROM tab0 AS cor0
----
126
45
77

query I rowsort
SELECT + 80 + + col0 AS col2 FROM tab0 cor0
----
104
115
169

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

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT + - col1 / + col0 + + col0 AS col2 FROM tab2 AS cor0
----
3
78
79

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

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

query I rowsort
SELECT ALL cor0.col1 + 48 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT - ( 86 ) FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + col1 + + 25 FROM tab1 cor0
----
35
38
51

query I rowsort
SELECT ALL + col0 - 60 * - col0 FROM tab2
----
427
4758
4819

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

query I rowsort
SELECT ALL + ( - 41 ) AS col2 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT ( - col0 ) * - col0 + + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT + cor0.col1 * - 45 AS col2 FROM tab1 cor0
----
-1170
-450
-585

query I rowsort
SELECT ALL - 89 * + col2 + + col1 FROM tab1 AS cor0
----
-4780
-5063
-8531

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

query I rowsort
SELECT DISTINCT - col0 * 23 + cor0.col0 + 82 * col0 AS col2 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT ALL 26 + 18 AS col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT ALL cor0.col0 * tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to bf0d47ae26a3f9220ea7f127466fd7da

query I rowsort
SELECT DISTINCT ( + col1 ) + col2 * 18 AS col0 FROM tab1
----
1036
1741
998

query I rowsort
SELECT - 53 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query I rowsort
SELECT 66 * + col1 AS col1 FROM tab2 AS cor0
----
1122
2046
3894

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT + cor0.col2 DIV - 5 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 01ef8088b4664f0b7d2e4f349c579150

skipif mysql # not compatible
query I rowsort label-2363
SELECT + cor0.col2 / - 5 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 01ef8088b4664f0b7d2e4f349c579150

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT - col0 * ( - col0 ) * col0 + col0 DIV + col2 FROM tab0 AS cor0
----
13824
42910
704970

skipif mysql # not compatible
query I rowsort label-2365
SELECT - col0 * ( - col0 ) * col0 + col0 / + col2 FROM tab0 AS cor0
----
13824
42910
704970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2366
SELECT DISTINCT - cor0.col2 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - cor0.col2 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 80 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT ALL - + col2 DIV 49 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL - + col2 / 49 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * - 50 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-4650

query I rowsort
SELECT ALL + 34 + 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL tab1.col1 + 53 FROM tab1
----
63
66
79

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2378
SELECT ALL - col0 + + 74 * col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
-5
67

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - col0 + + 74 * col0 / col0 AS col2 FROM tab2 AS cor0
----
-4
-5
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
SELECT ALL col2 + - 94 DIV 54 col1 FROM tab1 AS cor0
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL col2 + - 94 / 54 col1 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT - col1 + - 55 FROM tab2 cor0
----
-114
-72
-86

query I rowsort
SELECT - col0 * col1 * - col2 + col2 FROM tab0
----
3396
664200
68145

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

query I rowsort
SELECT DISTINCT - col2 * col0 + - tab0.col2 * + col2 + col1 AS col1 FROM tab0
----
-13931
-1795
61

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

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

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

query I rowsort
SELECT ALL tab2.col1 + + 51 AS col0 FROM tab2
----
110
68
82

query I rowsort
SELECT DISTINCT ( + col0 ) * + col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 31 * cor0.col2 AS col0 FROM tab1 cor0
----
-1674
-1767
-2976

query I rowsort
SELECT ALL col0 * 75 + + col1 * col1 FROM tab2 AS cor0
----
1486
6214
9331

query I rowsort
SELECT ALL 86 * - col0 * - col1 FROM tab0 AS cor0
----
177504
291970
696514

query I rowsort
SELECT 72 + + col0 AS col1 FROM tab1
----
136
152
75

query I rowsort
SELECT col0 * 86 * - col2 + col1 * - col0 * cor0.col2 FROM tab0 AS cor0
----
-1291746
-136224
-6405

query I rowsort
SELECT ALL - 15 * cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
-112
-1248
-1264

onlyif mysql # use DIV operator for integer division
query I rowsort label-2394
SELECT - - 75 DIV cor0.col2 + + col2 DIV + 52 AS col0 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2394
SELECT - - 75 / cor0.col2 + + col2 / + 52 AS col0 FROM tab1 AS cor0
----
1
2
2

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

query I rowsort
SELECT ( tab0.col0 ) + - col0 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT - col2 * - ( 73 ) * - col2 FROM tab2 AS cor0
----
-105412
-49348
-53217

query I rowsort
SELECT DISTINCT + col2 - col2 * ( - cor0.col2 ) FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT ALL col1 * + 48 * - col2 AS col0 FROM tab0 AS cor0
----
-136224
-358176
-4656

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

query I rowsort
SELECT DISTINCT + - col2 + cor0.col2 * 60 + - col2 FROM tab2 AS cor0
----
1508
1566
2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT ALL col1 DIV + ( + 33 + cor0.col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL col1 / + ( + 33 + cor0.col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - 14 AS col2 FROM tab1 AS cor0
----
-1344
-756
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT DISTINCT + 50 DIV + col2 FROM tab0
----
0
1
50

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT + 50 / + col2 FROM tab0
----
0
1
50

query I rowsort
SELECT col0 * col0 + 11 AS col0 FROM tab0
----
1236
587
7932

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

query I rowsort
SELECT tab0.col2 * 90 FROM tab0, tab0 AS cor0
----
9 values hashing to 957e42147c4e1160fc6b514706cda1c5

query I rowsort
SELECT + + col1 + - 87 FROM tab1 AS cor0
----
-61
-74
-77

query I rowsort
SELECT - col0 + + col1 + col1 * 25 AS col1 FROM tab1
----
196
258
673

onlyif mysql # use DIV operator for integer division
query I rowsort label-2411
SELECT 59 + - col0 DIV + 63 + - 86 AS col2 FROM tab2
----
-27
-28
-28

skipif mysql # not compatible
query I rowsort label-2411
SELECT 59 + - col0 / + 63 + - 86 AS col2 FROM tab2
----
-27
-28
-28

query I rowsort
SELECT ALL + col2 * + col1 - - tab1.col2 * col2 * + col0 AS col1 FROM tab1
----
10152
208506
738528

query I rowsort
SELECT 81 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT - + 7 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT + - col1 * + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT 93 * col0 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT DISTINCT + 63 FROM tab2, tab0 cor0
----
63

query I rowsort
SELECT - + 86 * col0 FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT ALL 35 * cor0.col1 + col2 FROM tab0 AS cor0
----
3043
3267
3396

query I rowsort
SELECT DISTINCT col1 * col0 * col2 AS col2 FROM tab2
----
119652
51034
5859

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT ALL 41 * col0 DIV col1 FROM tab0
----
11
14
40

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL 41 * col0 / col1 FROM tab0
----
11
14
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT + cor0.col2 * cor0.col2 DIV tab1.col0 + - 62 FROM tab1, tab2 cor0
----
9 values hashing to 06b0aaeeb29165f64e7b09bdfc2fedb2

skipif mysql # not compatible
query I rowsort label-2423
SELECT + cor0.col2 * cor0.col2 / tab1.col0 + - 62 FROM tab1, tab2 cor0
----
9 values hashing to 06b0aaeeb29165f64e7b09bdfc2fedb2

query I rowsort
SELECT DISTINCT ( 86 + col1 ) * 94 FROM tab2
----
10998
13630
9682

onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT 40 DIV + col0 - + col2 FROM tab2
----
-22
-26
-38

skipif mysql # not compatible
query I rowsort label-2425
SELECT 40 / + col0 - + col2 FROM tab2
----
-22
-26
-38

query I rowsort
SELECT ALL - 80 * - tab1.col0 * col2 FROM tab1
----
12960
291840
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) * col2 col1 FROM tab2
----
-22599
-24548
-39884

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT 48 DIV - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2429
SELECT 48 / - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

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

query I rowsort
SELECT DISTINCT + 25 + col0 AS col1 FROM tab0 AS cor0
----
114
49
60

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

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

query I rowsort
SELECT ALL - col2 * col1 - + ( + col0 ) * + cor0.col1 FROM tab1 AS cor0
----
-1210
-1482
-2288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2437
SELECT - col2 * - CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-2437
SELECT - col2 * - CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT + - col2 DIV + cor0.col0 + + 92 FROM tab2 cor0
----
89
92
92

skipif mysql # not compatible
query I rowsort label-2438
SELECT + - col2 / + cor0.col0 + + 92 FROM tab2 cor0
----
89
92
92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 52 + cor0.col1 col0 FROM tab2 AS cor0
----
395
4115
4125

query I rowsort
SELECT - col0 * - 98 FROM tab2 cor0
----
686
7644
7742

onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT + col1 * 56 DIV - ( col1 + col0 * 84 ) AS col0 FROM tab1 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2443
SELECT + col1 * 56 / - ( col1 + col0 * 84 ) AS col0 FROM tab1 AS cor0
----
-5
0
0

query I rowsort
SELECT ALL + col1 + + cor0.col1 * col1 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT + col1 * - col2 + + cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728

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

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

query I rowsort
SELECT ALL + cor0.col1 * 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7d5527bf093aa282928dc1afc87b249d

skipif mysql # not compatible
query I rowsort
SELECT - 90 * col0 - - CAST ( ( + col2 ) * col2 + col0 AS REAL ) FROM tab1 AS cor0
----
-2447
2096
2649

query I rowsort
SELECT ALL col2 * cor0.col1 * ( 93 * col1 ) AS col1 FROM tab0 AS cor0
----
22698324
63150906
875037

onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT DISTINCT - col1 + - col1 DIV col1 + + col2 FROM tab1 cor0
----
27
46
82

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - col1 + - col1 / col1 + + col2 FROM tab1 cor0
----
27
46
82

query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL col0 * col0 + 47 AS col2 FROM tab2 AS cor0
----
6131
6288
96

query I rowsort
SELECT ALL + 93 * - col0 AS col0 FROM tab1 AS cor0
----
-279
-5952
-7440

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT ALL - cor0.col1 * col2 DIV + col1 col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - cor0.col1 * col2 / + col1 col2 FROM tab2 AS cor0
----
-26
-27
-38

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

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

query I rowsort
SELECT + col2 + cor0.col0 - + col1 FROM tab2 AS cor0
----
100
3
45

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2460
SELECT + - col1 * + CAST( col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-2460
SELECT + - col1 * + CAST ( col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL col1 * + 2 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + - col2 + 18 + col0 FROM tab2 AS cor0
----
-2
59
70

query I rowsort
SELECT col1 * col2 + col0 * + col1 + col1 FROM tab2
----
1085
2006
6195

query I rowsort
SELECT ALL cor0.col0 * - col0 + - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + 62 + col2 FROM tab1 cor0
----
116
119
158

query I rowsort
SELECT DISTINCT ( col2 ) * + col2 * - 25 AS col0 FROM tab1 AS cor0
----
-230400
-72900
-81225

query I rowsort
SELECT DISTINCT - + col1 + - 86 AS col0 FROM tab1 AS cor0
----
-112
-96
-99

query I rowsort
SELECT ALL - - 56 + col2 AS col2 FROM tab1 AS cor0
----
110
113
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-2469
SELECT DISTINCT col0 DIV ( - col0 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT col0 / ( - col0 ) FROM tab2
----
-1

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

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

query I rowsort
SELECT DISTINCT + 12 + col2 AS col0 FROM tab1 cor0
----
108
66
69

query I rowsort
SELECT ALL - col1 * col1 + - col2 + col2 FROM tab2 AS cor0
----
-289
-3481
-961

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

query I rowsort
SELECT + tab1.col0 + - 85 FROM tab1
----
-21
-5
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + ( + col0 ) col0 FROM tab1 AS cor0
----
1120
704
81

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

query I rowsort
SELECT - 71 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT - ( + col1 ) DIV col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2478
SELECT - ( + col1 ) / col1 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT ALL + col1 DIV col1 + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL + col1 / col1 + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT - 24 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - col0 * + ( tab0.col2 ) + tab0.col2 AS col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col1 + - 97 AS col0 FROM tab1
----
-71
-84
-87

query I rowsort
SELECT ALL col0 * - col2 + col2 + col1 AS col2 FROM tab0
----
-673
-7125
63

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

query I rowsort
SELECT - 90 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT col1 + - 22 FROM tab2
----
-5
37
9

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

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

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

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

query I rowsort
SELECT ALL - 28 + 24 AS col1 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - 70 * col0 FROM tab0 AS cor0
----
-1680
-2450
-6230

query I rowsort
SELECT DISTINCT + 77 * 81 FROM tab1 AS cor0
----
6237

query I rowsort
SELECT DISTINCT + 30 + + col1 AS col0 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT DISTINCT 32 * - col2 - col0 * + col1 FROM tab2 AS cor0
----
-1081
-2559
-5434

query I rowsort
SELECT - 26 * - col0 FROM tab2 AS cor0
----
182
2028
2054

query I rowsort
SELECT DISTINCT + col1 + + col2 + col2 FROM tab0 AS cor0
----
152
255
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 9 ) + col0 col2 FROM tab2 AS cor0
----
16
87
88

query I rowsort
SELECT DISTINCT 34 * tab2.col2 FROM tab2
----
1292
884
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT ALL + ( - col1 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + ( - col1 ) / + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - + col2 * cor0.col2 + - col1 FROM tab2 cor0
----
-1461
-735
-760

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT DISTINCT + col0 DIV - 96 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT + col0 / - 96 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT DISTINCT 8 DIV - 21 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT 8 / - 21 + col0 FROM tab0 AS cor0
----
24
35
89

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

query I rowsort
SELECT ALL + col0 * 63 AS col0 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT DISTINCT col0 - - 50 FROM tab2 AS cor0
----
128
129
57

query I rowsort
SELECT col1 + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL 12 * + cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to fd0b47fb95900e7ee723b2131d90e01c

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

skipif mysql # not compatible
query I rowsort label-2510
SELECT + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT DISTINCT + - col2 * col0 - - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-160
-3643
-7673

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT + - col2 * col0 - - col2 / col1 AS col2 FROM tab1 AS cor0
----
-160
-3643
-7673

query I rowsort
SELECT - + col0 * ( + 33 ) AS col2 FROM tab0 AS cor0
----
-1155
-2937
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col0 * + col0 + - ( col0 * - col1 ) AS col0 FROM tab2 AS cor0
----
10686
266
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2515
SELECT - col1 + - col2 DIV CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-10
-14
-44

skipif mysql # not compatible
query I rowsort label-2515
SELECT - col1 + - col2 / CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-10
-14
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT - ( col0 + tab1.col1 ) AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ( - col2 ) + + col1 + - tab0.col1 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ( 24 ) * + col1 FROM tab0
----
2064
2184
2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2520
SELECT CAST( NULL AS SIGNED ) * + tab0.col0 col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2520
SELECT CAST ( NULL AS INTEGER ) * + tab0.col0 col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 11 * col1 FROM tab0 AS cor0
----
1001
1067
946

onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT ALL - ( - col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - ( - col0 ) / col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 + - col0 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + 78 * col1 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
2635
2669
9204

onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT ALL - - col2 * + col1 * + col0 + col0 DIV col2 + cor0.col1 * + 61 * + col2 AS col0 FROM tab0 AS cor0
----
1119301
241230
9347

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - - col2 * + col1 * + col0 + col0 / col2 + cor0.col1 * + 61 * + col2 AS col0 FROM tab0 AS cor0
----
1119301
241230
9347

query I rowsort
SELECT DISTINCT + - 56 AS col2 FROM tab0 cor0
----
-56

query I rowsort
SELECT ALL cor0.col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT ( 41 ) FROM tab2, tab2 cor0, tab1 AS cor1
----
41

query I rowsort
SELECT col0 * + 51 AS col2 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT ( - tab2.col1 ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL + 47 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT DISTINCT col0 + + col1 * 3 FROM tab1 AS cor0
----
119
81
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * col0 col2 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2534
SELECT ALL + col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + 96 AS col2 FROM tab0 cor0
----
-2304
-3360
-8544

query I rowsort
SELECT - col2 * + 4 + + ( col0 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
-56
-70
33

query I rowsort
SELECT 3 + col2 FROM tab0
----
36
4
85

query I rowsort
SELECT ALL - 13 AS col2 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT + 64 * col1 * ( col2 ) AS col2 FROM tab1
----
36480
79872
89856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT ALL + col1 * - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL + col1 * - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - col2 + - ( col1 ) AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT + + col0 + - 35 AS col2 FROM tab0 AS cor0
----
-11
0
54

query I rowsort
SELECT + cor1.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2545
SELECT ALL 1 DIV col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL 1 / col2 FROM tab0
----
0
0
1

query I rowsort
SELECT - - ( col2 ) * col1 + - col0 + + 83 AS col0 FROM tab0 AS cor0
----
145
2897
7456

query I rowsort
SELECT + ( + col1 ) + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2548
SELECT CAST( - ( col0 ) AS SIGNED ) * - col0 + col0 + col0 AS col0 FROM tab2 cor0
----
6240
63
6399

skipif mysql # not compatible
query I rowsort label-2548
SELECT CAST ( - ( col0 ) AS INTEGER ) * - col0 + col0 + col0 AS col0 FROM tab2 cor0
----
6240
63
6399

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2549
SELECT - - CAST( col2 AS SIGNED ) + + col2 + + col1 * col1 FROM tab0 AS cor0
----
7462
8445
9411

skipif mysql # not compatible
query I rowsort label-2549
SELECT - - CAST ( col2 AS INTEGER ) + + col2 + + col1 * col1 FROM tab0 AS cor0
----
7462
8445
9411

query I rowsort
SELECT - ( - col0 ) - + col2 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL + - 55 FROM tab1, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT - - cor2.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119

query I rowsort
SELECT - 55 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1
-3
21

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab1, tab0 AS cor0, tab0, tab2 cor1
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT ALL + 43 DIV col0 AS col1 FROM tab2
----
0
0
6

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + 43 / col0 AS col1 FROM tab2
----
0
0
6

query I rowsort
SELECT - + col0 * - cor0.col1 + - col0 * + col2 - - col2 AS col0 FROM tab2 AS cor0
----
-1621
2600
55

query I rowsort
SELECT + col2 * + col1 + + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT + tab1.col2 + + tab1.col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 991820edbb75c914c19ef8271a64c61a

query I rowsort
SELECT + - 97 * - col2 + + 95 AS col2 FROM tab1 AS cor0
----
5333
5624
9407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col0 col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT 49 + + 0 * tab2.col2 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT + ( + col1 * - tab2.col1 ) + col1 * col2 AS col2 FROM tab2
----
-124
-1947
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 71 col0 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT ( tab1.col0 ) - col2 DIV col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2565
SELECT ( tab1.col0 ) - col2 / col2 FROM tab1
----
2
63
79

query I rowsort
SELECT DISTINCT + col2 * - tab1.col0 + col0 AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - col0 + - cor0.col0 AS col2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT 28 + - col0 AS col0 FROM tab2
----
-50
-51
21

query I rowsort
SELECT ALL col2 * col0 * + ( - col2 ) + col1 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT ALL + cor0.col1 * - col2 + ( ( col0 ) + - col2 ) AS col2 FROM tab0 AS cor0
----
-2847
-63
-7455

query I rowsort
SELECT DISTINCT + - 23 * - col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT 78 * col1 + 44 FROM tab1 AS cor0
----
1058
2072
824

query I rowsort
SELECT DISTINCT + + ( + col0 ) * col2 * - col1 + - cor0.col1 FROM tab1 AS cor0
----
-36490
-4238
-99853

query I rowsort
SELECT ALL - - col0 * col0 + 73 FROM tab1 AS cor0
----
4169
6473
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT DISTINCT + - col1 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT + - col1 / - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col2 * 35 AS col0 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT ALL - cor0.col1 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2578
SELECT - + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT - + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2579
SELECT + col1 DIV - 6 + col1 AS col0 FROM tab0 AS cor0
----
72
76
81

skipif mysql # not compatible
query I rowsort label-2579
SELECT + col1 / - 6 + col1 AS col0 FROM tab0 AS cor0
----
72
76
81

query I rowsort
SELECT ALL + - col1 * 7 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT ALL - col2 * - 91 * col0 AS col1 FROM tab0 cor0
----
3185
664118
72072

query I rowsort
SELECT - cor0.col1 * cor0.col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT col2 + - cor0.col0 * + 26 AS col1 FROM tab1 AS cor0
----
-1607
-1984
-24

query I rowsort
SELECT - col1 * 22 * col1 AS col1 FROM tab2 AS cor0
----
-21142
-6358
-76582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 83 col2 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT col2 * - 93 FROM tab1 AS cor0
----
-5022
-5301
-8928

query I rowsort
SELECT + col1 * + cor0.col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab2, tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col2 * - col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL - 16 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL + - 71 FROM tab1 cor0
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT ALL + col1 DIV 9 + - col2 FROM tab0 AS cor0
----
-24
-72
9

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL + col1 / 9 + - col2 FROM tab0 AS cor0
----
-24
-72
9

query I rowsort
SELECT DISTINCT 32 + + col2 AS col0 FROM tab0 AS cor0
----
114
33
65

query I rowsort
SELECT DISTINCT - ( 52 ) * cor0.col2 FROM tab2 cor0
----
-1352
-1404
-1976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2595
SELECT ALL CAST( NULL AS SIGNED ) * 86 * + cor0.col1 + - 63 + - 13 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL CAST ( NULL AS INTEGER ) * 86 * + cor0.col1 + - 63 + - 13 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * col2 * + ( col2 ) + + col0 col0 FROM tab0 AS cor0
----
35
611882
93592

query I rowsort
SELECT DISTINCT + 56 * 73 * cor0.col1 FROM tab1 AS cor0
----
106288
40880
53144

query I rowsort
SELECT ALL ( + 60 ) * - cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
-1407
-2099
-5258

query I rowsort
SELECT 22 + - col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-167
-2006
-2980

onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT DISTINCT - + 20 DIV col2 AS col1 FROM tab0 AS cor0
----
-20
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - + 20 / col2 AS col1 FROM tab0 AS cor0
----
-20
0

query I rowsort
SELECT + - 22 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
-513
-563
-819

query I rowsort
SELECT + + 45 * cor0.col2 * - ( col1 ) FROM tab0 AS cor0
----
-127710
-335790
-4365

query I rowsort
SELECT DISTINCT col0 * col0 + 35 * col2 * ( 96 ) FROM tab2 AS cor0
----
133921
90769
93444

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT + - col2 * - col0 + - cor0.col1 DIV cor0.col2 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2604
SELECT + - col2 * - col0 + - cor0.col1 / cor0.col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - col1 + + tab2.col0 * - col0 AS col2 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT + 56 * - col2 * cor0.col1 + ( cor0.col1 ) FROM tab0 AS cor0
----
-158842
-417781
-5335

query I rowsort
SELECT tab2.col1 + 41 FROM tab2
----
100
58
72

query I rowsort
SELECT col0 * 10 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT ALL + cor0.col2 + + 50 AS col2 FROM tab2 cor0
----
76
77
88

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 80b3ced88f886d6e15182ebf21c93987

query I rowsort
SELECT ALL 53 + 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 418f1c817ef9b3406f572acab9f54796

query I rowsort
SELECT + col0 * + 94 AS col2 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT - col2 + col0 * col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT - + cor0.col2 + - ( col2 ) * - col1 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( cor0.col0 + - cor0.col2 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a

query I rowsort
SELECT ALL col2 * 23 * - col0 AS col1 FROM tab1 AS cor0
----
-176640
-3726
-83904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - 89 * tab2.col0 * col0 FROM tab2
----
-4361
-541476
-555449

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT 40 DIV - col0 AS col2 FROM tab1
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT 40 / - col0 AS col2 FROM tab1
----
-13
0
0

query I rowsort
SELECT col2 + ( - col1 ) - - col0 AS col1 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT 45 DIV + col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT 45 / + col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT - - col1 + col1 + 85 FROM tab1 AS cor0
----
105
111
137

onlyif mysql # use DIV operator for integer division
query I rowsort label-2626
SELECT + 20 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2626
SELECT + 20 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT - - 86 DIV col0 + 39 + + col0 AS col1 FROM tab0 AS cor0
----
128
66
76

skipif mysql # not compatible
query I rowsort label-2627
SELECT - - 86 / col0 + 39 + + col0 AS col1 FROM tab0 AS cor0
----
128
66
76

query I rowsort
SELECT DISTINCT 44 * col2 AS col1 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT 5 * col1 FROM tab2
----
155
295
85

query I rowsort
SELECT - 93 * + col0 AS col1 FROM tab1
----
-279
-5952
-7440

query I rowsort
SELECT + 35 + col2 AS col2 FROM tab2 AS cor0
----
61
62
73

query I rowsort
SELECT - 52 * + 35 AS col1 FROM tab0
----
-1820
-1820
-1820

onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT ( + col2 ) DIV 35 + col1 AS col1 FROM tab1 AS cor0
----
11
15
27

skipif mysql # not compatible
query I rowsort label-2633
SELECT ( + col2 ) / 35 + col1 AS col1 FROM tab1 AS cor0
----
11
15
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col0 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort
SELECT - col1 + + col0 + + CAST ( col1 AS REAL ) * tab2.col1 FROM tab2
----
3500
351
937

query I rowsort
SELECT ALL + ( col0 ) * col2 * - col1 + - col1 + + col0 * - col0 FROM tab0
----
-4717
-672130
-68774

onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT col1 DIV + col2 + col0 * 98 * - col2 AS col2 FROM tab1 AS cor0
----
-15876
-357504
-752640

skipif mysql # not compatible
query I rowsort label-2637
SELECT col1 / + col2 + col0 * 98 * - col2 AS col2 FROM tab1 AS cor0
----
-15876
-357504
-752640

query I rowsort
SELECT ALL + tab0.col2 * 66 AS col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to b15f37c965acfea80e365d2c67340cc0

query I rowsort
SELECT - - 42 + - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1492
-604
-795

query I rowsort
SELECT DISTINCT - 66 + col2 * - 42 FROM tab2 AS cor0
----
-1158
-1200
-1662

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT col2 DIV 39 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT col2 / 39 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 17 + cor0.col0 * col0 col2 FROM tab0 AS cor0
----
-424
-886
6374

query I rowsort
SELECT DISTINCT - + cor0.col0 + 32 FROM tab0 AS cor0
----
-3
-57
8

query I rowsort
SELECT ALL - col1 + 80 FROM tab0 AS cor0
----
-11
-17
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT + col1 + + col2 DIV + col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-2645
SELECT + col1 + + col2 / + col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL - col2 + 32 AS col2 FROM tab1 AS cor0
----
-22
-25
-64

query I rowsort
SELECT + col1 * col2 + 22 FROM tab0 AS cor0
----
119
2860
7484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2648
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) * - col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT + col0 DIV 3 AS col2 FROM tab0 AS cor0
----
11
29
8

skipif mysql # not compatible
query I rowsort label-2649
SELECT + col0 / 3 AS col2 FROM tab0 AS cor0
----
11
29
8

query I rowsort
SELECT ALL - cor0.col1 * 82 FROM tab2, tab2 AS cor0
----
9 values hashing to 31d673572b55f6f3951b4724c7fb93a0

query I rowsort
SELECT ALL 93 * - col2 FROM tab0
----
-3069
-7626
-93

query I rowsort
SELECT ALL ( - col2 ) * + 23 * col1 + - col1 * 61 + 35 AS col2 FROM tab2
----
-15860
-21107
-38846

query I rowsort
SELECT ALL col2 + col0 * - 68 AS col0 FROM tab0
----
-1599
-2379
-5970

query I rowsort
SELECT ALL - + col1 * - col0 + col1 FROM tab2 cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2655
SELECT ALL - CAST( 49 AS SIGNED ) + + col0 - col1 AS col1 FROM tab2 AS cor0
----
-30
-73
13

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - CAST ( 49 AS INTEGER ) + + col0 - col1 AS col1 FROM tab2 AS cor0
----
-30
-73
13

query I rowsort
SELECT 91 + - col1 AS col2 FROM tab2 AS cor0
----
32
60
74

query I rowsort
SELECT ALL - ( - col1 ) * - col2 * col0 + - cor0.col1 * col0 + 91 * + cor0.col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
10452
294848
598000

query I rowsort
SELECT - 95 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT ALL - col1 * cor0.col2 + col0 * - col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT - 97 * cor1.col2 * 52 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8e3ee21c118ffd606a8cebef459b2089

query I rowsort
SELECT DISTINCT tab1.col2 * + 20 AS col0 FROM tab1, tab0 AS cor0
----
1080
1140
1920

query I rowsort
SELECT cor0.col0 + 38 + 4 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e9bfd28e25ec5c82be7b73b70a2b8ab0

query I rowsort
SELECT DISTINCT - 10 - col2 FROM tab1
----
-106
-64
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + + col0 * + col1 col0 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT + 43 - col1 FROM tab1
----
17
30
33

query I rowsort
SELECT ALL + - col0 + + 18 FROM tab1 AS cor0
----
-46
-62
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT ALL cor0.col1 DIV ( + 67 ) col0 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL cor0.col1 / ( + 67 ) col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 * 24 FROM tab2 AS cor0
----
-168
-1872
-1896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 87 col0 FROM tab2 AS cor0
----
-609
-6786
-6873

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 * + cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1260
19800
656820

query I rowsort
SELECT ALL col2 - 61 FROM tab1 AS cor0
----
-4
-7
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2672
SELECT DISTINCT - col0 DIV 12 AS col0 FROM tab1 AS cor0
----
-5
-6
0

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - col0 / 12 AS col0 FROM tab1 AS cor0
----
-5
-6
0

query I rowsort
SELECT + col2 + ( - col2 ) * - col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - + col2 + + col0 * 21 AS col2 FROM tab2 cor0
----
120
1612
1621

query I rowsort
SELECT DISTINCT + + col2 - 87 * - col1 FROM tab1 AS cor0
----
1227
2316
927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + 22 * - col0 * + col0 col2 FROM tab0
----
-10608
-166163
-23555

query I rowsort
SELECT ALL 83 + col2 * - 42 * col2 AS col0 FROM tab2
----
-28309
-30535
-60565

query I rowsort
SELECT DISTINCT col1 * col0 + col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL + ( + col0 ) * - ( - col0 * - col2 ) + - col2 FROM tab2
----
-1350
-158210
-237196

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab1 AS cor2, tab0 cor3
----
13122 values hashing to 2c06cd4fd63b0eab865e9be55c6bb228

onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT ALL col1 + - col1 * 59 DIV col0 AS col2 FROM tab2 AS cor0
----
-230
15
5

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL col1 + - col1 * 59 / col0 AS col2 FROM tab2 AS cor0
----
-230
15
5

query I rowsort
SELECT DISTINCT col0 * col0 + cor0.col0 * col1 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT DISTINCT col2 * - ( 77 ) + + col2 FROM tab0 cor0
----
-2508
-6232
-76

query I rowsort
SELECT DISTINCT + - cor0.col0 + ( col2 ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT tab2.col2 + - col2 * - col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT col0 * 89 + + col2 FROM tab1 AS cor0
----
321
5753
7216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT DISTINCT - + col2 + col2 DIV 71 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - + col2 + col2 / 71 FROM tab0 AS cor0
----
-1
-33
-81

query I rowsort
SELECT - 91 FROM tab0, tab1 cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT ALL - + 20 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-520
-540
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT ALL - CAST( + col2 AS SIGNED ) * tab0.col2 + ( - 44 ) FROM tab0
----
-1133
-45
-6768

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL - CAST ( + col2 AS INTEGER ) * tab0.col2 + ( - 44 ) FROM tab0
----
-1133
-45
-6768

query I rowsort
SELECT + + ( 75 ) + col0 * col2 AS col1 FROM tab2 AS cor0
----
2103
264
3077

query I rowsort
SELECT + ( 59 ) AS col1 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT - cor0.col2 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + cor0.col0 * + col1 + - ( col1 ) FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-2695
SELECT + cor1.col1 DIV + 80 AS col0 FROM tab1, tab0, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-2695
SELECT + cor1.col1 / + 80 AS col0 FROM tab1, tab0, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT + 24 + - col1 * - ( + col1 ) * col1 FROM tab1
----
1024
17600
2221

query I rowsort
SELECT - col1 * - col1 * col0 FROM tab1
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 * - col0 col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - ( - col1 ) + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ( col0 ) + col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT - + col1 * col0 * - 41 + 29 FROM tab2 AS cor0
----
188711
55092
8926

query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 - - ( col0 + col2 ) FROM tab1 AS cor0
----
-105
-3527
-7504

query I rowsort
SELECT + cor0.col1 + - col1 * + col1 * + col1 FROM tab1 cor0
----
-17550
-2184
-990

query I rowsort
SELECT cor0.col2 + 50 FROM tab1, tab1 AS cor0
----
9 values hashing to e81210d688baf329a7cda835a131ceae

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * 55 FROM tab2 AS cor0
----
-358
-4264
-4307

query I rowsort
SELECT + col0 * col2 + - 10 + - 16 FROM tab0 AS cor0
----
7272
766
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL col0 * + cor0.col2 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - + col1 * col1 + col0 + + col0 FROM tab0 AS cor0
----
-7348
-8103
-9339

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT + 24 * col0 + cor0.col1 DIV - col0 - + col1 * - 12 * 94 col2 FROM tab0 AS cor0
----
104783
110254
97581

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2711
SELECT + 24 * col0 + cor0.col1 / - col0 - + col1 * - 12 * 94 col2 FROM tab0 AS cor0
----
104783
110254
97581

query I rowsort
SELECT - + col2 * col1 * - 83 AS col2 FROM tab1 cor0
----
103584
116532
47310

query I rowsort
SELECT DISTINCT col0 * 52 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT col2 * - ( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
71

query I rowsort
SELECT cor0.col2 + 0 * col2 * col0 AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT + + col0 + - 56 DIV + 51 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2717
SELECT + + col0 + - 56 / + 51 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + col2 * + 8 AS col1 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT ( col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2720
SELECT ALL CAST( NULL AS SIGNED ) + + col1 * + col0 * + 91 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 * + col0 * + 91 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2721
SELECT 4 DIV 86 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT 4 / 86 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ( 84 ) FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - + 32 * 8 FROM tab1 AS cor0
----
-256

query I rowsort
SELECT ALL + col2 + 40 + - col2 * - ( col2 ) FROM tab2
----
1522
742
796

query I rowsort
SELECT DISTINCT - 14 * col0 AS col0 FROM tab0 cor0
----
-1246
-336
-490

query I rowsort
SELECT 64 * cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
1105
2015
3835

query I rowsort
SELECT - + 88 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
-7535
-7926
-8535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 98 + col0 col1 FROM tab0
----
146
168
276

onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT ALL 30 + + col0 DIV col1 FROM tab0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL 30 + + col0 / col1 FROM tab0
----
30
30
30

query I rowsort
SELECT - 95 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 6ddacf7cdc440b47c37bfd544945f3f8

query I rowsort
SELECT col0 * + 37 FROM tab1
----
111
2368
2960

query I rowsort
SELECT ALL + 24 + + col0 + + tab0.col1 AS col0 FROM tab0
----
134
156
204

query I rowsort
SELECT - 23 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT col1 * + 45 + - col1 AS col0 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col2 + 95 * - cor0.col0 FROM tab1 AS cor0
----
-339
-6137
-7696

query I rowsort
SELECT - col2 * col1 * col2 + - 24 FROM tab2 AS cor0
----
-22623
-24572
-39908

query I rowsort
SELECT - cor0.col2 * + 13 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to f91c785942f894feb101da608ec03840

query I rowsort
SELECT 86 + col0 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT + 40 + - 81 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2742
SELECT ALL + col0 DIV + tab1.col0 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL + col0 / + tab1.col0 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT 49 * col0 FROM tab0 AS cor0
----
1176
1715
4361

onlyif mysql # use DIV operator for integer division
query I rowsort label-2744
SELECT col1 + ( + col0 ) + col2 DIV + 11 AS col1 FROM tab1 AS cor0
----
101
33
79

skipif mysql # not compatible
query I rowsort label-2744
SELECT col1 + ( + col0 ) + col2 / + 11 AS col1 FROM tab1 AS cor0
----
101
33
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT - col0 - col1 DIV 70 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2745
SELECT - col0 - col1 / 70 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 + + ( - col1 * col1 ) AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT col1 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT cor0.col1 + - 26 FROM tab0 AS cor0
----
60
65
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2749
SELECT - col1 * - cor0.col2 + + col2 DIV + col0 AS col1 FROM tab1 cor0
----
1249
1422
570

skipif mysql # not compatible
query I rowsort label-2749
SELECT - col1 * - cor0.col2 + + col2 / + col0 AS col1 FROM tab1 cor0
----
1249
1422
570

query I rowsort
SELECT DISTINCT ( - tab0.col0 ) AS col0 FROM tab0, tab1, tab1 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - col1 * 78 - 97 AS col1 FROM tab1 AS cor0
----
-1111
-2125
-877

query I rowsort
SELECT col1 * + 19 + cor0.col2 FROM tab2 AS cor0
----
1147
361
616

query I rowsort
SELECT col0 * + col1 * 77 - - col2 FROM tab0 AS cor0
----
158961
261416
623705

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT - + col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT - + col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + 82 * col0 * col0 FROM tab1 AS cor0
----
335815
524704
684

query I rowsort
SELECT DISTINCT col0 * col2 + tab2.col2 - + col2 * col1 AS col0 FROM tab2
----
-621
2394
520

query I rowsort
SELECT col0 + 11 FROM tab0
----
100
35
46

query I rowsort
SELECT + tab1.col2 + + tab1.col1 AS col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2759
SELECT - - col2 DIV 46 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT - - col2 / 46 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT - CAST ( NULL AS REAL ) + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * ( + col0 * - col0 ) AS col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL 58 AS col1 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT - col2 - 11 FROM tab1 AS cor0
----
-107
-65
-68

query I rowsort
SELECT col1 - ( + col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - ( + 50 ) * col1 AS col0 FROM tab0 cor0
----
-4300
-4550
-4850

query I rowsort
SELECT col2 + + 24 * - col2 FROM tab2 AS cor0
----
-598
-621
-874

query I rowsort
SELECT ALL col2 * + 1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 58 + 94 AS col2 FROM tab0 AS cor0
----
152
152
152

query I rowsort
SELECT ALL - - cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 * col0 * col1 - - cor0.col0 * - col0 FROM tab1 AS cor0
----
225
36864
76800

query I rowsort
SELECT - col0 * - tab0.col2 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT 49 + - cor0.col2 FROM tab0 AS cor0
----
-33
16
48

query I rowsort
SELECT + + 60 + 15 + + col1 AS col1 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT col1 * + ( + col1 ) AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT - - 6 AS col2 FROM tab0 cor0
----
6
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2776
SELECT - col0 * col1 + - cor0.col2 * - cor0.col2 * - col2 + CAST( NULL AS SIGNED ) * - col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT - col0 * col1 + - cor0.col2 * - cor0.col2 * - col2 + CAST ( NULL AS INTEGER ) * - col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 * - ( + cor0.col0 ) AS col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + 98 * + col2 + - 58 AS col1 FROM tab2 AS cor0
----
2490
2588
3666

query I rowsort
SELECT - - 9 + col2 * col2 FROM tab1 AS cor0
----
2925
3258
9225

query I rowsort
SELECT ALL - 40 * cor0.col2 * col1 + + col0 FROM tab0 AS cor0
----
-113496
-298391
-3845

query I rowsort
SELECT DISTINCT + tab1.col1 * + col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT - col0 + col2 DIV col2 FROM tab0 cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2783
SELECT - col0 + col2 / col2 FROM tab0 cor0
----
-23
-34
-88

query I rowsort
SELECT ALL - - col2 * + 12 AS col1 FROM tab0 AS cor0
----
12
396
984

query I rowsort
SELECT DISTINCT ( + col1 ) + + col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab0.col2 col2 FROM tab0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col1 FROM tab2, tab0, tab1 AS cor0
----
52

query I rowsort
SELECT + col2 * + 42 + - cor0.col0 FROM tab2 AS cor0
----
1014
1127
1517

query I rowsort
SELECT - 5 + + 94 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT + 65 + col1 AS col0 FROM tab2 AS cor0
----
124
82
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT + col2 + + 31 DIV col0 AS col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-2791
SELECT + col2 + + 31 / col0 AS col0 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT - col0 + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - 19 AS col0 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - 14 * col2 * 38 AS col0 FROM tab1 AS cor0
----
-28728
-30324
-51072

query I rowsort
SELECT + ( col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - + col2 * col1 + + 92 FROM tab1 AS cor0
----
-1156
-1312
-478

query I rowsort
SELECT - + 87 * col1 * 36 FROM tab2 AS cor0
----
-184788
-53244
-97092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * - cor0.col2 col0 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT DISTINCT + - col1 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT + - col1 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + col2 * - col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 col0 FROM tab2
----
0

query I rowsort
SELECT col2 * 37 + col2 AS col2 FROM tab1
----
2052
2166
3648

query I rowsort
SELECT ALL + col1 * col2 + tab0.col1 * col2 AS col0 FROM tab0
----
14924
194
5676

query I rowsort
SELECT ALL - col2 * + col2 + + col1 + col2 FROM tab2 cor0
----
-1389
-591
-671

query I rowsort
SELECT DISTINCT - cor0.col0 + ( - col2 ) * + cor0.col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + col2 - - ( ( cor0.col2 ) + 91 ) FROM tab1 AS cor0
----
199
205
283

query I rowsort
SELECT DISTINCT - col1 * col0 - col2 * col2 FROM tab0 AS cor0
----
-14823
-3153
-3396

query I rowsort
SELECT DISTINCT + - cor0.col2 + + 12 AS col1 FROM tab2 AS cor0
----
-14
-15
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col1 + + col2 col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + col1 + col1 * + ( + col0 * + col2 ) FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT ALL cor0.col2 + 93 + + col2 AS col2 FROM tab0 AS cor0
----
159
257
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2813
SELECT DISTINCT cor0.col2 + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT cor0.col2 + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + col0 + - 51 * col1 FROM tab2 AS cor0
----
-1574
-2931
-788

query I rowsort
SELECT DISTINCT - col2 + + 79 AS col0 FROM tab0 AS cor0
----
-3
46
78

query I rowsort
SELECT ALL col0 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT DISTINCT - + cor0.col1 + - CAST( NULL AS SIGNED ) - + cor0.col1 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT - + cor0.col1 + - CAST ( NULL AS INTEGER ) - + cor0.col1 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + col1 + - 74 * cor0.col0 + col2 FROM tab0 AS cor0
----
1777
5653
6820

query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2820
SELECT tab0.col0 DIV + col2 + + 50 AS col1 FROM tab0
----
50
51
85

skipif mysql # not compatible
query I rowsort label-2820
SELECT tab0.col0 / + col2 + + 50 AS col1 FROM tab0
----
50
51
85

query I rowsort
SELECT DISTINCT - col0 * + col2 + - col2 AS col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT + 36 + 22 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT col0 * + 31 + col1 + tab1.col1 FROM tab1
----
145
2004
2506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2824
SELECT col0 + col0 DIV 33 FROM tab0
----
24
36
91

skipif mysql # not compatible
query I rowsort label-2824
SELECT col0 + col0 / 33 FROM tab0
----
24
36
91

query I rowsort
SELECT - col1 * col0 + ( + col1 ) - - 30 AS col0 FROM tab0 AS cor0
----
-1948
-3268
-7978

query I rowsort
SELECT + + col2 + 33 * - col2 AS col0 FROM tab0 cor0
----
-1056
-2624
-32

query I rowsort
SELECT 88 + - col1 AS col0 FROM tab0 AS cor0
----
-3
-9
2

query I rowsort
SELECT + col2 * + ( col2 ) + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - cor0.col0 - col2 * cor0.col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT - 43 + ( col0 ) AS col2 FROM tab0 AS cor0
----
-19
-8
46

query I rowsort
SELECT DISTINCT ( 37 ) * cor0.col2 + + 29 FROM tab1, tab0 AS cor0
----
1250
3063
66

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 + + col2 * - col1 * + col0 FROM tab2
----
-115109
-49708
-5673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2833
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2833
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col1 * col2 + col0 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL - col1 + - ( col0 ) FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL + 50 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 3 - 80 AS col1 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT 96 * 25 + col0 FROM tab2 AS cor0
----
2407
2478
2479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * + ( col0 * - col2 ) col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + col1 + - 71 * col2 AS col2 FROM tab0 AS cor0
----
-2257
-5731
26

skipif mysql # not compatible
query I rowsort
SELECT + ( cor0.col1 ) * col1 + CAST ( - 74 * col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-2291
-5557
443

query I rowsort
SELECT DISTINCT col0 + + 93 FROM tab1 AS cor0
----
157
173
96

query I rowsort
SELECT ALL + - col0 * - 57 + col0 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT ALL - 98 * col0 AS col0 FROM tab2
----
-686
-7644
-7742

query I rowsort
SELECT DISTINCT + + ( + col1 ) - ( - col2 ) AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - + 12 AS col0 FROM tab2 cor0
----
-12

query I rowsort
SELECT - + 49 + col0 AS col2 FROM tab2 AS cor0
----
-42
29
30

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + col2 * + ( col1 + col0 ) FROM tab2 cor0
----
1026
3562
3648

query I rowsort
SELECT DISTINCT + 18 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT ( col0 ) DIV + 28 - 6 FROM tab0 AS cor0
----
-3
-5
-6

skipif mysql # not compatible
query I rowsort label-2851
SELECT ( col0 ) / + 28 - 6 FROM tab0 AS cor0
----
-3
-5
-6

query I rowsort
SELECT + - 43 AS col2 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2853
SELECT - col0 * - col2 + CAST( 77 AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
-1840
2878
6679

skipif mysql # not compatible
query I rowsort label-2853
SELECT - col0 * - col2 + CAST ( 77 AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
-1840
2878
6679

query I rowsort
SELECT - 54 * col1 FROM tab0 AS cor0
----
-4644
-4914
-5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT DISTINCT cor0.col1 * col0 DIV - 41 col1 FROM tab2 AS cor0
----
-112
-32
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT cor0.col1 * col0 / - 41 col1 FROM tab2 AS cor0
----
-112
-32
-5

query I rowsort
SELECT - cor0.col1 + + 20 - 71 FROM tab1 AS cor0
----
-61
-64
-77

query I rowsort
SELECT DISTINCT - col1 + ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col2 + col1 * 46 + - col1 AS col1 FROM tab0 cor0
----
3837
4013
4364

query I rowsort
SELECT ALL + + col0 + 13 AS col0 FROM tab0 AS cor0
----
102
37
48

query I rowsort
SELECT ALL + col2 * 91 AS col2 FROM tab1 AS cor0
----
4914
5187
8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT ALL 11 DIV col0 FROM tab1
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL 11 / col0 FROM tab1
----
0
0
3

query I rowsort
SELECT - tab2.col1 * + ( tab2.col0 ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2864
SELECT - CAST( + 47 AS SIGNED ) + - col1 col0 FROM tab1 AS cor0
----
-57
-60
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2864
SELECT - CAST ( + 47 AS INTEGER ) + - col1 col0 FROM tab1 AS cor0
----
-57
-60
-73

query I rowsort
SELECT ( 81 ) AS col1 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) AS col0 FROM tab2, tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - 66 - + col1 col2 FROM tab0
----
-5762
-6097
-6499

query I rowsort
SELECT DISTINCT - 79 * tab1.col1 FROM tab1, tab2 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT DISTINCT - - 22 * - col0 FROM tab1 AS cor0
----
-1408
-1760
-66

query I rowsort
SELECT DISTINCT 7 FROM tab0, tab2, tab2 AS cor0
----
7

query I rowsort
SELECT - ( col2 ) + + ( 16 ) FROM tab0
----
-17
-66
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * + col1 + col2 * - 16 col1 FROM tab2
----
-1419
-897
-959

query I rowsort
SELECT DISTINCT - - col2 - + cor0.col2 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col1 + 30 + tab1.col0 FROM tab1
----
104
123
59

query I rowsort
SELECT - 10 + - 88 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT col0 * + 50 AS col2 FROM tab0
----
1200
1750
4450

query I rowsort
SELECT - cor0.col0 * col0 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
-316
-474526
-493001

skipif mysql # not compatible
query I rowsort
SELECT - + col2 + CAST ( col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col1 * - col0 + 29 FROM tab2 AS cor0
----
-1314
-188
-4573

query I rowsort
SELECT ALL - 85 * cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b0761c37661581f26c54f20998fe170f

query I rowsort
SELECT + col1 * ( + col0 ) + - col0 * col2 * col2 FROM tab1 AS cor0
----
-207296
-736240
-8670

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + - 97 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL ( - 11 ) FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + col1 * col2 + cor0.col2 * col1 * 60 FROM tab2 AS cor0
----
39406
51057
93574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 99 * - col1 + + cor0.col1 * col1 col0 FROM tab1 AS cor0
----
1090
1456
3250

query I rowsort
SELECT DISTINCT ( cor0.col1 ) - + col1 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT ALL + col1 DIV 85 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + col1 / 85 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT tab1.col2 * CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT tab1.col2 * CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 * 22 AS col0 FROM tab2 AS cor0
----
1298
374
682

query I rowsort
SELECT DISTINCT - - 20 * - col2 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT ALL - cor0.col1 * col1 + + col0 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2894
SELECT DISTINCT CAST( 31 AS SIGNED ) * col0 - 63 * - 80 FROM tab2 cor0
----
5257
7458
7489

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT CAST ( 31 AS INTEGER ) * col0 - 63 * - 80 FROM tab2 cor0
----
5257
7458
7489

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + cor0.col1 * cor0.col0 col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT + col2 * + col0 * tab1.col2 AS col0 FROM tab1
----
207936
737280
8748

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * col0 )
----

query I rowsort
SELECT ALL + tab0.col0 + - col2 + col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - tab0.col0 * col2 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + tab0.col2 * col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT col2 + + col0 + - col1 * + col0 FROM tab1
----
-21
-519
-864

query I rowsort
SELECT - col2 * col2 * col0 AS col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + tab0.col0 + col2 + col2 AS col1 FROM tab0
----
253
37
90

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1 + col2 / col2 )
----

query I rowsort
SELECT + col2 * - col2 + - col2 * - col1 FROM tab1 cor0
----
-1512
-2679
-7968

query I rowsort
SELECT + col0 * - col1 * + col2 + + col2 * col1 AS col2 FROM tab1
----
-2808
-35910
-98592

onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT ALL - col1 DIV - col0 + col0 AS col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - col1 / - col0 + col0 AS col0 FROM tab0
----
27
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - - col1 col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col0 - - col2 * + col2 )
----

query I rowsort
SELECT col1 * - col0 * + col2 + tab2.col2 AS col2 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT col0 * col1 + + tab2.col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT DISTINCT + tab2.col2 DIV + col1 AS col0 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT + tab2.col2 / + col1 AS col0 FROM tab2
----
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT ALL + col2 DIV - tab2.col0 col0 FROM tab2
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + col2 / - tab2.col0 col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL col0 + - col1 * col0 + col0 FROM tab1
----
-512
-72
-880

query I rowsort
SELECT DISTINCT - col0 * col0 + - col0 + + col2 FROM tab2
----
-29
-6136
-6282

query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1 WHERE ( col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - tab1.col2 * tab1.col0 + - col2 + col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col0 / - col1 FROM tab0 WHERE NOT NULL IN ( + tab0.col0 )
----

query I rowsort
SELECT DISTINCT - col1 + - col1 * + col1 * col2 FROM tab0 AS cor0
----
-244154
-679133
-9506

query I rowsort
SELECT DISTINCT - - cor0.col1 * - cor0.col1 + - col2 AS col2 FROM tab1 cor0
----
-157
-265
-730

onlyif mysql # use DIV operator for integer division
query I rowsort label-2923
SELECT - - col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2923
SELECT - - col2 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + + col0 + - col0 * + col1 AS col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE - col1 * col0 / cor0.col0 <> - col0 OR NULL >= ( + col0 * col1 + col2 )
----
26
27
38

query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( cor0.col2 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT col2 + col2 / col0 FROM tab2 AS cor0 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT col0 * - col0 * - col0 AS col1 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT ALL - col2 + - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - col0 + - col1 * ( 2 ) FROM tab1
----
-106
-55
-84

query I rowsort
SELECT col0 + + col1 * - col0 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT + col1 + ( 70 ) + col2 FROM tab0
----
168
189
243

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2934
SELECT - 47 + - col2 + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT - 47 + - col2 + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 98 + + tab0.col0 + + col1 FROM tab0
----
-2242
-3298
-8542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 0705df526be8eeded96d0c20ae938712

query I rowsort
SELECT DISTINCT - col1 * col2 * + col1 AS col2 FROM tab2 cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT DISTINCT - - cor0.col2 * col2 + + cor0.col0 + - col2 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
1521
736
754

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - - cor0.col2 * col2 + + cor0.col0 + - col2 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
1521
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT ALL + + col0 * col0 DIV + col0 + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + + col0 * col0 / + col0 + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT 57 + - 51 + + cor1.col1 FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
23
37
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT col1 DIV - tab0.col2 + - col2 - col2 * col2 AS col2 FROM tab0
----
-1124
-6807
-99

skipif mysql # not compatible
query I rowsort label-2942
SELECT col1 / - tab0.col2 + - col2 - col2 * col2 AS col2 FROM tab0
----
-1124
-6807
-99

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND col2
----

query I rowsort
SELECT tab0.col2 - - tab0.col0 FROM tab0
----
171
36
57

query I rowsort
SELECT - 54 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT col2 NOT BETWEEN col0 AND ( col2 )
----
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( tab1.col0 )
----

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1 WHERE - col1 NOT BETWEEN ( col0 / + col0 + - col0 * + col2 / - col2 ) AND ( - col0 + col0 / col1 )
----
54
57
96

query I rowsort
SELECT + col2 * col0 + col0 + col0 * col1 * + col2 FROM tab1
----
107600
40192
4377

query III rowsort
SELECT * FROM tab0 WHERE col2 + col2 < NULL
----

query I rowsort
SELECT - col1 + col1 * col2 FROM tab0
----
0
2752
7371

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 + col0 )
----

query I rowsort
SELECT + tab2.col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT - 94 * - col2 + 31 AS col1 FROM tab0
----
125
3133
7739

query I rowsort
SELECT + 70 * - col0 FROM tab2 AS cor0
----
-490
-5460
-5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-2956
SELECT DISTINCT + col2 * col0 + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT + col2 * col0 + cor0.col1 / + col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2957
SELECT ALL - - 47 * + col0 + + col2 * col2 DIV + col1 + col1 FROM tab2 cor0
----
3736
3814
383

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL - - 47 * + col0 + + col2 * col2 / + col1 + col1 FROM tab2 cor0
----
3736
3814
383

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT ALL + - 69 DIV - col0 AS col2 FROM tab2 cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + - 69 / - col0 AS col2 FROM tab2 cor0
----
0
0
9

query I rowsort
SELECT ALL + - ( + col0 ) * 50 + col1 FROM tab2 AS cor0
----
-319
-3841
-3933

query I rowsort
SELECT DISTINCT - col1 + col2 + ( + 65 * col2 + + cor0.col2 ) FROM tab1 AS cor0
----
3592
3809
6419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( col1 ) * - col1 col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - + col2 * - ( + col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + col2 * 37 FROM tab1 AS cor0
----
1998
2109
3552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2964
SELECT - CAST( NULL AS DECIMAL ) + 24 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT - CAST ( NULL AS REAL ) + 24 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2965
SELECT - CAST( - 45 AS SIGNED ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1170
1215
1710

skipif mysql # not compatible
query I rowsort label-2965
SELECT - CAST ( - 45 AS INTEGER ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT 26 * cor0.col2 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to ca879b43ffbc7af715778159c414d0b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT ALL + - ( - col1 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + - ( - col1 ) / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - 59 col1 FROM tab2 AS cor0
----
-21
-32
-33

query I rowsort
SELECT col2 * col0 + + col2 * col0 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT - 77 + col0 AS col1 FROM tab0 AS cor0
----
-42
-53
12

query I rowsort
SELECT + col1 * + col2 * ( - col1 * - col0 ) + cor0.col1 * col0 FROM tab2 AS cor0
----
181846
7064070
868921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT - col2 DIV + cor0.col0 + - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-2972
SELECT - col2 / + cor0.col0 + - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT - col0 + + col0 + tab0.col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + 86 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2975
SELECT - 22 + - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT - 22 + - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
60

query I rowsort
SELECT - col2 * - col0 + col0 * col2 * col2 AS col1 FROM tab1 AS cor0
----
211584
744960
8910

onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT cor0.col0 DIV 68 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2978
SELECT cor0.col0 / 68 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + cor0.col2 * 31 AS col0 FROM tab1 AS cor0
----
1674
1767
2976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT col1 * CAST( 34 AS SIGNED ) FROM tab0 AS cor0
----
2924
3094
3298

skipif mysql # not compatible
query I rowsort label-2980
SELECT col1 * CAST ( 34 AS INTEGER ) FROM tab0 AS cor0
----
2924
3094
3298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2981
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL + ( + col2 ) * - 35 FROM tab0
----
-1155
-2870
-35

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col0 FROM tab0, tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 49 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT DISTINCT col0 + + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT ALL + col2 + - cor0.col2 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col1 * col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT col0 * col1 + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col0 + - col0 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col1 - tab2.col1 AS col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT col2 * + col0 * tab0.col2 + col1 AS col1 FROM tab0
----
132
26222
598527

query I rowsort
SELECT DISTINCT - col2 * col2 + - tab1.col2 * col2 FROM tab1
----
-18432
-5832
-6498

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT col1 + - col1 DIV col1 AS col0 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2994
SELECT col1 + - col1 / col1 AS col0 FROM tab0
----
85
90
96

query I rowsort
SELECT DISTINCT - col0 * col2 * col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT + ( + col0 ) DIV + col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2996
SELECT + ( + col0 ) / + col0 AS col1 FROM tab2
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2997
SELECT CAST( + 17 AS SIGNED ) FROM tab1
----
17
17
17

skipif mysql # not compatible
query I rowsort label-2997
SELECT CAST ( + 17 AS INTEGER ) FROM tab1
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2998
SELECT col2 DIV - 81 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT col2 / - 81 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 83 * + cor0.col0 * - cor0.col1 - col1 * col1 FROM tab1 AS cor0
----
-53220
-7150
-86489

query I rowsort
SELECT ALL - 33 + - col0 FROM tab2 AS cor0
----
-111
-112
-40

query I rowsort
SELECT + - 84 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-20
-4
-81

query I rowsort
SELECT DISTINCT + - col0 - - col0 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - col2 * 67 FROM tab2
----
-1742
-1809
-2546

query I rowsort
SELECT tab1.col1 + - 28 * col1 - - col0 FROM tab1
----
-206
-271
-699

onlyif mysql # use DIV operator for integer division
query I rowsort label-3005
SELECT - col2 DIV col0 + + col2 AS col1 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-3005
SELECT - col2 / col0 + + col2 AS col1 FROM tab2
----
24
26
38

query I rowsort
SELECT + 32 * + col2 * + col0 FROM tab1
----
116736
245760
5184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3007
SELECT DISTINCT + CAST( + col0 AS SIGNED ) - + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) - + col0 FROM tab0
----
0

query I rowsort
SELECT ALL col1 - + col1 * + col1 AS col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - ( col1 ) - col1 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT 25 * 91 * col2 + col1 - col0 AS col1 FROM tab2
----
59131
61449
86388

query I rowsort
SELECT + col1 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT 95 * cor0.col2 FROM tab2 AS cor0
----
2470
2565
3610

query I rowsort
SELECT + tab0.col1 - + col0 * col2 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col2 * - col0 + + col0 * - tab1.col2 FROM tab1
----
-15360
-324
-7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT ALL 95 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL 95 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col2 + + col0 * - col1 + - col1 * col1 FROM tab2 AS cor0
----
-1151
-1594
-8057

query I rowsort
SELECT 6 + col1 * + cor0.col2 * + col0 FROM tab1 cor0
----
36486
4218
99846

query I rowsort
SELECT ALL 63 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT + 64 * col2 * col0 FROM tab1 cor0
----
10368
233472
491520

query I rowsort
SELECT - cor0.col1 * - col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT ALL - col2 DIV - 62 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - col2 / - 62 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT 11 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT ALL + 36 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT ALL - - 84 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL + 22 + tab1.col1 + col0 FROM tab1
----
115
51
96

query I rowsort
SELECT - col2 * - 62 AS col2 FROM tab0
----
2046
5084
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col2 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL col0 * ( + col2 ) + col2 AS col0 FROM tab2
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3029
SELECT col1 * - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3029
SELECT col1 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 + + ( ( col2 ) ) * 8 AS col1 FROM tab2 AS cor0
----
130
209
225

query I rowsort
SELECT + col0 * + 7 AS col0 FROM tab2 cor0
----
49
546
553

query I rowsort
SELECT ALL + col2 + ( col2 ) * - ( ( col1 ) ) FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT DISTINCT + col0 DIV col0 + + col0 * + 71 AS col2 FROM tab1 AS cor0
----
214
4545
5681

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + col0 / col0 + + col0 * + 71 AS col2 FROM tab1 AS cor0
----
214
4545
5681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 * cor0.col0 - - col2 col2 FROM tab0 cor0
----
-1767
-2624
-6593

query I rowsort
SELECT ALL + - col0 + - col2 * + col1 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3036
SELECT DISTINCT - 39 + + col0 DIV + col0 col2 FROM tab1 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT - 39 + + col0 / + col0 col2 FROM tab1 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col1 FROM tab2
----
66

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

query I rowsort
SELECT DISTINCT - col2 + - ( cor0.col2 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + 10 * col0 AS col0 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT 49 * - 14 + - col1 FROM tab0 AS cor0
----
-772
-777
-783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3042
SELECT CAST( 9 AS SIGNED ) + col1 col2 FROM tab2 AS cor0
----
26
40
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3042
SELECT CAST ( 9 AS INTEGER ) + col1 col2 FROM tab2 AS cor0
----
26
40
68

query I rowsort
SELECT ALL col0 * 81 AS col2 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT ALL + col0 - col0 * + col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + - col1 + + 98 * col2 + - ( - col2 * + col2 ) FROM tab2 AS cor0
----
3165
3344
5151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 40 col0 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT + + 80 FROM tab0 cor0
----
80

query I rowsort
SELECT 44 * - col0 AS col1 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT - col2 * + col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1140
-2496
-2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 + + col1 col0 FROM tab0 AS cor0
----
-11
-6
0

query I rowsort
SELECT DISTINCT + col0 * - 53 AS col2 FROM tab1
----
-159
-3392
-4240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3052
SELECT + CAST( + 18 * col2 + col2 AS SIGNED ) AS col1 FROM tab0
----
1558
19
627

skipif mysql # not compatible
query I rowsort label-3052
SELECT + CAST ( + 18 * col2 + col2 AS INTEGER ) AS col1 FROM tab0
----
1558
19
627

query I rowsort
SELECT DISTINCT 90 * col0 AS col1 FROM tab2
----
630
7020
7110

query I rowsort
SELECT - 87 * 84 * + col0 + + col2 * 4 FROM tab2 AS cor0
----
-51048
-569920
-577180

query I rowsort
SELECT + ( - cor0.col2 ) + - col1 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + - 80 * - col2 FROM tab0 AS cor0
----
2640
6560
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3058
SELECT DISTINCT + + col0 * CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + + col0 * CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - col2 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT + col1 DIV ( 56 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3060
SELECT + col1 / ( 56 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + cor0.col1 * 29 FROM tab2 AS cor0
----
1711
493
899

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0 WHERE ( NULL ) >= ( cor0.col0 )
----

query I rowsort
SELECT DISTINCT ( + tab0.col0 ) * col1 + + ( tab0.col1 * - ( - tab0.col2 ) ) FROM tab0
----
15561
3492
4902

query I rowsort
SELECT 36 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3065
SELECT + + col0 + col1 * - ( - col0 ) DIV + col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-3065
SELECT + + col0 + col1 * - ( - col0 ) / + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col1 * col0 - - 71 * - cor0.col1 FROM tab1 AS cor0
----
-1768
-70
117

query I rowsort
SELECT col1 * - col1 + 99 * col0 - + ( col0 ) FROM tab0 AS cor0
----
-5044
-5979
441

query I rowsort
SELECT ( cor0.col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 23 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - 29 * col0 AS col1 FROM tab1 AS cor0
----
-1856
-2320
-87

query I rowsort
SELECT col2 * - col0 + 0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - tab0.col1 * + col1 * - col2 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT - 69 * tab0.col1 AS col1 FROM tab0
----
-5934
-6279
-6693

query I rowsort
SELECT ALL - col0 + 20 AS col0 FROM tab0 AS cor0
----
-15
-4
-69

query I rowsort
SELECT ALL col1 + ( + cor0.col2 * - col1 ) AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - - cor0.col0 + 0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col0 * - col1 + + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - - col1 * ( + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col2 * + col2 * + ( col0 ) + - col1 FROM tab0
----
-62
26050
598345

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3080
SELECT + CAST( 50 AS SIGNED ) FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

skipif mysql # not compatible
query I rowsort label-3080
SELECT + CAST ( 50 AS INTEGER ) FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT 58 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - col0 * + col2 + + 44 AS col1 FROM tab0 AS cor0
----
-7254
-748
9

query I rowsort
SELECT ALL + - cor0.col0 + + 87 AS col1 FROM tab1 cor0
----
23
7
84

query I rowsort
SELECT + col2 + - ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL ( + 56 * + col1 ) AS col2 FROM tab1
----
1456
560
728

query I rowsort
SELECT + 88 + col1 FROM tab2 AS cor0
----
105
119
147

query I rowsort
SELECT - 38 + + 34 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - 61 * cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
-1927
-4911
36

query I rowsort
SELECT - + col2 + col0 * 32 AS col2 FROM tab2 AS cor0
----
197
2470
2490

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT ALL - col0 * col1 DIV - col2 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2002
-8001
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - col0 * col1 / - col2 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2002
-8001
0

query I rowsort
SELECT - + ( col0 ) * + ( col1 ) + col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL 32 + col1 FROM tab2
----
49
63
91

query I rowsort
SELECT col0 + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT col2 DIV cor0.col1 + col2 + + col0 FROM tab2 AS cor0
----
104
119
34

skipif mysql # not compatible
query I rowsort label-3095
SELECT col2 / cor0.col1 + col2 + + col0 FROM tab2 AS cor0
----
104
119
34

query I rowsort
SELECT ALL - + col2 * - col1 + cor0.col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT - - col1 + col1 - 61 AS col1 FROM tab0 AS cor0
----
111
121
133

query I rowsort
SELECT + col2 + - col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - col1 + + col0 + col2 * col0 * - col1 FROM tab0 AS cor0
----
-3457
-664120
-68174

query I rowsort
SELECT DISTINCT - 67 * col0 * 93 FROM tab2 AS cor0
----
-43617
-486018
-492249

query I rowsort
SELECT + + col0 + cor0.col2 + 77 AS col0 FROM tab0 AS cor0
----
113
134
248

query I rowsort
SELECT DISTINCT - 0 * col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * col1 + - col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT 52 + cor0.col0 + - 81 * - ( - col0 ) FROM tab2 cor0
----
-508
-6188
-6268

query I rowsort
SELECT ALL col0 * + col0 * + 24 AS col2 FROM tab0 AS cor0
----
13824
190104
29400

query I rowsort
SELECT col0 * 0 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * ( + col2 ) + col1 * col2 AS col1 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT DISTINCT + col0 * - 30 FROM tab2 AS cor0
----
-210
-2340
-2370

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3109
SELECT ALL - + col1 * + CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - + col1 * + CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 * - 91 AS col1 FROM tab0 AS cor0
----
-3003
-7462
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT DISTINCT - cor0.col2 DIV + 36 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - cor0.col2 / + 36 FROM tab2 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col2 col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3113
SELECT CAST( NULL AS SIGNED ) / + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT CAST ( NULL AS INTEGER ) / + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col0 * + 13 AS col1 FROM tab1 AS cor0
----
1040
39
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3115
SELECT ALL - 34 + 74 DIV + col0 FROM tab1 AS cor0
----
-10
-33
-34

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - 34 + 74 / + col0 FROM tab1 AS cor0
----
-10
-33
-34

query I rowsort
SELECT DISTINCT - col2 + + 77 FROM tab1 AS cor0
----
-19
20
23

query I rowsort
SELECT DISTINCT + ( + 85 ) FROM tab2 cor0
----
85

query I rowsort
SELECT ALL - + 80 + cor0.col2 FROM tab0 AS cor0
----
-47
-79
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3119
SELECT DISTINCT 16 DIV col0 FROM tab1
----
0
5

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT 16 / col0 FROM tab1
----
0
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3120
SELECT ALL - CAST( + col2 AS SIGNED ) FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - CAST ( + col2 AS INTEGER ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - tab1.col2 * tab1.col1 * tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b58ff83c1282a4bf4d9c96835efb70d4

query I rowsort
SELECT - col0 * + col1 - col2 AS col0 FROM tab1
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 58 * col2 col0 FROM tab0 AS cor0
----
1947
4838
59

query I rowsort
SELECT ALL - col0 * - cor0.col0 + - 56 AS col0 FROM tab1 AS cor0
----
-47
4040
6344

query I rowsort
SELECT ALL - col1 + + ( + cor0.col2 ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT - + col2 * 8 DIV col2 AS col1 FROM tab0 cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-3126
SELECT - + col2 * 8 / col2 AS col1 FROM tab0 cor0
----
-8
-8
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT DISTINCT + cor0.col0 + + CAST( col1 + col2 * col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
1671
742
875

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + cor0.col0 + + CAST ( col1 + col2 * col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT ALL - - cor0.col2 * + 77 + + 16 + - cor0.col1 FROM tab0 AS cor0
----
-4
2471
6239

onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT col1 DIV 28 + - ( col2 * - col2 ) FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-3129
SELECT col1 / 28 + - ( col2 * - col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL 6 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT - col0 + col2 * 90 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-2340
1998
2206

query I rowsort
SELECT DISTINCT 86 FROM tab2, tab1 AS cor0
----
86

query I rowsort
SELECT + + cor0.col0 * + col0 * - ( cor0.col2 * col0 ) + ( 25 ) * + col1 FROM tab1 AS cor0
----
-14941958
-49151675
-808

query I rowsort
SELECT col1 * + col0 - col1 AS col0 FROM tab2
----
1326
186
4543

query I rowsort
SELECT DISTINCT col0 * col2 + cor0.col0 * + col0 * + cor0.col2 FROM tab2 AS cor0
----
1512
160212
240160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + cor0.col2 * + 20 col2 FROM tab1 AS cor0
----
1054
1130
1907

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT DISTINCT + - col1 + col0 DIV CAST( col1 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT + - col1 + col0 / CAST ( col1 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3138
SELECT DISTINCT + 81 DIV - cor0.col1 - - 63 AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT + 81 / - cor0.col1 - - 63 AS col1 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ( - col0 ) + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( tab2.col1 ) * col0 + + col0 * + col1 AS col0 FROM tab2
----
2686
434
9204

query I rowsort
SELECT ALL tab2.col0 * 60 + col2 AS col0 FROM tab2
----
447
4706
4778

query I rowsort
SELECT ALL ( + col0 ) + - col1 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT 65 + + 25 FROM tab1
----
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3144
SELECT ALL CAST( - col2 AS SIGNED ) * + tab0.col0 + - col0 * + col0 AS col1 FROM tab0
----
-1260
-1368
-15219

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL CAST ( - col2 AS INTEGER ) * + tab0.col0 + - col0 * + col0 AS col1 FROM tab0
----
-1260
-1368
-15219

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) + - col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3146
SELECT ALL col0 DIV col1 + + col2 + - col1 AS col0 FROM tab2 cor0
----
-32
-4
25

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL col0 / col1 + + col2 + - col1 AS col0 FROM tab2 cor0
----
-32
-4
25

query I rowsort
SELECT + 42 * - col0 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT ALL - 69 + + col0 FROM tab1 AS cor0
----
-5
-66
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3149
SELECT ALL - + col0 + - col1 * + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
1264
210
4524

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL - + col0 + - col1 * + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - - cor0.col0 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - - 28 AS col0 FROM tab1, tab2, tab1 AS cor0
----
28

query I rowsort
SELECT DISTINCT 65 + col2 FROM tab0
----
147
66
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT 39 DIV - col0 FROM tab2
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT 39 / - col0 FROM tab2
----
-5
0
0

query I rowsort
SELECT + 66 * + col0 * col2 AS col2 FROM tab0
----
2310
481668
52272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3155
SELECT DISTINCT col2 * - col2 + CAST( - 86 * col2 + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT col2 * - col2 + CAST ( - 86 * col2 + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * ( + col0 ) * - col2 col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT tab2.col0 * - col0 * col0 AS col1 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT - ( col1 ) * - col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - - col1 * col2 + + 33 * - col0 AS col1 FROM tab0 AS cor0
----
-1058
2046
4525

query I rowsort
SELECT DISTINCT - - col1 * + col1 + + ( col2 ) - col0 FROM tab0 cor0
----
7405
8274
9375

onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT + col0 DIV 40 + col0 AS col1 FROM tab0 AS cor0
----
24
35
91

skipif mysql # not compatible
query I rowsort label-3161
SELECT + col0 / 40 + col0 AS col1 FROM tab0 AS cor0
----
24
35
91

query I rowsort
SELECT + col2 + + ( cor0.col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 + + 90 AS col0 FROM tab2 AS cor0
----
11
12
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3164
SELECT - col2 + - CAST( - 91 + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-13
-26
57

skipif mysql # not compatible
query I rowsort label-3164
SELECT - col2 + - CAST ( - 91 + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-13
-26
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT DISTINCT 80 DIV + ( - col1 ) AS col1 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT 80 / + ( - col1 ) AS col1 FROM tab1
----
-3
-6
-8

query I rowsort
SELECT ( + tab2.col2 + + col1 ) AS col0 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT ALL cor0.col0 * ( + col1 + col2 ) DIV 82 FROM tab1 AS cor0
----
106
2
52

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL cor0.col0 * ( + col1 + col2 ) / 82 FROM tab1 AS cor0
----
106
2
52

query I rowsort
SELECT + 16 * 30 FROM tab0 AS cor0
----
480
480
480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3169
SELECT ALL - + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * col0 col1 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT + ( col0 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - 87 + + ( col2 ) FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - + col2 + 54 FROM tab1 AS cor0
----
-3
-42
0

query I rowsort
SELECT ALL - - col0 + - cor0.col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * 94 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT col0 + - cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3178
SELECT 54 * - col1 + CAST( + col1 AS SIGNED ) * col0 + + cor0.col2 * - col1 FROM tab2 AS cor0
----
-118
-221
-2294

skipif mysql # not compatible
query I rowsort label-3178
SELECT 54 * - col1 + CAST ( + col1 AS INTEGER ) * col0 + + cor0.col2 * - col1 FROM tab2 AS cor0
----
-118
-221
-2294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * col1 col0 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT ALL col1 * col1 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
14792
16562
18818

query I rowsort
SELECT + 19 * + col2 + - col2 AS col2 FROM tab2 cor0
----
468
486
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3182
SELECT col0 + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT col0 + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + - 27 FROM tab1 AS cor0
----
-37
-40
-53

query I rowsort
SELECT ALL - col0 + - ( - cor0.col2 ) * col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL + + ( cor0.col0 ) + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col2 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + 25 + + 11 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT + ( - col2 ) + - col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT col1 * col0 DIV ( + col0 ) col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3189
SELECT col1 * col0 / ( + col0 ) col1 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3190
SELECT tab1.col1 DIV + 63 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3190
SELECT tab1.col1 / + 63 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3191
SELECT ALL cor0.col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL cor0.col0 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 61 + + ( - col2 ) FROM tab1 AS cor0
----
-35
4
7

query I rowsort
SELECT - col1 + + col1 * + 8 AS col0 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT + - 76 + + 87 * col1 * + 14 FROM tab2 AS cor0
----
20630
37682
71786

query I rowsort
SELECT DISTINCT - ( 37 ) + col1 * - col1 FROM tab0
----
-7433
-8318
-9446

query I rowsort
SELECT 78 AS col1 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT DISTINCT col0 - + col2 * - col2 * col1 FROM tab2
----
22606
24627
39962

query I rowsort
SELECT + 84 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 * 24 col1 FROM tab2 AS cor0
----
23064
6936
83544

onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT DISTINCT - - col0 * col1 + 12 DIV - col1 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT - - col0 * col1 + 12 / - col1 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + 23 + cor0.col0 * col2 * col2 col2 FROM tab2 AS cor0
----
113685
4390
51371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT - + ( col0 ) * + col1 * + CAST( NULL AS SIGNED ) + + col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT - + ( col0 ) * + col1 * + CAST ( NULL AS INTEGER ) + + col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + 64 * 43 + - col0 + + CAST ( ( - col2 ) * - CAST ( 65 AS INTEGER ) AS REAL ) FROM tab2 AS cor0
----
4364
4500
5143

query I rowsort
SELECT DISTINCT col1 + 17 FROM tab0 cor0
----
103
108
114

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 9 col2 FROM tab1
----
-45
-48
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3208
SELECT ALL + CAST( NULL AS SIGNED ) * 21 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL + CAST ( NULL AS INTEGER ) * 21 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT ALL col1 DIV + col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL col1 / + col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT DISTINCT - - col2 * + 91 * - col2 AS col1 FROM tab2 AS cor0
----
-131404
-61516
-66339

query I rowsort
SELECT ALL + 39 + - col2 AS col0 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT ( + col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT ALL 74 + + col2 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL 74 + + col2 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3214
SELECT ALL - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3215
SELECT col1 + - col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT col1 + - col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col0 + - col0 AS col0 FROM tab1
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col2 FROM tab0
----
89

query I rowsort
SELECT DISTINCT + - 51 AS col0 FROM tab1 cor0
----
-51

query I rowsort
SELECT - col0 * col2 * + cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col2 * - 54 AS col1 FROM tab2 AS cor0
----
-1404
-1458
-2052

query I rowsort
SELECT ALL - cor0.col2 * + col1 + - 58 FROM tab2 AS cor0
----
-1592
-704
-895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - col2 * + 89 FROM tab1 cor0
----
4806
5073
8544

query I rowsort
SELECT - col1 * + ( 98 ) AS col0 FROM tab2 AS cor0
----
-1666
-3038
-5782

query I rowsort
SELECT ALL - - col2 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT tab1.col2 * + tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
1248
1404
570

query I rowsort
SELECT 15 + tab1.col2 FROM tab1
----
111
69
72

query I rowsort
SELECT + col1 * col1 FROM tab2 WHERE NULL > - col1 + col0 + - col1
----

query I rowsort
SELECT + col1 * col0 FROM tab2 WHERE NULL NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NULL > col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT col0 + col0 DIV - col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3231
SELECT col0 + col0 / - col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT ALL + col0 DIV - col1 - col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + col0 / - col1 - col0 FROM tab2 AS cor0
----
-7
-79
-83

query I rowsort
SELECT - col1 * - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - col1 * - col2 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + + col0 * + col2 + - col1 * col0 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT - col1 + + col2 AS col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - col2 * + cor0.col0 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + tab1.col0 * - col1 + col0 * tab1.col1 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 + - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - col0 - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2, tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3242
SELECT DISTINCT col0 DIV + col2 + - col0 * col1 AS col1 FROM tab1
----
-1040
-639
-78

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT col0 / + col2 + - col0 * col1 AS col1 FROM tab1
----
-1040
-639
-78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) > + col0
----
7
31
27

query I rowsort
SELECT + + col0 + - col2 + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2865
3256
9200

query I rowsort
SELECT ALL - tab1.col1 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL - tab0.col0 + - col0 AS col2 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT - + col1 + col0 * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT - col0 + + col0 * + col0 AS col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT ALL - col1 * + col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col0 + col0 + - cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
-27
-2790
-7284

onlyif mysql # use DIV operator for integer division
query I rowsort label-3252
SELECT DISTINCT col1 + tab2.col0 DIV + col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT col1 + tab2.col0 / + col1 FROM tab2
----
21
31
60

query I rowsort
SELECT DISTINCT col2 * - col2 + + col2 + + col2 AS col0 FROM tab2
----
-1368
-624
-675

query I rowsort
SELECT col0 - + col1 * col2 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL tab0.col2 * + col2 + col0 * + col2 AS col1 FROM tab0
----
14022
1881
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT DISTINCT col1 + - col0 DIV + col0 AS col1 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT col1 + - col0 / + col0 AS col1 FROM tab0
----
85
90
96

query I rowsort
SELECT ALL + col1 + col1 * col2 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL - col0 * tab2.col2 + + col2 + - tab2.col0 AS col1 FROM tab2
----
-169
-2080
-3043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 98 * - col2 col2 FROM tab1 AS cor0
----
5292
5586
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3260
SELECT col1 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT col1 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - cor0.col0 * + cor0.col2 + - 13 FROM tab1 cor0
----
-175
-3661
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 - col1 col2 FROM tab1 AS cor0
----
51
64
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 * col1 * + 14 FROM tab1
----
1092
14560
8960

query I rowsort
SELECT ALL - col2 + - col1 * col2 AS col0 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT - col1 + col1 + - col0 AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT col1 * col0 + + tab2.col1 + + col0 AS col1 FROM tab2
----
1439
255
4739

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( + col1 + tab1.col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col1 + - col1 * - col1 FROM tab2
----
272
3422
930

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > col0
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( - col2 * - col0 )
----

query I rowsort
SELECT + col2 - + col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL col1 * col0 FROM tab0 WHERE NOT col1 NOT BETWEEN ( - col2 / - col1 ) AND tab0.col0
----

query I rowsort
SELECT DISTINCT - tab2.col1 + + col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col1 + - col0 * + col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE col2 / col1 IN ( + tab2.col2 + col1 * col1 * tab2.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT col2 DIV col0 + col1 - - col2 * col2 * - col1 FROM tab0
----
-611793
-93567
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT col2 / col0 + col1 - - col2 * col2 * - col1 FROM tab0
----
-611793
-93567
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT - tab1.col2 AS col2 FROM tab1 WHERE NULL > + col2 * col2
----

query I rowsort
SELECT - col1 + - col1 * col1 - col1 AS col2 FROM tab2
----
-1023
-323
-3599

query I rowsort
SELECT DISTINCT col1 - + col0 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col1 * + col1 + + 36 * col0 AS col2 FROM tab1
----
2404
3049
784

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - 92 * + cor0.col2 * 52 + col1 FROM tab2 AS cor0
----
-124325
-129137
-181775

query I rowsort
SELECT 43 * - col2 FROM tab0 AS cor0
----
-1419
-3526
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT - 52 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3289
SELECT - 52 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT DISTINCT - cor0.col0 - - 75 DIV 24 FROM tab0 AS cor0
----
-21
-32
-86

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT - cor0.col0 - - 75 / 24 FROM tab0 AS cor0
----
-21
-32
-86

query I rowsort
SELECT DISTINCT - + col2 + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col2 col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + cor0.col2 * + 76 + ( + col1 ) FROM tab1 AS cor0
----
4130
4342
7309

query I rowsort
SELECT DISTINCT col0 * - 62 * - 99 AS col1 FROM tab0 AS cor0
----
147312
214830
546282

query I rowsort
SELECT ALL + col2 * col0 + - col0 * + col1 + - cor0.col0 AS col2 FROM tab0 cor0
----
-1296
-3395
-890

query I rowsort
SELECT DISTINCT + + col2 * col0 - - col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT tab1.col1 * tab1.col0 - col0 FROM tab1
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 39 * 60 col0 FROM tab0 AS cor0
----
-208260
-56160
-81900

query I rowsort
SELECT + cor1.col1 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT DISTINCT + col0 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT + col0 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 28 * + col2 * col1 AS col1 FROM tab0
----
-208936
-2716
-79464

query I rowsort
SELECT - col1 + col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT 10 * cor0.col2 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT - ( + cor0.col1 ) * - col2 * - ( 71 ) FROM tab0 AS cor0
----
-201498
-529802
-6887

query I rowsort
SELECT DISTINCT + col0 * - 36 + - col1 FROM tab2 cor0
----
-283
-2861
-2867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3306
SELECT ALL + ( + 56 ) * col1 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1709
3278
914

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + ( + 56 ) * col1 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1709
3278
914

query I rowsort
SELECT + col1 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + 62 * - col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT - - col2 * ( + col1 ) AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL ( 23 ) * + col0 + col2 FROM tab2 AS cor0
----
1820
1855
188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col0 FROM tab0 AS cor0
----
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3313
SELECT DISTINCT - ( + col0 ) * + col1 + + CAST( - col2 AS SIGNED ) + + col0 * col2 DIV cor0.col1 FROM tab1 AS cor0
----
-126
-333
-546

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT - ( + col0 ) * + col1 + + CAST ( - col2 AS INTEGER ) + + col0 * col2 / cor0.col1 FROM tab1 AS cor0
----
-126
-333
-546

query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT ( - 35 ) * col1 * col1 AS col2 FROM tab2
----
-10115
-121835
-33635

query I rowsort
SELECT + ( - ( - col0 ) ) * - col1 * col2 - + col2 * - col0 * + col2 AS col0 FROM tab2
----
-66924
-756
63042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col0 FROM tab1, tab0 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL 65 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT DISTINCT + col2 DIV + col0 + col0 AS col1 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + col2 / + col0 + col0 AS col1 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT ALL + - col2 * col1 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
-36416
-4209
-99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3321
SELECT + + 77 DIV + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3321
SELECT + + 77 / + col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + + col1 * col2 + col1 + col2 AS col0 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT ALL - 26 + col1 FROM tab2 AS cor0
----
-9
33
5

query I rowsort
SELECT 8 * col0 FROM tab2 cor0
----
56
624
632

onlyif mysql # use DIV operator for integer division
query I rowsort label-3325
SELECT + cor0.col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3325
SELECT + cor0.col1 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - col0 * col1 + col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT + 44 + - col1 FROM tab1
----
18
31
34

query I rowsort
SELECT col1 * + tab1.col2 - col1 FROM tab1
----
1235
1378
560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3329
SELECT - CAST( col2 AS SIGNED ) + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT - CAST ( col2 AS INTEGER ) + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - col1 * + col1 * + col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 75 * + col0 FROM tab2 cor0
----
525
5850
5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 * - cor0.col2 col0 FROM tab1 cor0
----
-1296
-1368
-2304

query I rowsort
SELECT ALL + + cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT col0 * ( - ( col1 ) ) - col2 FROM tab1
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT DISTINCT + 98 + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + 98 + col2 / + col2 AS col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL + 72 FROM tab0, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3339
SELECT CAST( 46 AS SIGNED ) * tab1.col2 * - col1 + col2 AS col0 FROM tab1
----
-26163
-57312
-64530

skipif mysql # not compatible
query I rowsort label-3339
SELECT CAST ( 46 AS INTEGER ) * tab1.col2 * - col1 + col2 AS col0 FROM tab1
----
-26163
-57312
-64530

query I rowsort
SELECT DISTINCT + 24 + - cor0.col2 FROM tab2 cor0
----
-14
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3341
SELECT - ( - cor0.col1 ) DIV col1 + - col0 DIV + cor0.col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT - ( - cor0.col1 ) / col1 + - col0 / + cor0.col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT DISTINCT - 64 * + col1 + - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-1682
-640
-833

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - 64 * + col1 + - col2 / col0 AS col1 FROM tab1 AS cor0
----
-1682
-640
-833

onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT DISTINCT + 25 + + 14 DIV col2 FROM tab0 cor0
----
25
39

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT + 25 + + 14 / col2 FROM tab0 cor0
----
25
39

query I rowsort
SELECT ALL col2 + - col0 + - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-111
-3655
-7664

query I rowsort
SELECT ( - tab1.col2 * col2 + - col0 ) FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT + ( - col2 ) * col1 + col0 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT - 57 + + col1 * col2 FROM tab2 AS cor0
----
1477
589
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL - col2 * col1 * col1 + - col1 + col0 FROM tab1 AS cor0
----
-16157
-36527
-5646

query I rowsort
SELECT ALL - 30 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-112
-31
-63

query I rowsort
SELECT DISTINCT + col2 * + col0 + col2 + + col1 FROM tab2 AS cor0
----
2113
247
3057

query I rowsort
SELECT ALL - + 10 + col0 * col0 AS col1 FROM tab1 AS cor0
----
-1
4086
6390

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3353
SELECT ALL + - CAST( + col0 AS SIGNED ) * col2 + col1 - - col2 AS col0 FROM tab0 AS cor0
----
-673
-7125
63

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL + - CAST ( + col0 AS INTEGER ) * col2 + col1 - - col2 AS col0 FROM tab0 AS cor0
----
-673
-7125
63

query I rowsort
SELECT col2 * ( - col1 ) - ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-3355
SELECT DISTINCT cor0.col2 + - 99 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
29
81

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT cor0.col2 + - 99 / + col0 AS col2 FROM tab0 AS cor0
----
-1
29
81

query I rowsort
SELECT - col0 + tab0.col2 * 59 + + col0 AS col2 FROM tab0
----
1947
4838
59

query I rowsort
SELECT DISTINCT + tab1.col2 * col1 * col2 + - col1 AS col1 FROM tab1
----
119795
32480
75790

query I rowsort
SELECT ALL - tab0.col0 + - tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f8529b710dc613df309e90c94e8a2770

query I rowsort
SELECT DISTINCT + - 47 + col2 * + col0 + ( col1 ) FROM tab0 cor0
----
7342
831
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT + + ( - col2 ) DIV col2 + cor0.col1 col0 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3360
SELECT + + ( - col2 ) / col2 + cor0.col1 col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT + ( tab1.col1 ) + col2 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3362
SELECT - CAST( 29 AS SIGNED ) * col0 FROM tab1
----
-1856
-2320
-87

skipif mysql # not compatible
query I rowsort label-3362
SELECT - CAST ( 29 AS INTEGER ) * col0 FROM tab1
----
-1856
-2320
-87

query I rowsort
SELECT ALL col0 + 30 FROM tab0 cor0
----
119
54
65

query I rowsort
SELECT ALL + 47 + + 80 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
13007
291887
614447

query I rowsort
SELECT DISTINCT 21 FROM tab2, tab0 cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT + ( - tab1.col2 + + col0 ) AS col1 FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3368
SELECT ALL col0 * + cor0.col2 - 84 DIV col1 AS col1 FROM tab2 AS cor0
----
187
2027
2998

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL col0 * + cor0.col2 - 84 / col1 AS col1 FROM tab2 AS cor0
----
187
2027
2998

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3369
SELECT DISTINCT + col1 * - col0 + CAST( 39 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1001
-39
-601

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT + col1 * - col0 + CAST ( 39 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1001
-39
-601

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT DISTINCT + - col0 DIV + col2 AS col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT + - col0 / + col2 AS col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT ALL - - col0 * col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT cor0.col2 + 36 * + ( - col1 ) * - ( - 68 ) FROM tab1 cor0
----
-24423
-31728
-63594

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3373
SELECT ALL + col2 - - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL + col2 - - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 FROM tab0 cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT DISTINCT + col2 * - col2 - + col0 * col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-1811
-730
-779

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + col2 * - col2 - + col0 * col0 / col1 AS col1 FROM tab2 AS cor0
----
-1811
-730
-779

query I rowsort
SELECT - 19 + + col0 AS col2 FROM tab0
----
16
5
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3377
SELECT - col2 DIV tab0.col0 + col0 FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-3377
SELECT - col2 / tab0.col0 + col0 FROM tab0
----
23
35
89

query I rowsort
SELECT + col1 * - 63 AS col1 FROM tab2 AS cor0
----
-1071
-1953
-3717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3379
SELECT - + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT - + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 26 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT + 40 + - col1 AS col2 FROM tab2 AS cor0
----
-19
23
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3382
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3383
SELECT + CAST( NULL AS SIGNED ) * + 89 / - cor0.col2 - - ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT + CAST ( NULL AS INTEGER ) * + 89 / - cor0.col2 - - ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 38 * - col2 - col2 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT DISTINCT 7 + cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
14
85
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 * 14 col2 FROM tab0
----
1148
14
462

query I rowsort
SELECT + ( cor0.col1 ) + 52 AS col1 FROM tab2 cor0
----
111
69
83

query I rowsort
SELECT + col2 + col0 + + cor0.col2 FROM tab1 AS cor0
----
111
178
272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3389
SELECT + col0 / 66 + - col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT + col0 / 66 + - col0 * CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT ALL - col0 DIV + 69 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - col0 / + 69 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT col1 + col1 DIV - col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3391
SELECT col1 + col1 / - col1 FROM tab2
----
16
30
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 61 + + tab2.col1 ) * 1 col2 FROM tab2
----
120
78
92

query I rowsort
SELECT tab1.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + 75 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
75

query I rowsort
SELECT DISTINCT col2 * - col1 + + col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - col0 * tab2.col0 - - col1 FROM tab2
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * + 3 col0 FROM tab2
----
-60

query I rowsort
SELECT 1 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL 56 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-7242
-736
21

query I rowsort
SELECT DISTINCT - 89 + - col0 FROM tab0 AS cor0
----
-113
-124
-178

query I rowsort
SELECT DISTINCT + 79 * - col2 + col0 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-16720
-7179
-7688

query I rowsort
SELECT ALL - cor0.col1 + col1 + - col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - - col2 + col1 - col0 FROM tab2 AS cor0
----
-24
51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 44 * col2 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT DISTINCT col0 + col0 * 82 FROM tab0
----
1992
2905
7387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 78 col1 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT ALL - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT tab2.col1 + + CAST( NULL AS SIGNED ) / - 37 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT tab2.col1 + + CAST ( NULL AS INTEGER ) / - 37 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * - 13 - + col2 * + col0 * 33 AS col0 FROM tab1 AS cor0
----
-121125
-254688
-6048

onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT - + col0 DIV cor0.col0 + 20 * + col1 FROM tab2 AS cor0
----
1179
339
619

skipif mysql # not compatible
query I rowsort label-3412
SELECT - + col0 / cor0.col0 + 20 * + col1 FROM tab2 AS cor0
----
1179
339
619

query I rowsort
SELECT + + col1 + - 44 * 37 FROM tab0 AS cor0
----
-1531
-1537
-1542

query I rowsort
SELECT + col2 + ( - col1 ) * + col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT col2 + + col2 * + col0 + + col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT + - col2 * 4 * cor0.col0 AS col0 FROM tab2 cor0
----
-12008
-756
-8112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3417
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT 63 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd

query I rowsort
SELECT ALL + - cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3420
SELECT + + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3420
SELECT + + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col0 * cor0.col1 + + cor0.col0 * - ( + 98 + col0 ) * - col0 FROM tab2 AS cor0
----
1066182
1103314
4928

query I rowsort
SELECT DISTINCT cor0.col2 * 19 AS col2 FROM tab0 cor0
----
1558
19
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3423
SELECT + + CAST( NULL AS SIGNED ) * 83 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT + + CAST ( NULL AS INTEGER ) * 83 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3424
SELECT DISTINCT + CAST( + 25 AS SIGNED ) * col0 FROM tab2 AS cor0
----
175
1950
1975

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + CAST ( + 25 AS INTEGER ) * col0 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT ALL col0 * 3 * + col2 FROM tab2
----
567
6084
9006

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT col0 DIV + ( + col1 ) FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3426
SELECT col0 / + ( + col1 ) FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL ( col2 ) * - col1 * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + - 43 * col2 FROM tab1 cor0
----
-2322
-2451
-4128

query I rowsort
SELECT + - 82 + cor0.col0 * - col1 * col2 FROM tab2 cor0
----
-119734
-51116
-5941

query I rowsort
SELECT ALL col1 * + col0 * 7 + col0 * tab1.col2 FROM tab1
----
14960
708
8128

query I rowsort
SELECT DISTINCT + ( col0 ) * + cor0.col0 * - 54 + + ( - col2 ) FROM tab1 AS cor0
----
-221241
-345696
-540

query I rowsort
SELECT col0 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3433
SELECT + ( col2 ) + col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-3433
SELECT + ( col2 ) + col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ALL + 76 * - col1 AS col0 FROM tab0 AS cor0
----
-6536
-6916
-7372

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3435
SELECT DISTINCT + ( + col1 ) + col1 * - CAST( ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-272
-3422
-930

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT + ( + col1 ) + col1 * - CAST ( ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT DISTINCT - col2 + col0 DIV - col0 FROM tab2 cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - col2 + col0 / - col0 FROM tab2 cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT - 29 * ( - col0 ) FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT + 95 * + col1 AS col1 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT - col0 * tab0.col1 + + col0 * col2 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT ALL col1 * + col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - + cor0.col0 + + 35 FROM tab2 AS cor0
----
-43
-44
28

query I rowsort
SELECT DISTINCT col1 + - 28 AS col0 FROM tab1 AS cor0
----
-15
-18
-2

query I rowsort
SELECT ALL - col2 + 80 AS col1 FROM tab0 AS cor0
----
-2
47
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3444
SELECT CAST( 91 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif mysql # not compatible
query I rowsort label-3444
SELECT CAST ( 91 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # use DIV operator for integer division
query I rowsort label-3445
SELECT ALL col1 + + ( + tab1.col1 ) DIV + col0 AS col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL col1 + + ( + tab1.col1 ) / + col0 AS col1 FROM tab1
----
10
13
34

query I rowsort
SELECT ALL col1 * col2 + + 84 AS col2 FROM tab1
----
1332
1488
654

query I rowsort
SELECT ALL + col1 + - tab2.col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL col0 * + col0 + col0 AS col1 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL col2 * + 33 * - col2 + col1 * tab0.col2 * 44 FROM tab0
----
106436
4235
88935

onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT + col2 DIV 20 AS col0 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3450
SELECT + col2 / 20 AS col0 FROM tab0 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT DISTINCT + - col2 + ( + col1 ) DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + - col2 + ( + col1 ) / - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT DISTINCT + col0 + ( col2 ) DIV - col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT + col0 + ( col2 ) / - col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + 9 + col2 AS col0 FROM tab0 AS cor0
----
10
42
91

query I rowsort
SELECT + - cor0.col1 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + - 79 * - col2 AS col1 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT 96 * col2 AS col0 FROM tab1 AS cor0
----
5184
5472
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3458
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + col1 * col2 + + col2 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + - 16 + 50 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT col2 + col1 + + col2 * - col0 * col2 FROM tab2
----
-114021
-5045
-52643

onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT DISTINCT + 94 DIV + col0 AS col0 FROM tab2
----
1
13

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + 94 / + col0 AS col0 FROM tab2
----
1
13

query I rowsort
SELECT - - 55 + col2 FROM tab1 cor0
----
109
112
151

query I rowsort
SELECT + cor0.col0 * - cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL cor0.col2 + + tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c345857bb273aa2639457b7deb30fe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT ALL - ( col2 ) DIV - col1 AS col0 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - ( col2 ) / - col1 AS col0 FROM tab2
----
0
0
2

query I rowsort
SELECT DISTINCT - col0 + - 49 * col2 AS col2 FROM tab2 AS cor0
----
-1330
-1352
-1941

query I rowsort
SELECT ALL - col2 + 42 * - col0 FROM tab0 AS cor0
----
-1041
-1471
-3820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 19 + col1 col2 FROM tab2 AS cor0
----
36
50
78

query I rowsort
SELECT ALL 37 + - col1 * ( + 59 ) + col2 AS col1 FROM tab0 cor0
----
-5004
-5250
-5685

query I rowsort
SELECT - col2 * + 86 AS col2 FROM tab1
----
-4644
-4902
-8256

query I rowsort
SELECT col0 * 65 + + col0 * + col0 AS col0 FROM tab0 cor0
----
13706
2136
3500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + ( tab0.col2 ) * - col1 col0 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT + col2 * + 51 FROM tab0
----
1683
4182
51

query I rowsort
SELECT - 97 FROM tab2, tab1 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - 23 + col0 AS col0 FROM tab2 AS cor0
----
-16
55
56

query I rowsort
SELECT cor0.col0 + - 30 AS col1 FROM tab1 AS cor0
----
-27
34
50

query I rowsort
SELECT + col1 * - 38 * col0 + cor0.col2 FROM tab2 AS cor0
----
-174850
-50996
-8219

query I rowsort
SELECT - col0 + ( col2 ) AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - 41 * - col0 * col0 + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
168576
263440
447

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3482
SELECT + tab0.col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT + tab0.col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 12 * 95 AS col2 FROM tab1
----
-3420
-72960
-91200

query I rowsort
SELECT - cor0.col0 * tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 06f1aa65839c1bfc8581580bacdb6787

query I rowsort
SELECT 28 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL col1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL + col2 + 64 AS col2 FROM tab2 AS cor0
----
102
90
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 38 + col2 col0 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT DISTINCT col0 * + ( + col0 ) FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3490
SELECT col2 + - ( col1 ) DIV - col0 + ( + col2 + - cor0.col0 ) DIV col1 AS col1 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3490
SELECT col2 + - ( col1 ) / - col0 + ( + col2 + - cor0.col0 ) / col1 AS col1 FROM tab0 cor0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT DISTINCT + + col2 DIV - ( - 65 ) AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + + col2 / - ( - 65 ) AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL 96 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3493
SELECT col2 * CAST( - 13 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1066
-13
-429

skipif mysql # not compatible
query I rowsort label-3493
SELECT col2 * CAST ( - 13 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT + col2 + + 98 FROM tab0 AS cor0
----
131
180
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3495
SELECT DISTINCT - col0 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT - col0 / + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT tab1.col2 * 30 FROM tab1
----
1620
1710
2880

query I rowsort
SELECT col0 + - ( col1 ) FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT col1 * col0 + + col1 DIV col1 AS col0 FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-3498
SELECT col1 * col0 + + col1 / col1 AS col0 FROM tab2
----
1344
218
4603

query I rowsort
SELECT ALL - 46 * - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fe48b50c8ab53af4d89ca8f03ef6be1

query I rowsort
SELECT + 61 * col1 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1075
1918
3625

query I rowsort
SELECT ( col2 ) * + 28 - + col2 * - col1 FROM tab1 AS cor0
----
2166
2916
3936

query I rowsort
SELECT DISTINCT + + ( col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col2 + + cor0.col0 col1 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL - + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col0 * 78 * + tab1.col0 - tab1.col2 AS col0 FROM tab1
----
319431
499104
648

query I rowsort
SELECT + tab2.col2 + ( tab2.col1 ) - ( tab2.col1 ) * - col0 AS col1 FROM tab2
----
1398
275
4687

query I rowsort
SELECT - 74 AS col2 FROM tab0, tab2, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 83dc6c0e38784f5f5c6b91de33ab4ff1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3508
SELECT ALL col2 * + 66 - col2 * + CAST( col0 + col0 AS SIGNED ) FROM tab0
----
-4
-9184
594

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL col2 * + 66 - col2 * + CAST ( col0 + col0 AS INTEGER ) FROM tab0
----
-4
-9184
594

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3509
SELECT col2 * + col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT col2 * + col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL cor0.col1 * + col0 - - 18 AS col2 FROM tab2 AS cor0
----
1361
235
4620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3512
SELECT DISTINCT 99 + + col1 * + CAST( ( - col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1965
-3296
-8000

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT 99 + + col1 * + CAST ( ( - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1965
-3296
-8000

query I rowsort
SELECT cor0.col1 - col1 * + col1 * col0 FROM tab2 AS cor0
----
-22814
-271459
-6696

query I rowsort
SELECT - ( col0 ) * + col1 + 34 FROM tab1 AS cor0
----
-1006
-44
-606

query I rowsort
SELECT ALL + col1 + + cor0.col1 * 14 + + 96 FROM tab0 AS cor0
----
1386
1461
1551

query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + tab0.col2 * - col1 + 65 AS col1 FROM tab0
----
-2773
-32
-7397

onlyif mysql # use DIV operator for integer division
query I rowsort label-3518
SELECT DISTINCT tab1.col0 + tab1.col0 DIV ( tab1.col2 ) col1 FROM tab1
----
3
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT tab1.col0 + tab1.col0 / ( tab1.col2 ) col1 FROM tab1
----
3
65
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3519
SELECT ALL - - 98 DIV + col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL - - 98 / + col0 FROM tab0 AS cor0
----
1
2
4

query I rowsort
SELECT ALL + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col0 * 60 + col1 * col2 * + col0 + ( - col0 ) AS col1 FROM tab0 cor0
----
1260
658689
66648

query I rowsort
SELECT DISTINCT + - col1 + + 78 FROM tab1 AS cor0
----
52
65
68

query I rowsort
SELECT ALL - col1 * 6 - col0 AS col2 FROM tab2 AS cor0
----
-181
-193
-432

query I rowsort
SELECT - col0 * col1 + - 59 FROM tab1 cor0
----
-1099
-137
-699

query I rowsort
SELECT + + col0 * - ( 25 ) + - col0 FROM tab1 AS cor0
----
-1664
-2080
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3527
SELECT DISTINCT + - col1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + ( 10 ) + col1 col1 FROM tab1 cor0
----
566
580
973

query I rowsort
SELECT DISTINCT - col2 * + 29 + - col2 * + col1 FROM tab0 AS cor0
----
-126
-3795
-9840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT DISTINCT - + col0 DIV + col0 + - col1 * + cor0.col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - + col0 / + col0 + - col1 * + cor0.col2 / + col2 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT cor0.col0 + col0 * - 7 AS col0 FROM tab1 AS cor0
----
-18
-384
-480

query I rowsort
SELECT - col0 * + col1 + ( + 88 ) FROM tab2
----
-1255
-129
-4514

onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT - 75 + col0 DIV ( - 83 ) AS col0 FROM tab1
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-3533
SELECT - 75 + col0 / ( - 83 ) AS col0 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT DISTINCT col2 + - 45 * - 88 * + col1 AS col0 FROM tab1 AS cor0
----
103014
39657
51576

query I rowsort
SELECT ALL + - cor0.col2 + ( 29 ) + - col0 AS col0 FROM tab1 AS cor0
----
-147
-28
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT col1 DIV - 92 + - 27 * col1 FROM tab0 AS cor0
----
-2322
-2457
-2620

skipif mysql # not compatible
query I rowsort label-3536
SELECT col1 / - 92 + - 27 * col1 FROM tab0 AS cor0
----
-2322
-2457
-2620

query I rowsort
SELECT ALL + col0 * 88 AS col0 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT ALL 11 AS col0 FROM tab2 cor0
----
11
11
11

query I rowsort
SELECT DISTINCT + - 15 AS col0 FROM tab1 AS cor0
----
-15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT + col1 * + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3540
SELECT + col1 * + col2 / col2 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - + 66 * col0 AS col1 FROM tab2 AS cor0
----
-462
-5148
-5214

onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT ( col1 ) DIV + col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3542
SELECT ( col1 ) / + col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 87 + - col0 + col2 AS col0 FROM tab0 AS cor0
----
-121
-78
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col0 + + col2 col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + + cor0.col1 * 85 AS col0 FROM tab1 cor0
----
1105
2210
850

query I rowsort
SELECT DISTINCT col1 + + col2 * col1 * - col0 FROM tab0 AS cor0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - 67 * col2 FROM tab0 AS cor0
----
-2211
-5494
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT - + col0 DIV ( - col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3549
SELECT - + col0 / ( - col0 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 + + ( + col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col0 + - col1 * - col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT col2 * - col0 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL 80 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
2026
743
944

query I rowsort
SELECT ALL - + 43 * cor0.col2 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT ALL + 61 + + col2 FROM tab1 AS cor0
----
115
118
157

onlyif mysql # use DIV operator for integer division
query I rowsort label-3556
SELECT ALL col2 * col1 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL col2 * col1 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col1 * col2 * - cor0.col0 + - ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
-4620
-672039
-68688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3558
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3558
SELECT CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT col2 * ( 16 ) FROM tab0
----
1312
16
528

onlyif mysql # use DIV operator for integer division
query I rowsort label-3560
SELECT - + col2 DIV - col1 + + 23 FROM tab0 cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-3560
SELECT - + col2 / - col1 + + 23 FROM tab0 cor0
----
23
23
23

query I rowsort
SELECT cor0.col0 * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + col2 * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT col0 + + ( - col1 ) * - col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT - col2 DIV 24 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3564
SELECT - col2 / 24 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 * 40 * - 59 FROM tab1
----
-151040
-188800
-7080

query I rowsort
SELECT ALL col1 * + 13 FROM tab0
----
1118
1183
1261

query I rowsort
SELECT ALL + 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT + 28 + col2 AS col1 FROM tab2 AS cor0
----
54
55
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3569
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 38 * col1 + - ( col0 + col1 ) AS col1 FROM tab0 AS cor0
----
3158
3278
3554

query I rowsort
SELECT - col1 - 0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + 29 * col1 AS col2 FROM tab0
----
2494
2639
2813

query I rowsort
SELECT col0 + + col1 * + ( + col0 ) AS col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3574
SELECT ALL + col0 * col2 + - col0 DIV - col1 + col1 FROM tab0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + col0 * col2 + - col0 / - col1 + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT - 29 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

query I rowsort
SELECT - 55 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 037c686cf473a7e2cc59ce6c19d8dc57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3577
SELECT - + 74 * + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT - + 74 * + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 0 FROM tab1, tab2, tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col2 * - 83 + col0 FROM tab1 AS cor0
----
-4479
-4667
-7888

onlyif mysql # use DIV operator for integer division
query I rowsort label-3581
SELECT - cor0.col0 + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-3581
SELECT - cor0.col0 + col1 / - col1 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT cor0.col1 + ( col0 ) * + col1 * - 56 AS col2 FROM tab0 AS cor0
----
-115498
-190023
-453453

query I rowsort
SELECT col0 * - col2 * col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3584
SELECT ALL - tab2.col1 * col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - tab2.col1 * col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( cor1.col1 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-86
-91
-97

query I rowsort
SELECT + ( - cor0.col1 ) - + cor1.col0 * + cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3f27b2ae576bd832eef0909979015c1

query I rowsort
SELECT ALL - col0 + - ( col2 + tab2.col1 ) * + col1 AS col1 FROM tab2
----
-1014
-1805
-5093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3589
SELECT ALL + CAST( - col1 AS SIGNED ) FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + CAST ( - col1 AS INTEGER ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - ( - col0 ) * - col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col1 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT + 9 * - col1 + - ( col1 ) DIV col0 FROM tab1 AS cor0
----
-117
-242
-90

skipif mysql # not compatible
query I rowsort label-3593
SELECT + 9 * - col1 + - ( col1 ) / col0 FROM tab1 AS cor0
----
-117
-242
-90

query I rowsort
SELECT 68 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-7230
-724
33

query I rowsort
SELECT + col2 * - col2 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
119821
32500
75842

onlyif mysql # use DIV operator for integer division
query I rowsort label-3596
SELECT + cor0.col2 * col1 - + col1 DIV ( col1 ) AS col1 FROM tab1 AS cor0
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-3596
SELECT + cor0.col2 * col1 - + col1 / ( col1 ) AS col1 FROM tab1 AS cor0
----
1247
1403
569

query I rowsort
SELECT ALL + + ( ( + cor0.col1 ) ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + 73 + 9 * - col0 FROM tab1 AS cor0
----
-503
-647
46

query I rowsort
SELECT ALL 80 + 3 AS col2 FROM tab0
----
83
83
83

query I rowsort
SELECT ALL - col1 + - col1 + tab0.col0 AS col1 FROM tab0
----
-148
-159
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL + 43 + + 12 AS col1 FROM tab0, tab0 cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to c59acfbb70996777fa5053195838c3d6

query I rowsort
SELECT 10 + col1 + col2 FROM tab2 AS cor0
----
65
68
95

query I rowsort
SELECT DISTINCT + 63 + col0 * + col0 FROM tab2 cor0
----
112
6147
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3605
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3606
SELECT - CAST( NULL AS SIGNED ) * - col0 + - col0 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT - CAST ( NULL AS INTEGER ) * - col0 + - col0 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col2 + tab1.col1 ) FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col2 * + col2 + ( - col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT col0 * + col2 + col1 * ( col2 * + col2 ) AS col0 FROM tab1 cor0
----
127488
36138
75978

query I rowsort
SELECT ALL - + 15 * - col2 * col0 - col0 AS col2 FROM tab1 AS cor0
----
115120
2427
54656

query I rowsort
SELECT DISTINCT - 60 + col2 AS col2 FROM tab2 AS cor0
----
-22
-33
-34

query I rowsort
SELECT ALL + 52 + ( col2 ) FROM tab0
----
134
53
85

query I rowsort
SELECT ALL ( + 71 ) + + tab0.col0 AS col2 FROM tab0
----
106
160
95

query I rowsort
SELECT ALL 31 + col0 AS col0 FROM tab0
----
120
55
66

query I rowsort
SELECT + - col1 * + 76 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT DISTINCT cor0.col0 * col2 * col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT DISTINCT + col2 + col0 * 77 FROM tab1 AS cor0
----
285
4985
6256

query I rowsort
SELECT - col1 * ( + col1 + cor0.col0 ) FROM tab2 AS cor0
----
-1178
-1632
-8083

query I rowsort
SELECT - col2 * + ( - col2 ) AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - - col1 * + col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT + cor0.col0 * - 35 AS col0 FROM tab1 AS cor0
----
-105
-2240
-2800

onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT ALL 71 DIV col1 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL 71 / col1 AS col1 FROM tab1
----
2
5
7

query I rowsort
SELECT + cor0.col1 + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 338e91bd6b1ec42ced1d27c185bc6972

query I rowsort
SELECT ALL col2 * + col0 * col2 + col2 - + 75 FROM tab2
----
114039
5055
52679

query I rowsort
SELECT - col1 * - ( col2 + + cor0.col2 ) * + col1 FROM tab2 AS cor0
----
181012
21964
51894

query I rowsort
SELECT - - col0 * col2 + + col1 AS col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT col2 * + 64 * - col0 FROM tab1 AS cor0
----
-10368
-233472
-491520

query I rowsort
SELECT ALL 29 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + 83 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT + col2 * col2 - - col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT 76 * - cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ca8e051800d63941b6ac2ce7339fd068

query I rowsort
SELECT + 5 * cor1.col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 0e2e8c8d930a1d8cc62663577dc7aa82

query I rowsort
SELECT col1 * - 25 + col1 * + col0 FROM tab1
----
-572
390
715

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT DISTINCT + ( + tab0.col1 ) DIV col1 + - CAST( 84 AS SIGNED ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + ( + tab0.col1 ) / col1 + - CAST ( 84 AS INTEGER ) FROM tab0
----
-83

query I rowsort
SELECT - ( - 56 ) * - col0 + ( tab2.col1 ) AS col2 FROM tab2
----
-361
-4309
-4407

query I rowsort
SELECT + - 78 - - 32 AS col1 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3637
SELECT ALL CAST( 95 AS SIGNED ) * - col0 * - col0 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
389177
608096
909

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL CAST ( 95 AS INTEGER ) * - col0 * - col0 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
389177
608096
909

query I rowsort
SELECT DISTINCT - col0 + + col2 + - col0 FROM tab1 AS cor0
----
-64
-71
48

query I rowsort
SELECT ALL - col2 - - col2 * + col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT + 57 + ( + col1 ) - + col2 FROM tab0 AS cor0
----
110
153
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT col1 DIV 14 FROM tab0 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3641
SELECT col1 / 14 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3643
SELECT ALL CAST( - 32 AS SIGNED ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-19
-22
-6

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL CAST ( - 32 AS INTEGER ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-19
-22
-6

query I rowsort
SELECT col2 * - col1 - - col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3645
SELECT ALL - 38 DIV - 76 + col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - 38 / - 76 + col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + + col2 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + - cor0.col2 - col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3649
SELECT + col0 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT + col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + - col0 * + col1 + col1 + + cor0.col2 FROM tab1 AS cor0
----
-573
-931
2

query I rowsort
SELECT ALL + col1 + ( + col0 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + 66 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT ALL 85 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT + tab1.col2 * col1 + ( + col1 ) FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT ALL col1 DIV - col1 AS col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL col1 / - col1 AS col1 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col0 * ( 84 ) FROM tab1 AS cor0
----
252
5376
6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3659
SELECT + tab1.col0 * col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT + tab1.col0 * col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 3 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort
SELECT - 83 - tab2.col0 * + CAST ( - 54 AS REAL ) AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c81b6ffeca939461e736f17b706bdd47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT CAST( - 28 AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

skipif mysql # not compatible
query I rowsort label-3662
SELECT CAST ( - 28 AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3663
SELECT ALL + ( col2 ) * - 78 + - cor0.col2 DIV - cor0.col0 + ( + cor0.col1 ) FROM tab2 AS cor0
----
-1969
-2072
-2947

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + ( col2 ) * - 78 + - cor0.col2 / - cor0.col0 + ( + cor0.col1 ) FROM tab2 AS cor0
----
-1969
-2072
-2947

query I rowsort
SELECT ALL - 55 + - col0 * 45 AS col1 FROM tab2 cor0
----
-3565
-3610
-370

query I rowsort
SELECT + col1 * tab2.col2 * col1 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT + col0 * col1 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT col1 + - ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3668
SELECT DISTINCT col0 * + col2 + - col2 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2704
4446
918

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT col0 * + col2 + - col2 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT - - ( col0 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + ( - col0 ) + col2 * col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + col0 * 5 FROM tab0 AS cor0
----
120
175
445

onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT DISTINCT + + col0 + 30 DIV col1 FROM tab1 AS cor0
----
4
67
82

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT + + col0 + 30 / col1 FROM tab1 AS cor0
----
4
67
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - + ( cor0.col2 ) * col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 67 + + col2 AS col0 FROM tab1 AS cor0
----
-10
-13
29

query I rowsort
SELECT - - col2 * 23 FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT ALL - + ( col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 * col2 * cor0.col0 FROM tab1 cor0
----
233472
486
614400

query I rowsort
SELECT - + 22 * cor0.col1 FROM tab2 AS cor0
----
-1298
-374
-682

onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT col2 * + col0 + 58 DIV col0 FROM tab2 AS cor0
----
197
2028
3002

skipif mysql # not compatible
query I rowsort label-3681
SELECT col2 * + col0 + 58 / col0 FROM tab2 AS cor0
----
197
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + col0 col2 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT 89 + tab1.col0 + + col2 AS col0 FROM tab1
----
146
210
265

query I rowsort
SELECT + 22 * cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
163
190
518

query I rowsort
SELECT col0 + col2 + 75 * - 40 AS col0 FROM tab0 AS cor0
----
-2829
-2943
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT + + cor0.col2 - + col2 DIV - ( + 52 ) FROM tab0 cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-3686
SELECT + + cor0.col2 - + col2 / - ( + 52 ) FROM tab0 cor0
----
1
33
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3687
SELECT + ( col0 ) * col1 + + col2 DIV cor0.col0 FROM tab1 AS cor0
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-3687
SELECT + ( col0 ) * col1 + + col2 / cor0.col0 FROM tab1 AS cor0
----
1041
640
96

query I rowsort
SELECT - col2 * + col1 - - col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT ALL col0 DIV + col1 col2 FROM tab1 cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL col0 / + col1 col2 FROM tab1 cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 70 * + col1 col1 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT + 54 AS col0 FROM tab1
----
54
54
54

query I rowsort
SELECT - cor0.col2 + cor0.col1 * col2 + col1 * col2 AS col1 FROM tab0 AS cor0
----
14842
193
5643

query I rowsort
SELECT DISTINCT - col2 - 46 FROM tab2 AS cor0
----
-72
-73
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT - col1 DIV + col0 + + col2 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-3695
SELECT - col1 / + col0 + + col2 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT - ( + col1 * - col2 ) FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3697
SELECT ALL - col1 + cor0.col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - col1 + cor0.col2 / - col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3698
SELECT ALL - cor0.col1 * CAST( NULL AS SIGNED ) + + col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL - cor0.col1 * CAST ( NULL AS INTEGER ) + + col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * 83 - + col0 FROM tab0 AS cor0
----
-7162
-7642
-8086

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3700
SELECT DISTINCT + 21 * + tab2.col0 - + CAST( + col1 + - col2 AS SIGNED ) * ( 7 * col0 ) AS col2 FROM tab2
----
-16380
-49
13272

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + 21 * + tab2.col0 - + CAST ( + col1 + - col2 AS INTEGER ) * ( 7 * col0 ) AS col2 FROM tab2
----
-16380
-49
13272

query I rowsort
SELECT + 69 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 55 ) col2 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3703
SELECT DISTINCT + CAST( 58 AS SIGNED ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + CAST ( 58 AS INTEGER ) FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 40 * col0 col2 FROM tab2 AS cor0
----
-1960
-243360
-249640

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT - col0 * col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3705
SELECT - col0 * col2 / col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col2 * - 40 AS col2 FROM tab0
----
-1320
-3280
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3707
SELECT CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT CAST ( NULL AS REAL ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3708
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( tab1.col2 ) col0 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3710
SELECT col2 DIV col1 col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3710
SELECT col2 / col1 col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL - + col2 * ( ( cor0.col2 ) ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - - col1 * 43 AS col2 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT ALL col0 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - col1 * 78 FROM tab2 AS cor0
----
-1326
-2418
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3715
SELECT ALL + - cor0.col1 * - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + - cor0.col1 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT ALL + col2 + + 61 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
34
62
82

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + col2 + + 61 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
34
62
82

query I rowsort
SELECT DISTINCT + tab0.col0 * - 27 FROM tab0
----
-2403
-648
-945

query I rowsort
SELECT - 65 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ae25c919704741460cde5aa94bd634f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT DISTINCT - + CAST( 54 AS SIGNED ) DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-54
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT - + CAST ( 54 AS INTEGER ) / col2 AS col0 FROM tab0 AS cor0
----
-1
-54
0

query I rowsort
SELECT ALL + ( - col1 ) * - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT DISTINCT col0 + col2 DIV - col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT col0 + col2 / - col2 FROM tab0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3722
SELECT - + 33 DIV 84 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3722
SELECT - + 33 / 84 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT DISTINCT + - ( col1 ) DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT + - ( col1 ) / cor0.col1 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT - col1 + + col2 * col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-101
-54
-70

skipif mysql # not compatible
query I rowsort label-3725
SELECT - col1 + + col2 * col2 / - col1 AS col2 FROM tab2 AS cor0
----
-101
-54
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 + col2 * col2 col1 FROM tab2 AS cor0
----
1452
684
737

query I rowsort
SELECT 2 FROM tab1, tab0 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - 67 * - col2 * - col1 + col2 FROM tab2 AS cor0
----
-102752
-43244
-56052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col2 + + col1 col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + + ( + col2 ) * col2 - + col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + col2 * 30 + col0 FROM tab0 AS cor0
----
1014
2549
65

query I rowsort
SELECT - ( - col1 ) * + col2 + ( - col2 ) * - 63 * + 32 FROM tab1 AS cor0
----
110268
115482
194784

query I rowsort
SELECT ALL + 51 * - cor0.col0 * + col1 AS col1 FROM tab1 cor0
----
-32640
-3978
-53040

query I rowsort
SELECT 18 * col2 * - col0 FROM tab1 AS cor0
----
-138240
-2916
-65664

query I rowsort
SELECT ALL + + col0 * col0 * 90 FROM tab2 AS cor0
----
4410
547560
561690

query I rowsort
SELECT DISTINCT col1 + + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT ALL - col0 + - col0 DIV col0 + - col0 AS col1 FROM tab2 AS cor0
----
-15
-157
-159

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - col0 + - col0 / col0 + - col0 AS col1 FROM tab2 AS cor0
----
-15
-157
-159

query I rowsort
SELECT ALL - + col1 * - col1 + - col1 + + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col2 * 46 AS col2 FROM tab2 AS cor0
----
1196
1242
1748

onlyif mysql # use DIV operator for integer division
query I rowsort label-3742
SELECT DISTINCT col0 DIV col1 + - cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-163
-676
-94

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT col0 / col1 + - cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-163
-676
-94

query I rowsort
SELECT ALL - col1 * 55 FROM tab2 cor0
----
-1705
-3245
-935

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - cor0.col0 * - col0 + ( cor0.col1 ) + 46 AS col1 FROM tab2 AS cor0
----
126
6189
6304

query I rowsort
SELECT DISTINCT + col0 + + 94 FROM tab1 AS cor0
----
158
174
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - 6 col2 FROM tab1 AS cor0
----
-20
-4
-7

query I rowsort
SELECT ALL - tab0.col0 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + + col0 * - 75 FROM tab0 cor0
----
-1800
-2625
-6675

query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT 41 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT col2 * 9 AS col0 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT DISTINCT + 66 + col1 FROM tab2
----
125
83
97

query I rowsort
SELECT + cor0.col2 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ( - col1 ) + - col1 AS col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT + ( - cor0.col2 ) FROM tab2, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT col1 + ( - col0 * - col2 ) FROM tab0
----
132
7389
878

query I rowsort
SELECT + cor0.col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - 87 + col1 FROM tab2 AS cor0
----
-28
-56
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3761
SELECT ALL - CAST( NULL AS SIGNED ) * 66 + col2 * 48 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - CAST ( NULL AS INTEGER ) * 66 + col2 * 48 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 42 + - col2 AS col1 FROM tab2 cor0
----
15
16
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3764
SELECT col0 * col2 + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-3764
SELECT col0 * col2 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + ( - col0 ) col1 FROM tab2 AS cor0
----
-3559
-368
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 92 * - cor0.col0 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT ALL 43 * - col0 + + col2 FROM tab1 cor0
----
-2695
-3344
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT col1 DIV + col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3769
SELECT col1 / + col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 + - col2 col0 FROM tab2
----
17
28
29

query I rowsort
SELECT DISTINCT + col2 * + col0 + + cor0.col0 * cor0.col0 * col0 FROM tab1 AS cor0
----
189
265792
519680

query I rowsort
SELECT - 61 + + col1 * + 1 AS col2 FROM tab0 AS cor0
----
25
30
36

query I rowsort
SELECT ALL col1 * + col0 * 15 FROM tab0 cor0
----
121485
30960
50925

query I rowsort
SELECT DISTINCT - + col0 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + col1 * - cor0.col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col0 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT ALL + + col0 * col2 DIV - col2 col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + + col0 * col2 / - col2 col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + cor0.col1 * + col1 + 27 FROM tab0 AS cor0
----
7423
8308
9436

query I rowsort
SELECT col1 + + col1 * - col0 - col0 * + col0 FROM tab0 cor0
----
-15929
-2554
-4523

query I rowsort
SELECT + ( - 75 ) AS col0 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - - 29 AS col2 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT + col0 DIV + ( - col1 ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT + col0 / + ( - col1 ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col0 * cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT ALL 81 DIV - 42 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL 81 / - 42 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT ALL col2 * + CAST( + 39 AS SIGNED ) FROM tab2
----
1014
1053
1482

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL col2 * + CAST ( + 39 AS INTEGER ) FROM tab2
----
1014
1053
1482

query I rowsort
SELECT DISTINCT + 75 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT + - CAST( - col2 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-3787
SELECT + - CAST ( - col2 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 49 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 * cor0.col1 * col2 + + 9 col1 FROM tab0 cor0
----
110691
291027
3792

query I rowsort
SELECT DISTINCT + 22 * col1 + col2 * + 46 AS col1 FROM tab2 AS cor0
----
1924
2122
2494

onlyif mysql # use DIV operator for integer division
query I rowsort label-3791
SELECT ALL 23 DIV col1 + col0 FROM tab2 AS cor0
----
7
78
80

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 23 / col1 + col0 FROM tab2 AS cor0
----
7
78
80

query I rowsort
SELECT + 67 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col2 ) * + col2 * - 8 col1 FROM tab2 AS cor0
----
-11552
-5408
-5832

query I rowsort
SELECT DISTINCT 31 * + cor0.col1 + + 77 * col0 FROM tab2 cor0
----
1500
6610
7835

onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT DISTINCT + col2 * col0 + ( + col1 ) DIV - col1 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + col2 * col0 + ( + col1 ) / - col1 FROM tab1 AS cor0
----
161
3647
7679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - 97 + + col2 col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT ALL + ( 46 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT 50 DIV + 57 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3799
SELECT 50 / + 57 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3800
SELECT col0 - - 80 DIV - col2 AS col0 FROM tab1
----
2
63
80

skipif mysql # not compatible
query I rowsort label-3800
SELECT col0 - - 80 / - col2 AS col0 FROM tab1
----
2
63
80

query I rowsort
SELECT 2 + + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ab9d8558abdf26c9e5dd2217e34e60fc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3802
SELECT - + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3802
SELECT - + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3803
SELECT - col2 * - col0 - - col1 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT - col2 * - col0 - - col1 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + 95 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1343
1499
665

onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT ALL + 83 DIV + tab0.col1 + col0 col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL + 83 / + tab0.col1 + col0 col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + 9 * col1 * + 88 FROM tab0 cor0
----
68112
72072
76824

query I rowsort
SELECT ALL 98 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT + col1 * + col2 + ( col1 ) * col2 FROM tab1 AS cor0
----
1140
2496
2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * + col0 + col2 col1 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT DISTINCT + + 49 FROM tab2, tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT 94 * - col1 FROM tab0
----
-8084
-8554
-9118

query I rowsort
SELECT DISTINCT - ( col0 * + 45 + col0 * col0 ) AS col0 FROM tab2
----
-364
-9594
-9796

query I rowsort
SELECT DISTINCT cor0.col1 + ( col2 ) - col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + col2 ) col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - cor0.col0 * ( 8 ) FROM tab1 cor0
----
-24
-512
-640

query I rowsort
SELECT ALL + col1 * 38 * 5 FROM tab1 AS cor0
----
1900
2470
4940

onlyif mysql # use DIV operator for integer division
query I rowsort label-3818
SELECT ALL 51 DIV - 68 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL 51 / - 68 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL + col1 * - col1 * + col2 AS col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT + + col1 DIV col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3821
SELECT + + col1 / col0 FROM tab0 cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 77 * + col1 AS col1 FROM tab2
----
1309
2387
4543

query I rowsort
SELECT - - col2 * col0 + 0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT ALL - col2 + - cor0.col0 DIV - ( col1 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - col2 + - cor0.col0 / - ( col1 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT cor0.col2 + 23 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to baccdd4eb2fb6669dcc06519f6cb9228

query I rowsort
SELECT ALL col1 + + cor0.col0 * - col0 * col0 FROM tab1 AS cor0
----
-1
-262134
-511987

query I rowsort
SELECT - 87 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT ALL col1 * + col0 + + tab1.col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT + 0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT tab0.col0 * + 73 FROM tab0
----
1752
2555
6497

query I rowsort
SELECT col2 + - col1 * + col2 AS col1 FROM tab1 cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * col2 - col1 col2 FROM tab1
----
157438
185183
884723

query I rowsort
SELECT - + col0 + + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL 30 * + col2 AS col0 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT DISTINCT + col2 + 17 * col1 AS col1 FROM tab2 AS cor0
----
1029
327
554

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + col0 * + ( + col0 ) - ( - 14 ) FROM tab1 AS cor0
----
23
4110
6414

query I rowsort
SELECT 13 * cor0.col0 AS col1 FROM tab2 cor0
----
1014
1027
91

query I rowsort
SELECT ( - col1 ) + - col0 * + ( - col1 ) * - col1 FROM tab2 AS cor0
----
-22848
-271577
-6758

query I rowsort
SELECT + 76 * cor0.col1 + - col1 AS col1 FROM tab0 cor0
----
6450
6825
7275

query I rowsort
SELECT ALL col2 * col2 - + col0 AS col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + col1 + col2 * + cor0.col0 * - col0 FROM tab2 AS cor0
----
-1292
-158125
-237141

query I rowsort
SELECT + ( col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 44 AS REAL ) * col0 + - col1 - + col1 AS col1 FROM tab2 AS cor0
----
246
3314
3442

query I rowsort
SELECT ALL col2 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3847
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - + CAST ( NULL AS REAL ) + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 92 FROM tab2 cor0
----
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3849
SELECT - CAST( NULL AS SIGNED ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 85 * - col2 AS col2 FROM tab2
----
130390
54910
71145

query I rowsort
SELECT ALL col1 + - col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT col2 * col0 + col1 * - 74 FROM tab0 cor0
----
-5572
-7143
564

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3853
SELECT ALL CAST( - col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL CAST ( - col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ( + col0 ) * col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ( col2 ) + col2 * 85 * + col2 FROM tab1 AS cor0
----
247914
276222
783456

query I rowsort
SELECT + - col0 * + col0 + col1 * + col2 FROM tab0 cor0
----
-1128
-459
2262

query I rowsort
SELECT ALL - + cor0.col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col2 * + col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - + col0 * col1 + 45 * - col1 AS col0 FROM tab1 AS cor0
----
-1090
-1248
-1625

query I rowsort
SELECT + 72 + cor0.col1 AS col2 FROM tab1 cor0
----
82
85
98

query I rowsort
SELECT ALL + - col2 - + col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - 4 * - col1 FROM tab1
----
104
40
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3863
SELECT CAST( NULL AS SIGNED ) + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT CAST ( NULL AS INTEGER ) + tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 45 + col2 * - col1 AS col2 FROM tab2
----
-1489
-601
-792

query I rowsort
SELECT ( tab0.col0 ) + + col2 FROM tab0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3866
SELECT CAST( NULL AS SIGNED ) * + col2 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT CAST ( NULL AS INTEGER ) * + col2 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 * + CAST ( 68 AS REAL ) + + cor0.col0 FROM tab2 AS cor0
----
483
5382
5451

onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT cor0.col2 DIV + 25 - - ( - col2 * + col1 ) FROM tab0 AS cor0
----
-2837
-7459
-97

skipif mysql # not compatible
query I rowsort label-3868
SELECT cor0.col2 / + 25 - - ( - col2 * + col1 ) FROM tab0 AS cor0
----
-2837
-7459
-97

skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 + + CAST ( col0 AS REAL ) + col1 * col0 AS col0 FROM tab1 AS cor0
----
1216
135
761

query I rowsort
SELECT ALL col2 * + cor0.col0 * col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - ( col1 ) + col1 col0 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT - - col2 * + ( col1 ) * - col1 + + col2 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT ALL - col2 * ( 74 ) FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT col2 * tab2.col2 + 70 * + 65 * - col2 - col2 FROM tab2
----
-117650
-122148
-171494

query I rowsort
SELECT ALL + col0 + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + cor0.col0 + col1 * - 4 * + col0 + - col1 FROM tab1 AS cor0
----
-2506
-335
-4093

query I rowsort
SELECT ALL + col2 + 51 AS col0 FROM tab1 cor0
----
105
108
147

query I rowsort
SELECT DISTINCT + col1 - col1 AS col1 FROM tab1
----
0

query I rowsort
SELECT - 63 FROM tab2, tab1 cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT - col2 * - col1 + + 56 * tab0.col1 FROM tab0
----
12558
5529
7654

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 93 + cor0.col2 AS col2 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT + ( 74 ) AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 col1 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT + col1 * - col2 + col0 * col2 FROM tab0 AS cor0
----
-164
-2046
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3886
SELECT + cor0.col2 + - CAST( NULL AS SIGNED ) * col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3886
SELECT + cor0.col2 + - CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3887
SELECT DISTINCT col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + col1 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - - cor0.col1 * + col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT + col0 + cor0.col2 DIV col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-3890
SELECT + col0 + cor0.col2 / col1 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT + cor0.col1 + 70 * - 94 FROM tab0 AS cor0
----
-6483
-6489
-6494

onlyif mysql # use DIV operator for integer division
query I rowsort label-3892
SELECT - col1 - - 76 * + col0 DIV col0 FROM tab2 AS cor0
----
17
45
59

skipif mysql # not compatible
query I rowsort label-3892
SELECT - col1 - - 76 * + col0 / col0 FROM tab2 AS cor0
----
17
45
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col0 FROM tab0
----
68
68
68

query I rowsort
SELECT - 99 * - 4 FROM tab0 cor0
----
396
396
396

query I rowsort
SELECT - ( + col0 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - cor0.col2 * 68 AS col1 FROM tab1 AS cor0
----
-3672
-3876
-6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 46 * col2 col0 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT + col0 + 7 * - cor0.col1 FROM tab1 AS cor0
----
-11
-179
-6

query I rowsort
SELECT col0 * - 20 + - 51 FROM tab1
----
-111
-1331
-1651

query I rowsort
SELECT ALL - 82 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT - cor0.col0 DIV - 42 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3901
SELECT - cor0.col0 / - 42 FROM tab0 cor0
----
0
0
2

query I rowsort
SELECT DISTINCT ( - 29 ) * col2 AS col1 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT DISTINCT 19 * col2 * col1 AS col1 FROM tab0
----
141778
1843
53922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3904
SELECT col2 + + col0 * CAST( NULL AS SIGNED ) + col0 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT col2 + + col0 * CAST ( NULL AS INTEGER ) + col0 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 3 * + col2 AS col0 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT 44 * - 62 AS col2 FROM tab2
----
-2728
-2728
-2728

query I rowsort
SELECT + ( - col2 ) * col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT DISTINCT - 1 * - cor0.col1 * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + 49 FROM tab0 cor0
----
49
49
49

query I rowsort
SELECT 40 + + 24 FROM tab1
----
64
64
64

query I rowsort
SELECT ALL tab0.col2 + 51 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 404e225e0d66c3e9fae560c3a0458d7f

query I rowsort
SELECT ALL + col2 + 78 FROM tab2
----
104
105
116

query I rowsort
SELECT 83 + + col1 AS col2 FROM tab2
----
100
114
142

query I rowsort
SELECT DISTINCT - ( col0 ) + col1 * col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL - 49 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - col0 - + 26 * col1 FROM tab2 AS cor0
----
-1612
-521
-813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3918
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
NULL

query I rowsort
SELECT + ( + cor0.col2 ) * col2 + - col2 + 11 * - col1 AS col2 FROM tab2 AS cor0
----
1
1219
361

onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT + col0 DIV - col0 + + col0 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-3920
SELECT + col0 / - col0 + + col0 AS col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT col2 * col0 + + col0 * col1 * cor0.col0 AS col1 FROM tab1 cor0
----
396
44608
90880

query I rowsort
SELECT + 63 * col1 + + col2 * + 63 AS col2 FROM tab0 AS cor0
----
10899
6174
7497

query I rowsort
SELECT - 26 * col0 + + col0 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT - 86 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL cor0.col0 * + 19 - cor0.col2 * col2 FROM tab1 AS cor0
----
-2033
-2859
-7696

onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT DISTINCT col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + col1 * ( - ( - col0 ) ) + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col1 * col2 + 20 FROM tab2 cor0
----
1554
666
857

query I rowsort
SELECT ALL + - col1 + 82 AS col1 FROM tab1 AS cor0
----
56
69
72

query I rowsort
SELECT col0 * ( + 24 * col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
184416
3942
87609

query I rowsort
SELECT ALL + - col0 + 44 AS col1 FROM tab2 AS cor0
----
-34
-35
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-3933
SELECT DISTINCT + col2 DIV + col1 + col0 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + col2 / + col1 + col0 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT ALL - col1 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 * tab2.col2 + - 35 AS col0 FROM tab2
----
154
1993
2967

query I rowsort
SELECT + col0 + col0 * col0 * col0 AS col1 FROM tab1 AS cor0
----
262208
30
512080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 20 col2 FROM tab2 AS cor0
----
-46
-47
-58

query I rowsort
SELECT DISTINCT + - col0 + col2 AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - - col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - col1 * col2 + + 13 * col2 AS col0 FROM tab1 AS cor0
----
-702
0
171

query I rowsort
SELECT ALL + + cor0.col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + - 66 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1584
-2310
-5874

query I rowsort
SELECT + cor0.col1 + - ( col1 ) * + col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT col1 + - 47 FROM tab2
----
-16
-30
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-3945
SELECT ALL + 88 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + 88 / - cor0.col1 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT DISTINCT + - 34 AS col2 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT - - col2 + + col1 - col0 AS col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL + col2 * - cor0.col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT col0 + ( - col1 ) * + col2 + + col2 AS col1 FROM tab2
----
-1430
-529
-803

query I rowsort
SELECT ALL - col0 - + col2 * - col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT col0 * - col0 + - ( 15 ) FROM tab0
----
-1240
-591
-7936

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 39 * col0 + ( - col2 ) FROM tab0 AS cor0
----
-1366
-3553
-969

query I rowsort
SELECT ALL + - col1 + + col0 * 14 AS col1 FROM tab2 AS cor0
----
1033
1089
67

query I rowsort
SELECT col2 + - cor0.col0 AS col1 FROM tab1 cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT ALL col1 DIV col1 + col0 * + col2 col2 FROM tab1 AS cor0
----
163
3649
7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL col1 / col1 + col0 * + col2 col2 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT DISTINCT - 75 FROM tab1, tab1 AS cor0
----
-75

query I rowsort
SELECT ALL - tab2.col1 + col0 + - ( col2 ) FROM tab2
----
-51
-7
24

query I rowsort
SELECT ALL col0 + col0 + col2 * ( tab1.col2 ) AS col1 FROM tab1
----
2922
3377
9376

query I rowsort
SELECT ALL + 46 + - col1 AS col2 FROM tab2
----
-13
15
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3961
SELECT DISTINCT tab2.col0 DIV + col0 + + 92 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT tab2.col0 / + col0 + + 92 FROM tab2
----
93

query I rowsort
SELECT + col0 + 20 FROM tab0 AS cor0
----
109
44
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT DISTINCT 86 DIV col1 + - col2 AS col1 FROM tab1
----
-49
-51
-90

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT 86 / col1 + - col2 AS col1 FROM tab1
----
-49
-51
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT DISTINCT col1 DIV 4 FROM tab2
----
14
4
7

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT col1 / 4 FROM tab2
----
14
4
7

query I rowsort
SELECT ALL - 91 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT + col1 * - 83 AS col2 FROM tab0
----
-7138
-7553
-8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT col1 + + 35 AS col1 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT + + col0 + - 29 * cor0.col0 FROM tab0 cor0
----
-2492
-672
-980

onlyif mysql # use DIV operator for integer division
query I rowsort label-3970
SELECT + col1 + 68 DIV - 53 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3970
SELECT + col1 + 68 / - 53 AS col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - 60 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT 32 * + col1 FROM tab1
----
320
416
832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3973
SELECT ALL CAST( col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ( 38 ) * cor0.col1 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT DISTINCT + ( - 65 ) * - col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT + 75 * cor0.col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT DISTINCT + 54 - + 23 AS col2 FROM tab0 AS cor0
----
31

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 + ( - col2 ) * col2 FROM tab0 AS cor0
----
1375
3394
975

query I rowsort
SELECT ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 0 - col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT col2 DIV col2 + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3981
SELECT col2 / col2 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3982
SELECT - col1 * col0 + - col0 DIV - col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-3982
SELECT - col1 * col0 + - col0 / - col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

query I rowsort
SELECT DISTINCT + - 60 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT DISTINCT 91 * col0 FROM tab2
----
637
7098
7189

query I rowsort
SELECT + tab0.col0 * - col2 + tab0.col1 * + col1 FROM tab0
----
6604
9374
983

query I rowsort
SELECT tab0.col2 * - col1 + col0 AS col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT col0 - - col0 * col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - col2 * col2 + - tab0.col1 * col0 FROM tab0
----
-14823
-3153
-3396

query I rowsort
SELECT + - col2 * + col2 + - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT col2 + + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT + col1 * col0 - + cor0.col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT + col2 * col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-3992
SELECT + col2 * col2 / - col1 AS col2 FROM tab2 AS cor0
----
-11
-23
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col2 FROM tab2 WHERE NOT NULL <> - col1 AND NULL NOT IN ( col1 )
----

query I rowsort
SELECT - col2 + + tab0.col0 AS col0 FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + - col1 - col0 col2 FROM tab2 cor0
----
-10
-51
48

query I rowsort
SELECT ALL col2 * + col0 - + col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + 79 * cor0.col0 * col1 + - col0 FROM tab1 AS cor0
----
50496
6159
82080

query I rowsort
SELECT DISTINCT - - 7 * cor0.col0 - col0 * col0 FROM tab0 AS cor0
----
-408
-7298
-980

query I rowsort
SELECT - 94 * - col2 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-3
3016
7617

query I rowsort
SELECT ( 52 ) AS col0 FROM tab0
----
52
52
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4001
SELECT ALL CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab2.col0 + - col1 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT 30 FROM tab0, tab2 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - + cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT cor0.col2 * + col1 + - col1 * col1 * col2 FROM tab1 AS cor0
----
-14976
-35100
-5130

query I rowsort
SELECT 66 + - col2 FROM tab0
----
-16
33
65

query I rowsort
SELECT - col0 * + col1 * col2 AS col1 FROM tab0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + tab1.col1 col0 FROM tab1
----
100
169
676

query I rowsort
SELECT + col0 * - col2 + + tab1.col1 * + col2 FROM tab1
----
-3078
-6432
1242

onlyif mysql # use DIV operator for integer division
query I rowsort label-4010
SELECT col1 + col1 * tab0.col2 + + col2 * col2 DIV col2 FROM tab0
----
195
2957
7635

skipif mysql # not compatible
query I rowsort label-4010
SELECT col1 + col1 * tab0.col2 + + col2 * col2 / col2 FROM tab0
----
195
2957
7635

query I rowsort
SELECT DISTINCT tab2.col1 * - col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col2 - col1 ) AND NULL
----

query I rowsort
SELECT col2 + col2 * - col1 + + col1 * - col1 AS col1 FROM tab1
----
-1321
-2026
-613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + - col2 col2 FROM tab1
----
2862
3192
9120

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col2 FROM tab2
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT col1 - col2 DIV + col0 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-4017
SELECT col1 - col2 / + col0 FROM tab0
----
85
91
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( col2 * + col1 * + col1 )
----

query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0 WHERE ( + col1 ) >= col1
----
86
91
97

query I rowsort
SELECT ALL col0 * col0 FROM tab0 WHERE NULL <> + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT IN ( col1 * + col2 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col2 * - col1 * col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - col0 - col2 * + col1 FROM tab1
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4024
SELECT ALL col2 * - col1 + col2 DIV tab1.col1 AS col0 FROM tab1
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL col2 * - col1 + col2 / tab1.col1 AS col0 FROM tab1
----
-1241
-1402
-565

query I rowsort
SELECT col2 * - tab2.col1 + - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( + col0 + - col0 + col2 ) IN ( + col0 )
----
24
35
89

query I rowsort
SELECT - col0 + col0 - tab2.col2 AS col0 FROM tab2
----
-26
-27
-38

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col2 + + col2 )
----

query I rowsort
SELECT ALL - cor0.col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * + col2 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col1 + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + col2 + - col1 FROM tab2
----
26
27
38

query I rowsort
SELECT col0 * + col2 + - tab2.col1 AS col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL + col2 * col1 + tab0.col0 + + col0 AS col2 FROM tab0
----
167
2886
7640

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE tab0.col0 * col2 < NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( - cor0.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + 94 * + 58 FROM tab0 cor0
----
5452
5452
5452

query I rowsort
SELECT - + 99 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-73
-86
-89

query I rowsort
SELECT DISTINCT - 50 + col2 * - col2 FROM tab2 AS cor0
----
-1494
-726
-779

query I rowsort
SELECT + tab2.col1 + - 23 * col0 * col0 AS col1 FROM tab2
----
-1096
-139873
-143526

query I rowsort
SELECT col0 + + 56 AS col0 FROM tab1 AS cor0
----
120
136
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4044
SELECT ALL - + 0 * col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - + 0 * col0 / col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 81 AS col0 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT + col0 * col2 - + col0 * col0 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT ALL col0 + - col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - + 12 * + 51 AS col1 FROM tab2 AS cor0
----
-612

onlyif mysql # use DIV operator for integer division
query I rowsort label-4049
SELECT DISTINCT - col2 DIV - ( + col0 ) + cor0.col0 + col2 * cor0.col2 AS col2 FROM tab1 cor0
----
2937
3313
9297

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT - col2 / - ( + col0 ) + cor0.col0 + col2 * cor0.col2 AS col2 FROM tab1 cor0
----
2937
3313
9297

query I rowsort
SELECT ALL - 67 * + col2 * - col0 - 30 AS col1 FROM tab0 AS cor0
----
2315
488936
53034

query I rowsort
SELECT 2 * col1 + + col1 AS col2 FROM tab2 cor0
----
177
51
93

query I rowsort
SELECT ALL - + 65 * + ( col0 * + 70 ) FROM tab1 AS cor0
----
-13650
-291200
-364000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 - + col1 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL 75 * 21 * - col1 AS col1 FROM tab0 AS cor0
----
-135450
-143325
-152775

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab1 cor0
----
-6

query I rowsort
SELECT DISTINCT - col0 * + col0 + - ( + col0 * + col2 ) + + col1 * - col0 FROM tab2 cor0
----
-10586
-12714
-455

query I rowsort
SELECT ( col2 ) * cor0.col2 + col0 AS col0 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL 48 * - col2 - ( 45 + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1319
-1368
-1907

query I rowsort
SELECT DISTINCT - + 45 + col1 FROM tab2 AS cor0
----
-14
-28
14

query I rowsort
SELECT - col0 * col1 * ( col1 ) + + col0 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT DISTINCT - col2 * - col1 + ( col2 ) FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4063
SELECT - CAST( NULL AS SIGNED ) + + 51 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT - CAST ( NULL AS INTEGER ) + + 51 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * - 93 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to f78d9c763471aea758ef1a6ebb4fdc0a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4066
SELECT ALL - ( tab2.col1 ) * + CAST( + 78 * + col0 AS SIGNED ) AS col0 FROM tab2
----
-104754
-16926
-358956

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - ( tab2.col1 ) * + CAST ( + 78 * + col0 AS INTEGER ) AS col0 FROM tab2
----
-104754
-16926
-358956

query I rowsort
SELECT ALL + col0 * - 78 + col0 * col0 FROM tab1 AS cor0
----
-225
-896
160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4068
SELECT col1 + + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4068
SELECT col1 + + col0 / - cor0.col0 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT + col1 - + 4 * - col1 AS col0 FROM tab2
----
155
295
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT col0 DIV 52 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4071
SELECT col0 / 52 FROM tab1
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4072
SELECT tab2.col0 * + CAST( col1 * col2 + col0 AS SIGNED ) col2 FROM tab2
----
125736
57275
5908

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4072
SELECT tab2.col0 * + CAST ( col1 * col2 + col0 AS INTEGER ) col2 FROM tab2
----
125736
57275
5908

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4073
SELECT DISTINCT CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - cor0.col0 + + col2 + - col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 77 * 73 FROM tab1, tab2 AS cor0
----
9 values hashing to 1d896d34b2bf9ebcfe0b2d4a135673e9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4076
SELECT DISTINCT + tab2.col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + tab2.col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT + col2 DIV + tab1.col2 + - col2 AS col0 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4077
SELECT + col2 / + tab1.col2 + - col2 AS col0 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT DISTINCT - col0 DIV tab1.col2 - 60 AS col2 FROM tab1
----
-60
-61

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - col0 / tab1.col2 - 60 AS col2 FROM tab1
----
-60
-61

query I rowsort
SELECT + col2 + - col1 * - 52 AS col1 FROM tab1
----
1406
577
772

query I rowsort
SELECT + col0 + col2 * - col1 + + col0 AS col0 FROM tab2
----
-1378
-488
-823

query I rowsort
SELECT - 50 * 26 + - col0 AS col0 FROM tab2 AS cor0
----
-1307
-1378
-1379

query I rowsort
SELECT - + ( 92 ) FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT col2 * 95 * - col1 FROM tab0 AS cor0
----
-269610
-708890
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * - 44 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dc7b5bedbb876282f2aae3ad3e0ee1ab

query I rowsort
SELECT - tab1.col0 + + ( - col2 ) AS col0 FROM tab1
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT - 1 * col1 DIV col0 AS col1 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 1 * col1 / col0 AS col1 FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL 88 + col1 AS col1 FROM tab0
----
174
179
185

query I rowsort
SELECT ALL - col2 * - col2 + col1 AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL col2 + - col2 + + col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT 15 + + cor0.col2 * col2 FROM tab1 AS cor0
----
2931
3264
9231

query I rowsort
SELECT 79 * + col2 FROM tab0 cor0
----
2607
6478
79

query I rowsort
SELECT DISTINCT - 36 * col0 AS col1 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT + - col0 * col2 + col1 * + cor0.col2 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT ALL - ( ( + col0 ) ) + cor0.col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL 79 * - col1 FROM tab0
----
-6794
-7189
-7663

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
1321
15301
3381

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4098
SELECT col1 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4098
SELECT col1 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 + + 72 AS col0 FROM tab2 AS cor0
----
34
45
46

query I rowsort
SELECT ALL cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 * col1 + 25 + - cor0.col0 FROM tab0 AS cor0
----
-2063
-3405
-8163

onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT + cor0.col1 DIV 67 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4102
SELECT + cor0.col1 / 67 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + + col2 + - ( - 26 ) * col2 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT DISTINCT + - col2 + 94 AS col2 FROM tab2 AS cor0
----
56
67
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4105
SELECT ALL - col1 + - CAST( 40 AS SIGNED ) DIV - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - col1 + - CAST ( 40 AS INTEGER ) / - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col2 * col0 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4107
SELECT ALL col2 DIV + col0 + + 6 * col2 AS col1 FROM tab1
----
342
342
577

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL col2 / + col0 + + 6 * col2 AS col1 FROM tab1
----
342
342
577

onlyif mysql # use DIV operator for integer division
query I rowsort label-4108
SELECT + - col1 + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-4108
SELECT + - col1 + col1 / + col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + ( col1 ) * + 49 ) + col1 * col0 col2 FROM tab2 AS cor0
----
32997
41230
79768

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1

query I rowsort
SELECT - + col0 * 69 + - col0 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT ALL 58 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + + col2 - + cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - - 66 + - 92 AS col2 FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT + 20 DIV - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4115
SELECT + 20 / - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL 75 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT + col1 * + col1 + col2 DIV 97 FROM tab1 cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-4117
SELECT + col1 * + col1 + col2 / 97 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT 32 * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1023
-2542
-31

query I rowsort
SELECT 43 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT col2 * - col0 DIV + col0 AS col2 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4120
SELECT col2 * - col0 / + col0 AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT 82 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
108
109
120

query I rowsort
SELECT - + 7 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT + col2 DIV + tab0.col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4123
SELECT + col2 / + tab0.col1 col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4124
SELECT + col1 * - col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT + col1 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4125
SELECT - tab0.col2 + - tab0.col2 * tab0.col1 - col1 DIV col0 FROM tab0
----
-100
-2874
-7545

skipif mysql # not compatible
query I rowsort label-4125
SELECT - tab0.col2 + - tab0.col2 * tab0.col1 - col1 / col0 FROM tab0
----
-100
-2874
-7545

onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT ( + col0 ) DIV + 73 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4126
SELECT ( + col0 ) / + 73 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT + tab2.col0 - tab2.col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT col2 * + col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - col1 * - col1 + + cor0.col2 * col0 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT ALL - + col1 + ( - col0 * + col1 ) AS col0 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4132
SELECT col0 / + CAST( NULL AS DECIMAL ) + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT col0 / + CAST ( NULL AS REAL ) + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT ALL col1 + ( col0 ) * col1 DIV + col0 + - col0 FROM tab1 AS cor0
----
-44
-54
49

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL col1 + ( col0 ) * col1 / + col0 + - col0 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT ALL + col2 + + col2 * 78 AS col2 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT - col2 + col0 * ( col1 ) FROM tab0 cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - + cor0.col1 * col0 - - col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - col2 - 13 * + 5 * + col2 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT ALL - col0 * ( - 8 ) + - col2 AS col2 FROM tab1 AS cor0
----
-30
455
544

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT - col2 DIV 72 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1041
-640
-78

skipif mysql # not compatible
query I rowsort label-4140
SELECT - col2 / 72 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1041
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT - - 99 * col2 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT + ( + col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - ( 59 ) + - col0 FROM tab0 AS cor0
----
-148
-83
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4145
SELECT ALL col2 * col0 DIV col0 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL col2 * col0 / col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - - 71 * 87 FROM tab2 AS cor0
----
6177
6177
6177

query I rowsort
SELECT ALL - - ( + 62 ) AS col2 FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT ALL + + 31 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
117
122
128

query I rowsort
SELECT ALL tab2.col1 * col1 * + col1 AS col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT DISTINCT 86 * - col1 AS col2 FROM tab0
----
-7396
-7826
-8342

onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT DISTINCT tab0.col0 DIV 49 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT tab0.col0 / 49 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT - col2 * 72 + col1 FROM tab1 AS cor0
----
-3862
-4094
-6899

query I rowsort
SELECT + ( + 64 ) AS col1 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT col2 + - ( + 49 ) AS col2 FROM tab2
----
-11
-22
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT - col1 + col0 DIV + col0 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4155
SELECT - col1 + col0 / + col0 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT - col2 + 70 * - col2 AS col0 FROM tab1
----
-3834
-4047
-6816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4157
SELECT + 47 DIV - 28 + - col0 AS col0 FROM tab2 cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-4157
SELECT + 47 / - 28 + - col0 AS col0 FROM tab2 cor0
----
-79
-8
-80

query I rowsort
SELECT + 8 * cor0.col1 - col2 FROM tab2 AS cor0
----
221
446
98

query I rowsort
SELECT ALL col2 + + 8 FROM tab2
----
34
35
46

query I rowsort
SELECT DISTINCT + + ( 44 ) FROM tab2 cor0
----
44

query I rowsort
SELECT ALL cor0.col2 + - 21 AS col0 FROM tab0 AS cor0
----
-20
12
61

query I rowsort
SELECT ALL col0 * col2 + + col0 * ( - col1 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
-21
-2496
1738

query I rowsort
SELECT DISTINCT 55 + - col0 FROM tab1 AS cor0
----
-25
-9
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - 99 ) col2 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT - - col1 + - col0 * col2 - + ( - col1 ) * col1 FROM tab1 cor0
----
-3538
-7498
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 * - col1 col2 FROM tab2 cor0
----
-102
-186
-354

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT ALL - cor0.col0 DIV 87 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL - cor0.col0 / 87 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + 17 * col1 + col0 FROM tab2 AS cor0
----
1081
368
534

query I rowsort
SELECT ALL - ( col2 ) * col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4170
SELECT 44 + ( col2 ) DIV CAST( - 97 AS SIGNED ) + col2 * 83 FROM tab1 cor0
----
4526
4775
8012

skipif mysql # not compatible
query I rowsort label-4170
SELECT 44 + ( col2 ) / CAST ( - 97 AS INTEGER ) + col2 * 83 FROM tab1 cor0
----
4526
4775
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4171
SELECT DISTINCT CAST( - 92 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT CAST ( - 92 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

query I rowsort
SELECT ALL 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL + col1 * + col1 + 92 FROM tab0 cor0
----
7488
8373
9501

query I rowsort
SELECT ALL - - 99 - + col2 AS col1 FROM tab0 AS cor0
----
17
66
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col1 col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT + col0 * col0 + 15 * col1 FROM tab1 AS cor0
----
399
4246
6595

query I rowsort
SELECT DISTINCT col1 * + 31 FROM tab1 AS cor0
----
310
403
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4178
SELECT + cor0.col1 * - CAST( ( - col2 ) * - ( 28 ) AS SIGNED ) FROM tab0 cor0
----
-208936
-2716
-79464

skipif mysql # not compatible
query I rowsort label-4178
SELECT + cor0.col1 * - CAST ( ( - col2 ) * - ( 28 ) AS INTEGER ) FROM tab0 cor0
----
-208936
-2716
-79464

query I rowsort
SELECT DISTINCT + - col2 * 96 AS col2 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT DISTINCT - cor0.col0 + 36 * 60 AS col1 FROM tab0 AS cor0
----
2071
2125
2136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT DISTINCT - - cor0.col1 * + CAST( - 32 AS SIGNED ) FROM tab2 AS cor0
----
-1888
-544
-992

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - - cor0.col1 * + CAST ( - 32 AS INTEGER ) FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT DISTINCT + col2 + 27 FROM tab0 AS cor0
----
109
28
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4183
SELECT ALL - col0 + + CAST( col2 * col0 AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
156
3520
7520

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - col0 + + CAST ( col2 * col0 AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
156
3520
7520

onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT ALL - col1 * + col2 + + 15 DIV - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - col1 * + col2 + + 15 / - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col1 * 74 * cor0.col0 FROM tab2 AS cor0
----
16058
340548
99382

query I rowsort
SELECT col2 + - 52 AS col1 FROM tab0 AS cor0
----
-19
-51
30

query I rowsort
SELECT DISTINCT - col1 * col1 - + col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + - col1 * col1 + 1 AS col0 FROM tab1 AS cor0
----
-168
-675
-99

query I rowsort
SELECT - - 88 * - cor0.col1 + - col0 FROM tab0 AS cor0
----
-7592
-8097
-8571

query I rowsort
SELECT + 64 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4191
SELECT - 56 DIV - 94 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-4191
SELECT - 56 / - 94 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + + col2 * + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4193
SELECT ALL - 98 * col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - 98 * col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 + 42 FROM tab1 AS cor0
----
2958
3291
9258

query I rowsort
SELECT ALL - ( - 45 ) FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT ALL - - 71 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT ALL + + ( col0 ) - - col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + - col1 + col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col2 + - tab1.col1 * + 7 * + tab1.col0 + - col1 * 49 FROM tab1
----
-1766
-4913
-7821

query I rowsort
SELECT + cor0.col2 * 78 + col0 AS col2 FROM tab2 AS cor0
----
2106
2113
3043

query I rowsort
SELECT - col2 + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL 77 * col1 FROM tab2 AS cor0
----
1309
2387
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4203
SELECT - - CAST( - 81 AS SIGNED ) * col2 + + col2 + + 91 AS col0 FROM tab1 AS cor0
----
-4229
-4469
-7589

skipif mysql # not compatible
query I rowsort label-4203
SELECT - - CAST ( - 81 AS INTEGER ) * col2 + + col2 + + 91 AS col0 FROM tab1 AS cor0
----
-4229
-4469
-7589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col2 * col0 + ( 84 ) + - col0 * - 72 FROM tab2 AS cor0
----
7728
777
8774

query I rowsort
SELECT DISTINCT + ( col1 ) * cor0.col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 58 - tab0.col1 FROM tab0
----
-28
-33
-39

query I rowsort
SELECT DISTINCT + tab1.col1 * 91 * + col2 AS col1 FROM tab1
----
113568
127764
51870

query I rowsort
SELECT - col0 * - ( - col2 ) AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ( + col0 * tab2.col1 ) + ( tab2.col1 ) AS col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL 30 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT + col2 + CAST( NULL AS SIGNED ) * - 81 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT + col2 + CAST ( NULL AS INTEGER ) * - 81 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 45 + - cor0.col2 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to c9f03fbec756018079300265702a5775

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36

query I rowsort
SELECT - cor0.col0 * - 73 * col1 FROM tab1 AS cor0
----
46720
5694
75920

query I rowsort
SELECT - - col2 * + 36 + col1 FROM tab1 AS cor0
----
1970
2062
3469

query I rowsort
SELECT DISTINCT + + col2 + 28 * col1 FROM tab1 AS cor0
----
337
460
782

query I rowsort
SELECT ALL 96 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4219
SELECT CAST( NULL AS DECIMAL ) + col0 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT CAST ( NULL AS REAL ) + col0 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 * - col2 + - ( 31 ) * - col1 AS col1 FROM tab0 cor0
----
12416
246734
681863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4222
SELECT - - CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4222
SELECT - - CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL cor0.col1 - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 71 ) AS col1 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT ALL - + 21 + - 47 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT - 89 + - 36 FROM tab0 AS cor0
----
-125
-125
-125

query I rowsort
SELECT ALL + cor0.col0 + - 68 FROM tab0 cor0
----
-33
-44
21

query I rowsort
SELECT + 58 * 24 FROM tab0 AS cor0
----
1392
1392
1392

query I rowsort
SELECT ALL + 85 + col2 AS col2 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT DISTINCT + ( col0 ) * col0 + + 28 + col1 FROM tab1 cor0
----
4134
63
6441

query I rowsort
SELECT ( + 67 ) + cor0.col1 FROM tab1 AS cor0
----
77
80
93

query I rowsort
SELECT 96 + + col2 * + col0 AS col1 FROM tab2 cor0
----
2124
285
3098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + col2 - - col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT - 26 * col1 AS col2 FROM tab2
----
-1534
-442
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT + col2 * + col0 DIV - col0 + col0 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-4236
SELECT + col2 * + col0 / - col0 + col0 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT ALL - col1 DIV + 51 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-4238
SELECT ALL - col1 / + 51 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 + cor0.col1 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT cor0.col1 + - 15 FROM tab0 AS cor0
----
71
76
82

query I rowsort
SELECT ALL + col2 + 2 * col2 AS col1 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT - 30 * col0 AS col1 FROM tab2 AS cor0
----
-210
-2340
-2370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col1 + + col0 * + 82 FROM tab2 AS cor0
----
543
6337
6461

onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT ALL - 29 * - col2 + ( col1 ) DIV + col0 + + 46 AS col0 FROM tab0 AS cor0
----
1006
2425
77

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - 29 * - col2 + ( col1 ) / + col0 + + 46 AS col0 FROM tab0 AS cor0
----
1006
2425
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4247
SELECT ALL - 87 DIV + col0 FROM tab1 AS cor0
----
-1
-1
-29

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - 87 / + col0 FROM tab1 AS cor0
----
-1
-1
-29

query I rowsort
SELECT - 23 * + col1 + tab1.col0 FROM tab1
----
-166
-219
-595

query I rowsort
SELECT ALL + 21 * + col0 AS col2 FROM tab1 AS cor0
----
1344
1680
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT DISTINCT col0 + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT col0 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 43 * - col1 FROM tab1 AS cor0
----
1118
430
559

onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT - 93 + col0 DIV cor0.col1 AS col2 FROM tab1 cor0
----
-87
-87
-93

skipif mysql # not compatible
query I rowsort label-4252
SELECT - 93 + col0 / cor0.col1 AS col2 FROM tab1 cor0
----
-87
-87
-93

query I rowsort
SELECT - - ( + cor0.col2 ) * - col1 * col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4254
SELECT ALL - tab2.col1 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - tab2.col1 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col2 - + col0 * + col2 AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + ( 77 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT col2 + 9 * col2 AS col2 FROM tab1
----
540
570
960

query I rowsort
SELECT + col2 + ( + col0 ) * col0 * - col0 FROM tab2 AS cor0
----
-316
-474526
-493001

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT - col1 + - col0 + col1 DIV ( col1 + col0 * CAST( 3 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-4259
SELECT - col1 + - col0 + col1 / ( col1 + col0 * CAST ( 3 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT ALL - col2 + col1 DIV + col0 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL - col2 + col1 / + col0 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT DISTINCT + ( - 14 ) + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1520
632
823

query I rowsort
SELECT ALL + 32 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT 81 * col0 * col2 FROM tab0
----
2835
591138
64152

query I rowsort
SELECT ALL 8 * - col0 FROM tab1
----
-24
-512
-640

query I rowsort
SELECT DISTINCT - 0 * 81 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT + - col1 DIV + col0 + + col2 AS col0 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-4266
SELECT + - col1 / + col0 + + col2 AS col0 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT DISTINCT - + 4 * 16 * + col1 + ( + cor0.col0 ) FROM tab0 AS cor0
----
-5480
-5735
-6173

query I rowsort
SELECT ALL + - 89 + - col0 FROM tab1 AS cor0
----
-153
-169
-92

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 + - col1 * col0 + ( col2 ) * 71 FROM tab1 AS cor0
----
2352
2837
4528

query I rowsort
SELECT - 40 + col0 FROM tab1 AS cor0
----
-37
24
40

query I rowsort
SELECT ALL + + col0 + 83 * + col1 FROM tab2 AS cor0
----
1490
2580
4975

onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT DISTINCT + 70 * + col0 - cor0.col1 DIV col2 FROM tab0 AS cor0
----
1678
2353
6229

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT + 70 * + col0 - cor0.col1 / col2 FROM tab0 AS cor0
----
1678
2353
6229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4273
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col0 + col1 - + ( col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col0 + col1 - + ( col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - ( - col2 ) + + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - ( + col0 ) * cor0.col2 + + col1 + + col0 FROM tab0 cor0
----
-682
-7118
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4276
SELECT ALL + col0 + + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + col0 + + col2 / + col2 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + - col2 + col2 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ( col0 ) * - ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT ALL col0 + col1 DIV col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL col0 + col1 / col0 FROM tab2 AS cor0
----
11
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + col1 * 18 * col2 + col1 FROM tab2 cor0
----
11645
15097
27671

query I rowsort
SELECT col2 * + 54 AS col1 FROM tab0 AS cor0
----
1782
4428
54

query I rowsort
SELECT - col0 * 68 AS col2 FROM tab1 AS cor0
----
-204
-4352
-5440

onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT DISTINCT - col2 DIV col0 + + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - col2 / col0 + + col0 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-3
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT DISTINCT - col0 DIV cor0.col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - col0 / cor0.col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL 14 - cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6c8e0965c675d69b605dd8f5ee836301

query I rowsort
SELECT + cor0.col2 * - 40 AS col2 FROM tab2 cor0
----
-1040
-1080
-1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4288
SELECT - - ( col0 ) * - col0 + + CAST( 63 + col2 * col2 AS SIGNED ) FROM tab0 AS cor0
----
-1134
-1161
576

skipif mysql # not compatible
query I rowsort label-4288
SELECT - - ( col0 ) * - col0 + + CAST ( 63 + col2 * col2 AS INTEGER ) FROM tab0 AS cor0
----
-1134
-1161
576

query I rowsort
SELECT DISTINCT col0 * + 29 * - 47 + col1 FROM tab2
----
-106255
-107660
-9510

query I rowsort
SELECT + ( ( + col1 ) ) + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col2 * col1 + col0 * - 57 AS col2 FROM tab0 AS cor0
----
-1898
1470
2389

query I rowsort
SELECT 79 * - cor0.col0 + col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT ALL col2 + col0 DIV col2 AS col1 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL col2 + col0 / col2 AS col1 FROM tab0
----
33
36
83

query I rowsort
SELECT - col1 * tab2.col2 + + 65 AS col2 FROM tab2
----
-1469
-581
-772

query I rowsort
SELECT + - 81 * + col2 AS col2 FROM tab0 AS cor0
----
-2673
-6642
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 28 * 12 + col2 FROM tab0 AS cor0
----
337
369
418

query I rowsort
SELECT - ( - 32 ) * col2 + - col0 * - col2 * + col2 AS col0 FROM tab2 AS cor0
----
115292
53560
5967

query I rowsort
SELECT col2 + 2 AS col1 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT DISTINCT + col1 * 52 FROM tab0 AS cor0
----
4472
4732
5044

query I rowsort
SELECT ALL - 91 FROM tab2, tab2 cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT 53 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
402
4193
4204

query I rowsort
SELECT + 74 + - 14 * - col1 FROM tab0 AS cor0
----
1278
1348
1432

query I rowsort
SELECT - ( ( + tab1.col0 ) ) AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL + + 1 * col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - tab0.col0 * + col2 AS col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + tab0.col2 ) col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN col1 * + col1 + + col0 AND NULL
----
24
35
89

query I rowsort
SELECT ALL + col2 * + col0 FROM tab1 AS cor0 WHERE NOT cor0.col2 + - col0 NOT BETWEEN col1 + col1 + + col0 AND NULL
----

query I rowsort
SELECT col0 + + col1 * - cor0.col1 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-4311
SELECT DISTINCT col1 DIV col1 + col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT col1 / col1 + col2 FROM tab1
----
55
58
97

query I rowsort
SELECT DISTINCT - col0 + + col0 * + col2 AS col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT - col2 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2 AS cor0 WHERE + col0 NOT IN ( - col2 + col0 )
----
26
27
38

query I rowsort
SELECT + col0 FROM tab2 WHERE + col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( col0 + - col2 + + col2 * + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE NOT NULL BETWEEN - col2 / + col0 AND col2
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL NOT IN ( + tab2.col2 )
----

query I rowsort
SELECT col2 + col1 * tab1.col2 - tab1.col0 AS col2 FROM tab1
----
1264
1455
563

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL IN ( + tab0.col1 )
----

query I rowsort
SELECT + col2 / - col0 AS col0 FROM tab1 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT DISTINCT + col0 DIV + col2 + tab0.col2 AS col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + col0 / + col2 + tab0.col2 AS col2 FROM tab0
----
33
36
83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col0 * - col1 + col0 * col2 + tab0.col0 )
----

query I rowsort
SELECT DISTINCT tab0.col1 + col2 FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN col0 / - col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT ALL col2 + + col0 DIV + col0 col0 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL col2 + + col0 / + col0 col0 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 WHERE NOT ( - col0 ) IN ( col2 * col1 )
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT DISTINCT + col1 DIV - col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT + col1 / - col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT DISTINCT + col2 * col1 + + col2 + col1 * col1 AS col0 FROM tab1 cor0
----
1513
2134
727

query I rowsort
SELECT + - cor0.col2 * col1 - + col2 * + col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT ALL col1 + - col1 * + tab0.col0 - col0 FROM tab0
----
-2002
-3333
-8097

query I rowsort
SELECT tab2.col1 + - col2 + col0 AS col1 FROM tab2
----
11
111
58

query I rowsort
SELECT col1 + + tab1.col1 - col1 * + col1 AS col0 FROM tab1
----
-143
-624
-80

query I rowsort
SELECT tab2.col2 + col0 * col0 * col2 AS col0 FROM tab2
----
1350
158210
237196

query I rowsort
SELECT + col0 * col2 * col0 + col0 AS col2 FROM tab1
----
233536
489
614480

query I rowsort
SELECT ALL col0 + - col1 - - col2 * col0 * tab0.col1 FROM tab0
----
3333
664116
68050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col2 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * col2 - col2 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col0 - + col1 * - col2 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4340
SELECT DISTINCT + col0 DIV col0 + - col2 * col2 AS col0 FROM tab0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + col0 / col0 + - col2 * col2 AS col0 FROM tab0
----
-1088
-6723
0

query I rowsort
SELECT col1 * + col1 + col2 * col1 AS col1 FROM tab2
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-4342
SELECT DISTINCT col1 * + col0 DIV tab2.col0 + col2 + - tab2.col0 AS col1 FROM tab2
----
-24
51
7

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT col1 * + col0 / tab2.col0 + col2 + - tab2.col0 AS col1 FROM tab2
----
-24
51
7

query I rowsort
SELECT - col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + col2 * + col2 + col0 AS col1 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL + col2 + - col1 * + col0 * col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT - - col2 DIV + cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4347
SELECT - - col2 / + cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col2 * col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + + cor0.col0 + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - tab0.col2 * - 60 AS col1 FROM tab0
----
1980
4920
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4351
SELECT + + col1 + - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4351
SELECT + + col1 + - col1 / col2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col2 * - ( col1 ) + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + col0 + + col0 * - ( + col1 * col0 ) FROM tab1 AS cor0
----
-231
-40896
-83120

query I rowsort
SELECT col1 * 34 * - col2 FROM tab1
----
-19380
-42432
-47736

query I rowsort
SELECT tab1.col1 * - tab1.col1 + 81 AS col0 FROM tab1
----
-19
-595
-88

query I rowsort
SELECT ALL + col2 - - 23 * - 37 FROM tab1 cor0
----
-755
-794
-797

query I rowsort
SELECT ALL + - col2 + - 67 * + cor0.col1 FROM tab0 AS cor0
----
-5795
-6179
-6500

query I rowsort
SELECT ALL col2 * col1 + + col0 AS col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT - - col0 * - 89 FROM tab1 AS cor0
----
-267
-5696
-7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 * col1 + col2 col1 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT DISTINCT - col2 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL col2 + - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT - + CAST( + 23 AS SIGNED ) DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4363
SELECT - + CAST ( + 23 AS INTEGER ) / - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT ALL col0 DIV - 6 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1027
630
78

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL col0 / - 6 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1027
630
78

query I rowsort
SELECT DISTINCT - 66 + cor0.col0 * + col1 AS col2 FROM tab1 cor0
----
12
574
974

query I rowsort
SELECT ALL - 4 + cor0.col1 * col2 - col2 FROM tab0 AS cor0
----
2801
7376
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4368
SELECT ALL + - 17 DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + - 17 / - cor0.col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 + ( - col1 ) FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4373
SELECT DISTINCT 98 + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT 98 + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 32 * col1 + + col0 AS col1 FROM tab0 cor0
----
-2728
-2823
-3069

query I rowsort
SELECT ( col1 ) * - ( - cor0.col2 ) + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - - 8 + col2 AS col2 FROM tab0 AS cor0
----
41
9
90

query I rowsort
SELECT - + col1 * col1 + - cor0.col1 + + col0 FROM tab2 AS cor0
----
-227
-3462
-985

query I rowsort
SELECT + 39 * col0 - + col2 AS col2 FROM tab1 AS cor0
----
2439
3024
63

query I rowsort
SELECT DISTINCT col0 * col0 * ( + col0 ) FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT - ( col2 ) * 47 * col2 FROM tab0 AS cor0
----
-316028
-47
-51183

query I rowsort
SELECT - col1 + col2 + - col2 * - col2 FROM tab0 AS cor0
----
-95
1036
6715

query I rowsort
SELECT DISTINCT + - col2 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT - 85 + + col0 FROM tab0
----
-50
-61
4

query I rowsort
SELECT - 60 + - col1 + + col0 AS col2 FROM tab2
----
-41
-84
2

query I rowsort
SELECT - col0 * - 79 FROM tab0
----
1896
2765
7031

query I rowsort
SELECT + col0 * col2 * - tab1.col0 + 29 + col2 AS col0 FROM tab1
----
-233386
-403
-614275

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + + col0 * + 53 + col2 * - col0 * col2 AS col1 FROM tab2 cor0
----
-110535
-50128
-5569

query I rowsort
SELECT 29 + col1 AS col2 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT ALL - 93 * - col1 AS col2 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT DISTINCT 8 - col1 AS col0 FROM tab0
----
-78
-83
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + ( + col1 ) + + col2 col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL - + col2 * - col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4393
SELECT DISTINCT tab2.col2 + + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT tab2.col2 + + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - cor0.col0 + + cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT + col1 + - col2 * - col2 - col0 FROM tab2 AS cor0
----
1382
657
753

query I rowsort
SELECT + col1 + ( 81 ) * + col2 * + col0 + col0 * col0 AS col0 FROM tab0 AS cor0
----
4157
599150
64814

onlyif mysql # use DIV operator for integer division
query I rowsort label-4397
SELECT + - col1 DIV col0 + 35 + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-158
-1993
-2967

skipif mysql # not compatible
query I rowsort label-4397
SELECT + - col1 / col0 + 35 + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-158
-1993
-2967

onlyif mysql # use DIV operator for integer division
query I rowsort label-4398
SELECT + + col1 + col2 DIV + col1 - col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4398
SELECT + + col1 + col2 / + col1 - col1 AS col1 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT col2 * + col0 * CAST( ( - col2 ) * col2 AS SIGNED ) FROM tab2
----
-1370928
-137781
-4334888

skipif mysql # not compatible
query I rowsort label-4399
SELECT col2 * + col0 * CAST ( ( - col2 ) * col2 AS INTEGER ) FROM tab2
----
-1370928
-137781
-4334888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4400
SELECT DISTINCT 42 + + col2 + - CAST( NULL AS SIGNED ) * 71 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT 42 + + col2 + - CAST ( NULL AS INTEGER ) * 71 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * col1 + ( + col1 ) * - col1 + col1 FROM tab0
----
-12707
-16289
-9374

query I rowsort
SELECT col1 + 27 FROM tab1 AS cor0
----
37
40
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT + col0 DIV col2 + - 71 * - col0 - cor0.col2 FROM tab0 AS cor0
----
1671
2519
6238

skipif mysql # not compatible
query I rowsort label-4403
SELECT + col0 / col2 + - 71 * - col0 - cor0.col2 FROM tab0 AS cor0
----
1671
2519
6238

onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT DISTINCT + ( 3 ) DIV + col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + ( 3 ) / + col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + 64 * 52 + - col2 * 69 FROM tab1 AS cor0
----
-3296
-398
-605

query I rowsort
SELECT DISTINCT + + 7 + ( col2 ) FROM tab2 AS cor0
----
33
34
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT ALL col2 DIV 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL col2 / 77 FROM tab2
----
0
0
0

query I rowsort
SELECT + - col2 + col1 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - ( + col2 ) * 53 FROM tab0
----
-1749
-4346
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-4410
SELECT - tab2.col2 DIV col1 col0 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4410
SELECT - tab2.col2 / col1 col0 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * col2 col1 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + col1 * - 54 col0 FROM tab2 AS cor0
----
-1662
-3174
-906

query I rowsort
SELECT - 51 - - 83 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT - ( + col2 ) - + tab2.col0 AS col1 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT + col0 * + 49 + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1175
1714
4360

skipif mysql # not compatible
query I rowsort label-4415
SELECT + col0 * + 49 + col0 / - col0 AS col1 FROM tab0 AS cor0
----
1175
1714
4360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4416
SELECT + cor0.col1 * col2 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT + cor0.col1 * col2 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4417
SELECT ALL + 85 + + col1 * CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
-7311
-8196
-9324

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL + 85 + + col1 * CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-7311
-8196
-9324

query I rowsort
SELECT - cor0.col1 + - ( col0 + - col1 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col1 * + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + col2 * 61 * 54 FROM tab0
----
108702
270108
3294

query I rowsort
SELECT + + col0 * 62 + col1 AS col0 FROM tab0 AS cor0
----
1574
2267
5609

query I rowsort
SELECT - cor0.col1 + + col1 * col1 + cor0.col0 AS col0 FROM tab1 cor0
----
154
236
653

query I rowsort
SELECT 88 + - col0 + - col0 FROM tab2 AS cor0
----
-68
-70
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col2 FROM tab2 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + 68 * col1 * - col2 AS col1 FROM tab1 AS cor0
----
-38760
-84864
-95472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4426
SELECT ALL CAST( NULL AS SIGNED ) + col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 + col0 * - col0 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT - - col2 * - cor0.col0 * + col0 + + col0 FROM tab2 cor0
----
-1316
-158106
-237079

query I rowsort
SELECT - 95 * + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT DISTINCT col0 + 91 * - col0 AS col1 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT - ( 63 ) + + cor0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to a06e44a1407eb1c8f5f1a258854c0d79

query I rowsort
SELECT - - col0 + col0 + col2 FROM tab0 cor0
----
260
71
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4433
SELECT - + 78 - col1 DIV + col1 AS col1 FROM tab1 cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-4433
SELECT - + 78 - col1 / + col1 AS col1 FROM tab1 cor0
----
-79
-79
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4434
SELECT ALL + - CAST( NULL AS SIGNED ) * 93 + + col0 * + col0 - 67 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + - CAST ( NULL AS INTEGER ) * 93 + + col0 * + col0 - 67 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + 74 + 24 * - col2 AS col0 FROM tab0 AS cor0
----
-1894
-718
50

query I rowsort
SELECT DISTINCT + 19 + col2 FROM tab0 cor0
----
101
20
52

query I rowsort
SELECT ALL + 20 * col2 AS col2 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT DISTINCT col0 * - col0 + 2 * 93 * col2 FROM tab1 AS cor0
----
10035
11456
6506

query I rowsort
SELECT + - col2 * + cor0.col0 + 36 FROM tab0 AS cor0
----
-7262
-756
1

query I rowsort
SELECT ALL 94 FROM tab1 cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4442
SELECT DISTINCT ( - cor0.col1 ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT ( - cor0.col1 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * col0 * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - 18 + - col2 * col0 FROM tab0 AS cor0
----
-53
-7316
-810

query I rowsort
SELECT ALL - col2 * col0 + + 55 AS col2 FROM tab0 AS cor0
----
-7243
-737
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT DISTINCT + col2 DIV + 43 + col1 AS col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + col2 / + 43 + col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - 76 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab2, tab1 AS cor0, tab1 cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT ALL 21 + 30 FROM tab1
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4450
SELECT DISTINCT - col2 DIV 5 + col1 FROM tab1
----
-1
-6
16

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT - col2 / 5 + col1 FROM tab1
----
-1
-6
16

query I rowsort
SELECT col1 * 30 + - tab0.col2 FROM tab0
----
2547
2648
2909

query I rowsort
SELECT 56 - ( + col1 + + col1 ) * col0 FROM tab0
----
-16142
-4072
-6734

query I rowsort
SELECT DISTINCT - - col2 * 33 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT cor0.col1 * - 75 AS col2 FROM tab2 AS cor0
----
-1275
-2325
-4425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4455
SELECT + - col1 / CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4455
SELECT + - col1 / CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * col1 + ( + col0 ) FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT ALL - + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - + col0 / - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT col0 * 63 AS col1 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT ALL ( - col0 ) * 76 FROM tab2
----
-532
-5928
-6004

query I rowsort
SELECT ALL col0 * - 24 - + col2 * + col2 * + 98 AS col1 FROM tab0
----
-107298
-661088
-938

query I rowsort
SELECT + col0 * cor0.col1 + col0 AS col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT - cor0.col2 * - ( col2 + + col2 ) * col1 AS col0 FROM tab0 AS cor0
----
1223768
187308
194

query I rowsort
SELECT - - ( 57 ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT col0 * col1 + + col1 + + col1 * col2 FROM tab2 AS cor0
----
1085
2006
6195

onlyif mysql # use DIV operator for integer division
query I rowsort label-4465
SELECT ALL 31 * col0 DIV col1 + + 69 AS col2 FROM tab1
----
259
267
72

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL 31 * col0 / col1 + + 69 AS col2 FROM tab1
----
259
267
72

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + 35 + - col0 * - col1 AS col1 FROM tab1
----
1075
113
675

query I rowsort
SELECT ALL col0 * + col1 + - ( + col1 ) + col0 FROM tab1
----
1107
55
694

query I rowsort
SELECT 65 AS col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT - col2 * col0 * - 79 FROM tab2
----
14931
160212
237158

query I rowsort
SELECT DISTINCT - ( col0 ) * 2 * tab0.col1 + + col0 * 67 AS col1 FROM tab0
----
-10235
-2520
-4445

query I rowsort
SELECT DISTINCT 39 FROM tab2, tab1, tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT col1 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT ALL + col0 + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + col0 + col0 / + col1 AS col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT - + 57 AS col2 FROM tab1 AS cor0
----
-57
-57
-57

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac

query I rowsort
SELECT ALL - col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * + ( ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4480
SELECT ALL - + col0 DIV cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - + col0 / cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT - col0 * - col0 + - col0 + - col1 FROM tab2 AS cor0
----
11
5947
6145

query I rowsort
SELECT - + col2 * + 63 AS col0 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT ALL + cor0.col1 + 61 AS col1 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT ALL - + col2 + - cor0.col1 * + 0 * col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + col2 + + 72 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT col0 + 13 AS col0 FROM tab1 AS cor0
----
16
77
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4488
SELECT col0 * + CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-4488
SELECT col0 * + CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4096
6400
9

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT IN ( - col2 * col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col0 AND + col0 + - col0 * col2
----

query I rowsort
SELECT + col2 + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT tab2.col1 + col0 * col0 FROM tab2
----
6143
6258
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT col1 + col0 + col0 * col1 FROM tab2
----
1439
255
4739

query I rowsort
SELECT DISTINCT - tab2.col0 - - col2 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-4497
SELECT ALL + col1 * col1 DIV col2 + + tab1.col0 AS col2 FROM tab1
----
15
65
81

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + col1 * col1 / col2 + + tab1.col0 AS col2 FROM tab1
----
15
65
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) = + tab1.col0 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < ( NULL )
----

query I rowsort
SELECT DISTINCT - + col1 + - col1 AS col0 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT ALL - 74 * col0 + - 62 * col2 FROM tab2 AS cor0
----
-2192
-7384
-8202

onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT ALL tab0.col1 DIV col1 + - col2 * + col2 FROM tab0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL tab0.col1 / col1 + - col2 * + col2 FROM tab0
----
-1088
-6723
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 col2 FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4504
SELECT ALL + tab2.col1 DIV + col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL + tab2.col1 / + col1 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT col2 * - col1 + col0 + + tab2.col2 * tab2.col1 * - col2 AS col1 FROM tab2
----
-23429
-25115
-41340

query I rowsort
SELECT + tab0.col1 FROM tab0 WHERE col0 IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT + cor0.col1 DIV col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4507
SELECT + cor0.col1 / col1 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL 21 + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
45
56

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT col2 + col0 * - col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - ( col1 * + tab0.col0 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 26 + col1 AS col2 FROM tab1
----
36
39
52

query I rowsort
SELECT cor0.col1 + + ( + col0 ) + col0 * + col1 FROM tab0 AS cor0
----
2174
3527
8279

onlyif mysql # use DIV operator for integer division
query I rowsort label-4514
SELECT ALL col2 DIV + cor0.col0 col1 FROM tab2 cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL col2 / + cor0.col0 col1 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - 12 - - cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab2, tab2 cor1
----
12
23
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4516
SELECT ALL + col1 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + col1 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab0, tab1 AS cor0
----
73

query I rowsort
SELECT + col0 * + ( - 77 ) + col0 FROM tab2
----
-532
-5928
-6004

query I rowsort
SELECT ALL 14 * ( col2 + + 65 ) FROM tab2
----
1274
1288
1442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4520
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( col0 + + col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( col0 + + col0 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - - 48 AS col1 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT + ( col2 ) DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT + ( col2 ) / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + 40 FROM tab1, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - 5 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-10140
-15010
-945

onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT + 71 * - col2 DIV col2 col0 FROM tab0 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4526
SELECT + 71 * - col2 / col2 col0 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - + col1 + + col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col0 - + 80 AS col1 FROM tab0 AS cor0
----
-104
-115
-169

onlyif mysql # use DIV operator for integer division
query I rowsort label-4529
SELECT - + col1 DIV ( col0 * col1 ) + - col2 * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-4529
SELECT - + col1 / ( col0 * col1 ) + - col2 * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + - col1 * + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT col0 * - col0 + - col1 + + col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col1 + + ( col2 + + col1 ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT + - col2 + - CAST( 22 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-104
-23
-55

skipif mysql # not compatible
query I rowsort label-4533
SELECT + - col2 + - CAST ( 22 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-104
-23
-55

query I rowsort
SELECT DISTINCT + col1 * col0 * - 92 AS col1 FROM tab2
----
-123556
-19964
-423384

query I rowsort
SELECT ALL 27 * tab1.col1 FROM tab1
----
270
351
702

query I rowsort
SELECT DISTINCT - col0 + + col0 - + 68 * col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT + col2 * + cor0.col0 + 52 FROM tab2 AS cor0
----
2080
241
3054

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + + CAST ( + 85 AS REAL ) FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT DISTINCT + + col0 - ( + col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT ALL - col2 + - ( + col1 ) DIV 67 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - col2 + - ( + col1 ) / 67 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT + ( 49 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
81 values hashing to e587c122dea39a2488ff88b884cea462

query I rowsort
SELECT DISTINCT + col1 + - ( col2 ) * col1 AS col2 FROM tab2
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col1 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT - 75 + cor1.col0 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to f2cfdca118fbd7a432d73cb475b314d8

query I rowsort
SELECT 82 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT 5 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9

query I rowsort
SELECT DISTINCT + col1 + + tab1.col2 - + 92 * + col2 FROM tab1
----
-4888
-5177
-8723

query I rowsort
SELECT DISTINCT - 95 - - col1 AS col0 FROM tab1
----
-69
-82
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4549
SELECT col2 + + col0 * CAST( NULL AS SIGNED ) - + 18 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT col2 + + col0 * CAST ( NULL AS INTEGER ) - + 18 * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT - col0 DIV col1 + - 46 * + col2 FROM tab0 cor0
----
-1518
-3772
-46

skipif mysql # not compatible
query I rowsort label-4550
SELECT - col0 / col1 + - 46 * + col2 FROM tab0 cor0
----
-1518
-3772
-46

query I rowsort
SELECT - tab0.col2 * - col1 + 46 FROM tab0
----
143
2884
7508

onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT - cor0.col1 * col1 + col2 - + col1 DIV - col1 FROM tab0 cor0
----
-7362
-8198
-9407

skipif mysql # not compatible
query I rowsort label-4552
SELECT - cor0.col1 * col1 + col2 - + col1 / - col1 FROM tab0 cor0
----
-7362
-8198
-9407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 25 * col0 + 58 + ( - tab2.col1 + col2 ) * + 12 * col1 AS col2 FROM tab2
----
-1605
-25256
2367

query I rowsort
SELECT ALL + - 42 + col0 + + 2 AS col0 FROM tab0 AS cor0
----
-16
-5
49

query I rowsort
SELECT ALL + col2 + col2 * col1 * + col0 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT ALL - 73 + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-106
-52
-77

query I rowsort
SELECT ALL + - col2 + + col0 * + col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT col1 + + ( col2 ) + col1 AS col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT + + col0 * - ( + cor0.col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 71 * col2 col2 FROM tab0 AS cor0
----
2376
5904
72

query I rowsort
SELECT - col0 * + ( cor0.col0 ) + - col1 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1323
-14736
-1751

query I rowsort
SELECT ( - col1 ) * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + ( ( tab2.col0 ) ) AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL col1 - + col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - + 10 * ( col1 ) + + 98 FROM tab0 AS cor0
----
-762
-812
-872

query I rowsort
SELECT DISTINCT col1 * col0 * + col0 + col2 AS col1 FROM tab1 cor0
----
288
41017
83296

query I rowsort
SELECT ALL ( + col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col0 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + 13 * + ( + col2 ) FROM tab1 AS cor0
----
1248
702
741

query I rowsort
SELECT - cor2.col1 + 56 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 6a8265189c56070e6f43803dccc2c827

query I rowsort
SELECT ALL - 54 AS col2 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL + 61 - - col2 FROM tab2 AS cor0
----
87
88
99

query I rowsort
SELECT DISTINCT + 88 * + col2 * 37 + + col0 FROM tab1 AS cor0
----
175827
185656
312656

query I rowsort
SELECT - - col0 * col0 + + col2 FROM tab1 AS cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 + - col1 * + col2 col2 FROM tab0 cor0
----
-160
-2901
-7525

query I rowsort
SELECT DISTINCT - 95 * col0 + col1 + cor0.col0 * - col2 * - cor0.col0 FROM tab2 AS cor0
----
150833
229670
689

query I rowsort
SELECT ALL col1 + col1 + cor0.col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT + + col0 * + col1 - cor0.col1 AS col2 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT - - 83 AS col2 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT + cor0.col2 DIV - cor0.col0 col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4583
SELECT + cor0.col2 / - cor0.col0 col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4584
SELECT ALL cor0.col0 DIV + 44 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL cor0.col0 / + 44 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT + + cor0.col1 * - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 78 + col2 FROM tab0
----
111
160
79

query I rowsort
SELECT + cor1.col2 + 97 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to 6593798057d90420ec9fb6b5fc1b0a65

query I rowsort
SELECT + 25 + col2 + + col2 FROM tab2
----
101
77
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT DISTINCT col0 * col0 + col0 DIV - 74 FROM tab2
----
49
6083
6240

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT col0 * col0 + col0 / - 74 FROM tab2
----
49
6083
6240

query I rowsort
SELECT ALL + + cor0.col0 + cor0.col1 + col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT DISTINCT + - 4 + 45 FROM tab1 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col1 FROM tab1 cor0
----
16
16
16

query I rowsort
SELECT ALL + + cor0.col2 * - ( + cor0.col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 31 * col0 + cor0.col2 * 82 FROM tab0 AS cor0
----
1167
3450
9483

query I rowsort
SELECT ALL + col1 * col0 * + tab1.col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT - col1 * + cor0.col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + - col2 col1 FROM tab2
----
-1
-12
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4599
SELECT cor0.col1 + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-4599
SELECT cor0.col1 + col2 / + col0 AS col2 FROM tab0 AS cor0
----
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + 70 * + col1 * col1 col1 FROM tab1
----
3352
4150
47158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * ( + col1 ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * - 49 AS col1 FROM tab1 cor0
----
-1274
-490
-637

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4603
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4603
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL - col1 + + 33 AS col0 FROM tab2 AS cor0
----
-26
16
2

query I rowsort
SELECT + col1 * - 81 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT + col1 * + ( 18 ) + col1 AS col2 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT ALL - col2 * - 95 * - 44 AS col2 FROM tab2 AS cor0
----
-108680
-112860
-158840

query I rowsort
SELECT ALL col0 * 34 AS col0 FROM tab2
----
238
2652
2686

query I rowsort
SELECT - 73 + - 18 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # use DIV operator for integer division
query I rowsort label-4610
SELECT + ( + col2 ) DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4610
SELECT + ( + col2 ) / col0 AS col2 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + - col2 + + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 + - col1 col1 FROM tab1 cor0
----
21
24
8

query I rowsort
SELECT ALL - - col2 * col0 + + ( col1 ) * - col1 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT DISTINCT - col0 + col0 * 47 + + col2 AS col1 FROM tab2 AS cor0
----
349
3614
3672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 * - col1 - ( - cor0.col2 ) col1 FROM tab1 AS cor0
----
237
330
522

query I rowsort
SELECT col1 + - col1 * + ( - col2 + + col2 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + cor0.col2 * col0 + + 44 FROM tab2 AS cor0
----
2072
233
3046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 + + cor0.col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT 56 * + 17 FROM tab2, tab2 cor0
----
9 values hashing to ba9556e4eca688d662fa154c6add1bf1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab1
----
23

query I rowsort
SELECT + - 17 + 45 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
108
31
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT + col0 + 80 * col0 DIV + ( col0 ) AS col2 FROM tab1 cor0
----
144
160
83

skipif mysql # not compatible
query I rowsort label-4624
SELECT + col0 + 80 * col0 / + ( col0 ) AS col2 FROM tab1 cor0
----
144
160
83

query I rowsort
SELECT + 77 * cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
6655
7089
7470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * + ( col1 ) col0 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT + col2 + 19 AS col2 FROM tab0 AS cor0
----
101
20
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4628
SELECT + - 36 * - ( cor0.col1 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT + - 36 * - ( cor0.col1 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 - 51 FROM tab1 cor0
----
-48
13
29

query I rowsort
SELECT DISTINCT col0 * - col1 - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - col1 * - 1 + + col1 * + cor0.col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - 31 FROM tab1 cor0
----
-31

query I rowsort
SELECT + 75 * + 24 FROM tab0 AS cor0
----
1800
1800
1800

query I rowsort
SELECT + cor0.col2 * - cor0.col2 - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-10464
-3819
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 - col2 col2 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * + col1 + - col1 col1 FROM tab0 AS cor0
----
-258
-273
-291

query I rowsort
SELECT DISTINCT col0 * col1 * col2 + - 22 FROM tab2 cor0
----
119630
51012
5837

query I rowsort
SELECT ALL + 48 AS col2 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT + col0 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL col2 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL - col2 * col2 - col0 FROM tab1
----
-2919
-3313
-9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-4643
SELECT col1 DIV - 4 AS col0 FROM tab0 cor0
----
-21
-22
-24

skipif mysql # not compatible
query I rowsort label-4643
SELECT col1 / - 4 AS col0 FROM tab0 cor0
----
-21
-22
-24

query I rowsort
SELECT ALL col2 * + ( col1 ) FROM tab0
----
2838
7462
97

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2, tab2
----
13122 values hashing to b23dcf09bd451edc0ca7fab87fb7310e

query I rowsort
SELECT DISTINCT + 97 * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1261
-2522
-970

query I rowsort
SELECT - ( + 81 ) AS col1 FROM tab0 cor0
----
-81
-81
-81

query I rowsort
SELECT + col1 * 55 FROM tab2
----
1705
3245
935

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1, tab2 AS cor2, tab0
----
13122 values hashing to 63fc1a6e143241421dd28316391ec885

query I rowsort
SELECT DISTINCT + 87 * - col0 * col0 AS col2 FROM tab1
----
-356352
-556800
-783

query I rowsort
SELECT - ( - 92 ) FROM tab1
----
92
92
92

query I rowsort
SELECT ALL 31 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - col0 + - col1 col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT col0 * 94 AS col2 FROM tab0
----
2256
3290
8366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4655
SELECT DISTINCT - CAST( col2 AS SIGNED ) * + col1 col0 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * + col1 col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + 17 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
126
1404
1422

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4657
SELECT CAST( + ( col1 ) AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4657
SELECT CAST ( + ( col1 ) AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 80 ) * + cor0.col0 col0 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT DISTINCT + 75 * col2 AS col0 FROM tab2 cor0
----
1950
2025
2850

query I rowsort
SELECT ALL + + 49 + + 44 * col2 AS col2 FROM tab0 AS cor0
----
1501
3657
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col0 FROM tab2 cor0
----
18

query I rowsort
SELECT col2 * tab2.col0 * 37 FROM tab2
----
111074
6993
75036

query I rowsort
SELECT ALL 92 + - tab1.col0 + + 70 AS col1 FROM tab1
----
159
82
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT - tab2.col0 DIV col0 - - col1 AS col2 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4664
SELECT - tab2.col0 / col0 - - col1 AS col2 FROM tab2
----
16
30
58

query I rowsort
SELECT - 14 - + tab1.col1 * 0 FROM tab1
----
-14
-14
-14

query I rowsort
SELECT + 9 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1525
-637
-828

query I rowsort
SELECT cor0.col0 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT cor0.col2 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT ALL + col2 DIV 37 + + col1 DIV cor0.col0 + 97 * col1 FROM tab0 AS cor0
----
8345
8830
9411

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + col2 / 37 + + col1 / cor0.col0 + 97 * col1 FROM tab0 AS cor0
----
8345
8830
9411

query I rowsort
SELECT - col2 * - ( 97 + - col2 ) * 79 FROM tab2 AS cor0
----
145834
149310
177118

query I rowsort
SELECT ALL - col1 + - cor0.col0 * col1 AS col1 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT - col1 * ( col1 * - col0 ) FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT - col0 * 85 FROM tab1 AS cor0
----
-255
-5440
-6800

query I rowsort
SELECT + col2 + + 22 AS col2 FROM tab1 AS cor0
----
118
76
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - + col1 + ( - ( - col1 ) ) * col0 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + - col2 * col2 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT - + col2 * 9 FROM tab1 AS cor0
----
-486
-513
-864

query I rowsort
SELECT ALL - col1 * 87 AS col0 FROM tab2 cor0
----
-1479
-2697
-5133

onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT DISTINCT + col0 + ( col1 ) + - col1 DIV - ( col0 * - col1 ) AS col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + col0 + ( col1 ) + - col1 / - ( col0 * - col1 ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - - col1 * cor0.col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - col0 * col0 * - tab1.col1 + ( col1 ) * + col0 AS col2 FROM tab1
----
312
41600
84240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * cor0.col1 col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + 8 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + + col2 col2 FROM tab1 AS cor0
----
149
152
191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 12 col0 FROM tab1 AS cor0
----
36
768
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * - 3 col2 FROM tab2 AS cor0
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col2 col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + 99 + 26 FROM tab0 AS cor0
----
125

query I rowsort
SELECT ALL - 24 AS col0 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT + 72 * cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f118b603cf3ca0c11299a09cd9993ba9

query I rowsort
SELECT ALL col1 + + col1 * col2 + - tab2.col0 * tab2.col1 AS col2 FROM tab2
----
-3009
-680
651

query I rowsort
SELECT ALL 92 FROM tab2, tab0 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL - col1 + 17 + + col2 FROM tab2
----
-16
13
38

query I rowsort
SELECT col0 * + ( - col1 + - tab0.col0 ) FROM tab0
----
-16020
-2640
-4620

query I rowsort
SELECT col0 * col2 * col2 - col2 * + ( + col1 ) FROM tab1
----
207366
7344
736032

query I rowsort
SELECT col2 + col2 + tab0.col2 * - col1 AS col2 FROM tab0
----
-2772
-7298
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT ALL - col0 + tab2.col2 DIV - col0 AS col0 FROM tab2
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - col0 + tab2.col2 / - col0 AS col0 FROM tab2
----
-10
-78
-79

query I rowsort
SELECT - 44 + ( col0 ) FROM tab2 AS cor0
----
-37
34
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4700
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 37 AS col0 FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT + 94 * col2 AS col1 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT + col2 * - 33 * col1 FROM tab1 AS cor0
----
-18810
-41184
-46332

onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT + - 44 * + col1 + - col2 DIV + ( + 60 ) col2 FROM tab2 AS cor0
----
-1364
-2596
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4704
SELECT + - 44 * + col1 + - col2 / + ( + 60 ) col2 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT + - col1 * - col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + 53 * + col1 FROM tab2
----
1643
3127
901

query I rowsort
SELECT ALL 16 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT - ( - col1 ) * tab2.col2 AS col1 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4709
SELECT CAST( col1 AS SIGNED ) * + col2 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4709
SELECT CAST ( col1 AS INTEGER ) * + col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - + ( col2 ) * + 61 FROM tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT ( col0 ) + + col2 * 88 FROM tab0 AS cor0
----
123
2928
7305

query I rowsort
SELECT + - 13 + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
176
2015
2989

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT - + col0 * cor0.col1 + 92 DIV cor0.col1 FROM tab1 AS cor0
----
-1033
-631
-75

skipif mysql # not compatible
query I rowsort label-4713
SELECT - + col0 * cor0.col1 + 92 / cor0.col1 FROM tab1 AS cor0
----
-1033
-631
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4714
SELECT ALL + - col1 * col2 + + col1 DIV + col2 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + - col1 * col2 + + col1 / + col2 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - - col1 + ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort
SELECT - - col2 - CAST ( ( col2 ) + ( - 43 ) AS REAL ) * - col2 FROM tab1 AS cor0
----
5184
648
855

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT DISTINCT col0 + - col0 * - 54 * - col1 AS col1 FROM tab0 AS cor0
----
-111432
-183295
-437257

query I rowsort
SELECT + col1 * 83 - col2 AS col1 FROM tab2 AS cor0
----
1373
2546
4871

query I rowsort
SELECT DISTINCT - - col2 + - 39 AS col0 FROM tab1 AS cor0
----
15
18
57

query I rowsort
SELECT 64 - 42 AS col0 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT - 72 + - col2 AS col1 FROM tab2 AS cor0
----
-110
-98
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * col2 - + col0 col2 FROM tab1 AS cor0
----
-3999
-4282
-7184

query I rowsort
SELECT - col1 * col2 - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - 29 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL 24 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4727
SELECT cor0.col0 * - CAST( cor0.col0 + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1152
-15842
-2450

skipif mysql # not compatible
query I rowsort label-4727
SELECT cor0.col0 * - CAST ( cor0.col0 + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1152
-15842
-2450

query I rowsort
SELECT + + cor0.col1 + + col0 * - 67 * col1 AS col2 FROM tab2 AS cor0
----
-14508
-308275
-89964

query I rowsort
SELECT + ( col1 ) * - col2 + + 40 * 28 * - col0 + col2 FROM tab0 AS cor0
----
-107060
-29685
-39296

query I rowsort
SELECT - 58 * col0 * + col0 FROM tab1 AS cor0
----
-237568
-371200
-522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4731
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 73 * - col0 AS col2 FROM tab1 AS cor0
----
-219
-4672
-5840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4733
SELECT DISTINCT + CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 + - 42 * cor0.col2 FROM tab0 cor0
----
-1300
-3353
55

query I rowsort
SELECT DISTINCT - col1 * + 98 AS col2 FROM tab1 AS cor0
----
-1274
-2548
-980

onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT ALL - ( col1 ) + - col0 DIV 93 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL - ( col1 ) + - col0 / 93 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col1 + cor0.col0 * + col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT - - cor0.col2 * 56 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-31920
-69888
-78624

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col2 * col0 FROM tab1 cor0
----
233472
486
614400

query I rowsort
SELECT ALL col2 * 53 AS col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT ALL - + 0 + 99 AS col1 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT - 30 * col1 * + col1 AS col0 FROM tab0 AS cor0
----
-221880
-248430
-282270

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) * col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ( 89 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT - col0 + + col2 * col0 AS col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT - - 55 + + col0 AS col0 FROM tab1 AS cor0
----
119
135
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * - col0 + col0 col0 FROM tab2 AS cor0
----
-175
-1872
-2844

query I rowsort
SELECT DISTINCT - col2 + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + 11 + - col1 FROM tab2 AS cor0
----
-20
-48
-6

query I rowsort
SELECT - cor0.col1 * + col1 * 7 + - col2 + col2 AS col0 FROM tab2 AS cor0
----
-2023
-24367
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4751
SELECT ALL + col2 + CAST( cor0.col0 * + col1 + - col1 * col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL + col2 + CAST ( cor0.col0 * + col1 + - col1 * col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT DISTINCT - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - col0 / col0 AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4753
SELECT + + cor0.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT + + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 * ( col1 ) FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4755
SELECT ALL + cor0.col1 * CAST( NULL AS SIGNED ) * ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + cor0.col1 * 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 DISTINCT - col1 + 60 col1 FROM tab1 AS cor0
----
34
47
50

query I rowsort
SELECT DISTINCT + ( 98 ) FROM tab1, tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT - - cor0.col1 * + ( - col2 ) + - cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT ALL - cor0.col1 * 72 + 18 * + col2 * ( col1 * col0 ) FROM tab2 AS cor0
----
103230
2149488
917388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4760
SELECT DISTINCT - cor0.col1 + CAST( + col0 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-62
706
7207

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT - cor0.col1 + CAST ( + col0 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT DISTINCT + col0 + 22 DIV - col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT + col0 + 22 / - col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 41 - col1 * - col2 AS col0 FROM tab0
----
2797
56
7421

query I rowsort
SELECT ALL + cor0.col0 + + col1 * - col1 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + col1 * 20 + col0 AS col2 FROM tab2 AS cor0
----
1258
419
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - col2 + - 21 col0 FROM tab2 AS cor0
----
-2049
-210
-3023

onlyif mysql # use DIV operator for integer division
query I rowsort label-4766
SELECT DISTINCT - col0 * + 96 + + 72 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-286
-6137
-7675

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT - col0 * + 96 + + 72 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-286
-6137
-7675

query I rowsort
SELECT + col2 * + ( col0 ) + - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
92

query I rowsort
SELECT + ( col2 ) * 42 + col2 * + col2 + - 95 * ( col1 ) FROM tab2 AS cor0
----
-1082
-3837
1425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4770
SELECT ( col0 ) * CAST( NULL AS SIGNED ) + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT ( col0 ) * CAST ( NULL AS INTEGER ) + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT DISTINCT - + 22 + + col0 DIV + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - + 22 + + col0 / + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT ALL - 83 AS col0 FROM tab0 cor0
----
-83
-83
-83

query I rowsort
SELECT col0 + col1 * 22 + - col1 FROM tab2 AS cor0
----
1317
436
658

onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT + 3 DIV col1 + - cor0.col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-4774
SELECT + 3 / col1 + - cor0.col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT - col0 + + tab1.col1 DIV - col1 - + 43 FROM tab1
----
-108
-124
-47

skipif mysql # not compatible
query I rowsort label-4776
SELECT - col0 + + tab1.col1 / - col1 - + 43 FROM tab1
----
-108
-124
-47

query I rowsort
SELECT ALL col1 + + col2 * col0 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT 82 + - col2 * 49 * col1 FROM tab0
----
-138980
-365556
-4671

query I rowsort
SELECT ALL 89 + + col0 FROM tab0
----
113
124
178

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4780
SELECT col1 * col2 - - CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT col1 * col2 - - CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 92 + col2 * - col1 FROM tab2
----
-1626
-738
-929

query I rowsort
SELECT - 82 * col2 AS col1 FROM tab2
----
-2132
-2214
-3116

query I rowsort
SELECT ALL + ( + col1 ) * - col2 + col2 * col2 * + 47 FROM tab1 cor0
----
135648
152133
431904

query I rowsort
SELECT - col1 + - col0 * + 12 FROM tab2 AS cor0
----
-115
-965
-995

query I rowsort
SELECT ALL col0 * col0 + col1 AS col2 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 80 + + col1 FROM tab2 AS cor0
----
111
139
97

query I rowsort
SELECT ALL col0 * - col1 - col1 * + col1 AS col2 FROM tab2
----
-1178
-1632
-8083

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * col2 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT DISTINCT col0 - - col2 DIV tab1.col1 AS col1 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT col0 - - col2 / tab1.col1 AS col1 FROM tab1
----
5
69
87

query I rowsort
SELECT tab0.col1 + col0 * col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT - tab2.col1 + col1 * - col2 AS col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT DISTINCT 39 DIV col0 AS col1 FROM tab2
----
0
5

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT 39 / col0 AS col1 FROM tab2
----
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + col0 col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - col2 * col2 + col0 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT col1 * - col1 + + col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + col2 * + col0 * col0 + col0 * col0 AS col1 FROM tab0
----
19584
2450
657443

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col2 * + col2 )
----

query I rowsort
SELECT DISTINCT col2 * + col1 * tab0.col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT col2 FROM tab0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL col0 + col2 - col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + col1 + - col2 + - tab0.col2 * - col1 AS col0 FROM tab0
----
193
2891
7471

query I rowsort
SELECT col1 + col1 * + col1 AS col0 FROM tab2
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 + + tab2.col0 * + col2 col0 FROM tab2
----
2113
247
3057

query I rowsort
SELECT - col0 * col1 + col1 * col0 - + col2 * + col2 AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL col1 * - col1 * col2 FROM tab0
----
-244068
-679042
-9409

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 + + col1 + col1 * col1 AS col1 FROM tab0
----
7515
8454
9507

query I rowsort
SELECT DISTINCT col0 * tab1.col2 + col2 * - col0 AS col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT ALL col2 * + col2 + + col0 DIV + col1 AS col2 FROM tab2
----
1448
677
729

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL col2 * + col2 + + col0 / + col1 AS col2 FROM tab2
----
1448
677
729

query I rowsort
SELECT + col1 * + tab1.col0 + col2 * - col1 * - col0 AS col0 FROM tab1
----
100880
37120
4290

query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 + + tab0.col1 * - col0 AS col0 FROM tab0
----
-12803
-16298
-9427

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * col2 + + col0 + - col2 IN ( col0 + + col1 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL - col2 * + col1 * tab1.col1 AS col0 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT - col0 + col0 - + col0 FROM tab0 WHERE NULL NOT IN ( + col0 + col0 )
----

query I rowsort
SELECT - - 57 * 19 AS col1 FROM tab0 AS cor0
----
1083
1083
1083

query I rowsort
SELECT ( + ( + col1 ) ) * - cor0.col2 + ( col2 + + col2 ) FROM tab2 cor0
----
-1482
-570
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - col1 + 21 + 0 AS col2 FROM tab0
----
-65
-70
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT ALL + CAST( 76 AS SIGNED ) * col0 + 83 DIV 31 FROM tab2 AS cor0
----
534
5930
6006

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + CAST ( 76 AS INTEGER ) * col0 + 83 / 31 FROM tab2 AS cor0
----
534
5930
6006

query I rowsort
SELECT ALL col1 - col2 * 72 AS col0 FROM tab0 AS cor0
----
-2290
-5813
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-4824
SELECT - + 46 * - col0 + + col2 DIV + 75 AS col0 FROM tab2 AS cor0
----
322
3588
3634

skipif mysql # not compatible
query I rowsort label-4824
SELECT - + 46 * - col0 + + col2 / + 75 AS col0 FROM tab2 AS cor0
----
322
3588
3634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT DISTINCT - col0 DIV + cor0.col0 + + 95 AS col0 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT - col0 / + cor0.col0 + + 95 AS col0 FROM tab2 AS cor0
----
94

query I rowsort
SELECT + cor0.col2 * col2 + + 22 * col0 AS col2 FROM tab1 AS cor0
----
10976
2982
4657

query I rowsort
SELECT tab2.col2 * col1 * - col2 AS col0 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL cor1.col1 + 5 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f39c8002930faaf7cd244787c1458495

query I rowsort
SELECT + 86 + + col2 AS col1 FROM tab0
----
119
168
87

query I rowsort
SELECT DISTINCT + tab0.col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 75 * tab0.col2 AS col2 FROM tab0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT 70 FROM tab0, tab1 cor0
----
70

query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col2 FROM tab1 AS cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * cor0.col0 * + col1 col1 FROM tab0 AS cor0
----
145985
348257
88752

query I rowsort
SELECT ALL col2 + - 43 + col1 AS col2 FROM tab0
----
130
55
76

query I rowsort
SELECT + 88 AS col2 FROM tab1
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4838
SELECT CAST( 76 AS SIGNED ) FROM tab0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-4838
SELECT CAST ( 76 AS INTEGER ) FROM tab0
----
76
76
76

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT 81 * cor0.col0 FROM tab0 cor0
----
1944
2835
7209

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
48

query I rowsort
SELECT + - col1 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT - cor0.col2 + 4 AS col1 FROM tab2 AS cor0
----
-22
-23
-34

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ALL 32 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL + col2 * col0 + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT DISTINCT 53 + 97 DIV tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
54
55
57

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT 53 + 97 / tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
54
55
57

query I rowsort
SELECT DISTINCT 52 FROM tab2, tab1 cor0
----
52

query I rowsort
SELECT DISTINCT - col1 * - 5 AS col2 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT DISTINCT + - col0 + - 31 * + col2 FROM tab0 AS cor0
----
-1047
-2631
-66

query I rowsort
SELECT - + cor0.col1 * - 70 AS col0 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT 93 * - col2 + col0 FROM tab0 AS cor0
----
-3045
-58
-7537

query I rowsort
SELECT DISTINCT + col1 * col1 * cor0.col1 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT ALL ( + col2 ) + - col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT - 57 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 57 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4858
SELECT DISTINCT + CAST( + 1 AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT + CAST ( + 1 AS INTEGER ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - - col2 + - 14 FROM tab2 AS cor0
----
12
13
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 - - col1 * + col1 col2 FROM tab2 AS cor0
----
307
3499
979

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col0 * col1 - col0 * - 94 AS col2 FROM tab1 AS cor0
----
360
6656
8560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT DISTINCT - - col2 + - cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - - col2 + - cor0.col2 / - col0 AS col0 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT ALL 43 + col2 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT ALL - ( + ( cor0.col1 ) ) + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT DISTINCT + col0 DIV - col1 + + cor0.col2 * + 52 FROM tab2 AS cor0
----
1351
1404
1972

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT + col0 / - col1 + + cor0.col2 * + 52 FROM tab2 AS cor0
----
1351
1404
1972

query I rowsort
SELECT ALL - - 34 + - cor0.col2 * + col1 FROM tab2 AS cor0
----
-1500
-612
-803

query I rowsort
SELECT + col0 - 68 AS col0 FROM tab0 AS cor0
----
-33
-44
21

query I rowsort
SELECT ALL cor0.col2 * col2 + col2 AS col2 FROM tab2 cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT ALL + 14 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 14 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 86 * - col0 + - col1 FROM tab1 AS cor0
----
-284
-5514
-6893

query I rowsort
SELECT DISTINCT - - 36 + + col2 AS col1 FROM tab0 cor0
----
118
37
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4874
SELECT DISTINCT + + col2 * + col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + + col2 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + - 58 FROM tab2 cor0
----
-58
-58
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4876
SELECT ALL - + 26 + col0 DIV 81 AS col0 FROM tab0 cor0
----
-25
-26
-26

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL - + 26 + col0 / 81 AS col0 FROM tab0 cor0
----
-25
-26
-26

query I rowsort
SELECT + ( 84 ) + col2 * 89 * col0 FROM tab1
----
14502
324756
683604

query I rowsort
SELECT ALL col0 + 14 * - col2 FROM tab2
----
-286
-371
-453

query I rowsort
SELECT + 82 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to f31a8ab881ea414a64db3cbb3dee97bc

query I rowsort
SELECT DISTINCT col1 + ( 72 ) * - col1 FROM tab0 AS cor0
----
-6106
-6461
-6887

query I rowsort
SELECT DISTINCT + 13 * cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1118
1183
1261

query I rowsort
SELECT ALL col2 * 49 + col0 FROM tab0 AS cor0
----
1641
4107
84

query I rowsort
SELECT ALL + 39 * cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2748954edf32663af36ca0e77a3e9454

query I rowsort
SELECT ALL - col0 - + tab2.col2 * col0 FROM tab2
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT col0 + col0 * - col0 - - col2 DIV + 85 FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-4885
SELECT col0 + col0 * - col0 - - col2 / + 85 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT - 26 FROM tab0, tab2 AS cor0
----
-26

query I rowsort
SELECT DISTINCT + col1 * + col2 + - col1 * - 69 FROM tab2 AS cor0
----
1819
2976
5605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4888
SELECT - + ( col0 ) * + col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT - + ( col0 ) * + col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4889
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT - tab2.col0 DIV + ( + col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4890
SELECT - tab2.col0 / + ( + col0 ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 - + 30 AS col0 FROM tab0
----
-119
-54
-65

query I rowsort
SELECT DISTINCT col1 - tab0.col0 * - 6 FROM tab0
----
230
307
625

query I rowsort
SELECT + col0 * - col1 + col1 AS col1 FROM tab1
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( 36 * col2 AS REAL ) FROM tab2
----
1014
1447
979

query I rowsort
SELECT + col0 + + ( 29 ) - - col2 FROM tab1 AS cor0
----
150
205
86

query I rowsort
SELECT + col1 + col2 + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 AS col1 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - - col2 - - cor0.col2 * - ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - col2 + - 75 AS col0 FROM tab2 AS cor0
----
-101
-102
-113

query I rowsort
SELECT col0 + 2 * + col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL col1 * col1 + cor0.col2 * col1 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT DISTINCT col0 + - col0 * - 27 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT + col0 * - 50 + 69 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
40960
5232
67760

query I rowsort
SELECT DISTINCT 35 + - col2 AS col0 FROM tab0 AS cor0
----
-47
2
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4905
SELECT DISTINCT - CAST( 64 AS SIGNED ) col1 FROM tab2 AS cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - CAST ( 64 AS INTEGER ) col1 FROM tab2 AS cor0
----
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4906
SELECT ALL + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 * - col1 * + tab1.col0 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT + - col1 - col2 * 57 FROM tab0 AS cor0
----
-154
-1967
-4765

query I rowsort
SELECT DISTINCT + - 24 * + cor0.col0 FROM tab0 AS cor0
----
-2136
-576
-840

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + col0 + - CAST ( + col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
-29
-61
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT + + col2 DIV + col0 + - col0 * + col1 FROM tab0 AS cor0
----
-2063
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4911
SELECT + + col2 / + col0 + - col0 * + col1 FROM tab0 AS cor0
----
-2063
-3395
-8099

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
190
3695
7763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 + + col1 * col1 col0 FROM tab0 cor0
----
7310
8190
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 * col2 col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT DISTINCT - col2 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT 72 + + col1 * col0 - - 47 FROM tab0 cor0
----
2183
3514
8218

query I rowsort
SELECT + 10 * + col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 col1 FROM tab0
----
48

query I rowsort
SELECT + 17 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 71801088bb30ca6eac036729ebfbbace

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) * + col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 * col2 - - col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + col0 + 5 AS col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT DISTINCT col0 * col2 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - + col0 - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT 82 AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col0 FROM tab0, tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * col2 + + col1 col1 FROM tab1
----
2996
3316
9325

query I rowsort
SELECT + 30 * 79 + col0 * ( col0 ) * col1 FROM tab1 AS cor0
----
2604
43330
85570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT + - 3 * 62 DIV col0 FROM tab0 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4930
SELECT + - 3 * 62 / col0 FROM tab0 AS cor0
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT - cor0.col2 DIV col2 + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4931
SELECT - cor0.col2 / col2 + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT + col1 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - ( - col2 ) + - cor0.col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT 96 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT 92 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4936
SELECT + CAST( NULL AS SIGNED ) + + tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4936
SELECT + CAST ( NULL AS INTEGER ) + + tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + ( + col2 ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 + - 30 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-126
-39
-83

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2

query I rowsort
SELECT ALL + + col0 + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 45 col0 FROM tab0
----
127
46
78

query I rowsort
SELECT DISTINCT col2 + - 82 FROM tab0 AS cor0
----
-49
-81
0

query I rowsort
SELECT + 56 FROM tab1, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - col0 * - col0 + + 2 AS col0 FROM tab0 AS cor0
----
1227
578
7923

query I rowsort
SELECT + col0 * + 20 + col0 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT DISTINCT - 49 * cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT ALL - col0 + 71 AS col1 FROM tab0 cor0
----
-18
36
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT col0 - col2 * 29 DIV col2 FROM tab0 AS cor0
----
-5
6
60

skipif mysql # not compatible
query I rowsort label-4949
SELECT col0 - col2 * 29 / col2 FROM tab0 AS cor0
----
-5
6
60

query I rowsort
SELECT ALL - col1 * - col1 + + cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
1019
344
3566

query I rowsort
SELECT DISTINCT + - cor0.col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL 38 * col2 FROM tab1 AS cor0
----
2052
2166
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT + col0 DIV col0 - col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4953
SELECT + col0 / col0 - col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT ALL - ( col2 ) * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4955
SELECT DISTINCT + cor0.col0 * - cor0.col2 + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + cor0.col0 * - cor0.col2 + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 38 * + col1 + col2 FROM tab0 AS cor0
----
-3235
-3376
-3685

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT ALL - - CAST( col2 AS SIGNED ) + col1 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - - CAST ( col2 AS INTEGER ) + col1 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 88 + 53 FROM tab0 AS cor0
----
141

query I rowsort
SELECT ALL col0 + - ( col2 ) AS col1 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 + 13 col0 FROM tab0
----
-73
-78
-84

query I rowsort
SELECT ALL - 60 * tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ddd10bf5c5097e3c2b643dc0a5193dd3

query I rowsort
SELECT DISTINCT + col0 * - col0 * 41 + col1 AS col1 FROM tab1
----
-167926
-262387
-343

onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT col0 DIV - ( tab1.col0 ) - col0 * 27 * col0 FROM tab1
----
-110593
-172801
-244

skipif mysql # not compatible
query I rowsort label-4964
SELECT col0 / - ( tab1.col0 ) - col0 * 27 * col0 FROM tab1
----
-110593
-172801
-244

query I rowsort
SELECT ALL - col0 * + col2 * 2 AS col1 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT DISTINCT - 81 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT DISTINCT 64 * + col0 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT ALL - - ( - col2 ) * col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col0 * col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - + 25 * col1 FROM tab0 AS cor0
----
-2150
-2275
-2425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4971
SELECT ( + col0 ) * - CAST( NULL AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4971
SELECT ( + col0 ) * - CAST ( NULL AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * col0 + 50 col0 FROM tab0 AS cor0
----
1706
2465
6191

query I rowsort
SELECT - col1 * col1 * - ( - col1 ) FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL - col2 - + cor0.col1 * - col0 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4975
SELECT col2 + + col1 DIV ( + 8 ) + col1 * col2 FROM tab1 AS cor0
----
1345
1461
628

skipif mysql # not compatible
query I rowsort label-4975
SELECT col2 + + col1 / ( + 8 ) + col1 * col2 FROM tab1 AS cor0
----
1345
1461
628

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab2, tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 AS col0 FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4978
SELECT DISTINCT - CAST( + 7 + + col0 AS SIGNED ) AS col0 FROM tab1
----
-10
-71
-87

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - CAST ( + 7 + + col0 AS INTEGER ) AS col0 FROM tab1
----
-10
-71
-87

query I rowsort
SELECT ALL col0 * + col2 * - col0 - col2 FROM tab1
----
-233529
-540
-614496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4980
SELECT - col0 * + col2 * - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT - col0 * + col2 * - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 - col0 AS col2 FROM tab2 AS cor0
----
-51
-52
20

query I rowsort
SELECT ALL + col2 * col1 + + col0 * - col0 - col1 AS col1 FROM tab1
----
-3536
-5165
1369

onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT - tab2.col1 DIV tab2.col1 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4983
SELECT - tab2.col1 / tab2.col1 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + tab2.col0 + + col0 - 59 * - col0 AS col2 FROM tab2
----
427
4758
4819

query I rowsort
SELECT - col1 - + 40 AS col2 FROM tab2 AS cor0
----
-57
-71
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 + + col1 col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT - - cor0.col2 * col0 - 39 AS col2 FROM tab1 AS cor0
----
123
3609
7641

query I rowsort
SELECT - 25 + - tab2.col1 AS col1 FROM tab2
----
-42
-56
-84

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT + col2 + tab0.col1 * tab0.col1 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL col1 + + 82 * col1 + col2 AS col2 FROM tab2 AS cor0
----
1449
2600
4923

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT col2 * + col1 - 86 FROM tab1 AS cor0
----
1162
1318
484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * 78 col0 FROM tab2 AS cor0
----
-1326
-2418
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4995
SELECT DISTINCT + cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT + cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + ( col0 * col1 ) - - col1 AS col0 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT ALL - + col1 - col1 * - 47 FROM tab1 cor0
----
1196
460
598

query I rowsort
SELECT - ( col1 ) + + col0 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - 25 * + col2 AS col1 FROM tab0
----
-2050
-25
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT + 11 DIV + 11 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 11 / + 11 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 * 56 + col2 + + col0 FROM tab1 cor0
----
1513
681
904

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5003
SELECT ALL + CAST( NULL AS DECIMAL ) + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + CAST ( NULL AS REAL ) + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 1 * 56 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL - + cor0.col1 + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 3 * + 62 FROM tab0 cor0
----
186

query I rowsort
SELECT DISTINCT - - 94 + - col1 FROM tab1 AS cor0
----
68
81
84

query I rowsort
SELECT ALL + 95 + col0 * + col1 FROM tab1 AS cor0
----
1135
173
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT + 45 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-5009
SELECT + 45 / cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT ALL col0 DIV col0 + + 50 FROM tab1 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL col0 / col0 + + 50 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + col1 * col1 * 92 AS col2 FROM tab1 AS cor0
----
15548
62192
9200

query I rowsort
SELECT - 82 * - col1 AS col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT cor0.col2 * cor0.col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + ( - 86 ) * + col0 FROM tab2 AS cor0
----
-602
-6708
-6794

query I rowsort
SELECT ALL - cor0.col0 * + 36 FROM tab1 AS cor0
----
-108
-2304
-2880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT ALL + CAST( col1 AS SIGNED ) * - col2 + col2 AS col2 FROM tab2 cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + CAST ( col1 AS INTEGER ) * - col2 + col2 AS col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT + col2 * - col1 + col2 FROM tab2
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5018
SELECT + ( - col2 ) + col0 * + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5018
SELECT + ( - col2 ) + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col2 ) + + col2 AS col2 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT + + col0 * + col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - + 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT DISTINCT col2 * - col0 * + 84 AS col0 FROM tab0
----
-2940
-613032
-66528

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT ALL + cor0.col1 DIV 72 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + cor0.col1 / 72 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - col0 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - col1 * 56 FROM tab1
----
-1456
-560
-728

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
10
13
26

query I rowsort
SELECT + + col1 * + col2 + cor0.col0 * + col0 + - 28 FROM tab1 AS cor0
----
1385
4638
7620

query I rowsort
SELECT - + col1 * 4 FROM tab1 cor0
----
-104
-40
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5030
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) * col1 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 15 * - col0 col0 FROM tab1 AS cor0
----
115200
2430
54720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5032
SELECT + col0 DIV ( + col1 + - col0 ) FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5032
SELECT + col0 / ( + col1 + - col0 ) FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT 87 * - col0 AS col2 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT - + 97 + col0 * - col0 * - 76 AS col1 FROM tab2 cor0
----
3627
462287
474219

query I rowsort
SELECT + 91 * + col1 + + 82 AS col1 FROM tab0 cor0
----
7908
8363
8909

query I rowsort
SELECT - + 45 + - col1 FROM tab1 AS cor0
----
-55
-58
-71

query I rowsort
SELECT + - 91 * + col0 + 2 AS col1 FROM tab0 AS cor0
----
-2182
-3183
-8097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - 57 * col2 + 95 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-551
1406
4123

query I rowsort
SELECT - cor0.col0 + - 38 FROM tab2 AS cor0
----
-116
-117
-45

query I rowsort
SELECT - col0 * + 53 + + ( col2 ) FROM tab2 AS cor0
----
-344
-4108
-4149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 77 + col0 * - col0 col2 FROM tab1 cor0
----
293
4149
992

query I rowsort
SELECT col1 * cor0.col0 * - 6 AS col1 FROM tab0 AS cor0
----
-12384
-20370
-48594

query I rowsort
SELECT - col1 * - 57 FROM tab1 cor0
----
1482
570
741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 * + col0 col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT col0 * - cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - col2 * - ( ( - col0 - ( 95 ) - - cor0.col1 - - col2 ) ) + + col0 + + col1 AS col2 FROM tab0 cor0
----
-722
100
110

query I rowsort
SELECT ( 16 ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL tab2.col1 + + col2 * col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT ( 26 * col1 ) - - col0 AS col0 FROM tab1
----
324
418
679

query I rowsort
SELECT DISTINCT + col2 * 11 - col0 FROM tab2
----
208
290
339

onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT col0 * 28 + col2 + col0 DIV - col0 col0 FROM tab1
----
137
1848
2335

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5052
SELECT col0 * 28 + col2 + col0 / - col0 col0 FROM tab1
----
137
1848
2335

query I rowsort
SELECT ( + col0 ) * col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - col1 * - tab2.col0 + + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + ( + cor0.col2 ) + - col1 * - col2 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 * - col1 * + col0 FROM tab0 cor0
----
118922
52374
728273

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
22606
24627
39962

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT col2 + + col0 * + col2 * - col2 AS col0 FROM tab2 cor0
----
-114038
-5076
-52702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT DISTINCT + 43 DIV col0 AS col0 FROM tab1 AS cor0
----
0
14

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + 43 / col0 AS col0 FROM tab1 AS cor0
----
0
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-5062
SELECT + ( col0 ) * - col2 DIV col2 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5062
SELECT + ( col0 ) * - col2 / col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - - col0 * col0 + col2 + col2 AS col2 FROM tab0 AS cor0
----
1227
642
8085

query I rowsort
SELECT DISTINCT ( col0 ) * - tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 + ( tab1.col2 ) - col0 FROM tab1
----
54
57
96

query I rowsort
SELECT + + col0 - + col0 * - col2 * - col0 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT col1 * + ( 90 ) FROM tab2 AS cor0
----
1530
2790
5310

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT + col0 + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5068
SELECT + col0 + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 + col2 * - col0 * - col2 FROM tab1 AS cor0
----
211584
744960
8910

query I rowsort
SELECT ALL col1 * col1 + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL - - ( + 90 ) FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT 97 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT col1 * col1 - col0 * col2 FROM tab0
----
6604
9374
983

query I rowsort
SELECT - col1 * + col1 * + col0 FROM tab1 cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col1 * cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL - col2 * - col1 * + col1 AS col0 FROM tab2
----
10982
25947
90506

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL < ( + cor0.col0 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - + col0 * col0 - + col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT col0 * + col1 + - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5082
SELECT DISTINCT + col0 * col1 + col0 DIV col2 FROM tab1 AS cor0
----
1040
641
78

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + col0 * col1 + col0 / col2 FROM tab1 AS cor0
----
1040
641
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 - - col2 col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5084
SELECT ALL col0 DIV col2 + + col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL col0 / col2 + + col2 FROM tab1
----
54
58
96

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT ALL ( + tab1.col0 ) + col0 DIV col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL ( + tab1.col0 ) + col0 / col2 FROM tab1
----
3
65
80

query I rowsort
SELECT + - 5 * + col1 + col1 FROM tab1 AS cor0
----
-104
-40
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT - + 54 * col0 DIV - col2 FROM tab1 AS cor0
----
3
45
60

skipif mysql # not compatible
query I rowsort label-5088
SELECT - + 54 * col0 / - col2 FROM tab1 AS cor0
----
3
45
60

query I rowsort
SELECT + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col1 + - col1 * + col0 * col0 FROM tab1
----
-208
-40950
-83187

query I rowsort
SELECT + col1 * + col2 + - col1 * col1 FROM tab1 AS cor0
----
1079
470
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5092
SELECT DISTINCT cor0.col2 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT cor0.col2 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - + col1 + + col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT cor0.col1 + col2 * - col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - - col0 + col2 * - col0 + - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col0 * cor0.col0 + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + col1 * - col2 + + col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-108
-858
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT ALL + col0 + - col0 DIV - ( col0 ) FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + col0 + - col0 / - ( col0 ) FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - col1 * col1 + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL + ( col1 ) + + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col2 * col1 + 44 AS col0 FROM tab1 AS cor0
----
-1204
-1360
-526

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa

query I rowsort
SELECT + col1 * + 47 * col2 FROM tab0 AS cor0
----
133386
350714
4559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5104
SELECT DISTINCT - CAST( - 51 AS SIGNED ) FROM tab0, tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) FROM tab0, tab0 AS cor0
----
51

query I rowsort
SELECT - - col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT DISTINCT - CAST( + cor0.col1 AS SIGNED ) * col2 + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT - CAST ( + cor0.col1 AS INTEGER ) * col2 + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col1 + - cor0.col2 * - col0 AS col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT - 63 * - col1 + - col0 FROM tab1 AS cor0
----
1635
566
739

onlyif mysql # use DIV operator for integer division
query I rowsort label-5109
SELECT DISTINCT - cor0.col2 * col1 DIV col1 - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - cor0.col2 * col1 / col1 - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

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-5111
SELECT ALL CAST( NULL AS SIGNED ) * + col0 - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * cor0.col1 + + col2 * + 0 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL col0 * - 31 AS col0 FROM tab0
----
-1085
-2759
-744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5114
SELECT DISTINCT CAST( 0 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT CAST ( 0 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT col2 * - col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - + ( 36 ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
-36

query I rowsort
SELECT 60 * col1 * - tab2.col1 FROM tab2
----
-17340
-208860
-57660

query I rowsort
SELECT + ( col1 + col2 ) * col1 AS col2 FROM tab1
----
1417
2080
670

query I rowsort
SELECT + col1 * - col1 + - 71 AS col2 FROM tab0 AS cor0
----
-7467
-8352
-9480

query I rowsort
SELECT 8 + - col0 AS col0 FROM tab1 cor0
----
-56
-72
5

query I rowsort
SELECT + cor0.col1 + cor0.col2 FROM tab0, tab2, tab2 cor0, tab1
----
81 values hashing to f0aa498a00c4505da40a78b5c77d2a03

query I rowsort
SELECT 39 + col1 AS col0 FROM tab2
----
56
70
98

query I rowsort
SELECT DISTINCT + col1 * + col1 + 9 * col2 * col0 AS col0 FROM tab1
----
2134
32932
69289

query I rowsort
SELECT + ( - col0 ) * - tab2.col0 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT 57 DIV tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 491d62abab4b7395e5083245ba1877a1

skipif mysql # not compatible
query I rowsort label-5125
SELECT 57 / tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 491d62abab4b7395e5083245ba1877a1

query I rowsort
SELECT DISTINCT col2 + tab0.col0 + col0 FROM tab0
----
260
71
81

query I rowsort
SELECT - - 9 + col0 * 7 FROM tab1 AS cor0
----
30
457
569

query I rowsort
SELECT ALL 27 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + col2 * + col1 * - ( col1 ) + col1 FROM tab0
----
-243982
-678951
-9312

query I rowsort
SELECT ALL - col0 + tab1.col0 * col1 + col2 FROM tab1
----
1056
129
633

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col0 + + tab0.col1 FROM tab0
----
-1093
-466
-7741

query I rowsort
SELECT - col0 * + ( + 32 ) * + col0 AS col2 FROM tab0
----
-18432
-253472
-39200

query I rowsort
SELECT - - col2 * ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL col2 * 41 FROM tab1
----
2214
2337
3936

query I rowsort
SELECT + col2 * + 12 + - col0 AS col2 FROM tab1 cor0
----
1072
620
645

query I rowsort
SELECT + ( 3 ) * + col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT + + col2 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col1 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT + + ( + ( + col0 ) ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + cor0.col0 - cor0.col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT - col0 + + col1 DIV + col0 FROM tab1 cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-5142
SELECT - col0 + + col1 / + col0 FROM tab1 cor0
----
-64
-80
5

query I rowsort
SELECT ( + 47 ) - + col1 FROM tab1 AS cor0
----
21
34
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT cor0.col2 * col2 + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1445
677
730

skipif mysql # not compatible
query I rowsort label-5144
SELECT cor0.col2 * col2 + col0 / col0 AS col2 FROM tab2 AS cor0
----
1445
677
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5145
SELECT - CAST( 10 AS SIGNED ) * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-583
-704
24

skipif mysql # not compatible
query I rowsort label-5145
SELECT - CAST ( 10 AS INTEGER ) * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-583
-704
24

query I rowsort
SELECT - - cor0.col0 + 55 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT - col1 + 10 AS col0 FROM tab2
----
-21
-49
-7

query I rowsort
SELECT col0 * - col2 + - tab0.col0 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT ALL tab2.col1 * - 15 FROM tab2
----
-255
-465
-885

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab1, tab2 cor0
----
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT col2 + ( 34 ) DIV col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5151
SELECT col2 + ( 34 ) / col1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL 41 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + col2 - tab1.col1 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT 16 - - 39 FROM tab2
----
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT col2 DIV ( + tab2.col0 ) + col0 DIV col1 FROM tab2
----
1
3
4

skipif mysql # not compatible
query I rowsort label-5155
SELECT col2 / ( + tab2.col0 ) + col0 / col1 FROM tab2
----
1
3
4

query I rowsort
SELECT + tab1.col2 * col1 + + col2 * + col2 + + 69 AS col1 FROM tab1
----
10533
3888
4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT ALL + - 17 * - col2 FROM tab2 AS cor0
----
442
459
646

onlyif mysql # use DIV operator for integer division
query I rowsort label-5159
SELECT DISTINCT col1 + 56 DIV + col2 FROM tab0 AS cor0
----
153
87
91

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT col1 + 56 / + col2 FROM tab0 AS cor0
----
153
87
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * cor0.col2 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ffa0ba6bc2f00462c4fcc51270184e8c

query I rowsort
SELECT ALL - + col0 * - col1 * col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT ALL - ( + cor0.col0 ) DIV col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL - ( + cor0.col0 ) / col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 36 + tab1.col1 * - tab1.col0 + + col1 FROM tab1
----
-16
-594
-991

query I rowsort
SELECT + col2 * - tab2.col2 + 13 AS col1 FROM tab2
----
-1431
-663
-716

query I rowsort
SELECT DISTINCT 51 * col2 * col0 FROM tab1
----
186048
391680
8262

onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT - col2 DIV + tab1.col0 + col1 AS col1 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-5166
SELECT - col2 / + tab1.col0 + col1 AS col1 FROM tab1
----
10
12
8

query I rowsort
SELECT - 92 + + col2 FROM tab1 cor0
----
-35
-38
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5168
SELECT + - col2 / col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT + - col2 / col0 + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col2 FROM tab0, tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col2 col0 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT cor0.col0 + ( + col0 ) DIV + cor0.col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5171
SELECT cor0.col0 + ( + col0 ) / + cor0.col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT DISTINCT + - cor0.col2 * 72 AS col0 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT ALL col0 * + 9 * col2 AS col2 FROM tab2 AS cor0
----
1701
18252
27018

query I rowsort
SELECT 43 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - tab2.col1 * col2 * 64 FROM tab2
----
-41344
-53568
-98176

query I rowsort
SELECT ALL col0 + - col1 * + cor0.col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - col1 * ( - 18 ) FROM tab2 cor0
----
1062
306
558

query I rowsort
SELECT DISTINCT + col1 + + 8 FROM tab1 cor0
----
18
21
34

query I rowsort
SELECT - - 42 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

query I rowsort
SELECT - col2 + ( - col2 ) * col0 + 77 AS col1 FROM tab1 AS cor0
----
-139
-3628
-7699

query I rowsort
SELECT DISTINCT + col0 * col0 + 40 AS col2 FROM tab1 AS cor0
----
4136
49
6440

query I rowsort
SELECT + 83 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT + - col0 * - ( + col0 ) + col1 * - col1 FROM tab0 AS cor0
----
-360
-6820
-8184

query I rowsort
SELECT DISTINCT col0 * - col0 + - ( col2 ) FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT ALL + - col0 DIV - col0 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + - col0 / - col0 col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT + cor0.col1 DIV + col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5186
SELECT + cor0.col1 / + col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT + - 83 * 12 AS col2 FROM tab2 AS cor0
----
-996
-996
-996

query I rowsort
SELECT - 74 + + col0 * col0 FROM tab2 AS cor0
----
-25
6010
6167

query I rowsort
SELECT ALL - ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + 89 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
-56960
-6942
-92560

query I rowsort
SELECT col1 + + tab1.col1 * col2 * - col2 FROM tab1
----
-119795
-32480
-75790

onlyif mysql # use DIV operator for integer division
query I rowsort label-5194
SELECT ALL 91 * + cor0.col1 + + 6 DIV - col1 AS col1 FROM tab0 AS cor0
----
7826
8281
8827

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL 91 * + cor0.col1 + + 6 / - col1 AS col1 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT DISTINCT - + 18 - - cor0.col0 * col2 FROM tab2 AS cor0
----
171
2010
2984

query I rowsort
SELECT DISTINCT + 87 * + cor0.col0 FROM tab1 cor0
----
261
5568
6960

query I rowsort
SELECT cor0.col0 - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT ALL + + col2 + - col0 + + col0 DIV + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + + col2 + - col0 + + col0 / + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col2 - col0 * + col2 * - 93 AS col0 FROM tab0 AS cor0
----
3254
678632
73623

query I rowsort
SELECT ALL 15 * + col2 + 48 * 27 AS col1 FROM tab2 cor0
----
1686
1701
1866

query I rowsort
SELECT DISTINCT 59 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1030
-6665
58

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col0 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5203
SELECT DISTINCT cor0.col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT cor0.col0 / col2 AS col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5204
SELECT ALL - ( col2 ) + + CAST( - 23 AS SIGNED ) FROM tab2 cor0
----
-49
-50
-61

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - ( col2 ) + + CAST ( - 23 AS INTEGER ) FROM tab2 cor0
----
-49
-50
-61

query I rowsort
SELECT - - col0 + cor0.col2 * cor0.col2 * col2 FROM tab0 cor0
----
35961
36
551457

query I rowsort
SELECT - 72 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT - 67 + - col2 * col0 AS col1 FROM tab0
----
-102
-7365
-859

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + + ( - col0 ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + 97 * col1 - + 90 AS col0 FROM tab0 AS cor0
----
8252
8737
9319

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5211
SELECT - 63 * + col1 - - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT - 63 * + col1 - - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5212
SELECT - - col0 / + col2 + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5212
SELECT - - col0 / + col2 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT - + col1 * 79 + + 52 * col1 DIV 76 AS col0 FROM tab2 AS cor0
----
-1332
-2428
-4621

skipif mysql # not compatible
query I rowsort label-5213
SELECT - + col1 * 79 + + 52 * col1 / 76 AS col0 FROM tab2 AS cor0
----
-1332
-2428
-4621

onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT - col1 DIV + col0 - + col1 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-5214
SELECT - col1 / + col0 - + col1 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT DISTINCT + col0 * col2 * - 93 + + 86 * col1 FROM tab1 AS cor0
----
-12830
-338404
-713122

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT ALL col1 DIV - tab1.col2 + + col0 * 49 AS col1 FROM tab1
----
147
3136
3920

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL col1 / - tab1.col2 + + col0 * 49 AS col1 FROM tab1
----
147
3136
3920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5217
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ( - col2 ) * - tab2.col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + ( col1 ) col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( cor0.col2 ) AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT 82 * - col1 * ( - cor0.col2 ) FROM tab2 AS cor0
----
125788
52972
68634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5222
SELECT 73 DIV col2 FROM tab0 AS cor0
----
0
2
73

skipif mysql # not compatible
query I rowsort label-5222
SELECT 73 / col2 FROM tab0 AS cor0
----
0
2
73

query I rowsort
SELECT DISTINCT - col2 * - 12 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT - col2 + ( - col2 * cor0.col1 ) FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - col2 + col0 + col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col0 * cor0.col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5227
SELECT ALL - - cor0.col1 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - - cor0.col1 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + col0 + 63 AS col2 FROM tab1 AS cor0
----
127
143
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT ALL - col2 DIV + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - col2 / + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
24
26
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5230
SELECT + CAST( col1 AS SIGNED ) + col0 - col1 * 52 FROM tab0 AS cor0
----
-4362
-4552
-4912

skipif mysql # not compatible
query I rowsort label-5230
SELECT + CAST ( col1 AS INTEGER ) + col0 - col1 * 52 FROM tab0 AS cor0
----
-4362
-4552
-4912

query I rowsort
SELECT - - 82 + + col2 FROM tab1 AS cor0
----
136
139
178

query I rowsort
SELECT cor0.col2 * cor1.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c3f564963c20aff92bd0f88b9f3e9e2a

query I rowsort
SELECT col2 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT col1 * + 73 + + 79 FROM tab0
----
6357
6722
7160

query I rowsort
SELECT 97 - + col0 FROM tab1 AS cor0
----
17
33
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + - col1 col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + cor0.col0 - 68 AS col1 FROM tab0 cor0
----
-33
-44
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( cor0.col1 ) col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 * cor0.col0 + + 81 AS col2 FROM tab1 AS cor0
----
-36399
-4131
-99759

query I rowsort
SELECT + col1 * 38 + col1 FROM tab0 AS cor0
----
3354
3549
3783

onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT 23 * col0 + col0 DIV - ( + col1 ) AS col2 FROM tab2 AS cor0
----
161
1793
1813

skipif mysql # not compatible
query I rowsort label-5241
SELECT 23 * col0 + col0 / - ( + col1 ) AS col2 FROM tab2 AS cor0
----
161
1793
1813

query I rowsort
SELECT ALL ( + col1 ) * - col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col1 + + 61 AS col1 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT DISTINCT cor0.col1 + - 78 FROM tab1 AS cor0
----
-52
-65
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT CAST( - col0 AS SIGNED ) * - col1 + - cor0.col2 FROM tab2 AS cor0
----
1305
190
4576

skipif mysql # not compatible
query I rowsort label-5245
SELECT CAST ( - col0 AS INTEGER ) * - col1 + - cor0.col2 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 - cor0.col2 * - 95 col0 FROM tab0 cor0
----
15252
192
5973

query I rowsort
SELECT 82 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1166
-1322
-488

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5248
SELECT ( + ( - cor0.col0 ) ) + CAST( NULL AS DECIMAL ) * col0 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT ( + ( - cor0.col0 ) ) + CAST ( NULL AS REAL ) * col0 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 64 + + col0 * col2 + - col2 FROM tab0 AS cor0
----
-30
695
7152

query I rowsort
SELECT - 8 * - col1 + 56 FROM tab0 AS cor0
----
744
784
832

query I rowsort
SELECT col2 + col0 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT DISTINCT + cor0.col2 * col0 + - ( - cor0.col2 ) DIV - col0 FROM tab1 AS cor0
----
144
3648
7679

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + cor0.col2 * col0 + - ( - cor0.col2 ) / - col0 FROM tab1 AS cor0
----
144
3648
7679

query I rowsort
SELECT DISTINCT 55 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
55

query I rowsort
SELECT ALL + ( + col2 ) - col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + + col1 * - 46 AS col2 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT + col2 * + 30 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT 23 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT + + 32 + + 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT + - col1 - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL - - 3 + + col1 AS col2 FROM tab0 AS cor0
----
100
89
94

query I rowsort
SELECT ALL col2 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL cor0.col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 + 1 col0 FROM tab2 AS cor0
----
190
2029
3003

onlyif mysql # use DIV operator for integer division
query I rowsort label-5265
SELECT DISTINCT + 26 DIV col2 - - col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3369
-8099

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT + 26 / col2 - - col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3369
-8099

query I rowsort
SELECT DISTINCT - 80 * cor0.col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 * - col2 + col1 col0 FROM tab0
----
-2041
-772
71

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + - cor0.col2 * + col2 * - cor0.col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT - col1 * + tab0.col2 + + tab0.col2 AS col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT ALL + col0 DIV col1 + + col1 DIV - col1 + - ( + cor0.col2 + col0 ) col0 FROM tab1 AS cor0
----
-116
-171
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + col0 / col1 + + col1 / - col1 + - ( + cor0.col2 + col0 ) col0 FROM tab1 AS cor0
----
-116
-171
-58

query I rowsort
SELECT DISTINCT 0 + col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + col0 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 94 * - tab0.col1 AS col1 FROM tab0
----
-8084
-8554
-9118

query I rowsort
SELECT DISTINCT + col2 * 21 AS col2 FROM tab1 AS cor0
----
1134
1197
2016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5276
SELECT ALL - CAST( NULL AS SIGNED ) + 30 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - CAST ( NULL AS INTEGER ) + 30 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * col2 + + cor0.col0 - 39 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1941
1489
4016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5278
SELECT ALL CAST( - col2 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL CAST ( - col2 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 + - col0 - + col0 AS col1 FROM tab2
----
-182
-196
-41

query I rowsort
SELECT + tab1.col2 * - col2 - col0 FROM tab1
----
-2919
-3313
-9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT - - ( 53 ) DIV col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT - - ( 53 ) / col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 64 + - col2 FROM tab0 AS cor0
----
-18
31
63

query I rowsort
SELECT + + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5284
SELECT ( ( + col2 ) ) + + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT ( ( + col2 ) ) + + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 63 * col0 - - col1 FROM tab2 cor0
----
472
4973
4994

onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT ALL 63 DIV - col1 + col1 FROM tab1 AS cor0
----
24
4
9

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL 63 / - col1 + col1 FROM tab1 AS cor0
----
24
4
9

query I rowsort
SELECT - + col2 * 26 FROM tab2 AS cor0
----
-676
-702
-988

query I rowsort
SELECT DISTINCT + col2 + + 68 * col1 FROM tab0 AS cor0
----
5881
6270
6597

query I rowsort
SELECT DISTINCT + 17 * col1 + col0 * - 14 * + 8 AS col0 FROM tab1 cor0
----
-6998
-8739
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 * cor0.col1 + col0 col1 FROM tab2 cor0
----
22606
24627
39962

onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT DISTINCT col2 * + col1 + col1 + 23 DIV 53 AS col1 FROM tab0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT col2 * + col1 + col1 + 23 / 53 AS col1 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT DISTINCT col0 DIV + col2 + - col0 * - ( col0 ) FROM tab0
----
1260
576
7922

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT col0 / + col2 + - col0 * - ( col0 ) FROM tab0
----
1260
576
7922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 16 * + col2 + - 78 + + col0 * tab1.col0 * + col0 col1 FROM tab1
----
-46707
210082
364466

onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT - col2 + col1 + col0 DIV + col1 AS col2 FROM tab1
----
-28
-41
-77

skipif mysql # not compatible
query I rowsort label-5294
SELECT - col2 + col1 + col0 / + col1 AS col2 FROM tab1
----
-28
-41
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5295
SELECT ALL - tab0.col0 + + col0 DIV - col1 AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - tab0.col0 + + col0 / - col1 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + ( col1 ) * col1 AS col2 FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT CAST( - 53 AS SIGNED ) * + col1 + + ( col0 ) FROM tab1 AS cor0
----
-1375
-466
-609

skipif mysql # not compatible
query I rowsort label-5297
SELECT CAST ( - 53 AS INTEGER ) * + col1 + + ( col0 ) FROM tab1 AS cor0
----
-1375
-466
-609

query I rowsort
SELECT DISTINCT + cor1.col2 * cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
9 values hashing to 54522441dbf7fb56e19a888572d1f6e3

query I rowsort
SELECT + col0 * + col1 + col2 FROM tab1 cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col0 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT - col0 * cor0.col1 + + CAST( NULL AS SIGNED ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT - col0 * cor0.col1 + + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 22 * + col1 FROM tab2 AS cor0
----
1298
374
682

query I rowsort
SELECT ALL col2 + - cor0.col1 * 70 FROM tab1 AS cor0
----
-1766
-643
-814

query I rowsort
SELECT DISTINCT - ( - 42 ) + col0 * - 81 + + 49 * - tab1.col1 FROM tab1
----
-1475
-5632
-7075

query I rowsort
SELECT 38 * - tab2.col0 + col2 + col1 FROM tab2
----
-208
-2879
-2947

query I rowsort
SELECT + - 52 * col1 + 48 FROM tab0 AS cor0
----
-4424
-4684
-4996

query I rowsort
SELECT - ( + col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT col0 * col1 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-5308
SELECT col0 * col1 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - col0 - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5310
SELECT DISTINCT cor0.col0 / CAST( NULL AS SIGNED ) + + col2 + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT cor0.col0 / CAST ( NULL AS INTEGER ) + + col2 + col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT DISTINCT + col0 + + 84 + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
111
121
174

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT + col0 + + 84 + col1 / col0 AS col2 FROM tab0 AS cor0
----
111
121
174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5313
SELECT + + col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT + + col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * - col0 + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + col1 * + col0 + + col1 + + col2 AS col2 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT - col1 + - 46 AS col1 FROM tab2 AS cor0
----
-105
-63
-77

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * CAST ( col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col0 + - cor0.col2 * - col1 * - col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT ALL - col2 + - col0 * col0 + - col0 AS col1 FROM tab1 cor0
----
-4217
-6576
-66

query I rowsort
SELECT ALL + col0 - 32 FROM tab2 AS cor0
----
-25
46
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT + col1 DIV - 28 col0 FROM tab0 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5321
SELECT + col1 / - 28 col0 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + + col0 + + ( col2 ) * col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - 27 + + 11 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT col2 - ( col1 ) * 97 AS col1 FROM tab1 AS cor0
----
-1165
-2468
-913

query I rowsort
SELECT DISTINCT + 26 FROM tab2 cor0
----
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5326
SELECT - CAST( NULL AS DECIMAL ) * 24 + + col0 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT - CAST ( NULL AS REAL ) * 24 + + col0 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 18 + col2 FROM tab0 AS cor0
----
100
19
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT - col1 + + tab1.col1 * + col2 DIV - col2 - col2 FROM tab1
----
-106
-122
-77

skipif mysql # not compatible
query I rowsort label-5328
SELECT - col1 + + tab1.col1 * + col2 / - col2 - col2 FROM tab1
----
-106
-122
-77

query I rowsort
SELECT ALL - col2 + col1 * - 16 - - col1 AS col0 FROM tab0
----
-1323
-1447
-1456

query I rowsort
SELECT + 80 * + col0 AS col2 FROM tab2
----
560
6240
6320

query I rowsort
SELECT 54 * col0 + col0 FROM tab0
----
1320
1925
4895

onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT + - cor0.col2 DIV col1 + col1 col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5332
SELECT + - cor0.col2 / col1 + col1 col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0, tab1, tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT - col0 * + col0 + + 19 AS col1 FROM tab0
----
-1206
-557
-7902

query I rowsort
SELECT ALL 47 + + col0 AS col0 FROM tab2
----
125
126
54

query I rowsort
SELECT DISTINCT col0 * tab2.col1 + + col0 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - col0 + 88 * 52 AS col0 FROM tab1 AS cor0
----
4496
4512
4573

query I rowsort
SELECT - col2 * - col1 + 6 AS col1 FROM tab2 AS cor0
----
1540
652
843

query I rowsort
SELECT col0 + 94 * 49 FROM tab0 AS cor0
----
4630
4641
4695

query I rowsort
SELECT ALL + 22 * + ( - col1 ) AS col2 FROM tab2
----
-1298
-374
-682

query I rowsort
SELECT ALL - - col2 * + col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - - ( 34 ) FROM tab2 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 + 8 col2 FROM tab0 AS cor0
----
87

query I rowsort
SELECT + ( - cor0.col1 ) * + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + col1 + - col1 * + cor0.col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-5346
SELECT - tab1.col1 - - col2 DIV col2 AS col0 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5346
SELECT - tab1.col1 - - col2 / col2 AS col0 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT - tab0.col2 * 82 FROM tab0, tab1 AS cor0
----
9 values hashing to 13c480322d6694ba12f2eb926dfd3e4f

query I rowsort
SELECT - ( - 42 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5349
SELECT + col2 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT + col2 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 * + col1 * col0 + - col1 + cor0.col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT col0 + + ( - col0 ) + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5353
SELECT col1 DIV - col1 + col0 * + col0 + col1 FROM tab2 AS cor0
----
6142
6257
79

skipif mysql # not compatible
query I rowsort label-5353
SELECT col1 / - col1 + col0 * + col0 + col1 FROM tab2 AS cor0
----
6142
6257
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5354
SELECT col1 DIV ( col0 ) + + col1 + - col1 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5354
SELECT col1 / ( col0 ) + + col1 + - col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL + col2 + 50 FROM tab0 AS cor0
----
132
51
83

query I rowsort
SELECT - cor0.col1 * col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL cor0.col0 - + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c22e7a33a1d8d55a5f7224b3cf03e3bc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5358
SELECT - CAST( - col2 AS SIGNED ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-5358
SELECT - CAST ( - col2 AS INTEGER ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 76 + - col0 FROM tab1 AS cor0
----
-4
12
73

query I rowsort
SELECT ALL + col2 * col1 + - 56 FROM tab1 AS cor0
----
1192
1348
514

onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT DISTINCT - col0 DIV col1 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - col0 / col1 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + 83 * + col2 FROM tab1 cor0
----
4482
4731
7968

query I rowsort
SELECT ALL + col1 + - col0 * + ( col0 ) FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT ALL + ( col1 ) DIV col0 AS col1 FROM tab2 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL + ( col1 ) / col0 AS col1 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT DISTINCT + + 68 FROM tab1 AS cor0
----
68

query I rowsort
SELECT DISTINCT - 40 * + 95 AS col1 FROM tab2
----
-3800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab2, tab0, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT + col1 + - 1 * + col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col0 + + col2 * 5 FROM tab2 AS cor0
----
111
128
52

query I rowsort
SELECT ALL - col1 + + 93 FROM tab2 AS cor0
----
34
62
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5372
SELECT DISTINCT + - col1 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT + - col1 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5373
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col0 * 60 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT DISTINCT + - col0 * col2 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-14596
-1584
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - cor0.col2 col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + 65 AS col2 FROM tab2 AS cor0
----
27
38
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT + col1 DIV + col1 + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5378
SELECT + col1 / + col1 + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * ( cor0.col1 ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT 34 + - col1 FROM tab0 AS cor0
----
-52
-57
-63

query I rowsort
SELECT - cor0.col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5383
SELECT + col0 DIV + cor0.col0 + - col2 FROM tab2 cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-5383
SELECT + col0 / + cor0.col0 + - col2 FROM tab2 cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT + col0 + - 58 * - col1 AS col0 FROM tab0 AS cor0
----
5012
5367
5661

query I rowsort
SELECT ALL col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL cor0.col2 * + col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT ALL + col2 DIV 34 AS col0 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + col2 / 34 AS col0 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - + col2 + 32 FROM tab0 AS cor0
----
-1
-50
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT ALL col1 DIV 37 + tab2.col1 AS col2 FROM tab2
----
17
31
60

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL col1 / 37 + tab2.col1 AS col2 FROM tab2
----
17
31
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT ALL - + 39 + - col2 DIV - ( col2 * col0 ) AS col2 FROM tab1 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL - + 39 + - col2 / - ( col2 * col0 ) AS col2 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - 91 FROM tab1 cor0
----
-91

query I rowsort
SELECT DISTINCT + 68 * col2 FROM tab1 AS cor0
----
3672
3876
6528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5394
SELECT - CAST( NULL AS SIGNED ) * 64 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5394
SELECT - CAST ( NULL AS INTEGER ) * 64 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 21 + - col0 col0 FROM tab1 AS cor0
----
-101
-24
-85

query I rowsort
SELECT ALL - col0 * + col1 * 13 + - 6 AS col1 FROM tab0 cor0
----
-105293
-26838
-44141

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT - 68 DIV col0 + col2 DIV + col0 + col2 * + col0 FROM tab0
----
34
7298
791

skipif mysql # not compatible
query I rowsort label-5397
SELECT - 68 / col0 + col2 / + col0 + col2 * + col0 FROM tab0
----
34
7298
791

query I rowsort
SELECT ALL + ( col1 ) - - col2 AS col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT cor0.col1 DIV 15 AS col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5399
SELECT cor0.col1 / 15 AS col2 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 + 18 FROM tab1 AS cor0
----
111
47
92

query I rowsort
SELECT DISTINCT - col1 * ( - col2 + col0 * - col0 ) AS col1 FROM tab0 AS cor0
----
118922
52374
728273

query I rowsort
SELECT DISTINCT col1 + - col1 * - col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col1 + + col1 * + col2 + - 96 * - col2 FROM tab1
----
10477
6052
6614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + - col2 * + col1 * - tab2.col1 col0 FROM tab2
----
11020
25974
90532

query I rowsort
SELECT DISTINCT - col0 * col0 + + col2 FROM tab1
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT DISTINCT 96 + + col0 + - 49 DIV + col0 FROM tab0
----
118
130
185

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT 96 + + col0 + - 49 / + col0 FROM tab0
----
118
130
185

query I rowsort
SELECT ALL 67 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT DISTINCT - tab0.col0 - col1 * col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT ( col1 ) - + 71 FROM tab1
----
-45
-58
-61

query I rowsort
SELECT ALL - col1 * - col1 + - col1 FROM tab0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5411
SELECT DISTINCT - col1 DIV + col2 + + col0 * col1 * col0 AS col1 FROM tab0
----
118728
49534
720810

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT - col1 / + col2 + + col0 * col1 * col0 AS col1 FROM tab0
----
118728
49534
720810

query I rowsort
SELECT ALL - - col1 + + cor0.col2 * + col2 AS col0 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT DISTINCT + col0 DIV - col1 + + cor0.col2 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT + col0 / - col1 + + cor0.col2 FROM tab2 AS cor0
----
25
27
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * 48 col2 FROM tab0
----
1584
3936
48

query I rowsort
SELECT ALL col1 * - col2 * - col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + + ( col1 ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 10 + + col2 AS col1 FROM tab0
----
-9
23
72

query I rowsort
SELECT ( ( col2 ) ) + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - ( - 34 ) * - col0 AS col1 FROM tab0
----
-1190
-3026
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * - col1 * col1 col2 FROM tab2 AS cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - - 84 * cor0.col2 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT ALL - 71 AS col1 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT 78 FROM tab0 cor0
----
78
78
78

query I rowsort
SELECT - 7 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT + + 75 AS col0 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + 58 * + col0 FROM tab0 AS cor0
----
1392
2030
5162

query I rowsort
SELECT ALL 55 * + col2 * + cor0.col0 AS col1 FROM tab0 cor0
----
1925
401390
43560

query I rowsort
SELECT + col2 + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - + 21 * col2 FROM tab2 AS cor0
----
-546
-567
-798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5432
SELECT CAST( 50 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-5432
SELECT CAST ( 50 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT ALL CAST( NULL AS SIGNED ) * - tab2.col1 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL CAST ( NULL AS INTEGER ) * - tab2.col1 * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 29 FROM tab0, tab1 cor0
----
29

query I rowsort
SELECT - 66 * - col1 AS col0 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT + + col0 + col2 * + 18 - - 44 AS col1 FROM tab1 AS cor0
----
1019
1134
1852

query I rowsort
SELECT DISTINCT 41 * col2 AS col0 FROM tab2 AS cor0
----
1066
1107
1558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 * col0 + + ( col2 + col0 ) col2 FROM tab0 AS cor0
----
1953
2801
7202

query I rowsort
SELECT ALL + col2 + col1 + col1 FROM tab0 cor0
----
195
205
264

query I rowsort
SELECT 26 * cor0.col2 + - ( + col0 ) + col0 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT DISTINCT - - cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 + col0 - - col0 * + col0 AS col2 FROM tab2 AS cor0
----
25
6103
6303

query I rowsort
SELECT + + 57 + col2 - 4 AS col1 FROM tab2 AS cor0
----
79
80
91

query I rowsort
SELECT DISTINCT + 86 + + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
110
121
175

query I rowsort
SELECT DISTINCT col0 * 87 AS col2 FROM tab2
----
609
6786
6873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - 13 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to aa209ccce995bc15f179c4bef1668fa3

query I rowsort
SELECT ALL col2 * 94 FROM tab2
----
2444
2538
3572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5448
SELECT DISTINCT col1 * col2 * - tab1.col0 + + CAST( NULL AS SIGNED ) + + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT col1 * col2 * - tab1.col0 + + CAST ( NULL AS INTEGER ) + + col2 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT 21 DIV - 37 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5449
SELECT 21 / - 37 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 + 2 FROM tab1 AS cor0
----
-1
-62
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5451
SELECT - 19 DIV - 48 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5451
SELECT - 19 / - 48 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * col2 col0 FROM tab0
----
-2607
-6478
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5453
SELECT ALL + col1 DIV + col1 + + col0 + + ( - col2 ) FROM tab0 AS cor0
----
-8
35
8

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + col1 / + col1 + + col0 + + ( - col2 ) FROM tab0 AS cor0
----
-8
35
8

query I rowsort
SELECT DISTINCT - + col1 - 16 FROM tab0 AS cor0
----
-102
-107
-113

query I rowsort
SELECT ALL - ( + ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 + - 3 FROM tab1 cor0
----
0
61
77

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab1 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 34 * col1 + col1 col0 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT - ( - col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + cor0.col2 + 89 AS col0 FROM tab0 AS cor0
----
122
171
90

query I rowsort
SELECT tab1.col2 + + tab1.col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT col2 + - tab0.col1 + + tab0.col2 FROM tab0
----
-20
-95
73

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 66 col1 FROM tab0
----
152
157
163

query I rowsort
SELECT col1 + + 68 FROM tab1
----
78
81
94

query I rowsort
SELECT ALL 70 * cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95bcdf623b519e9fb6c75e4af0962859

query I rowsort
SELECT DISTINCT col0 * col2 * col2 AS col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT + col1 * ( col2 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT tab2.col2 + + col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - 83 + + 86 AS col1 FROM tab1
----
3
3
3

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT 64 - + 64 FROM tab1
----
0
0
0

query I rowsort
SELECT 71 + col2 FROM tab0 AS cor0
----
104
153
72

query I rowsort
SELECT DISTINCT + - col1 * - 2 + - col2 * + ( col2 + col1 ) FROM tab1 AS cor0
----
-10438
-3799
-4268

query I rowsort
SELECT ALL + 55 * col2 + - col0 * - ( + 7 * col2 ) AS col1 FROM tab1 AS cor0
----
28671
4104
59040

query I rowsort
SELECT DISTINCT col2 * - col2 * - col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL + 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + cor0.col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + ( col1 ) + + cor0.col2 - ( col0 * - ( - col1 ) ) FROM tab1 cor0
----
-50
-593
-957

query I rowsort
SELECT + - cor0.col2 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT col1 * + ( + col1 ) AS col2 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5483
SELECT ALL - col1 DIV 56 + + col1 * - col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL - col1 / 56 + + col1 * - col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT + col0 DIV + 29 AS col1 FROM tab2 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-5484
SELECT + col0 / + 29 AS col1 FROM tab2 AS cor0
----
0
2
2

query I rowsort
SELECT DISTINCT col0 * - col2 + - col0 FROM tab0 cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL + cor0.col0 + ( cor0.col0 ) - - col2 * col2 FROM tab0 AS cor0
----
1137
6902
71

query I rowsort
SELECT ALL + - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL col0 * col2 + col1 - + 79 AS col0 FROM tab0
----
53
7310
799

query I rowsort
SELECT 50 + + col1 - col1 AS col2 FROM tab2
----
50
50
50

query I rowsort
SELECT ALL - 98 * - col2 AS col1 FROM tab2 cor0
----
2548
2646
3724

query I rowsort
SELECT DISTINCT - + ( + col1 ) * - 31 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT ALL + col1 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 2 * + col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + - 47 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT - 93 + - col0 FROM tab1
----
-157
-173
-96

query I rowsort
SELECT + col2 * ( col1 ) + col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 10 * col1 col2 FROM tab0 AS cor0
----
-28380
-74620
-970

query I rowsort
SELECT ALL col0 + + ( col1 ) AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL col1 + - 34 + + col2 AS col1 FROM tab2 cor0
----
21
24
51

query I rowsort
SELECT - col1 + col0 * 77 - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-329
4413
5420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT DISTINCT + - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5502
SELECT + CAST( col1 * + col0 AS SIGNED ) AS col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5502
SELECT + CAST ( col1 * + col0 AS INTEGER ) AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - 45 * - col2 FROM tab1 AS cor0
----
2430
2565
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT - CAST( col1 AS SIGNED ) col2 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5504
SELECT - CAST ( col1 AS INTEGER ) col2 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT + col0 DIV cor0.col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5505
SELECT + col0 / cor0.col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + col1 + col1 + col2 * ( + col1 * + col2 ) AS col2 FROM tab1 AS cor0
----
119834
32510
75868

query I rowsort
SELECT ALL + col0 * 40 + cor0.col2 * + 18 * - col0 AS col0 FROM tab1 AS cor0
----
-135040
-2796
-63104

query I rowsort
SELECT - ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 60 * col2 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
2457
2926
3094

query I rowsort
SELECT + - 70 * - col1 FROM tab2 cor0
----
1190
2170
4130

query I rowsort
SELECT ALL - + cor0.col1 + col0 AS col1 FROM tab1 cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT + col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5512
SELECT + col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + col0 + - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + 82 FROM tab0, tab2 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT 31 * + col0 + + col1 AS col2 FROM tab2
----
2466
2477
248

query I rowsort
SELECT DISTINCT 62 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT DISTINCT - + col1 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * - ( col0 ) FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ( + 87 ) AS col0 FROM tab2
----
87
87
87

query I rowsort
SELECT DISTINCT cor0.col1 + + 95 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
181
186
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab1.col1 col0 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + tab0.col0 ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - 89 + col1 AS col0 FROM tab0 cor0
----
-3
2
8

query I rowsort
SELECT col1 * + col2 * col1 + col1 * col1 FROM tab1 AS cor0
----
16393
37180
5800

query I rowsort
SELECT col2 * - 14 + 84 FROM tab0
----
-1064
-378
70

query I rowsort
SELECT ALL 71 * - 10 + + col2 * + ( 99 ) FROM tab0 AS cor0
----
-611
2557
7408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5528
SELECT DISTINCT + col2 * + col1 + - col1 * - CAST( NULL AS SIGNED ) - cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT + col2 * + col1 + - col1 * - CAST ( NULL AS INTEGER ) - cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT DISTINCT - col2 - + 78 DIV - col2 AS col0 FROM tab1 cor0
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT - col2 - + 78 / - col2 AS col0 FROM tab1 cor0
----
-53
-56
-96

query I rowsort
SELECT ALL + 60 * col0 + cor0.col1 * + col1 * col0 FROM tab0 AS cor0
----
178944
331415
742349

query I rowsort
SELECT + col1 + 72 * col1 AS col1 FROM tab1
----
1898
730
949

query I rowsort
SELECT tab0.col2 + 44 * col2 * - col2 + ( col2 + + col0 ) FROM tab0
----
-295603
-47826
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5533
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT - col0 + + col1 DIV col0 FROM tab0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-5534
SELECT - col0 + + col1 / col0 FROM tab0
----
-21
-33
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5535
SELECT DISTINCT CAST( - col0 * col2 AS SIGNED ) FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT CAST ( - col0 * col2 AS INTEGER ) FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT DISTINCT tab0.col2 DIV 61 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT tab0.col2 / 61 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 - cor0.col1 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 24fb67817b4f0a06f8bcfc2c1dffaf59

query I rowsort
SELECT ALL + 0 + col0 + col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5540
SELECT DISTINCT - cor0.col2 + ( + col1 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT - cor0.col2 + ( + col1 ) / + col2 AS col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT - + col1 * + 35 + + col2 AS col1 FROM tab0 AS cor0
----
-2977
-3103
-3394

query I rowsort
SELECT - col2 + 10 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
207
349
808

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 AS REAL ) + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 < col2 - col1 * tab0.col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 + - tab0.col1 * col1 col2 FROM tab0 WHERE NOT ( NULL ) <> col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 / col0 ) NOT IN ( + col1 * col0 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT col1 + col2 + - tab1.col0 AS col0 FROM tab1
----
29
3
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT IN ( col0 * + col1 / + col1 )
----

query I rowsort
SELECT col2 + col0 + + col1 AS col0 FROM tab1
----
131
189
83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 + + col0 + + col0 AS col2 FROM tab1
----
185
256
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT IN ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5554
SELECT DISTINCT + col1 + + col1 DIV + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + col1 + + col1 / + col1 FROM tab1
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5555
SELECT + col2 + - col0 * col2 + + col2 DIV col1 AS col1 FROM tab1
----
-106
-3586
-7577

skipif mysql # not compatible
query I rowsort label-5555
SELECT + col2 + - col0 * col2 + + col2 / col1 AS col1 FROM tab1
----
-106
-3586
-7577

query I rowsort
SELECT ALL - tab0.col1 + + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 + col0 * col0 FROM tab1
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - col1 col0 FROM tab0 AS cor0
----
-53
-9
-96

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT col0 + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT col2 * - col1 + col0 * col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT - col1 + - col2 AS col2 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + - cor0.col1 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col0 FROM tab1
----
29
74
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 / + col0 = ( NULL )
----

query I rowsort
SELECT cor0.col1 + col0 + cor0.col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col0 IN ( col2 + col0 * - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col0 * - 27 + - col1 FROM tab2 AS cor0
----
-2150
-2165
-220

query I rowsort
SELECT ALL - col0 + 42 * - col2 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1443
-3615
-78

query I rowsort
SELECT DISTINCT + col0 + + 6 FROM tab1 cor0
----
70
86
9

query I rowsort
SELECT ALL col2 + + col1 * - cor0.col1 + + col0 FROM tab1 AS cor0
----
-619
21
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5573
SELECT col0 + CAST( col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-5573
SELECT col0 + CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT - + col0 + col1 DIV - 14 FROM tab0 cor0
----
-30
-41
-95

skipif mysql # not compatible
query I rowsort label-5574
SELECT - + col0 + col1 / - 14 FROM tab0 cor0
----
-30
-41
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 84 col2 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT col2 * + col0 * col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + col0 + ( col2 ) * col2 + - col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - + col2 * - 65 FROM tab1 AS cor0
----
3510
3705
6240

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT CAST( + 13 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif mysql # not compatible
query I rowsort label-5580
SELECT CAST ( + 13 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + col0 + col1 + + 31 AS col1 FROM tab0
----
141
163
211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + - 58 col1 FROM tab1
----
-112
-115
-154

query I rowsort
SELECT ALL 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL + 38 - col2 FROM tab0 AS cor0
----
-44
37
5

query I rowsort
SELECT DISTINCT - col0 + col0 * - col0 * col2 FROM tab0 AS cor0
----
-1260
-19032
-649611

query I rowsort
SELECT - col0 / col2 AS col1 FROM tab1 WHERE ( NULL ) IN ( col1 * col0 )
----

query I rowsort
SELECT + 3 * tab0.col0 + 81 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 4bffee3cae3efd47a7d224060fd99c21

query I rowsort
SELECT col2 + col0 * 21 * - col0 AS col0 FROM tab2
----
-1002
-127738
-131023

query I rowsort
SELECT DISTINCT + col2 - col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT + col1 * col2 - + 71 FROM tab0
----
26
2767
7391

query I rowsort
SELECT - col2 * - col1 + tab0.col1 + col1 FROM tab0
----
291
3010
7644

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5593
SELECT DISTINCT col1 + + ( col2 ) * CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT col1 + + ( col2 ) * CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - ( + ( col0 ) ) * col2 + + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - 99 + col1 * cor0.col0 + col1 * + cor0.col2 FROM tab1 AS cor0
----
1111
1383
2189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 73 col2 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL + col1 + 17 AS col0 FROM tab1 AS cor0
----
27
30
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5598
SELECT CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 49 + col0 * col0 + 73 FROM tab1 AS cor0
----
33
4120
6424

query I rowsort
SELECT DISTINCT + ( + 58 ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT + ( + 46 ) + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-143
-1982
-2956

query I rowsort
SELECT + ( + 9 ) AS col1 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5603
SELECT - col1 * CAST( col1 AS SIGNED ) + - col2 FROM tab1
----
-157
-265
-730

skipif mysql # not compatible
query I rowsort label-5603
SELECT - col1 * CAST ( col1 AS INTEGER ) + - col2 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT ALL 7 * col2 + - col1 * + 53 - - 8 * - col1 FROM tab2
----
-1702
-3417
-771

query I rowsort
SELECT DISTINCT + + 55 * + col2 - col1 FROM tab2 cor0
----
1371
1454
2073

query I rowsort
SELECT ALL - 51 * col2 * + col0 + 58 + col2 * col2 FROM tab2 AS cor0
----
-102694
-151600
-8852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + col0 col1 FROM tab1
----
20
81
97

query I rowsort
SELECT + cor0.col2 + - ( + col0 ) FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5609
SELECT ALL - col2 - CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT DISTINCT col0 DIV - col1 + tab0.col1 col2 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT col0 / - col1 + tab0.col1 col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - 49 + col1 AS col2 FROM tab1
----
-23
-36
-39

query I rowsort
SELECT col2 + + tab0.col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + - col2 * + col1 + - col1 - col1 AS col0 FROM tab2 AS cor0
----
-1652
-680
-899

query I rowsort
SELECT DISTINCT - - 32 AS col1 FROM tab0 AS cor0
----
32

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-8

query I rowsort
SELECT ALL cor0.col2 * - ( col0 ) - - col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + col0 * - ( col0 ) + col0 AS col1 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT - + cor0.col2 * col0 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT - - col0 * - ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5620
SELECT ALL + - col1 * + 33 - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
-330
-429
-858

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + - col1 * + 33 - col1 / col2 AS col0 FROM tab1 AS cor0
----
-330
-429
-858

query I rowsort
SELECT ALL + col2 * - ( + col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5622
SELECT DISTINCT - + col1 + - CAST( - 3 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-344
-364
-388

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT - + col1 + - CAST ( - 3 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT - col1 + col0 * + col1 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT - col2 * 16 + - col0 AS col2 FROM tab0 AS cor0
----
-1401
-51
-552

query I rowsort
SELECT col2 * + ( - col2 ) * col2 FROM tab2 cor0
----
-17576
-19683
-54872

query I rowsort
SELECT - ( + 41 ) * + cor0.col2 * 27 FROM tab0 AS cor0
----
-1107
-36531
-90774

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab0, tab0 AS cor0
----
47

query I rowsort
SELECT ALL ( + col0 * - col0 + + col1 ) FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL + + col2 - col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL col0 * col1 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT - 90 * - col0 FROM tab1 AS cor0
----
270
5760
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT ALL - 76 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - 76 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 77 * - col1 FROM tab0 cor0
----
6622
7007
7469

query I rowsort
SELECT + 78 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT DISTINCT + + ( col0 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ( cor0.col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + ( - col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT col1 * + cor0.col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + cor0.col2 * col2 * + 20 FROM tab2 cor0
----
13520
14580
28880

query I rowsort
SELECT DISTINCT - + 34 FROM tab1, tab0, tab2 AS cor0
----
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5641
SELECT DISTINCT cor0.col1 + CAST( NULL AS SIGNED ) * cor0.col0 * tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT cor0.col1 + CAST ( NULL AS INTEGER ) * cor0.col0 * tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + col2 + tab2.col2 FROM tab2
----
130
155
61

query I rowsort
SELECT DISTINCT ( - col0 ) + + 16 AS col1 FROM tab1
----
-48
-64
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5644
SELECT + col2 / + col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT + col2 / + col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col0 ) * ( ( - col1 ) ) + + ( ( + col0 ) ) * tab2.col0 + col2 * + col2 FROM tab2
----
2158
561
6342

query I rowsort
SELECT - 29 * col0 + + col2 FROM tab0
----
-1014
-2499
-663

query I rowsort
SELECT ALL + - col1 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT col0 * col1 + + 58 * 22 * col1 FROM tab1 AS cor0
----
13400
17628
33254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 * + col1 ) col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5652
SELECT ALL ( + col2 ) + CAST( col0 AS SIGNED ) DIV col0 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL ( + col2 ) + CAST ( col0 AS INTEGER ) / col0 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT 80 + col0 AS col2 FROM tab1
----
144
160
83

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1, tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5655
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT + col1 * col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT ALL cor0.col2 * + tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to beb2df893579871bcb51459c78b13f94

query I rowsort
SELECT - col0 * + 28 AS col1 FROM tab1
----
-1792
-2240
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT ALL tab2.col1 DIV tab2.col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL tab2.col1 / tab2.col0 FROM tab2
----
0
0
4

query I rowsort
SELECT 0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + - col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + 96 AS col1 FROM tab1 AS cor0
----
150
153
192

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) + + col2 * col1 * + col0 - + col1 FROM tab2 AS cor0
----
119671
51096
5835

query I rowsort
SELECT col1 * col2 + + col1 + col1 FROM tab0 AS cor0
----
291
3010
7644

query I rowsort
SELECT ALL + 44 + + col0 AS col1 FROM tab0 AS cor0
----
133
68
79

query I rowsort
SELECT ALL + cor0.col1 + 30 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT ALL - ( + 31 ) * col0 + ( 77 * cor0.col1 ) FROM tab2 AS cor0
----
-1140
2125
2170

query I rowsort
SELECT - col2 + - tab2.col1 * + col1 AS col1 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col0 + col1 + col0 * - col1 * col1 AS col1 FROM tab1
----
-14547
-2080
-7030

query I rowsort
SELECT ALL 1 * 33 + + col0 - ( col2 + - col0 ) AS col1 FROM tab0
----
102
129
48

query I rowsort
SELECT ALL + 9 * + col1 AS col2 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT + - col2 * + col2 * cor0.col0 + 84 FROM tab0 AS cor0
----
-26052
-598352
49

query I rowsort
SELECT ALL - 7 FROM tab0, tab2 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT 73 * col2 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT + + col0 * col1 * + col0 + - 74 * col1 FROM tab1 cor0
----
-1690
40220
82238

query I rowsort
SELECT ALL - 8 + col2 FROM tab0 AS cor0
----
-7
25
74

query I rowsort
SELECT ALL - + ( + cor0.col0 ) * + col0 + col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT 42 - col0 FROM tab2 AS cor0
----
-36
-37
35

query I rowsort
SELECT - col1 * col1 + 10 FROM tab0 cor0
----
-7386
-8271
-9399

query I rowsort
SELECT ALL - cor0.col1 + col1 * - 29 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT ALL col2 + - col0 * col0 * 12 AS col2 FROM tab0 AS cor0
----
-14699
-6879
-94970

query I rowsort
SELECT DISTINCT col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT ALL + col1 * col0 DIV - 30 FROM tab0 AS cor0
----
-113
-269
-68

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + col1 * col0 / - 30 FROM tab0 AS cor0
----
-113
-269
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 1 col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * + col1 * - col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT col0 + - col1 * + ( col1 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
-172
-3377
-927

query I rowsort
SELECT col0 + 76 FROM tab0 AS cor0
----
100
111
165

query I rowsort
SELECT DISTINCT - col1 * ( + cor0.col2 ) * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT + col0 + 32 * col1 FROM tab1 AS cor0
----
384
496
835

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT ALL + - col1 DIV + 4 + - col0 + + col2 FROM tab2 cor0
----
-45
-66
13

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + - col1 / + 4 + - col0 + + col2 FROM tab2 cor0
----
-45
-66
13

query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af

query I rowsort
SELECT ALL col2 + 18 FROM tab1 AS cor0
----
114
72
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT DISTINCT + + col0 DIV + 65 - - col0 AS col1 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT + + col0 / + 65 - - col0 AS col1 FROM tab0 AS cor0
----
24
35
90

query I rowsort
SELECT DISTINCT col2 * col1 - + col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT col0 * cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT DISTINCT + col0 DIV + 35 AS col2 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT + col0 / + 35 AS col2 FROM tab2
----
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT DISTINCT + CAST( + 39 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
0
1
39

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT + CAST ( + 39 AS INTEGER ) / col2 FROM tab0 AS cor0
----
0
1
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT - ( 21 ) DIV - col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5698
SELECT - ( 21 ) / - col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT ALL - cor0.col2 * - col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 27 + + col2 * - col0 col2 FROM tab0 cor0
----
-62
-7325
-819

query I rowsort
SELECT ALL + + 47 * col0 + ( + col0 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
343
3822
3871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5703
SELECT ALL + + col2 * + col2 + CAST( NULL AS DECIMAL ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + + col2 * + col2 + CAST ( NULL AS REAL ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5704
SELECT ALL - ( col0 ) DIV - col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL - ( col0 ) / - col2 FROM tab1
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5705
SELECT DISTINCT + 72 + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT + 72 + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT DISTINCT + col2 DIV col0 - - col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + col2 / col0 - - col0 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT - + col1 * col2 + + col1 + - col2 * + col1 * + col1 AS col2 FROM tab2 AS cor0
----
-11611
-26753
-91981

query I rowsort
SELECT DISTINCT + + col2 + col1 * + cor0.col0 - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2552
-2784
-8080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col0 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT + col1 * + col0 * ( cor0.col0 ) + col1 * + 14 FROM tab1 AS cor0
----
41100
598
83382

query I rowsort
SELECT ALL - 92 + + col2 * col2 AS col2 FROM tab0 cor0
----
-91
6632
997

query I rowsort
SELECT DISTINCT - 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-13

query I rowsort
SELECT ALL + col0 - ( + col2 ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL 22 + 34 * col0 + col0 * + col0 FROM tab1 AS cor0
----
133
6294
9142

query I rowsort
SELECT - ( - 90 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT + 29 * + col1 + + col2 FROM tab1 AS cor0
----
347
473
808

query I rowsort
SELECT + ( - cor0.col2 ) * col2 + col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT - 93 * - col0 + col2 FROM tab1 AS cor0
----
333
6009
7536

query I rowsort
SELECT - 60 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT - 51 + - col2 + col0 AS col0 FROM tab0 AS cor0
----
-17
-44
-60

query I rowsort
SELECT ALL - col0 * + col0 - - col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT tab2.col2 + + col2 + col2 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL - col1 + ( tab1.col0 ) * + col2 - - col1 * tab1.col1 FROM tab1
----
3738
7836
812

query I rowsort
SELECT DISTINCT + col0 + col0 * col1 * col1 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT 4 - - col1 FROM tab2
----
21
35
63

query I rowsort
SELECT + 38 * col0 AS col2 FROM tab2
----
266
2964
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + col1 * col0 col0 FROM tab0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5728
SELECT - col0 * + col1 + col2 * - CAST( NULL AS SIGNED ) + tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT - col0 * + col1 + col2 * - CAST ( NULL AS INTEGER ) + tab2.col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col1 + tab1.col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
1
33
82

query I rowsort
SELECT col2 * col0 + col0 * col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT - + col1 + 83 FROM tab0 AS cor0
----
-14
-3
-8

query I rowsort
SELECT + 69 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL col1 * col0 + - tab2.col2 FROM tab2
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5735
SELECT ALL - CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 96 - + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8aba8fd1b1e871111a09cd5809f5d6c6

query I rowsort
SELECT + 3 * col2 * col2 + 50 * - cor0.col2 FROM tab2 AS cor0
----
2432
728
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5738
SELECT + + 61 * + cor0.col2 + CAST( NULL AS SIGNED ) * - col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT + + 61 * + cor0.col2 + CAST ( NULL AS INTEGER ) * - col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 29 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
729 values hashing to 63a95fc9ae9feaca500c224a181cfe3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5740
SELECT ALL - + col2 DIV + col1 + col2 + - col1 * col2 FROM tab2 AS cor0
----
-1508
-610
-810

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - + col2 / + col1 + col2 + - col1 * col2 FROM tab2 AS cor0
----
-1508
-610
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT DISTINCT col1 + col2 DIV col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT col1 + col2 / col1 FROM tab1
----
15
20
28

query I rowsort
SELECT ALL - ( - tab1.col1 ) FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col0 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT 72 * + col1 + - col1 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT 70 * + col1 * + col0 FROM tab0
----
144480
237650
566930

query I rowsort
SELECT col0 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT + + cor0.col1 + + col2 * 72 DIV + 49 AS col1 FROM tab0 AS cor0
----
134
211
98

skipif mysql # not compatible
query I rowsort label-5747
SELECT + + cor0.col1 + + col2 * 72 / + 49 AS col1 FROM tab0 AS cor0
----
134
211
98

query I rowsort
SELECT ALL + + 99 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT - 62 + cor0.col1 FROM tab1 AS cor0
----
-36
-49
-52

query I rowsort
SELECT cor0.col1 * 84 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT col1 * - ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + col1 * + 26 * + col0 AS col2 FROM tab0 AS cor0
----
210574
53664
88270

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2, tab2 cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57

query I rowsort
SELECT ALL - cor2.col1 + - 10 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 7189523e98d91d515301522edcfc7786

query I rowsort
SELECT ALL + + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + ( - 5 ) * + col2 + - col2 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT - - col1 * + 19 * cor0.col1 AS col1 FROM tab2 AS cor0
----
18259
5491
66139

query I rowsort
SELECT ALL 72 + cor0.col1 FROM tab0 AS cor0
----
158
163
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * col1 - - col0 col2 FROM tab0 cor0
----
5356
5731
6049

query I rowsort
SELECT + ( + col2 ) * - col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5761
SELECT - CAST( NULL AS SIGNED ) * col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT - CAST ( NULL AS INTEGER ) * col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 16 + ( col2 ) FROM tab0 AS cor0
----
17
49
98

query I rowsort
SELECT + + col0 * - ( col0 ) + col1 * cor0.col1 * col2 + + col0 FROM tab2 cor0
----
25905
4820
84500

onlyif mysql # use DIV operator for integer division
query I rowsort label-5764
SELECT DISTINCT - 16 DIV col2 FROM tab0 AS cor0
----
-16
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT - 16 / col2 FROM tab0 AS cor0
----
-16
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT ALL col1 DIV + ( col1 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL col1 / + ( col1 ) AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + 9 - 98 * col0 FROM tab0 AS cor0
----
-2343
-3421
-8713

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT 85 * cor0.col1 - + col0 DIV col1 FROM tab2 cor0
----
1441
2635
5014

skipif mysql # not compatible
query I rowsort label-5767
SELECT 85 * cor0.col1 - + col0 / col1 FROM tab2 cor0
----
1441
2635
5014

query I rowsort
SELECT - col0 + 71 AS col2 FROM tab1 AS cor0
----
-9
68
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5769
SELECT + col0 * col2 + col0 + col0 DIV col0 AS col2 FROM tab2 cor0
----
197
2107
3082

skipif mysql # not compatible
query I rowsort label-5769
SELECT + col0 * col2 + col0 + col0 / col0 AS col2 FROM tab2 cor0
----
197
2107
3082

query I rowsort
SELECT - + col1 * + col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5773
SELECT ALL - CAST( + col1 AS SIGNED ) + col0 col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - CAST ( + col1 AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT cor0.col2 * - 61 + + col0 + - 68 FROM tab1 AS cor0
----
-3359
-3481
-5844

query I rowsort
SELECT cor0.col2 * 94 AS col0 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT ALL 50 + 14 * col1 FROM tab0 cor0
----
1254
1324
1408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT col2 DIV ( 84 ) + col2 * - ( - col1 ) AS col0 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5777
SELECT col2 / ( 84 ) + col2 * - ( - col1 ) AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab2, tab0 cor0
----
1
33
82

query I rowsort
SELECT col0 - - ( col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT col0 + ( - tab0.col0 ) * col1 + 79 FROM tab0
----
-1961
-3281
-7931

query I rowsort
SELECT + 91 AS col1 FROM tab1
----
91
91
91

query I rowsort
SELECT ALL - 7 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT - ( col2 + - col0 ) * col0 * + 36 AS col2 FROM tab2
----
-5040
116604
146016

query I rowsort
SELECT 59 + - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - 46 AS col1 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT + col2 + + col2 * 60 AS col1 FROM tab0
----
2013
5002
61

query I rowsort
SELECT 1 + col1 FROM tab2
----
18
32
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5789
SELECT DISTINCT col0 * CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT col0 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col2 * - 32 - 89 * - cor0.col1 FROM tab1 AS cor0
----
2714
4042
4229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5791
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * 37 FROM tab2 AS cor0
----
1147
2183
629

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5793
SELECT + col2 * CAST( col1 AS SIGNED ) FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5793
SELECT + col2 * CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT - col2 * col0 DIV col1 FROM tab2 AS cor0
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-5794
SELECT - col2 * col0 / col1 FROM tab2 AS cor0
----
-176
-34
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5795
SELECT DISTINCT + col1 + CAST( col0 + - col2 AS SIGNED ) * col0 * + col2 FROM tab0 AS cor0
----
-7042
1287
51177

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT + col1 + CAST ( col0 + - col2 AS INTEGER ) * col0 * + col2 FROM tab0 AS cor0
----
-7042
1287
51177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - ( col2 ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT ALL cor0.col0 DIV cor0.col0 + + 34 FROM tab1 cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL cor0.col0 / cor0.col0 + + 34 FROM tab1 cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - cor0.col2 col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col2 * cor0.col1 - - col1 * col1 AS col2 FROM tab0 AS cor0
----
10234
15743
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5800
SELECT ALL + col0 * - CAST( + 73 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1752
-2555
-6497

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL + col0 * - CAST ( + 73 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1752
-2555
-6497

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5801
SELECT col2 + - CAST( + col0 AS SIGNED ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-5801
SELECT col2 + - CAST ( + col0 AS INTEGER ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - - 80 * - col1 * - col1 AS col0 FROM tab0 AS cor0
----
591680
662480
752720

query I rowsort
SELECT + + 3 * + col0 + + col2 * - 53 FROM tab2 AS cor0
----
-1144
-1410
-1777

query I rowsort
SELECT DISTINCT 91 * - 35 + tab1.col1 FROM tab1
----
-3159
-3172
-3175

query I rowsort
SELECT - col2 * + 69 AS col0 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT - col2 + - ( col2 ) FROM tab2 cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + - col1 col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT + col0 + - col0 + col0 * 7 * cor0.col2 FROM tab2 AS cor0
----
1323
14196
21014

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT col2 + + col1 / - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT col2 + + col1 / - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5811
SELECT ALL CAST( NULL AS DECIMAL ) + ( - col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL CAST ( NULL AS REAL ) + ( - col1 ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 + col2 * - tab1.col2 col1 FROM tab1
----
-2922
-3255
-9222

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT + col2 DIV + 24 + - col1 * + 84 FROM tab2
----
-1427
-2603
-4955

skipif mysql # not compatible
query I rowsort label-5813
SELECT + col2 / + 24 + - col1 * + 84 FROM tab2
----
-1427
-2603
-4955

query I rowsort
SELECT DISTINCT col2 + 37 FROM tab0
----
119
38
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5815
SELECT ALL + CAST( NULL AS SIGNED ) + 76 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + CAST ( NULL AS INTEGER ) + 76 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT DISTINCT + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT + col2 / + col2 AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT ALL + col1 * cor0.col1 - 36 DIV col2 AS col0 FROM tab0 cor0
----
7395
8281
9373

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL + col1 * cor0.col1 - 36 / col2 AS col0 FROM tab0 cor0
----
7395
8281
9373

query I rowsort
SELECT col1 + col2 * - 3 FROM tab2 AS cor0
----
-19
-50
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + col0 col1 FROM tab1 AS cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * col1 * + col2 col2 FROM tab0 AS cor0
----
-11352
-29848
-388

query I rowsort
SELECT col1 * + 4 AS col1 FROM tab2
----
124
236
68

query I rowsort
SELECT + col2 * + ( - col0 + col0 ) * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 17 + - col1 AS col1 FROM tab2 AS cor0
----
-34
-48
-76

query I rowsort
SELECT - - 70 + col2 FROM tab2 AS cor0
----
108
96
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5826
SELECT - 38 * + col0 + - CAST( col2 + - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-142
-2479
-3123

skipif mysql # not compatible
query I rowsort label-5826
SELECT - 38 * + col0 + - CAST ( col2 + - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-142
-2479
-3123

onlyif mysql # use DIV operator for integer division
query I rowsort label-5827
SELECT - col2 + 72 * - ( col2 ) DIV col2 AS col2 FROM tab1 AS cor0
----
-126
-129
-168

skipif mysql # not compatible
query I rowsort label-5827
SELECT - col2 + 72 * - ( col2 ) / col2 AS col2 FROM tab1 AS cor0
----
-126
-129
-168

onlyif mysql # use DIV operator for integer division
query I rowsort label-5828
SELECT + + col2 * col2 DIV + 40 FROM tab0 AS cor0
----
0
168
27

skipif mysql # not compatible
query I rowsort label-5828
SELECT + + col2 * col2 / + 40 FROM tab0 AS cor0
----
0
168
27

query I rowsort
SELECT col1 * - col2 * col1 AS col2 FROM tab2 cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5830
SELECT ALL - col1 + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - col1 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT + col2 DIV + ( + col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT + col2 / + ( + col1 ) FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT DISTINCT - cor0.col1 + - 87 AS col0 FROM tab0 AS cor0
----
-173
-178
-184

query I rowsort
SELECT DISTINCT + + cor0.col2 * + 24 + 27 FROM tab2 cor0
----
651
675
939

query I rowsort
SELECT ALL cor0.col1 + ( - col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * ( + 90 ) FROM tab0 cor0
----
-2970
-7380
-90

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - + col0 + - 87 AS col1 FROM tab1 cor0
----
-151
-167
-90

query I rowsort
SELECT + + col0 * - 24 * col1 FROM tab1 AS cor0
----
-15360
-1872
-24960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + + 72 col0 FROM tab0 AS cor0
----
-25
-2766
-7390

query I rowsort
SELECT ALL + - col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col0 * ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 + ( 63 ) * + col2 FROM tab1 AS cor0
----
3428
3601
6061

query I rowsort
SELECT DISTINCT - cor0.col0 * - 19 AS col1 FROM tab0 cor0
----
1691
456
665

query I rowsort
SELECT - 64 * - 82 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2851
1853
3184

query I rowsort
SELECT - col2 + + col2 - col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5847
SELECT + 47 DIV col0 + - col2 * ( + ( + col0 ) ) AS col2 FROM tab1 cor0
----
-147
-3648
-7680

skipif mysql # not compatible
query I rowsort label-5847
SELECT + 47 / col0 + - col2 * ( + ( + col0 ) ) AS col2 FROM tab1 cor0
----
-147
-3648
-7680

query I rowsort
SELECT cor2.col0 * - 11 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to f9f4e775bedc66fecff208e0a12fd26f

query I rowsort
SELECT col0 * + ( + col0 ) - + 32 AS col2 FROM tab1 AS cor0
----
-23
4064
6368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + + col1 * - tab2.col0 + 20 * - col2 * col0 col0 FROM tab2
----
-4186
-47190
-64385

query I rowsort
SELECT ALL + tab2.col1 * col0 * col1 + + tab2.col1 * col1 FROM tab2
----
23120
274999
7688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - 25 * cor0.col1 FROM tab0 AS cor0
----
-2150
-2275
-2425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5856
SELECT - + CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT - + CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 8 - - col2 FROM tab2 AS cor0
----
34
35
46

query I rowsort
SELECT cor0.col1 + - 59 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to bf404356d50af85154d4a3df529a1071

query I rowsort
SELECT - - 31 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + + 17 * 86 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
1462

query I rowsort
SELECT ALL col1 - ( - ( + col1 ) + col0 ) FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT cor0.col2 + - col0 AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col0 * + col0 - col2 )
----

query I rowsort
SELECT + cor0.col1 / col0 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( col1 / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT cor0.col1 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT cor0.col0 + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b

query I rowsort
SELECT - col1 * col2 + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col0 * col0 + - col0 FROM tab2
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT col1 + + tab1.col0 DIV - col0 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5871
SELECT col1 + + tab1.col0 / - col0 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT col0 * col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL - col1 * tab2.col0 + - tab2.col1 FROM tab2
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT ALL - - col2 + col0 * ( cor0.col1 ) DIV + cor0.col0 + col1 AS col2 FROM tab2 cor0
----
144
72
89

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - - col2 + col0 * ( cor0.col1 ) / + cor0.col0 + col1 AS col2 FROM tab2 cor0
----
144
72
89

query I rowsort
SELECT DISTINCT + 30 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
2058
219
3032

query I rowsort
SELECT + + col0 + - col1 + col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 46 + col0 * col1 FROM tab1 AS cor0
----
1086
124
686

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT col0 * tab1.col2 * + col2 + - col0 FROM tab1
----
207872
737200
8745

query I rowsort
SELECT DISTINCT - tab0.col1 * col0 + col1 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND col2 * + col2 - - col1 / col0
----

query I rowsort
SELECT DISTINCT - 30 * cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
-19380
-25110
-46020

query I rowsort
SELECT ALL 94 * col2 FROM tab0
----
3102
7708
94

query I rowsort
SELECT ALL cor0.col0 - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - 39 FROM tab0, tab2, tab0 cor0
----
-39

query I rowsort
SELECT DISTINCT col1 * + col1 + col0 FROM tab2
----
3559
368
968

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT + tab1.col2 + col0 * + tab1.col0 + col0 FROM tab1
----
4217
6576
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL col0 * + col2 + - col0 AS col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT ALL - col2 * col2 - col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( - col2 / + col0 ) AND ( + col0 + col1 )
----

query I rowsort
SELECT DISTINCT col2 + col0 + col2 * col1 AS col2 FROM tab1
----
1424
1461
691

query I rowsort
SELECT ALL col2 + tab1.col2 + tab1.col0 AS col0 FROM tab1
----
111
178
272

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT NULL IN ( col0 * + col0 * col0 )
----

query I rowsort
SELECT col1 * col1 * + col2 - col2 AS col1 FROM tab0
----
244035
678960
9408

query I rowsort
SELECT ALL col1 + + tab1.col1 + - col0 * - col1 AS col1 FROM tab1
----
1066
130
660

query I rowsort
SELECT col2 * col2 + - tab2.col0 AS col1 FROM tab2
----
1365
598
722

query I rowsort
SELECT DISTINCT col1 * + col1 * col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT col1 + - col1 + - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col0 + - tab2.col0 AS col0 FROM tab2 WHERE NOT col1 + + col0 IN ( + col0 )
----
-14
-156
-158

query I rowsort
SELECT DISTINCT col2 * - col0 * col2 AS col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + tab2.col2 + col1 + + col2 AS col0 FROM tab2
----
111
85
93

query I rowsort
SELECT - col0 FROM tab1 WHERE col2 + col1 NOT IN ( + col2 )
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT - col1 + tab0.col0 * + col2 * - col0 FROM tab0
----
-1322
-19094
-649613

query I rowsort
SELECT + col1 * col1 * + col1 FROM tab2
----
205379
29791
4913

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT + col0 + col0 - + col1 * col1 * - col1 FROM tab0
----
636104
753749
912743

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5908
SELECT ALL ( + col2 ) - CAST( - col0 AS SIGNED ) FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL ( + col2 ) - CAST ( - col0 AS INTEGER ) FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 - - tab2.col2 col1 FROM tab2
----
110
111
122

query I rowsort
SELECT - col0 * 35 + + col0 FROM tab1 AS cor0
----
-102
-2176
-2720

query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col1 + + col1 * + col0 AS col0 FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT - col1 + + tab0.col2 * - 82 FROM tab0
----
-179
-2792
-6815

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab0
----
30

query I rowsort
SELECT - col0 + col2 + col1 AS col1 FROM tab1
----
29
3
77

query I rowsort
SELECT + tab1.col2 * col2 * - tab1.col0 AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL + + col2 * ( col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 * - ( col2 ) + + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - col0 + ( 18 ) * + col1 * 73 AS col0 FROM tab2 AS cor0
----
22259
40727
77448

query I rowsort
SELECT col0 + ( + col1 ) * + cor0.col0 + col0 * ( + col0 ) * - col1 FROM tab1 AS cor0
----
-153
-40256
-82080

query I rowsort
SELECT DISTINCT - col0 * ( cor0.col1 ) + col2 FROM tab2 cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5923
SELECT DISTINCT + - col1 DIV - ( - ( - col1 ) ) - ( col2 ) FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + - col1 / - ( - ( - col1 ) ) - ( col2 ) FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT ALL - col0 * + ( - col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col2 + + ( 41 ) + col1 AS col2 FROM tab2 cor0
----
126
96
99

query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 * col1 * 17 AS col0 FROM tab1 AS cor0
----
21047
23192
9590

query I rowsort
SELECT ALL + cor0.col2 - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( col2 ) * col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 + col2 col1 FROM tab0 AS cor0
----
-12
20
69

query I rowsort
SELECT - col0 * 5 * + cor0.col2 FROM tab2 AS cor0
----
-10140
-15010
-945

query I rowsort
SELECT DISTINCT + col0 * col2 + - cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - ( + col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + ( 70 ) AS col0 FROM tab0 AS cor0
----
70
70
70

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
3645 values hashing to e3826bc27970dd1a441a9cd4c13b096d

query I rowsort
SELECT ALL cor0.col1 + 57 * col0 + col0 FROM tab0 AS cor0
----
1478
2127
5253

query I rowsort
SELECT ( col2 ) * - col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT 84 * col2 FROM tab0 cor0
----
2772
6888
84

query I rowsort
SELECT DISTINCT + col1 + col1 * ( + 38 ) FROM tab0 cor0
----
3354
3549
3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 * 55 + col1 col0 FROM tab2 AS cor0
----
10426
111599
165127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5940
SELECT + 86 * col1 * + CAST( - col1 + col1 * + 18 AS SIGNED ) FROM tab1 AS cor0
----
146200
247078
988312

skipif mysql # not compatible
query I rowsort label-5940
SELECT + 86 * col1 * + CAST ( - col1 + col1 * + 18 AS INTEGER ) FROM tab1 AS cor0
----
146200
247078
988312

query I rowsort
SELECT + col1 + - cor0.col0 * ( 31 * col1 ) FROM tab0 AS cor0
----
-105148
-250978
-63898

query I rowsort
SELECT + 29 * - col2 AS col1 FROM tab1 AS cor0
----
-1566
-1653
-2784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT ALL - ( + col0 ) - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - ( + col0 ) - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5944
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5944
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col1 col1 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + ( + col1 ) + + 7 * col0 AS col2 FROM tab0 cor0
----
254
342
714

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT col2 * col1 DIV 87 FROM tab0 AS cor0
----
1
32
85

skipif mysql # not compatible
query I rowsort label-5948
SELECT col2 * col1 / 87 FROM tab0 AS cor0
----
1
32
85

query I rowsort
SELECT + cor0.col1 + + col0 * - ( - col1 ) FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col2 + + col0 * + col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT 6 * 70 + col2 * + col1 * + 21 AS col1 FROM tab0 AS cor0
----
157122
2457
60018

query I rowsort
SELECT DISTINCT + 42 * - col0 * + col2 FROM tab0 AS cor0
----
-1470
-306516
-33264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5953
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + cor0.col1 + col0 * 50 + col0 AS col2 FROM tab2 AS cor0
----
-604
3740
497

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + cor0.col1 + col0 * 50 + col0 AS col2 FROM tab2 AS cor0
----
-604
3740
497

onlyif mysql # use DIV operator for integer division
query I rowsort label-5954
SELECT + col0 DIV - cor0.col0 + col0 + 0 AS col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5954
SELECT + col0 / - cor0.col0 + col0 + 0 AS col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL - ( - cor0.col1 ) + - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * col0 * col1 + ( + 59 ) AS col1 FROM tab2 AS cor0
----
-119593
-50975
-5800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT ALL 53 * col0 DIV col2 AS col0 FROM tab0
----
1855
38
57

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL 53 * col0 / col2 AS col0 FROM tab0
----
1855
38
57

query I rowsort
SELECT ALL + 75 FROM tab2, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5959
SELECT + - col0 + col2 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT + - col0 + col2 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col1 * + tab2.col2 ) FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5961
SELECT ALL - CAST( NULL AS SIGNED ) * col0 * col1 + cor0.col1 - + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 * col1 + cor0.col1 - + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 6 AS col1 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT DISTINCT ( - col2 * col0 + + col0 ) AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - ( - 27 ) FROM tab0
----
27

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT DISTINCT - col2 + 71 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-37
-43

query I rowsort
SELECT col2 * + col2 + 88 FROM tab0 AS cor0
----
1177
6812
89

query I rowsort
SELECT - 44 FROM tab1 cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col1 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5970
SELECT + CAST( + col0 AS SIGNED ) * + col0 AS col2 FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-5970
SELECT + CAST ( + col0 AS INTEGER ) * + col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL - col0 + + 47 * col1 FROM tab2 AS cor0
----
1450
2695
720

query I rowsort
SELECT + ( - col2 ) + + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - ( col0 * ( - 54 ) ) + - col2 AS col2 FROM tab1
----
108
3399
4224

query I rowsort
SELECT 78 + - col0 FROM tab2 AS cor0
----
-1
0
71

query I rowsort
SELECT col0 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5976
SELECT + - col0 * + col2 + + CAST( col1 + col2 AS SIGNED ) * 62 FROM tab0 AS cor0
----
3428
6041
6586

skipif mysql # not compatible
query I rowsort label-5976
SELECT + - col0 * + col2 + + CAST ( col1 + col2 AS INTEGER ) * 62 FROM tab0 AS cor0
----
3428
6041
6586

onlyif mysql # use DIV operator for integer division
query I rowsort label-5977
SELECT col1 * col0 DIV - ( + col1 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5977
SELECT col1 * col0 / - ( + col1 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - col1 * 64 * - cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
10803
43238
6390

query I rowsort
SELECT + + col2 * - 94 AS col2 FROM tab2 AS cor0
----
-2444
-2538
-3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - ( - col2 ) col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col2 * + col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + cor0.col2 * 68 + col1 AS col0 FROM tab1 AS cor0
----
3698
3886
6541

query I rowsort
SELECT ALL col1 * + 14 AS col1 FROM tab0 AS cor0
----
1204
1274
1358

query I rowsort
SELECT 90 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT ALL - + col1 * ( + 81 ) AS col0 FROM tab2 AS cor0
----
-1377
-2511
-4779

query I rowsort
SELECT DISTINCT col1 + 14 FROM tab1 AS cor0
----
24
27
40

query I rowsort
SELECT DISTINCT + col1 + tab2.col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - ( + 5 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT + col1 * - 86 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT + + 63 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT + - col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT 14 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT 14 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 69 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

query I rowsort
SELECT - + col2 * + cor0.col1 + - 13 * - col0 FROM tab2 AS cor0
----
-520
-746
381

query I rowsort
SELECT ALL - cor0.col1 + 47 * cor0.col1 FROM tab2 AS cor0
----
1426
2714
782

query I rowsort
SELECT ALL col2 + + 98 FROM tab0 AS cor0
----
131
180
99

query I rowsort
SELECT cor0.col2 * 15 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT DISTINCT + ( 52 ) AS col2 FROM tab2 AS cor0
----
52

query I rowsort
SELECT - col0 * col0 + - col2 * col1 + col1 FROM tab0 AS cor0
----
-1225
-15292
-3328

query I rowsort
SELECT ALL + 56 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1478
-590
-781

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 59 col1 FROM tab1
----
-2
-5
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT DISTINCT col0 + tab2.col2 + 52 DIV + col1 FROM tab2
----
104
120
35

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT col0 + tab2.col2 + 52 / + col1 FROM tab2
----
104
120
35

query I rowsort
SELECT DISTINCT - col0 + col0 * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6004
SELECT ALL - + CAST( col0 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL - + CAST ( col0 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT DISTINCT tab1.col1 DIV - col2 + col0 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT tab1.col1 / - col2 + col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - col2 + col2 * col0 AS col0 FROM tab1
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6007
SELECT col1 * + 41 + - 9 DIV + col2 AS col0 FROM tab1
----
1066
410
533

skipif mysql # not compatible
query I rowsort label-6007
SELECT col1 * + 41 + - 9 / + col2 AS col0 FROM tab1
----
1066
410
533

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT cor0.col2 * - cor0.col0 - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6010
SELECT ALL + + col0 + col0 * CAST( - 95 AS SIGNED ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-60736
-7407
-98720

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL + + col0 + col0 * CAST ( - 95 AS INTEGER ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-60736
-7407
-98720

query I rowsort
SELECT + ( col2 ) * col0 - + col2 FROM tab1 AS cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + + col0 * col2 col1 FROM tab2 AS cor0
----
147
1986
2960

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 + + 88 AS col1 FROM tab2 AS cor0
----
88

query I rowsort
SELECT + 78 * + col1 + col0 * col2 FROM tab0 AS cor0
----
14396
7500
7601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 22 col1 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - + 76 + col0 * col2 FROM tab2 cor0
----
113
1952
2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 + - tab2.col2 col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT 91 + - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-3557
-71
-7589

query I rowsort
SELECT ALL - + col0 * + 61 AS col2 FROM tab0 AS cor0
----
-1464
-2135
-5429

onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT - ( - col1 ) DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6021
SELECT - ( - col1 ) / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL 55 FROM tab0, tab0 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to c59acfbb70996777fa5053195838c3d6

query I rowsort
SELECT ( col2 * - tab1.col0 + col2 ) AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL - 39 * col0 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT ( + col2 ) + ( - col2 ) * cor0.col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + col2 * cor0.col0 + cor0.col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT + + col1 * col1 - col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT + + 96 AS col0 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - 93 * - col0 AS col1 FROM tab2
----
651
7254
7347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col1 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to bb5bb13eab35a33bb4641905f5e7c9b6

query I rowsort
SELECT ALL ( 30 * col0 ) AS col1 FROM tab0
----
1050
2670
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 * - col0 ) col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT ALL - 27 DIV tab2.col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - 27 / tab2.col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT - ( - col0 * col1 + col0 ) AS col0 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT col1 + + col1 * - col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL - col0 + 60 AS col1 FROM tab1 AS cor0
----
-20
-4
57

query I rowsort
SELECT ALL + col2 + col2 - - 16 * + cor0.col0 FROM tab2 AS cor0
----
1300
1340
166

query I rowsort
SELECT - 81 * - col1 AS col2 FROM tab0
----
6966
7371
7857

onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT - 15 DIV + 92 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6039
SELECT - 15 / + 92 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT 30 + - tab2.col1 FROM tab2
----
-1
-29
13

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT + tab1.col0 + col0 AS col0 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT ALL + col2 + + CAST( ( cor0.col2 ) AS SIGNED ) DIV + ( col2 ) FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + col2 + + CAST ( ( cor0.col2 ) AS INTEGER ) / + ( col2 ) FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + col1 * + col0 + 93 FROM tab1 cor0
----
1133
171
733

query I rowsort
SELECT DISTINCT + - col2 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab1, tab0 AS cor0
----
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT ALL + + col0 + cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + + col0 + cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT - col2 + - col0 * + 0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + ( col0 ) * col0 * + cor0.col0 FROM tab0 AS cor0
----
13824
42875
704969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6050
SELECT + CAST( NULL AS SIGNED ) * 8 + - col2 * + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT + CAST ( NULL AS INTEGER ) * 8 + - col2 * + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 90 + col0 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT DISTINCT + - ( col0 ) + + col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + 92 * + cor0.col0 + col1 * cor0.col2 FROM tab0 AS cor0
----
15650
3317
5046

query I rowsort
SELECT - cor0.col1 * - ( - col2 ) + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + - cor0.col2 * + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL - 63 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT - 99 * col2 + col1 * - ( 63 ) FROM tab2 AS cor0
----
-4626
-4833
-6291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 49 col0 FROM tab2 AS cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 59 ) col0 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + col2 + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - 4 * col0 - col0 FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT - col2 + col1 + 55 AS col1 FROM tab1 AS cor0
----
-28
27
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6063
SELECT col2 DIV + col2 + 25 + + 19 * - col1 AS col0 FROM tab1 AS cor0
----
-164
-221
-468

skipif mysql # not compatible
query I rowsort label-6063
SELECT col2 / + col2 + 25 + + 19 * - col1 AS col0 FROM tab1 AS cor0
----
-164
-221
-468

onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT + + col1 DIV - cor0.col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6064
SELECT + + col1 / - cor0.col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 82 * col0 AS col1 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT + col1 + + col0 - - col1 * + col1 FROM tab1 AS cor0
----
174
262
705

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6067
SELECT col0 * CAST( NULL AS SIGNED ) + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT col0 * CAST ( NULL AS INTEGER ) + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT - col2 + - ( col2 ) DIV cor0.col0 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-6068
SELECT - col2 + - ( col2 ) / cor0.col0 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT + col0 + - 54 FROM tab0 AS cor0
----
-19
-30
35

query I rowsort
SELECT + - cor0.col0 + - 82 * + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 237ac542fb4676a1b09d45ed99ad8ce6

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + 56 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT col0 + - cor0.col1 - - cor0.col0 * col0 DIV - ( - ( col0 ) + - col2 ) AS col2 FROM tab2 AS cor0
----
-23
115
77

skipif mysql # not compatible
query I rowsort label-6073
SELECT col0 + - cor0.col1 - - cor0.col0 * col0 / - ( - ( col0 ) + - col2 ) AS col2 FROM tab2 AS cor0
----
-23
115
77

query I rowsort
SELECT DISTINCT 87 FROM tab1, tab0 AS cor0, tab0 cor1
----
87

query I rowsort
SELECT ALL - col1 + col1 * + col2 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT + ( col2 ) * 56 FROM tab1 AS cor0
----
3024
3192
5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6078
SELECT ALL + col0 DIV cor0.col0 + + ( + ( col0 ) + cor0.col1 ) col1 FROM tab1 cor0
----
30
75
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + col0 / cor0.col0 + + ( + ( col0 ) + cor0.col1 ) col1 FROM tab1 cor0
----
30
75
94

query I rowsort
SELECT ALL ( + col0 ) * - 62 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT ALL - 32 + col1 FROM tab0 AS cor0
----
54
59
65

query I rowsort
SELECT DISTINCT + col2 * + col2 + 57 FROM tab0 AS cor0
----
1146
58
6781

query I rowsort
SELECT - col0 + col1 AS col0 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT DISTINCT 1 DIV cor0.col2 + 82 AS col1 FROM tab1, tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT 1 / cor0.col2 + 82 AS col1 FROM tab1, tab1 AS cor0
----
82

query I rowsort
SELECT ( - 52 ) * + col0 AS col0 FROM tab0
----
-1248
-1820
-4628

query I rowsort
SELECT ALL + 27 AS col1 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * col2 + 93 + - col0 FROM tab1 cor0
----
157554
185222
884749

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6087
SELECT + col0 * cor0.col2 + CAST( ( - cor0.col0 ) AS SIGNED ) FROM tab1 AS cor0
----
159
3584
7600

skipif mysql # not compatible
query I rowsort label-6087
SELECT + col0 * cor0.col2 + CAST ( ( - cor0.col0 ) AS INTEGER ) FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL 48 AS col0 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT 5 AS col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + ( ( cor0.col2 ) ) + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT col1 DIV ( - 10 ) AS col0 FROM tab0
----
-8
-9
-9

skipif mysql # not compatible
query I rowsort label-6092
SELECT col1 / ( - 10 ) AS col0 FROM tab0
----
-8
-9
-9

query I rowsort
SELECT ALL 41 - + 58 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT + 26 - cor0.col0 FROM tab1 AS cor0
----
-38
-54
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6095
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 / cor0.col1 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-6095
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 / cor0.col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col1 * tab1.col0 * + col2 + 22 * + 86 AS col2 FROM tab1
----
101732
38372
6104

query I rowsort
SELECT ( tab2.col2 ) + col0 + + col2 AS col1 FROM tab2
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + - col2 col1 FROM tab0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6099
SELECT CAST( NULL AS SIGNED ) - col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6099
SELECT CAST ( NULL AS INTEGER ) - col0 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6100
SELECT ( col0 ) * col0 + - CAST( NULL AS DECIMAL ) * tab1.col1 + - col2 * col2 * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT ( col0 ) * col0 + - CAST ( NULL AS REAL ) * tab1.col1 + - col2 * col2 * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 23 * col1 + + tab0.col1 * - col0 * - col1 - + col0 AS col1 FROM tab0
----
179458
331511
739013

onlyif mysql # use DIV operator for integer division
query I rowsort label-6102
SELECT + col1 DIV - 55 - col1 * - 39 FROM tab1
----
1014
390
507

skipif mysql # not compatible
query I rowsort label-6102
SELECT + col1 / - 55 - col1 * - 39 FROM tab1
----
1014
390
507

query I rowsort
SELECT ALL 81 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL ( + col1 ) - - col0 FROM tab1
----
29
74
93

query I rowsort
SELECT cor0.col2 + 21 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c301dd6dc3b92c26477525b2c4d49c33

query I rowsort
SELECT - 95 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-57
-68
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6107
SELECT ALL + - col0 * col2 + + col0 DIV ( ( col2 ) ) + + col0 AS col0 FROM tab1 AS cor0
----
-159
-3583
-7600

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL + - col0 * col2 + + col0 / ( ( col2 ) ) + + col0 AS col0 FROM tab1 AS cor0
----
-159
-3583
-7600

query I rowsort
SELECT - + ( col0 ) * col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + ( + ( + col0 ) ) + 73 AS col2 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT DISTINCT + col0 * col2 - col2 * col1 AS col1 FROM tab0
----
-164
-2046
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT DISTINCT col1 + col2 DIV + col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT col1 + col2 / + col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT + + 72 + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
134
48
91

query I rowsort
SELECT ALL + + ( - 69 ) FROM tab2 AS cor0
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - col1 col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6115
SELECT ALL CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col2 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823

query I rowsort
SELECT 53 + - cor0.col2 * - col1 FROM tab1 AS cor0
----
1301
1457
623

query I rowsort
SELECT DISTINCT - col1 * col0 + + 97 + 73 FROM tab0 AS cor0
----
-1894
-3225
-7929

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab2, tab1, tab0 AS cor0
----
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6120
SELECT 98 * col1 * CAST( NULL AS SIGNED ) + - col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT 98 * col1 * CAST ( NULL AS INTEGER ) + - col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT DISTINCT - col1 DIV + col1 col2 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT - col1 / + col1 col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL 28 + - col2 FROM tab1 AS cor0
----
-26
-29
-68

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 - - col1 AS col2 FROM tab1 cor0
----
4116
61
6426

query I rowsort
SELECT + col0 * + col2 + + 32 AS col2 FROM tab0 AS cor0
----
67
7330
824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6125
SELECT ALL col0 + col2 + CAST( ( + col2 ) AS SIGNED ) FROM tab2 cor0
----
130
155
61

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL col0 + col2 + CAST ( ( + col2 ) AS INTEGER ) FROM tab2 cor0
----
130
155
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6126
SELECT + 86 * - col2 - CAST( 46 + - cor0.col1 AS SIGNED ) * ( col1 ) AS col0 FROM tab2 AS cor0
----
-1469
-2787
-3761

skipif mysql # not compatible
query I rowsort label-6126
SELECT + 86 * - col2 - CAST ( 46 + - cor0.col1 AS INTEGER ) * ( col1 ) AS col0 FROM tab2 AS cor0
----
-1469
-2787
-3761

query I rowsort
SELECT col0 * 78 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT cor1.col0 + + ( 71 ) FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 3fa1ef9cc900bde40a571197b0d8f7d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6129
SELECT ALL + col1 DIV + 49 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + col1 / + 49 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 94 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-94

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab0, tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - - col2 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - col2 * + 95 AS col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT col0 * + CAST( NULL AS SIGNED ) * 97 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT col0 * + CAST ( NULL AS INTEGER ) * 97 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + col2 + - col1 FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT ALL - + ( - col2 ) - - cor0.col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6138
SELECT DISTINCT ( - cor0.col0 ) DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT ( - cor0.col0 ) / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + + ( col2 ) * + col0 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - 53 + col2 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
207883
737227
8695

query I rowsort
SELECT ALL + - ( - ( + col0 ) ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col1 + + 32 * - col0 FROM tab2 AS cor0
----
-2545
-255
-2555

query I rowsort
SELECT DISTINCT + 76 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT DISTINCT col1 * - col2 * + cor0.col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT DISTINCT 45 DIV 83 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT 45 / 83 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - ( 35 ) * col1 AS col0 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT DISTINCT + ( col2 ) + + col2 * col1 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT 85 + + 51 AS col1 FROM tab1 AS cor0
----
136
136
136

query I rowsort
SELECT ALL col1 * 93 - + cor0.col0 FROM tab2 AS cor0
----
1502
2876
5409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT ALL + cor0.col1 DIV + 49 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL + cor0.col1 / + 49 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - - col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6152
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 46 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
13294
160126
44206

query I rowsort
SELECT ALL + ( 82 ) FROM tab0, tab2 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + 91 * col0 AS col2 FROM tab0
----
2184
3185
8099

query I rowsort
SELECT col1 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + cor1.col2 FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL - cor0.col1 + col0 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab2 cor0
----
32

query I rowsort
SELECT - + col2 * - col1 * - 20 AS col0 FROM tab1 AS cor0
----
-11400
-24960
-28080

query I rowsort
SELECT DISTINCT - + 54 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT ALL + + ( col0 ) + 87 FROM tab1 AS cor0
----
151
167
90

query I rowsort
SELECT - col2 * + col0 + + 76 + - col2 FROM tab0 AS cor0
----
-7304
-749
40

query I rowsort
SELECT ALL - 84 * - col2 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT col0 * 92 + col0 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT + + col2 * + 97 AS col2 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT DISTINCT + - col0 + col2 * - col0 * - col0 FROM tab0 AS cor0
----
1190
18984
649433

query I rowsort
SELECT ALL - 86 * + col1 AS col0 FROM tab1
----
-1118
-2236
-860

query I rowsort
SELECT ALL col2 * - col1 * - 95 AS col1 FROM tab1
----
118560
133380
54150

query I rowsort
SELECT 88 + + col2 FROM tab1
----
142
145
184

query I rowsort
SELECT + + 90 - - col1 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT 52 * ( col2 ) FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT ALL ( - 15 ) * + col2 FROM tab0 AS cor0
----
-1230
-15
-495

onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT - 75 + - col1 DIV + col0 FROM tab1 AS cor0
----
-75
-75
-83

skipif mysql # not compatible
query I rowsort label-6174
SELECT - 75 + - col1 / + col0 FROM tab1 AS cor0
----
-75
-75
-83

query I rowsort
SELECT DISTINCT - cor0.col2 - - col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + - ( col2 ) * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - ( col1 ) * + col1 * ( col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-636032
-753482
-912638

query I rowsort
SELECT DISTINCT + col1 * - col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 * - 90 AS col0 FROM tab2 AS cor0
----
-1530
-2790
-5310

query I rowsort
SELECT DISTINCT - col2 * col2 - + col1 * col2 FROM tab1
----
-10464
-3819
-4320

query I rowsort
SELECT ALL + ( col0 ) + - col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + + cor0.col2 + 59 AS col2 FROM tab0 AS cor0
----
141
60
92

query I rowsort
SELECT col0 + 77 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT + col2 * cor0.col2 + col1 AS col0 FROM tab0 cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col2 ) + + col1 * col2 * - 42 col0 FROM tab0 AS cor0
----
-119229
-313486
-4075

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6186
SELECT ( - col2 ) * - col1 + + CAST( - col1 AS SIGNED ) FROM tab1
----
1235
1378
560

skipif mysql # not compatible
query I rowsort label-6186
SELECT ( - col2 ) * - col1 + + CAST ( - col1 AS INTEGER ) FROM tab1
----
1235
1378
560

query I rowsort
SELECT + - cor0.col0 - col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT + + col0 * - cor0.col2 + - col0 * + col2 + col1 FROM tab2 AS cor0
----
-347
-3997
-5987

query I rowsort
SELECT + 3 * + ( col2 * + col2 ) FROM tab0
----
20172
3
3267

query I rowsort
SELECT - 88 + + col0 AS col1 FROM tab0
----
-53
-64
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT + 44 DIV + tab0.col2 FROM tab0
----
0
1
44

skipif mysql # not compatible
query I rowsort label-6191
SELECT + 44 / + tab0.col2 FROM tab0
----
0
1
44

query I rowsort
SELECT ( - col2 ) * - col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + ( col1 * + col2 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT + + 5 + col2 * + col1 * + col0 FROM tab0 cor0
----
3400
664123
68117

query I rowsort
SELECT ALL cor0.col1 * col2 + - col1 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6196
SELECT + ( + 73 + col1 ) DIV col0 FROM tab2
----
1
1
14

skipif mysql # not compatible
query I rowsort label-6196
SELECT + ( + 73 + col1 ) / col0 FROM tab2
----
1
1
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT ( - tab0.col0 ) DIV - tab0.col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6198
SELECT ( - tab0.col0 ) / - tab0.col0 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + 63 * + 67 FROM tab2 AS cor0
----
4221
4221
4221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 72 + - ( col1 ) col2 FROM tab2 AS cor0
----
-103
-131
-89

query I rowsort
SELECT + + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( - cor0.col0 ) * - col2 col0 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 20 + col2 col0 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT ALL + cor0.col2 * - col1 + - 98 + + col0 AS col2 FROM tab1 AS cor0
----
-1266
-1499
-604

query I rowsort
SELECT DISTINCT + col1 * + col0 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + col1 + + ( + col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - col2 + 52 AS col2 FROM tab0 cor0
----
-30
19
51

query I rowsort
SELECT - col2 * + col1 * col0 + + col0 * col1 FROM tab0 AS cor0
----
-656019
-66048
0

query I rowsort
SELECT - + col0 + - 3 AS col0 FROM tab2 AS cor0
----
-10
-81
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 96 * - col2 col2 FROM tab0 AS cor0
----
-3082
-7781
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT + col2 * - col1 + - col1 DIV cor0.col1 - - 14 FROM tab2 AS cor0
----
-1521
-633
-824

skipif mysql # not compatible
query I rowsort label-6211
SELECT + col2 * - col1 + - col1 / cor0.col1 - - 14 FROM tab2 AS cor0
----
-1521
-633
-824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6212
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 FROM tab2 cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT ALL + 6 DIV col0 - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-24

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + 6 / col0 - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-24

query I rowsort
SELECT 75 + - col2 AS col2 FROM tab1 AS cor0
----
-21
18
21

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT 10 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
10

query I rowsort
SELECT + col0 * col2 * + ( + col0 + + col1 ) FROM tab1
----
269952
4698
714240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6219
SELECT ALL + tab0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL + tab0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( tab0.col2 ) * - col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6221
SELECT - CAST( - 79 AS SIGNED ) AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

skipif mysql # not compatible
query I rowsort label-6221
SELECT - CAST ( - 79 AS INTEGER ) AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT col2 * + col0 + col1 * - 79 FROM tab2
----
-2260
-2633
1659

query I rowsort
SELECT + col0 + 7 * col1 FROM tab0
----
626
714
726

query I rowsort
SELECT DISTINCT - col0 * 44 + + tab2.col2 FROM tab2
----
-281
-3406
-3438

query I rowsort
SELECT - col0 * - ( + col0 + - col1 ) FROM tab0
----
-1488
-178
-2170

onlyif mysql # use DIV operator for integer division
query I rowsort label-6226
SELECT + tab2.col0 DIV - 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6226
SELECT + tab2.col0 / - 81 FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 * + 16 * + col2 + - col0 * tab0.col1 * col2 + tab0.col0 AS col1 FROM tab0
----
-2800
-547261
-55416

onlyif mysql # use DIV operator for integer division
query I rowsort label-6228
SELECT col2 DIV + tab0.col0 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6228
SELECT col2 / + tab0.col0 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT 98 + - 57 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT col2 * col2 DIV col1 AS col0 FROM tab0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-6230
SELECT col2 * col2 / col1 AS col0 FROM tab0
----
0
12
73

query I rowsort
SELECT ALL + col2 + col1 * cor0.col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT + cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 + + 99 * col0 FROM tab0
----
2409
3466
8893

query I rowsort
SELECT DISTINCT - col1 * ( 90 ) AS col0 FROM tab0 AS cor0
----
-7740
-8190
-8730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( + col2 ) + - 86 col1 FROM tab2
----
1358
590
643

query I rowsort
SELECT + col2 * 80 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT col2 * - col0 + + tab1.col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ( col1 ) - + col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT - - cor0.col0 + + col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 + col1 col2 FROM tab0 AS cor0
----
123
128
134

query I rowsort
SELECT - col2 + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ( + 91 ) + col0 FROM tab1
----
155
171
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT ALL + ( col2 ) DIV + tab2.col0 + + 8 AS col0 FROM tab2
----
11
8
8

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + ( col2 ) / + tab2.col0 + + 8 AS col0 FROM tab2
----
11
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 col0 FROM tab2, tab0 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 43 col1 FROM tab0
----
129
134
140

query I rowsort
SELECT 55 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT - - 46 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2110
3441
8145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 99 + col2 * cor0.col0 col2 FROM tab2 AS cor0
----
2127
288
3101

query I rowsort
SELECT ALL col2 * col0 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6250
SELECT DISTINCT cor0.col2 * cor0.col1 + CAST( NULL AS SIGNED ) * cor0.col0 / + col1 + + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT cor0.col2 * cor0.col1 + CAST ( NULL AS INTEGER ) * cor0.col0 / + col1 + + col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + cor0.col0 + + col2 + 38 FROM tab0 AS cor0
----
31
4
47

query I rowsort
SELECT col0 + col0 * col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
233536
489
614480

query I rowsort
SELECT + col1 * ( tab2.col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab0 AS cor0
----
19

query I rowsort
SELECT + 12 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-120
-156
-312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + - 50 col0 FROM tab2 AS cor0
----
-76
-77
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT ALL 97 DIV cor0.col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL 97 / cor0.col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT ALL 79 + - 33 FROM tab1
----
46
46
46

query I rowsort
SELECT - 64 FROM tab0, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab1
----
30

query I rowsort
SELECT - cor1.col1 + ( + 13 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7c3674f46638804e8534ae825a0c16ac

query I rowsort
SELECT + + ( - col0 ) + 93 AS col2 FROM tab0 AS cor0
----
4
58
69

query I rowsort
SELECT DISTINCT + col0 + + col2 * - 56 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1791
-20
-4421

query I rowsort
SELECT ( + col1 ) * + ( col0 ) + - col0 AS col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT col0 * col0 + - ( + 94 ) AS col0 FROM tab1 AS cor0
----
-85
4002
6306

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col2 * 25 + col1 * col1 FROM tab1
----
1525
2026
2569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * - ( + col2 ) + col1 col2 FROM tab2
----
-1475
-629
-806

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT - col0 * ( - col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + - ( cor0.col0 ) + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6273
SELECT DISTINCT - - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6274
SELECT ALL + - CAST( col2 AS SIGNED ) + col1 * 98 * col1 FROM tab0 AS cor0
----
724775
811456
922081

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + - CAST ( col2 AS INTEGER ) + col1 * 98 * col1 FROM tab0 AS cor0
----
724775
811456
922081

query I rowsort
SELECT col0 - ( + cor0.col2 ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ( + 17 ) * col0 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT cor0.col1 * 58 - - col1 * 81 AS col1 FROM tab0 AS cor0
----
11954
12649
13483

query I rowsort
SELECT ALL + col1 + - col2 * col0 AS col2 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT - col1 * ( + col1 ) - 65 FROM tab1 AS cor0
----
-165
-234
-741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6280
SELECT + CAST( + col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6280
SELECT + CAST ( + col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT + col1 DIV col2 - col1 col2 FROM tab0 cor0
----
-84
-90
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6281
SELECT + col1 / col2 - col1 col2 FROM tab0 cor0
----
-84
-90
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6282
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 93 FROM tab1, tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 93 FROM tab1, tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + tab2.col0 - + 86 AS col2 FROM tab2
----
-7
-79
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT 45 DIV - 29 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6284
SELECT 45 / - 29 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT ALL col2 DIV - cor0.col1 - + col0 DIV col1 FROM tab2 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL col2 / - cor0.col1 - + col0 / col1 FROM tab2 AS cor0
----
-1
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6286
SELECT + col2 * + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT + col2 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 7 * - col2 + 81 AS col0 FROM tab1 cor0
----
-297
-318
-591

query I rowsort
SELECT ALL + + 20 - col1 FROM tab0 AS cor0
----
-66
-71
-77

query I rowsort
SELECT + col1 + col2 * cor0.col2 + col0 FROM tab0 AS cor0
----
1199
133
6904

query I rowsort
SELECT 85 * col2 AS col2 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ( col1 ) * + col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col2 * 48 AS col0 FROM tab1 AS cor0
----
2592
2736
4608

onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT col2 DIV 6 AS col2 FROM tab1 AS cor0
----
16
9
9

skipif mysql # not compatible
query I rowsort label-6294
SELECT col2 / 6 AS col2 FROM tab1 AS cor0
----
16
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT + - col2 * - 88 + + ( - col2 ) + + 75 DIV + 14 FROM tab0 AS cor0
----
2876
7139
92

skipif mysql # not compatible
query I rowsort label-6295
SELECT + - col2 * - 88 + + ( - col2 ) + + 75 / + 14 FROM tab0 AS cor0
----
2876
7139
92

query I rowsort
SELECT - - col2 * ( col1 ) + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL ( + tab2.col0 ) AS col0 FROM tab2
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6298
SELECT 90 * + tab0.col2 - CAST( col0 * - col1 AS SIGNED ) AS col2 FROM tab0
----
15479
3485
5034

skipif mysql # not compatible
query I rowsort label-6298
SELECT 90 * + tab0.col2 - CAST ( col0 * - col1 AS INTEGER ) AS col2 FROM tab0
----
15479
3485
5034

query I rowsort
SELECT DISTINCT + - col1 * 90 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT 38 + col0 FROM tab0
----
127
62
73

query I rowsort
SELECT col1 + ( col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col1 - ( col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 + ( - col1 ) * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT - + col2 * - cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT DISTINCT + - col2 DIV 83 + - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT + - col2 / 83 + - col0 / col0 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT col1 + + col2 * cor0.col0 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6307
SELECT ALL col0 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL col0 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 32 AS col1 FROM tab1 AS cor0
----
112
35
96

query I rowsort
SELECT DISTINCT - col0 * + 71 - + col0 FROM tab0 cor0
----
-1728
-2520
-6408

query I rowsort
SELECT DISTINCT + + col2 * 82 * col1 + col1 FROM tab2 AS cor0
----
125847
52989
68665

query I rowsort
SELECT ALL col0 * 58 * col2 - col2 * - col0 FROM tab1 AS cor0
----
215232
453120
9558

query I rowsort
SELECT + + col2 * - ( col0 ) + + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - + col1 * - ( 68 + - cor0.col0 ) FROM tab1 AS cor0
----
-156
1690
40

query I rowsort
SELECT ( - 42 ) * col0 * col1 AS col0 FROM tab1 AS cor0
----
-26880
-3276
-43680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6315
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL 46 * + col0 AS col0 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT - 11 * col2 AS col0 FROM tab2 cor0
----
-286
-297
-418

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6318
SELECT ALL + - CAST( + col0 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + - CAST ( + col0 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - 20 + col2 AS col2 FROM tab0 AS cor0
----
102
21
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT ALL + 70 DIV - col0 AS col1 FROM tab2 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL + 70 / - col0 AS col1 FROM tab2 AS cor0
----
-10
0
0

query I rowsort
SELECT + col1 * - col0 * - col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - ( col1 ) * + col1 * col0 + - col0 * col0 FROM tab2 AS cor0
----
-277602
-29072
-6776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6323
SELECT - - CAST( NULL AS SIGNED ) * 67 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT - - CAST ( NULL AS INTEGER ) * 67 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 45 * col1 AS col0 FROM tab2 cor0
----
1395
2655
765

query I rowsort
SELECT ALL - + 46 AS col2 FROM tab1 cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - ( col1 ) + - ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6327
SELECT ALL col2 DIV col0 + col2 AS col1 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL col2 / col0 + col2 AS col1 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT ALL + + 74 * col1 AS col1 FROM tab1 AS cor0
----
1924
740
962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6329
SELECT DISTINCT - 2 * col1 + ( + col2 ) * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT - 2 * col1 + ( + col2 ) * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col2 + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 75 * 70 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d1b9c555f605954164a6913641a051aa

query I rowsort
SELECT tab1.col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + col2 * - col2 * - col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT ALL - - 30 * col2 * + cor0.col1 FROM tab2 AS cor0
----
19380
25110
46020

query I rowsort
SELECT ALL + - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 49 + col1 * - col1 FROM tab2 cor0
----
-240
-3432
-912

query I rowsort
SELECT ALL + 50 AS col1 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT 89 + - col2 * - col2 * - cor0.col0 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-115330
-5231
-57241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col2 + + ( col0 ) * - col1 col2 FROM tab0 cor0
----
-2117
-3491
-8108

query I rowsort
SELECT DISTINCT - - 19 * - col1 FROM tab1 AS cor0
----
-190
-247
-494

onlyif mysql # use DIV operator for integer division
query I rowsort label-6341
SELECT + col0 * - ( - col2 + col2 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6341
SELECT + col0 * - ( - col2 + col2 ) / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * + 13 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6c835d28094175a5f57879b96a80a1cb

query I rowsort
SELECT + col2 + + col1 * - 34 FROM tab0
----
-2891
-3012
-3297

query I rowsort
SELECT DISTINCT ( + col2 ) * - 52 FROM tab1
----
-2808
-2964
-4992

query I rowsort
SELECT cor0.col0 * ( + 19 ) FROM tab0, tab0 AS cor0
----
9 values hashing to bb00ad656ecb1f86e668d1fef0b986f3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) - col2 * col0 col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL 61 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + col1 * col1 * col0 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col0 + - cor0.col1 * - col1 col2 FROM tab0 cor0
----
10634
16202
7972

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT DISTINCT 39 * ( col2 ) - - col0 FROM tab0 AS cor0
----
1311
3287
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6352
SELECT ALL cor1.col2 DIV 52 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL cor1.col2 / 52 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT col2 * 61 - col2 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT + col0 + + col2 - - col2 * tab0.col2 FROM tab0
----
1146
37
6895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6355
SELECT CAST( 77 AS SIGNED ) * tab1.col0 + tab1.col0 AS col2 FROM tab1
----
234
4992
6240

skipif mysql # not compatible
query I rowsort label-6355
SELECT CAST ( 77 AS INTEGER ) * tab1.col0 + tab1.col0 AS col2 FROM tab1
----
234
4992
6240

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * + col0 + - col2 * CAST ( col1 AS REAL ) * tab1.col0 + col1 AS col0 FROM tab1
----
-32374
-4177
-93427

query I rowsort
SELECT + 18 * - tab0.col0 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT - col0 - 10 AS col2 FROM tab1
----
-13
-74
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6359
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 + col1 * - col0 AS col2 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + - 7 + + col2 * + col0 FROM tab2 AS cor0
----
182
2021
2995

onlyif mysql # use DIV operator for integer division
query I rowsort label-6362
SELECT ALL - col2 + + col1 * + col1 + 12 DIV 38 AS col1 FROM tab1 AS cor0
----
43
622
73

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - col2 + + col1 * + col1 + 12 / 38 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ( col1 ) * + col2 + 52 FROM tab2
----
1586
698
889

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT DISTINCT col2 DIV + 78 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT col2 / + 78 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * - 72 + + col2 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT + - cor0.col2 * 0 + ( - col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - col0 - col2 AS col2 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6368
SELECT ALL + tab0.col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL + tab0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL + col1 + + 73 FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT ALL - 7 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT col1 * + cor0.col2 * 59 FROM tab1 AS cor0
----
33630
73632
82836

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT - col1 * + 61 FROM tab2 AS cor0
----
-1037
-1891
-3599

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + col0 * 70 * col1 + ( + col2 ) * + col1 FROM tab0 AS cor0
----
146526
237712
567094

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 / col1 + CAST ( - col1 AS REAL ) FROM tab1 cor0
----
-24
-5
-6

query I rowsort
SELECT ALL - col1 * + col2 + col0 * ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-648
2356
494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT ALL col0 * col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL col0 * col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 72 * cor0.col2 * 5 FROM tab0 AS cor0
----
11880
29520
360

query I rowsort
SELECT + + 74 * - col1 FROM tab0 cor0
----
-6364
-6734
-7178

query I rowsort
SELECT ALL - - col0 + cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL col2 * col1 + 4 AS col2 FROM tab0 AS cor0
----
101
2842
7466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 - - col0 col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab2, tab0, tab2 AS cor0
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6385
SELECT + ( tab0.col1 ) + - CAST( tab0.col1 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6385
SELECT + ( tab0.col1 ) + - CAST ( tab0.col1 AS INTEGER ) FROM tab0
----
0
0
0

query I rowsort
SELECT - 91 * col2 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT ALL + - cor0.col2 + 42 FROM tab2 AS cor0
----
15
16
4

query I rowsort
SELECT DISTINCT - 31 * + col1 AS col2 FROM tab0
----
-2666
-2821
-3007

query I rowsort
SELECT + col1 * 17 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT + + 93 + ( col2 ) FROM tab1 AS cor0
----
147
150
189

query I rowsort
SELECT + 27 + - ( + col1 ) * col1 * 18 FROM tab2 AS cor0
----
-17271
-5175
-62631

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6392
SELECT - + CAST( col2 AS SIGNED ) * + cor0.col2 + + 77 + 21 * + col2 FROM tab1 AS cor0
----
-1705
-1975
-7123

skipif mysql # not compatible
query I rowsort label-6392
SELECT - + CAST ( col2 AS INTEGER ) * + cor0.col2 + + 77 + 21 * + col2 FROM tab1 AS cor0
----
-1705
-1975
-7123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 + col0 * + cor0.col2 col0 FROM tab1 AS cor0
----
125
3611
7643

onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT ALL + col2 * col0 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL + col2 * col0 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 12 * cor0.col1 - col0 AS col0 FROM tab1 AS cor0
----
309
56
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT - ( col1 ) DIV - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6396
SELECT - ( col1 ) / - col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6397
SELECT + CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT + CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col1 + - col2 * - col0 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT DISTINCT cor0.col2 DIV + 42 + + col1 DIV + col0 FROM tab1 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT cor0.col2 / + 42 + + col1 / + col0 FROM tab1 AS cor0
----
1
2
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT - + col1 * col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6401
SELECT - + col1 * col0 / - col0 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - col0 * col1 * col0 + col0 * + cor0.col2 FROM tab0 AS cor0
----
118860
50328
728109

query I rowsort
SELECT DISTINCT + - 96 + - col2 * col2 + col2 AS col0 FROM tab1 AS cor0
----
-2958
-3288
-9216

query I rowsort
SELECT ALL + col1 * cor0.col0 - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + col1 + 26 * + col1 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT + ( + col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col1 AS REAL ) * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col1 + + ( - tab1.col2 ) * tab1.col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT + col1 + - 24 * col1 FROM tab2
----
-1357
-391
-713

query I rowsort
SELECT ALL col1 * - 66 + tab0.col2 AS col2 FROM tab0
----
-5643
-5924
-6401

query I rowsort
SELECT DISTINCT + col2 + - ( - col1 ) * tab1.col2 FROM tab1
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6412
SELECT col2 * CAST( + col2 AS SIGNED ) - col1 col2 FROM tab0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6412
SELECT col2 * CAST ( + col2 AS INTEGER ) - col1 col2 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT - col0 + + 83 AS col2 FROM tab2
----
4
5
76

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 + - col2 * col0 FROM tab1 AS cor0
----
157302
181545
877056

query I rowsort
SELECT ( - col0 ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - - 84 * - 4 FROM tab0 AS cor0
----
-336
-336
-336

onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT DISTINCT - cor0.col1 DIV + ( col2 ) + col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - cor0.col1 / + ( col2 ) + col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL - + 78 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT - - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT 43 + col0 + 3 FROM tab0 AS cor0
----
135
70
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT + col2 * cor0.col1 + ( + col0 ) DIV col2 FROM tab1 AS cor0
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-6423
SELECT + col2 * cor0.col1 + ( + col0 ) / col2 FROM tab1 AS cor0
----
1248
1404
571

query I rowsort
SELECT + col2 * - col1 + - 40 AS col0 FROM tab2 AS cor0
----
-1574
-686
-877

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6425
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 + ( col0 * col0 ) AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT col1 * - col2 + + 84 * + cor0.col1 FROM tab0 AS cor0
----
182
4386
8051

query I rowsort
SELECT DISTINCT + col0 - col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - col0 - + col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 + - col0 col2 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT - + col1 + 79 AS col0 FROM tab2 AS cor0
----
20
48
62

query I rowsort
SELECT DISTINCT + + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * + ( + cor0.col1 + col1 ) * + col2 FROM tab2 AS cor0
----
181012
21964
51894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + ( col2 ) * + col0 col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col0 * + cor0.col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col0 col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - + 70 * + col2 FROM tab2 cor0
----
-1820
-1890
-2660

onlyif mysql # use DIV operator for integer division
query I rowsort label-6440
SELECT ALL CAST( + col0 AS SIGNED ) DIV + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL CAST ( + col0 AS INTEGER ) / + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT ALL + + ( - 29 ) FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + 4 + 89 * col1 FROM tab0 AS cor0
----
7658
8103
8637

query I rowsort
SELECT DISTINCT + + ( 58 ) - - col1 AS col1 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT ALL - 39 + - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 695222d8414958f774009059d82a3627

query I rowsort
SELECT ALL col0 + - 79 AS col2 FROM tab2
----
-1
-72
0

query I rowsort
SELECT cor0.col2 + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7

query I rowsort
SELECT ALL col1 * col0 * col0 AS col0 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT - - cor0.col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + col0 * - col2 * + 18 AS col2 FROM tab1 AS cor0
----
-138240
-2916
-65664

query I rowsort
SELECT - + ( - col1 ) + 29 * + col0 FROM tab1 AS cor0
----
113
1866
2333

query I rowsort
SELECT - cor0.col1 * col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT + ( + col0 ) * 26 AS col2 FROM tab1 AS cor0
----
1664
2080
78

query I rowsort
SELECT DISTINCT + col0 * - col1 * col2 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL ( + cor0.col2 ) * ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT ALL + col1 - + col1 * - col1 AS col2 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT col2 + - col2 * tab2.col2 + - col0 * - col2 FROM tab2
----
-513
1378
1596

query I rowsort
SELECT - + col0 + col1 + - col0 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT + 42 * col2 FROM tab1
----
2268
2394
4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT ALL col2 - - tab2.col0 DIV 73 AS col0 FROM tab2
----
27
27
39

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL col2 - - tab2.col0 / 73 AS col0 FROM tab2
----
27
27
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + - col1 * col1 * col1 + col1 col1 FROM tab0
----
-635914
-753424
-912520

query I rowsort
SELECT ALL col1 + ( cor0.col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT - col1 + - col2 - - col0 * - 24 AS col2 FROM tab1 cor0
----
-152
-1603
-2029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab1, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + - 52 AS col0 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT cor0.col0 + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - - ( 18 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1548
-1638
-1746

query I rowsort
SELECT + 80 * + col2 AS col1 FROM tab2 AS cor0
----
2080
2160
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6469
SELECT CAST( NULL AS SIGNED ) + + col0 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-6469
SELECT CAST ( NULL AS INTEGER ) + + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6470
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6470
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab0, tab0 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 44 + - col0 * cor0.col0 col1 FROM tab2 AS cor0
----
-2652
-2765
259

query I rowsort
SELECT ALL - - col2 * 0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col1 + 29 + + cor0.col2 AS col0 FROM tab1 cor0
----
109
138
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6477
SELECT + - col2 * cor0.col1 + cor0.col1 DIV col0 FROM tab2 AS cor0
----
-1534
-646
-833

skipif mysql # not compatible
query I rowsort label-6477
SELECT + - col2 * cor0.col1 + cor0.col1 / col0 FROM tab2 AS cor0
----
-1534
-646
-833

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT DISTINCT + col2 + CAST( NULL AS DECIMAL ) / col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + col2 + CAST ( NULL AS REAL ) / col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6479
SELECT col1 * + CAST( NULL AS SIGNED ) + ( + col1 + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT col1 * + CAST ( NULL AS INTEGER ) + ( + col1 + - CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1, tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT ( + 16 ) FROM tab2, tab1 AS cor0
----
16

query I rowsort
SELECT + 19 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT - col0 * 96 FROM tab2 AS cor0
----
-672
-7488
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT DISTINCT col1 DIV + col1 col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT col1 / + col1 col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col2 * + 82 + + col1 * cor0.col0 * + col1 FROM tab0 AS cor0
----
180210
329397
743733

query I rowsort
SELECT + + col1 * col1 * + col1 + + col0 * cor0.col0 FROM tab2 AS cor0
----
11154
211463
29840

query I rowsort
SELECT DISTINCT 43 + col2 - cor0.col2 FROM tab2 cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 + + 15 + - col0 * col2 col0 FROM tab0
----
-14
-7277
-771

query I rowsort
SELECT DISTINCT col1 + 37 + + col1 AS col1 FROM tab1
----
57
63
89

query I rowsort
SELECT - 96 + + 82 FROM tab1
----
-14
-14
-14

query I rowsort
SELECT - 52 - - col2 * + col2 * + col0 FROM tab0
----
-17
26084
598384

query I rowsort
SELECT + tab2.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col2 + + col2 + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1482
-570
-783

query I rowsort
SELECT DISTINCT tab1.col2 * 57 AS col1 FROM tab1
----
3078
3249
5472

query I rowsort
SELECT ALL ( col0 + col2 ) AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col1 * ( col2 ) FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6499
SELECT col0 * - col1 + CAST( col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-1322
-221
-4635

skipif mysql # not compatible
query I rowsort label-6499
SELECT col0 * - col1 + CAST ( col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-1322
-221
-4635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 - + col1 * - col2 col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT - col2 + 46 * + 56 * + col1 AS col1 FROM tab0 AS cor0
----
221503
234334
249871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + - col0 col2 FROM tab1 AS cor0
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 80 + col0 * - col0 * - col1 col0 FROM tab1 AS cor0
----
45520
4554
90880

query I rowsort
SELECT DISTINCT + - col2 * col2 + 41 + - col2 AS col1 FROM tab1 AS cor0
----
-2929
-3265
-9271

query I rowsort
SELECT cor0.col2 + col1 * 0 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col2 * + col0 - ( + col0 + - col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT cor0.col0 + col2 * - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6508
SELECT ALL + col0 DIV col1 + - col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + col0 / col1 + - col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 + - ( col2 ) * + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT 45 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1395
2655
765

onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT + - ( col0 ) + 34 DIV + cor0.col0 - - col0 * + col0 FROM tab2 AS cor0
----
46
6006
6162

skipif mysql # not compatible
query I rowsort label-6511
SELECT + - ( col0 ) + 34 / + cor0.col0 - - col0 * + col0 FROM tab2 AS cor0
----
46
6006
6162

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-86

query I rowsort
SELECT ALL + + cor0.col2 + - col1 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 0 + col0 * col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 + col1 * 90 FROM tab1
----
1266
2394
957

query I rowsort
SELECT DISTINCT cor0.col2 + - 96 FROM tab0 AS cor0
----
-14
-63
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6517
SELECT DISTINCT cor0.col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT cor0.col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 40 * col0 col1 FROM tab2 AS cor0
----
311
3177
3179

query I rowsort
SELECT - col0 * + 74 * 51 AS col1 FROM tab1 AS cor0
----
-11322
-241536
-301920

query I rowsort
SELECT DISTINCT - 42 + + col2 AS col1 FROM tab2
----
-15
-16
-4

query I rowsort
SELECT col1 + - col1 * - col0 * + col1 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT DISTINCT - 28 + tab1.col2 AS col1 FROM tab1
----
26
29
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6523
SELECT - ( + col1 * + CAST( NULL AS SIGNED ) ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT - ( + col1 * + CAST ( NULL AS INTEGER ) ) + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 59 * cor0.col0 + + col2 FROM tab2 AS cor0
----
440
4628
4699

query I rowsort
SELECT ALL + 41 + col2 FROM tab1 AS cor0
----
137
95
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT - + 92 + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-6526
SELECT - + 92 + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT DISTINCT cor0.col2 DIV 67 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT cor0.col2 / 67 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + - 43 * col1 + + col2 FROM tab2 cor0
----
-1306
-2511
-693

query I rowsort
SELECT ALL 37 AS col2 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT + col0 * col0 + - col1 - col0 AS col1 FROM tab2 AS cor0
----
11
5947
6145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 66 ) col2 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT - - col0 + - col1 * + col0 + col2 * col1 AS col1 FROM tab1 AS cor0
----
-6
1329
288

query I rowsort
SELECT DISTINCT 85 + cor0.col0 AS col2 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT DISTINCT col0 * 17 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1656
-2800
-6586

query I rowsort
SELECT ALL - + 87 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-61
-74
-77

query I rowsort
SELECT - col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col0 FROM tab2 cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6538
SELECT + CAST( NULL AS SIGNED ) * - col1 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT + CAST ( NULL AS INTEGER ) * - col1 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT ALL col1 DIV - 76 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL col1 / - 76 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + + 52 FROM tab2 cor0
----
-7
21
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT DISTINCT col0 DIV - 97 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT col0 / - 97 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col2 + 28 FROM tab1
----
-26
-29
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 + 24 col0 FROM tab2
----
-25
-6060
-6217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ( tab0.col1 * col0 ) + 25 AS col1 FROM tab0
----
2089
3420
8124

query I rowsort
SELECT - ( col0 ) + col0 - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col1 + + 43 - col0 FROM tab2 AS cor0
----
-19
24
67

query I rowsort
SELECT DISTINCT 12 FROM tab2, tab1 AS cor0
----
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6549
SELECT ALL - CAST( col1 AS SIGNED ) + col1 + 11 FROM tab1
----
11
11
11

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL - CAST ( col1 AS INTEGER ) + col1 + 11 FROM tab1
----
11
11
11

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 + ( + tab2.col2 ) AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT cor0.col0 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + 79 * col1 - col0 AS col1 FROM tab1 AS cor0
----
2051
726
947

query I rowsort
SELECT col0 * col1 + col0 + 70 FROM tab2
----
1492
294
4750

query I rowsort
SELECT ( + 50 ) + - tab1.col2 AS col0 FROM tab1
----
-4
-46
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 + - col1 col1 FROM tab0
----
-2
-62

query I rowsort
SELECT DISTINCT tab0.col0 * - col2 + + col1 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT - col1 + - 92 FROM tab1
----
-102
-105
-118

query I rowsort
SELECT ALL - col0 + col2 * + 36 * - col0 FROM tab2 AS cor0
----
-108151
-6811
-73086

query I rowsort
SELECT ALL + col1 + + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT + col0 * cor0.col0 * ( 52 ) + - col1 DIV + 94 AS col2 FROM tab2 AS cor0
----
2548
316368
324532

skipif mysql # not compatible
query I rowsort label-6560
SELECT + col0 * cor0.col0 * ( 52 ) + - col1 / + 94 AS col2 FROM tab2 AS cor0
----
2548
316368
324532

query I rowsort
SELECT DISTINCT col0 * col1 + - 76 AS col2 FROM tab2 AS cor0
----
1267
141
4526

query I rowsort
SELECT - col1 * col1 + cor0.col2 FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT + col0 * - col0 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT tab0.col1 + + col0 DIV + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6565
SELECT tab0.col1 + + col0 / + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 * + ( - col1 ) AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + + 42 FROM tab1 AS cor0
----
204
3690
7722

query I rowsort
SELECT DISTINCT col0 + 58 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-4964
-5189
-5591

query I rowsort
SELECT ALL - col1 - + 70 FROM tab2 AS cor0
----
-101
-129
-87

query I rowsort
SELECT ALL col1 + + 37 FROM tab0 AS cor0
----
123
128
134

query I rowsort
SELECT ALL - - 6 * + col0 AS col0 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT ALL + - 94 * col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1209
-2418
-930

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
17
31
59

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6576
SELECT - CAST( 77 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

skipif mysql # not compatible
query I rowsort label-6576
SELECT - CAST ( 77 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT + tab2.col1 * + 70 AS col1 FROM tab2
----
1190
2170
4130

query I rowsort
SELECT DISTINCT + cor0.col2 * 36 AS col2 FROM tab0 cor0
----
1188
2952
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT ALL col0 * col2 DIV 7 AS col2 FROM tab2 AS cor0
----
27
289
428

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL col0 * col2 / 7 AS col2 FROM tab2 AS cor0
----
27
289
428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT + - col0 * CAST( NULL AS SIGNED ) + col2 / - col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6580
SELECT + - col0 * CAST ( NULL AS INTEGER ) + col2 / - col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 97 FROM tab1 AS cor0
----
291
6208
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT DISTINCT cor0.col0 - col2 DIV 66 AS col2 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT cor0.col0 - col2 / 66 AS col2 FROM tab0 AS cor0
----
24
35
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT DISTINCT + cor0.col0 DIV 4 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1
19

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT + cor0.col0 / 4 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1
19

query I rowsort
SELECT - cor0.col2 * cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT DISTINCT + 94 * col1 AS col2 FROM tab2
----
1598
2914
5546

query I rowsort
SELECT + ( 68 ) AS col0 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT - 34 * col0 + col1 * - col0 FROM tab2 AS cor0
----
-4029
-455
-7254

query I rowsort
SELECT + cor0.col0 + - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 col1 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT ALL tab0.col2 * - col1 DIV - ( col1 ) AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL tab0.col2 * - col1 / - ( col1 ) AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col0 * + col1 + cor0.col2 - + col0 FROM tab0 AS cor0
----
2073
3361
8092

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT - col2 DIV - cor0.col0 + ( + col2 ) + col1 AS col2 FROM tab0 AS cor0
----
120
173
98

skipif mysql # not compatible
query I rowsort label-6593
SELECT - col2 / - cor0.col0 + ( + col2 ) + col1 AS col2 FROM tab0 AS cor0
----
120
173
98

query I rowsort
SELECT ALL ( - cor1.col2 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - ( col1 * + ( 57 ) + col0 ) AS col1 FROM tab0
----
-4926
-5276
-5564

query I rowsort
SELECT col1 * - col1 + + col2 FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT + + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT col2 DIV + 23 - 32 AS col0 FROM tab2 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-6598
SELECT col2 / + 23 - 32 AS col0 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + col2 * 40 * - cor0.col0 + col2 FROM tab2 cor0
----
-120042
-7533
-81094

query I rowsort
SELECT col2 + + ( col2 + col1 ) * col2 FROM tab1 AS cor0
----
10560
3876
4374

query I rowsort
SELECT ALL + - cor0.col1 * ( col1 ) + col2 * col1 AS col1 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT DISTINCT + 73 + 85 FROM tab0 cor0
----
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6603
SELECT ( cor0.col0 ) + + col0 * CAST( ( col0 ) + + col1 AS SIGNED ) DIV 74 col1 FROM tab2 AS cor0
----
10
181
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6603
SELECT ( cor0.col0 ) + + col0 * CAST ( ( col0 ) + + col1 AS INTEGER ) / 74 col1 FROM tab2 AS cor0
----
10
181
222

query I rowsort
SELECT + col1 * col1 * - col0 AS col1 FROM tab2 cor0
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6605
SELECT - col0 - + CAST( - 91 + - col2 AS SIGNED ) * - col2 AS col0 FROM tab1
----
-18032
-7833
-8500

skipif mysql # not compatible
query I rowsort label-6605
SELECT - col0 - + CAST ( - 91 + - col2 AS INTEGER ) * - col2 AS col0 FROM tab1
----
-18032
-7833
-8500

query I rowsort
SELECT ALL col0 + - 30 * - col0 AS col2 FROM tab2
----
217
2418
2449

query I rowsort
SELECT DISTINCT + col1 * - col1 + - col0 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT - col1 + ( + col0 * col0 ) + ( + col0 ) AS col1 FROM tab0
----
1163
514
7919

query I rowsort
SELECT DISTINCT col0 * ( ( + col0 ) ) FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT - col0 + - col2 * col2 DIV + 52 FROM tab1 AS cor0
----
-126
-257
-59

skipif mysql # not compatible
query I rowsort label-6610
SELECT - col0 + - col2 * col2 / + 52 FROM tab1 AS cor0
----
-126
-257
-59

query I rowsort
SELECT 88 * + col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT DISTINCT ( 62 ) AS col0 FROM tab0
----
62

query I rowsort
SELECT - 27 + col0 AS col2 FROM tab1 AS cor0
----
-24
37
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 col1 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - 46 + col2 FROM tab2 AS cor0
----
-19
-20
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6616
SELECT - 6 DIV col2 + + ( + col1 * col2 ) FROM tab0 AS cor0
----
2838
7462
91

skipif mysql # not compatible
query I rowsort label-6616
SELECT - 6 / col2 + + ( + col1 * col2 ) FROM tab0 AS cor0
----
2838
7462
91

query I rowsort
SELECT col0 * col1 + tab2.col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - col2 + col1 - col0 * col2 AS col0 FROM tab0
----
-7289
-739
61

query I rowsort
SELECT + tab0.col2 * + col1 + col2 AS col1 FROM tab0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + tab1.col0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col0 * - tab0.col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL + col1 * col0 + - col1 * + col0 * col0 AS col1 FROM tab1
----
-156
-40320
-82160

query I rowsort
SELECT DISTINCT + col1 + col1 * + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT - col1 + col1 * + col1 * cor0.col2 + + col2 * col2 FROM tab2 AS cor0
----
12409
26645
91123

query I rowsort
SELECT + col1 * + col0 + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT ALL + col1 * col0 * col0 + col0 + col1 AS col1 FROM tab0 AS cor0
----
118957
49646
720991

query I rowsort
SELECT ALL + cor0.col1 + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT DISTINCT + col2 + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT col2 + + col2 * - col0 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col2 + - col1 * + col0 * col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
-176745
-329281
-729793

query I rowsort
SELECT DISTINCT + col2 * col0 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL col2 - col2 * col1 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT ALL - col0 - col2 DIV + tab1.col0 AS col2 FROM tab1
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - col0 - col2 / + tab1.col0 AS col2 FROM tab1
----
-21
-64
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6636
SELECT - + cor0.col0 DIV - col0 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-6636
SELECT - + cor0.col0 / - col0 - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 + col1 * col2 - + col0 * - col1 AS col2 FROM tab1 AS cor0
----
102128
37690
5694

query I rowsort
SELECT ALL + col2 * + col2 + - col2 * + col0 + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
3135
63
6888

query I rowsort
SELECT DISTINCT - - ( + col0 ) + cor0.col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT - + 11 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT - + 11 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 44 + cor0.col2 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
119608
50990
5815

query I rowsort
SELECT - - 13 * - col1 FROM tab1 AS cor0
----
-130
-169
-338

onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT DISTINCT ( + col0 ) * col0 DIV col1 FROM tab1
----
0
409
492

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT ( + col0 ) * col0 / col1 FROM tab1
----
0
409
492

query I rowsort
SELECT - - col2 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - cor0.col1 * - col2 + + col2 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + cor0.col1 col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + - col2 + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - col0 * col0 + + col0 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1404
-4819
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 - + col2 col1 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT 7 + - col1 AS col0 FROM tab0
----
-79
-84
-90

query I rowsort
SELECT + tab0.col0 + - col0 * tab0.col2 * + col1 + + tab0.col2 * + col2 AS col1 FROM tab0
----
-3359
-657305
-66999

query I rowsort
SELECT DISTINCT + tab2.col0 + + col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( NULL ) NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6655
SELECT DISTINCT col2 * col1 + - col0 DIV col2 AS col1 FROM tab1
----
1248
1404
569

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT col2 * col1 + - col0 / col2 AS col1 FROM tab1
----
1248
1404
569

query I rowsort
SELECT - col0 + + col2 + col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL IN ( col2 + - col0 )
----

query I rowsort
SELECT DISTINCT col1 * col2 * - col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - col0 + col0 + col2 AS col1 FROM tab1
----
54
57
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / + col0 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT + col2 * - col1 + col2 - - col1 AS col2 FROM tab1
----
-1139
-1324
-503

query I rowsort
SELECT col2 * - col1 + + 12 - + col1 AS col0 FROM tab2 AS cor0
----
-1581
-651
-856

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT - col2 * tab1.col0 + col0 AS col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL + col0 + - tab1.col0 * tab1.col2 - col2 * tab1.col2 * - col1 FROM tab1
----
112208
28906
75657

query I rowsort
SELECT col0 * - col2 + + col1 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - col1 )
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col0 + + col2 * + col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 + + col2 - col1 AS col1 FROM tab0 AS cor0
----
2011
3299
8090

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 + col1 FROM tab0 cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT ALL + col0 + tab0.col2 DIV col0 AS col0 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL + col0 + tab0.col2 / col0 AS col0 FROM tab0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + tab0.col1 col2 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL col0 * + col0 + col2 * col1 AS col1 FROM tab2
----
6887
7618
886

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT + col0 - col1 DIV + tab0.col0 col0 FROM tab0
----
21
33
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6677
SELECT + col0 - col1 / + tab0.col0 col0 FROM tab0
----
21
33
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * cor0.col0 BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col1 * col1 col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT + col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6682
SELECT col0 * - cor0.col2 - 51 DIV - 62 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6682
SELECT col0 * - cor0.col2 - 51 / - 62 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + ( col2 ) + col2 * ( col0 * - cor0.col2 + + col2 * col2 ) FROM tab0 cor0
----
-33
-46986
9834

query I rowsort
SELECT - 55 * col1 + + col1 * + col1 FROM tab0 AS cor0
----
2666
3276
4074

query I rowsort
SELECT + - col2 + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6686
SELECT - 59 DIV + col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6686
SELECT - 59 / + col0 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + 87 col2 FROM tab0
----
111
122
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) * + col2 + - 88 col1 FROM tab2
----
-2142
-304
-3128

query I rowsort
SELECT + 40 * col1 * col2 FROM tab1
----
22800
49920
56160

onlyif mysql # use DIV operator for integer division
query I rowsort label-6690
SELECT - + col2 + + col1 * col1 DIV + 8 AS col1 FROM tab0 AS cor0
----
1175
891
953

skipif mysql # not compatible
query I rowsort label-6690
SELECT - + col2 + + col1 * col1 / + 8 AS col1 FROM tab0 AS cor0
----
1175
891
953

query I rowsort
SELECT col0 + col1 * - 94 AS col2 FROM tab0 cor0
----
-8060
-8465
-9083

query I rowsort
SELECT - cor0.col2 * - col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col2 * - tab0.col0 * ( col0 * + col2 ) FROM tab0
----
1225
53260804
627264

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 1 AS REAL ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL cor0.col0 * 30 + col1 FROM tab1 AS cor0
----
116
1930
2413

query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 * + cor0.col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + ( col2 * - col0 ) FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT + + col0 + - 40 FROM tab1 AS cor0
----
-37
24
40

query I rowsort
SELECT DISTINCT + ( col0 + col1 ) AS col2 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * cor0.col0 col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT 11 * cor0.col1 * col0 AS col1 FROM tab1 cor0
----
11440
7040
858

query I rowsort
SELECT cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT ALL col0 * + col1 + + col2 DIV - cor0.col1 col1 FROM tab1 AS cor0
----
1033
635
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL col0 * + col1 + + col2 / - cor0.col1 col1 FROM tab1 AS cor0
----
1033
635
76

query I rowsort
SELECT ALL + - 10 + cor0.col1 FROM tab2 AS cor0
----
21
49
7

query I rowsort
SELECT ALL - col1 * - col0 - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - + col2 - col0 * cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + col0 * - col2 + - col1 * col2 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT + tab1.col0 * 1 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + + cor0.col2 * 4 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1430
-494
-729

query I rowsort
SELECT DISTINCT col0 * col1 * + col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + - col1 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - col0 * 49 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT ALL col2 * + 51 AS col1 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT - ( - 65 ) * + cor0.col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT ALL - - 6 + + col1 FROM tab2 cor0
----
23
37
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6718
SELECT DISTINCT CAST( + 94 AS SIGNED ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT CAST ( + 94 AS INTEGER ) FROM tab0 AS cor0
----
94

query I rowsort
SELECT + + col2 * 76 * col0 AS col1 FROM tab2 AS cor0
----
14364
154128
228152

query I rowsort
SELECT DISTINCT + tab2.col1 * + ( col0 ) AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-1

query I rowsort
SELECT DISTINCT + tab1.col0 * + ( col1 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - + col2 * - ( cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( col2 AS REAL ) col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col0 * - ( - col0 ) + col1 FROM tab1 AS cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 2 * col2 col1 FROM tab1 AS cor0
----
1140
2496
2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT DISTINCT 95 DIV - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT 95 / - col2 FROM tab1
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT DISTINCT tab0.col0 + CAST( + col2 AS SIGNED ) FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT tab0.col0 + CAST ( + col2 AS INTEGER ) FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab2, tab0 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( 73 ) col2 FROM tab0
----
-40
-72
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6731
SELECT + tab0.col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT + tab0.col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( - col1 ) col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6733
SELECT ALL + col0 DIV - ( tab1.col2 ) + + tab1.col1 * - col2 FROM tab1
----
-1248
-1404
-571

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + col0 / - ( tab1.col2 ) + + tab1.col1 * - col2 FROM tab1
----
-1248
-1404
-571

query I rowsort
SELECT ALL col0 * - ( 23 ) FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT - 30 * 22 AS col0 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to fdf56781e46f9908e23be1c389d5fed7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6736
SELECT - + col2 DIV 37 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
80

skipif mysql # not compatible
query I rowsort label-6736
SELECT - + col2 / 37 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
80

query I rowsort
SELECT ALL + cor0.col2 * - 76 FROM tab0 AS cor0
----
-2508
-6232
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT 71 DIV tab1.col2 + col0 FROM tab1
----
4
65
80

skipif mysql # not compatible
query I rowsort label-6738
SELECT 71 / tab1.col2 + col0 FROM tab1
----
4
65
80

query I rowsort
SELECT DISTINCT - col0 + + 77 * col0 AS col2 FROM tab1
----
228
4864
6080

query I rowsort
SELECT ALL + 51 + - 28 FROM tab0
----
23
23
23

query I rowsort
SELECT DISTINCT col1 + - col2 * col0 AS col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT - tab1.col0 + ( + col1 ) * + 95 FROM tab1
----
1155
2467
886

query I rowsort
SELECT - - 6 + col2 * col0 FROM tab1 cor0
----
168
3654
7686

query I rowsort
SELECT - ( 62 ) + + col1 FROM tab2 AS cor0
----
-3
-31
-45

query I rowsort
SELECT - col2 * - 12 * col1 + - ( cor0.col0 ) AS col2 FROM tab1 cor0
----
14896
16845
6776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6746
SELECT + CAST( NULL AS SIGNED ) + + 76 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT + CAST ( NULL AS INTEGER ) + + 76 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col0 FROM tab0, tab0 AS cor0
----
10

query I rowsort
SELECT - + ( - col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT - ( + col1 ) DIV - col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6749
SELECT - ( + col1 ) / - col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - col2 + col1 * cor0.col1 * col1 FROM tab0 AS cor0
----
636023
753489
912672

query I rowsort
SELECT DISTINCT col0 * col1 * col2 + - 27 + + col0 FROM tab1 AS cor0
----
36517
4188
99893

query I rowsort
SELECT ALL + + ( col2 ) * cor0.col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL - 51 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
14739
177531
49011

query I rowsort
SELECT DISTINCT + + col2 * - col1 - col1 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT 19 AS col0 FROM tab1 cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + col2 * CAST ( col0 AS REAL ) * col1 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * ( 45 ) FROM tab2 cor0
----
1092
1208
1631

query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
64

query I rowsort
SELECT DISTINCT 83 FROM tab1, tab0, tab1 AS cor0
----
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6760
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT - + 81 * 65 FROM tab1, tab2 cor0
----
9 values hashing to caf9b77567a89b4a5571471c5f28fc7b

query I rowsort
SELECT ALL col2 * col2 - col2 * col0 * - col1 FROM tab1 AS cor0
----
109056
39729
7128

query I rowsort
SELECT + + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col1 * + col2 - + col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - col2 * + 38 + col2 - - col1 FROM tab0 AS cor0
----
-1135
-2943
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col0 + 70 col2 FROM tab2
----
119
6154
6311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * col1 + ( col1 ) * col1 col2 FROM tab1
----
1950
590
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT ( ( - col2 ) ) DIV 81 + + cor0.col2 * - cor0.col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6768
SELECT ( ( - col2 ) ) / 81 + + cor0.col2 * - cor0.col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6769
SELECT - 63 DIV + col0 AS col1 FROM tab1 AS cor0
----
-21
0
0

skipif mysql # not compatible
query I rowsort label-6769
SELECT - 63 / + col0 AS col1 FROM tab1 AS cor0
----
-21
0
0

query I rowsort
SELECT DISTINCT - col0 * - 79 AS col2 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT ALL col1 + + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - + 27 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-2314
-624
-910

query I rowsort
SELECT ALL + + 24 * - col2 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT + - col1 + - col0 * + cor0.col2 * + 8 FROM tab2 AS cor0
----
-1543
-16283
-24033

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + - col1 col2 FROM tab0 cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT ALL col1 * + cor0.col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL col1 * + cor0.col2 / - col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col1 + cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - col0 * 94 FROM tab1
----
-282
-6016
-7520

query I rowsort
SELECT + - ( col1 ) * + cor0.col1 + + col0 * ( col1 * + 60 ) AS col0 FROM tab2 AS cor0
----
12059
272639
80291

query I rowsort
SELECT col0 + 32 FROM tab2 AS cor0
----
110
111
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT + + col1 DIV 13 + col2 AS col0 FROM tab2 AS cor0
----
29
30
39

skipif mysql # not compatible
query I rowsort label-6782
SELECT + + col1 / 13 + col2 AS col0 FROM tab2 AS cor0
----
29
30
39

query I rowsort
SELECT DISTINCT + col0 * - 97 AS col0 FROM tab0
----
-2328
-3395
-8633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6784
SELECT col2 + - CAST( col0 AS SIGNED ) * - cor0.col1 * + col0 + col0 FROM tab1 cor0
----
291
41081
83376

skipif mysql # not compatible
query I rowsort label-6784
SELECT col2 + - CAST ( col0 AS INTEGER ) * - cor0.col1 * + col0 + col0 FROM tab1 cor0
----
291
41081
83376

query I rowsort
SELECT - tab0.col1 - + cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 467c9a7e5f60c1c8ceb779a7e0ffb01b

query I rowsort
SELECT + ( 94 ) FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6787
SELECT CAST( NULL AS SIGNED ) + - tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT CAST ( NULL AS INTEGER ) + - tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 84 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT - ( col2 ) + col2 * 75 AS col2 FROM tab2
----
1924
1998
2812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * + col0 * - col0 col2 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT ( - col2 + col0 ) AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT cor0.col1 + + col1 * 85 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + col2 + col0 AS col0 FROM tab2 cor0
----
1638
763
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT - 34 FROM tab2, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT ALL + col0 * cor0.col1 * cor0.col0 + + col1 * - col2 + + col1 FROM tab0 AS cor0
----
118825
46784
713440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6798
SELECT DISTINCT - col1 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT - col1 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort
SELECT - col2 * + CAST ( - col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - tab0.col2 * 54 * col1 + + col0 AS col2 FROM tab0
----
-153228
-402859
-5203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6801
SELECT DISTINCT - ( + ( col1 ) ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT - ( + ( col1 ) ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 76 * - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 49067b71e24f8976ff2ea02e1145484e

query I rowsort
SELECT 50 * + col1 AS col2 FROM tab0
----
4300
4550
4850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6804
SELECT CAST( 98 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
108
111
124

skipif mysql # not compatible
query I rowsort label-6804
SELECT CAST ( 98 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
108
111
124

query I rowsort
SELECT cor0.col0 * 86 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT - 58 * - 78 * - col0 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-109665
-158341
-409360

query I rowsort
SELECT ALL - + 37 * + col2 + 61 FROM tab1 AS cor0
----
-1937
-2048
-3491

query I rowsort
SELECT ALL + ( + ( - col0 ) ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL - col0 * - col2 - + col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - 76 * col0 + col1 FROM tab0 AS cor0
----
-1738
-2563
-6673

query I rowsort
SELECT ALL + col0 * col1 - + col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT 18 * + col0 AS col1 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT ALL - 42 + col1 FROM tab0 AS cor0
----
44
49
55

query I rowsort
SELECT DISTINCT - + 50 + - col2 FROM tab1 AS cor0
----
-104
-107
-146

query I rowsort
SELECT DISTINCT - + ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6816
SELECT - CAST( NULL AS SIGNED ) * col1 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-6816
SELECT - CAST ( NULL AS INTEGER ) * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6817
SELECT + 31 DIV - col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT + 31 / - col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + 2 * - col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT - col2 * + col1 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6820
SELECT - col2 * + col1 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT ALL - col2 * 33 DIV - col0 col1 FROM tab0 AS cor0
----
0
30
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL - col2 * 33 / - col0 col1 FROM tab0 AS cor0
----
0
30
45

query I rowsort
SELECT ALL + - col2 * col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT + - col0 DIV 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6823
SELECT + - col0 / 80 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 65 AS col2 FROM tab0
----
-1560
-2275
-5785

query I rowsort
SELECT + 90 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT DISTINCT + col2 * + 80 AS col2 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT ALL col0 * 48 + + 16 + + col1 FROM tab0 AS cor0
----
1254
1793
4379

query I rowsort
SELECT ALL col1 + - 12 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
355
371
473

query I rowsort
SELECT DISTINCT + - col0 + 98 FROM tab1 AS cor0
----
18
34
95

query I rowsort
SELECT DISTINCT tab0.col0 * + col1 + col0 AS col1 FROM tab0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * tab1.col2 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + tab1.col2 * cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 13db62c4f935162dbaa859c1d738cc13

query I rowsort
SELECT col0 + col2 + ( col1 ) AS col1 FROM tab2
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6834
SELECT DISTINCT + col0 * col1 + - CAST( - col1 AS SIGNED ) - col2 FROM tab0
----
2117
3491
8108

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT + col0 * col1 + - CAST ( - col1 AS INTEGER ) - col2 FROM tab0
----
2117
3491
8108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col0 * + col2 col1 FROM tab2
----
1330
158262
237237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 + - col2 col1 FROM tab0
----
-38
-6
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT + col0 * col0 + + tab2.col1 DIV - tab2.col1 FROM tab2
----
48
6083
6240

skipif mysql # not compatible
query I rowsort label-6837
SELECT + col0 * col0 + + tab2.col1 / - tab2.col1 FROM tab2
----
48
6083
6240

query I rowsort
SELECT - col2 * col1 + + cor0.col0 * + col1 + ( + col1 ) AS col1 FROM tab2 cor0
----
-589
3127
714

query I rowsort
SELECT ALL tab0.col2 + 0 FROM tab0
----
1
33
82

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT - col0 + col1 DIV col1 col2 FROM tab1 cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6841
SELECT - col0 + col1 / col1 col2 FROM tab1 cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT - - col2 * ( + 25 ) AS col0 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT ALL + - col2 + ( + col1 ) FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT DISTINCT - col1 + - cor0.col0 DIV + col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - col1 + - cor0.col0 / + col1 FROM tab1 AS cor0
----
-16
-19
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6845
SELECT ALL + + cor0.col1 + CAST( cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + + cor0.col1 + CAST ( cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - cor0.col1 * ( + 1 ) * + cor0.col0 + 23 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1097
-58
-681

query I rowsort
SELECT col2 + col2 * - col1 + - col0 FROM tab2 cor0
----
-1586
-687
-817

query I rowsort
SELECT ALL + - col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col1 * 99 AS col2 FROM tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT - col2 + + col1 + col1 FROM tab2
----
-4
35
92

query I rowsort
SELECT + col1 * ( tab2.col0 ) * col2 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 + col1 * ( col1 ) FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - col0 + 52 FROM tab2
----
-26
-27
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT DISTINCT col0 DIV ( 12 ) + - col1 FROM tab2 cor0
----
-11
-31
-53

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT col0 / ( 12 ) + - col1 FROM tab2 cor0
----
-11
-31
-53

query I rowsort
SELECT DISTINCT - col0 * - ( - ( + col2 ) ) + ( 94 ) FROM tab1 AS cor0
----
-3554
-68
-7586

query I rowsort
SELECT ALL - col1 * col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT col1 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col2 * - col1 - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6861
SELECT ALL - + col0 + col0 * - col1 + - cor0.col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1421
-223
-4679

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - + col0 + col0 * - col1 + - cor0.col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1421
-223
-4679

query I rowsort
SELECT + col2 + 9 * - col2 AS col1 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT ALL - - col2 + 71 AS col2 FROM tab1 AS cor0
----
125
128
167

query I rowsort
SELECT - 59 * + 54 AS col1 FROM tab2 AS cor0
----
-3186
-3186
-3186

onlyif mysql # use DIV operator for integer division
query I rowsort label-6865
SELECT - + 33 + ( + col2 ) DIV col0 FROM tab0 AS cor0
----
-32
-33
-33

skipif mysql # not compatible
query I rowsort label-6865
SELECT - + 33 + ( + col2 ) / col0 FROM tab0 AS cor0
----
-32
-33
-33

query I rowsort
SELECT - col1 * - ( col0 ) * tab1.col2 AS col1 FROM tab1
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6867
SELECT - CAST( + col0 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-6867
SELECT - CAST ( + col0 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + col0 * - cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 + ( cor0.col1 * col1 ) FROM tab0 AS cor0
----
14792
16562
18818

query I rowsort
SELECT DISTINCT + 73 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT DISTINCT + - col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6872
SELECT ALL + ( - col1 ) * - CAST( NULL AS SIGNED ) * + col1 - col2 * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + ( - col1 ) * - CAST ( NULL AS INTEGER ) * + col1 - col2 * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 7 FROM tab0 AS cor0
----
7

query I rowsort
SELECT + ( col1 ) * + 70 + - cor0.col2 FROM tab0 AS cor0
----
5987
6288
6789

query I rowsort
SELECT ALL - 42 * - col2 AS col2 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT DISTINCT - 43 * col1 AS col2 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT - ( col1 ) * cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 42 * + cor0.col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL cor0.col1 * col0 * 31 AS col2 FROM tab0 cor0
----
105245
251069
63984

query I rowsort
SELECT ALL + - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - + col0 - col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * - 7 FROM tab0 AS cor0
----
-255
-42
-663

query I rowsort
SELECT ALL col2 * col0 * + 58 AS col0 FROM tab0 AS cor0
----
2030
423284
45936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 16 col2 FROM tab0 AS cor0
----
102
107
113

query I rowsort
SELECT - col1 * col0 + col0 * col1 * + cor0.col1 FROM tab2 AS cor0
----
21488
266916
6510

query I rowsort
SELECT - cor0.col2 - col1 AS col0 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - col2 + col2 * - col1 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6888
SELECT ALL col2 DIV - 67 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL col2 / - 67 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL ( + 77 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT DISTINCT + col1 + tab0.col2 DIV + ( + col0 + tab0.col0 ) AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT + col1 + tab0.col2 / + ( + col0 + tab0.col0 ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - cor0.col1 * - 22 FROM tab2, tab0, tab0 AS cor0, tab2 AS cor1
----
1892
2002
2134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 56 ) col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL ( 29 ) AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + - 99 * + col1 AS col1 FROM tab1 AS cor0
----
-1287
-2574
-990

query I rowsort
SELECT + tab1.col2 - + col0 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT - 16 * col1 + - 11 AS col1 FROM tab2
----
-283
-507
-955

query I rowsort
SELECT - + col1 + + ( col0 ) * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT col1 + 28 FROM tab0 cor0
----
114
119
125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6899
SELECT + col0 * + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6899
SELECT + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + col0 + col1 + col0 FROM tab2 cor0
----
6221
6337
87

query I rowsort
SELECT ALL - + cor0.col2 * col0 + + col0 + col2 FROM tab2 cor0
----
-155
-1924
-2885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6902
SELECT + col1 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6902
SELECT + col1 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + tab0.col2 * col1 - + col2 * col2 FROM tab0
----
1749
738
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - tab0.col1 + col2 )
----

query I rowsort
SELECT ALL - col1 * col0 * - col1 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab1 WHERE NOT NULL IN ( col1 / col0 )
----

query I rowsort
SELECT col2 + col0 * col1 * + col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT + col1 * col1 - + col2 AS col0 FROM tab1
----
43
622
73

query I rowsort
SELECT col0 + col2 + + col2 AS col0 FROM tab2
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * + col2 * tab1.col2 FROM tab1
----
157464
185193
884736

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + col1 NOT IN ( + col2 / col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2 / + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 = - col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL + - col2 * - col0 + + ( - 15 ) * + col1 AS col2 FROM tab1 AS cor0
----
-228
3498
7485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + col2 col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col2 + col0 * + cor0.col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT ALL 19 DIV col2 FROM tab0 AS cor0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL 19 / col2 FROM tab0 AS cor0
----
0
0
19

query I rowsort
SELECT + 94 * + col1 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT ALL - - cor0.col0 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6921
SELECT + + ( + col0 ) + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-6921
SELECT + + ( + col0 ) + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - col1 * col1 + col0 AS col2 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT + 63 + col2 * 45 AS col2 FROM tab1 AS cor0
----
2493
2628
4383

onlyif mysql # use DIV operator for integer division
query I rowsort label-6924
SELECT col2 DIV + col2 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6924
SELECT col2 / + col2 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT col2 * + cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6926
SELECT - ( - col1 ) * - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT - ( - col1 ) * - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 FROM tab2, tab1 AS cor0
----
35

query I rowsort
SELECT - + cor0.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 + - cor0.col1 col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab1 AS cor0
----
10

query I rowsort
SELECT ALL + col1 * + col1 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
10634
16202
7972

onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT DISTINCT + cor0.col2 DIV 69 - + 77 FROM tab0, tab0 AS cor0
----
-76
-77

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + cor0.col2 / 69 - + 77 FROM tab0, tab0 AS cor0
----
-76
-77

query I rowsort
SELECT DISTINCT col2 + ( + col0 * - ( col2 ) + col1 ) FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT ALL + + ( - col1 ) * - col1 * - 78 + col2 FROM tab0 AS cor0
----
-576855
-645836
-733901

query I rowsort
SELECT 48 * + col0 + col2 FROM tab1 AS cor0
----
198
3129
3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 - col0 col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL col1 * - 95 FROM tab1 cor0
----
-1235
-2470
-950

onlyif mysql # use DIV operator for integer division
query I rowsort label-6939
SELECT col2 DIV - ( + col0 + + col0 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT col2 / - ( + col0 + + col0 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 - col0 * 47 AS col0 FROM tab1
----
-138
-2944
-3680

query I rowsort
SELECT ALL + 56 + col0 AS col1 FROM tab0
----
145
80
91

query I rowsort
SELECT + 32 + - col0 * col1 * + col1 - col1 AS col1 FROM tab0
----
-177558
-329380
-737068

query I rowsort
SELECT ALL - col1 + + col1 * + tab1.col1 + - ( col0 ) AS col0 FROM tab1
----
26
647
76

query I rowsort
SELECT DISTINCT + col1 * - 19 + - col2 FROM tab0 AS cor0
----
-1667
-1811
-1844

query I rowsort
SELECT 27 * col0 + + col2 FROM tab0 AS cor0
----
2485
681
946

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6946
SELECT + - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT + - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 30 + - col1 * col0 FROM tab0 AS cor0
----
-2034
-3365
-8069

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col1 - + col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col0 + col1 FROM tab2 AS cor0
----
1382
657
753

onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT DISTINCT ( col1 ) + - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT ( col1 ) + - col1 / - col2 AS col2 FROM tab0 AS cor0
----
194
88
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 - - col1 col2 FROM tab1 AS cor0
----
60
63
76

query I rowsort
SELECT ALL - + col0 * - col1 + + cor0.col0 + col2 * + col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
124332
52456
6083

query I rowsort
SELECT - 94 + col1 * col0 AS col2 FROM tab2 AS cor0
----
123
1249
4508

query I rowsort
SELECT ALL cor0.col2 + col0 + + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
133
2895
7633

query I rowsort
SELECT DISTINCT + 25 - col0 AS col2 FROM tab1 AS cor0
----
-39
-55
22

query I rowsort
SELECT DISTINCT + col2 * col1 * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT + col1 DIV col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-6958
SELECT + col1 / col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT DISTINCT - cor0.col0 - - cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT - + cor0.col1 * + cor0.col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT ALL + col2 + cor0.col2 DIV cor0.col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL + col2 + cor0.col2 / cor0.col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT ALL 15 + col2 FROM tab0
----
16
48
97

query I rowsort
SELECT ALL 38 + - col1 FROM tab1
----
12
25
28

query I rowsort
SELECT col1 * col1 + - col0 * - col2 AS col2 FROM tab2
----
1150
3291
5509

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT - CAST( NULL AS SIGNED ) + col1 * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT - CAST ( NULL AS INTEGER ) + col1 * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 60 * 53 AS col0 FROM tab2 AS cor0
----
3180
3180
3180

query I rowsort
SELECT DISTINCT + 35 * ( col2 ) AS col0 FROM tab1 AS cor0
----
1890
1995
3360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6968
SELECT - CAST( NULL AS SIGNED ) + - col2 * col2 - - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT - CAST ( NULL AS INTEGER ) + - col2 * col2 - - col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 82 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT DISTINCT + + cor0.col2 * 93 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT DISTINCT cor1.col0 + + cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
14
156
158

query I rowsort
SELECT - + 78 * col2 FROM tab2 cor0
----
-2028
-2106
-2964

query I rowsort
SELECT ALL - + col0 * 60 FROM tab1 cor0
----
-180
-3840
-4800

query I rowsort
SELECT ALL + - col0 + 47 * cor0.col0 FROM tab1 AS cor0
----
138
2944
3680

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - 18 + - col0 * + tab2.col2 - - col1 * + col2 FROM tab2
----
-2374
-512
630

query I rowsort
SELECT cor0.col1 * col2 + - col2 FROM tab2 cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT - 95 + - col0 DIV - col1 FROM tab1 AS cor0
----
-89
-89
-95

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 95 + - col0 / - col1 FROM tab1 AS cor0
----
-89
-89
-95

query I rowsort
SELECT - + ( - col1 ) * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col2 * col1 + + tab1.col2 * col0 + tab1.col2 AS col2 FROM tab1
----
1620
4275
9024

query I rowsort
SELECT + 55 + - col0 FROM tab1
----
-25
-9
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6982
SELECT 36 + col0 + col1 DIV - col0 FROM tab0
----
124
57
69

skipif mysql # not compatible
query I rowsort label-6982
SELECT 36 + col0 + col1 / - col0 FROM tab0
----
124
57
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT DISTINCT + col0 + col1 * col0 DIV + col2 col0 FROM tab0
----
187
3430
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT + col0 + col1 * col0 / + col2 col0 FROM tab0
----
187
3430
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6984
SELECT 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-6984
SELECT col1 / + col1 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT - col0 + - cor0.col2 - col1 FROM tab0 cor0
----
-133
-143
-262

query I rowsort
SELECT DISTINCT + col0 * tab1.col2 + col1 + col1 AS col2 FROM tab1
----
214
3668
7706

query I rowsort
SELECT DISTINCT - col2 + col2 + col0 AS col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT col1 * col1 DIV col0 + + col0 + + col0 FROM tab0
----
271
338
356

skipif mysql # not compatible
query I rowsort label-6988
SELECT col1 * col1 / col0 + + col0 + + col0 FROM tab0
----
271
338
356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 * + col2 col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col1 + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL tab2.col2 + - col0 * col2 AS col0 FROM tab2
----
-162
-2002
-2964

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col1 + col2
----

query I rowsort
SELECT ALL col0 * tab0.col2 + col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col0 + col2 * col2 + - col2 AS col1 FROM tab1 WHERE NOT - col2 * col2 IN ( - col2 )
----
2865
3256
9200

query I rowsort
SELECT DISTINCT col0 + col1 * col2 FROM tab0
----
132
2862
7551

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT + cor0.col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 ) OR NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + col2 FROM tab2 AS cor0
----
1482
702
756

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( col2 / - col1 + - col0 + + col0 ) AND NOT NULL IN ( - col0 / col2 )
----

query I rowsort
SELECT ALL + + cor0.col0 + col0 * + col1 * + col2 AS col1 FROM tab2 AS cor0
----
119730
51113
5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT ALL + - col1 * col0 + - col1 DIV - col1 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + - col1 * col0 + - col1 / - col1 FROM tab0 AS cor0
----
-2063
-3394
-8098

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / col2 + + col2 * + col0 NOT IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - col1 * col1 * - col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT - col1 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7005
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7006
SELECT DISTINCT + 95 DIV col0 AS col1 FROM tab2 cor0
----
1
13

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT + 95 / col0 AS col1 FROM tab2 cor0
----
1
13

query I rowsort
SELECT DISTINCT - - 54 AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT col2 * + ( col0 ) DIV col0 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT col2 * + ( col0 ) / col0 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( col0 ) * + cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col1 - col1 * + col0 AS col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT col1 * ( + col1 ) AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT col1 * + col1 + tab0.col2 AS col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - ( 56 ) * cor0.col0 FROM tab0 AS cor0
----
-1344
-1960
-4984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7014
SELECT CAST( NULL AS SIGNED ) + - col1 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT CAST ( NULL AS INTEGER ) + - col1 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT - 27 DIV + col1 + col2 AS col2 FROM tab1 AS cor0
----
53
55
94

skipif mysql # not compatible
query I rowsort label-7015
SELECT - 27 / + col1 + col2 AS col2 FROM tab1 AS cor0
----
53
55
94

query I rowsort
SELECT + cor0.col2 - cor0.col1 * 5 AS col0 FROM tab1 cor0
----
-76
31
7

query I rowsort
SELECT + ( + col0 ) * + cor0.col0 + 7 FROM tab1 AS cor0
----
16
4103
6407

query I rowsort
SELECT ( col1 ) * - cor0.col2 + ( col1 ) FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - col1 * col0 * 75 - 99 FROM tab1 AS cor0
----
-48099
-5949
-78099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT + col1 + 43 DIV 25 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-7020
SELECT + col1 + 43 / 25 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT - col1 * ( 68 ) * cor0.col1 + - 22 FROM tab1 AS cor0
----
-11514
-45990
-6822

query I rowsort
SELECT col0 + - 17 * 16 AS col0 FROM tab0 AS cor0
----
-183
-237
-248

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT - - col2 + - col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-7024
SELECT - - col2 + - col0 / + col2 AS col1 FROM tab1 AS cor0
----
54
56
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 97 + col2 * + cor0.col1 - + 80 * col1 * col1 col2 FROM tab0 cor0
----
-580500
-646191
-743214

query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col0 + 8 * 69 * col1 AS col0 FROM tab1 AS cor0
----
14349
5456
7096

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT col2 + 60 * col2 AS col0 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT - col0 + - cor0.col1 - col1 * + cor0.col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
205
40886
83107

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT DISTINCT - col0 DIV col2 + col1 - col0 AS col1 FROM tab1 AS cor0
----
-55
-67
23

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT - col0 / col2 + col1 - col0 AS col1 FROM tab1 AS cor0
----
-55
-67
23

query I rowsort
SELECT DISTINCT + col0 + 94 FROM tab1 AS cor0
----
158
174
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT + col0 - + cor0.col1 DIV col1 AS col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7033
SELECT + col0 - + cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL - col0 * 10 + - col1 FROM tab1 AS cor0
----
-56
-650
-813

query I rowsort
SELECT ALL - col2 * + 69 AS col1 FROM tab2 cor0
----
-1794
-1863
-2622

query I rowsort
SELECT - - ( col0 ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 + - col2 * col0 col1 FROM tab1 cor0
----
-3566
-7598
-80

query I rowsort
SELECT ( - col0 ) + - col1 AS col2 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + + ( + col0 ) * col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - + col0 + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 * + 22 + + col0 AS col0 FROM tab2 AS cor0
----
-1220
-295
-675

skipif mysql # not compatible
query I rowsort
SELECT col0 - CAST ( + col0 AS REAL ) * - col2 AS col1 FROM tab1
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7045
SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + - col0 + col2 + - ( col2 + - col1 * - ( - col1 ) ) FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + 8 * col0 FROM tab1 cor0
----
24
512
640

query I rowsort
SELECT ALL 72 * col2 FROM tab2
----
1872
1944
2736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + tab2.col1 col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT + - col2 + - cor0.col0 + ( + col1 ) DIV 52 FROM tab0 AS cor0
----
-170
-35
-56

skipif mysql # not compatible
query I rowsort label-7050
SELECT + - col2 + - cor0.col0 + ( + col1 ) / 52 FROM tab0 AS cor0
----
-170
-35
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT ( 54 ) * tab0.col1 + - 36 AS col2 FROM tab0
----
4608
4878
5202

query I rowsort
SELECT DISTINCT + 6 * - col2 + col0 * + col1 FROM tab1
----
-246
298
464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 41 col2 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL 91 - - col2 * col2 FROM tab0 AS cor0
----
1180
6815
92

query I rowsort
SELECT ALL - 63 + - col2 AS col1 FROM tab2 AS cor0
----
-101
-89
-90

query I rowsort
SELECT + + col2 + - col1 * + cor0.col0 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + ( - 14 ) * - col1 + + 14 FROM tab2
----
252
448
840

query I rowsort
SELECT ALL col0 * col2 + col2 * + 66 * - col2 FROM tab0 AS cor0
----
-31
-436486
-71082

query I rowsort
SELECT DISTINCT + col1 * - col0 + + 39 AS col2 FROM tab0 AS cor0
----
-2025
-3356
-8060

query I rowsort
SELECT DISTINCT 26 * col1 + - ( col2 * col0 ) + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-2481
-416
624

query I rowsort
SELECT col2 * + col2 * col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT + 27 + col2 AS col2 FROM tab2 AS cor0
----
53
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT 17 + col0 + - ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1048
-6618
51

query I rowsort
SELECT DISTINCT + 60 * col2 * col0 AS col1 FROM tab0 AS cor0
----
2100
437880
47520

query I rowsort
SELECT - col1 * + col0 + 53 * col0 AS col0 FROM tab1
----
2752
3200
81

query I rowsort
SELECT ALL tab1.col0 * + col1 * col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col2 + 79 AS col1 FROM tab1 AS cor0
----
133
136
175

query I rowsort
SELECT + + col0 * ( ( + col0 ) ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT cor0.col2 * 18 + col1 FROM tab2 AS cor0
----
517
527
701

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7074
SELECT ALL - CAST( + col2 AS SIGNED ) * - col0 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL - CAST ( + col2 AS INTEGER ) * - col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT 22 * col2 AS col2 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT ALL + ( - 7 ) FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT 75 * + 40 * - cor0.col2 AS col0 FROM tab2 cor0
----
-114000
-78000
-81000

query I rowsort
SELECT + 78 * ( + col2 ) FROM tab2 AS cor0
----
2028
2106
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT DISTINCT + - col2 * - cor0.col2 + + col1 DIV ( col1 ) FROM tab0 AS cor0
----
1090
2
6725

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT + - col2 * - cor0.col2 + + col1 / ( col1 ) FROM tab0 AS cor0
----
1090
2
6725

query I rowsort
SELECT ALL - - cor0.col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 52 col2 FROM tab1 AS cor0
----
52

query I rowsort
SELECT + col2 * + cor0.col1 - + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - col1 * col2 - + col2 * - col2 * col1 FROM tab2 AS cor0
----
21762
23902
38350

query I rowsort
SELECT + + 7 * 49 - - col0 FROM tab1 AS cor0
----
346
407
423

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col1 + + col1 * - col0 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT + col2 * + tab0.col1 + 5 AS col0 FROM tab0
----
102
2843
7467

query I rowsort
SELECT ALL col1 * cor0.col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7088
SELECT CAST( - col1 AS SIGNED ) * - cor0.col0 col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7088
SELECT CAST ( - col1 AS INTEGER ) * - cor0.col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - 27 + - col2 * col1 AS col0 FROM tab1 cor0
----
-1275
-1431
-597

query I rowsort
SELECT DISTINCT 14 FROM tab1 cor0
----
14

query I rowsort
SELECT cor0.col2 + + cor0.col1 + cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 63a0ae32ea962228aa109e5f8442dc43

query I rowsort
SELECT DISTINCT 99 + - col2 FROM tab2 AS cor0
----
61
72
73

query I rowsort
SELECT - ( + cor0.col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + 87 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501

query I rowsort
SELECT - col1 - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT 0 * + col1 + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - - col2 * - col2 * - col1 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + 18 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col0 FROM tab1
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 30 col1 FROM tab1 AS cor0
----
24
27
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT DISTINCT col2 * col2 DIV 88 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-21
-6

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT col2 * col2 / 88 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-21
-6

query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 + 20 * col1 FROM tab2 cor0
----
3208
3342
809

query I rowsort
SELECT DISTINCT 8 + + col1 + col0 FROM tab2
----
104
145
46

query I rowsort
SELECT ALL + 29 + col2 + col0 AS col2 FROM tab1
----
150
205
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7106
SELECT DISTINCT tab0.col1 + col1 DIV 55 + + col1 AS col0 FROM tab0
----
173
183
195

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT tab0.col1 + col1 / 55 + + col1 AS col0 FROM tab0
----
173
183
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 29 col2 FROM tab0
----
-6
-60
5

query I rowsort
SELECT DISTINCT + + col2 * - 12 FROM tab1 AS cor0
----
-1152
-648
-684

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT DISTINCT - col0 + col1 DIV 7 col0 FROM tab0 AS cor0
----
-12
-22
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT - col0 + col1 / 7 col0 FROM tab0 AS cor0
----
-12
-22
-76

query I rowsort
SELECT ALL + col0 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col2 * + col1 + + 58 FROM tab1 AS cor0
----
1306
1462
628

query I rowsort
SELECT + 38 + - col0 - 88 * col2 FROM tab2 AS cor0
----
-2328
-2345
-3385

query I rowsort
SELECT + col2 * + col0 + col0 * cor0.col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT - 4 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a

onlyif mysql # use DIV operator for integer division
query I rowsort label-7115
SELECT + 4 + - col0 DIV col0 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7115
SELECT + 4 + - col0 / col0 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - col2 - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + 7 * col0 AS col2 FROM tab2
----
49
546
553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT DISTINCT - col1 + 87 DIV + col0 FROM tab2 AS cor0
----
-16
-19
-58

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - col1 + 87 / + col0 FROM tab2 AS cor0
----
-16
-19
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 - - col0 * + col2 col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + cor0.col1 + 44 AS col2 FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT DISTINCT col2 - + 8 FROM tab0 AS cor0
----
-7
25
74

query I rowsort
SELECT + + col2 * col1 + - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT col1 * + 5 + + 39 * col1 + - col2 AS col2 FROM tab1 cor0
----
1090
383
476

query I rowsort
SELECT ( - col2 ) * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

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-7128
SELECT - CAST( - col0 AS SIGNED ) DIV - col0 col0 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7128
SELECT - CAST ( - col0 AS INTEGER ) / - col0 col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT 15 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7130
SELECT 85 + ( col1 ) DIV 47 AS col1 FROM tab1
----
85
85
85

skipif mysql # not compatible
query I rowsort label-7130
SELECT 85 + ( col1 ) / 47 AS col1 FROM tab1
----
85
85
85

query I rowsort
SELECT + col2 * + col0 + col2 - - 49 FROM tab2 AS cor0
----
2103
265
3089

query I rowsort
SELECT ( col1 ) * + cor0.col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - col0 col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ( - ( col0 ) ) * col2 - - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT - + 69 * + col2 AS col2 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT DISTINCT - + col2 * - col1 * - col1 + - col2 + col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + col2 * col2 + - col0 FROM tab0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT ALL + col0 DIV 37 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + col0 / 37 AS col0 FROM tab0
----
0
0
2

query I rowsort
SELECT tab0.col1 * tab0.col0 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to aff311fa1b3948e179779cc03c1fade4

query I rowsort
SELECT - ( + cor0.col2 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL col0 + col2 * ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
35961
36
551457

onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT ALL ( - col0 ) DIV - col1 + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL ( - col0 ) / - col1 + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT DISTINCT + 99 + - col1 DIV col0 + ( col2 + - 13 * col0 ) AS col2 FROM tab1 AS cor0
----
-676
-845
106

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT + 99 + - col1 / col0 + ( col2 + - 13 * col0 ) AS col2 FROM tab1 AS cor0
----
-676
-845
106

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT col2 * + col2 - ( 54 ) * + col2 FROM tab2 AS cor0
----
-608
-728
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7146
SELECT + col1 * col1 - - CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
7429
8363
9410

skipif mysql # not compatible
query I rowsort label-7146
SELECT + col1 * col1 - - CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + - 83 + + col1 * col2 FROM tab2 AS cor0
----
1451
563
754

query I rowsort
SELECT + - col2 + - col2 * - 50 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT ALL - col1 + col0 + col2 AS col2 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7150
SELECT DISTINCT - col1 - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT - col1 - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col2 * + cor0.col2 + col1 AS col2 FROM tab2 cor0
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7152
SELECT DISTINCT - cor0.col0 * CAST( NULL AS DECIMAL ) + - col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - cor0.col0 * CAST ( NULL AS REAL ) + - col0 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT DISTINCT col2 DIV 36 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-87

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT col2 / 36 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-87

query I rowsort
SELECT DISTINCT ( - 97 ) * col0 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT DISTINCT - 70 + 28 FROM tab2 AS cor0
----
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-7156
SELECT ALL - + col2 * 83 + col0 DIV + 55 FROM tab1 AS cor0
----
-4482
-4730
-7967

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL - + col2 * 83 + col0 / + 55 FROM tab1 AS cor0
----
-4482
-4730
-7967

query I rowsort
SELECT ALL col0 + - 86 AS col2 FROM tab0 AS cor0
----
-51
-62
3

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT ALL - + CAST( NULL AS DECIMAL ) + 48 + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - + CAST ( NULL AS REAL ) + 48 + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * ( col2 ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col0 * ( col0 + col0 ) * + 10 FROM tab2 AS cor0
----
-121680
-124820
-980

query I rowsort
SELECT ALL - + col0 + - 78 AS col2 FROM tab2 AS cor0
----
-156
-157
-85

query I rowsort
SELECT - col0 * + 43 FROM tab1 AS cor0
----
-129
-2752
-3440

query I rowsort
SELECT DISTINCT col2 * 8 FROM tab1 cor0
----
432
456
768

query I rowsort
SELECT ( - col0 * 93 ) AS col2 FROM tab1
----
-279
-5952
-7440

query I rowsort
SELECT 58 + - col2 AS col2 FROM tab0
----
-24
25
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7167
SELECT DISTINCT - col1 + + ( + col1 ) DIV + col0 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT - col1 + + ( + col1 ) / + col0 FROM tab1
----
-10
-13
-18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7168
SELECT DISTINCT col0 + + col1 + + ( + tab2.col0 ) * + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
6221
6337
87

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT col0 + + col1 + + ( + tab2.col0 ) * + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
6221
6337
87

query I rowsort
SELECT 53 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL col2 + + col2 + - 77 * col0 AS col1 FROM tab1
----
-123
-4814
-5968

query I rowsort
SELECT + - col0 + + cor0.col2 * 30 FROM tab2 AS cor0
----
1061
702
803

query I rowsort
SELECT - + 51 AS col1 FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT ALL 76 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT col0 DIV col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7174
SELECT col0 / col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab2
----
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7176
SELECT ALL - tab1.col0 DIV - tab1.col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - tab1.col0 / - tab1.col2 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL 17 FROM tab1 cor0
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-7178
SELECT ALL - col0 * col1 DIV - ( ( col1 ) ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL - col0 * col1 / - ( ( col1 ) ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - 13 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT - - col0 + + col0 + 95 FROM tab0 AS cor0
----
143
165
273

query I rowsort
SELECT + cor0.col2 + + col2 * - col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col2 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col2 * + 73 - + col1 AS col2 FROM tab1
----
3916
4151
6995

query I rowsort
SELECT ALL 51 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to a82d7aa6706433125f80558d877b8f07

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT - cor0.col1 DIV + 56 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT - cor0.col1 / + 56 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col1 * + ( col2 * CAST ( - col2 AS REAL ) ) FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT cor0.col0 + + col2 + - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + ( - col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - ( + col2 ) * - col1 - col2 * col0 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT - col1 + - 48 * col2 FROM tab2 AS cor0
----
-1307
-1327
-1841

onlyif mysql # use DIV operator for integer division
query I rowsort label-7191
SELECT DISTINCT - - 55 DIV 10 AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT - - 55 / 10 AS col2 FROM tab2 AS cor0
----
5

query I rowsort
SELECT ( - col2 ) * + col1 + ( - cor0.col0 ) + col1 AS col0 FROM tab1 AS cor0
----
-1315
-1381
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT + cor0.col0 * cor0.col1 DIV ( 52 ) + col1 FROM tab0 AS cor0
----
125
162
246

skipif mysql # not compatible
query I rowsort label-7193
SELECT + cor0.col0 * cor0.col1 / ( 52 ) + col1 FROM tab0 AS cor0
----
125
162
246

query I rowsort
SELECT - col0 + - col1 AS col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT + cor0.col0 + cor0.col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - col1 * + col1 * col0 AS col2 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT - col2 + 26 DIV + col1 AS col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7197
SELECT - col2 + 26 / + col1 AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 + - 96 + col2 * tab1.col2 FROM tab1
----
2823
3217
9200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7199
SELECT DISTINCT - CAST( + 14 AS SIGNED ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT - CAST ( + 14 AS INTEGER ) FROM tab1
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( + col0 ) - tab2.col2 col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT 85 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7202
SELECT DISTINCT col0 DIV col2 - + 67 AS col1 FROM tab1
----
-66
-67

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT col0 / col2 - + 67 AS col1 FROM tab1
----
-66
-67

query I rowsort
SELECT DISTINCT 6 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
6

query I rowsort
SELECT col0 - + ( - col1 + + 9 ) * + 57 AS col0 FROM tab0 AS cor0
----
4413
4763
5051

query I rowsort
SELECT DISTINCT - + col0 + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-141
-97
17

query I rowsort
SELECT DISTINCT - 62 - + col0 FROM tab2 AS cor0
----
-140
-141
-69

query I rowsort
SELECT - col0 * col2 + + cor0.col0 AS col1 FROM tab2 cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col1 FROM tab2 AS cor0
----
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT + - col2 DIV col0 + + col0 * - 46 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
1610
335708
36431

skipif mysql # not compatible
query I rowsort label-7209
SELECT + - col2 / col0 + + col0 * - 46 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
1610
335708
36431

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7210
SELECT ALL - - CAST( NULL AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - - CAST ( NULL AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 19 * - col2 - + col0 * col1 * 30 AS col0 FROM tab0 AS cor0
----
-101869
-244528
-62547

query I rowsort
SELECT + + ( - col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT - - col0 DIV - col0 + col1 * 17 AS col1 FROM tab2 AS cor0
----
1002
288
526

skipif mysql # not compatible
query I rowsort label-7213
SELECT - - col0 / - col0 + col1 * 17 AS col1 FROM tab2 AS cor0
----
1002
288
526

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7214
SELECT tab0.col0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT tab0.col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + col0 * - 29 AS col1 FROM tab0
----
16704
229709
35525

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7216
SELECT + + 39 + cor0.col1 * CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT + + 39 + cor0.col1 * CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 64 * + col1 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab0, tab1 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col1 * + tab2.col1 ) col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT - ( + col2 + + col2 ) AS col0 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT ALL + 3 * + col1 AS col1 FROM tab1
----
30
39
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col2 * - 91 * cor0.col0 col2 FROM tab1 AS cor0
----
-14745
-332032
-698960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7223
SELECT DISTINCT 55 * col2 DIV + 27 FROM tab0
----
167
2
67

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT 55 * col2 / + 27 FROM tab0
----
167
2
67

query I rowsort
SELECT ALL + col1 + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + col1 + + col2 * col1 * - col1 FROM tab1 AS cor0
----
-16211
-36478
-5690

query I rowsort
SELECT DISTINCT - - col1 * - col2 + + 2 AS col0 FROM tab0 AS cor0
----
-2836
-7460
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7227
SELECT DISTINCT - - col0 + ( 44 ) * col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-186
-244
-88

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT - - col0 + ( 44 ) * col2 / - col1 AS col2 FROM tab1 AS cor0
----
-186
-244
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7228
SELECT - + col0 DIV ( col1 ) FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7228
SELECT - + col0 / ( col1 ) FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7229
SELECT + + col2 DIV ( col0 * - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7229
SELECT + + col2 / ( col0 * - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + 17 AS col2 FROM tab0 AS cor0
----
-18
-7
-72

query I rowsort
SELECT ALL + col1 + 77 FROM tab1 cor0
----
103
87
90

query I rowsort
SELECT DISTINCT + col2 + col2 + col1 * col0 AS col1 FROM tab2
----
1419
271
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT + 36 DIV col0 + col1 * col1 AS col2 FROM tab0
----
7397
8281
9410

skipif mysql # not compatible
query I rowsort label-7233
SELECT + 36 / col0 + col1 * col1 AS col2 FROM tab0
----
7397
8281
9410

query I rowsort
SELECT DISTINCT + 79 * + col0 FROM tab2
----
553
6162
6241

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab2
----
92

query I rowsort
SELECT ( col0 ) + 7 * col2 AS col0 FROM tab1
----
381
463
752

query I rowsort
SELECT DISTINCT col0 * col2 * tab1.col1 + - 55 + + col1 AS col1 FROM tab1
----
36435
4183
99798

query I rowsort
SELECT ALL + 94 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT DISTINCT - col1 DIV - col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - col1 / - col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT + col0 * + col0 * 58 AS col1 FROM tab1 AS cor0
----
237568
371200
522

query I rowsort
SELECT col1 + 51 * - 17 AS col2 FROM tab0 AS cor0
----
-770
-776
-781

query I rowsort
SELECT ALL col0 * 46 * 20 AS col1 FROM tab0 AS cor0
----
22080
32200
81880

query I rowsort
SELECT ALL - 99 FROM tab0, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT + ( ( col2 ) + tab2.col0 ) FROM tab2
----
104
117
34

query I rowsort
SELECT - col1 + 31 AS col0 FROM tab2
----
-28
0
14

query I rowsort
SELECT - + 96 + + col1 AS col1 FROM tab2 AS cor0
----
-37
-65
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7247
SELECT CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7248
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col1 + 17 AS col0 FROM tab1
----
117
186
693

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col1 + 17 AS col0 FROM tab1
----
117
186
693

query I rowsort
SELECT ALL - 21 * col0 * col2 + - col0 FROM tab1
----
-161360
-3405
-76672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + ( cor0.col0 ) + 53 AS col1 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT 71 * col1 + - 16 AS col1 FROM tab0
----
6090
6445
6871

query I rowsort
SELECT ALL + 65 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-31
11
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7254
SELECT DISTINCT 29 + col2 * + CAST( + 31 AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
1085
2653
61

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT 29 + col2 * + CAST ( + 31 AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
1085
2653
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7255
SELECT + + col0 DIV + col2 AS col1 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7255
SELECT + + col0 / + col2 AS col1 FROM tab0 cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7256
SELECT DISTINCT - col2 DIV + col2 + col0 col2 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - col2 / + col2 + col0 col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT + cor0.col1 * col0 + + 2 + - col0 FROM tab1 AS cor0
----
578
77
962

query I rowsort
SELECT + - 85 * 36 FROM tab2 AS cor0
----
-3060
-3060
-3060

query I rowsort
SELECT ALL + + col2 * 29 FROM tab1 AS cor0
----
1566
1653
2784

onlyif mysql # use DIV operator for integer division
query I rowsort label-7260
SELECT DISTINCT + - ( 99 ) + + col2 DIV col2 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + - ( 99 ) + + col2 / col2 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT ALL - 5 FROM tab0 cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - 39 * + cor0.col2 FROM tab2 AS cor0
----
-1014
-1053
-1482

query I rowsort
SELECT ALL + - col1 * - col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - + 55 + - 65 * col2 * col1 AS col1 FROM tab2 AS cor0
----
-42045
-54460
-99765

query I rowsort
SELECT 81 * col2 * col2 FROM tab0 AS cor0
----
544644
81
88209

query I rowsort
SELECT - col2 * 97 FROM tab1 AS cor0
----
-5238
-5529
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * col0 col1 FROM tab2 AS cor0
----
-224
-2496
-2528

onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT + 17 + + cor0.col1 DIV col2 AS col0 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-7269
SELECT + 17 + + cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + + ( 72 ) FROM tab2 AS cor0
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT DISTINCT - 3 * - col0 + - col2 DIV + 38 + col1 * col0 FROM tab2 AS cor0
----
1579
238
4836

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT - 3 * - col0 + - col2 / + 38 + col1 * col0 FROM tab2 AS cor0
----
1579
238
4836

query I rowsort
SELECT DISTINCT col2 + cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT + cor1.col1 * + 59 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d1f3d7fc866b81ea7946fd9ac0b6fcde

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( - col1 ) col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7276
SELECT DISTINCT + - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + ( ( col0 ) ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 * col1 + + 97 AS col0 FROM tab2 AS cor0
----
1631
743
934

query I rowsort
SELECT DISTINCT + 63 * col2 - col1 AS col2 FROM tab2
----
1579
1670
2377

query I rowsort
SELECT + tab1.col0 * col0 * - col1 + col1 AS col0 FROM tab1
----
-208
-40950
-83187

query I rowsort
SELECT 99 + 64 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to c7705288b871650ec58302ccb864b0db

query I rowsort
SELECT DISTINCT - col2 + ( col1 + col0 ) * - tab0.col1 * col1 AS col2 FROM tab0
----
-1241989
-1490662
-813593

query I rowsort
SELECT col1 * + ( + tab1.col0 ) * - col2 + + col1 FROM tab1
----
-36470
-4186
-99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-7284
SELECT DISTINCT col1 DIV col0 + col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT col1 / col0 + col1 FROM tab1
----
10
13
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7285
SELECT DISTINCT + tab0.col1 DIV - tab0.col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT + tab0.col1 / - tab0.col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - col0 + ( col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + + col0 * 76 + + 94 * col1 AS col1 FROM tab1 AS cor0
----
2672
5804
7302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + col0 * - col1 col1 FROM tab2
----
-1226
-183
-4498

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab0, tab2 AS cor0
----
26

query I rowsort
SELECT ALL + col0 + + tab1.col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL col1 + col0 * + tab0.col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col1 * + cor0.col1 + - cor0.col0 FROM tab2 AS cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - ( - col2 * - cor0.col2 ) col1 FROM tab1 AS cor0
----
-239112
-266418
-755712

query I rowsort
SELECT - cor0.col1 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT col0 * 34 * - col2 FROM tab2
----
-102068
-6426
-68952

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab2, tab1 AS cor0
----
33

query I rowsort
SELECT + 56 * - col1 AS col1 FROM tab0
----
-4816
-5096
-5432

query I rowsort
SELECT + col1 + + col1 + col0 * - ( col0 ) * col1 FROM tab1 AS cor0
----
-182
-40940
-83174

onlyif mysql # use DIV operator for integer division
query I rowsort label-7300
SELECT + col1 DIV col1 + col0 * + col0 FROM tab1 AS cor0
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-7300
SELECT + col1 / col1 + col0 * + col0 FROM tab1 AS cor0
----
10
4097
6401

query I rowsort
SELECT - col1 * col2 + col0 + - col1 * - col1 FROM tab0 cor0
----
4582
908
9347

query I rowsort
SELECT + 47 + col0 AS col1 FROM tab0
----
136
71
82

query I rowsort
SELECT DISTINCT + 67 * col2 FROM tab0
----
2211
5494
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 * - col2 + col1 col2 FROM tab1
----
-5104
-5405
-9107

query I rowsort
SELECT ALL ( - col2 ) * col2 * + 61 AS col0 FROM tab2
----
-41236
-44469
-88084

query I rowsort
SELECT + - ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7307
SELECT + col1 + + ( - col0 ) DIV col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-7307
SELECT + col1 + + ( - col0 ) / col2 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT + col0 + + col2 * ( col0 ) AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + col0 * col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7310
SELECT DISTINCT col2 * - CAST( 9 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-273
-649
26

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT col2 * - CAST ( 9 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-273
-649
26

query I rowsort
SELECT + - col2 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col2 * col1 + cor0.col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7314
SELECT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7315
SELECT col1 + - ( col1 ) DIV col0 AS col0 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-7315
SELECT col1 + - ( col1 ) / col0 AS col0 FROM tab1 AS cor0
----
10
13
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT + col0 DIV - 88 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT + col0 / - 88 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 53 FROM tab1 AS cor0
----
-159
-3392
-4240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7318
SELECT - CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7318
SELECT - CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT ALL - col1 DIV 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - col1 / 63 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT + col2 DIV - col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7320
SELECT + col2 / - col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7321
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col0 * + cor0.col2 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col2 * 57 AS col0 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT ALL - 92 + + col0 AS col1 FROM tab0
----
-3
-57
-68

query I rowsort
SELECT ALL ( - ( col2 ) ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - cor0.col1 + 41 AS col0 FROM tab0 AS cor0
----
-45
-50
-56

query I rowsort
SELECT - - ( - col1 ) + cor0.col0 * col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT + - cor0.col0 + 83 FROM tab0 AS cor0
----
-6
48
59

query I rowsort
SELECT DISTINCT + ( col0 ) * 48 AS col1 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT 26 * - col1 AS col2 FROM tab0 AS cor0
----
-2236
-2366
-2522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 + col0 * col1 col1 FROM tab2 cor0
----
1349
223
4608

query I rowsort
SELECT 33 + col1 FROM tab2 AS cor0
----
50
64
92

query I rowsort
SELECT DISTINCT - + 55 * + cor0.col2 + + 90 FROM tab1 AS cor0
----
-2880
-3045
-5190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7334
SELECT ALL col2 * cor0.col0 - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL col2 * cor0.col0 - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7335
SELECT DISTINCT - col2 * col0 * - CAST( - col1 * - cor0.col2 AS SIGNED ) + + 46 * col1 FROM tab0 AS cor0
----
2251652
54461862
7857

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT - col2 * col0 * - CAST ( - col1 * - cor0.col2 AS INTEGER ) + + 46 * col1 FROM tab0 AS cor0
----
2251652
54461862
7857

query I rowsort
SELECT ALL - 67 * + col1 FROM tab0 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT ALL - col0 - + col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - + 79 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - - 17 + + col0 FROM tab2 AS cor0
----
24
95
96

query I rowsort
SELECT DISTINCT + cor0.col1 - col1 * + 38 AS col0 FROM tab0 cor0
----
-3182
-3367
-3589

query I rowsort
SELECT 82 * + col0 + - 96 FROM tab0 AS cor0
----
1872
2774
7202

query I rowsort
SELECT ALL col1 + - ( - col1 ) FROM tab0 cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT col1 DIV col2 + + 97 * - col0 AS col2 FROM tab0
----
-2326
-3298
-8632

skipif mysql # not compatible
query I rowsort label-7344
SELECT col1 / col2 + + 97 * - col0 AS col2 FROM tab0
----
-2326
-3298
-8632

query I rowsort
SELECT DISTINCT - col1 + + 85 AS col0 FROM tab2 AS cor0
----
26
54
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + cor0.col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - 3 + - col2 AS col0 FROM tab0
----
-36
-4
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * - col0 + - 95 col2 FROM tab1
----
-377
-6111
-7615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 col0 FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col1 + + col0 * col0 * col2 AS col2 FROM tab0
----
1322
19094
649613

query I rowsort
SELECT 54 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT + 40 + - col0 * tab2.col2 * col0 FROM tab2
----
-1283
-158144
-237118

query I rowsort
SELECT DISTINCT col1 + col0 * tab1.col0 FROM tab1
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-7354
SELECT DISTINCT - ( + col1 ) DIV + col1 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - ( + col1 ) / + col1 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7355
SELECT - col1 DIV + 61 + + col1 - - ( + col1 ) AS col0 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-7355
SELECT - col1 / + 61 + + col1 - - ( + col1 ) AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + col2 + - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - - col2 - + col1 * + col2 * 18 FROM tab0 cor0
----
-134234
-1745
-51051

query I rowsort
SELECT ALL - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col1 + - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT + - col1 DIV + col0 + col2 FROM tab2 cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-7360
SELECT + - col1 / + col0 + col2 FROM tab2 cor0
----
23
26
38

query I rowsort
SELECT DISTINCT + col0 * + 36 FROM tab0 cor0
----
1260
3204
864

query I rowsort
SELECT - col2 - tab0.col0 * col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT 7 * - 74 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 57621357c588b55006a4c021f4dd020c

query I rowsort
SELECT + col2 * + 92 * col0 FROM tab0
----
3220
671416
72864

query I rowsort
SELECT 30 + ( col1 ) * - col0 AS col2 FROM tab2
----
-1313
-187
-4572

query I rowsort
SELECT + 27 AS col2 FROM tab1, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + - col0 - col0 * col0 FROM tab2 cor0
----
-56
-6162
-6320

query I rowsort
SELECT - 47 * col1 + col2 FROM tab0 AS cor0
----
-4009
-4195
-4558

query I rowsort
SELECT 34 * col1 + col0 FROM tab2 AS cor0
----
1061
2084
657

query I rowsort
SELECT DISTINCT ( + 75 ) AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT col2 * 32 AS col0 FROM tab1
----
1728
1824
3072

query I rowsort
SELECT ALL 8 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ( tab1.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + col2 * 96 AS col0 FROM tab2
----
2496
2592
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT ALL + col2 DIV + 71 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + col2 / + 71 FROM tab1
----
0
0
1

query I rowsort
SELECT + - col0 + - col2 + + 98 * - col1 FROM tab0 AS cor0
----
-8485
-9089
-9542

query I rowsort
SELECT DISTINCT col1 * + col0 * + col0 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7379
SELECT + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - ( - col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col0 + col0 * - col0 * 84 FROM tab2 AS cor0
----
-4123
-511134
-524323

query I rowsort
SELECT + col0 + - col2 * col2 + + 52 * col2 * + col1 AS col2 FROM tab1 AS cor0
----
26455
55760
70095

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7383
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - col2 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - col2 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT DISTINCT 73 DIV 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT 73 / 95 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7385
SELECT + CAST( + 48 AS SIGNED ) + cor0.col1 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT + CAST ( + 48 AS INTEGER ) + cor0.col1 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 18 AS col1 FROM tab2 AS cor0
----
468
486
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT CAST( cor0.col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-7387
SELECT CAST ( cor0.col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + ( - col2 ) * + cor0.col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 - cor0.col1 col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - + col0 + + col1 * + ( - cor0.col1 * - col0 ) AS col0 FROM tab1 AS cor0
----
13440
2025
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-7391
SELECT DISTINCT 40 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT 40 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
40

query I rowsort
SELECT DISTINCT cor0.col0 + - col0 AS col0 FROM tab0 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7393
SELECT ALL - col2 * - col2 + + CAST( - col0 AS SIGNED ) col1 FROM tab0 cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - col2 * - col2 + + CAST ( - col0 AS INTEGER ) col1 FROM tab0 cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT ALL + + col0 * cor0.col0 + + 79 DIV + 2 FROM tab1 AS cor0
----
4135
48
6439

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL + + col0 * cor0.col0 + + 79 / + 2 FROM tab1 AS cor0
----
4135
48
6439

query I rowsort
SELECT 75 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-22
-2763
-7387

query I rowsort
SELECT + ( col1 ) + 17 * col1 AS col0 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT DISTINCT - 40 * col1 FROM tab2 cor0
----
-1240
-2360
-680

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * + cor0.col2 * + col1 FROM tab1 AS cor0
----
-36544
-4215
-99920

query I rowsort
SELECT + cor0.col2 + col2 * ( - col2 ) FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - - col2 + 40 AS col2 FROM tab0 cor0
----
122
41
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT 72 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT 39 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT - col0 + + col1 + 83 * col2 FROM tab1
----
4505
4677
7901

query I rowsort
SELECT + col1 * + col2 - 4 AS col1 FROM tab2 AS cor0
----
1530
642
833

query I rowsort
SELECT + cor0.col0 - cor0.col2 * 70 FROM tab0 AS cor0
----
-2286
-35
-5651

query I rowsort
SELECT - - col2 * cor0.col2 + + col1 + + col2 AS col2 FROM tab0 AS cor0
----
1208
6897
99

query I rowsort
SELECT + col1 - - ( - 15 ) AS col1 FROM tab2 AS cor0
----
16
2
44

query I rowsort
SELECT + 44 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT - - cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + + col0 * + cor0.col1 + col2 + cor0.col2 FROM tab0 cor0
----
2130
3397
8263

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
63

query I rowsort
SELECT ALL col2 * + 19 - - cor0.col2 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT DISTINCT + col2 * 41 AS col2 FROM tab0 cor0
----
1353
3362
41

query I rowsort
SELECT + - cor0.col2 * - col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 73 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT 23 + + col2 * 77 FROM tab0 AS cor0
----
100
2564
6337

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab0, tab1, tab0 cor0
----
9

query I rowsort
SELECT ALL col1 * 8 FROM tab1 AS cor0
----
104
208
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7421
SELECT DISTINCT 89 + - cor0.col2 * - col0 * + CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
1314
19097
649611

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT 89 + - cor0.col2 * - col0 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
1314
19097
649611

query I rowsort
SELECT + 18 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT ALL 35 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - cor0.col1 - + 83 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-169
-174
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7425
SELECT ALL tab0.col0 DIV + 58 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL tab0.col0 / + 58 AS col2 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + col0 * col2 col2 FROM tab2
----
2098
259
3072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7427
SELECT CAST( NULL AS SIGNED ) + + tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT CAST ( NULL AS INTEGER ) + + tab0.col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 36 + cor2.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e06270df36cef74e7d248fa7059690a1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7429
SELECT DISTINCT 84 * - col2 DIV col2 AS col1 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT 84 * - col2 / col2 AS col1 FROM tab0
----
-84

query I rowsort
SELECT 52 * - col2 AS col2 FROM tab0
----
-1716
-4264
-52

query I rowsort
SELECT 8 * + col0 FROM tab1
----
24
512
640

query I rowsort
SELECT DISTINCT - - 39 FROM tab0, tab2, tab2 AS cor0
----
39

query I rowsort
SELECT ALL - - col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7434
SELECT + ( - col0 ) DIV + 16 AS col0 FROM tab1
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT + ( - col0 ) / + 16 AS col0 FROM tab1
----
-4
-5
0

query I rowsort
SELECT 7 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL 53 - + tab0.col0 FROM tab0
----
-36
18
29

query I rowsort
SELECT - col2 + 45 + col1 FROM tab1 AS cor0
----
-2
-38
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7438
SELECT - col0 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-7438
SELECT - col0 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7439
SELECT DISTINCT + col1 DIV col0 + - col1 DIV - col2 FROM tab0 AS cor0
----
2
5
99

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT + col1 / col0 + - col1 / - col2 FROM tab0 AS cor0
----
2
5
99

query I rowsort
SELECT col0 * - col2 + + col0 * col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + - 45 * 76 AS col2 FROM tab2 cor0
----
-3446
-3447
-3458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - ( - col1 ) * - cor0.col2 col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT DISTINCT + col2 DIV 36 AS col1 FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + col2 / 36 AS col1 FROM tab1 cor0
----
1
2

query I rowsort
SELECT DISTINCT col2 + - 54 FROM tab0 AS cor0
----
-21
-53
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 79 + 55 col1 FROM tab0 cor0
----
-24
-2552
-6423

query I rowsort
SELECT DISTINCT + col1 + 3 FROM tab1 AS cor0
----
13
16
29

query I rowsort
SELECT DISTINCT + 13 * + 48 - cor0.col1 FROM tab1 AS cor0
----
598
611
614

query I rowsort
SELECT col0 * ( + col2 ) + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL 75 + - col2 * + cor0.col2 FROM tab0 cor0
----
-1014
-6649
74

query I rowsort
SELECT + 61 + col2 FROM tab0 AS cor0
----
143
62
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-7452
SELECT DISTINCT col1 DIV - col2 + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT col1 / - col2 + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT DISTINCT - col0 * - 50 + col1 + cor0.col2 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3667
-438
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-7454
SELECT ALL + ( + col2 ) DIV + col2 + ( col2 ) FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL + ( + col2 ) / + col2 + ( col2 ) FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + 80 + - 75 AS col0 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7456
SELECT ALL + col1 + cor0.col2 + col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL + col1 + cor0.col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 40 * 10 + col2 AS col1 FROM tab0 AS cor0
----
401
433
482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - ( tab2.col0 ) * + col0 col2 FROM tab2
----
42
6006
6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7459
SELECT ALL col1 - + CAST( NULL AS SIGNED ) * + ( + col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL col1 - + CAST ( NULL AS INTEGER ) * + ( + col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) * + col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - 75 + col1 FROM tab0 AS cor0
----
11
16
22

query I rowsort
SELECT ALL ( + ( - col2 ) ) * + col0 - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - - 24 + col2 AS col2 FROM tab1 AS cor0
----
120
78
81

query I rowsort
SELECT ALL 56 + - col1 AS col2 FROM tab1 AS cor0
----
30
43
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7465
SELECT DISTINCT CAST( NULL AS SIGNED ) / 46 + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 46 + col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * cor0.col0 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - + col1 + 45 AS col0 FROM tab1 cor0
----
19
32
35

query I rowsort
SELECT + 6 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 * col2 * + cor0.col2 FROM tab1 cor0
----
157438
185183
884723

query I rowsort
SELECT DISTINCT 95 * - col1 + col2 * col0 * col2 AS col2 FROM tab1 AS cor0
----
206986
6278
736045

query I rowsort
SELECT ALL - 31 * + col0 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT ALL - col0 + col0 * + col1 - col0 FROM tab0 AS cor0
----
2016
3325
7921

query I rowsort
SELECT - 12 + 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL col2 * col2 + 76 FROM tab2 AS cor0
----
1520
752
805

query I rowsort
SELECT ALL - cor0.col2 + + ( col0 ) + - col1 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT cor0.col1 * - col0 - 27 FROM tab0 AS cor0
----
-2091
-3422
-8126

query I rowsort
SELECT ALL + col1 * - col1 + 95 AS col2 FROM tab2 AS cor0
----
-194
-3386
-866

query I rowsort
SELECT ALL - ( col0 ) + + col2 + - col1 AS col0 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT + 64 * - col0 + 12 - col2 FROM tab0 AS cor0
----
-1557
-2229
-5766

query I rowsort
SELECT - ( - col0 ) + + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + + 26 + + col1 * + 20 FROM tab0 AS cor0
----
1746
1846
1966

query I rowsort
SELECT col2 * col0 + - ( + col0 * + col0 ) AS col0 FROM tab1 AS cor0
----
-448
1280
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT + col1 * 1 DIV + tab1.col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7483
SELECT + col1 * 1 / + tab1.col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT tab2.col2 * - col0 * - col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT 38 + col2 * - col1 AS col1 FROM tab0
----
-2800
-59
-7424

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7486
SELECT ALL CAST( NULL AS SIGNED ) + 26 * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL CAST ( NULL AS INTEGER ) + 26 * - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + tab2.col2 ) * 58 AS col2 FROM tab2
----
-1508
-1566
-2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-7488
SELECT ALL ( + col1 ) DIV ( + 67 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL ( + col1 ) / ( + 67 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 * col1 AS col1 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT DISTINCT - ( col0 ) * + 16 AS col1 FROM tab2 AS cor0
----
-112
-1248
-1264

query I rowsort
SELECT ALL + cor0.col2 * col0 + - 93 * + col1 AS col1 FROM tab1 AS cor0
----
-2256
2718
6471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col2 col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-7493
SELECT DISTINCT + col0 + cor0.col1 DIV col1 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + col0 + cor0.col1 / col1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT + - 43 * - col2 + ( + col0 ) FROM tab0 AS cor0
----
1443
3615
78

query I rowsort
SELECT ALL + + 60 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT ALL - col1 + 23 * col2 FROM tab0 AS cor0
----
-74
1795
673

query I rowsort
SELECT - cor0.col0 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 + 98 * + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-3333
-707742
-74778

onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT DISTINCT + col0 + - 46 DIV 34 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT + col0 + - 46 / 34 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
54
57
96

query I rowsort
SELECT ALL + - cor0.col1 + 63 AS col1 FROM tab0 AS cor0
----
-23
-28
-34

query I rowsort
SELECT DISTINCT + col2 * + 29 + cor0.col1 + + col1 FROM tab0 cor0
----
1129
223
2560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7503
SELECT CAST( + col1 AS SIGNED ) + col2 * ( col2 ) AS col0 FROM tab1 cor0
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-7503
SELECT CAST ( + col1 AS INTEGER ) + col2 * ( col2 ) AS col0 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT ALL + col1 * 41 + - col0 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
1225
3994
8133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col0 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL + 86 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT + - 76 AS col1 FROM tab0 cor0
----
-76

query I rowsort
SELECT - + col0 + - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL - - ( + ( col2 ) ) + col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7510
SELECT ALL + CAST( ( - col0 ) * ( - col1 ) AS SIGNED ) AS col1 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + CAST ( ( - col0 ) * ( - col1 ) AS INTEGER ) AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL - - 5 * - col0 - - col1 FROM tab2 AS cor0
----
-331
-378
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7512
SELECT ALL + cor1.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + cor1.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 95 * - col2 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT + - col1 * + cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7515
SELECT + ( col1 ) * cor0.col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT + ( col1 ) * cor0.col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 9 + - col1 FROM tab1 cor0
----
-1
-17
-4

query I rowsort
SELECT ALL + + 92 - + col0 AS col2 FROM tab1 AS cor0
----
12
28
89

query I rowsort
SELECT - + cor0.col0 * col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT col0 * + col0 * + col0 AS col1 FROM tab1
----
262144
27
512000

query I rowsort
SELECT + col1 * + ( col1 + col2 ) * col1 AS col2 FROM tab1 AS cor0
----
18421
54080
6700

query I rowsort
SELECT col0 * 65 + + 10 FROM tab2 AS cor0
----
465
5080
5145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7522
SELECT - + col0 * CAST( cor0.col1 AS SIGNED ) + cor0.col0 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7522
SELECT - + col0 * CAST ( cor0.col1 AS INTEGER ) + cor0.col0 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + ( - col2 ) * col1 AS col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT - col0 * 27 AS col0 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT 4 - - col2 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT + - 69 + col0 AS col1 FROM tab0 AS cor0
----
-34
-45
20

query I rowsort
SELECT DISTINCT 61 * col0 * - 2 + + col2 AS col1 FROM tab1
----
-312
-7751
-9664

query I rowsort
SELECT 81 + - tab1.col0 FROM tab1
----
1
17
78

query I rowsort
SELECT + + col1 * col1 - - col1 * + col0 FROM tab2 AS cor0
----
1178
1632
8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-7530
SELECT DISTINCT + col0 * col2 + - 54 * + col0 DIV col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
3584
7613
82

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT + col0 * col2 + - 54 * + col0 / col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
3584
7613
82

query I rowsort
SELECT ALL + col1 * col2 + + ( + col1 + col2 ) AS col1 FROM tab1 AS cor0
----
1357
1484
637

query I rowsort
SELECT + col2 * col1 + + ( - col0 ) FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7533
SELECT DISTINCT - - col2 + + col0 * + CAST( 18 AS SIGNED ) * col1 FROM tab0 cor0
----
145864
37185
61111

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT - - col2 + + col0 * + CAST ( 18 AS INTEGER ) * col1 FROM tab0 cor0
----
145864
37185
61111

query I rowsort
SELECT ALL + ( col2 ) * col2 - - col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT col2 * col1 + + col1 * + col1 FROM tab1 cor0
----
1417
2080
670

query I rowsort
SELECT ALL + + col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col0 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT 5 * col1 AS col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT ALL - col0 * + col0 + + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + - 22 * 50 col2 FROM tab0 AS cor0
----
-1186
-1191
-1197

query I rowsort
SELECT ALL cor0.col0 * + col1 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
1375
3394
975

query I rowsort
SELECT ALL + col1 * col0 + - 29 FROM tab0 cor0
----
2035
3366
8070

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7543
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7543
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col2 * 45 FROM tab1 AS cor0
----
2430
2565
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7545
SELECT DISTINCT col1 * 94 + col1 + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT col1 * 94 + col1 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col1 - + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + 41 AS col0 FROM tab1 AS cor0
----
41

query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT - - 81 FROM tab1 cor0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7550
SELECT DISTINCT + 69 DIV cor0.col1 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT + 69 / cor0.col1 FROM tab2, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 70 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7553
SELECT - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + ( - col2 + + col1 ) FROM tab0
----
53
9
96

query I rowsort
SELECT + ( - col2 ) * + col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + tab0.col1 * - col0 * col0 AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + col2 * 83 FROM tab2
----
2158
2241
3154

query I rowsort
SELECT DISTINCT 54 + col1 * col1 FROM tab0 cor0
----
7450
8335
9463

query I rowsort
SELECT ( col1 ) * + 40 AS col1 FROM tab2 AS cor0
----
1240
2360
680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7561
SELECT ALL cor0.col2 DIV col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL cor0.col2 / col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7562
SELECT - CAST( NULL AS SIGNED ) + ( + col0 + col1 ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT - CAST ( NULL AS INTEGER ) + ( + col0 + col1 ) * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col2 * - col2 + + col1 * 87 FROM tab1
----
-2379
-654
-8085

query I rowsort
SELECT - 1 * + col2 * tab2.col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - col1 + - col1 + col0 FROM tab0
----
-148
-159
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7566
SELECT ALL - col2 * - cor0.col2 + + CAST( - col1 + - col1 AS SIGNED ) FROM tab2 AS cor0
----
1410
558
667

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL - col2 * - cor0.col2 + + CAST ( - col1 + - col1 AS INTEGER ) FROM tab2 AS cor0
----
1410
558
667

query I rowsort
SELECT ALL + col0 + col1 + - tab0.col2 * col2 AS col1 FROM tab0
----
-6544
-979
131

skipif mysql # not compatible
query I rowsort
SELECT col0 + col1 + CAST ( + col2 AS REAL ) * col1 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT - + 50 * - col2 FROM tab0 AS cor0
----
1650
4100
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT col2 * col1 + col0 DIV - col1 AS col1 FROM tab2
----
1533
642
837

skipif mysql # not compatible
query I rowsort label-7570
SELECT col2 * col1 + col0 / - col1 AS col1 FROM tab2
----
1533
642
837

query I rowsort
SELECT ALL + col2 + + ( - tab1.col2 ) + col2 * col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col0 * 15 + col0 + col2 * col2 * - 80 AS col0 FROM tab1 AS cor0
----
-233232
-258896
-736000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7573
SELECT ALL + col1 * CAST( NULL AS SIGNED ) + col1 + - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) + col1 + - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - tab2.col0 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab2 cor0
----
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT ALL + + col0 + - col1 DIV col2 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + + col0 + - col1 / col2 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT + - col2 * 85 AS col1 FROM tab2 AS cor0
----
-2210
-2295
-3230

query I rowsort
SELECT DISTINCT + + col0 * - col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 32 FROM tab2, tab1 AS cor0
----
32

query I rowsort
SELECT + - 4 * 86 FROM tab2 AS cor0
----
-344
-344
-344

query I rowsort
SELECT + col1 + + col1 * col2 * + 71 FROM tab2 AS cor0
----
108973
45883
59458

query I rowsort
SELECT ALL - + 37 + + col0 * cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
118788
49499
720774

query I rowsort
SELECT ALL col1 + - 57 AS col0 FROM tab1 cor0
----
-31
-44
-47

query I rowsort
SELECT DISTINCT ( 50 ) AS col1 FROM tab2 cor0
----
50

query I rowsort
SELECT ALL 30 + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d56ce23fec79771e57ce43fe6396fe37

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col1 + + ( - col0 + col1 ) FROM tab0 AS cor0
----
7458
8283
9471

query I rowsort
SELECT DISTINCT + + ( - col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7589
SELECT ALL - + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL - + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 49 + col1 * - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-244019
-678993
-9360

query I rowsort
SELECT ALL - ( + col2 ) + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - + ( col1 ) * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7593
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + 10 FROM tab0 cor0
----
-240
-350
-890

query I rowsort
SELECT + col0 + col2 * - cor0.col2 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - col1 * - col2 * - 61 AS col0 FROM tab2 AS cor0
----
-39406
-51057
-93574

query I rowsort
SELECT + 25 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( - 59 ) col2 FROM tab2 cor0
----
-21
-32
-33

query I rowsort
SELECT + 79 - + col1 AS col1 FROM tab0 AS cor0
----
-12
-18
-7

query I rowsort
SELECT 45 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + 60 * 66 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 444c26bcaddea6d11d95b8b72668615b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7603
SELECT col0 + CAST( - col0 AS SIGNED ) + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7603
SELECT col0 + CAST ( - col0 AS INTEGER ) + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + col1 + - 3 * col0 AS col2 FROM tab1
----
-182
-227
17

query I rowsort
SELECT ALL - col0 * - ( col2 ) * col1 + col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT + col1 + - col2 * col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT 42 * - col1 - col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-11120
-4109
-4404

query I rowsort
SELECT DISTINCT + + 64 * col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT col0 * - col2 + ( - col0 ) * col0 * ( - col1 ) + col0 FROM tab0 AS cor0
----
118825
48768
713602

query I rowsort
SELECT + - ( col0 ) * 95 AS col1 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT DISTINCT 9 + col1 AS col1 FROM tab2
----
26
40
68

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
32

query I rowsort
SELECT DISTINCT + 4 * + col1 AS col1 FROM tab0 AS cor0
----
344
364
388

onlyif mysql # use DIV operator for integer division
query I rowsort label-7614
SELECT - col0 * cor0.col0 DIV + ( col2 ) col1 FROM tab1 AS cor0
----
-66
-71
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7614
SELECT - col0 * cor0.col0 / + ( col2 ) col1 FROM tab1 AS cor0
----
-66
-71
0

query I rowsort
SELECT ALL 32 + + col0 + + ( - col2 ) FROM tab0 cor0
----
23
39
66

query I rowsort
SELECT ALL cor0.col0 * + col1 - + ( col2 * col0 ) FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT DISTINCT + 60 * col0 AS col1 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT ALL + - 63 + - 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7619
SELECT + cor0.col0 DIV 78 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7619
SELECT + cor0.col0 / 78 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + col2 * ( 55 ) + col1 * col0 + + 43 FROM tab2 AS cor0
----
1745
3476
6075

query I rowsort
SELECT ALL + + col1 * 41 AS col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT - 58 + + col2 FROM tab2
----
-20
-31
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT 86 DIV tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 397fa53045331a6e875f7522e6c0a60a

skipif mysql # not compatible
query I rowsort label-7623
SELECT 86 / tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 397fa53045331a6e875f7522e6c0a60a

query I rowsort
SELECT ALL + 34 + + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 76f94a38471df9bc8f69da4f0afe0a00

query I rowsort
SELECT - col1 - 67 FROM tab2 AS cor0
----
-126
-84
-98

query I rowsort
SELECT + + ( + 78 ) * col0 + - col0 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT ALL + col0 * + col1 + - col0 AS col2 FROM tab2 cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7628
SELECT - + CAST( - col1 AS SIGNED ) * - cor0.col2 - + col1 * col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

skipif mysql # not compatible
query I rowsort label-7628
SELECT - + CAST ( - col1 AS INTEGER ) * - cor0.col2 - + col1 * col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT + 82 + - col0 * 2 AS col0 FROM tab2 AS cor0
----
-74
-76
68

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 cor1, tab1, tab1 cor2
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT - 11 + col2 DIV 27 FROM tab0 AS cor0
----
-10
-11
-8

skipif mysql # not compatible
query I rowsort label-7631
SELECT - 11 + col2 / 27 FROM tab0 AS cor0
----
-10
-11
-8

query I rowsort
SELECT + col2 * + col2 + + cor0.col1 * 70 + col1 FROM tab2 AS cor0
----
2651
2930
4865

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + cor0.col0 AS REAL ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7634
SELECT ALL col0 * col1 DIV col2 FROM tab1
----
1
10
11

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL col0 * col1 / col2 FROM tab1
----
1
10
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT - col0 DIV + col0 + col0 * - tab2.col0 AS col0 FROM tab2
----
-50
-6085
-6242

skipif mysql # not compatible
query I rowsort label-7635
SELECT - col0 / + col0 + col0 * - tab2.col0 AS col0 FROM tab2
----
-50
-6085
-6242

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 NOT IN ( + col2 * col1 )
----

query I rowsort
SELECT tab0.col1 * col1 * - col1 AS col2 FROM tab0 WHERE col2 NOT BETWEEN + col1 * col0 AND NULL
----
-636056
-753571
-912673

query I rowsort
SELECT - col0 + - col1 * col1 + + col2 AS col0 FROM tab0
----
-7387
-8288
-9443

query I rowsort
SELECT - tab0.col0 FROM tab0 WHERE NULL <= + col2 / col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT DISTINCT col0 + col0 DIV - col1 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT col0 + col0 / - col1 FROM tab1
----
3
58
74

query I rowsort
SELECT - col1 * + col0 + - 45 * - col1 FROM tab2 AS cor0
----
-1947
-578
1178

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL 86 * col0 + - col0 * - col0 FROM tab2 AS cor0
----
12792
13035
651

query I rowsort
SELECT ALL - 95 * cor0.col1 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
-171
-2216
-4929

query I rowsort
SELECT 6 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
60
63

query I rowsort
SELECT ALL col1 + col0 + tab2.col1 FROM tab2
----
113
196
69

query I rowsort
SELECT - 61 + col2 FROM tab2 AS cor0
----
-23
-34
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NOT NULL > col0
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL > col0 / col1 + + col0
----

query I rowsort
SELECT DISTINCT - + 29 - col0 AS col2 FROM tab1 AS cor0
----
-109
-32
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7651
SELECT - col2 - col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-7651
SELECT - col2 - col1 / - col0 AS col2 FROM tab2 AS cor0
----
-23
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7652
SELECT DISTINCT - col2 DIV + col2 + - col2 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - col2 / + col2 + - col2 FROM tab1
----
-55
-58
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7654
SELECT col2 * - col1 + col0 DIV + col0 + col2 * col1 col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7654
SELECT col2 * - col1 + col0 / + col0 + col2 * col1 col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * - tab1.col1 col1 FROM tab1
----
-1248
-1404
-570

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN cor0.col0 AND col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * + col2 * col0 )
----

query I rowsort
SELECT ALL + col1 + - col1 * col0 * - cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
22769
271499
6751

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col1 * - col1 )
----

query I rowsort
SELECT - tab2.col1 + col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN ( + col0 ) AND ( NULL )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col2 + + tab2.col1 * col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT + col1 + tab0.col2 * + col2 AS col0 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT tab1.col0 + - col0 * col0 AS col1 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT col1 * col2 * - tab2.col0 + col0 + col0 * - col0 AS col0 FROM tab2
----
-125658
-57196
-5901

query I rowsort
SELECT + col2 + col1 * + col1 AS col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - + col1 * - 82 AS col2 FROM tab0 AS cor0
----
7052
7462
7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col1 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT - - col0 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7670
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col2 * + col2 * + col0 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7672
SELECT DISTINCT + CAST( + 70 AS SIGNED ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT + CAST ( + 70 AS INTEGER ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * col1 + col2 AS col2 FROM tab1
----
157
265
730

query I rowsort
SELECT + 74 + col0 AS col0 FROM tab1
----
138
154
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7675
SELECT + CAST( NULL AS SIGNED ) - - tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT + CAST ( NULL AS INTEGER ) - - tab1.col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * + col2 * + col1 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL - 87 * col2 - + col0 FROM tab0 AS cor0
----
-122
-2895
-7223

query I rowsort
SELECT ALL - 51 + + col0 FROM tab2
----
-44
27
28

query I rowsort
SELECT + + col0 * 98 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT DISTINCT + + col2 * + 57 + + cor0.col0 FROM tab2 cor0
----
1546
1560
2245

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( + col2 AS REAL ) + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col0 + + 99 FROM tab2 AS cor0
----
106
177
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-7683
SELECT + - col2 DIV col0 AS col2 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7683
SELECT + - col2 / col0 AS col2 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT ALL - col2 + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL ( col0 * - ( - col0 ) ) + col2 + - col1 AS col0 FROM tab0
----
1129
523
7912

query I rowsort
SELECT 67 * + col0 FROM tab2
----
469
5226
5293

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7687
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1, tab0 cor0
----
25

query I rowsort
SELECT 70 * + 65 FROM tab2, tab0 cor0
----
9 values hashing to 9adbf9f2c199afeb9ebb6fe10ed70163

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT + col2 + col1 * col1 + col2 FROM tab0 AS cor0
----
7462
8445
9411

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7692
SELECT ALL + col2 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + col2 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7693
SELECT DISTINCT + cor0.col0 * CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + ( + 86 ) * - cor0.col0 FROM tab2 AS cor0
----
-629
-6734
-6832

query I rowsort
SELECT + col0 + 12 FROM tab0 AS cor0
----
101
36
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7696
SELECT ALL - + cor0.col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - + cor0.col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7697
SELECT ALL + - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL + - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col1 * ( + cor0.col1 ) + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT DISTINCT col0 * - 79 + + cor0.col0 * col2 FROM tab2 cor0
----
-3239
-364
-4134

query I rowsort
SELECT - 76 + - col1 AS col2 FROM tab1 AS cor0
----
-102
-86
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7702
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col0 - col0 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col0 - col0 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( 69 ) * - col0 + + cor0.col0 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT ALL - 17 + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-179
-3665
-7697

query I rowsort
SELECT DISTINCT + - ( - ( col0 ) ) + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - 81 * + col0 AS col2 FROM tab0 AS cor0
----
-1944
-2835
-7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-7707
SELECT DISTINCT col0 * col0 + - cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-9
4096
6399

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT col0 * col0 + - cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
-9
4096
6399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT 78 AS col2 FROM tab1 cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7710
SELECT CAST( col2 * col1 AS SIGNED ) AS col0 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-7710
SELECT CAST ( col2 * col1 AS INTEGER ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL ( - tab1.col0 ) * + col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL 9 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7713
SELECT - + col0 * + CAST( 75 AS SIGNED ) - col1 DIV col0 FROM tab1 AS cor0
----
-233
-4800
-6000

skipif mysql # not compatible
query I rowsort label-7713
SELECT - + col0 * + CAST ( 75 AS INTEGER ) - col1 / col0 FROM tab1 AS cor0
----
-233
-4800
-6000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7714
SELECT ALL - col0 * + CAST( NULL AS DECIMAL ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - col0 * + CAST ( NULL AS REAL ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 44 * col2 FROM tab0 AS cor0
----
-1540
-321112
-34848

onlyif mysql # use DIV operator for integer division
query I rowsort label-7716
SELECT DISTINCT - + cor0.col0 * col1 + + 17 DIV col1 FROM tab1 AS cor0
----
-1039
-639
-78

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT - + cor0.col0 * col1 + + 17 / col1 FROM tab1 AS cor0
----
-1039
-639
-78

query I rowsort
SELECT - col1 + + 93 AS col0 FROM tab0 AS cor0
----
-4
2
7

query I rowsort
SELECT DISTINCT - col1 * + 23 + 7 AS col1 FROM tab0 AS cor0
----
-1971
-2086
-2224

query I rowsort
SELECT ALL + + col2 - - 79 * - cor0.col0 AS col0 FROM tab0 cor0
----
-1863
-2764
-6949

onlyif mysql # use DIV operator for integer division
query I rowsort label-7720
SELECT ALL col2 DIV 99 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL col2 / 99 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - - cor0.col0 * col0 + col1 - - col1 FROM tab2 AS cor0
----
111
6202
6275

onlyif mysql # use DIV operator for integer division
query I rowsort label-7722
SELECT DISTINCT + col1 DIV - col0 + ( col2 ) * col2 AS col0 FROM tab0
----
-1
1086
6723

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT + col1 / - col0 + ( col2 ) * col2 AS col0 FROM tab0
----
-1
1086
6723

query I rowsort
SELECT cor0.col2 + - 36 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-132
-2841
-7416

query I rowsort
SELECT + col2 * - 93 + + 41 FROM tab1 AS cor0
----
-4981
-5260
-8887

query I rowsort
SELECT - col0 + ( + col2 ) AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL cor0.col1 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 + + col0 * col0 + + col0 ) IN ( cor0.col0 / col1 - + col0 ) OR col1 + col1 BETWEEN col2 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7728
SELECT DISTINCT col0 DIV tab1.col1 AS col2 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT col0 / tab1.col1 AS col2 FROM tab1
----
0
6

query I rowsort
SELECT DISTINCT - tab0.col2 * col0 * col0 AS col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
10
13
26

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col0 <> col1 * col2 * + col1
----

query I rowsort
SELECT DISTINCT - tab2.col1 * col0 + col2 * - col0 + + col2 AS col0 FROM tab2
----
-379
-4307
-6604

query I rowsort
SELECT + col1 + - cor0.col1 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT DISTINCT col1 + + col0 DIV col1 + col1 AS col1 FROM tab1
----
26
32
52

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT col1 + + col0 / col1 + col1 AS col1 FROM tab1
----
26
32
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7735
SELECT + col0 DIV - tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7735
SELECT + col0 / - tab0.col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col1 + + col1 - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - cor0.col2 * - col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + cor0.col1 + - 46 * + col0 AS col2 FROM tab0 AS cor0
----
-1018
-1513
-4003

query I rowsort
SELECT + + col0 + 51 * + col2 * col2 AS col2 FROM tab1 AS cor0
----
148719
165763
470096

query I rowsort
SELECT ALL - col0 - + 91 * + col1 FROM tab0 AS cor0
----
-7850
-8370
-8862

query I rowsort
SELECT DISTINCT cor0.col1 + ( col1 ) * col2 - - ( cor0.col1 * col2 ) FROM tab1 AS cor0
----
1150
2509
2834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 col1 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7744
SELECT ALL - col0 DIV col2 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - col0 / col2 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT DISTINCT + col0 + ( 55 ) FROM tab0 AS cor0
----
144
79
90

query I rowsort
SELECT DISTINCT 23 * + col2 FROM tab2
----
598
621
874

query I rowsort
SELECT - col2 - - col1 * - ( 51 ) FROM tab0
----
-4419
-4723
-4948

query I rowsort
SELECT 29 + col0 AS col0 FROM tab2
----
107
108
36

query I rowsort
SELECT 65 * col2 + col1 * col1 AS col0 FROM tab0
----
13611
9474
9541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 * col2 * + ( + col0 * + col0 ) col1 FROM tab1
----
19378176
40338
50995200

query I rowsort
SELECT 61 * + ( + cor1.col0 ) FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to dde162369fdd4ffd02de7289eed7ce6f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7752
SELECT - col0 * col2 - col0 DIV - col0 AS col2 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-7752
SELECT - col0 * col2 - col0 / - col0 AS col2 FROM tab0
----
-34
-7297
-791

query I rowsort
SELECT col1 * 2 + 58 * tab1.col0 FROM tab1
----
226
3732
4666

query I rowsort
SELECT ALL + - cor0.col0 + - 30 AS col1 FROM tab0 AS cor0
----
-119
-54
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7755
SELECT DISTINCT col1 + + CAST( 59 AS SIGNED ) col2 FROM tab0 AS cor0
----
145
150
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT col1 + + CAST ( 59 AS INTEGER ) col2 FROM tab0 AS cor0
----
145
150
156

query I rowsort
SELECT - - col1 * ( - col1 + col0 ) * + 5 AS col0 FROM tab0 AS cor0
----
-26660
-30070
-910

query I rowsort
SELECT ALL - cor0.col0 * ( + 25 ) * + col0 + 98 AS col0 FROM tab1 AS cor0
----
-102302
-127
-159902

query I rowsort
SELECT DISTINCT col1 + ( 27 * + col0 ) FROM tab2 AS cor0
----
2150
2165
220

onlyif mysql # use DIV operator for integer division
query I rowsort label-7759
SELECT DISTINCT - - col1 DIV ( col0 ) col0 FROM tab2 AS cor0
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - - col1 / ( col0 ) col0 FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT - col1 * col2 * tab0.col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT tab2.col0 * + 3 * col0 AS col2 FROM tab2
----
147
18252
18723

query I rowsort
SELECT - 75 + + col2 * - col2 FROM tab2 cor0
----
-1519
-751
-804

query I rowsort
SELECT ALL 99 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + 14 * + col1 AS col1 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT + + 31 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT DISTINCT + - 24 + col0 AS col2 FROM tab0 cor0
----
0
11
65

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * 15 AS col0 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT ALL - 53 + col2 FROM tab0 AS cor0
----
-20
-52
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-7769
SELECT - col2 * - col1 + + col0 DIV cor0.col2 FROM tab0 AS cor0
----
132
2838
7463

skipif mysql # not compatible
query I rowsort label-7769
SELECT - col2 * - col1 + + col0 / cor0.col2 FROM tab0 AS cor0
----
132
2838
7463

query I rowsort
SELECT DISTINCT 1 * + 42 FROM tab0, tab1 AS cor0, tab2 cor1
----
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7771
SELECT ALL + col0 + - col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + col0 + - col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 23 * - col0 AS col1 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT DISTINCT ( col0 ) * ( + col1 ) + col0 - col1 AS col2 FROM tab2 AS cor0
----
1405
193
4621

query I rowsort
SELECT + col1 + - col0 + + cor0.col0 * ( col2 ) FROM tab0 AS cor0
----
7300
854
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7775
SELECT - + ( col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT - + ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 48 + col1 * 49 + + 74 * cor0.col1 FROM tab2 AS cor0
----
2043
3765
7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-7777
SELECT - ( col1 ) DIV - col2 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7777
SELECT - ( col1 ) / - col2 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - - 31 * col0 + + ( col1 ) + + col0 FROM tab1 cor0
----
122
2058
2573

query I rowsort
SELECT ALL col1 + cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 65 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7781
SELECT + + col2 DIV 53 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7781
SELECT + + col2 / 53 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + 23 + + cor0.col0 FROM tab0 AS cor0
----
133
155
203

query I rowsort
SELECT ALL + col2 + ( cor0.col2 ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - ( + cor0.col1 * 89 + cor0.col2 ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2eceeca10322ffd1d67f19de355fa171

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
35

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + cor0.col1 * ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # use DIV operator for integer division
query I rowsort label-7790
SELECT ALL + + col1 DIV - col1 + - cor0.col2 + col1 FROM tab2 AS cor0
----
-22
3
32

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL + + col1 / - col1 + - cor0.col2 + col1 FROM tab2 AS cor0
----
-22
3
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7791
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col1 * + col0 * - ( col1 + col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col1 * + col0 * - ( col1 + col2 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ( col2 ) * + col2 + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + + 71 + + col1 FROM tab1 AS cor0
----
81
84
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + col2 col2 FROM tab1 AS cor0
----
123
126
165

query I rowsort
SELECT ALL 37 * - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-1006
-1040
-1485

query I rowsort
SELECT DISTINCT + + 34 * 39 FROM tab2 AS cor0
----
1326

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
26
27
38

query I rowsort
SELECT ALL + col1 * - cor0.col0 * - col1 - + col0 * - 82 FROM tab1 AS cor0
----
11648
20080
2274

onlyif mysql # use DIV operator for integer division
query I rowsort label-7799
SELECT DISTINCT - col0 + - col2 + - col0 DIV ( col0 ) FROM tab1 cor0
----
-122
-177
-58

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - col0 + - col2 + - col0 / ( col0 ) FROM tab1 cor0
----
-122
-177
-58

query I rowsort
SELECT - col1 + - 89 FROM tab2
----
-106
-120
-148

onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT ALL col0 + 1 DIV col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL col0 + 1 / col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * + 0 * + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 55 + + col2 + 46 AS col0 FROM tab1 AS cor0
----
45
48
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT - 79 DIV + col0 - - col1 FROM tab2 AS cor0
----
16
20
58

skipif mysql # not compatible
query I rowsort label-7804
SELECT - 79 / + col0 - - col1 FROM tab2 AS cor0
----
16
20
58

query I rowsort
SELECT - tab1.col1 * + col0 * - col1 FROM tab1
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7806
SELECT ALL + ( + 13 ) + tab1.col0 DIV col0 AS col1 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL + ( + 13 ) + tab1.col0 / col0 AS col1 FROM tab1
----
14
14
14

query I rowsort
SELECT DISTINCT 78 + - col2 AS col0 FROM tab1
----
-18
21
24

query I rowsort
SELECT ALL col2 + 62 AS col1 FROM tab2
----
100
88
89

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab0, tab2, tab1 AS cor0
----
25

query I rowsort
SELECT ALL col2 * + 26 + + col2 FROM tab0
----
2214
27
891

query I rowsort
SELECT + 74 + col2 * cor0.col0 FROM tab0 AS cor0
----
109
7372
866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT col2 + + col1 * cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT DISTINCT - 58 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-58

query I rowsort
SELECT + cor0.col0 * 44 + + col0 * col0 FROM tab0 cor0
----
11837
1632
2765

query I rowsort
SELECT col2 * cor0.col2 * col0 + - 76 AS col2 FROM tab1 AS cor0
----
207860
737204
8672

onlyif mysql # use DIV operator for integer division
query I rowsort label-7817
SELECT 43 + + cor0.col0 DIV cor0.col0 FROM tab1 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-7817
SELECT 43 + + cor0.col0 / cor0.col0 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-7818
SELECT - cor0.col1 * - col0 DIV col0 + col0 FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7818
SELECT - cor0.col1 * - col0 / col0 + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4

query I rowsort
SELECT + ( col1 ) * - tab2.col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col0 + - col2 + + col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7822
SELECT DISTINCT - col0 DIV - col0 + col0 FROM tab0 cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - col0 / - col0 + col0 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT + 23 + col0 AS col1 FROM tab0 AS cor0
----
112
47
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 68 col0 FROM tab2 AS cor0
----
-10
-11
61

query I rowsort
SELECT + col0 + 16 * 38 FROM tab1 AS cor0
----
611
672
688

query I rowsort
SELECT + cor0.col2 + - 52 AS col1 FROM tab2 AS cor0
----
-14
-25
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7827
SELECT ALL - col0 DIV 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - col0 / 99 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * 62 + col2 FROM tab0 AS cor0
----
1521
2171
5600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7829
SELECT col0 * col0 + col1 * col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT col0 * col0 + col1 * col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 93 + col1 AS col2 FROM tab2 cor0
----
-1564
-2852
-5428

query I rowsort
SELECT ALL - col1 + col0 * + ( col1 ) FROM tab0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + cor0.col2 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - col1 + 53 AS col1 FROM tab0
----
-33
-38
-44

query I rowsort
SELECT + col1 + 12 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT - 89 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

onlyif mysql # use DIV operator for integer division
query I rowsort label-7836
SELECT 90 DIV 19 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif mysql # not compatible
query I rowsort label-7836
SELECT 90 / 19 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + col1 * + 88 - col1 AS col1 FROM tab2 AS cor0
----
1479
2697
5133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7838
SELECT - CAST( col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-7838
SELECT - CAST ( col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col2 + - ( col0 ) * 33 AS col2 FROM tab1 cor0
----
-2055
-2544
-45

query I rowsort
SELECT - col0 + col1 * cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - col0 + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - - ( 83 ) * col1 + col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
1717
3565
8437

onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT - col1 DIV + 38 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7843
SELECT - col1 / + 38 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 51 * + col1 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1593
-476
1364

query I rowsort
SELECT + 92 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
127
7390
884

query I rowsort
SELECT DISTINCT + ( - 54 ) * col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT col1 * ( col2 * + col2 ) AS col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT col0 * col0 * + 28 AS col0 FROM tab2
----
1372
170352
174748

query I rowsort
SELECT + 96 + - col1 AS col0 FROM tab1 AS cor0
----
70
83
86

query I rowsort
SELECT - - 38 * col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT DISTINCT - + 94 AS col2 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT 56 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL - col2 * 87 + 35 FROM tab1 AS cor0
----
-4663
-4924
-8317

query I rowsort
SELECT DISTINCT + col0 + + 22 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT DISTINCT col0 + col2 * col0 + + col2 * - col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + + col2 * + col1 - - col1 * - col1 * col2 AS col2 FROM tab2 AS cor0
----
-10336
-25110
-88972

query I rowsort
SELECT col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - + ( col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col1 * - col2 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT ( + 21 ) * col2 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT DISTINCT + col2 + - 83 * - col1 FROM tab0 AS cor0
----
7171
7635
8052

query I rowsort
SELECT ( col1 ) + + col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7863
SELECT + - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT + - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * + 33 + - col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT DISTINCT 73 * col1 + - col1 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT - col1 + 86 AS col1 FROM tab0 AS cor0
----
-11
-5
0

query I rowsort
SELECT + col2 + + ( cor0.col0 ) * col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7868
SELECT ALL + - CAST( col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + - CAST ( col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - + 23 AS col2 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - 11 * - 16 + - cor0.col0 FROM tab2 AS cor0
----
169
97
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7871
SELECT - - CAST( 60 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
149
84
95

skipif mysql # not compatible
query I rowsort label-7871
SELECT - - CAST ( 60 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
149
84
95

query I rowsort
SELECT ALL col1 * 25 AS col2 FROM tab2 AS cor0
----
1475
425
775

onlyif mysql # use DIV operator for integer division
query I rowsort label-7873
SELECT + 94 DIV 12 + + col1 * - col0 FROM tab2 AS cor0
----
-1336
-210
-4595

skipif mysql # not compatible
query I rowsort label-7873
SELECT + 94 / 12 + + col1 * - col0 FROM tab2 AS cor0
----
-1336
-210
-4595

query I rowsort
SELECT ALL - 95 + + col2 FROM tab0 AS cor0
----
-13
-62
-94

skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( - col1 ) AS REAL ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - col2 * ( col1 ) AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT cor0.col1 + 71 AS col0 FROM tab0, tab1 AS cor0
----
81
84
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7878
SELECT - + col0 DIV col2 + col2 AS col1 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-7878
SELECT - + col0 / col2 + col2 AS col1 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT + + col1 + + col0 * - cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-7880
SELECT ALL + col0 DIV 78 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL + col0 / 78 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 * + 20 + - col0 FROM tab1 AS cor0
----
136
180
517

query I rowsort
SELECT ALL + cor0.col0 + 13 * 63 AS col0 FROM tab0 AS cor0
----
843
854
908

query I rowsort
SELECT ALL - col1 - tab0.col0 * ( - col2 ) * + col2 FROM tab0
----
-62
26050
598345

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7884
SELECT + col2 + CAST( NULL AS SIGNED ) * - tab0.col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT + col2 + CAST ( NULL AS INTEGER ) * - tab0.col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + col2 + - col1 AS col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL - 41 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT + tab2.col0 * 21 FROM tab2, tab1 AS cor0
----
9 values hashing to 2354fbaf46e1fc99dfe1a3f3636dca29

query I rowsort
SELECT ALL col2 + 14 FROM tab1
----
110
68
71

query I rowsort
SELECT ALL col0 + 30 * col0 AS col1 FROM tab1
----
1984
2480
93

query I rowsort
SELECT + - col2 * cor0.col2 + 7 * + col2 FROM tab0 AS cor0
----
-6150
-858
6

query I rowsort
SELECT col1 * ( col2 + col0 ) FROM tab0
----
15561
3492
4902

query I rowsort
SELECT - col1 * - col2 + - col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT + tab0.col0 * col2 + col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT col1 + 3 * + 76 * col1 FROM tab2
----
13511
3893
7099

query I rowsort
SELECT col0 * + col1 - - ( col0 ) * - 47 AS col0 FROM tab2
----
-112
-2370
936

query I rowsort
SELECT 38 FROM tab1, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - - col0 + + 48 AS col0 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT - col2 + col2 - 7 AS col1 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT - + col0 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col0 * col1 * - 77 FROM tab0 AS cor0
----
-158928
-261415
-623623

onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT DISTINCT - col0 DIV 69 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - col0 / 69 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) + col1 * + 39 FROM tab2 AS cor0
----
1178
2242
646

query I rowsort
SELECT DISTINCT + 52 AS col0 FROM tab2 cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 7 + + 63 col0 FROM tab0 cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col0 FROM tab2, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
23

query I rowsort
SELECT DISTINCT 19 * + col0 AS col0 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT 85 * - ( - cor1.col1 + + 85 ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 5eab92612061f3cf37854dbddbb304e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 + + tab0.col1 ) * + 82 col0 FROM tab0
----
14104
14924
15908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 57 * col0 col1 FROM tab0 AS cor0
----
-1401
-1996
-5155

query I rowsort
SELECT - - 82 + 37 * col2 FROM tab2 cor0
----
1044
1081
1488

query I rowsort
SELECT 45 * cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8c033541caf69f6347023da0ef126f74

query I rowsort
SELECT ALL ( + col2 ) * col0 + 46 AS col2 FROM tab0 AS cor0
----
7344
81
838

query I rowsort
SELECT DISTINCT - + col2 * col2 + col1 * 85 FROM tab0 AS cor0
----
1011
6221
8244

query I rowsort
SELECT ALL - ( + tab1.col1 + 24 ) FROM tab1
----
-34
-37
-50

query I rowsort
SELECT DISTINCT - 21 + + col1 FROM tab1 cor0
----
-11
-8
5

query I rowsort
SELECT DISTINCT - col0 * 66 AS col2 FROM tab0 AS cor0
----
-1584
-2310
-5874

query I rowsort
SELECT DISTINCT - + col0 + - col1 * col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL col2 * + 91 * col0 + col0 * + 91 AS col1 FROM tab1 AS cor0
----
15015
337792
706160

query I rowsort
SELECT DISTINCT + - col2 + + ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT + col1 + + cor0.col1 - - col0 FROM tab1 cor0
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7921
SELECT cor0.col0 * ( col2 + cor0.col2 ) DIV col2 AS col1 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-7921
SELECT cor0.col0 * ( col2 + cor0.col2 ) / col2 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - cor0.col1 + - col2 * cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
-2113
-247
-3057

query I rowsort
SELECT ALL + col0 + ( col0 ) + - col0 * + col0 FROM tab2 AS cor0
----
-35
-5928
-6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col0 col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - col2 * + 37 * + 35 AS col2 FROM tab2 cor0
----
-33670
-34965
-49210

query I rowsort
SELECT DISTINCT + 66 * + col1 AS col0 FROM tab1
----
1716
660
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 - col0 * 30 col1 FROM tab2
----
-1027
2262
7

query I rowsort
SELECT + - col0 + col0 - + col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - cor0.col0 * + col0 + - 79 FROM tab0 AS cor0
----
-1304
-655
-8000

query I rowsort
SELECT DISTINCT + tab0.col1 + - tab0.col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT + ( - col1 ) + ( - cor0.col0 ) FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT tab2.col2 * col2 * ( + tab2.col1 ) AS col1 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-7935
SELECT + col0 DIV - 26 + - cor0.col0 FROM tab0 AS cor0
----
-24
-36
-92

skipif mysql # not compatible
query I rowsort label-7935
SELECT + col0 / - 26 + - cor0.col0 FROM tab0 AS cor0
----
-24
-36
-92

query I rowsort
SELECT + col1 * - col0 * + tab0.col1 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-7937
SELECT col0 DIV col2 + CAST( + 15 AS SIGNED ) AS col0 FROM tab1
----
15
15
16

skipif mysql # not compatible
query I rowsort label-7937
SELECT col0 / col2 + CAST ( + 15 AS INTEGER ) AS col0 FROM tab1
----
15
15
16

query I rowsort
SELECT ALL + col0 * col0 * col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT col2 * col0 * col1 + col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT + cor0.col2 + 5 FROM tab1, tab0 AS cor0
----
9 values hashing to b2ebf49c24091b76a4280a8ad4875abe

onlyif mysql # use DIV operator for integer division
query I rowsort label-7942
SELECT - col0 * col1 DIV tab2.col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7942
SELECT - col0 * col1 / tab2.col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT 86 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7310
-8195
-9323

query I rowsort
SELECT + col2 + + tab0.col2 * tab0.col2 * col0 AS col0 FROM tab0
----
26169
36
598518

onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT + ( col0 ) DIV col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7945
SELECT + ( col0 ) / col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT tab1.col0 + 34 * + ( + tab1.col0 + 96 ) AS col1 FROM tab1
----
3369
5504
6064

query I rowsort
SELECT ALL + 65 * + 98 FROM tab2 cor0
----
6370
6370
6370

onlyif mysql # use DIV operator for integer division
query I rowsort label-7948
SELECT - 55 DIV - tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 56f1f02fc03b3da7d24a70cbc27d2cc7

skipif mysql # not compatible
query I rowsort label-7948
SELECT - 55 / - tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 56f1f02fc03b3da7d24a70cbc27d2cc7

query I rowsort
SELECT - 97 * col1 FROM tab0 cor0
----
-8342
-8827
-9409

query I rowsort
SELECT - + ( + col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - 42 + 94 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT - - col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7952
SELECT - - col0 / - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT + col0 + + 8 AS col0 FROM tab2 AS cor0
----
15
86
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * + col2 col2 FROM tab1
----
3618
3819
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-7955
SELECT ALL 21 DIV 77 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL 21 / 77 AS col2 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7956
SELECT + CAST( col1 AS SIGNED ) - col0 * ( + col1 ) AS col1 FROM tab2
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-7956
SELECT + CAST ( col1 AS INTEGER ) - col0 * ( + col1 ) AS col1 FROM tab2
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT cor0.col0 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT col1 * - col2 + 92 FROM tab0 AS cor0
----
-2746
-5
-7370

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - cor0.col2 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + 5 + cor0.col0 + 76 AS col2 FROM tab2 AS cor0
----
159
160
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + + cor0.col1 + 2 AS col0 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT col1 * + ( + col2 ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7966
SELECT - col1 + CAST( NULL AS SIGNED ) * col2 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT - col1 + CAST ( NULL AS INTEGER ) * col2 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 62 AS col2 FROM tab2
----
-1612
-1674
-2356

query I rowsort
SELECT ALL 77 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 AS cor2, tab0 AS cor3
----
729 values hashing to 5a75882d07e6f2aa2f8ce9be41fce645

query I rowsort
SELECT + col0 * - 11 + - 85 * col0 AS col0 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT col1 * cor0.col1 + - 5 FROM tab1 AS cor0
----
164
671
95

query I rowsort
SELECT + cor0.col1 * + 40 + col2 AS col0 FROM tab2 AS cor0
----
1267
2386
718

query I rowsort
SELECT ALL + col1 + cor0.col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + - 58 * + 47 AS col2 FROM tab2 AS cor0
----
-2726
-2726
-2726

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - col0 * + tab0.col0 * + col0 AS col2 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT - col0 + col1 AS col2 FROM tab2 WHERE NOT NULL IN ( - col0 * col0 * col2 )
----

query I rowsort
SELECT DISTINCT - tab2.col1 * col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col2 + + col0 + col1 AS col2 FROM tab2
----
134
163
65

query I rowsort
SELECT DISTINCT col0 * + col0 * col2 + col1 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT ALL col2 + - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT col2 * - col1 + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT + col2 + col1 * col0 * - col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT DISTINCT cor0.col1 DIV col0 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-1
-4096
-6400

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT cor0.col1 / col0 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-1
-4096
-6400

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE ( + col0 + - col0 ) >= NULL
----

query I rowsort
SELECT + col2 * + col1 + col2 FROM tab0 WHERE ( NULL ) BETWEEN col0 AND NULL
----

query I rowsort
SELECT col1 * - col2 AS col2 FROM tab2 WHERE NOT NULL >= col0
----

query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1 WHERE NULL BETWEEN col0 + col2 AND ( NULL )
----

query I rowsort
SELECT + col0 + + col2 + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 + + tab2.col0 FROM tab2
----
2165
227
3098

onlyif mysql # use DIV operator for integer division
query I rowsort label-7990
SELECT + col1 * col2 + + col2 DIV tab2.col1 AS col2 FROM tab2
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-7990
SELECT + col1 * col2 + + col2 / tab2.col1 AS col2 FROM tab2
----
1534
648
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT + col1 + col1 DIV tab2.col0 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-7991
SELECT + col1 + col1 / tab2.col0 FROM tab2
----
17
35
59

query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 - col0 * col2 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT ALL + + col1 + - col0 DIV - col0 + col1 AS col1 FROM tab1 AS cor0
----
21
27
53

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + + col1 + - col0 / - col0 + col1 AS col1 FROM tab1 AS cor0
----
21
27
53

query I rowsort
SELECT DISTINCT + + cor0.col0 + - col1 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT + col2 + + col0 * col0 * cor0.col0 FROM tab2 AS cor0
----
370
474578
493077

query I rowsort
SELECT ALL - col2 * + cor0.col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + - col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT cor0.col0 + + col0 * cor0.col1 - + col2 FROM tab1 AS cor0
----
1024
27
647

query I rowsort
SELECT DISTINCT + - col0 * - col0 * col1 + col1 + + col1 * col0 FROM tab2 AS cor0
----
107457
1767
363617

query I rowsort
SELECT DISTINCT + + col0 * col1 + + col0 * + cor0.col2 * cor0.col2 - + col0 AS col0 FROM tab2 AS cor0
----
115340
5313
57252

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 * + col2 + col2 col1 FROM tab0 cor0
----
244101
679124
9410

query I rowsort
SELECT + cor0.col0 * col0 - + col2 * + cor0.col0 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT DISTINCT + tab1.col0 * + tab1.col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + col1 * col1 - col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT + + cor0.col0 - col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL col1 * + col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT 34 * col2 AS col2 FROM tab0
----
1122
2788
34

query I rowsort
SELECT - + col2 * - col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8012
SELECT col2 + col0 DIV ( + col1 ) AS col2 FROM tab2
----
27
27
42

skipif mysql # not compatible
query I rowsort label-8012
SELECT col2 + col0 / ( + col1 ) AS col2 FROM tab2
----
27
27
42

query I rowsort
SELECT DISTINCT + + col1 * - 45 FROM tab2 AS cor0
----
-1395
-2655
-765

onlyif mysql # use DIV operator for integer division
query I rowsort label-8014
SELECT DISTINCT col2 + col2 DIV tab1.col1 AS col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT col2 + col2 / tab1.col1 AS col2 FROM tab1
----
103
56
62

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT col2 * col1 + + tab0.col2 AS col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT + col1 FROM tab2 WHERE col0 * + col0 + + col1 <= NULL
----

query I rowsort
SELECT + col1 * col1 + - col0 FROM tab0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * - col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT - col0 * col1 - col2 AS col0 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT + col0 + col2 + col0 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > col0 * col0
----
64
10
57
80
13
96

query I rowsort
SELECT ALL ( - col2 + col1 ) AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT - - col2 * + 67 + cor0.col0 * + col2 FROM tab0 AS cor0
----
102
12792
3003

query I rowsort
SELECT 56 * - 58 + + col0 FROM tab0 AS cor0
----
-3159
-3213
-3224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8027
SELECT - - CAST( - col0 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-8027
SELECT - - CAST ( - col0 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL 50 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + col2 * - col0 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5

query I rowsort
SELECT DISTINCT + 15 + - ( col0 ) * + col0 * cor0.col0 FROM tab0 cor0
----
-13809
-42860
-704954

query I rowsort
SELECT - col2 * + col0 + 93 * - ( col0 ) AS col1 FROM tab2 cor0
----
-10349
-840
-9282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8033
SELECT DISTINCT - cor0.col1 * col1 + CAST( + col1 AS SIGNED ) * + col0 AS col2 FROM tab0 cor0
----
-182
-5332
-6014

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT - cor0.col1 * col1 + CAST ( + col1 AS INTEGER ) * + col0 AS col2 FROM tab0 cor0
----
-182
-5332
-6014

query I rowsort
SELECT + 29 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8035
SELECT ALL CAST( col0 AS SIGNED ) * col1 + - ( col0 + + tab2.col0 ) FROM tab2
----
1185
203
4446

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL CAST ( col0 AS INTEGER ) * col1 + - ( col0 + + tab2.col0 ) FROM tab2
----
1185
203
4446

query I rowsort
SELECT - - 22 + - cor0.col1 FROM tab0 AS cor0
----
-64
-69
-75

query I rowsort
SELECT - - 65 * cor0.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to a5c7843cb74a0c563e6b2c2d9e4d1cac

query I rowsort
SELECT + - col0 * - ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 42bf3b8f2bb865dbe16abdf6d3d647fc

query I rowsort
SELECT ALL + 43 * + col1 FROM tab2
----
1333
2537
731

query I rowsort
SELECT DISTINCT 68 + + 34 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
102

query I rowsort
SELECT ALL - 70 AS col0 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT ALL - col2 * - col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL + 33 AS col2 FROM tab1
----
33
33
33

query I rowsort
SELECT + cor0.col0 + col0 AS col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT IN ( tab0.col1 * - col0 ) AND col1 * + col2 BETWEEN NULL AND col0
----

query I rowsort
SELECT 35 * + col1 FROM tab1
----
350
455
910

query I rowsort
SELECT + ( - 75 + col1 ) FROM tab1
----
-49
-62
-65

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

query I rowsort
SELECT DISTINCT ( - col0 ) * col1 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + ( 34 ) AS col1 FROM tab2
----
34
34
34

query I rowsort
SELECT DISTINCT + ( ( tab2.col0 ) ) - col1 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL 74 - col1 * - col1 FROM tab1
----
174
243
750

query I rowsort
SELECT ( - col0 ) + cor0.col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - ( + tab0.col1 * + col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT 25 * col2 FROM tab0
----
2050
25
825

query I rowsort
SELECT - 90 + - col2 AS col1 FROM tab2
----
-116
-117
-128

query I rowsort
SELECT ( cor0.col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + 73 * col1 * col2 FROM tab1 AS cor0
----
102492
41610
91104

query I rowsort
SELECT DISTINCT + 92 + - col1 AS col2 FROM tab0
----
-5
1
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 * col2 col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT - + col1 * - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT col1 * col0 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1280
156
2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-8065
SELECT ALL col0 + - cor0.col1 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL col0 + - cor0.col1 / - col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 + col0 * + col0 col1 FROM tab1 AS cor0
----
-47
4040
6344

query I rowsort
SELECT ALL + 12 * + col0 + cor0.col2 * + col1 AS col0 FROM tab0 cor0
----
3126
517
8530

query I rowsort
SELECT + cor0.col2 + - col2 * - cor0.col2 * col2 AS col1 FROM tab1 cor0 WHERE NOT ( ( col0 - + col0 ) IN ( col0 * + col2 ) ) AND NOT ( NULL ) NOT IN ( + col2 * + col2 ) OR + col2 * - col1 BETWEEN NULL AND col2 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - ( - col1 ) * col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - 44 AS col0 FROM tab1
----
-44
-44
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-8072
SELECT tab0.col2 DIV ( col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8072
SELECT tab0.col2 / ( col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT - ( col0 ) - tab2.col1 AS col1 FROM tab2
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8074
SELECT col2 + cor0.col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT col2 + cor0.col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8076
SELECT DISTINCT - 95 DIV ( - col1 ) + + 58 - col1 * - col0 FROM tab0
----
2123
3453
8158

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT - 95 / ( - col1 ) + + 58 - col1 * - col0 FROM tab0
----
2123
3453
8158

query I rowsort
SELECT col1 * col0 + col1 + + col0 AS col1 FROM tab1
----
107
1133
714

query I rowsort
SELECT + ( col1 ) + - col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab1, tab0, tab0 cor0
----
81

query I rowsort
SELECT - col0 + - col2 - col0 AS col1 FROM tab1 AS cor0
----
-185
-256
-60

query I rowsort
SELECT - col1 + tab1.col0 * - col0 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT - 34 * col1 + + 29 FROM tab2
----
-1025
-1977
-549

query I rowsort
SELECT DISTINCT 12 * cor0.col2 * + col1 FROM tab0 AS cor0
----
1164
34056
89544

query I rowsort
SELECT ALL + 57 + col2 + - 46 * - cor0.col0 FROM tab0 AS cor0
----
1194
1668
4233

query I rowsort
SELECT ALL cor0.col0 + - col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 11 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT DISTINCT - 58 + col0 AS col1 FROM tab1 AS cor0
----
-55
22
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8088
SELECT DISTINCT + - col2 DIV - col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT + - col2 / - col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col2 + col1 * - col0 + + 5 FROM tab0 AS cor0
----
-2026
-3389
-8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-8090
SELECT + col0 + - col1 + - col2 DIV - col2 FROM tab0 AS cor0
----
-1
-61
-61

skipif mysql # not compatible
query I rowsort label-8090
SELECT + col0 + - col1 + - col2 / - col2 FROM tab0 AS cor0
----
-1
-61
-61

query I rowsort
SELECT DISTINCT + 10 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query I rowsort
SELECT DISTINCT + col1 * - 32 + - col1 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT ALL - col2 * - 44 + col0 AS col1 FROM tab2 AS cor0
----
1195
1222
1751

query I rowsort
SELECT ALL + + cor0.col1 - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - 90 FROM tab0 cor0
----
-2160
-3150
-8010

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( ( - col1 ) * - 42 AS REAL ) + - 24 AS col0 FROM tab0 AS cor0
----
142566
340134
86664

onlyif mysql # use DIV operator for integer division
query I rowsort label-8097
SELECT ALL - col1 DIV ( col1 ) + - col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - col1 / ( col1 ) + - col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT col2 + 63 * - 12 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-24915
-61910
-755

query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab2, tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + col1 * 63 AS col0 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT DISTINCT cor0.col1 * + 78 FROM tab2, tab0 AS cor0
----
6708
7098
7566

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9

query I rowsort
SELECT col1 * 36 FROM tab2 AS cor0
----
1116
2124
612

onlyif mysql # use DIV operator for integer division
query I rowsort label-8104
SELECT - + 64 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
1
64

skipif mysql # not compatible
query I rowsort label-8104
SELECT - + 64 / - col2 AS col2 FROM tab0 AS cor0
----
0
1
64

query I rowsort
SELECT DISTINCT 27 * cor0.col1 FROM tab2 cor0
----
1593
459
837

query I rowsort
SELECT DISTINCT col1 + col1 * - col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT + 12 * + 55 AS col1 FROM tab2 AS cor0
----
660
660
660

query I rowsort
SELECT + - ( + col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - col1 * + 59 + + col2 FROM tab0 cor0
----
-5041
-5287
-5722

query I rowsort
SELECT DISTINCT + cor0.col0 + 50 FROM tab1 cor0
----
114
130
53

query I rowsort
SELECT ALL - ( + 37 ) - - cor0.col0 AS col1 FROM tab0 AS cor0
----
-13
-2
52

query I rowsort
SELECT ALL - + 36 + - col1 + - col0 * ( col1 * col0 ) AS col0 FROM tab2 AS cor0
----
-106150
-1586
-359051

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8113
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 73 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 73 FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8114
SELECT ALL + CAST( 62 AS SIGNED ) + col0 FROM tab2 AS cor0
----
140
141
69

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + CAST ( 62 AS INTEGER ) + col0 FROM tab2 AS cor0
----
140
141
69

query I rowsort
SELECT DISTINCT + 98 + ( - col2 ) FROM tab1 cor0
----
2
41
44

query I rowsort
SELECT ALL + - ( - ( col1 ) ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL ( cor0.col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col2 col0 FROM tab0 cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col0 ) * - col1 + - col2 col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT 62 + - col2 FROM tab2 cor0
----
24
35
36

query I rowsort
SELECT ( 79 ) AS col0 FROM tab2
----
79
79
79

query I rowsort
SELECT ALL - col1 + + col1 * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 11 * - col1 col0 FROM tab0 AS cor0
----
103499
81356
91091

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8124
SELECT DISTINCT - + col2 + CAST( NULL AS SIGNED ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT - + col2 + CAST ( NULL AS INTEGER ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + col1 - col2 AS col0 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT - col0 + - 63 * + col0 AS col1 FROM tab2 AS cor0
----
-448
-4992
-5056

onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT ALL - - col2 - 68 DIV 48 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - - col2 - 68 / 48 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8128
SELECT DISTINCT tab2.col0 DIV + col0 + - col1 * + ( - col0 ) FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT tab2.col0 / + col0 + - col1 * + ( - col0 ) FROM tab2
----
1344
218
4603

query I rowsort
SELECT ALL 54 * 68 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ff98970a655b3bfb9084a31f83170fd0

query I rowsort
SELECT DISTINCT + ( col1 ) + col2 * - col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT 39 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - 76 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT ALL - + 65 * + 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 42f19bd4d7c6f612053bf3adf5ab1062

onlyif mysql # use DIV operator for integer division
query I rowsort label-8134
SELECT + cor0.col1 + cor0.col0 DIV 51 FROM tab2 cor0
----
18
31
60

skipif mysql # not compatible
query I rowsort label-8134
SELECT + cor0.col1 + cor0.col0 / 51 FROM tab2 cor0
----
18
31
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8135
SELECT ALL + col2 * + col0 + col2 DIV + ( col1 ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL + col2 * + col0 + col2 / + ( col1 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col1 * 57 * + 42 AS col2 FROM tab0 AS cor0
----
205884
217854
232218

query I rowsort
SELECT cor0.col1 * ( 81 ) FROM tab2 cor0
----
1377
2511
4779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8139
SELECT ALL - CAST( - 88 AS SIGNED ) + col1 FROM tab0 AS cor0
----
174
179
185

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL - CAST ( - 88 AS INTEGER ) + col1 FROM tab0 AS cor0
----
174
179
185

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8141
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 27 * col0 + col1 * cor0.col0 FROM tab2 AS cor0
----
3476
406
6708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8143
SELECT + CAST( cor0.col2 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-8143
SELECT + CAST ( cor0.col2 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * - ( col1 ) * ( col2 ) + col1 col1 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT + cor2.col0 FROM tab1, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT 54 + + cor0.col2 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1002
-6588
54

query I rowsort
SELECT - - col0 + - col1 * + col1 * + col2 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT + col2 + cor0.col1 + - 79 * - col0 FROM tab0 AS cor0
----
2015
2863
7204

query I rowsort
SELECT DISTINCT + 72 + + tab1.col2 FROM tab1
----
126
129
168

query I rowsort
SELECT ( col0 ) * col1 * tab2.col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + - ( cor0.col0 ) + col2 * col1 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8152
SELECT DISTINCT + col0 + - col1 - 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-8152
SELECT DISTINCT + col0 + - col1 - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + 32 * + col1 + 77 AS col1 FROM tab1 AS cor0
----
-243
-339
-755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 33 + - col2 col1 FROM tab2 AS cor0
----
-5
6
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8156
SELECT ALL - col2 + 67 DIV - cor0.col1 FROM tab1 AS cor0
----
-101
-56
-63

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - col2 + 67 / - cor0.col1 FROM tab1 AS cor0
----
-101
-56
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8157
SELECT DISTINCT + cor0.col0 + + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT + cor0.col0 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8159
SELECT ALL col1 + + CAST( ( col2 ) * col0 AS SIGNED ) FROM tab0 AS cor0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL col1 + + CAST ( ( col2 ) * col0 AS INTEGER ) FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + 7 - col0 FROM tab2
----
-71
-72
0

query I rowsort
SELECT ALL - tab0.col2 * + col2 + - col2 AS col1 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - - 41 FROM tab0, tab1, tab1 cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8164
SELECT ALL tab0.col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL tab0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab1, tab2 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 64 + - col2 col2 FROM tab2
----
-1690
-1755
-2470

query I rowsort
SELECT ALL - + cor1.col0 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT - cor0.col0 * col2 + - col0 * 35 + col1 * col2 FROM tab2 cor0
----
-3224
-5121
403

query I rowsort
SELECT col2 * - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-8170
SELECT col2 * - col1 + col1 DIV col0 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-802

skipif mysql # not compatible
query I rowsort label-8170
SELECT col2 * - col1 + col1 / col0 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-802

query I rowsort
SELECT + + col2 + + ( - col0 ) FROM tab2 cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + cor0.col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8174
SELECT ALL tab1.col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL tab1.col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 * + 17 + col1 + - col1 AS col0 FROM tab0 AS cor0
----
1513
408
595

skipif mysql # not compatible
query I rowsort
SELECT col2 + + CAST ( - ( col1 ) + col1 AS REAL ) AS col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8177
SELECT + col0 DIV + 90 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT + col0 / + 90 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 - + 61 FROM tab1
----
-58
19
3

query I rowsort
SELECT col1 * ( tab0.col2 ) AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 36 * + tab1.col2 + - col2 AS col2 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT + 87 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + 81 * col0 AS col1 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT ALL - 65 * + col1 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT col1 * + col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - cor0.col0 + + col2 * col2 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-8186
SELECT ALL - 18 DIV col0 FROM tab1 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - 18 / col0 FROM tab1 AS cor0
----
-6
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * col0 * col1 + 39 col1 FROM tab1 AS cor0
----
46119
5655
74919

query I rowsort
SELECT DISTINCT 41 + col2 FROM tab2 AS cor0
----
67
68
79

query I rowsort
SELECT DISTINCT 44 * col2 * + 2 - - 50 AS col1 FROM tab2 AS cor0
----
2338
2426
3394

query I rowsort
SELECT - col0 * cor0.col0 + + 78 FROM tab1 cor0
----
-4018
-6322
69

query I rowsort
SELECT - 40 + - col1 FROM tab0 AS cor0
----
-126
-131
-137

query I rowsort
SELECT ALL 95 * + col2 AS col2 FROM tab2 AS cor0
----
2470
2565
3610

query I rowsort
SELECT ALL - cor0.col1 * - col0 * + 53 + 19 FROM tab0 AS cor0
----
109411
179954
429266

onlyif mysql # use DIV operator for integer division
query I rowsort label-8194
SELECT + ( col1 ) DIV 13 + + 86 * - cor0.col0 FROM tab1 cor0
----
-256
-5504
-6879

skipif mysql # not compatible
query I rowsort label-8194
SELECT + ( col1 ) / 13 + + 86 * - cor0.col0 FROM tab1 cor0
----
-256
-5504
-6879

onlyif mysql # use DIV operator for integer division
query I rowsort label-8195
SELECT DISTINCT ( + col1 ) DIV + col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT ( + col1 ) / + col2 AS col0 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + col1 * + col1 * + 97 col1 FROM tab1 AS cor0
----
16361
65540
9668

query I rowsort
SELECT - ( col2 ) * - 80 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT DISTINCT ( col2 ) * 94 FROM tab1
----
5076
5358
9024

query I rowsort
SELECT + + col0 + - ( col0 * col2 ) AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + + cor0.col2 + + 41 * - col0 * - col0 FROM tab1 AS cor0
----
167993
262496
423

query I rowsort
SELECT - 90 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL col2 * - 5 * col0 + col0 * 68 AS col2 FROM tab2 AS cor0
----
-469
-4836
-9638

query I rowsort
SELECT col1 + + col0 + col2 FROM tab2 AS cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * ( - col1 ) + + col2 col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT - + 33 + + 9 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT ALL - 83 DIV - 15 AS col0 FROM tab2 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL - 83 / - 15 AS col0 FROM tab2 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 83 ) col1 FROM tab0 AS cor0
----
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8209
SELECT CAST( NULL AS SIGNED ) * + tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT CAST ( NULL AS INTEGER ) * + tab1.col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8210
SELECT DISTINCT + ( + ( - col0 ) ) + + ( + col0 ) DIV col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT + ( + ( - col0 ) ) + + ( + col0 ) / col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT - 44 + ( - col2 ) * cor0.col0 FROM tab0 AS cor0
----
-7342
-79
-836

query I rowsort
SELECT - + col2 + ( col1 ) * - col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT - - ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - col1 - col2 * cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT DISTINCT ( col1 ) * - col0 DIV + col0 col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT ( col1 ) * - col0 / + col0 col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8216
SELECT ALL + CAST( - col2 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + CAST ( - col2 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col2 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-26198
-598438
-97

query I rowsort
SELECT 8 + col0 * + ( col1 ) FROM tab2 AS cor0
----
1351
225
4610

query I rowsort
SELECT - 62 + + col1 * - col2 FROM tab1
----
-1310
-1466
-632

query I rowsort
SELECT + ( - ( - col1 ) ) FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT tab2.col1 + + col2 * col0 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * + col1 + - 76 col1 FROM tab2
----
22755
271442
6651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + cor0.col2 ) + - col0 * col0 col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col2 * col0 + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 - ( - col2 ) * + col2 col2 FROM tab2 AS cor0
----
1518
750
803

query I rowsort
SELECT ALL - 76 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8228
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) * tab1.col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) * tab1.col1 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col0 FROM tab0, tab2 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT + ( - 69 ) * col2 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT col2 * + 99 + 39 AS col2 FROM tab0
----
138
3306
8157

query I rowsort
SELECT DISTINCT col0 * - col2 * 47 AS col1 FROM tab2
----
-141094
-8883
-95316

query I rowsort
SELECT DISTINCT + ( - tab1.col2 ) AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - + col2 * 69 FROM tab0 cor0
----
-2277
-5658
-69

query I rowsort
SELECT DISTINCT 82 + + col1 * + 2 * col1 AS col1 FROM tab2
----
2004
660
7044

onlyif mysql # use DIV operator for integer division
query I rowsort label-8236
SELECT - 5 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8236
SELECT - 5 / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
90

query I rowsort
SELECT ALL 13 * col2 AS col0 FROM tab0 AS cor0
----
1066
13
429

query I rowsort
SELECT ALL cor0.col0 * - col1 + - ( + 64 ) AS col0 FROM tab1 AS cor0
----
-1104
-142
-704

query I rowsort
SELECT + 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL col1 - 75 FROM tab2
----
-16
-44
-58

query I rowsort
SELECT - col0 * cor0.col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT col0 * - ( + 9 ) + col0 * + 63 * - col0 FROM tab1 AS cor0
----
-258624
-403920
-594

onlyif mysql # use DIV operator for integer division
query I rowsort label-8244
SELECT - col2 DIV cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-8244
SELECT - col2 / cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * ( col0 ) col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + col1 + + 34 FROM tab2 cor0
----
51
65
93

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 + 58 * + col1 AS col2 FROM tab1 AS cor0
----
1220
1586
1794

query I rowsort
SELECT 90 FROM tab2, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + col1 * - 81 FROM tab1 AS cor0
----
-1053
-2106
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT col2 * 38 DIV 24 FROM tab1 cor0
----
152
85
90

skipif mysql # not compatible
query I rowsort label-8250
SELECT col2 * 38 / 24 FROM tab1 cor0
----
152
85
90

query I rowsort
SELECT col1 * - col1 + col1 * - col1 AS col0 FROM tab2 cor0
----
-1922
-578
-6962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + col0 - col2 * + col1 col1 FROM tab1 AS cor0
----
-1100
-1333
-438

query I rowsort
SELECT DISTINCT col2 * col1 * col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - + cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ( - col2 ) * - col0 AS col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) * col0 col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + col1 * ( col1 ) AS col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL - col2 + - 46 FROM tab2 AS cor0
----
-72
-73
-84

query I rowsort
SELECT ALL col0 + + col1 + col1 AS col0 FROM tab1 AS cor0
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8262
SELECT ALL - col0 DIV + 99 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - col0 / + 99 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 61 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

query I rowsort
SELECT 54 * + col0 * col1 + + col2 FROM tab2 AS cor0
----
11745
248534
72560

query I rowsort
SELECT ALL + col0 * + 59 + col0 FROM tab1 AS cor0
----
180
3840
4800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8266
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col1 * + 99 + + col2 AS col2 FROM tab2 cor0
----
1721
3096
5867

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + col0 + - 70 * col0 AS col0 FROM tab0 AS cor0
----
1958
408
980

query I rowsort
SELECT - col2 * - col0 * + col0 + col0 AS col2 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT col2 + 87 * col0 FROM tab2
----
636
6812
6911

query I rowsort
SELECT ALL ( - tab1.col1 ) + - 35 FROM tab1, tab0 AS cor0
----
9 values hashing to d22e8af0f463bdae81a71455739389ac

onlyif mysql # use DIV operator for integer division
query I rowsort label-8272
SELECT DISTINCT 93 DIV col2 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT 93 / col2 AS col0 FROM tab1
----
0
1

query I rowsort
SELECT ALL + cor0.col1 - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + 1 * 55 FROM tab2 AS cor0
----
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-8275
SELECT DISTINCT + 4 DIV ( + col2 ) FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT + 4 / ( + col2 ) FROM tab0 AS cor0
----
0
4

query I rowsort
SELECT DISTINCT - + col1 + col1 * col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-13533
-2054
-6410

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8278
SELECT + CAST( NULL AS SIGNED ) + col1 * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT + CAST ( NULL AS INTEGER ) + col1 * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col2 * + 3 AS col1 FROM tab1 AS cor0
----
181
188
301

onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT DISTINCT cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8281
SELECT - col1 + cor0.col2 * - CAST( + 21 + + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-215
-3617
-9275

skipif mysql # not compatible
query I rowsort label-8281
SELECT - col1 + cor0.col2 * - CAST ( + 21 + + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-215
-3617
-9275

onlyif mysql # use DIV operator for integer division
query I rowsort label-8282
SELECT ALL + col1 DIV col2 + + col1 * cor0.col2 + - col1 FROM tab0 cor0
----
2754
7372
97

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + col1 / col2 + + col1 * cor0.col2 + - col1 FROM tab0 cor0
----
2754
7372
97

query I rowsort
SELECT - 12 * col0 FROM tab1 AS cor0
----
-36
-768
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col2 col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8285
SELECT - + ( col0 ) DIV + 44 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8285
SELECT - + ( col0 ) / + 44 FROM tab0 cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8286
SELECT - ( col0 ) DIV + col1 + tab2.col0 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-8286
SELECT - ( col0 ) / + col1 + tab2.col0 FROM tab2
----
7
75
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8289
SELECT DISTINCT CAST( + 55 AS SIGNED ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT CAST ( + 55 AS INTEGER ) AS col2 FROM tab1
----
55

query I rowsort
SELECT - + col2 - col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + col1 + col1 + + 64 FROM tab2 AS cor0
----
126
182
98

query I rowsort
SELECT col0 * 75 - - col2 FROM tab2 AS cor0
----
552
5876
5963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col1 + - 71 col1 FROM tab1 AS cor0
----
-1319
-1475
-641

onlyif mysql # use DIV operator for integer division
query I rowsort label-8294
SELECT - col0 DIV + 64 + cor0.col2 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-8294
SELECT - col0 / + 64 + cor0.col2 FROM tab0 AS cor0
----
1
33
81

query I rowsort
SELECT DISTINCT + col2 * ( - col0 ) + - col0 - cor0.col0 * 75 FROM tab2 AS cor0
----
-721
-7956
-9006

query I rowsort
SELECT + col0 * - col0 - - 41 FROM tab1 cor0
----
-4055
-6359
32

query I rowsort
SELECT ALL col0 * 15 FROM tab2 AS cor0
----
105
1170
1185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8298
SELECT ALL + - col2 + + CAST( NULL AS SIGNED ) * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + - col2 + + CAST ( NULL AS INTEGER ) * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + 64 * 55 FROM tab2 AS cor0
----
3537
3551
3579

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8300
SELECT ALL col1 * CAST( - col2 AS SIGNED ) + - col1 + col2 FROM tab1 cor0
----
-1165
-1376
-523

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL col1 * CAST ( - col2 AS INTEGER ) + - col1 + col2 FROM tab1 cor0
----
-1165
-1376
-523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 + - ( col2 ) col0 FROM tab1
----
-29
-3
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8302
SELECT DISTINCT + col0 * tab0.col0 DIV col0 - - col1 DIV + col2 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + col0 * tab0.col0 / col0 - - col1 / + col2 FROM tab0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 31 + + col2 col0 FROM tab1 AS cor0
----
145
26
90

query I rowsort
SELECT DISTINCT tab2.col0 * + col2 + 15 * + col0 * col0 FROM tab2
----
924
93288
96617

query I rowsort
SELECT ALL + col1 + + 81 * col0 FROM tab0
----
2030
2932
7300

query I rowsort
SELECT ALL - col1 * - col1 + + col2 FROM tab1 AS cor0
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 73 col1 FROM tab1 AS cor0
----
-83
-86
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8308
SELECT DISTINCT - col1 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT - col1 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8309
SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + col0 - col2 AS col1 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT col2 + + 4 AS col2 FROM tab1 AS cor0
----
100
58
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8312
SELECT CAST( - col1 AS SIGNED ) * - col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-8312
SELECT CAST ( - col1 AS INTEGER ) * - col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + col1 * - col0 + col0 AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - col0 + - ( + col1 ) FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8315
SELECT col1 DIV 22 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8315
SELECT col1 / 22 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT 54 * - col1 FROM tab1 AS cor0
----
-1404
-540
-702

query I rowsort
SELECT ALL - + 10 + - col1 AS col1 FROM tab2 cor0
----
-27
-41
-69

query I rowsort
SELECT ALL + - ( - col1 ) + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL ( + col1 ) + col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col1 * + 80 * col0 FROM tab0 cor0
----
165120
271600
647920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + cor0.col0 col1 FROM tab1 AS cor0
----
105
121
44

query I rowsort
SELECT ALL + ( 56 ) * col1 AS col0 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT - + col0 * - col2 + - col1 AS col1 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT cor0.col1 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL 80 + - col1 FROM tab1 AS cor0
----
54
67
70

query I rowsort
SELECT ALL - col2 + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col2 + - col0 * - col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + col1 * 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 35 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

onlyif mysql # use DIV operator for integer division
query I rowsort label-8332
SELECT + - col2 * 27 DIV - col0 + col2 AS col2 FROM tab1 AS cor0
----
128
540
81

skipif mysql # not compatible
query I rowsort label-8332
SELECT + - col2 * 27 / - col0 + col2 AS col2 FROM tab1 AS cor0
----
128
540
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT + + col0 + - 76 DIV 63 col2 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8333
SELECT + + col0 + - 76 / 63 col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL col1 * + ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - + col2 * + col1 - ( + col2 ) FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + - col1 + col1 * - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
106080
1488
358897

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8338
SELECT col1 + + col0 * CAST( NULL AS SIGNED ) / - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT col1 + + col0 * CAST ( NULL AS INTEGER ) / - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT - + col1 - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-8339
SELECT - + col1 - col0 / col2 AS col2 FROM tab0 AS cor0
----
-132
-86
-92

query I rowsort
SELECT - cor0.col1 * + col2 - 26 AS col2 FROM tab1 AS cor0
----
-1274
-1430
-596

query I rowsort
SELECT DISTINCT - + cor0.col2 - + col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + - 25 + cor0.col1 * + 58 AS col1 FROM tab1 AS cor0
----
1483
555
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-8343
SELECT - col2 + col1 DIV CAST( - 84 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-8343
SELECT - col2 + col1 / CAST ( - 84 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT DISTINCT + col2 + - ( - col0 * col2 ) FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col1 * col0 + - 76 AS col1 FROM tab1 AS cor0
----
2
564
964

query I rowsort
SELECT ALL - col0 * - 41 FROM tab0
----
1435
3649
984

query I rowsort
SELECT 20 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2818
-7442
-77

query I rowsort
SELECT ALL + ( 30 ) FROM tab2
----
30
30
30

query I rowsort
SELECT + + col0 + - 19 * - col0 AS col1 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT + 99 FROM tab0, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL 30 + + cor0.col2 FROM tab1 AS cor0
----
126
84
87

query I rowsort
SELECT cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT DISTINCT 71 * col1 FROM tab0
----
6106
6461
6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT ALL + col2 DIV col1 - col2 FROM tab1
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + col2 / col1 - col2 FROM tab1
----
-52
-52
-89

query I rowsort
SELECT ALL - 22 * col2 - - col1 AS col1 FROM tab1
----
-1162
-1244
-2099

query I rowsort
SELECT col2 + tab2.col0 + - tab2.col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL col1 * - col1 + ( - 12 ) AS col0 FROM tab2 AS cor0
----
-301
-3493
-973

query I rowsort
SELECT DISTINCT + 57 * - col2 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT - cor0.col2 * - col0 * + 75 FROM tab2 AS cor0
----
14175
152100
225150

query I rowsort
SELECT + 18 * col1 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT ALL col2 + - col0 * col2 AS col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL ( 96 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-8363
SELECT DISTINCT col2 DIV + col1 + + col1 + col2 AS col2 FROM tab1
----
116
72
82

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT col2 / + col1 + + col1 + col2 AS col2 FROM tab1
----
116
72
82

query I rowsort
SELECT + col0 * ( 54 ) + col0 AS col0 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT + cor0.col0 + + cor0.col1 + 18 * - cor0.col2 * + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-11532
-15028
-27475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - col0 * + col2 ) col1 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8367
SELECT ALL 69 DIV col2 AS col2 FROM tab0 cor0
----
0
2
69

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL 69 / col2 AS col2 FROM tab0 cor0
----
0
2
69

query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT + 53 * 33 * - col2 AS col2 FROM tab1 AS cor0
----
-167904
-94446
-99693

query I rowsort
SELECT DISTINCT - 16 * 77 FROM tab0 cor0
----
-1232

query I rowsort
SELECT ALL - col1 + 71 FROM tab0 AS cor0
----
-15
-20
-26

query I rowsort
SELECT col2 * cor0.col0 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 16 * - 62 AS col0 FROM tab2 AS cor0
----
992
992
992

query I rowsort
SELECT ALL + - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col0 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-8377
SELECT DISTINCT - col2 DIV + ( - col0 ) FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT - col2 / + ( - col0 ) FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT + col0 + - ( col2 ) * + col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT + col1 + + 57 * - col0 - - col2 * - cor0.col0 FROM tab1 AS cor0
----
-12227
-307
-7286

query I rowsort
SELECT + ( - cor0.col1 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL - col1 * col2 + ( col1 ) AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT col1 * ( col2 ) FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8383
SELECT DISTINCT - col0 DIV + cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT - col0 / + cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT ALL - cor0.col0 * col0 - + col2 * - col0 FROM tab0 AS cor0
----
-1190
-623
216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8385
SELECT ALL + cor0.col2 * + 81 * - col0 + - CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-12244
-599419
-71548

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + cor0.col2 * + 81 * - col0 + - CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-12244
-599419
-71548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( - col0 ) col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 73 * col2 + col0 FROM tab2 AS cor0
----
1976
1978
2853

query I rowsort
SELECT + 29 + - col1 AS col2 FROM tab0 cor0
----
-57
-62
-68

query I rowsort
SELECT - col1 + col0 * 24 AS col1 FROM tab0
----
2045
490
743

query I rowsort
SELECT tab1.col1 * + 50 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3d04c0f6e95c0ec18ecf33c832a7dcd5

query I rowsort
SELECT ALL + col1 * col0 * - 52 FROM tab1
----
-33280
-4056
-54080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + col0 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT 93 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT ALL - col0 * + col1 * col0 + - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-106135
-1546
-358982

query I rowsort
SELECT DISTINCT - 86 * col1 AS col0 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT ALL + col1 * - 4 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT ALL + - col1 + + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - + col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT 41 + + col1 AS col2 FROM tab2
----
100
58
72

query I rowsort
SELECT - + col1 + 20 FROM tab2 AS cor0
----
-11
-39
3

query I rowsort
SELECT + col1 + + col0 - col2 AS col2 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL ( 91 ) AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT DISTINCT + 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-8405
SELECT CAST( + 29 AS SIGNED ) + col0 FROM tab0 AS cor0
----
118
53
64

skipif mysql # not compatible
query I rowsort label-8405
SELECT CAST ( + 29 AS INTEGER ) + col0 FROM tab0 AS cor0
----
118
53
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-8406
SELECT + col0 * - col0 DIV - tab1.col0 + col0 + + 3 AS col0 FROM tab1
----
131
163
9

skipif mysql # not compatible
query I rowsort label-8406
SELECT + col0 * - col0 / - tab1.col0 + col0 + + 3 AS col0 FROM tab1
----
131
163
9

query I rowsort
SELECT ( + cor0.col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col0 * + 86 AS col2 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT ALL + col1 + col2 * col1 + col2 FROM tab0
----
195
2957
7635

query I rowsort
SELECT 46 * - tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 99200cd267c5d7d8665cbc170a4923b3

query I rowsort
SELECT DISTINCT + tab1.col1 * 0 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8412
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8412
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - tab2.col2 * - tab2.col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL cor0.col1 + - col0 FROM tab2 cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - 40 / - col2 - + CAST ( 99 AS REAL ) FROM tab0 AS cor0
----
-59
-98
-99

query I rowsort
SELECT ALL 47 * - col2 AS col0 FROM tab0 AS cor0
----
-1551
-3854
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 * ( ( col0 ) * - cor0.col2 ) col2 FROM tab0 AS cor0
----
-1260
-19032
-649611

query I rowsort
SELECT DISTINCT - + 46 + col2 + + 22 AS col0 FROM tab1 AS cor0
----
30
33
72

query I rowsort
SELECT 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - ( 66 ) * + col0 FROM tab2
----
-462
-5148
-5214

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-8423
SELECT + ( + 73 ) DIV - col0 col2 FROM tab0 AS cor0
----
-2
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8423
SELECT + ( + 73 ) / - col0 col2 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8424
SELECT + + ( + 76 ) * - col0 DIV - cor0.col0 FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-8424
SELECT + + ( + 76 ) * - col0 / - cor0.col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT - col0 - - col2 * 59 AS col1 FROM tab2 AS cor0
----
1456
1586
2163

query I rowsort
SELECT 88 - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2750
-7374
-9

query I rowsort
SELECT col2 * + col2 - 71 AS col1 FROM tab0
----
-70
1018
6653

query I rowsort
SELECT + cor0.col2 + col1 - 68 * col0 AS col2 FROM tab2 cor0
----
-418
-5219
-5317

query I rowsort
SELECT + + 24 * col1 + + 86 + - 36 FROM tab0 AS cor0
----
2114
2234
2378

query I rowsort
SELECT - ( cor0.col0 ) * + col2 - + 20 * - col2 FROM tab0 AS cor0
----
-132
-15
-5658

query I rowsort
SELECT DISTINCT + col0 + + col2 * 97 FROM tab1 AS cor0
----
5241
5593
9392

query I rowsort
SELECT cor0.col2 * - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT col0 * col1 * - 20 FROM tab0 AS cor0
----
-161980
-41280
-67900

onlyif mysql # use DIV operator for integer division
query I rowsort label-8434
SELECT - col1 * col2 + - 73 + col0 DIV 22 FROM tab1 cor0
----
-1318
-1477
-641

skipif mysql # not compatible
query I rowsort label-8434
SELECT - col1 * col2 + - 73 + col0 / 22 FROM tab1 cor0
----
-1318
-1477
-641

query I rowsort
SELECT + - col0 + - col0 + ( col2 ) AS col1 FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT + + col2 * ( ( col2 ) ) + col0 AS col0 FROM tab2 cor0
----
1523
736
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8437
SELECT - col0 + + CAST( NULL AS DECIMAL ) * 4 + - cor0.col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT - col0 + + CAST ( NULL AS REAL ) * 4 + - cor0.col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8439
SELECT ALL + col0 + + col1 * + col0 * - CAST( - 58 + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-194287
193550
51624

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + col0 + + col1 * + col0 * - CAST ( - 58 + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-194287
193550
51624

query I rowsort
SELECT DISTINCT - + col1 + 85 * col1 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT ALL + ( - 13 ) * + col1 * col1 FROM tab2 AS cor0
----
-12493
-3757
-45253

query I rowsort
SELECT col2 + 1 AS col1 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8443
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + cor0.col2 col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + - ( 59 ) + col1 AS col0 FROM tab1 AS cor0
----
-33
-46
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT DISTINCT col0 DIV - col0 - - col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT col0 / - col0 - - col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT 62 * 87 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 406769009b80deead7df0b09da1a37cc

onlyif mysql # use DIV operator for integer division
query I rowsort label-8448
SELECT DISTINCT + 58 + 47 DIV col0 col0 FROM tab1 cor0
----
58
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + 58 + 47 / col0 col0 FROM tab1 cor0
----
58
73

query I rowsort
SELECT - 88 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8450
SELECT DISTINCT - ( + col1 ) DIV - col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT - ( + col1 ) / - col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + + 68 * - col1 + - col0 FROM tab2 cor0
----
-1235
-2115
-4090

query I rowsort
SELECT + col0 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT + 54 + - cor0.col2 FROM tab0 cor0
----
-28
21
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-8455
SELECT ALL cor0.col1 DIV cor0.col1 - - cor0.col0 * + 20 * - col2 FROM tab0 AS cor0
----
-145959
-15839
-699

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL cor0.col1 / cor0.col1 - - cor0.col0 * + 20 * - col2 FROM tab0 AS cor0
----
-145959
-15839
-699

query I rowsort
SELECT ALL + 25 + ( + cor0.col1 ) * - cor0.col0 FROM tab2 AS cor0
----
-1318
-192
-4577

query I rowsort
SELECT DISTINCT + ( 33 ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT + col1 + 54 AS col2 FROM tab1
----
64
67
80

query I rowsort
SELECT DISTINCT + cor0.col0 + 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
26
37
91

query I rowsort
SELECT DISTINCT + - 1 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + col1 * - col2 + col2 + col1 * col1 FROM tab2 AS cor0
----
-319
151
1973

query I rowsort
SELECT DISTINCT 26 * - cor0.col0 FROM tab1, tab2 AS cor0
----
-182
-2028
-2054

onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT 63 DIV tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a7083ea8b0bf28ebaee8c1cdecf39ce2

skipif mysql # not compatible
query I rowsort label-8463
SELECT 63 / tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a7083ea8b0bf28ebaee8c1cdecf39ce2

query I rowsort
SELECT - col0 * col0 + - col2 + col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col0 * + 26 FROM tab0 AS cor0
----
-2314
-624
-910

query I rowsort
SELECT - cor0.col1 * - col0 + - 37 - + col0 AS col2 FROM tab1 AS cor0
----
38
539
923

query I rowsort
SELECT - + cor0.col1 + - col0 + + col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL ( tab0.col0 ) - - col0 * col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL - col0 + - ( - tab0.col1 ) FROM tab0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8470
SELECT + - col1 * + CAST( NULL AS SIGNED ) * col0 + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8470
SELECT + - col1 * + CAST ( NULL AS INTEGER ) * col0 + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * ( col0 + + col0 * - CAST ( + col2 AS REAL ) ) FROM tab1 AS cor0
----
-204288
-729600
-8586

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT ALL + 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-8472
SELECT ALL + col1 / - col0 col1 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT ALL + col1 + - tab0.col1 DIV 98 AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + col1 + - tab0.col1 / 98 AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8474
SELECT - + cor0.col1 * ( - col2 ) * cor0.col1 + col2 DIV col0 col1 FROM tab0 cor0
----
244069
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8474
SELECT - + cor0.col1 * ( - col2 ) * cor0.col1 + col2 / col0 col1 FROM tab0 cor0
----
244069
679042
9409

query I rowsort
SELECT col2 + - col0 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + 66 + - col0 FROM tab0 AS cor0
----
-23
31
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 + 74 * col1 col0 FROM tab2 AS cor0
----
1196
2318
4347

onlyif mysql # use DIV operator for integer division
query I rowsort label-8478
SELECT + col1 DIV - col2 - - 80 * ( col0 ) col2 FROM tab0 AS cor0
----
1918
2703
7119

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8478
SELECT + col1 / - col2 - - 80 * ( col0 ) col2 FROM tab0 AS cor0
----
1918
2703
7119

query I rowsort
SELECT ALL - col0 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + 32 * - col2 AS col1 FROM tab0
----
-1056
-2624
-32

query I rowsort
SELECT ALL - col2 * col0 + - ( - 64 ) * + col0 FROM tab1
----
-2560
30
448

query I rowsort
SELECT ALL col1 + + col1 * 65 FROM tab0
----
5676
6006
6402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col1 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - 84 + col0 * col2 FROM tab0 AS cor0
----
-49
708
7214

query I rowsort
SELECT DISTINCT + 26 FROM tab1, tab1 cor0, tab2 AS cor1
----
26

query I rowsort
SELECT - col1 * + col1 * 21 FROM tab0
----
-155316
-173901
-197589

query I rowsort
SELECT DISTINCT 27 + col0 + 50 AS col2 FROM tab0 AS cor0
----
101
112
166

query I rowsort
SELECT ALL + col2 * 17 * col0 AS col0 FROM tab2
----
3213
34476
51034

query I rowsort
SELECT col0 + - col2 * + 87 AS col0 FROM tab0
----
-2847
-52
-7045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8491
SELECT ALL col1 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL col1 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 97 + col0 AS col0 FROM tab2
----
-672
-7488
-7584

query I rowsort
SELECT DISTINCT col0 * col1 * 62 + + col1 AS col0 FROM tab2 AS cor0
----
13485
285383
83283

query I rowsort
SELECT - col1 + col2 + col0 * + col1 FROM tab2 AS cor0
----
1364
213
4569

query I rowsort
SELECT DISTINCT col1 * 67 + col2 FROM tab1 AS cor0
----
1796
727
967

query I rowsort
SELECT ( 50 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT col1 DIV 94 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8497
SELECT col1 / 94 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 25 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8499
SELECT ALL + CAST( NULL AS SIGNED ) + col1 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * 61 FROM tab1 AS cor0
----
3294
3477
5856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8501
SELECT DISTINCT CAST( - ( + col0 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT CAST ( - ( + col0 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - ( + col1 ) + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + col2 + 71 * col0 FROM tab2 AS cor0
----
524
5564
5647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col0 * ( - col2 ) col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL 82 AS col0 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT col1 * + col2 * + col2 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8508
SELECT ALL - CAST( NULL AS SIGNED ) + + cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - CAST ( NULL AS INTEGER ) + + cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - 62 FROM tab2
----
-24
-35
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8510
SELECT - - CAST( - col0 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-8510
SELECT - - CAST ( - col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 18 * 2 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT - 25 + 0 AS col2 FROM tab2 AS cor0
----
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8513
SELECT ALL - tab1.col1 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - tab1.col1 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT cor0.col2 * + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + + ( ( col2 ) ) + + col0 * 55 FROM tab1 AS cor0
----
219
3577
4496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8517
SELECT ALL + + CAST( NULL AS SIGNED ) + ( - col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + + CAST ( NULL AS INTEGER ) + ( - col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col0 + - cor0.col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT - 58 + + 42 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT - col0 * 74 * col2 + ( 36 + - col0 ) FROM tab2
----
-13957
-150114
-222191

query I rowsort
SELECT - - col0 + ( cor0.col1 + + col2 ) FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT DISTINCT + col2 + ( col1 ) AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + - col2 * + cor0.col1 + ( col1 + 56 ) AS col0 FROM tab1 AS cor0
----
-1179
-1322
-504

query I rowsort
SELECT ALL - col0 + - 62 FROM tab0 AS cor0
----
-151
-86
-97

query I rowsort
SELECT DISTINCT + + col0 + 5 * col2 * + col0 FROM tab0 AS cor0
----
210
36579
3984

query I rowsort
SELECT + col0 * cor0.col2 + + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT col1 + ( - 2 + - col1 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-8527
SELECT col1 + ( - 2 + - col1 ) / - col0 AS col2 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT DISTINCT - col2 + + 62 - col1 FROM tab0 AS cor0
----
-111
-36
-57

query I rowsort
SELECT ALL cor0.col2 + - ( col0 ) FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT ALL + col2 DIV - col1 + 87 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3010
-7654

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + col2 / - col1 + 87 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT + col0 * - cor0.col0 + 49 AS col0 FROM tab0 AS cor0
----
-1176
-527
-7872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8532
SELECT - CAST( NULL AS SIGNED ) + 48 * - cor0.col1 * - 80 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8532
SELECT - CAST ( NULL AS INTEGER ) + 48 * - cor0.col1 * - 80 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 8 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # use DIV operator for integer division
query I rowsort label-8534
SELECT + col2 + col1 DIV cor0.col1 col1 FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8534
SELECT + col2 + col1 / cor0.col1 col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT - 39 * - tab1.col1 AS col1 FROM tab1
----
1014
390
507

query I rowsort
SELECT ALL 49 * 5 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 058af79d0bd5cdde8dd2696e3d123538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col2 * - col2 * col0 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + col1 + + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - - col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL tab2.col0 * + col2 + - 69 * col1 + tab2.col2 AS col1 FROM tab2
----
-1923
-2017
1867

query I rowsort
SELECT + + cor0.col1 * col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT + cor0.col0 * + col2 * - 73 FROM tab0 cor0
----
-2555
-532754
-57816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 28 col2 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT ALL + 23 FROM tab2, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT + ( - 19 * + col0 ) FROM tab1
----
-1216
-1520
-57

query I rowsort
SELECT col1 + + col1 - - col0 * col1 FROM tab1 cor0
----
1066
130
660

query I rowsort
SELECT cor0.col1 + + ( col0 ) * - col0 * - 88 FROM tab2 AS cor0
----
4343
535451
549225

query I rowsort
SELECT - col0 * col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8550
SELECT - - col2 * col2 DIV col2 - ( col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-8550
SELECT - - col2 * col2 / col2 - ( col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT col2 * - cor0.col1 * cor0.col2 FROM tab1 cor0
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8552
SELECT - cor0.col2 + + col2 * cor0.col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT - cor0.col2 + + col2 * cor0.col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT - 60 DIV - col2 FROM tab0 AS cor0
----
0
1
60

skipif mysql # not compatible
query I rowsort label-8553
SELECT - 60 / - col2 FROM tab0 AS cor0
----
0
1
60

query I rowsort
SELECT + + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - + 63 * + col1 FROM tab2 AS cor0
----
-1071
-1953
-3717

query I rowsort
SELECT - col2 + - col1 + - cor0.col2 FROM tab2 AS cor0
----
-111
-85
-93

query I rowsort
SELECT - col2 + col1 * + cor0.col0 + + col0 AS col2 FROM tab1 cor0
----
1024
27
647

onlyif mysql # use DIV operator for integer division
query I rowsort label-8558
SELECT col0 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT col0 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL - col1 * + col0 + + tab0.col0 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - 87 + col0 * - col1 FROM tab1 AS cor0
----
-1127
-165
-727

query I rowsort
SELECT ALL - col0 * col2 + + col0 + 88 * col0 AS col0 FROM tab2 AS cor0
----
4029
434
4914

query I rowsort
SELECT DISTINCT - cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 * + col1 * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-16320
-36558
-5757

query I rowsort
SELECT DISTINCT - 82 * col1 AS col2 FROM tab1 AS cor0
----
-1066
-2132
-820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8565
SELECT ALL - - ( col1 ) * + CAST( 62 AS SIGNED ) + + col2 * + col2 + - 27 FROM tab1 AS cor0
----
3842
4501
9995

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - - ( col1 ) * + CAST ( 62 AS INTEGER ) + + col2 * + col2 + - 27 FROM tab1 AS cor0
----
3842
4501
9995

query I rowsort
SELECT ALL + 84 + col2 * ( col1 ) * col0 FROM tab2 AS cor0
----
119736
51118
5943

query I rowsort
SELECT ALL col0 * 76 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT DISTINCT - col0 * - ( - col0 * + col1 ) + + col0 FROM tab1 AS cor0
----
-231
-40896
-83120

query I rowsort
SELECT + col1 * 95 + 56 * col2 FROM tab2 AS cor0
----
3743
4457
7061

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - 47 col1 FROM tab0
----
-2111
-3442
-8146

query I rowsort
SELECT + - cor0.col0 + + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL cor0.col0 * + 79 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 4f29be553b00ce811285d732f2f9c5b5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - cor0.col0 col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * + col1 + + col2 * col1 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT DISTINCT + + col1 + + 44 AS col2 FROM tab2 AS cor0
----
103
61
75

query I rowsort
SELECT + - 0 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - tab0.col1 * 34 + - 40 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9a0c0e7ebccb472386ab26867af10a44

query I rowsort
SELECT DISTINCT - 75 * + tab0.col2 AS col0 FROM tab0, tab2, tab1 cor0
----
-2475
-6150
-75

query I rowsort
SELECT ALL + ( col1 + col2 ) FROM tab2
----
55
58
85

query I rowsort
SELECT - cor0.col1 * + col2 + col2 * col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT + 75 DIV + col0 FROM tab1
----
0
1
25

skipif mysql # not compatible
query I rowsort label-8582
SELECT + 75 / + col0 FROM tab1
----
0
1
25

query I rowsort
SELECT col2 * - col2 - + col0 AS col1 FROM tab1
----
-2919
-3313
-9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8584
SELECT ALL + CAST( NULL AS SIGNED ) - col1 * tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 * tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( + col1 ) * 25 ) col1 FROM tab1
----
-250
-325
-650

query I rowsort
SELECT ALL cor0.col2 + ( cor0.col0 ) FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8587
SELECT DISTINCT - col0 * - CAST( col2 AS SIGNED ) + cor0.col1 AS col2 FROM tab1 cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - col0 * - CAST ( col2 AS INTEGER ) + cor0.col1 AS col2 FROM tab1 cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 33 col0 FROM tab2 AS cor0
----
1254
858
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-8589
SELECT ALL - - col2 DIV - 39 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - - col2 / - 39 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT cor0.col0 * + 39 * col0 AS col0 FROM tab1 AS cor0
----
159744
249600
351

query I rowsort
SELECT ALL + col2 * 56 + - col0 + + col1 FROM tab2 AS cor0
----
1437
1536
2066

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col1 + + ( + 99 ) FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT + - col2 * 74 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT DISTINCT + + col1 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - col1 * + 29 AS col2 FROM tab1 AS cor0
----
-290
-377
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT DISTINCT col1 DIV - col1 + col0 DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT col1 / - col1 + col0 / col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab0, tab0 AS cor0
----
90

query I rowsort
SELECT ALL 50 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - 48 FROM tab1, tab0 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + cor0.col1 * col0 * + ( cor0.col0 ) col1 FROM tab2 AS cor0
----
106080
1488
358897

query I rowsort
SELECT ALL - 57 + - cor0.col0 AS col1 FROM tab1 cor0
----
-121
-137
-60

query I rowsort
SELECT DISTINCT 65 * col0 - + cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
273
4800
6240

query I rowsort
SELECT - 75 * col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT DISTINCT col0 + + col1 * - col1 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT tab0.col2 + + col1 * col1 AS col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT 6 + col2 FROM tab2
----
32
33
44

query I rowsort
SELECT col1 * - tab2.col2 + + 75 AS col0 FROM tab2
----
-1459
-571
-762

query I rowsort
SELECT DISTINCT + col1 * + col0 + col1 * + col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ALL col1 + col2 * col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL - 0 * col1 - ( - col2 * - col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - cor0.col2 + + 28 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 252c2d96ac379f97d750cdaa9ea074ca

query I rowsort
SELECT + 26 * col2 FROM tab1
----
1404
1482
2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col0 FROM tab1
----
57

query I rowsort
SELECT ALL + 13 AS col1 FROM tab0
----
13
13
13

query I rowsort
SELECT col2 * - 82 * col0 AS col1 FROM tab0 AS cor0
----
-2870
-598436
-64944

query I rowsort
SELECT ALL 15 * cor0.col2 - ( - 11 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 2056279d3d7ee53db15b3d6b1ab8fdd4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8618
SELECT ALL - CAST( NULL AS DECIMAL ) * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL - CAST ( NULL AS REAL ) * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col0 * ( col2 + col2 ) * - ( - 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 * + 2 AS col2 FROM tab2, tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT ( tab1.col2 ) AS col2 FROM tab1, tab2 AS cor0
----
54
57
96

query I rowsort
SELECT - - col1 + 48 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT + col1 * - ( 73 ) FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT + + col2 * - cor0.col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8625
SELECT + col0 * + CAST( col0 AS SIGNED ) + + col1 * + 46 col0 FROM tab0 AS cor0
----
12107
4532
5687

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8625
SELECT + col0 * + CAST ( col0 AS INTEGER ) + + col1 * + 46 col0 FROM tab0 AS cor0
----
12107
4532
5687

query I rowsort
SELECT DISTINCT col0 + 68 FROM tab1
----
132
148
71

query I rowsort
SELECT ALL - col0 + + 31 + - col1 * - col1 AS col2 FROM tab1
----
120
67
704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + 37 col2 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT DISTINCT + col0 * 28 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT - - ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 6 * col1 * col2 AS col2 FROM tab1 AS cor0
----
3420
7488
8424

query I rowsort
SELECT DISTINCT + + col2 * col1 + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT ( col0 + tab1.col0 ) FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8634
SELECT col1 DIV + 50 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8634
SELECT col1 / + 50 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - - 44 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT + col2 + + col0 + ( + 93 ) FROM tab2 cor0
----
127
197
210

query I rowsort
SELECT - 97 - col0 AS col0 FROM tab0 AS cor0
----
-121
-132
-186

query I rowsort
SELECT 13 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT + col1 + + col2 * + col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT 77 + + col0 AS col1 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT ALL 89 + 62 * + col2 + + col2 FROM tab0
----
152
2168
5255

query I rowsort
SELECT + - 44 * + col1 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT + 28 - col2 * - col0 FROM tab0 AS cor0
----
63
7326
820

query I rowsort
SELECT + col2 + + col1 * col1 - + 49 * - col1 * col1 FROM tab1 AS cor0
----
33854
5057
8546

onlyif mysql # use DIV operator for integer division
query I rowsort label-8645
SELECT ( + col2 ) + col0 DIV + col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-8645
SELECT ( + col2 ) + col0 / + col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT 86 + col2 + col1 FROM tab1 cor0
----
153
166
195

query I rowsort
SELECT DISTINCT 9 + col2 AS col2 FROM tab2 AS cor0
----
35
36
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT - 63 + - col1 DIV col0 FROM tab2 cor0
----
-63
-63
-67

skipif mysql # not compatible
query I rowsort label-8649
SELECT - 63 + - col1 / col0 FROM tab2 cor0
----
-63
-63
-67

query I rowsort
SELECT DISTINCT 86 * + col1 + + cor0.col2 FROM tab1 AS cor0
----
1214
2290
917

query I rowsort
SELECT DISTINCT 83 * - col1 AS col0 FROM tab2 AS cor0
----
-1411
-2573
-4897

onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT ALL - 88 DIV + col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL - 88 / + col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT col2 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 + + 82 FROM tab2 AS cor0
----
1526
758
811

query I rowsort
SELECT ALL 43 * + col0 AS col0 FROM tab2 AS cor0
----
301
3354
3397

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab0 cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT ALL col0 * - col1 + + col1 * 78 FROM tab2
----
-17
0
2201

onlyif mysql # use DIV operator for integer division
query I rowsort label-8658
SELECT DISTINCT 13 DIV col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT 13 / col1 FROM tab1
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8659
SELECT - ( - col0 ) * + tab0.col1 - - 52 * col1 DIV col0 AS col2 FROM tab0
----
2250
3539
8152

skipif mysql # not compatible
query I rowsort label-8659
SELECT - ( - col0 ) * + tab0.col1 - - 52 * col1 / col0 AS col2 FROM tab0
----
2250
3539
8152

query I rowsort
SELECT ALL - - col1 * 21 FROM tab0 cor0
----
1806
1911
2037

query I rowsort
SELECT DISTINCT - - col0 + - 8 FROM tab2 AS cor0
----
-1
70
71

query I rowsort
SELECT ALL - - cor0.col0 + 91 AS col2 FROM tab0 AS cor0
----
115
126
180

query I rowsort
SELECT - + tab2.col1 + + tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 49c3ea57db097be5fdc5dd314554025d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 82 col0 FROM tab0 AS cor0
----
168
173
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * + col2 col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - cor0.col1 - - 18 AS col1 FROM tab1 AS cor0
----
-8
5
8

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col0 FROM tab2, tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8668
SELECT + - col2 * CAST( NULL AS DECIMAL ) - + 20 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT + - col2 * CAST ( NULL AS REAL ) - + 20 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 66 - col2 FROM tab2 cor0
----
1690
1755
2470

query I rowsort
SELECT + col1 * col0 + - ( - col0 ) FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8671
SELECT col2 * CAST( col2 AS SIGNED ) + + col2 FROM tab0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-8671
SELECT col2 * CAST ( col2 AS INTEGER ) + + col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT ALL col2 + - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - 73 * + ( col0 ) + CAST ( + col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1666
-2458
-6406

query I rowsort
SELECT ALL + 30 + - 59 FROM tab0 cor0
----
-29
-29
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8675
SELECT + - ( col0 ) * col2 - + CAST( ( col0 ) AS SIGNED ) * + col1 * + col2 col0 FROM tab2 AS cor0
----
-121680
-54036
-6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8675
SELECT + - ( col0 ) * col2 - + CAST ( ( col0 ) AS INTEGER ) * + col1 * + col2 col0 FROM tab2 AS cor0
----
-121680
-54036
-6048

query I rowsort
SELECT ALL + col2 - - 33 FROM tab2
----
59
60
71

query I rowsort
SELECT cor0.col0 * ( - col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8678
SELECT DISTINCT - CAST( 19 AS SIGNED ) AS col2 FROM tab1, tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - CAST ( 19 AS INTEGER ) AS col2 FROM tab1, tab0 cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * - col1 * col2 col0 FROM tab0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8680
SELECT col0 + CAST( + 89 AS SIGNED ) FROM tab1
----
153
169
92

skipif mysql # not compatible
query I rowsort label-8680
SELECT col0 + CAST ( + 89 AS INTEGER ) FROM tab1
----
153
169
92

query I rowsort
SELECT ALL - col2 + col1 * col2 AS col0 FROM tab1
----
1152
1350
513

query I rowsort
SELECT DISTINCT - - col0 + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + - ( col1 ) * col2 + 23 + - 88 FROM tab1 AS cor0
----
-1313
-1469
-635

query I rowsort
SELECT DISTINCT - col0 + 58 - col0 FROM tab1 AS cor0
----
-102
-70
52

query I rowsort
SELECT ( - cor0.col2 ) - cor0.col1 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT 76 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
76

query I rowsort
SELECT + + cor1.col1 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + - ( cor0.col0 ) + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL + col2 * - cor0.col2 - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab1 cor0
----
95

query I rowsort
SELECT ALL ( 48 ) FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT ALL 76 * col2 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT + 71 * 21 + cor0.col2 AS col1 FROM tab1 AS cor0
----
1545
1548
1587

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8694
SELECT - CAST( 88 AS SIGNED ) - + col0 * 45 AS col2 FROM tab0 AS cor0
----
-1168
-1663
-4093

skipif mysql # not compatible
query I rowsort label-8694
SELECT - CAST ( 88 AS INTEGER ) - + col0 * 45 AS col2 FROM tab0 AS cor0
----
-1168
-1663
-4093

query I rowsort
SELECT ALL + col1 - 26 AS col1 FROM tab2 AS cor0
----
-9
33
5

query I rowsort
SELECT col0 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT + - 27 DIV ( + col0 ) + + col1 AS col0 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-8697
SELECT + - 27 / ( + col0 ) + + col1 AS col0 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab0 AS cor0
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-8699
SELECT DISTINCT + col1 + - col0 + - col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
2
62

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + col1 + - col0 + - col0 / - col1 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL - 1 * + col1 * 97 AS col0 FROM tab2
----
-1649
-3007
-5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-8701
SELECT col2 + col0 DIV cor0.col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8701
SELECT col2 + col0 / cor0.col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT - 31 * + cor0.col2 + 14 AS col0 FROM tab2 AS cor0
----
-1164
-792
-823

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8703
SELECT - 45 * col0 + CAST( 19 AS SIGNED ) + col2 AS col1 FROM tab2 cor0
----
-269
-3465
-3498

skipif mysql # not compatible
query I rowsort label-8703
SELECT - 45 * col0 + CAST ( 19 AS INTEGER ) + col2 AS col1 FROM tab2 cor0
----
-269
-3465
-3498

query I rowsort
SELECT ALL - 83 * + col0 AS col2 FROM tab0 cor0
----
-1992
-2905
-7387

query I rowsort
SELECT DISTINCT - - col0 * ( col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 + - 12 + + 68 AS col2 FROM tab1 cor0
----
110
113
152

query I rowsort
SELECT DISTINCT + col2 + - 10 FROM tab0 AS cor0
----
-9
23
72

query I rowsort
SELECT col0 + + 71 * + ( col0 + 93 ) FROM tab2 cor0
----
12219
12291
7107

query I rowsort
SELECT DISTINCT col2 * col1 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT 31 * col2 FROM tab1
----
1674
1767
2976

query I rowsort
SELECT 96 + - col1 FROM tab0
----
-1
10
5

query I rowsort
SELECT ALL + cor0.col2 + + col2 * - col2 AS col0 FROM tab1 cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - col0 + - col1 * 36 AS col1 FROM tab1 AS cor0
----
-424
-548
-939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * col2 col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT col0 + tab0.col2 * - col1 AS col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col1 * + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
-635264
-746273
-912638

onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT DISTINCT + + col0 + - col0 DIV - col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + + col0 + - col0 / - col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT DISTINCT - + col2 * col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT - + col0 * cor0.col1 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col0 FROM tab0 AS cor0 WHERE col0 IN ( col0 )
----
-2064
-3395
-8099

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE - col2 * col2 BETWEEN cor0.col1 AND NULL
----

query I rowsort
SELECT ALL cor0.col0 + + col1 + col2 AS col2 FROM tab2 AS cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8725
SELECT + col0 * col0 * + col0 + col2 DIV cor0.col0 FROM tab1 AS cor0
----
262144
45
512001

skipif mysql # not compatible
query I rowsort label-8725
SELECT + col0 * col0 * + col0 + col2 / cor0.col0 FROM tab1 AS cor0
----
262144
45
512001

query I rowsort
SELECT col0 * col0 + col1 + col1 AS col2 FROM tab0 AS cor0
----
1419
748
8103

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT cor0.col0 * col1 + - cor0.col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT col0 + - col1 * col0 AS col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT col2 * + col0 + col2 + - col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - - col0 * col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT + col2 * cor0.col2 - + col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-8733
SELECT ALL col1 + cor0.col0 DIV col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL col1 + cor0.col0 / col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - col1 + - col1 * - col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL col1 * - col2 + col2 + col2 FROM tab1
----
-1056
-1296
-456

query I rowsort
SELECT - col2 * - col2 * + col2 + + tab0.col1 AS col2 FROM tab0
----
36023
551459
98

query I rowsort
SELECT DISTINCT - col2 + col1 * + col0 * cor0.col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT ALL col0 * - col1 * col2 + - col1 AS col2 FROM tab2
----
-119711
-51051
-5890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8739
SELECT + col2 * + col2 + CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-8739
SELECT + col2 * + col2 + CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + col1 * + cor0.col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + + col1 / col1 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col2 * + col2 + col2 <= col1 + col2
----

query I rowsort
SELECT + col1 * - col1 - col0 AS col2 FROM tab0 WHERE NOT + col1 + col0 NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 2 * + tab0.col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT - col2 * + col2 * 0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 4 AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT - 39 + - col2 * + ( 34 ) + + col0 FROM tab1
----
-1872
-1913
-3223

query I rowsort
SELECT ALL - col2 * cor0.col1 + col1 * + 21 + + cor0.col1 FROM tab0 AS cor0
----
-5460
-946
2037

query I rowsort
SELECT - tab0.col2 / - col1 + - col0 * col1 FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col1 BETWEEN + col2 AND - col2
----

query I rowsort
SELECT col1 + - col1 - - col0 AS col1 FROM tab1
----
3
64
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( col0 / + tab2.col2 )
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( NULL ) IN ( + tab0.col1 + + col1 / col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8756
SELECT + tab1.col0 DIV tab1.col1 + + col2 * + col1 AS col1 FROM tab1
----
1254
1404
576

skipif mysql # not compatible
query I rowsort label-8756
SELECT + tab1.col0 / tab1.col1 + + col2 * + col1 AS col1 FROM tab1
----
1254
1404
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 col2 FROM tab2 WHERE NULL BETWEEN NULL AND ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8758
SELECT col0 + + col0 + + col0 DIV col2 FROM tab1
----
129
160
6

skipif mysql # not compatible
query I rowsort label-8758
SELECT col0 + + col0 + + col0 / col2 FROM tab1
----
129
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * col1 + - col2 * - col1 col0 FROM tab1
----
1513
2134
727

query I rowsort
SELECT ALL col2 * + tab0.col0 - - 75 * col1 * - col2 FROM tab0
----
-212058
-552352
-7240

onlyif mysql # use DIV operator for integer division
query I rowsort label-8761
SELECT col1 DIV + col0 + col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-8761
SELECT col1 / + col0 + col2 FROM tab0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT - 94 DIV + col0 col0 FROM tab2
----
-1
-1
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8762
SELECT - 94 / + col0 col0 FROM tab2
----
-1
-1
-13

query I rowsort
SELECT 57 * col2 AS col2 FROM tab0
----
1881
4674
57

query I rowsort
SELECT - 61 + + col2 - ( 32 ) FROM tab0
----
-11
-60
-92

query I rowsort
SELECT 47 + col2 AS col0 FROM tab1 AS cor0
----
101
104
143

query I rowsort
SELECT ALL col1 + cor0.col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - - col0 + + col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT ALL - col0 + + col1 DIV - ( col0 ) AS col1 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - col0 + + col1 / - ( col0 ) AS col1 FROM tab2 AS cor0
----
-11
-78
-79

query I rowsort
SELECT DISTINCT + col0 + ( - col0 ) * + col2 * + col2 AS col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + 80 col2 FROM tab1 AS cor0
----
144
160
83

query I rowsort
SELECT + - col0 * - 75 AS col1 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + - col0 * col0 AS col2 FROM tab1 cor0
----
-4736
-7440
-87

query I rowsort
SELECT - + col2 * col2 - col2 * + col2 FROM tab0 AS cor0
----
-13448
-2
-2178

query I rowsort
SELECT DISTINCT + ( tab1.col0 ) * + ( + ( col2 ) ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col0 * 83 AS col0 FROM tab1 AS cor0
----
249
5312
6640

query I rowsort
SELECT DISTINCT 42 * 14 + col2 AS col1 FROM tab2 cor0
----
614
615
626

query I rowsort
SELECT DISTINCT + - 8 + + 37 * col1 AS col0 FROM tab1 cor0
----
362
473
954

query I rowsort
SELECT ALL - + ( ( cor0.col2 ) ) * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + col0 + - col1 + + col0 AS col0 FROM tab1 cor0
----
-20
118
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col0 FROM tab0 cor0
----
-36
-36
-36

query I rowsort
SELECT ALL col0 + - col2 + col1 AS col0 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT DISTINCT + 19 + col2 * col0 FROM tab0 AS cor0
----
54
7317
811

query I rowsort
SELECT + - ( cor0.col1 ) + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-8785
SELECT ALL - cor0.col1 + + cor0.col2 DIV - col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - cor0.col1 + + cor0.col2 / - col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + + cor0.col1 col1 FROM tab0 cor0
----
110
115
121

query I rowsort
SELECT 11 - 78 FROM tab0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - col0 * 32 AS col2 FROM tab2
----
-224
-2496
-2528

query I rowsort
SELECT ALL - col0 * - ( - col0 ) * - col2 AS col2 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-8790
SELECT + tab0.col2 - + col0 DIV - col2 AS col0 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-8790
SELECT + tab0.col2 - + col0 / - col2 AS col0 FROM tab0
----
33
36
83

query I rowsort
SELECT DISTINCT 57 * - col2 FROM tab2
----
-1482
-1539
-2166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 * - col0 col0 FROM tab0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT - - col2 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col2 + col0 * col2 - - col1 AS col0 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT ALL + 49 * + col1 FROM tab1 cor0
----
1274
490
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-8796
SELECT ALL col1 + cor0.col0 DIV - col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL col1 + cor0.col0 / - col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT ALL - - 78 AS col2 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - 95 * + cor0.col0 - col0 AS col1 FROM tab2 AS cor0
----
-672
-7488
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 75 + col1 col0 FROM tab1 AS cor0
----
101
85
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8800
SELECT col2 - CAST( col1 AS SIGNED ) * col1 * + col2 FROM tab0
----
-244035
-678960
-9408

skipif mysql # not compatible
query I rowsort label-8800
SELECT col2 - CAST ( col1 AS INTEGER ) * col1 * + col2 FROM tab0
----
-244035
-678960
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8801
SELECT col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * + col1 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col1 + - 26 AS col1 FROM tab1 AS cor0
----
-36
-39
-52

query I rowsort
SELECT DISTINCT col0 * + 75 + col1 AS col2 FROM tab0
----
1886
2722
6766

query I rowsort
SELECT ALL col0 - + 2 AS col2 FROM tab2 AS cor0
----
5
76
77

query I rowsort
SELECT cor0.col2 + 23 FROM tab0 cor0
----
105
24
56

query I rowsort
SELECT DISTINCT ( - 76 * col0 ) FROM tab2
----
-532
-5928
-6004

query I rowsort
SELECT 19 * col0 + col0 FROM tab0
----
1780
480
700

query I rowsort
SELECT col1 + 28 * col1 * col2 FROM tab1
----
15970
34957
39338

query I rowsort
SELECT + ( - col1 ) * col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + col1 + col2 * + cor0.col2 AS col2 FROM tab2 cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 63 col1 FROM tab2 AS cor0
----
-15
-16
56

query I rowsort
SELECT - col0 * + 29 AS col0 FROM tab2 cor0
----
-203
-2262
-2291

query I rowsort
SELECT - ( + col2 ) * + col1 + 0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 * + 96 + col1 FROM tab0
----
193
3254
7963

onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT + - 72 DIV + col1 + col1 * 81 AS col1 FROM tab1 AS cor0
----
1048
2104
803

skipif mysql # not compatible
query I rowsort label-8816
SELECT + - 72 / + col1 + col1 * 81 AS col1 FROM tab1 AS cor0
----
1048
2104
803

query I rowsort
SELECT + col0 + - 21 FROM tab2 AS cor0
----
-14
57
58

query I rowsort
SELECT - ( col2 ) * col0 + + 0 * cor0.col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8819
SELECT DISTINCT col1 + - 51 * 68 DIV col2 AS col0 FROM tab0
----
-19
-3371
49

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT col1 + - 51 * 68 / col2 AS col0 FROM tab0
----
-19
-3371
49

query I rowsort
SELECT 76 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT col1 * + 13 * col1 AS col1 FROM tab1
----
1300
2197
8788

query I rowsort
SELECT ALL - col1 * ( col2 ) + col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8823
SELECT - CAST( - 52 AS SIGNED ) FROM tab2
----
52
52
52

skipif mysql # not compatible
query I rowsort label-8823
SELECT - CAST ( - 52 AS INTEGER ) FROM tab2
----
52
52
52

query I rowsort
SELECT - + 50 * - col2 - + col1 AS col2 FROM tab2 AS cor0
----
1241
1319
1883

onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT DISTINCT col0 * - col0 + - col1 DIV - col1 + - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-10633
-16201
-7971

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT col0 * - col0 + - col1 / - col1 + - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-10633
-16201
-7971

query I rowsort
SELECT DISTINCT + - col2 + 90 AS col1 FROM tab2 AS cor0
----
52
63
64

query I rowsort
SELECT ALL col1 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT col0 * col1 + - col1 * ( 62 ) AS col0 FROM tab1 AS cor0
----
-1534
20
234

onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT ALL 84 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL 84 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - - 53 * col1 AS col0 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT + col1 * col0 * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL - - 63 * - col2 AS col2 FROM tab0 cor0
----
-2079
-5166
-63

query I rowsort
SELECT ALL - - 94 AS col1 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT - col0 * 19 AS col2 FROM tab1 AS cor0
----
-1216
-1520
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8835
SELECT - col2 DIV - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-8835
SELECT - col2 / - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT + col0 + ( col1 ) + - col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8837
SELECT DISTINCT + - col1 + - 16 DIV col2 col2 FROM tab0 AS cor0
----
-113
-86
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT + - col1 + - 16 / col2 col2 FROM tab0 AS cor0
----
-113
-86
-91

query I rowsort
SELECT ALL - cor0.col1 * ( - col2 ) * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 + - 68 + + col2 * col2 * ( cor0.col1 ) FROM tab0 AS cor0
----
611905
64
93610

onlyif mysql # use DIV operator for integer division
query I rowsort label-8840
SELECT + col2 DIV + 32 AS col2 FROM tab1
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8840
SELECT + col2 / + 32 AS col2 FROM tab1
----
1
1
3

query I rowsort
SELECT ALL + cor0.col1 * 4 + + col1 + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
150
234
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8842
SELECT col1 + CAST( ( + cor0.col0 ) + - ( + 19 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
113
161
91

skipif mysql # not compatible
query I rowsort label-8842
SELECT col1 + CAST ( ( + cor0.col0 ) + - ( + 19 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
113
161
91

query I rowsort
SELECT - col2 - + col0 * - col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
8

query I rowsort
SELECT col0 * - 19 AS col2 FROM tab0 AS cor0
----
-1691
-456
-665

query I rowsort
SELECT + col2 + 83 FROM tab0 AS cor0
----
116
165
84

query I rowsort
SELECT 42 * col0 + - col2 + + 41 AS col2 FROM tab1 cor0
----
113
2672
3305

query I rowsort
SELECT col2 + 55 * col1 * + cor0.col0 - ( col0 + - col2 ) AS col2 FROM tab0 AS cor0
----
113562
186692
445520

query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ( 67 ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT + 10 + col2 + + 66 FROM tab2 cor0
----
102
103
114

query I rowsort
SELECT ALL + cor0.col0 * - col2 + ( 91 ) AS col2 FROM tab0 AS cor0
----
-701
-7207
56

query I rowsort
SELECT col0 + col1 * 20 FROM tab2 cor0
----
1258
419
627

query I rowsort
SELECT DISTINCT - col2 * + 88 * tab1.col1 FROM tab1
----
-109824
-123552
-50160

query I rowsort
SELECT + col1 + - 58 FROM tab1 AS cor0
----
-32
-45
-48

query I rowsort
SELECT ALL + col2 * col2 + tab2.col0 AS col2 FROM tab2
----
1523
736
754

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-8858
SELECT DISTINCT col2 + + col0 DIV 76 AS col2 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT col2 + + col0 / 76 AS col2 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT ALL col0 * - cor0.col1 + - 34 AS col1 FROM tab1 AS cor0
----
-1074
-112
-674

query I rowsort
SELECT ALL col0 * - ( + 5 ) + tab1.col1 FROM tab1
----
-310
-387
11

query I rowsort
SELECT ALL col1 * - ( - col0 ) * - col2 + + col2 + - col0 * col0 FROM tab0
----
-4619
-671957
-68655

onlyif mysql # use DIV operator for integer division
query I rowsort label-8863
SELECT ALL col2 + col2 DIV - ( col1 * - col0 ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL col2 + col2 / - ( col1 * - col0 ) FROM tab1
----
54
57
96

query I rowsort
SELECT + col0 * col2 * + col1 + + cor0.col2 + 67 FROM tab0 AS cor0
----
3463
664267
68212

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8865
SELECT cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + ( ( + cor0.col0 ) ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + col1 * - col2 + + 2 AS col1 FROM tab1
----
-1246
-1402
-568

query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) * col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT - col2 + + col1 * + 59 FROM tab1 AS cor0
----
1480
533
671

query I rowsort
SELECT ALL ( - col2 ) * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 42 * + cor0.col2 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT DISTINCT col0 * 15 AS col0 FROM tab2
----
105
1170
1185

query I rowsort
SELECT DISTINCT + + 10 + col1 * col2 FROM tab1 AS cor0
----
1258
1414
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-8874
SELECT ALL + + col0 + + 94 - col2 DIV col2 FROM tab1 AS cor0
----
157
173
96

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + + col0 + + 94 - col2 / col2 FROM tab1 AS cor0
----
157
173
96

query I rowsort
SELECT ALL + col1 * - col1 + + col1 + col2 AS col1 FROM tab0 AS cor0
----
-7277
-8108
-9311

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8876
SELECT ALL + + ( + col0 ) + col2 - - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
130
155
61

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + + ( + col0 ) + col2 - - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT DISTINCT - - 54 AS col0 FROM tab1 cor0
----
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT - + CAST( - cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8878
SELECT - + CAST ( - cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 35 col2 FROM tab1 AS cor0
----
45
48
61

query I rowsort
SELECT + cor0.col1 * 46 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 98cea206e5983446bcb8accfaa600eed

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8881
SELECT ALL + CAST( ( + cor0.col2 ) AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + CAST ( ( + cor0.col2 ) AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8882
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 + + col0 * 27 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 + + col0 * 27 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 23 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7419
8304
9432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab2.col2 col1 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8885
SELECT CAST( - col2 AS SIGNED ) * + col2 * col0 col0 FROM tab1
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8885
SELECT CAST ( - col2 AS INTEGER ) * + col2 * col0 col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT 78 + - col2 FROM tab0
----
-4
45
77

query I rowsort
SELECT + ( - 89 * col0 ) AS col2 FROM tab1
----
-267
-5696
-7120

query I rowsort
SELECT DISTINCT - - 21 + + col2 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT ALL - 44 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 9c887509d218271b9365009eba440976

query I rowsort
SELECT - + col1 + + col2 + - col2 * 63 FROM tab1 cor0
----
-3374
-3544
-5965

query I rowsort
SELECT DISTINCT + col0 + + col2 + col1 * - ( col1 ) AS col1 FROM tab0 cor0
----
-7339
-8110
-9373

query I rowsort
SELECT ALL - + cor0.col1 + - col2 * col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + + cor0.col2 * - 89 + - col2 * col1 FROM tab0 AS cor0
----
-14760
-186
-5775

query I rowsort
SELECT DISTINCT - + 21 * col2 + col2 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT DISTINCT - - col2 * + 66 FROM tab0 AS cor0
----
2178
5412
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT ALL + 44 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + 44 / + cor0.col0 FROM tab2 AS cor0
----
0
0
6

query I rowsort
SELECT - 61 * col0 AS col1 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT ALL 27 * tab0.col0 FROM tab0
----
2403
648
945

query I rowsort
SELECT 28 * + cor0.col0 * 36 FROM tab2, tab0 cor0
----
9 values hashing to 79227e43f2a021dc79815c287908dd39

onlyif mysql # use DIV operator for integer division
query I rowsort label-8900
SELECT DISTINCT col2 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT col2 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + + col0 * - col0 * col1 AS col0 FROM tab1 cor0
----
-234
-40960
-83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 + col1 col1 FROM tab1 AS cor0
----
-67
-80
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 75 col1 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL 19 * + tab0.col0 FROM tab0
----
1691
456
665

query I rowsort
SELECT - + col2 + + ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT ALL + col0 DIV - col0 + + col0 + - col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL + col0 / - col0 + + col0 + - col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 - ( col1 ) AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + col1 * + col1 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-2713
1453
772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col1 * + 9 - + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
-2559
-3155
-468

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8911
SELECT - + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT - + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 54 col1 FROM tab0 AS cor0
----
-21
-53
28

query I rowsort
SELECT DISTINCT col0 + 96 + + 87 AS col2 FROM tab2 AS cor0
----
190
261
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8914
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) * + 14 + + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) * + 14 + + col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT tab1.col0 - + col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - col0 + + tab1.col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + tab2.col1 * - tab2.col2 col1 FROM tab2
----
-620
3068
697

query I rowsort
SELECT col2 * + col2 + col0 - col1 FROM tab0
----
-61
1027
6722

query I rowsort
SELECT 34 - - tab2.col2 FROM tab2
----
60
61
72

query I rowsort
SELECT ALL - col1 * + ( col1 ) + - col2 FROM tab0 cor0
----
-7429
-8363
-9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8921
SELECT - col1 * CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT - col1 * CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - col0 * - 58 + + col1 AS col1 FROM tab2 AS cor0
----
437
4583
4599

query I rowsort
SELECT DISTINCT + - col1 * + 50 + col2 AS col2 FROM tab2 AS cor0
----
-1523
-2924
-812

query I rowsort
SELECT - cor0.col0 + 47 AS col1 FROM tab0 AS cor0
----
-42
12
23

query I rowsort
SELECT - - col2 * - col1 + - 28 FROM tab1 AS cor0
----
-1276
-1432
-598

query I rowsort
SELECT ALL + 84 + - ( tab0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 96c77dc4a265be5ae09f05e57ecf98f6

query I rowsort
SELECT 35 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT ALL 60 - cor0.col0 * 94 * col2 FROM tab0 AS cor0
----
-3230
-685952
-74388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8930
SELECT - col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT - col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL + cor0.col1 - - col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + 96 * col1 + - ( ( col2 ) ) FROM tab1 AS cor0
----
1152
2442
903

query I rowsort
SELECT + col1 + - cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL - + col1 * - col1 - - col0 * + col1 AS col2 FROM tab0 AS cor0
----
12804
16380
9460

onlyif mysql # use DIV operator for integer division
query I rowsort label-8936
SELECT 68 + tab1.col0 DIV col2 AS col0 FROM tab1
----
68
68
69

skipif mysql # not compatible
query I rowsort label-8936
SELECT 68 + tab1.col0 / col2 AS col0 FROM tab1
----
68
68
69

query I rowsort
SELECT tab0.col2 * - col2 + + ( col2 ) FROM tab0
----
-1056
-6642
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8938
SELECT - + col2 + CAST( col0 + - col0 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8938
SELECT - + col2 + CAST ( col0 + - col0 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1
33
82

query I rowsort
SELECT ALL + + 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8941
SELECT + + col2 + col0 DIV + ( col0 ) AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8941
SELECT + + col2 + col0 / + ( col0 ) AS col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL - 57 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
232
3424
904

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8943
SELECT DISTINCT - col0 * CAST( - 85 * - col1 AS SIGNED ) FROM tab1
----
-54400
-6630
-88400

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT - col0 * CAST ( - 85 * - col1 AS INTEGER ) FROM tab1
----
-54400
-6630
-88400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col0 * col1 + - tab2.col2 AS col0 FROM tab2
----
1305
190
4576

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23

query I rowsort
SELECT DISTINCT col2 * + 50 AS col0 FROM tab0
----
1650
4100
50

query I rowsort
SELECT ALL + 80 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0, tab1, tab1 AS cor0
----
24
35
89

query I rowsort
SELECT - tab1.col1 * - 39 + col1 FROM tab1
----
1040
400
520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8951
SELECT CAST( - col0 AS SIGNED ) + col2 FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-8951
SELECT CAST ( - col0 AS INTEGER ) + col2 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-8952
SELECT + cor0.col1 + - cor0.col0 DIV 46 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e3de0e1c269aee29ebeb63fbb233254f

skipif mysql # not compatible
query I rowsort label-8952
SELECT + cor0.col1 + - cor0.col0 / 46 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e3de0e1c269aee29ebeb63fbb233254f

query I rowsort
SELECT ALL cor0.col0 * + col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL - ( - 35 ) * col2 FROM tab1 cor0
----
1890
1995
3360

query I rowsort
SELECT DISTINCT - col1 * - 41 AS col0 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT + - cor0.col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 80 - + col1 col1 FROM tab0 AS cor0
----
-100
-30
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8958
SELECT DISTINCT - col2 DIV ( + col1 * col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT - col2 / ( + col1 * col2 ) FROM tab1
----
0

query I rowsort
SELECT ( 17 ) * col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1081
368
534

query I rowsort
SELECT ALL - 93 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT + col2 * - col0 * + col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - ( 61 ) * + col2 FROM tab2 AS cor0
----
-1586
-1647
-2318

query I rowsort
SELECT DISTINCT - 24 * col1 AS col0 FROM tab1
----
-240
-312
-624

query I rowsort
SELECT - - 82 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
13858
55432
8200

query I rowsort
SELECT col1 * + col0 * col1 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT col2 * cor0.col1 + + 41 FROM tab2 AS cor0
----
1575
687
878

query I rowsort
SELECT DISTINCT - col2 * + col1 + 76 AS col1 FROM tab0 AS cor0
----
-21
-2762
-7386

query I rowsort
SELECT ALL + col0 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col1 + - col2 + - col2 * - col2 FROM tab0 cor0
----
1142
6733
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8970
SELECT col0 - + col1 DIV - col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-8970
SELECT col0 - + col1 / - col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT + col2 * + col0 + + 36 * + cor0.col2 FROM tab2 AS cor0
----
1161
2964
4370

onlyif mysql # use DIV operator for integer division
query I rowsort label-8972
SELECT 41 DIV col0 + cor0.col1 * ( - col1 ) + col1 FROM tab2 AS cor0
----
-272
-3422
-925

skipif mysql # not compatible
query I rowsort label-8972
SELECT 41 / col0 + cor0.col1 * ( - col1 ) + col1 FROM tab2 AS cor0
----
-272
-3422
-925

query I rowsort
SELECT col1 * cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT DISTINCT + col2 DIV + 22 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + col2 / + 22 AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL cor0.col0 * col1 + - col1 AS col2 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT - col1 * col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT ALL + - col0 - + ( col1 ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL - + col0 * - col2 + 48 * col1 FROM tab1 cor0
----
1410
4128
8304

query I rowsort
SELECT + - col2 + + 48 AS col2 FROM tab2 AS cor0
----
10
21
22

query I rowsort
SELECT DISTINCT 61 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8981
SELECT ALL - CAST( - cor0.col0 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - CAST ( - cor0.col0 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + col0 * 65 + - col2 * tab1.col1 AS col0 FROM tab1
----
-1209
3590
3952

query I rowsort
SELECT + col0 - col1 * + ( col2 ) FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col2 + + col2 * 7 FROM tab1
----
432
456
768

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * - col0 FROM tab1
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8986
SELECT ALL + col1 * col0 * + CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15265344
31943555
67067819

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + col1 * col0 * + CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15265344
31943555
67067819

query I rowsort
SELECT - col0 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - col2 * + 41 * col0 FROM tab0
----
-1435
-299218
-32472

query I rowsort
SELECT - col0 * + col0 - - tab1.col1 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ( - col1 ) * col0 * + tab1.col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT ( col1 * col0 ) - - col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT cor0.col2 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + + 46 + cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1294
1450
616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 - ( - col0 ) col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col0 + + col1 * + 98 FROM tab1 AS cor0
----
1194
2545
916

onlyif mysql # use DIV operator for integer division
query I rowsort label-8996
SELECT ALL col0 * col2 - ( col2 + col2 ) DIV col1 FROM tab0 AS cor0
----
35
7297
792

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL col0 * col2 - ( col2 + col2 ) / col1 FROM tab0 AS cor0
----
35
7297
792

query I rowsort
SELECT + - col0 * cor0.col0 + + col2 * col1 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT + + col1 * col1 + 80 * cor0.col1 FROM tab2 cor0
----
1649
3441
8201

query I rowsort
SELECT + col1 + - col1 * col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT - col0 * + tab1.col1 + col1 + 39 * col0 AS col0 FROM tab1
----
1866
2093
65

query I rowsort
SELECT ALL 56 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL col0 + + col1 + + col2 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-9003
SELECT - + col0 * + col2 + + 84 DIV 13 FROM tab2 cor0
----
-183
-2022
-2996

skipif mysql # not compatible
query I rowsort label-9003
SELECT - + col0 * + col2 + + 84 / 13 FROM tab2 cor0
----
-183
-2022
-2996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 * col0 + - col1 col2 FROM tab1
----
-14
4150
6467

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ALL + - 99 + col1 AS col0 FROM tab2 AS cor0
----
-40
-68
-82

query I rowsort
SELECT cor0.col2 * col0 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL + + col0 + - 19 * + col1 FROM tab1 AS cor0
----
-126
-167
-491

query I rowsort
SELECT - + cor0.col1 * + 48 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
-1239
3616
5776

query I rowsort
SELECT ALL - col1 + 89 * + 1 FROM tab0 cor0
----
-2
-8
3

query I rowsort
SELECT DISTINCT cor0.col1 * 73 AS col0 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT ALL - cor0.col2 + - 65 AS col1 FROM tab2 AS cor0
----
-103
-91
-92

query I rowsort
SELECT + - col1 + + col0 * ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL + + col2 - 40 FROM tab0 AS cor0
----
-39
-7
42

query I rowsort
SELECT - col0 * + col2 * - 94 AS col1 FROM tab1 AS cor0
----
15228
342912
721920

query I rowsort
SELECT - cor0.col2 * - ( - ( col1 ) ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + - cor0.col2 + 34 * 2 AS col0 FROM tab2 AS cor0
----
30
41
42

query I rowsort
SELECT - col2 * - col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-9019
SELECT ALL col2 * col1 DIV + cor0.col0 FROM tab0 cor0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL col2 * col1 / + cor0.col0 FROM tab0 cor0
----
118
2
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9020
SELECT - col1 + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-9020
SELECT - col1 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL 56 + + col2 AS col1 FROM tab2
----
82
83
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 + - col0 col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT 2 + + col2 AS col1 FROM tab1
----
56
59
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * col1 + + col0 * + tab0.col1 col2 FROM tab0
----
12103
5848
7663

query I rowsort
SELECT 58 + + col2 AS col0 FROM tab0
----
140
59
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT ALL + col2 DIV - ( - col0 ) + col2 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL + col2 / - ( - col0 ) + col2 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + + col0 * col2 + col1 * - cor0.col1 + + 60 AS col2 FROM tab2 AS cor0
----
-1393
-712
2773

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9029
SELECT - col0 + - CAST( - col2 + col2 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-9029
SELECT - col0 + - CAST ( - col2 + col2 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - + 97 col2 FROM tab2 AS cor0
----
-59
-70
-71

query I rowsort
SELECT ALL + ( + col1 ) + col0 * 70 * 61 FROM tab2 AS cor0
----
29921
333119
337347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9032
SELECT ALL CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - 45 + col2 AS col2 FROM tab0 AS cor0
----
-12
-44
37

query I rowsort
SELECT ALL - col2 + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL col2 + + col2 + col1 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ALL + 8 AS col0 FROM tab0 cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) * col1 + - col2 col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL col1 * + 62 FROM tab0 AS cor0
----
5332
5642
6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT DISTINCT + 20 * + col0 + col1 * col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
1871
566
797

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT + 20 * + col0 + col1 * col2 / + col2 AS col2 FROM tab0 AS cor0
----
1871
566
797

onlyif mysql # use DIV operator for integer division
query I rowsort label-9040
SELECT 32 DIV + 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT 32 / + 90 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9041
SELECT ALL - CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + - ( col0 ) + 40 * col2 AS col2 FROM tab0 AS cor0
----
1296
3191
5

query I rowsort
SELECT + 20 * col1 - col0 AS col0 FROM tab0 AS cor0
----
1696
1731
1905

onlyif mysql # use DIV operator for integer division
query I rowsort label-9044
SELECT DISTINCT + col1 DIV col1 + ( 74 ) * col1 * 34 FROM tab2 AS cor0
----
148445
42773
77997

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + col1 / col1 + ( 74 ) * col1 * 34 FROM tab2 AS cor0
----
148445
42773
77997

query I rowsort
SELECT ALL ( col1 ) - col2 * - 9 AS col2 FROM tab0
----
106
383
829

query I rowsort
SELECT - 80 AS col0 FROM tab0, tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9048
SELECT - col2 * cor0.col1 DIV - col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9048
SELECT - col2 * cor0.col1 / - col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9049
SELECT ALL col2 * + col2 DIV col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL col2 * + col2 / col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9050
SELECT col1 + - col1 * col0 DIV col1 + + col1 col2 FROM tab1 AS cor0
----
-44
-54
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9050
SELECT col1 + - col1 * col0 / col1 + + col1 col2 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT tab2.col2 * tab2.col1 * tab2.col2 + col1 AS col0 FROM tab2
----
22630
24565
39943

query I rowsort
SELECT + col1 * + col2 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 14 + - col1 AS col2 FROM tab0 AS cor0
----
-72
-77
-83

query I rowsort
SELECT ALL + 62 + - col1 AS col0 FROM tab1 cor0
----
36
49
52

query I rowsort
SELECT - - 15 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
115
184
691

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT col1 + col1 * col0 + + col2 AS col2 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT - ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + + col1 + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col0 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT - 95 * + col0 + cor0.col0 * col0 * col0 FROM tab2 AS cor0
----
-322
467142
485534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col0 col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col0 + col2 * - tab1.col1 * col0 AS col0 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT ALL 45 * col0 FROM tab1
----
135
2880
3600

query I rowsort
SELECT col2 * + col0 * col1 - - col0 * col0 FROM tab1
----
106240
40576
4221

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + tab2.col0 )
----

query I rowsort
SELECT - col0 + - col1 * tab0.col2 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col2 + col1 IN ( + col0 )
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9071
SELECT + col2 * - col1 * + col2 + col0 * - col2 * col1 - - col2 DIV + col1 FROM tab2
----
-159536
-28458
-75580

skipif mysql # not compatible
query I rowsort label-9071
SELECT + col2 * - col1 * + col2 + col0 * - col2 * col1 - - col2 / + col1 FROM tab2
----
-159536
-28458
-75580

query I rowsort
SELECT - tab2.col2 + - col1 * tab2.col2 AS col1 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT + col2 * - col2 * - col1 + - tab1.col2 FROM tab1
----
119712
32433
75762

query I rowsort
SELECT ALL col1 + - col2 * - col0 FROM tab2
----
2087
220
3019

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col0 * col0 - col1 AS col2 FROM tab2
----
18
6025
6224

query I rowsort
SELECT col0 * col0 + tab1.col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE ( NULL ) IN ( - col2 / + tab2.col1 )
----

query I rowsort
SELECT ALL + col2 * tab0.col1 * + col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT + col1 + tab1.col0 / col1 AS col0 FROM tab1 WHERE ( col2 * - col2 / + col1 + + col1 + tab1.col0 ) <> NULL
----

query I rowsort
SELECT + col1 + col0 * - col2 + col0 FROM tab2
----
-151
-1891
-2906

onlyif mysql # use DIV operator for integer division
query I rowsort label-9082
SELECT + tab0.col1 DIV tab0.col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9082
SELECT + tab0.col1 / tab0.col2 FROM tab0
----
1
2
97

query I rowsort
SELECT + col2 + + col0 + tab2.col0 * - col0 * col2 AS col2 FROM tab2
----
-1289
-158080
-237041

query I rowsort
SELECT + col2 FROM tab2 WHERE col1 <> col2
----
26
27
38

query I rowsort
SELECT DISTINCT - + col1 - cor0.col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT col1 * - col1 * col2 - + col0 FROM tab2
----
-11061
-25954
-90584

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IN ( + col0 )
----

query I rowsort
SELECT ALL + col2 * + tab0.col1 + + col1 * - tab0.col0 * tab0.col0 + - col0 AS col1 FROM tab0
----
-118763
-46722
-713438

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - cor0.col1 / - col2 )
----

query I rowsort
SELECT + col1 - - cor0.col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + col2 + + col2 * cor0.col2 FROM tab2 AS cor0
----
1482
702
756

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - - 25 + col0 FROM tab1 AS cor0
----
105
28
89

query I rowsort
SELECT 45 * - col0 AS col0 FROM tab0 cor0
----
-1080
-1575
-4005

query I rowsort
SELECT DISTINCT - col0 * tab0.col1 + + tab0.col0 * col0 + tab0.col0 FROM tab0
----
-1464
-2135
-89

query I rowsort
SELECT ALL 93 * col2 AS col2 FROM tab2 AS cor0
----
2418
2511
3534

query I rowsort
SELECT - + ( cor0.col1 ) * - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - ( - cor0.col2 ) + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9099
SELECT col1 DIV col0 + - cor0.col2 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
36480
4220
99840

skipif mysql # not compatible
query I rowsort label-9099
SELECT col1 / col0 + - cor0.col2 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
36480
4220
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9100
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + ( col0 ) - + col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - - col0 + cor0.col0 * + col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + col2 * + col0 * - 81 AS col1 FROM tab2 AS cor0
----
-15309
-164268
-243162

query I rowsort
SELECT 45 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 * 92 + - 20 * - col0 * - col0 FROM tab1
----
14724
253696
578560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - cor0.col2 + - 81 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1f56a5f7a710079d03d69dee65398848

query I rowsort
SELECT ( col1 ) * col1 * - col1 - - tab1.col0 AS col0 FROM tab1
----
-17573
-2117
-936

query I rowsort
SELECT DISTINCT col0 + - 27 FROM tab0 AS cor0
----
-3
62
8

query I rowsort
SELECT - col2 + ( + ( col2 ) + - col0 ) * + 88 AS col0 FROM tab0 AS cor0
----
-2993
-698
759

query I rowsort
SELECT col0 * + ( col0 ) AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 AS col0 FROM tab1 cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-9113
SELECT + + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9113
SELECT + + col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 * col1 + - cor0.col1 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-9115
SELECT DISTINCT - col0 - ( col1 ) DIV col0 AS col2 FROM tab2
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - col0 - ( col1 ) / col0 AS col2 FROM tab2
----
-11
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 24 col2 FROM tab2 AS cor0
----
-35
-7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9117
SELECT - 48 + - ( - col0 ) DIV - 14 FROM tab1 AS cor0
----
-48
-52
-53

skipif mysql # not compatible
query I rowsort label-9117
SELECT - 48 + - ( - col0 ) / - 14 FROM tab1 AS cor0
----
-48
-52
-53

query I rowsort
SELECT ALL - 50 * 40 FROM tab1 AS cor0
----
-2000
-2000
-2000

query I rowsort
SELECT ALL col0 * 11 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT DISTINCT - col0 * - col0 - + col0 AS col2 FROM tab2
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 + col0 col1 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-9122
SELECT DISTINCT - tab0.col2 * col1 * col0 + - col1 DIV col1 FROM tab0
----
-3396
-664119
-68113

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - tab0.col2 * col1 * col0 + - col1 / col1 FROM tab0
----
-3396
-664119
-68113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9123
SELECT col1 * + CAST( NULL AS DECIMAL ) + + col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT col1 * + CAST ( NULL AS REAL ) + + col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 98 ) FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + col1 + + col1 * col1 - col2 * + col1 FROM tab1
----
-1066
-460
-702

query I rowsort
SELECT tab0.col2 + col2 * col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - 19 + col1 FROM tab2 cor0
----
-2
12
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT DISTINCT cor0.col2 DIV + col2 + + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT cor0.col2 / + col2 + + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + col2 * - 50 + col0 FROM tab1 AS cor0
----
-2697
-2786
-4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-9130
SELECT 83 + - col1 DIV + cor0.col1 col2 FROM tab0 cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9130
SELECT 83 + - col1 / + cor0.col1 col2 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT ALL 86 * col0 * + col1 + col2 AS col1 FROM tab2
----
115536
18689
395798

query I rowsort
SELECT DISTINCT col1 + - ( col0 ) FROM tab0
----
2
62

query I rowsort
SELECT ALL - 71 + 28 AS col2 FROM tab0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-9134
SELECT + 85 DIV 79 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9134
SELECT + 85 / 79 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL ( + 63 ) * col0 * - col1 + col1 AS col2 FROM tab0
----
-129946
-213788
-510146

query I rowsort
SELECT ALL - col2 + - ( - col0 + col2 ) * col0 FROM tab0
----
-249
1189
541

query I rowsort
SELECT ALL - col1 + + 50 * + col2 AS col1 FROM tab2 AS cor0
----
1241
1319
1883

query I rowsort
SELECT DISTINCT + col2 * col0 + - col1 * col0 FROM tab0 cor0
----
-1272
-3360
-801

query I rowsort
SELECT - ( - col1 ) * col2 + col1 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
-633218
-746109
-912576

query I rowsort
SELECT ALL 58 AS col0 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9141
SELECT CAST( - col2 AS SIGNED ) + - col2 * + cor0.col1 + - col2 * - col0 FROM tab0 AS cor0
----
-2079
-246
-63

skipif mysql # not compatible
query I rowsort label-9141
SELECT CAST ( - col2 AS INTEGER ) + - col2 * + cor0.col1 + - col2 * - col0 FROM tab0 AS cor0
----
-2079
-246
-63

query I rowsort
SELECT DISTINCT + ( + tab1.col0 + tab1.col2 ) * tab1.col0 FROM tab1
----
14080
171
7744

query I rowsort
SELECT ALL + 60 * col2 FROM tab0
----
1980
4920
60

query I rowsort
SELECT + + col1 * + col0 * - 92 FROM tab2 AS cor0
----
-123556
-19964
-423384

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) - - col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 AS col1 FROM tab0 cor0
----
-2
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9147
SELECT + CAST( + 4 AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

skipif mysql # not compatible
query I rowsort label-9147
SELECT + CAST ( + 4 AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT ALL col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9149
SELECT DISTINCT col1 + - CAST( col2 AS SIGNED ) * + col1 FROM tab2 cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT col1 + - CAST ( col2 AS INTEGER ) * + col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - + col1 * - 42 AS col2 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT ALL col0 * + col2 + - 35 FROM tab0 AS cor0
----
0
7263
757

query I rowsort
SELECT DISTINCT - - col1 * ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + tab2.col2 * + col1 + col0 AS col1 FROM tab2
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( 33 ) col1 FROM tab1 AS cor0
----
129
87
90

query I rowsort
SELECT DISTINCT col2 * + 20 + + col0 AS col1 FROM tab1 AS cor0
----
1083
1204
2000

query I rowsort
SELECT DISTINCT col0 * ( - 82 ) - - col1 * col0 AS col2 FROM tab0 AS cor0
----
525
801
96

query I rowsort
SELECT - col1 * 86 * col0 FROM tab2 AS cor0
----
-115498
-18662
-395772

query I rowsort
SELECT + - col1 * + 27 AS col2 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT - - cor0.col1 + 16 * - 90 * cor0.col1 FROM tab1 AS cor0
----
-14390
-18707
-37414

query I rowsort
SELECT ALL cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL col1 * - 17 + col0 FROM tab0 cor0
----
-1438
-1458
-1614

query I rowsort
SELECT ALL - col2 * 9 + 31 FROM tab1 AS cor0
----
-455
-482
-833

query I rowsort
SELECT + 91 * tab2.col1 + col2 FROM tab2
----
1585
2848
5395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9164
SELECT - col1 * cor0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT - col1 * cor0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 67 * - col1 AS col0 FROM tab1
----
1742
670
871

query I rowsort
SELECT DISTINCT + col2 * 88 + col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT ALL + - col1 + 57 * col2 FROM tab0 AS cor0
----
-40
1795
4583

onlyif mysql # use DIV operator for integer division
query I rowsort label-9168
SELECT ALL col1 DIV - CAST( + ( - col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL col1 / - CAST ( + ( - col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 * + 55 AS col2 FROM tab2 cor0
----
-1705
-3245
-935

query I rowsort
SELECT col1 + - col1 * 71 FROM tab2 AS cor0
----
-1190
-2170
-4130

query I rowsort
SELECT col1 * col1 * col2 + + col2 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT - + col0 * ( col0 * + cor0.col1 ) FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - 4 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT ( ( col1 ) ) + + col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-9175
SELECT ALL col1 DIV col0 AS col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL col1 / col0 AS col0 FROM tab0 cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9176
SELECT - + CAST( NULL AS DECIMAL ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT - + CAST ( NULL AS REAL ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 28 + 69 FROM tab0
----
41

query I rowsort
SELECT 40 + + ( + col2 ) AS col2 FROM tab0
----
122
41
73

query I rowsort
SELECT + + ( col2 ) - + col0 * + ( + cor0.col0 ) FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + - col2 * 71 + col1 - col1 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
2550
5139
9435

onlyif mysql # use DIV operator for integer division
query I rowsort label-9181
SELECT 20 - - col0 DIV + col0 FROM tab1 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-9181
SELECT 20 - - col0 / + col0 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT + col1 + col0 * 42 FROM tab1 AS cor0
----
152
2698
3373

query I rowsort
SELECT cor0.col1 + - cor0.col0 - col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 16 * - col2 col0 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT col1 - + col2 * - 26 AS col2 FROM tab2 AS cor0
----
1005
733
735

query I rowsort
SELECT - - ( - col1 ) * ( cor0.col1 * + col1 + col0 ) AS col2 FROM tab1 AS cor0
----
-1640
-17654
-3237

query I rowsort
SELECT - + col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9188
SELECT + col2 DIV + col2 + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9188
SELECT + col2 / + col2 + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + 39 + col1 FROM tab0 AS cor0
----
125
130
136

query I rowsort
SELECT ALL - col0 + + col2 * col0 AS col1 FROM tab0
----
0
7209
768

query I rowsort
SELECT + - col1 * col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT - - cor0.col0 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-9193
SELECT - 95 DIV + col1 AS col1 FROM tab2 cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-9193
SELECT - 95 / + col1 AS col1 FROM tab2 cor0
----
-1
-3
-5

query I rowsort
SELECT 15 * col0 + ( col1 ) - col0 AS col0 FROM tab0 AS cor0
----
1337
422
587

query I rowsort
SELECT DISTINCT col2 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + 51 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab0, tab2 AS cor0
----
98

query I rowsort
SELECT ALL - ( - tab2.col1 ) + + col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - + ( 2 ) AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + tab0.col2 - + col2 FROM tab0
----
0

query I rowsort
SELECT col1 * + 29 * col0 AS col2 FROM tab1 cor0
----
18560
2262
30160

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 16 col0 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT - 74 + + 97 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT - ( - col0 ) + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - 54 * cor0.col2 + - col2 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT + ( + col2 ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + 56 + + col1 - col0 * - 99 AS col2 FROM tab2 AS cor0
----
780
7837
7894

query I rowsort
SELECT ALL - col0 * - 63 - col2 FROM tab1 AS cor0
----
135
3975
4944

query I rowsort
SELECT col0 * col0 - + col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT 5 + - 89 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT col1 * + cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + + col1 * 12 - - cor0.col1 FROM tab1 cor0
----
130
169
338

onlyif mysql # use DIV operator for integer division
query I rowsort label-9215
SELECT - ( col2 ) * + col2 DIV col2 + 79 * col2 FROM tab0 AS cor0
----
2574
6396
78

skipif mysql # not compatible
query I rowsort label-9215
SELECT - ( col2 ) * + col2 / col2 + 79 * col2 FROM tab0 AS cor0
----
2574
6396
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9216
SELECT tab0.col1 + + col2 DIV - col0 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-9216
SELECT tab0.col1 + + col2 / - col0 FROM tab0
----
85
91
97

query I rowsort
SELECT col0 * + col2 - + tab0.col2 FROM tab0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-9218
SELECT DISTINCT + - col0 + - col2 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + - col0 + - col2 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-64
-79
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab1, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9220
SELECT 14 DIV col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9220
SELECT 14 / col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL col0 + - ( 0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + cor0.col2 + 48 AS col1 FROM tab0 cor0
----
130
49
81

query I rowsort
SELECT DISTINCT col2 * + ( - 67 ) + col1 FROM tab0 AS cor0
----
-2125
-5403
30

query I rowsort
SELECT ALL 97 * col2 FROM tab0
----
3201
7954
97

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col1 + ( + col1 ) FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col1 + - 19 FROM tab1 AS cor0
----
-6
-9
7

query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
-8

query I rowsort
SELECT ALL + 60 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT 81 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to dec8958dcbae2730e4a629faa86c7c01

query I rowsort
SELECT - + col0 * - ( - 13 + + col1 ) AS col2 FROM tab0 AS cor0
----
1752
2940
6942

query I rowsort
SELECT ALL + 44 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT 84 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT col0 + col1 * col0 * + col0 AS col2 FROM tab1
----
237
41024
83280

query I rowsort
SELECT + col1 + col2 * - col1 AS col0 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL 57 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9236
SELECT ALL - col0 DIV CAST( + 56 AS SIGNED ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL - col0 / CAST ( + 56 AS INTEGER ) FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL 80 + col1 AS col1 FROM tab0 AS cor0
----
166
171
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col1 + + 99 col1 FROM tab2 AS cor0
----
-1435
-547
-738

onlyif mysql # use DIV operator for integer division
query I rowsort label-9239
SELECT ALL col2 * - cor0.col1 * ( - col2 ) + col1 DIV 5 AS col0 FROM tab1 AS cor0
----
119810
32492
75821

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL col2 * - cor0.col1 * ( - col2 ) + col1 / 5 AS col0 FROM tab1 AS cor0
----
119810
32492
75821

query I rowsort
SELECT - 32 + 48 AS col2 FROM tab0
----
16
16
16

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) + - col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL col1 + 67 * tab2.col1 AS col2 FROM tab2
----
1156
2108
4012

query I rowsort
SELECT ALL 80 + + col1 * + col1 FROM tab2
----
1041
3561
369

query I rowsort
SELECT ALL - col0 * col1 - ( ( cor0.col2 ) ) FROM tab2 cor0
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9245
SELECT DISTINCT + col2 * col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + col2 * col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9247
SELECT ALL col2 + col0 DIV col1 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL col2 + col0 / col1 FROM tab2 AS cor0
----
27
27
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 - col2 * + col1 * - col2 col2 FROM tab2 cor0
----
22648
30789
45968

query I rowsort
SELECT col2 * - 62 FROM tab0
----
-2046
-5084
-62

query I rowsort
SELECT DISTINCT 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
98

query I rowsort
SELECT ALL - 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL - - cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 + 14 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-217
1105
3776

query I rowsort
SELECT col0 * col0 + + col2 * 35 AS col0 FROM tab1 AS cor0
----
1899
6091
9760

query I rowsort
SELECT ALL - col1 * col1 + + col2 AS col1 FROM tab1 cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + cor0.col2 * - 47 * - col1 col1 FROM tab0 AS cor0
----
133419
350796
4560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT DISTINCT col1 + col0 DIV ( - col1 ) FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT col1 + col0 / ( - col1 ) FROM tab2 AS cor0
----
13
31
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT ALL - - col1 + - col0 DIV col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - - col1 + - col0 / col1 FROM tab2 AS cor0
----
13
31
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9259
SELECT col1 + - col1 DIV 92 FROM tab0 AS cor0
----
86
91
96

skipif mysql # not compatible
query I rowsort label-9259
SELECT col1 + - col1 / 92 FROM tab0 AS cor0
----
86
91
96

query I rowsort
SELECT DISTINCT col2 * - col1 + col2 * col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9261
SELECT + CAST( NULL AS SIGNED ) * col1 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT + CAST ( NULL AS INTEGER ) * col1 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + + 66 FROM tab1 AS cor0
----
130
146
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-9263
SELECT + 49 - + col0 DIV + col0 FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-9263
SELECT + 49 - + col0 / + col0 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT + + cor0.col1 + + ( col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + + 76 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9266
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 50 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 50 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( 50 ) FROM tab0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col2 FROM tab0
----
1
1
1

query I rowsort
SELECT - ( + 79 ) * + col2 * col0 AS col0 FROM tab2
----
-14931
-160212
-237158

query I rowsort
SELECT ( col0 * col0 ) AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - - cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col0 * + col0 * col2 AS col0 FROM tab1 cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9273
SELECT ALL cor0.col1 DIV - 89 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL cor0.col1 / - 89 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col1 + - tab1.col1 * + col1 FROM tab1
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9275
SELECT ( + col2 ) DIV - tab0.col0 + col1 * - col0 FROM tab0
----
-2065
-3395
-8099

skipif mysql # not compatible
query I rowsort label-9275
SELECT ( + col2 ) / - tab0.col0 + col1 * - col0 FROM tab0
----
-2065
-3395
-8099

query I rowsort
SELECT - col2 + col1 * tab1.col0 AS col0 FROM tab1
----
24
583
944

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) FROM tab0, tab2 AS cor0, tab2 cor1
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col2 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab2, tab0, tab2 AS cor0, tab1
----
54
57
96

query I rowsort
SELECT - + cor1.col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL + - col1 + - 23 AS col1 FROM tab2 cor0
----
-40
-54
-82

query I rowsort
SELECT DISTINCT + col2 * - ( + ( col1 ) ) - + ( col2 ) FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + + col0 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + ( cor0.col0 ) * cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a8042fcd365197f4ce80520ccb46287c

query I rowsort
SELECT 38 + 18 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT col2 + 90 FROM tab1
----
144
147
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 38 col2 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT 78 + + 41 AS col0 FROM tab0 AS cor0
----
119
119
119

query I rowsort
SELECT - + 10 * - col2 + - col1 FROM tab2 AS cor0
----
201
239
363

query I rowsort
SELECT + col1 - - col1 * col0 AS col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - + cor0.col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 22 + + col0 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
7409
838
92

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) * + col0 + + 52 * - 44 AS col2 FROM tab2 AS cor0
----
-2477
-4316
-5290

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * + col1 - + ( cor0.col2 ) * - cor0.col0 FROM tab2 AS cor0
----
-117624
-48032
-5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + + col0 col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT + cor0.col2 * + 43 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT - 66 - + col0 FROM tab2 AS cor0
----
-144
-145
-73

query I rowsort
SELECT ALL + 14 * - col0 AS col2 FROM tab2 AS cor0
----
-1092
-1106
-98

query I rowsort
SELECT + ( cor0.col2 ) - - col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 51 + col0 AS col1 FROM tab1 AS cor0
----
115
131
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9301
SELECT ALL CAST( NULL AS SIGNED ) * - col2 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 62 + + cor0.col1 FROM tab0 AS cor0
----
148
153
159

query I rowsort
SELECT - - 6 AS col1 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT - - cor0.col1 * + col2 * + 2 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT - col1 + cor0.col1 + cor0.col2 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - 3 + - col1 + - col0 FROM tab1 AS cor0
----
-32
-77
-96

query I rowsort
SELECT + col2 * col2 + + col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT - col1 * + col1 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col0 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT - col2 + - ( ( - col0 ) ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + col2 + 18 FROM tab0 AS cor0
----
100
19
51

query I rowsort
SELECT DISTINCT - - col1 * col1 + - col1 + + col0 AS col1 FROM tab1 cor0
----
154
236
653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col1 + col0 col1 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT + - 39 * - col0 + + col0 AS col0 FROM tab1 cor0
----
120
2560
3200

query I rowsort
SELECT ALL 26 * col1 + + ( + 34 ) * col2 + 66 * col2 FROM tab2 AS cor0
----
3506
4134
4242

query I rowsort
SELECT ALL + col2 + col1 + + 94 AS col0 FROM tab1 AS cor0
----
161
174
203

query I rowsort
SELECT ALL + 12 + col2 FROM tab1 AS cor0
----
108
66
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col1 * - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9320
SELECT + CAST( NULL AS SIGNED ) - col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9320
SELECT + CAST ( NULL AS INTEGER ) - col2 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9321
SELECT CAST( 81 AS SIGNED ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

skipif mysql # not compatible
query I rowsort label-9321
SELECT CAST ( 81 AS INTEGER ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL + col2 - - col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - col0 * col2 - 93 * col2 * + col2 AS col1 FROM tab1
----
-271350
-305805
-864768

query I rowsort
SELECT DISTINCT col1 * cor0.col0 * + col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - col1 + + col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-29
-3
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9326
SELECT - col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT - col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col2 * - 98 + - cor0.col1 col1 FROM tab1 AS cor0
----
-122317
-137618
-55870

query I rowsort
SELECT 5 * col2 AS col0 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT ALL + + 80 AS col1 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - col0 * - tab1.col2 + + tab1.col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + col2 + 36 FROM tab2 AS cor0
----
62
63
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * + col0 col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT - ( col1 ) - - col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - + ( + cor0.col2 ) + cor0.col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - ( col0 + - tab2.col0 ) FROM tab2
----
0

query I rowsort
SELECT col2 + tab0.col0 * - col1 AS col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - col1 + col0 + col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col2 - col1 * + col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL ( - col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 0 + - col0 * col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9341
SELECT ALL CAST( NULL AS DECIMAL ) * cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL CAST ( NULL AS REAL ) * cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 45 - + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-4
-6039
-6196

query I rowsort
SELECT ALL + - 85 FROM tab2 cor0
----
-85
-85
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9344
SELECT + 19 * - 66 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT + 19 * - 66 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9345
SELECT col0 DIV - col1 + cor0.col0 * - 73 AS col0 FROM tab2 AS cor0
----
-511
-5695
-5771

skipif mysql # not compatible
query I rowsort label-9345
SELECT col0 / - col1 + cor0.col0 * - 73 AS col0 FROM tab2 AS cor0
----
-511
-5695
-5771

query I rowsort
SELECT ALL - ( - 19 ) AS col0 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT ALL cor0.col1 * - col1 * - col1 FROM tab2 cor0
----
205379
29791
4913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9348
SELECT CAST( col0 AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-9348
SELECT CAST ( col0 AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - ( col1 ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 86 + - col0 AS col0 FROM tab2 AS cor0
----
7
79
8

query I rowsort
SELECT - 13 + - 7 + - cor0.col2 AS col2 FROM tab2 cor0
----
-46
-47
-58

query I rowsort
SELECT ALL - 87 * col1 FROM tab0 AS cor0
----
-7482
-7917
-8439

query I rowsort
SELECT + cor0.col1 + + 98 AS col0 FROM tab2 AS cor0
----
115
129
157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9354
SELECT ALL - - ( + col0 ) * - col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - - ( + col0 ) * - col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 + col2 - col0 * + 7 * + col0 AS col0 FROM tab2 AS cor0
----
-289
-42536
-43611

onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT ALL + + col1 + + col0 DIV cor0.col2 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
29
75
93

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + + col1 + + col0 / cor0.col2 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
29
75
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
-33

query I rowsort
SELECT col0 + - ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT col0 + CAST( - col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-9359
SELECT col0 + CAST ( - col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT col1 + + ( + col0 + col0 ) * 44 FROM tab2 AS cor0
----
647
6923
6969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9361
SELECT cor0.col1 - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-9361
SELECT cor0.col1 - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - 92 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT col0 + ( col0 + col2 ) FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT ALL - col1 + ( + col0 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + cor0.col1 * - col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + 12 * 57 FROM tab1 AS cor0
----
684
684
684

query I rowsort
SELECT ALL col1 * col2 + - col0 * tab1.col1 AS col1 FROM tab1
----
-70
1326
208

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col1 + + 96 * + col0 * 60 AS col1 FROM tab2 AS cor0
----
40351
449339
455057

query I rowsort
SELECT - 81 * col2 AS col1 FROM tab1 AS cor0
----
-4374
-4617
-7776

query I rowsort
SELECT - col1 + 12 * col0 AS col0 FROM tab2 AS cor0
----
53
877
931

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9373
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 85 FROM tab2, tab0, tab2 cor0, tab1 cor1
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb

query I rowsort
SELECT ALL col0 + 75 AS col0 FROM tab2
----
153
154
82

query I rowsort
SELECT ALL 87 * + col0 FROM tab1
----
261
5568
6960

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
32

query I rowsort
SELECT - 73 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2843
3176
9143

query I rowsort
SELECT + col0 + - 83 - 20 AS col1 FROM tab2 AS cor0
----
-24
-25
-96

query I rowsort
SELECT - col2 + + 97 FROM tab1 cor0
----
1
40
43

query I rowsort
SELECT col0 * col0 + - col2 + 39 AS col1 FROM tab1
----
-6
4078
6343

query I rowsort
SELECT col2 * cor0.col0 + 88 - - col1 FROM tab1 AS cor0
----
276
3746
7781

query I rowsort
SELECT - col0 * 64 AS col2 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT + col2 + + 83 AS col2 FROM tab1 AS cor0
----
137
140
179

query I rowsort
SELECT + - col0 + col1 * col0 - col1 AS col2 FROM tab2 AS cor0
----
1247
179
4465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 + col1 * ( + 13 ) * col0 col1 FROM tab1
----
1032
13538
8338

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9387
SELECT DISTINCT + col2 * col0 + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + col2 * col0 + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 93 col1 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT + + 11 * col0 + col0 AS col2 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT col1 * 25 AS col2 FROM tab0
----
2150
2275
2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + - 92 * + ( + col0 + ( 48 ) ) col1 FROM tab2
----
-11514
-11605
-5053

query I rowsort
SELECT - col0 * ( 92 ) AS col1 FROM tab1
----
-276
-5888
-7360

onlyif mysql # use DIV operator for integer division
query I rowsort label-9394
SELECT + 90 DIV 19 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif mysql # not compatible
query I rowsort label-9394
SELECT + 90 / 19 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT + ( + col0 ) + col1 DIV - col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-9395
SELECT + ( + col0 ) + col1 / - col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL + - col0 * 41 FROM tab2 AS cor0
----
-287
-3198
-3239

query I rowsort
SELECT - - ( ( col2 ) ) * 86 + + 62 FROM tab2 AS cor0
----
2298
2384
3330

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col2 AS col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT ALL - col1 * col0 + + col1 * 78 DIV col0 FROM tab1 AS cor0
----
-1028
-628
598

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL - col1 * col0 + + col1 * 78 / col0 FROM tab1 AS cor0
----
-1028
-628
598

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL ( + col1 ) * - col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + - col1 * col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + 10 - col2 FROM tab2 cor0
----
-16
-17
-28

query I rowsort
SELECT ALL + - col2 * col1 + - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
-1
-2785
-7453

onlyif mysql # use DIV operator for integer division
query I rowsort label-9406
SELECT ALL - 1 DIV + cor0.col2 AS col1 FROM tab2, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - 1 / + cor0.col2 AS col1 FROM tab2, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT cor0.col2 * + 33 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fcc035ca0f30ddb72bcd54efe2440af

query I rowsort
SELECT + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col2 * - 32 FROM tab2
----
-1216
-832
-864

query I rowsort
SELECT - + col2 * - ( 82 * + col1 ) + - cor0.col2 FROM tab1 AS cor0
----
102240
115074
46683

query I rowsort
SELECT col1 * - col2 + ( - col2 + + col2 ) * - 14 FROM tab2 AS cor0
----
-1534
-646
-837

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2, tab2 cor3
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9

query I rowsort
SELECT cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT col1 * + col2 + + 81 AS col2 FROM tab1 AS cor0
----
1329
1485
651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9415
SELECT - + ( + ( + col2 ) ) / CAST( NULL AS DECIMAL ) + col1 * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT - + ( + ( + col2 ) ) / CAST ( NULL AS REAL ) + col1 * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9416
SELECT - + CAST( NULL AS SIGNED ) * col0 * col0 + - 58 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT - + CAST ( NULL AS INTEGER ) * col0 * col0 + - 58 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + col2 * + col0 col2 FROM tab0 AS cor0
----
69
7332
826

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 95 AS REAL ) * col2 * ( + col0 ) + col1 AS col0 FROM tab2 AS cor0
----
17986
192719
285207

query I rowsort
SELECT DISTINCT ( 52 ) AS col0 FROM tab2 AS cor0
----
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9420
SELECT ALL - cor0.col0 + - 98 DIV col2 AS col2 FROM tab0 AS cor0
----
-133
-26
-90

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - cor0.col0 + - 98 / col2 AS col2 FROM tab0 AS cor0
----
-133
-26
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9421
SELECT ALL + - cor0.col2 * - CAST( col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL + - cor0.col2 * - CAST ( col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + - col2 * + 66 + - col0 AS col2 FROM tab1 cor0
----
-3567
-3826
-6416

query I rowsort
SELECT ALL col0 + 17 FROM tab2 AS cor0
----
24
95
96

query I rowsort
SELECT DISTINCT - col0 + ( 59 ) * - col2 FROM tab2 cor0
----
-1600
-1612
-2321

query I rowsort
SELECT ALL col1 + ( + col1 ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT tab2.col2 * - col2 * - col1 AS col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT col2 * + tab1.col2 * - col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL + + col1 * - col2 + - 78 * col0 + col2 FROM tab1 AS cor0
----
-1584
-5505
-7392

onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT DISTINCT col1 DIV 47 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT col1 / 47 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - 36 + 80 AS col1 FROM tab1 AS cor0
----
-2224
-28
-2800

query I rowsort
SELECT DISTINCT - col2 + 99 AS col1 FROM tab1 AS cor0
----
3
42
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9432
SELECT ALL - col0 * CAST( - 64 AS SIGNED ) FROM tab1 AS cor0
----
192
4096
5120

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - col0 * CAST ( - 64 AS INTEGER ) FROM tab1 AS cor0
----
192
4096
5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-9433
SELECT ALL - 52 DIV + col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - 52 / + col1 FROM tab1 AS cor0
----
-2
-4
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9434
SELECT ALL col0 DIV + tab1.col0 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL col0 / + tab1.col0 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - + col1 - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9436
SELECT DISTINCT - col1 DIV + col1 + col2 DIV - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT - col1 / + col1 + col2 / - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT + col0 * col0 + 72 * + col0 FROM tab1 AS cor0
----
12160
225
8704

query I rowsort
SELECT - col1 * + col2 - ( + 92 ) FROM tab0 AS cor0
----
-189
-2930
-7554

onlyif mysql # use DIV operator for integer division
query I rowsort label-9439
SELECT ALL - col2 DIV col0 - - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-964

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - col2 / col0 - - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col0 + + col2 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - - col0 + - col0 * - 81 AS col2 FROM tab0 AS cor0
----
1968
2870
7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-9442
SELECT + 25 * cor0.col0 * - cor0.col2 + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-191999
-4032
-91200

skipif mysql # not compatible
query I rowsort label-9442
SELECT + 25 * cor0.col0 * - cor0.col2 + col2 / + col0 AS col0 FROM tab1 AS cor0
----
-191999
-4032
-91200

query I rowsort
SELECT ALL - 53 - - tab2.col1 * + tab2.col0 AS col2 FROM tab2
----
1290
164
4549

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9445
SELECT ALL + col2 * col0 + 7 DIV + col2 AS col0 FROM tab0
----
42
7298
792

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + col2 * col0 + 7 / + col2 AS col0 FROM tab0
----
42
7298
792

query I rowsort
SELECT + col0 * - cor0.col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL cor0.col1 + - col1 * + cor0.col2 + col2 FROM tab0 cor0
----
-2719
-7289
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL ( 56 ) + cor0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f9585036fb7f15e0af088852980fc4f8

query I rowsort
SELECT 43 + col2 + col2 AS col2 FROM tab0 AS cor0
----
109
207
45

query I rowsort
SELECT ALL - - 86 * + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 48353a017d97b2081d647cf6a38028cd

query I rowsort
SELECT - + col1 * + ( - cor0.col0 ) * + col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT - 47 + col2 FROM tab1
----
10
49
7

query I rowsort
SELECT ALL - - col2 * col1 + - 97 - + 88 * - col0 AS col1 FROM tab2 cor0
----
1356
7501
8301

query I rowsort
SELECT - 75 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT + - col1 * - col0 + 56 AS col2 FROM tab0 AS cor0
----
2120
3451
8155

query I rowsort
SELECT ALL + + col2 * - ( ( col0 ) + - 37 ) FROM tab2 AS cor0
----
-1066
-1596
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + + 79 col2 FROM tab0 cor0
----
103
114
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT + tab0.col2 * + 14 FROM tab0
----
1148
14
462

query I rowsort
SELECT - + col0 * + 53 FROM tab2 AS cor0
----
-371
-4134
-4187

query I rowsort
SELECT ALL cor0.col2 * - col0 + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9463
SELECT ALL + + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 77 AS col2 FROM tab2
----
103
104
115

query I rowsort
SELECT 6 * + 23 FROM tab1 cor0
----
138
138
138

query I rowsort
SELECT DISTINCT col0 * col0 * col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT DISTINCT + - 57 DIV col0 FROM tab2 cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT + - 57 / col0 FROM tab2 cor0
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + - col0 + + cor0.col2 * col2 AS col2 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT + col0 * cor0.col2 * - col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT 24 FROM tab1, tab0 AS cor0
----
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-9472
SELECT - ( col2 ) * + col2 + - ( col0 ) * col0 - col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-6761
-7689
-778

skipif mysql # not compatible
query I rowsort label-9472
SELECT - ( col2 ) * + col2 + - ( col0 ) * col0 - col0 / + col1 AS col2 FROM tab2 AS cor0
----
-6761
-7689
-778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9473
SELECT col0 + - col2 + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT col0 + - col2 + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * - col2 col2 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT ALL col1 + col1 * + col1 AS col2 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT ALL col2 + cor0.col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - ( cor0.col2 ) - + col2 * col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL + 83 + col0 AS col1 FROM tab1 AS cor0
----
147
163
86

query I rowsort
SELECT DISTINCT ( col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col0 + - cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
156
3520
7520

query I rowsort
SELECT ALL - + 48 AS col0 FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + 1 - col2 * col2 AS col0 FROM tab1
----
-2915
-3248
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * col2 + + col1 + - col0 col2 FROM tab1 AS cor0
----
4073
4221
7133

query I rowsort
SELECT - 34 * - col0 FROM tab2
----
238
2652
2686

query I rowsort
SELECT ALL + ( col0 * col1 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT + ( + col2 ) + + 88 FROM tab2 AS cor0
----
114
115
126

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * 78 AS col2 FROM tab0 AS cor0
----
-1183
-1843
-688

query I rowsort
SELECT ALL + - 41 + col2 AS col2 FROM tab1 AS cor0
----
13
16
55

query I rowsort
SELECT col0 * + 52 FROM tab2
----
364
4056
4108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col0 col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9491
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT + 49 FROM tab1, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL + col1 * ( + tab2.col0 ) AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + col0 * + 86 - - col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
11310
8137
819

query I rowsort
SELECT + + cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT - cor0.col0 DIV - col0 + col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-9496
SELECT - cor0.col0 / - col0 + col1 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT + col2 * + 35 + + cor0.col2 FROM tab2 cor0
----
1368
936
972

query I rowsort
SELECT 11 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT + + 14 * col1 FROM tab0 cor0
----
1204
1274
1358

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9500
SELECT CAST( NULL AS SIGNED ) + 33 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-9500
SELECT CAST ( NULL AS INTEGER ) + 33 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 19 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + + col0 * 91 * col1 FROM tab2 AS cor0
----
122213
19747
418782

query I rowsort
SELECT - 13 + 65 FROM tab0 cor0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT - col1 DIV 32 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9504
SELECT - col1 / 32 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col2 * 84 AS col0 FROM tab0
----
2772
6888
84

query I rowsort
SELECT + - cor0.col1 + ( - col1 + + 93 ) AS col0 FROM tab1 AS cor0
----
41
67
73

query I rowsort
SELECT ALL - - ( + 2 ) + - col2 + cor0.col1 FROM tab0 AS cor0
----
11
55
98

query I rowsort
SELECT DISTINCT ( + 40 ) + tab0.col2 AS col0 FROM tab0
----
122
41
73

query I rowsort
SELECT 79 + + col1 * cor0.col1 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
1047
3638
447

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9510
SELECT + CAST( NULL AS SIGNED ) * - cor0.col0 * col0 - + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT + CAST ( NULL AS INTEGER ) * - cor0.col0 * col0 - + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 55 * col0 AS col2 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT DISTINCT + 4 * col0 + + col0 * - 66 AS col0 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT + col1 + + col1 * col1 * col1 AS col1 FROM tab1 AS cor0
----
1010
17602
2210

query I rowsort
SELECT ALL ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 31 * - col0 AS col0 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT DISTINCT - + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - - col1 * col0 * 81 FROM tab0 cor0
----
167184
274995
656019

query I rowsort
SELECT ALL - + 85 * + col1 FROM tab0 AS cor0
----
-7310
-7735
-8245

query I rowsort
SELECT col0 + - col1 * 94 FROM tab2 AS cor0
----
-1519
-2907
-5468

query I rowsort
SELECT ALL col1 + 72 FROM tab2
----
103
131
89

query I rowsort
SELECT ( col0 * col0 ) AS col1 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-9522
SELECT col0 * - col0 * - tab0.col2 - 69 DIV col0 FROM tab0
----
1224
19006
649522

skipif mysql # not compatible
query I rowsort label-9522
SELECT col0 * - col0 * - tab0.col2 - 69 / col0 FROM tab0
----
1224
19006
649522

query I rowsort
SELECT ALL col2 * col0 + - 73 * col0 AS col0 FROM tab1 AS cor0
----
-1024
-57
1840

query I rowsort
SELECT col0 * + 53 + col0 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT DISTINCT + col1 * - ( cor0.col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - - cor0.col1 + + 81 AS col0 FROM tab0 AS cor0
----
167
172
178

query I rowsort
SELECT ALL col0 + + ( - col1 ) FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9528
SELECT col0 * + CAST( + col0 AS SIGNED ) + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-1280
-153
448

skipif mysql # not compatible
query I rowsort label-9528
SELECT col0 * + CAST ( + col0 AS INTEGER ) + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT ALL col0 * + 39 AS col0 FROM tab1 cor0
----
117
2496
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab1
----
23
23
23

query I rowsort
SELECT ALL - col1 * - ( 18 * + col0 ) - + col1 AS col0 FROM tab2
----
24157
3875
82777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + - col2 col1 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT col1 + - 97 AS col0 FROM tab1 AS cor0
----
-71
-84
-87

query I rowsort
SELECT ALL col0 - 18 * col0 FROM tab1
----
-1088
-1360
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT + + col0 * cor0.col0 * col1 + + col2 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
252
40960
83201

skipif mysql # not compatible
query I rowsort label-9535
SELECT + + col0 * cor0.col0 * col1 + + col2 / cor0.col0 AS col0 FROM tab1 AS cor0
----
252
40960
83201

query I rowsort
SELECT + col2 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL + 43 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT - 11 * col1 + col2 AS col1 FROM tab2
----
-149
-314
-623

query I rowsort
SELECT DISTINCT col1 * + col2 + + 29 * col1 * col0 FROM tab0
----
242333
62694
98552

query I rowsort
SELECT ALL 64 + col0 AS col1 FROM tab1
----
128
144
67

query I rowsort
SELECT ALL + + 18 * + col0 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT ALL + col2 * cor0.col1 - - 38 FROM tab0 AS cor0
----
135
2876
7500

query I rowsort
SELECT + col2 * + cor0.col2 + col1 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9544
SELECT ALL - + 52 * + col2 + 55 DIV - col0 - col0 * + col0 AS col0 FROM tab2 cor0
----
-1460
-7436
-8217

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - + 52 * + col2 + 55 / - col0 - col0 * + col0 AS col0 FROM tab2 cor0
----
-1460
-7436
-8217

query I rowsort
SELECT ALL 82 * cor0.col0 + col1 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
12314
15668
9388

query I rowsort
SELECT - - col0 + + 28 AS col0 FROM tab1 AS cor0
----
108
31
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 35 * - col1 col0 FROM tab0 AS cor0
----
-2977
-3103
-3394

query I rowsort
SELECT DISTINCT - col2 * 29 - 59 FROM tab2 AS cor0
----
-1161
-813
-842

query I rowsort
SELECT ALL - col1 * - cor0.col0 + col0 * + col0 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT ALL - + col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9551
SELECT DISTINCT + cor0.col1 + + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT + cor0.col1 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9552
SELECT DISTINCT - + col1 * CAST( + col2 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - + col1 * CAST ( + col2 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9553
SELECT ALL + + col1 + CAST( 24 AS SIGNED ) FROM tab0 AS cor0
----
110
115
121

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + + col1 + CAST ( 24 AS INTEGER ) FROM tab0 AS cor0
----
110
115
121

onlyif mysql # use DIV operator for integer division
query I rowsort label-9554
SELECT + cor0.col1 * - 53 + - ( col0 ) DIV + col0 col1 FROM tab0 cor0
----
-4559
-4824
-5142

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9554
SELECT + cor0.col1 * - 53 + - ( col0 ) / + col0 col1 FROM tab0 cor0
----
-4559
-4824
-5142

skipif mysql # not compatible
query I rowsort
SELECT - + col2 * CAST ( col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col1 * 18 - col0 AS col0 FROM tab2 cor0
----
-1140
-385
-565

query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9558
SELECT DISTINCT + + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT + + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9559
SELECT ALL - + col0 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL - + col0 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT cor0.col2 * - ( 64 ) + - col1 FROM tab0 AS cor0
----
-161
-2198
-5339

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT - col1 * + col0 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
-177480
-329280
-736920

query I rowsort
SELECT DISTINCT - col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + cor0.col2 * + ( - col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col0 * + col2 * cor0.col1 FROM tab0 AS cor0
----
3395
664118
68112

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col0 < NULL
----

query I rowsort
SELECT col2 + - tab0.col1 * - col1 * + col2 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT tab2.col0 * tab2.col2 * - col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - col2 + col1 * - col2 + col2 AS col0 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col1 FROM tab2
----
-1343
-217
-4602

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col2 IN ( - col1 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9573
SELECT col1 + - col1 DIV + col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-9573
SELECT col1 + - col1 / + col0 FROM tab1
----
10
13
18

query I rowsort
SELECT + col2 + col1 * col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + 70 + col1 - + col2 FROM tab0 AS cor0
----
123
166
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + + col0 col1 FROM tab1 AS cor0
----
157
173
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - col2 + col2 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9578
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9578
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + cor0.col2 - col1 * + col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT tab0.col0 * + col2 * col1 AS col1 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-9581
SELECT DISTINCT + col0 + + col0 DIV + col2 - col1 AS col0 FROM tab1
----
-23
55
67

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT + col0 + + col0 / + col2 - col1 AS col0 FROM tab1
----
-23
55
67

query I rowsort
SELECT + tab0.col1 * col1 * col2 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT ALL tab1.col1 DIV col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL tab1.col1 / col1 AS col2 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9584
SELECT col2 * col1 DIV - col2 + tab1.col2 + col2 FROM tab1
----
104
179
82

skipif mysql # not compatible
query I rowsort label-9584
SELECT col2 * col1 / - col2 + tab1.col2 + col2 FROM tab1
----
104
179
82

query I rowsort
SELECT col1 * col1 - col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT DISTINCT + tab1.col2 + tab1.col2 * col0 + - col0 FROM tab1
----
213
3641
7696

query I rowsort
SELECT - - cor0.col0 * col2 + col1 - + cor0.col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1057
3621
3665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * cor0.col0 + + 80 FROM tab1 AS cor0
----
242
3728
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9590
SELECT - 12 / cor0.col0 + + CAST( NULL AS DECIMAL ) * - 56 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT - 12 / cor0.col0 + + CAST ( NULL AS REAL ) * - 56 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9591
SELECT 93 DIV - cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d756e26e569d427b18a1dbea880540fb

skipif mysql # not compatible
query I rowsort label-9591
SELECT 93 / - cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d756e26e569d427b18a1dbea880540fb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9592
SELECT CAST( 92 + col0 AS SIGNED ) AS col0 FROM tab0
----
116
127
181

skipif mysql # not compatible
query I rowsort label-9592
SELECT CAST ( 92 + col0 AS INTEGER ) AS col0 FROM tab0
----
116
127
181

query I rowsort
SELECT DISTINCT - 95 * col0 * col1 FROM tab1
----
-60800
-7410
-98800

query I rowsort
SELECT ( col0 + - col2 ) FROM tab1
----
-16
-51
7

query I rowsort
SELECT + ( 8 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT - col0 DIV tab0.col0 + - 10 * + 79 FROM tab0
----
-791
-791
-791

skipif mysql # not compatible
query I rowsort label-9596
SELECT - col0 / tab0.col0 + - 10 * + 79 FROM tab0
----
-791
-791
-791

onlyif mysql # use DIV operator for integer division
query I rowsort label-9597
SELECT DISTINCT + 51 DIV 82 col1 FROM tab1, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT + 51 / 82 col1 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT - col2 + + 91 FROM tab2
----
53
64
65

query I rowsort
SELECT DISTINCT + col0 * 68 FROM tab1
----
204
4352
5440

query I rowsort
SELECT 87 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501

query I rowsort
SELECT + cor0.col2 * tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6b6947fcb54b3e9529d0c75cfb5b2d32

query I rowsort
SELECT - cor0.col1 * ( - col0 ) + - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT + + cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL col1 * - ( - 11 ) AS col0 FROM tab1
----
110
143
286

onlyif mysql # use DIV operator for integer division
query I rowsort label-9606
SELECT + tab2.col2 DIV + col1 AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9606
SELECT + tab2.col2 / + col1 AS col1 FROM tab2
----
0
0
2

query I rowsort
SELECT ALL col0 * + col0 + col0 AS col2 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL + - ( ( cor0.col1 ) ) + tab2.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 5ba9183f97d06cb5c1340d457f55f1e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9609
SELECT + CAST( 79 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
103
114
168

skipif mysql # not compatible
query I rowsort label-9609
SELECT + CAST ( 79 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
103
114
168

query I rowsort
SELECT ALL 60 + + 19 + col1 * 6 FROM tab0 AS cor0
----
595
625
661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT + 31 + cor0.col0 * col0 DIV + 76 FROM tab2 AS cor0
----
111
113
31

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 31 + cor0.col0 * col0 / + 76 FROM tab2 AS cor0
----
111
113
31

query I rowsort
SELECT - 32 * - col0 * col0 AS col1 FROM tab2
----
1568
194688
199712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9613
SELECT DISTINCT - col2 * - col2 + col1 + CAST( 43 AS SIGNED ) FROM tab0 AS cor0
----
1218
141
6858

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT - col2 * - col2 + col1 + CAST ( 43 AS INTEGER ) FROM tab0 AS cor0
----
1218
141
6858

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) * - col1 * col0 - cor0.col0 * + 80 FROM tab0 AS cor0
----
116025
47616
713691

query I rowsort
SELECT + col0 * + col1 + - 25 AS col2 FROM tab1 AS cor0
----
1015
53
615

query I rowsort
SELECT - col0 * col1 + 43 FROM tab0 AS cor0
----
-2021
-3352
-8056

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9617
SELECT 9 * - col0 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT 9 * - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT ALL col0 DIV col0 + - tab2.col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL col0 / col0 + - tab2.col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT + 71 + + col0 AS col0 FROM tab1
----
135
151
74

query I rowsort
SELECT - + col2 + + col0 - col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + + col2 + + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-9622
SELECT + col0 * - col0 + col0 DIV - col1 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-9622
SELECT + col0 * - col0 + col0 / - col1 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab0
----
2
62
62

query I rowsort
SELECT col0 + col1 + + ( - tab2.col0 + - col2 ) FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT 1 - + col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT DISTINCT col0 + - col2 - + tab1.col1 FROM tab1
----
-29
-3
-77

query I rowsort
SELECT ALL ( - col0 * ( tab2.col1 ) ) - col0 AS col2 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT - 49 + + cor0.col2 * col1 FROM tab1 AS cor0
----
1199
1355
521

query I rowsort
SELECT cor0.col0 * 12 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cc206fa3dc0461d49917448a402bc17b

onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT + + ( + col1 ) * col1 DIV - cor0.col2 + col0 * col2 FROM tab1 AS cor0
----
150
3647
7679

skipif mysql # not compatible
query I rowsort label-9630
SELECT + + ( + col1 ) * col1 / - cor0.col2 + col0 * col2 FROM tab1 AS cor0
----
150
3647
7679

query I rowsort
SELECT ALL + 68 * 46 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to beeee7769bb4524d5f312360f7dd4c3a

query I rowsort
SELECT + col1 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - cor0.col0 * - col1 + 7 + col1 FROM tab0 AS cor0
----
2157
3499
8197

query I rowsort
SELECT ALL + cor0.col0 + ( col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col2 * col1 + - ( - col1 + - 37 ) AS col0 FROM tab2 AS cor0
----
1630
700
905

query I rowsort
SELECT ALL - col0 + - 62 AS col2 FROM tab0 AS cor0
----
-151
-86
-97

query I rowsort
SELECT DISTINCT - col0 * ( 54 ) FROM tab2 AS cor0
----
-378
-4212
-4266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9639
SELECT DISTINCT - col1 + col2 DIV col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - col1 + col2 / col1 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT DISTINCT cor0.col2 + + 37 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT - + col1 * 41 AS col0 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT + 58 * + col1 FROM tab2
----
1798
3422
986

query I rowsort
SELECT - 53 * col2 AS col0 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT ALL + cor0.col0 + + col2 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col1 col1 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * - col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - + 17 + - 38 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - 47 * + cor0.col0 AS col2 FROM tab1 cor0
----
-141
-3008
-3760

query I rowsort
SELECT ALL col0 * - cor0.col2 + col1 * - col1 FROM tab1 AS cor0
----
-3748
-7849
-838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9650
SELECT ALL CAST( + ( - col1 ) AS SIGNED ) + 26 * + 18 AS col0 FROM tab0 AS cor0
----
371
377
382

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL CAST ( + ( - col1 ) AS INTEGER ) + 26 * + 18 AS col0 FROM tab0 AS cor0
----
371
377
382

query I rowsort
SELECT 55 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to c59acfbb70996777fa5053195838c3d6

query I rowsort
SELECT ALL col2 + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9653
SELECT DISTINCT + ( + col1 ) * tab0.col1 DIV CAST( - ( col0 ) AS SIGNED ) FROM tab0
----
-268
-308
-93

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + ( + col1 ) * tab0.col1 / CAST ( - ( col0 ) AS INTEGER ) FROM tab0
----
-268
-308
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9654
SELECT + CAST( - cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-9654
SELECT + CAST ( - cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col0 * 22 AS col2 FROM tab2
----
154
1716
1738

query I rowsort
SELECT + col2 * + col1 * tab0.col1 + col1 FROM tab0
----
244154
679133
9506

query I rowsort
SELECT col2 + 73 + - 41 FROM tab1
----
128
86
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9658
SELECT - + 84 DIV col1 + col2 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9658
SELECT - + 84 / col1 + col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL col1 * col1 + + col0 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT col0 + + col2 * - tab1.col2 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - col0 - + col2 * + tab0.col2 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT + col1 * ( col1 ) AS col0 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * + col0 + col2 col1 FROM tab0
----
1185
1681
4354

query I rowsort
SELECT col0 * tab1.col1 + col2 * 16 + col2 FROM tab1
----
1609
2672
996

query I rowsort
SELECT ALL + col2 * 75 + col1 FROM tab1 AS cor0
----
4076
4285
7213

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab0, tab1 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col1 + + col0 col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL ( - cor0.col0 ) * + col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT 90 + - col1 * cor0.col2 FROM tab1 cor0
----
-1158
-1314
-480

onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT ALL + col1 DIV + 71 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL + col1 / + 71 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 78 + col0 * col2 FROM tab2 AS cor0
----
111
1950
2924

query I rowsort
SELECT DISTINCT + col2 + 79 * - col1 * - col0 FROM tab0 AS cor0
----
163089
268206
639903

onlyif mysql # use DIV operator for integer division
query I rowsort label-9673
SELECT + cor0.col2 * + 50 - - col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
1301
1350
1904

skipif mysql # not compatible
query I rowsort label-9673
SELECT + cor0.col2 * + 50 - - col0 / + col1 AS col1 FROM tab2 AS cor0
----
1301
1350
1904

query I rowsort
SELECT ALL + col1 + cor0.col0 + col2 * col0 AS col2 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT DISTINCT ( col1 ) - + col0 * - 54 AS col2 FROM tab1 AS cor0
----
188
3466
4333

query I rowsort
SELECT DISTINCT - + col1 + 37 AS col2 FROM tab1 AS cor0
----
11
24
27

query I rowsort
SELECT ALL - - col2 + - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + 54 * + col1 - + col0 AS col1 FROM tab1 AS cor0
----
1401
476
622

query I rowsort
SELECT ALL + 27 * 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3b3ded2f47c4e49be852fd38dcc2e3a3

query I rowsort
SELECT + - 40 + + 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col2 + ( - 26 ) * col1 + - col1 col2 FROM tab2 AS cor0
----
-108
-917
985

query I rowsort
SELECT ALL + col2 + + col0 * + ( col1 ) FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col1 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9685
SELECT ( + col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ( + col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9686
SELECT + 75 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT + 75 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9687
SELECT DISTINCT + cor0.col1 + + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT + cor0.col1 + + col1 / + col0 AS col1 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL + col2 * 87 AS col2 FROM tab2 cor0
----
2262
2349
3306

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9689
SELECT + col1 + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-9689
SELECT + col1 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - cor0.col1 * - 10 AS col2 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT + 99 * tab1.col2 - col1 FROM tab1
----
5320
5633
9491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT - - col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + cor0.col0 + col2 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT cor0.col2 * - 54 AS col0 FROM tab2 AS cor0
----
-1404
-1458
-2052

onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT col2 + + 39 DIV col0 AS col0 FROM tab2 AS cor0
----
26
32
38

skipif mysql # not compatible
query I rowsort label-9696
SELECT col2 + + 39 / col0 AS col0 FROM tab2 AS cor0
----
26
32
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9697
SELECT - col0 DIV - ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9697
SELECT - col0 / - ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - cor0.col2 * ( 32 ) AS col1 FROM tab2 AS cor0
----
-1216
-832
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9699
SELECT ALL + col0 + + CAST( NULL AS DECIMAL ) * - 9 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + col0 + + CAST ( NULL AS REAL ) * - 9 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - 86 FROM tab0 cor0
----
2064
3010
7654

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9701
SELECT CAST( col1 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-9701
SELECT CAST ( col1 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + 5 FROM tab1, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9703
SELECT ALL - - 40 DIV - col1 + - 48 + col1 AS col2 FROM tab1 AS cor0
----
-23
-38
-42

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - - 40 / - col1 + - 48 + col1 AS col2 FROM tab1 AS cor0
----
-23
-38
-42

query I rowsort
SELECT DISTINCT 56 * + col2 + + col1 + + col2 * - col2 FROM tab0 AS cor0
----
-2041
152
845

query I rowsort
SELECT + col2 * col0 + col0 + + 86 AS col2 FROM tab1 AS cor0
----
251
3798
7846

onlyif mysql # use DIV operator for integer division
query I rowsort label-9706
SELECT DISTINCT col1 DIV col1 + col0 * - col2 DIV + col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT col1 / col1 + col0 * - col2 / + col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT col1 * - col2 + 60 FROM tab0 AS cor0
----
-2778
-37
-7402

query I rowsort
SELECT ALL + col0 * - tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL 3 * - col2 AS col0 FROM tab1
----
-162
-171
-288

query I rowsort
SELECT 21 + col2 * col0 AS col1 FROM tab2
----
2049
210
3023

onlyif mysql # use DIV operator for integer division
query I rowsort label-9712
SELECT + 47 DIV + col0 FROM tab1 AS cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-9712
SELECT + 47 / + col0 FROM tab1 AS cor0
----
0
0
15

query I rowsort
SELECT - + 63 + - col1 + col0 FROM tab2 AS cor0
----
-1
-44
-87

query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col0 * col1 + + ( col1 ) FROM tab2
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0, tab2, tab2 AS cor0
----
24
35
89

query I rowsort
SELECT + 29 * col1 * col2 AS col0 FROM tab2
----
18734
24273
44486

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9719
SELECT + CAST( NULL AS DECIMAL ) * 39 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT + CAST ( NULL AS REAL ) * 39 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9720
SELECT col2 * + 80 + col1 DIV cor0.col1 FROM tab0 AS cor0
----
2641
6561
81

skipif mysql # not compatible
query I rowsort label-9720
SELECT col2 * + 80 + col1 / cor0.col1 FROM tab0 AS cor0
----
2641
6561
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( cor0.col1 ) * col1 + - col2 col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT - col2 + - col1 - col1 FROM tab2 cor0
----
-144
-72
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9723
SELECT ALL - 17 - 49 DIV - col1 AS col1 FROM tab1
----
-13
-14
-16

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - 17 - 49 / - col1 AS col1 FROM tab1
----
-13
-14
-16

query I rowsort
SELECT - - ( + col1 ) * - cor0.col2 - ( col1 ) * col0 AS col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT - 54 + col0 * + cor0.col2 AS col0 FROM tab0 cor0
----
-19
7244
738

query I rowsort
SELECT - - col1 + - 53 * col0 FROM tab1 AS cor0
----
-133
-3382
-4227

query I rowsort
SELECT ALL + col1 + + 4 AS col1 FROM tab0
----
101
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9728
SELECT + ( + col1 ) DIV col1 + - 39 * - 31 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
103975
110020
117274

skipif mysql # not compatible
query I rowsort label-9728
SELECT + ( + col1 ) / col1 + - 39 * - 31 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
103975
110020
117274

query I rowsort
SELECT - ( 11 ) + - col1 * + col1 * - 96 AS col0 FROM tab1 AS cor0
----
16213
64885
9589

query I rowsort
SELECT ( + 52 ) * col2 AS col2 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT DISTINCT + - 99 + col0 AS col0 FROM tab0 AS cor0
----
-10
-64
-75

query I rowsort
SELECT ALL + 96 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT - + 85 * col1 FROM tab2 AS cor0
----
-1445
-2635
-5015

query I rowsort
SELECT DISTINCT - 7 + + col0 * 33 FROM tab1 AS cor0
----
2105
2633
92

query I rowsort
SELECT 30 + cor1.col1 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
243 values hashing to 4bca8b39855ccda614c0fef3af20d1ae

query I rowsort
SELECT ALL col1 * ( col0 ) AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
-26
-27
-38

query I rowsort
SELECT - col2 * 92 AS col0 FROM tab2 AS cor0
----
-2392
-2484
-3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col2 * ( + 10 + col2 ) FROM tab0 AS cor0
----
11
1419
7544

query I rowsort
SELECT ALL - 18 * 24 FROM tab0, tab2 AS cor0
----
9 values hashing to d2a130f5dfc1e8bda61aeebb25bd6ea9

query I rowsort
SELECT ALL 82 + - col2 FROM tab1 AS cor0
----
-14
25
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9743
SELECT CAST( - 53 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif mysql # not compatible
query I rowsort label-9743
SELECT CAST ( - 53 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9744
SELECT DISTINCT col1 * + 77 + col0 * - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT col1 * + 77 + col0 * - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * col1 - - tab0.col0 FROM tab0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-9746
SELECT col1 DIV - 39 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT col1 / - 39 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + 86 - - col2 AS col0 FROM tab0
----
119
168
87

query I rowsort
SELECT col2 + + 6 + + col2 AS col1 FROM tab0
----
170
72
8

query I rowsort
SELECT DISTINCT + col1 * col1 * tab0.col2 + col2 FROM tab0
----
244101
679124
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + cor0.col0 ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - ( - 9 ) * col0 FROM tab1 AS cor0
----
27
576
720

onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT DISTINCT + 89 DIV 23 + - col0 AS col1 FROM tab1 AS cor0
----
-61
-77
0

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + 89 / 23 + - col0 AS col1 FROM tab1 AS cor0
----
-61
-77
0

query I rowsort
SELECT + ( - 2 ) AS col1 FROM tab2 cor0
----
-2
-2
-2

query I rowsort
SELECT - ( + 51 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1683
4182
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9755
SELECT - col2 + + cor0.col1 DIV cor0.col0 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-9755
SELECT - col2 + + cor0.col1 / cor0.col0 FROM tab2 AS cor0
----
-23
-26
-38

query I rowsort
SELECT + - 77 * 27 + col1 FROM tab1 AS cor0
----
-2053
-2066
-2069

query I rowsort
SELECT DISTINCT 5 + col1 AS col1 FROM tab1 AS cor0
----
15
18
31

query I rowsort
SELECT ALL - 85 * - cor1.col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to afe41043ca9af5e0cd03d3d29f67906f

onlyif mysql # use DIV operator for integer division
query I rowsort label-9759
SELECT ALL ( col2 ) * col0 DIV - 61 + col2 AS col1 FROM tab1
----
-2
-29
52

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL ( col2 ) * col0 / - 61 + col2 AS col1 FROM tab1
----
-2
-29
52

query I rowsort
SELECT ALL ( tab1.col0 ) + col2 * + col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT + - col1 * cor0.col2 * cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
-243982
-678951
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 + 9 * + 81 FROM tab2 AS cor0
----
736
807
808

query I rowsort
SELECT + col2 * 81 FROM tab1 cor0
----
4374
4617
7776

query I rowsort
SELECT ALL - col1 + + col0 * + 76 FROM tab1 AS cor0
----
202
4854
6067

query I rowsort
SELECT DISTINCT + col2 - - ( ( cor0.col0 ) + col2 ) AS col2 FROM tab1 AS cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * cor0.col1 col0 FROM tab2 cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT DISTINCT col1 DIV 99 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT col1 / 99 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - cor0.col1 + + col1 * + 44 * col1 FROM tab1 AS cor0
----
29718
4390
7423

query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col0 + + col1 * + 54 FROM tab0 AS cor0
----
4668
5003
5273

query I rowsort
SELECT ( - col1 ) * ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col2 * - col2 * + cor0.col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT - ( + 76 + col1 ) FROM tab0
----
-162
-167
-173

query I rowsort
SELECT ALL + tab0.col1 + - cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to be991a59f14759117ef2f271c2d2216f

query I rowsort
SELECT - - 74 * col0 FROM tab0 AS cor0
----
1776
2590
6586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * - col0 col0 FROM tab2
----
-623
-6942
-7031

query I rowsort
SELECT + col1 - + col0 * cor0.col2 AS col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL 92 - - col0 AS col1 FROM tab1
----
156
172
95

query I rowsort
SELECT ALL 55 * col2 * 79 FROM tab0
----
143385
356290
4345

query I rowsort
SELECT DISTINCT col1 + + 43 FROM tab0
----
129
134
140

query I rowsort
SELECT DISTINCT + 68 * col2 + col0 * - col2 FROM tab2 AS cor0
----
-260
-418
1647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col0 ) * - col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - 78 + - col1 FROM tab1 AS cor0
----
-104
-88
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9785
SELECT DISTINCT - + col2 * col0 DIV - col0 col1 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - + col2 * col0 / - col0 col1 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9786
SELECT - col2 DIV 7 AS col1 FROM tab2 cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-9786
SELECT - col2 / 7 AS col1 FROM tab2 cor0
----
-3
-3
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 * col2 + col0 col1 FROM tab0 AS cor0
----
1975
58
783

query I rowsort
SELECT ALL + col2 * + 53 + col1 AS col1 FROM tab1
----
2888
3031
5101

onlyif mysql # use DIV operator for integer division
query I rowsort label-9789
SELECT ALL col2 DIV + 92 + - col1 * + col2 AS col1 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL col2 / + 92 + - col1 * + col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col0 * col0 * - 40 AS col0 FROM tab2
----
-1960
-243360
-249640

query I rowsort
SELECT ALL col1 * 31 * + col2 + - col2 AS col1 FROM tab2
----
19988
25920
47528

query I rowsort
SELECT + 17 + + col0 * + col1 FROM tab2
----
1360
234
4619

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - ( + col1 ) AS REAL ) + 97 * - 62 FROM tab1
----
-5988
-6001
-6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-9794
SELECT ALL - 72 DIV 21 AS col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL - 72 / 21 AS col1 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - - col1 * 26 * col1 - + 74 AS col0 FROM tab2 AS cor0
----
24912
7440
90432

query I rowsort
SELECT ALL - - col1 * col2 + col1 FROM tab2 cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9797
SELECT CAST( + col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-9797
SELECT CAST ( + col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * col1 + col1 col2 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT - - 57 * ( col1 ) FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT ALL - + col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - ( 55 ) + col1 FROM tab2 AS cor0
----
-24
-38
4

query I rowsort
SELECT DISTINCT - cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT - col0 * col1 + col0 AS col2 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT 22 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 89 col0 FROM tab1
----
1157
2314
890

query I rowsort
SELECT ALL + + col2 + - col2 * col0 AS col1 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - 42 + + col2 AS col2 FROM tab2 AS cor0
----
-15
-16
-4

query I rowsort
SELECT 48 * - col2 * - col1 FROM tab0
----
136224
358176
4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT ALL 35 DIV col1 + col0 * 44 AS col1 FROM tab1 AS cor0
----
133
2819
3522

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL 35 / col1 + col0 * 44 AS col1 FROM tab1 AS cor0
----
133
2819
3522

query I rowsort
SELECT - - 46 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT + col1 * col1 + cor0.col1 * col2 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT + col1 * - col2 + col0 AS col2 FROM tab1 cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( + 36 * + col0 AS REAL ) + ( + col1 ) - col2 * + col0 col0 FROM tab1 AS cor0
----
19402
2672
29773

query I rowsort
SELECT DISTINCT + col0 + + 26 * + col2 AS col2 FROM tab1 AS cor0
----
1407
1546
2576

query I rowsort
SELECT col2 + + 66 * - col1 FROM tab0 AS cor0
----
-5643
-5924
-6401

query I rowsort
SELECT DISTINCT - col1 * 82 FROM tab2 cor0
----
-1394
-2542
-4838

onlyif mysql # use DIV operator for integer division
query I rowsort label-9817
SELECT ALL + col0 * col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL + col0 * col1 / - col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( col2 ) + - col0 col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9819
SELECT CAST( NULL AS SIGNED ) * - tab0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9819
SELECT CAST ( NULL AS INTEGER ) * - tab0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 99 * + col2 AS col0 FROM tab2 AS cor0
----
2574
2673
3762

onlyif mysql # use DIV operator for integer division
query I rowsort label-9821
SELECT + - col1 DIV col0 + col1 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-9821
SELECT + - col1 / col0 + col1 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT - col1 + col0 * col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - col1 * + col2 - - col2 * - col1 FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT - 0 * - 78 * + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 21 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 41 ) + + cor0.col0 + - col2 * col1 * col0 col0 FROM tab0 AS cor0
----
-3319
-663988
-68047

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) * - col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ( + 93 ) AS col0 FROM tab0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col1 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL col2 + - col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT ( col0 ) * + tab1.col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - 63 * + tab1.col1 AS col2 FROM tab1
----
-1638
-630
-819

onlyif mysql # use DIV operator for integer division
query I rowsort label-9833
SELECT ALL col2 * - tab2.col1 DIV tab2.col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL col2 * - tab2.col1 / tab2.col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 + col0 / col2 AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT cor0.col0 * + col1 AS col2 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9836
SELECT DISTINCT col2 DIV + col2 AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT col2 / + col2 AS col1 FROM tab1 cor0
----
1

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col1 + col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9839
SELECT DISTINCT - col1 + col1 DIV tab1.col0 + - col0 AS col0 FROM tab1
----
-21
-74
-93

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT - col1 + col1 / tab1.col0 + - col0 AS col0 FROM tab1
----
-21
-74
-93

query III rowsort
SELECT * FROM tab1 WHERE col0 = ( - col0 / + col2 + + col1 )
----

query I rowsort
SELECT ALL - col0 * + col1 + - col2 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL tab1.col2 FROM tab1 WHERE NOT NULL BETWEEN col2 + + col0 / col0 + col2 * col1 AND col1 * - col1 * col0
----

query I rowsort
SELECT - tab0.col2 + + col1 FROM tab0
----
53
9
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> - col2 / + col1
----

query I rowsort
SELECT DISTINCT - col1 + col2 * col2 * + col1 FROM tab2
----
22568
24531
39825

query I rowsort
SELECT - tab2.col1 * + col0 * tab2.col1 AS col2 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT + col1 DIV col0 + - col2 AS col0 FROM tab1 AS cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-9848
SELECT + col1 / col0 + - col2 AS col0 FROM tab1 AS cor0
----
-46
-57
-96

query I rowsort
SELECT ALL - + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( - col2 ) AND + col0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col1 + - col1 * col2 + col1 AS col2 FROM tab1
----
-1222
-1352
-550

query I rowsort
SELECT col2 * col1 * + col0 + + col1 AS col2 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT - col1 * + col2 + col0 - col2 FROM tab1
----
-1264
-1455
-563

query I rowsort
SELECT DISTINCT + col1 - col2 * - col2 AS col2 FROM tab0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * col0 + + col2 col0 FROM tab1
----
288
41017
83296

query I rowsort
SELECT col1 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + + col0 * col2 AS col2 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT ALL + col0 + cor0.col2 + + col2 FROM tab2 AS cor0
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col0 col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 36 * 90 FROM tab2, tab2 cor0
----
9 values hashing to 55804156d124fe87ccba0e5acdf75b9d

query I rowsort
SELECT DISTINCT + col1 * + ( ( col0 ) ) * col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + - col1 * ( - ( - col0 ) ) + - 31 + cor0.col2 FROM tab2 cor0
----
-1336
-221
-4607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * ( + ( col0 ) ) + - 42 col1 FROM tab2 AS cor0
----
1301
175
4560

query I rowsort
SELECT + 31 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # use DIV operator for integer division
query I rowsort label-9866
SELECT ALL col0 * 75 + cor0.col1 DIV col1 FROM tab0 AS cor0
----
1801
2626
6676

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL col0 * 75 + cor0.col1 / col1 FROM tab0 AS cor0
----
1801
2626
6676

query I rowsort
SELECT DISTINCT - 59 * - col0 - cor0.col0 FROM tab1 AS cor0
----
174
3712
4640

query I rowsort
SELECT DISTINCT + 42 + 30 * - col0 AS col2 FROM tab0 AS cor0
----
-1008
-2628
-678

query I rowsort
SELECT ALL col0 * + 11 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT DISTINCT - 8 * 68 + cor0.col2 FROM tab1 AS cor0
----
-448
-487
-490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9871
SELECT + CAST( + 95 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-9871
SELECT + CAST ( + 95 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT ALL cor0.col2 * 58 + - col1 DIV ( - 85 ) - col0 AS col1 FROM tab0 AS cor0
----
1891
24
4668

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL cor0.col2 * 58 + - col1 / ( - 85 ) - col0 AS col1 FROM tab0 AS cor0
----
1891
24
4668

query I rowsort
SELECT col2 + 61 AS col0 FROM tab2
----
87
88
99

query I rowsort
SELECT ALL ( 34 * + tab1.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 2102b6be9062c8709d13b34f311d6ac0

query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9876
SELECT + col2 DIV col1 + - col1 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9876
SELECT + col2 / col1 + - col1 AS col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9877
SELECT DISTINCT + col1 DIV col1 + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT + col1 / col1 + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT DISTINCT col2 * col1 * 90 FROM tab2 AS cor0
----
138060
58140
75330

query I rowsort
SELECT col0 * + col2 + ( col1 ) FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT + - col0 * col1 DIV ( col1 ) + - col1 DIV col1 col2 FROM tab0 AS cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9880
SELECT + - col0 * col1 / ( col1 ) + - col1 / col1 col2 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT ALL ( col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9882
SELECT DISTINCT - - col1 * + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT - - col1 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9883
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col1 + + ( col1 ) * 77 FROM tab1
----
1014
2028
780

query I rowsort
SELECT + col1 + + tab2.col0 - col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT ( col1 ) * tab1.col0 - col0 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT col1 + - 74 - + col0 * ( 55 ) FROM tab2
----
-428
-4305
-4402

query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT DISTINCT + col1 DIV - col1 + ( col2 ) FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + col1 / - col1 + ( col2 ) FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT ( col2 ) * - col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL ( - ( + col1 ) ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 45 * 10 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
450

query I rowsort
SELECT DISTINCT col1 + + col1 * + ( + 29 ) AS col1 FROM tab1
----
300
390
780

query I rowsort
SELECT DISTINCT - col1 + + col1 * + ( + col2 ) FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - 9 + + col0 FROM tab0 AS cor0
----
15
26
80

query I rowsort
SELECT DISTINCT + ( - col1 ) * + ( + col2 ) * - col2 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT DISTINCT col0 DIV - col0 + ( col0 ) * col0 FROM tab1
----
4095
6399
8

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT col0 / - col0 + ( col0 ) * col0 FROM tab1
----
4095
6399
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 36 col2 FROM tab1 AS cor0
----
10
23
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9900
SELECT ALL ( col2 ) + - CAST( 34 AS SIGNED ) FROM tab0
----
-1
-33
48

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL ( col2 ) + - CAST ( 34 AS INTEGER ) FROM tab0
----
-1
-33
48

skipif mysql # not compatible
query I rowsort
SELECT + col0 * CAST ( - col0 AS REAL ) + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-15
-5980
-6124

query I rowsort
SELECT - col2 + - 25 AS col2 FROM tab1 AS cor0
----
-121
-79
-82

query I rowsort
SELECT - cor0.col0 * 85 + col2 AS col1 FROM tab2 AS cor0
----
-568
-6604
-6677

query I rowsort
SELECT ALL - ( - col2 * col1 ) + 7 FROM tab1
----
1255
1411
577

query I rowsort
SELECT + col2 * + col0 * + col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + col2 + + col2 * ( tab1.col1 ) AS col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + 80 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9908
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - tab2.col0 * + 44 FROM tab2
----
-308
-3432
-3476

query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT col0 * 58 + col1 AS col1 FROM tab1 AS cor0
----
200
3722
4653

query I rowsort
SELECT DISTINCT + col2 - col0 AS col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT + ( + tab1.col2 ) AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL 98 + + cor0.col0 FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT DISTINCT ( - col0 ) + - cor0.col2 * 46 FROM tab1 cor0
----
-2487
-2686
-4496

onlyif mysql # use DIV operator for integer division
query I rowsort label-9916
SELECT DISTINCT cor0.col0 + ( col2 ) - + col2 * col2 DIV col0 col0 FROM tab1 cor0
----
-915
61
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT cor0.col0 + ( col2 ) - + col2 * col2 / col0 col0 FROM tab1 cor0
----
-915
61
71

query I rowsort
SELECT ALL + + 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 + col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT ( + 61 ) * col1 * - 74 AS col0 FROM tab0 AS cor0
----
-388204
-410774
-437858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9920
SELECT ALL + + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
-568
14
23

query I rowsort
SELECT DISTINCT + 51 * + col2 * - col1 FROM tab0 AS cor0
----
-144738
-380562
-4947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9924
SELECT + - ( col0 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT + - ( col0 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 91 * - col1 + - 51 FROM tab2 AS cor0
----
-1598
-2872
-5420

query I rowsort
SELECT ALL + - 57 + col1 FROM tab1 AS cor0
----
-31
-44
-47

query I rowsort
SELECT ALL - 65 AS col0 FROM tab1
----
-65
-65
-65

query I rowsort
SELECT - - col1 * + col0 + + 24 AS col2 FROM tab2 AS cor0
----
1367
241
4626

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9929
SELECT ( + col1 ) * CAST( + col2 AS SIGNED ) + col1 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
-2808
-35910
-98592

skipif mysql # not compatible
query I rowsort label-9929
SELECT ( + col1 ) * CAST ( + col2 AS INTEGER ) + col1 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
-2808
-35910
-98592

query I rowsort
SELECT - 23 AS col1 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT col1 * + col1 - + cor0.col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + col0 * + col2 - ( + col1 ) AS col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-9933
SELECT + col1 DIV col0 + - 20 * + col0 FROM tab0 AS cor0
----
-1779
-477
-698

skipif mysql # not compatible
query I rowsort label-9933
SELECT + col1 / col0 + - 20 * + col0 FROM tab0 AS cor0
----
-1779
-477
-698

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + - 14 * + col1 AS col0 FROM tab1 AS cor0
----
-140
-182
-364

onlyif mysql # use DIV operator for integer division
query I rowsort label-9936
SELECT ALL + cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL + cor0.col1 / col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 * - tab2.col0 + tab2.col2 AS col1 FROM tab2
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9939
SELECT CAST( NULL AS DECIMAL ) * col1 + + col1 * - 73 * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT CAST ( NULL AS REAL ) * col1 + + col1 * - 73 * + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + 72 FROM tab0
----
107
161
96

query I rowsort
SELECT ALL - tab1.col2 * col0 + - col0 + col1 * col0 AS col2 FROM tab1
----
-3072
-6720
-87

query I rowsort
SELECT - - 51 * col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT DISTINCT + - 43 AS col2 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT - ( + cor0.col1 ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col1 * ( + col2 + - col1 ) FROM tab1 cor0
----
1079
470
728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9946
SELECT ALL CAST( NULL AS SIGNED ) * 97 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL CAST ( NULL AS INTEGER ) * 97 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col0 + col1 AS col2 FROM tab1 cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-9948
SELECT DISTINCT + cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT + cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT - ( + 88 ) AS col0 FROM tab2 cor0
----
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9950
SELECT ALL - + CAST( NULL AS DECIMAL ) * cor0.col2 + + col2 * col1 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-9950
SELECT ALL - + CAST ( NULL AS REAL ) * cor0.col2 + + col2 * col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 42 ) + - col0 + - col2 AS col1 FROM tab1
----
-134
-15
-79

query I rowsort
SELECT - col1 * - col0 + - col2 * + 51 AS col0 FROM tab1 cor0
----
-2267
-2676
-3856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9953
SELECT + + CAST( col2 AS SIGNED ) * cor0.col2 + - 50 FROM tab2 AS cor0
----
1394
626
679

skipif mysql # not compatible
query I rowsort label-9953
SELECT + + CAST ( col2 AS INTEGER ) * cor0.col2 + - 50 FROM tab2 AS cor0
----
1394
626
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + col1 col1 FROM tab2
----
118
34
62

query I rowsort
SELECT 44 * - 93 FROM tab1
----
-4092
-4092
-4092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 + - col2 col2 FROM tab1 AS cor0
----
-2
37
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9957
SELECT ALL ( col0 ) * col2 * CAST( + 84 + - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
269952
545280
9396

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL ( col0 ) * col2 * CAST ( + 84 + - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
269952
545280
9396

query I rowsort
SELECT ALL + - 71 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
118
1957
2931

query I rowsort
SELECT - ( cor0.col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col0 - + col0 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9961
SELECT + + CAST( col0 AS SIGNED ) * col1 * col0 + + 71 FROM tab0 AS cor0
----
118896
49607
720882

skipif mysql # not compatible
query I rowsort label-9961
SELECT + + CAST ( col0 AS INTEGER ) * col1 * col0 + + 71 FROM tab0 AS cor0
----
118896
49607
720882

onlyif mysql # use DIV operator for integer division
query I rowsort label-9962
SELECT ALL CAST( + col0 AS SIGNED ) + + col0 * + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL CAST ( + col0 AS INTEGER ) + + col0 * + col1 / col1 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL col2 + + col0 * - col0 * 61 AS col0 FROM tab2 AS cor0
----
-2962
-371098
-380663

query I rowsort
SELECT 86 + + col1 * col0 AS col2 FROM tab1 cor0
----
1126
164
726

query I rowsort
SELECT 90 * - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-138060
-58140
-75330

query I rowsort
SELECT ALL - - 93 * col2 + col0 + + 95 FROM tab1 AS cor0
----
5120
5460
9103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT 37 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT - col1 * - col1 + - col0 AS col0 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9971
SELECT + CAST( col1 AS SIGNED ) - - col2 AS col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-9971
SELECT + CAST ( col1 AS INTEGER ) - - col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + col1 + - 24 * + col2 AS col2 FROM tab1 AS cor0
----
-1270
-1358
-2291

query I rowsort
SELECT DISTINCT - - col0 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col2 * col0 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT - col0 * CAST( + cor0.col2 AS SIGNED ) + - col2 * - col0 col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9975
SELECT - col0 * CAST ( + cor0.col2 AS INTEGER ) + - col2 * - col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + 88 - col2 FROM tab0 AS cor0
----
122
79
95

query I rowsort
SELECT - - ( 71 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - - col2 + col2 - cor0.col0 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT DISTINCT - - col1 * col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - col0 + ( - cor0.col1 ) * col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - col1 + ( + col1 * + col1 ) FROM tab2 cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 - + 3 col0 FROM tab1
----
1245
1401
567

query I rowsort
SELECT DISTINCT col0 + 1 * - col1 - - col0 FROM tab2
----
-17
141
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( tab1.col0 ) - + col0 col0 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL 48 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - col0 * - 48 FROM tab0
----
1152
1680
4272

query I rowsort
SELECT DISTINCT + col0 + + col1 - - col0 AS col1 FROM tab2
----
175
215
45

query I rowsort
SELECT tab1.col2 + 62 + + ( + tab1.col1 ) FROM tab1
----
129
142
171

query I rowsort
SELECT DISTINCT - 8 + col1 FROM tab1
----
18
2
5

query I rowsort
SELECT cor0.col2 + + col0 * + col2 + - col0 * 3 FROM tab2 AS cor0
----
1820
195
2803

query I rowsort
SELECT - tab0.col1 * col0 * tab0.col1 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9992
SELECT DISTINCT - CAST( - 2 AS SIGNED ) col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT - CAST ( - 2 AS INTEGER ) col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
2

query I rowsort
SELECT - ( - col0 ) * col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - + col2 * + cor0.col1 - + col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + 61 + - col0 AS col1 FROM tab2 AS cor0
----
-17
-18
54

query I rowsort
SELECT DISTINCT - + 42 + + col1 * - col1 - + col2 FROM tab1 AS cor0
----
-199
-307
-772

query I rowsort
SELECT ( - col2 ) * + 17 AS col1 FROM tab2 cor0
----
-442
-459
-646

query I rowsort
SELECT DISTINCT - tab0.col1 + col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 + ( cor0.col0 + col0 ) * - col2 FROM tab0 AS cor0
----
-14678
-1617
-71