sqllogictest
Artifact Content
Not logged in

Artifact bd79566067fb4010921b1b9130589b2332b90367:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + col0 * col0 + col1 + cor0.col2 FROM tab0 AS cor0
----
1323
695
8094

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT 51 + + cor0.col2 DIV - col2 + - cor0.col0 FROM tab0 AS cor0
----
-39
15
26

skipif mysql # not compatible
query I rowsort label-4
SELECT 51 + + cor0.col2 / - col2 + - cor0.col0 FROM tab0 AS cor0
----
-39
15
26

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

query I rowsort
SELECT col1 + 77 FROM tab1
----
103
87
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7
SELECT ALL - CAST( col2 AS SIGNED ) - col1 FROM tab0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - CAST ( col2 AS INTEGER ) - col1 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8
SELECT col2 + col0 + - col0 DIV col2 FROM tab1
----
120
176
57

skipif mysql # not compatible
query I rowsort label-8
SELECT col2 + col0 + - col0 / col2 FROM tab1
----
120
176
57

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 - col0 col2 FROM tab0
----
-114
-125
-179

query I rowsort
SELECT + 50 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + cor1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + - col0 * + 84 AS col1 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT - - 93 + + 12 FROM tab2 AS cor0
----
105
105
105

query I rowsort
SELECT - + 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT 67 FROM tab2, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-20
SELECT ALL col2 * - CAST( - ( col0 ) AS SIGNED ) + - col1 * 69 AS col0 FROM tab0 AS cor0
----
-5142
-6658
1019

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL col2 * - CAST ( - ( col0 ) AS INTEGER ) + - col1 * 69 AS col0 FROM tab0 AS cor0
----
-5142
-6658
1019

query I rowsort
SELECT DISTINCT col2 * - 53 - - col0 AS col2 FROM tab1 AS cor0
----
-2859
-2957
-5008

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

query I rowsort
SELECT + 83 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # use DIV operator for integer division
query I rowsort label-24
SELECT - col2 + + 22 DIV - col1 FROM tab1 AS cor0
----
-54
-59
-97

skipif mysql # not compatible
query I rowsort label-24
SELECT - col2 + + 22 / - col1 FROM tab1 AS cor0
----
-54
-59
-97

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - 56 FROM tab2
----
1456
1512
2128

query I rowsort
SELECT DISTINCT col2 * 68 FROM tab0
----
2244
5576
68

query I rowsort
SELECT col2 * - 61 + + tab1.col0 * col1 AS col1 FROM tab1
----
-2837
-3216
-4816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( tab0.col0 ) + + tab0.col0 col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT + 56 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT + 39 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + col0 + - 25 ) col0 FROM tab2 AS cor0
----
-1378
-2052
486

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

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

query I rowsort
SELECT + + ( + 72 ) + - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1415
289
4674

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

query I rowsort
SELECT + 8 * col0 + cor0.col2 FROM tab1 cor0
----
569
736
78

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-40
SELECT - ( col0 ) DIV - col0 + - col0 FROM tab1 cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-40
SELECT - ( col0 ) / - col0 + - col0 FROM tab1 cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + 39 * - col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + cor0.col2 - col0 col2 FROM tab1 AS cor0
----
185
727
93

query I rowsort
SELECT - - 83 * 40 AS col0 FROM tab1 AS cor0
----
3320
3320
3320

query I rowsort
SELECT ALL + 36 + col2 FROM tab1 AS cor0
----
132
90
93

query I rowsort
SELECT + cor0.col1 * - cor0.col0 + ( + 35 ) FROM tab2 AS cor0
----
-1308
-182
-4567

query I rowsort
SELECT 37 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT DISTINCT cor0.col2 + - col0 + - ( + cor0.col0 * - col2 ) FROM tab2 AS cor0
----
1976
209
2961

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

query I rowsort
SELECT col1 * + col1 + - col1 * + col2 FROM tab0 cor0
----
4558
819
9312

query I rowsort
SELECT - - 20 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT ( + col2 ) + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

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

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

query I rowsort
SELECT ALL + col2 + + 77 FROM tab0 AS cor0
----
110
159
78

query I rowsort
SELECT - col0 * - 80 AS col0 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT col1 * ( cor0.col1 ) FROM tab2 AS cor0
----
289
3481
961

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * cor0.col2 col0 FROM tab2 AS cor0
----
-1456
-567
-830

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

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

query I rowsort
SELECT - 35 * + col1 + 49 FROM tab0 AS cor0
----
-2961
-3136
-3346

query I rowsort
SELECT - - col0 * - col0 + + col1 * - col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

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

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

query I rowsort
SELECT ALL col1 * col0 + + ( - 97 ) FROM tab0 AS cor0
----
1967
3298
8002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-67
SELECT ALL - - col0 + col1 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL - - col0 + col1 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + 82 * + col0 * ( - 27 ) AS col1 FROM tab2 AS cor0
----
-15498
-172692
-174906

query I rowsort
SELECT ALL col2 * - col0 - ( cor0.col2 ) * - col0 * 16 AS col1 FROM tab0 AS cor0
----
109470
11880
525

query I rowsort
SELECT DISTINCT - - cor0.col0 + cor0.col2 * 68 AS col2 FROM tab1 AS cor0
----
3675
3940
6608

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

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

query I rowsort
SELECT col1 * + col1 + + ( 11 * col0 ) FROM tab2 AS cor0
----
1038
1158
4339

query I rowsort
SELECT DISTINCT + - 10 + + col2 FROM tab0 AS cor0
----
-9
23
72

query I rowsort
SELECT ALL + col0 - col1 * ( col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT + 9 + + cor0.col0 FROM tab0 cor0
----
33
44
98

query I rowsort
SELECT ALL + - cor0.col1 + col1 * - 64 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT DISTINCT 94 + col2 FROM tab0 AS cor0
----
127
176
95

query I rowsort
SELECT ALL - col1 * col2 * - col1 FROM tab0 AS cor0
----
244068
679042
9409

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 58 col0 FROM tab0 cor0
----
4988
5278
5626

query I rowsort
SELECT DISTINCT - - col1 * col2 * - 68 FROM tab2 AS cor0
----
-104312
-43928
-56916

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

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

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

query I rowsort
SELECT DISTINCT - 4 + + col1 * 20 AS col0 FROM tab1
----
196
256
516

query I rowsort
SELECT - - 12 - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-177
-2016
-2990

onlyif mysql # use DIV operator for integer division
query I rowsort label-88
SELECT DISTINCT + cor0.col0 * + cor0.col2 + col1 DIV cor0.col0 - + col2 * - cor0.col0 FROM tab1 AS cor0
----
15360
332
7296

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT + cor0.col0 * + cor0.col2 + col1 / cor0.col0 - + col2 * - cor0.col0 FROM tab1 AS cor0
----
15360
332
7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-89
SELECT DISTINCT - col0 DIV col0 + col2 - 51 * cor0.col1 col2 FROM tab2 AS cor0
----
-1555
-2984
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT - col0 / col0 + col2 - 51 * cor0.col1 col2 FROM tab2 AS cor0
----
-1555
-2984
-830

query I rowsort
SELECT 16 * col1 - col1 AS col0 FROM tab1 AS cor0
----
150
195
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 * col0 + col0 col1 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT DISTINCT - 68 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-122
-125
-164

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

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL col0 / + col0 + + col1 / 50 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + col1 * col0 * + col2 + - 76 AS col1 FROM tab2 cor0
----
119576
50958
5783

query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - - col2 * ( col0 + cor0.col0 ) FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT DISTINCT - ( 76 ) FROM tab1
----
-76

query I rowsort
SELECT + ( - col1 ) * col2 * 47 + - 37 * - col2 * - tab1.col1 FROM tab1
----
-104832
-117936
-47880

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-102
SELECT DISTINCT col0 DIV - cor0.col2 + 46 + ( col2 ) FROM tab1 AS cor0
----
100
102
142

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT col0 / - cor0.col2 + 46 + ( col2 ) FROM tab1 AS cor0
----
100
102
142

query I rowsort
SELECT 86 * cor0.col0 - - 39 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
165248
256480
609

query I rowsort
SELECT 37 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT - col0 * col0 - - 28 * col1 FROM tab2 AS cor0
----
-4432
-5765
819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( col0 ) * - col1 col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + col2 * col2 + - ( col2 * tab0.col2 ) FROM tab0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - col1 * 80 AS col1 FROM tab1
----
-1040
-2080
-800

query I rowsort
SELECT DISTINCT col1 * 73 * col1 FROM tab0 AS cor0
----
539908
604513
686857

query I rowsort
SELECT DISTINCT + 33 + - col1 AS col0 FROM tab2 AS cor0
----
-26
16
2

query I rowsort
SELECT + 42 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT DISTINCT - + cor0.col2 + 35 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT ALL col0 * + 24 AS col2 FROM tab1 AS cor0
----
1536
1920
72

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-116
SELECT + cor0.col2 / - cor0.col0 col1 FROM tab1 AS cor0
----
-1
-18
0

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

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

query I rowsort
SELECT DISTINCT + ( + 48 ) AS col2 FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL col1 * 11 AS col2 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT - - ( - 35 ) FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL ( + 45 ) + + col1 AS col2 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT + + 3 * col1 AS col0 FROM tab2 AS cor0
----
177
51
93

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

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

skipif mysql # not compatible
query I rowsort label-124
SELECT + CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

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

query I rowsort
SELECT col0 + col2 * - col1 * col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

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

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

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

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

query I rowsort
SELECT col0 * col1 AS col0 FROM tab2 WHERE NOT - col2 < - tab2.col2
----
1343
217
4602

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col1 / - col1 >= col1 * col1 OR - col0 * cor0.col1 BETWEEN NULL AND + col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-136
SELECT ALL col0 / + col0 col0 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-137
SELECT col1 + - col2 DIV tab1.col2 AS col0 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-137
SELECT col1 + - col2 / tab1.col2 AS col0 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab1
----
1
33
82

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

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

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

query I rowsort
SELECT DISTINCT ( - tab2.col0 ) AS col2 FROM tab2
----
-7
-78
-79

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

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

query I rowsort
SELECT ALL col2 * col2 - - 9 AS col2 FROM tab1 AS cor0
----
2925
3258
9225

query I rowsort
SELECT - + col0 * + 79 AS col1 FROM tab0 AS cor0
----
-1896
-2765
-7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( ( col1 ) ) + col0 col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT cor0.col2 + col2 * - 27 AS col2 FROM tab1 cor0
----
-1404
-1482
-2496

query I rowsort
SELECT + 98 * - col2 + 96 * - col0 FROM tab0
----
-16580
-3458
-5538

query I rowsort
SELECT DISTINCT + 91 + col1 + - ( col2 + col1 ) FROM tab2
----
53
64
65

query I rowsort
SELECT ALL + 83 * 60 FROM tab0, tab0 AS cor0
----
9 values hashing to 23059be86e7a4f2d0bd80343dbeb1c09

query I rowsort
SELECT col0 * + ( - col0 + + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 65 * 30 col0 FROM tab1 AS cor0
----
1854
1893
1896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-153
SELECT ALL + col0 * + CAST( - cor0.col0 * col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + col0 * + CAST ( - cor0.col0 * col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + col1 * 45 FROM tab2 AS cor0
----
1395
2655
765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT IN ( - col0 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) NOT IN ( - col0 * col1 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-160
SELECT col0 DIV + col1 col2 FROM tab0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-161
SELECT - col1 + col2 DIV col1 FROM tab1
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-161
SELECT - col1 + col2 / col1 FROM tab1
----
-24
-5
-6

query I rowsort
SELECT - tab1.col0 / - col0 FROM tab1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - tab0.col1 + - col0 - + col0 FROM tab0
----
-134
-167
-269

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

skipif mysql # not compatible
query I rowsort label-164
SELECT + col1 * col1 / tab1.col2 FROM tab1
----
1
1
12

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT col2 * tab0.col2 DIV + col1 FROM tab0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-166
SELECT col2 * tab0.col2 / + col1 FROM tab0
----
0
12
73

query I rowsort
SELECT DISTINCT + col1 + col0 + - col1 AS col2 FROM tab0
----
24
35
89

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

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

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

query I rowsort
SELECT - 91 * - col2 FROM tab0 AS cor0
----
3003
7462
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 + + col1 col0 FROM tab0
----
53
9
96

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

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

query I rowsort
SELECT 51 + col2 * col0 FROM tab2 AS cor0
----
2079
240
3053

query I rowsort
SELECT - tab0.col1 * col1 * + col0 + - col2 FROM tab0
----
-177537
-329316
-737091

query I rowsort
SELECT - 43 * + col2 FROM tab0 cor0
----
-1419
-3526
-43

query I rowsort
SELECT DISTINCT col1 + + tab0.col2 * 9 FROM tab0
----
106
383
829

query I rowsort
SELECT - 7 * 19 FROM tab2 cor0
----
-133
-133
-133

query I rowsort
SELECT col2 - 62 * - col2 AS col2 FROM tab2
----
1638
1701
2394

query I rowsort
SELECT DISTINCT col1 - ( col2 ) AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL col1 * col2 + col0 * col0 + + 72 FROM tab2
----
6959
7690
958

query I rowsort
SELECT col1 + + ( 24 ) FROM tab1
----
34
37
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT + + cor0.col2 DIV + CAST( - col0 AS SIGNED ) + + col0 * col2 AS col2 FROM tab1 AS cor0
----
144
3648
7679

skipif mysql # not compatible
query I rowsort label-184
SELECT + + cor0.col2 / + CAST ( - col0 AS INTEGER ) + + col0 * col2 AS col2 FROM tab1 AS cor0
----
144
3648
7679

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

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

query I rowsort
SELECT ALL col1 * col2 + + 22 FROM tab1
----
1270
1426
592

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + CAST ( - col2 * + col2 AS REAL ) AS col1 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT ALL - - 73 - 43 * col0 AS col0 FROM tab1 AS cor0
----
-2679
-3367
-56

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

query I rowsort
SELECT ALL - - 96 * - cor0.col2 - + col2 * cor0.col2 FROM tab2 cor0
----
-3172
-3321
-5092

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT + - 91 + cor0.col0 DIV col2 col1 FROM tab1 AS cor0
----
-90
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-192
SELECT + - 91 + cor0.col0 / col2 col1 FROM tab1 AS cor0
----
-90
-91
-91

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

query I rowsort
SELECT - ( - col0 ) + cor0.col0 * col0 AS col2 FROM tab2 cor0
----
56
6162
6320

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

query I rowsort
SELECT DISTINCT - col0 + - 20 AS col0 FROM tab2 AS cor0
----
-27
-98
-99

query I rowsort
SELECT DISTINCT + - 24 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2892
3225
9192

query I rowsort
SELECT ALL col1 * - cor0.col2 - + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
1512
2679
7968

query I rowsort
SELECT - - ( + col0 ) + col2 FROM tab1 cor0
----
121
176
57

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - cor0.col1 AS REAL ) * - col2 - + 97 AS col1 FROM tab2 AS cor0
----
1437
549
740

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

query I rowsort
SELECT DISTINCT + col2 + col1 * + 17 FROM tab0 AS cor0
----
1495
1629
1650

onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT ALL col2 * col1 + col0 * 33 DIV - col0 + + ( + col2 * + col2 ) FROM tab0 AS cor0
----
14153
3894
65

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL col2 * col1 + col0 * 33 / - col0 + + ( + col2 * + col2 ) FROM tab0 AS cor0
----
14153
3894
65

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

query I rowsort
SELECT DISTINCT - 3 * col1 AS col0 FROM tab1 AS cor0
----
-30
-39
-78

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

query I rowsort
SELECT ALL - col2 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

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

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT - ( - cor0.col0 ) / col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - - 47 + - col1 AS col0 FROM tab2 AS cor0
----
-12
16
30

query I rowsort
SELECT ALL + cor0.col0 + col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + 43 * cor0.col2 + - 14 * 30 AS col2 FROM tab1 cor0
----
1902
2031
3708

query I rowsort
SELECT ALL - col1 * - 48 FROM tab1 AS cor0
----
1248
480
624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-216
SELECT ALL col2 * CAST( - 48 + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-47
-495
2788

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL col2 * CAST ( - 48 + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-47
-495
2788

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT DISTINCT cor0.col1 DIV col2 + + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT cor0.col1 / col2 + + col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-219
SELECT DISTINCT - cor0.col0 * + 82 - ( col1 ) DIV 68 FROM tab1 AS cor0
----
-246
-5248
-6560

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT - cor0.col0 * + 82 - ( col1 ) / 68 FROM tab1 AS cor0
----
-246
-5248
-6560

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 33 col1 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT + + col2 * + 16 AS col1 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT DISTINCT + col0 * col1 * + 32 FROM tab1 AS cor0
----
20480
2496
33280

query I rowsort
SELECT col1 * 78 AS col0 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT ALL + cor0.col2 * + col2 * + col2 + col0 * + 95 AS col2 FROM tab0 AS cor0
----
3326
38217
559823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

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

query I rowsort
SELECT ALL + col0 * - col0 + 75 * col0 FROM tab1 AS cor0
----
-400
216
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT DISTINCT - col0 DIV 18 AS col0 FROM tab0 AS cor0
----
-1
-4

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - col0 / 18 AS col0 FROM tab0 AS cor0
----
-1
-4

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

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

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

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

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

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

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

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea

query I rowsort
SELECT ALL - 74 * - 5 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 70240313a2337d03f97dbf64646fa617

onlyif mysql # use DIV operator for integer division
query I rowsort label-237
SELECT DISTINCT - 36 DIV + col1 + - col1 FROM tab1
----
-13
-15
-27

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT - 36 / + col1 + - col1 FROM tab1
----
-13
-15
-27

query I rowsort
SELECT + 56 + - col0 AS col2 FROM tab0
----
-33
21
32

query I rowsort
SELECT ALL col2 + 13 AS col2 FROM tab1
----
109
67
70

query I rowsort
SELECT + 62 + - tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3edbaf3f298324f25e7ad9962d36830a

onlyif mysql # use DIV operator for integer division
query I rowsort label-241
SELECT DISTINCT CAST( col1 AS SIGNED ) + col0 DIV + tab1.col2 AS col0 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col0 / + tab1.col2 AS col0 FROM tab1
----
11
13
26

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-243
SELECT DISTINCT + tab2.col2 DIV - col0 AS col0 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT + tab2.col2 / - col0 AS col0 FROM tab2
----
-3
0

query I rowsort
SELECT 79 + col2 * - ( col1 ) FROM tab0
----
-18
-2759
-7383

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

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

query I rowsort
SELECT ALL 97 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT 63 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1507
739
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT + + 66 DIV - cor0.col2 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-249
SELECT + + 66 / - cor0.col2 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * + col2 col1 FROM tab1 AS cor0
----
-1440
-810
-855

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

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

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

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

query I rowsort
SELECT ALL - 65 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * + col2 col2 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT ALL 55 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-260
SELECT 81 DIV + 97 col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-260
SELECT 81 / + 97 col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT + + col1 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

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

skipif mysql # not compatible
query I rowsort label-262
SELECT - - col2 / 49 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-263
SELECT - col1 * ( - cor0.col2 ) + + col0 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

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

query I rowsort
SELECT ALL tab0.col2 * ( + 76 ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ead492b68e7387812e0cee12492de318

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 43 AS REAL ) * - col0 * + 20 + 75 FROM tab1 AS cor0
----
2655
55115
68875

query I rowsort
SELECT - 55 + col1 * cor0.col2 FROM tab1 AS cor0
----
1193
1349
515

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

query I rowsort
SELECT DISTINCT + col2 * 52 FROM tab1
----
2808
2964
4992

query I rowsort
SELECT + 0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-275
SELECT CAST ( NULL AS INTEGER ) + - col1 * col1 col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + 2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL - 40 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to b10451aa7e22bfd12577dc60d18d9396

query I rowsort
SELECT + + 54 * 72 * - col1 FROM tab0 AS cor0
----
-334368
-353808
-377136

query I rowsort
SELECT col0 * + 67 FROM tab2
----
469
5226
5293

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

query I rowsort
SELECT DISTINCT + - 34 * 3 * + col1 + cor0.col1 * col2 AS col1 FROM tab1 cor0
----
-1248
-450
-78

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 11 + col1 col2 FROM tab0 AS cor0
----
75
80
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * cor0.col1 col0 FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT + - col1 * col0 * - ( + cor0.col1 ) FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT 97 + - col0 FROM tab1
----
17
33
94

query I rowsort
SELECT DISTINCT - ( col0 * col2 ) + col1 * tab2.col1 AS col1 FROM tab2
----
-2713
1453
772

onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT + 22 DIV col2 + - col1 * col1 AS col0 FROM tab0
----
-7396
-8281
-9387

skipif mysql # not compatible
query I rowsort label-288
SELECT + 22 / col2 + - col1 * col1 AS col0 FROM tab0
----
-7396
-8281
-9387

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

query I rowsort
SELECT ALL - + col0 + + 14 FROM tab0 AS cor0
----
-10
-21
-75

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-293
SELECT ALL + col2 * + ( col0 ) + col1 DIV cor0.col1 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL + col2 * + ( col0 ) + col1 / cor0.col1 FROM tab1 AS cor0
----
163
3649
7681

onlyif mysql # use DIV operator for integer division
query I rowsort label-294
SELECT 40 DIV + 90 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-294
SELECT 40 / + 90 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT 13 * + col0 * + tab1.col1 FROM tab1
----
1014
13520
8320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-296
SELECT - col0 * - col1 - - CAST( col0 AS SIGNED ) * col1 AS col0 FROM tab1
----
1280
156
2080

skipif mysql # not compatible
query I rowsort label-296
SELECT - col0 * - col1 - - CAST ( col0 AS INTEGER ) * col1 AS col0 FROM tab1
----
1280
156
2080

query I rowsort
SELECT 63 * tab2.col1 AS col2 FROM tab2
----
1071
1953
3717

query I rowsort
SELECT DISTINCT - col0 - 2 AS col2 FROM tab1
----
-5
-66
-82

query I rowsort
SELECT ALL - col1 + + col2 * col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ALL - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + - col0 * + 84 AS col0 FROM tab0 AS cor0
----
-2016
-2940
-7476

query I rowsort
SELECT - - col0 * + ( - col0 ) + - col2 * + col2 FROM tab2 AS cor0
----
-6760
-7685
-778

query I rowsort
SELECT + - col2 * - col1 + col2 * col2 AS col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT + col1 * col1 - + col0 * col1 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT - 75 + col0 AS col0 FROM tab0 cor0
----
-40
-51
14

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

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT + col0 + col1 * - CAST ( cor0.col0 * + col1 AS INTEGER ) + - 83 FROM tab1 AS cor0
----
-13523
-2108
-6419

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

query I rowsort
SELECT + 23 * + col0 + col1 FROM tab2
----
1834
1853
192

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

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

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

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

query I rowsort
SELECT DISTINCT 79 * cor0.col0 + ( + ( + col2 ) ) AS col0 FROM tab2 cor0
----
580
6188
6279

query I rowsort
SELECT DISTINCT 29 + + col0 FROM tab0 AS cor0
----
118
53
64

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 AS col2 FROM tab2 cor0
----
289
3481
961

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

query I rowsort
SELECT - - col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT ALL + col2 DIV col1 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-160
-3643
-7673

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + col2 / col1 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-160
-3643
-7673

query I rowsort
SELECT DISTINCT - col0 * + 7 AS col1 FROM tab1
----
-21
-448
-560

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

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

query I rowsort
SELECT DISTINCT 84 FROM tab1, tab1 cor0
----
84

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

query I rowsort
SELECT - tab2.col0 - - tab2.col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT + col1 * col0 * ( col1 ) + col1 * col2 FROM tab0
----
180342
329412
744471

query I rowsort
SELECT 5 * - col1 * + ( 72 ) AS col0 FROM tab0
----
-30960
-32760
-34920

query I rowsort
SELECT cor0.col0 + 67 FROM tab0, tab0 AS cor0
----
9 values hashing to 14a057ed65248f71ab5de529089a7786

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * + 19 col2 FROM tab1 AS cor0
----
200
260
520

query I rowsort
SELECT - col1 + col1 * + ( col0 ) FROM tab2 cor0
----
1326
186
4543

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

query I rowsort
SELECT DISTINCT + 65 * - col2 - col2 AS col0 FROM tab1 AS cor0
----
-3564
-3762
-6336

query I rowsort
SELECT + + 12 * col2 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT DISTINCT + 88 + + col1 * + col2 * + 4 + - col1 FROM tab2 AS cor0
----
2655
3405
6165

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

query I rowsort
SELECT ALL + + 59 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT + col0 * ( col0 * + col1 ) AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT - col2 * + ( + col1 ) + - col1 * - 47 + - 1 FROM tab1
----
-101
-183
-638

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

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

query I rowsort
SELECT col1 * 31 + col0 + col2 * 20 FROM tab1 AS cor0
----
1514
1889
2403

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

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

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

query I rowsort
SELECT ALL + ( - ( cor0.col1 ) ) * col1 + - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7405
-8274
-9375

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 49 AS REAL ) AS col0 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT 92 AS col1 FROM tab0
----
92
92
92

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

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

query I rowsort
SELECT tab0.col2 * 58 FROM tab0
----
1914
4756
58

query I rowsort
SELECT + 95 * - col2 AS col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

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

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT DISTINCT ( - col2 + + col0 ) DIV + 32 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT ( - col2 + + col0 ) / + 32 AS col0 FROM tab2
----
0
1

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

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

query I rowsort
SELECT ALL col0 * + 79 + cor0.col1 FROM tab2 AS cor0
----
584
6221
6258

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

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

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + col0 + + ( col1 + + CAST ( col2 AS INTEGER ) ) * + col2 AS col1 FROM tab0 AS cor0
----
133
14275
3951

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( cor0.col1 ) ) col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - + col2 + 6 AS col2 FROM tab0 AS cor0
----
-27
-76
5

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

skipif mysql # not compatible
query I rowsort label-361
SELECT + - CAST ( col2 AS INTEGER ) + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
162
2002
2964

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-364
SELECT DISTINCT + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col1 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - - 69 AS col1 FROM tab1 AS cor0
----
69
69
69

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT DISTINCT + col1 DIV - col0 FROM tab1 cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + col1 / - col0 FROM tab1 cor0
----
-8
0

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

query I rowsort
SELECT ALL - 45 AS col2 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL 78 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT DISTINCT - - 44 * - col2 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT DISTINCT 39 + col0 * + 54 * + 20 FROM tab1 AS cor0
----
3279
69159
86439

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

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL col1 + - col1 / + col2 FROM tab1 AS cor0
----
10
13
26

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col0 + - col1 * col0 * col0 FROM tab0 AS cor0
----
-118790
-49512
-720722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * + 60 col2 FROM tab2 AS cor0
----
1099
1867
3618

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - ( + 65 ) col1 FROM tab0 AS cor0
----
-30
-41
24

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

query I rowsort
SELECT ALL col1 * + col0 + 33 FROM tab0
----
2097
3428
8132

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

query I rowsort
SELECT + tab2.col2 + - col1 * - tab2.col1 + + col1 AS col0 FROM tab2
----
1019
344
3566

query I rowsort
SELECT DISTINCT - col2 * - ( + col2 + - col1 ) * - col1 FROM tab1
----
-103584
-26790
-39312

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

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

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

query I rowsort
SELECT - + 66 * + 60 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c734db9ad3b45132c768ae6c828c7e2e

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

query I rowsort
SELECT - col1 * col1 * ( - 48 ) FROM tab2
----
13872
167088
46128

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

query I rowsort
SELECT DISTINCT col2 + + col0 * - ( col0 ) AS col1 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + 20 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT + 38 FROM tab0, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-401
SELECT col1 DIV 31 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-401
SELECT col1 / 31 AS col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT + ( 97 ) + col2 FROM tab2
----
123
124
135

query I rowsort
SELECT - 55 * 46 AS col2 FROM tab1
----
-2530
-2530
-2530

query I rowsort
SELECT + - col0 - 47 * col0 FROM tab2 cor0
----
-336
-3744
-3792

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-407
SELECT - - cor0.col2 - - col1 DIV - col0 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-407
SELECT - - cor0.col2 - - col1 / - col0 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT - col0 * 13 FROM tab2
----
-1014
-1027
-91

query I rowsort
SELECT ALL col1 + 2 FROM tab1 AS cor0
----
12
15
28

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

skipif mysql # not compatible
query I rowsort label-410
SELECT - ( col1 ) * col1 - CAST ( col1 + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-167
-278
-756

query I rowsort
SELECT ALL 58 * col2 AS col2 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT DISTINCT col2 * + col2 + + col1 * - ( 14 ) AS col2 FROM tab0 AS cor0
----
-115
-1357
5450

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

query I rowsort
SELECT col1 + + col1 * - 21 + + 16 FROM tab1 AS cor0
----
-184
-244
-504

query I rowsort
SELECT + + col1 * cor0.col1 + - col2 + col2 * col0 FROM tab2 AS cor0
----
1123
3253
5483

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

query I rowsort
SELECT 54 * cor0.col0 + ( - col2 ) FROM tab0 AS cor0
----
1263
1889
4724

onlyif mysql # use DIV operator for integer division
query I rowsort label-418
SELECT tab1.col0 + 25 DIV - col0 + 25 FROM tab1
----
105
20
89

skipif mysql # not compatible
query I rowsort label-418
SELECT tab1.col0 + 25 / - col0 + 25 FROM tab1
----
105
20
89

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

query I rowsort
SELECT - 41 + col2 * - ( col0 ) FROM tab0 cor0
----
-7339
-76
-833

query I rowsort
SELECT + + col2 + col2 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL + 78 - col0 FROM tab1
----
-2
14
75

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-424
SELECT DISTINCT - 99 + col2 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT - 99 + col2 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + col0 col1 FROM tab1 cor0
----
131
147
70

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

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

query I rowsort
SELECT col2 + + col0 + - 11 FROM tab0 AS cor0
----
160
25
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + 60 * - cor0.col0 col1 FROM tab0 AS cor0
----
-1407
-2099
-5258

onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT - col0 DIV + col2 + - 57 DIV col1 + + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
24
4
9

skipif mysql # not compatible
query I rowsort label-429
SELECT - col0 / + col2 + - 57 / col1 + + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
24
4
9

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

query I rowsort
SELECT + - col2 * 25 + + col0 + + col2 FROM tab0 cor0
----
-1879
-768
11

query I rowsort
SELECT - - col2 * + 58 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT DISTINCT - + col0 * - ( + col0 ) + - cor0.col2 AS col0 FROM tab0 AS cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + ( - col2 ) col0 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-435
SELECT + 30 DIV col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-435
SELECT + 30 / col1 FROM tab1
----
1
2
3

query I rowsort
SELECT DISTINCT - 37 - + tab2.col0 AS col2 FROM tab2
----
-115
-116
-44

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

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

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

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

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

query I rowsort
SELECT ALL - 78 FROM tab0, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

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

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

query I rowsort
SELECT 64 FROM tab1, tab1 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # use DIV operator for integer division
query I rowsort label-445
SELECT - col2 * col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-445
SELECT - col2 * col0 / col1 AS col0 FROM tab1 AS cor0
----
-364
-590
-6

query I rowsort
SELECT ALL + + 46 AS col2 FROM tab0 AS cor0
----
46
46
46

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

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

query I rowsort
SELECT DISTINCT - - 31 FROM tab0 cor0
----
31

query I rowsort
SELECT ALL + 12 * col2 AS col2 FROM tab1 AS cor0
----
1152
648
684

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

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

query I rowsort
SELECT ALL + 74 * col0 * col1 FROM tab1
----
47360
5772
76960

onlyif mysql # use DIV operator for integer division
query I rowsort label-453
SELECT col2 + + 76 DIV col2 FROM tab1
----
55
58
96

skipif mysql # not compatible
query I rowsort label-453
SELECT col2 + + 76 / col2 FROM tab1
----
55
58
96

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

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

query I rowsort
SELECT ALL - col1 + 44 FROM tab2 AS cor0
----
-15
13
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + + col0 col0 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT + + col0 * ( - 77 ) FROM tab0 AS cor0
----
-1848
-2695
-6853

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-461
SELECT - col2 DIV + col1 + + col0 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-461
SELECT - col2 / + col1 + + col0 FROM tab1 AS cor0
----
1
59
73

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

skipif mysql # not compatible
query I rowsort label-462
SELECT col0 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col2 * + cor0.col1 col2 FROM tab0 cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT DISTINCT + col1 * 94 + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
1222
2444
940

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + col1 * 94 + col1 / col2 AS col1 FROM tab1 AS cor0
----
1222
2444
940

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 3 col0 FROM tab0 AS cor0
----
27
38
92

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

query I rowsort
SELECT ALL col0 - - col2 * ( - col0 + col2 * - 38 ) AS col1 FROM tab0
----
-262721
-38
-42150

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

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

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT - + cor0.col1 * CAST ( col2 AS INTEGER ) + + col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - col0 + + 60 AS col0 FROM tab0 AS cor0
----
-29
25
36

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-473
SELECT ALL col2 DIV - 91 + + col2 FROM tab1 cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL col2 / - 91 + + col2 FROM tab1 cor0
----
54
57
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-474
SELECT + + col0 DIV - cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-474
SELECT + + col0 / - cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
161
3647
7679

onlyif mysql # use DIV operator for integer division
query I rowsort label-475
SELECT ALL - col2 + tab0.col2 * 34 DIV tab0.col0 AS col1 FROM tab0
----
-1
-51
13

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - col2 + tab0.col2 * 34 / tab0.col0 AS col1 FROM tab0
----
-1
-51
13

query I rowsort
SELECT DISTINCT 69 * 8 AS col0 FROM tab2, tab0 AS cor0
----
552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-477
SELECT + col0 + 72 * col0 + + col2 * + CAST( col1 + + col1 AS SIGNED ) * ( + 3 ) FROM tab0
----
18780
3137
51269

skipif mysql # not compatible
query I rowsort label-477
SELECT + col0 + 72 * col0 + + col2 * + CAST ( col1 + + col1 AS INTEGER ) * ( + 3 ) FROM tab0
----
18780
3137
51269

query I rowsort
SELECT - ( - 51 ) * + col1 FROM tab2 AS cor0
----
1581
3009
867

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-480
SELECT + col1 * CAST( - 34 + - col0 AS SIGNED ) FROM tab1
----
-1482
-962
-980

skipif mysql # not compatible
query I rowsort label-480
SELECT + col1 * CAST ( - 34 + - col0 AS INTEGER ) FROM tab1
----
-1482
-962
-980

query I rowsort
SELECT DISTINCT 10 FROM tab0, tab2 cor0
----
10

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

query I rowsort
SELECT DISTINCT - col0 + - 97 FROM tab1
----
-100
-161
-177

query I rowsort
SELECT + 69 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT 52 - + 32 FROM tab2, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT 17 * col1 AS col1 FROM tab2
----
1003
289
527

query I rowsort
SELECT col1 * col1 * cor0.col0 FROM tab1 AS cor0
----
13520
2028
6400

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

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

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

query I rowsort
SELECT - 55 * col1 + + col2 FROM tab0 AS cor0
----
-4697
-4923
-5334

query I rowsort
SELECT ALL + - col0 * + col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col0 + 46 * col2 * col0 FROM tab2 AS cor0
----
138013
8687
93210

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

query I rowsort
SELECT + cor0.col2 + - 73 AS col1 FROM tab1 AS cor0
----
-16
-19
23

query I rowsort
SELECT - + 16 * col2 + col1 * 41 FROM tab0 AS cor0
----
2419
2998
3961

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 * + col2 col2 FROM tab2
----
1330
910
945

query I rowsort
SELECT + col0 * col1 * ( - col0 ) FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL col0 + cor0.col0 * 33 * 94 AS col0 FROM tab2 AS cor0
----
21721
242034
245137

query I rowsort
SELECT DISTINCT + 8 + col0 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT DISTINCT 99 * col1 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab2 cor0
----
289
3481
961

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

query I rowsort
SELECT - col1 * + 24 FROM tab0 AS cor0
----
-2064
-2184
-2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT - col2 * - 61 + col0 DIV col0 col0 FROM tab1 AS cor0
----
3295
3478
5857

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-505
SELECT - col2 * - 61 + col0 / col0 col0 FROM tab1 AS cor0
----
3295
3478
5857

query I rowsort
SELECT + 8 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ALL cor0.col2 + - 54 * - col1 FROM tab0 AS cor0
----
4677
4996
5239

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

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

query I rowsort
SELECT 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + - col1 * - cor0.col2 + + col0 + - col0 * col1 AS col0 FROM tab0 cor0
----
-3263
-548
798

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-516
SELECT col2 DIV + col1 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-516
SELECT col2 / + col1 FROM tab2 cor0
----
0
0
2

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-518
SELECT ALL - col0 DIV col0 + + col2 * col1 FROM tab1 AS cor0
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - col0 / col0 + + col2 * col1 FROM tab1 AS cor0
----
1247
1403
569

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL NOT IN ( + tab2.col1 )
----

query I rowsort
SELECT + + col0 * col1 * col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 * - col1 col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col2 + + col1 * col0 * col0 + col0 * col2 * - col1 AS col0 FROM tab2
----
-4313
239330
55101

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

query I rowsort
SELECT DISTINCT + tab2.col2 * + tab2.col2 FROM tab2
----
1444
676
729

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col1 >= + col1 AND NOT col2 - col2 NOT IN ( - tab0.col0 + col2 * col2 / + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-529
SELECT + col1 / - col2 AS col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT + col0 + - col2 * col0 + - col1 * - col0 AS col0 FROM tab1
----
-2944
-6560
-81

query I rowsort
SELECT DISTINCT col0 * - col1 * col1 + col2 * + tab1.col2 AS col0 FROM tab1
----
-3151
-4304
888

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT + col1 < col1 * + col2 + col0
----

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

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 56 - col1 * + col2 * col1 AS col0 FROM tab2 AS cor0
----
-10926
-25891
-90450

query I rowsort
SELECT ALL + 19 + - col1 AS col0 FROM tab0 AS cor0
----
-67
-72
-78

query I rowsort
SELECT ALL - 73 + col1 * ( col0 ) AS col0 FROM tab0
----
1991
3322
8026

query I rowsort
SELECT ALL + - col1 + col0 - 15 AS col0 FROM tab0 AS cor0
----
-17
-77
-77

query I rowsort
SELECT DISTINCT - col1 * + col0 + 25 AS col2 FROM tab0 cor0
----
-2039
-3370
-8074

query I rowsort
SELECT ALL - cor0.col2 * col2 * - 56 FROM tab0 AS cor0
----
376544
56
60984

query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT col2 * + col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT - - 24 * + col2 - col0 * - 65 AS col1 FROM tab2 AS cor0
----
1103
5694
6047

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 + tab0.col1 + col2 ) > NULL
----

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT col1 + - col0 DIV + col0 + - tab0.col0 * + col0 * col2 AS col1 FROM tab0
----
-1129
-18923
-649432

skipif mysql # not compatible
query I rowsort label-552
SELECT col1 + - col0 / + col0 + - tab0.col0 * + col0 * col2 AS col1 FROM tab0
----
-1129
-18923
-649432

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 - col2 NOT BETWEEN + col1 * + col2 * + col2 + - col1 AND + col1 + + col1
----
35
97
1

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT col1 * col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND ( col1 * col2 )
----

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col2 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-561
SELECT DISTINCT - col0 + tab0.col1 DIV col1 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - col0 + tab0.col1 / col1 FROM tab0
----
-23
-34
-88

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-563
SELECT col1 DIV - col1 + - col1 * 14 + - col0 FROM tab1
----
-205
-263
-368

skipif mysql # not compatible
query I rowsort label-563
SELECT col1 / - col1 + - col1 * 14 + - col0 FROM tab1
----
-205
-263
-368

onlyif mysql # use DIV operator for integer division
query I rowsort label-564
SELECT DISTINCT - 30 + col2 DIV + 26 AS col0 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT - 30 + col2 / + 26 AS col0 FROM tab2
----
-29

query I rowsort
SELECT 39 + + col0 FROM tab0
----
128
63
74

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col2 * - 64 + col0 FROM tab2 AS cor0
----
-2064
-760
1895

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

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

query I rowsort
SELECT ALL - 8 * - col2 AS col1 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT 26 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT cor0.col1 - col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 99 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1287
-2574
-990

onlyif mysql # use DIV operator for integer division
query I rowsort label-574
SELECT ALL cor0.col1 + col1 DIV - ( col1 ) FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL cor0.col1 + col1 / - ( col1 ) FROM tab1 AS cor0
----
12
25
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * ( - col1 ) col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col2 * + 24 AS col1 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT ALL + col0 * - ( - 32 ) AS col2 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT cor0.col1 * 2 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1419
748
8103

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-581
SELECT + - col1 + cor0.col2 DIV 80 AS col2 FROM tab1 AS cor0
----
-10
-12
-26

skipif mysql # not compatible
query I rowsort label-581
SELECT + - col1 + cor0.col2 / 80 AS col2 FROM tab1 AS cor0
----
-10
-12
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + ( col0 * - cor0.col1 ) col0 FROM tab2 AS cor0
----
-1305
-190
-4576

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

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

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - col1 * - CAST ( 25 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
2183
2357
2426

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

query I rowsort
SELECT - cor0.col0 * 26 + 13 AS col0 FROM tab1 AS cor0
----
-1651
-2067
-65

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

query I rowsort
SELECT - cor0.col0 + 19 + + col2 FROM tab2 AS cor0
----
-22
-33
39

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL + + cor0.col0 * + col0 + + col2 FROM tab1 AS cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL 73 * cor0.col0 AS col0 FROM tab1 AS cor0
----
219
4672
5840

query I rowsort
SELECT DISTINCT ( col0 ) * col2 * 49 AS col1 FROM tab2 AS cor0
----
147098
9261
99372

query I rowsort
SELECT ( - col0 ) * + col1 - - col2 * cor0.col1 FROM tab1 cor0
----
-70
1326
208

onlyif mysql # use DIV operator for integer division
query I rowsort label-600
SELECT ALL - - col1 DIV 16 FROM tab0 AS cor0
----
5
5
6

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - - col1 / 16 FROM tab0 AS cor0
----
5
5
6

query I rowsort
SELECT DISTINCT - 45 * + col2 * - cor0.col2 + col1 * cor0.col0 FROM tab1 AS cor0
----
131298
146845
415760

query I rowsort
SELECT + 11 + ( col0 ) FROM tab1 AS cor0
----
14
75
91

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

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL col1 + - col0 / - col0 AS col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT tab1.col1 * 80 + + col0 FROM tab1
----
1120
2083
864

query I rowsort
SELECT ALL 28 - 86 FROM tab2, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

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

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

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

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

query I rowsort
SELECT ALL + - 68 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2848
3181
9148

onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT ALL 95 + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
95
95
96

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL 95 + cor0.col2 / + col0 FROM tab0 AS cor0
----
95
95
96

query I rowsort
SELECT ALL - 67 * col0 * col1 FROM tab2 AS cor0
----
-14539
-308334
-89981

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

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

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 + + col0 AS col2 FROM tab2
----
56
6162
6320

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

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

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

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

query I rowsort
SELECT - - 53 * - col0 - + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
1540
3382
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT + 23 DIV col0 - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-618
SELECT + 23 / col0 - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 38 * + col0 + + cor0.col1 FROM tab2 AS cor0
----
297
3019
3023

onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT + - col0 DIV cor0.col2 + + cor0.col0 + 99 AS col2 FROM tab0 cor0
----
123
187
99

skipif mysql # not compatible
query I rowsort label-620
SELECT + - col0 / cor0.col2 + + cor0.col0 + 99 AS col2 FROM tab0 cor0
----
123
187
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

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

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

query I rowsort
SELECT 93 * tab1.col1 + - col2 AS col0 FROM tab1
----
1113
2364
873

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

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

query I rowsort
SELECT ALL ( - col1 ) + col2 * - col2 * tab0.col2 + col1 AS col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ALL + cor0.col0 * col1 + col2 * col1 + col0 FROM tab2 AS cor0
----
1061
2068
6214

query I rowsort
SELECT ALL ( - col2 ) * + 24 + col1 FROM tab1 AS cor0
----
-1270
-1358
-2291

query I rowsort
SELECT + + col2 - cor0.col1 * 57 AS col0 FROM tab1 AS cor0
----
-1428
-513
-645

query I rowsort
SELECT DISTINCT + col1 - - cor0.col1 FROM tab1 AS cor0
----
20
26
52

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

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT 88 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

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

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

query I rowsort
SELECT - col2 + - ( col2 + + col1 ) FROM tab1
----
-124
-134
-205

query I rowsort
SELECT + 59 AS col0 FROM tab0
----
59
59
59

query I rowsort
SELECT cor0.col2 + 94 FROM tab0 cor0
----
127
176
95

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

query I rowsort
SELECT + ( - 31 ) * col1 AS col0 FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT - 58 + col1 AS col1 FROM tab0 AS cor0
----
28
33
39

query I rowsort
SELECT ( - cor0.col0 ) + + col1 * col2 * + col0 AS col1 FROM tab0 cor0
----
3360
664029
68088

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

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

query I rowsort
SELECT DISTINCT + + 47 * - 13 FROM tab1 cor0
----
-611

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

skipif mysql # not compatible
query I rowsort label-647
SELECT + - col1 / ( 71 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 33 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

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

query I rowsort
SELECT col1 * - 68 FROM tab0 cor0
----
-5848
-6188
-6596

query I rowsort
SELECT ALL + cor0.col0 * - 55 FROM tab1 AS cor0
----
-165
-3520
-4400

query I rowsort
SELECT DISTINCT - col1 + + 91 FROM tab1 cor0
----
65
78
81

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-656
SELECT - col1 + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-656
SELECT - col1 + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL col2 + - 54 FROM tab2 AS cor0
----
-16
-27
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-658
SELECT DISTINCT + col0 * col1 + col1 DIV + col1 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT + col0 * col1 + col1 / + col1 FROM tab0 AS cor0
----
2065
3396
8100

onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT ALL col0 DIV - 16 + col2 + cor0.col0 FROM tab0 AS cor0
----
166
34
56

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL col0 / - 16 + col2 + cor0.col0 FROM tab0 AS cor0
----
166
34
56

query I rowsort
SELECT DISTINCT col1 + 66 AS col1 FROM tab2 AS cor0
----
125
83
97

query I rowsort
SELECT DISTINCT col2 + - 84 FROM tab2 AS cor0
----
-46
-57
-58

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

query I rowsort
SELECT tab0.col1 + - 2 * 79 FROM tab0
----
-61
-67
-72

query I rowsort
SELECT - tab2.col0 + - ( - ( - col1 ) * col2 ) AS col2 FROM tab2
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT DISTINCT col2 DIV ( ( col1 ) ) col1 FROM tab2
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT col2 / ( ( col1 ) ) col1 FROM tab2
----
0
2

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

query I rowsort
SELECT + col2 + + ( col2 + + tab1.col0 ) FROM tab1
----
111
178
272

query I rowsort
SELECT + col0 * + col2 + col1 * col1 * col1 AS col0 FROM tab1
----
17738
4648
9877

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

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

query I rowsort
SELECT + col1 * 44 AS col2 FROM tab2
----
1364
2596
748

query I rowsort
SELECT DISTINCT 21 * + col2 AS col0 FROM tab1
----
1134
1197
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * + col2 col2 FROM tab2
----
2470
2565
3610

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 - + 58 col0 FROM tab2
----
-138
-138
-138

query I rowsort
SELECT 68 * col1 + col2 FROM tab2 AS cor0
----
1194
2135
4038

query I rowsort
SELECT - - 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + col2 + col0 + - tab2.col2 FROM tab2
----
7
78
79

query I rowsort
SELECT + - ( + col1 ) + - cor0.col2 + 18 * col0 AS col1 FROM tab2 AS cor0
----
1319
1367
68

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

query I rowsort
SELECT cor0.col1 + col2 + + cor0.col0 FROM tab0 AS cor0
----
133
143
262

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

query I rowsort
SELECT ALL 82 * col1 FROM tab2 AS cor0
----
1394
2542
4838

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

query I rowsort
SELECT 41 * + cor0.col2 FROM tab2 AS cor0
----
1066
1107
1558

query I rowsort
SELECT 80 * - cor0.col2 + + col2 + + col0 FROM tab2 AS cor0
----
-1976
-2126
-2923

query I rowsort
SELECT DISTINCT - col0 * col0 + + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + + 41 FROM tab0 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col2 + col2 * 10 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT - cor0.col1 * col1 * col2 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL 20 FROM tab0, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

query I rowsort
SELECT + 6 + 69 FROM tab1
----
75
75
75

query I rowsort
SELECT - 24 * 39 * col0 FROM tab2
----
-6552
-73008
-73944

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

skipif mysql # not compatible
query I rowsort label-696
SELECT + CAST ( NULL AS INTEGER ) / 43 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab2
----
35

query I rowsort
SELECT DISTINCT + 56 * ( tab0.col1 ) + ( col2 ) FROM tab0
----
4849
5178
5433

query I rowsort
SELECT ALL - 34 + - col0 AS col0 FROM tab0 cor0
----
-123
-58
-69

query I rowsort
SELECT ALL - - 49 + col1 * col0 FROM tab1 AS cor0
----
1089
127
689

query I rowsort
SELECT DISTINCT 10 + 68 * cor0.col0 FROM tab1 AS cor0
----
214
4362
5450

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

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

query I rowsort
SELECT ALL + - ( + col0 ) * - col0 + ( + col2 ) * + col0 + ( ( - col0 ) ) AS col0 FROM tab1 cor0
----
14000
168
7680

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

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

query I rowsort
SELECT ( + col0 ) + ( col0 + col2 ) AS col0 FROM tab2
----
182
196
41

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

query I rowsort
SELECT + 46 * col2 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT col2 * + col1 * 41 AS col2 FROM tab2 AS cor0
----
26486
34317
62894

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT DISTINCT + 90 DIV + col1 FROM tab1 AS cor0
----
3
6
9

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + 90 / + col1 FROM tab1 AS cor0
----
3
6
9

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

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

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

query I rowsort
SELECT - col2 + 95 FROM tab1 AS cor0
----
-1
38
41

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

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

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

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

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

query I rowsort
SELECT ALL col2 * - 48 AS col0 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT ALL + col0 * - 81 * + col2 FROM tab0 AS cor0
----
-2835
-591138
-64152

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

query I rowsort
SELECT - + col0 * 82 AS col0 FROM tab1 cor0
----
-246
-5248
-6560

query I rowsort
SELECT ALL + col0 - col0 * + col1 * + col2 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 32 col0 FROM tab0 cor0
----
-31
1
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 * col2 col0 FROM tab0 AS cor0
----
1175
6815
98

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

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL col2 / 99 AS col2 FROM tab0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT col0 DIV ( col0 + + col2 ) 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-728
SELECT col0 / ( col0 + + col2 ) col2 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT + 15 * cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 928aaf725c32823660515d7f1332f381

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

query I rowsort
SELECT - col0 + cor0.col2 - col1 * + col2 FROM tab1 AS cor0
----
-1232
-1353
-577

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

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

query I rowsort
SELECT + - 70 * + cor0.col0 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT - 1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT ALL col0 * 92 FROM tab1
----
276
5888
7360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 30 ) * + col1 col0 FROM tab2 AS cor0
----
-1770
-510
-930

query I rowsort
SELECT col1 + + 71 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT + 11 * - col0 + - col0 * - col2 * + col1 AS col1 FROM tab1 AS cor0
----
35776
4179
98960

query I rowsort
SELECT + + 84 * - col2 AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT DISTINCT 74 * - col1 * - col0 AS col1 FROM tab2 cor0
----
16058
340548
99382

onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT ALL cor0.col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL cor0.col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2

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

query I rowsort
SELECT ALL - 73 * col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

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

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

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

query I rowsort
SELECT DISTINCT - 77 + cor0.col0 FROM tab2 cor0
----
-70
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-749
SELECT - 86 * - col2 + 57 DIV - col1 AS col1 FROM tab2 AS cor0
----
2236
2321
3265

skipif mysql # not compatible
query I rowsort label-749
SELECT - 86 * - col2 + 57 / - col1 AS col1 FROM tab2 AS cor0
----
2236
2321
3265

query I rowsort
SELECT + + 87 + + col2 + 84 FROM tab2 AS cor0
----
197
198
209

onlyif mysql # use DIV operator for integer division
query I rowsort label-751
SELECT ALL - + 37 DIV - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - + 37 / - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT DISTINCT - 64 DIV 49 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT - 64 / 49 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-1

query I rowsort
SELECT 61 * tab1.col1 AS col2 FROM tab1
----
1586
610
793

query I rowsort
SELECT ALL 54 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

query I rowsort
SELECT DISTINCT col0 * - col2 + + 69 FROM tab1 AS cor0
----
-3579
-7611
-93

query I rowsort
SELECT + 11 * - col0 AS col2 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT ALL + ( - 47 ) AS col1 FROM tab1
----
-47
-47
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT ALL - 23 + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-23
-24
-41

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL - 23 + - col2 / col0 AS col0 FROM tab1 AS cor0
----
-23
-24
-41

query I rowsort
SELECT DISTINCT col0 * + col0 * 7 - + col0 * + cor0.col1 FROM tab1 AS cor0
----
-15
28032
43760

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col0 * col2 + CAST ( col1 AS REAL ) + + col1 FROM tab0 AS cor0
----
-620
-7116
159

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + + ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT DISTINCT col0 + - col1 DIV ( - col1 ) + ( 71 * col2 ) AS col0 FROM tab2
----
1925
2778

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT col0 + - col1 / ( - col1 ) + ( 71 * col2 ) AS col0 FROM tab2
----
1925
2778

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

query I rowsort
SELECT DISTINCT tab2.col0 * + ( - col1 ) * - col1 AS col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - + col0 - 36 * + col1 * + col1 FROM tab2 AS cor0
----
-10483
-125394
-34603

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

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

query I rowsort
SELECT col2 * + col2 + 7 * + col0 AS col1 FROM tab2 AS cor0
----
1222
1997
778

query I rowsort
SELECT - col0 * cor0.col2 + + 41 + + col1 AS col2 FROM tab1 AS cor0
----
-3597
-7626
-95

query I rowsort
SELECT + col0 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col1 + col2 * 77 AS col1 FROM tab0 AS cor0
----
174
2627
6405

query I rowsort
SELECT DISTINCT 69 FROM tab1, tab1 cor0
----
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT - ( + 77 ) DIV - col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-774
SELECT - ( + 77 ) / - col1 AS col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT ALL - col2 * + 43 AS col2 FROM tab1
----
-2322
-2451
-4128

query I rowsort
SELECT ALL - 72 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

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

query I rowsort
SELECT ALL - col1 * + col1 * cor0.col2 + + 99 FROM tab1 AS cor0
----
-16125
-36405
-5601

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-780
SELECT ALL CAST( col1 AS SIGNED ) FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT cor0.col2 + 90 + col2 AS col0 FROM tab1 AS cor0
----
198
204
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * - cor1.col1 col2 FROM tab2, tab1 cor0 CROSS JOIN tab2 cor1
----
27 values hashing to 98a62cde9cb036e44071d6c8a6c7e298

query I rowsort
SELECT DISTINCT - 63 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT DISTINCT + + col1 * 17 + cor0.col2 * - 32 + - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-288
5314
6255

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-788
SELECT ALL CAST( 6 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
102
186
354

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL CAST ( 6 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
102
186
354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-789
SELECT CAST( col1 AS SIGNED ) + + col0 * + 70 AS col0 FROM tab2 AS cor0
----
521
5519
5547

skipif mysql # not compatible
query I rowsort label-789
SELECT CAST ( col1 AS INTEGER ) + + col0 * + 70 AS col0 FROM tab2 AS cor0
----
521
5519
5547

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

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

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

query I rowsort
SELECT + + cor0.col1 * - col2 + 41 AS col0 FROM tab2 AS cor0
----
-1493
-605
-796

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

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

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT DISTINCT col2 + col1 * col0 + CAST( + col1 AS SIGNED ) DIV - col1 AS col0 FROM tab2
----
1380
243
4627

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT col2 + col1 * col0 + CAST ( + col1 AS INTEGER ) / - col1 AS col0 FROM tab2
----
1380
243
4627

query I rowsort
SELECT + 86 * - 14 + + col0 FROM tab0
----
-1115
-1169
-1180

query I rowsort
SELECT ALL - + col0 * - col0 + + col2 * - col1 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT ALL - col0 + 97 AS col1 FROM tab1 AS cor0
----
17
33
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 56 - - cor0.col0 col1 FROM tab2 AS cor0
----
-1378
-1505
-2049

query I rowsort
SELECT col0 - - col2 * col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + 82 + cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5991c127b9971bf727bb5e6df54863e2

query I rowsort
SELECT + col2 * col2 - + col0 * + col2 FROM tab1 AS cor0
----
-399
1536
2754

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT - + col1 - - cor0.col2 / - 84 col2 FROM tab1 AS cor0
----
-10
-14
-26

query I rowsort
SELECT + + col2 + + 25 * col1 FROM tab2 AS cor0
----
1501
463
802

onlyif mysql # use DIV operator for integer division
query I rowsort label-807
SELECT DISTINCT cor0.col0 DIV ( + 82 ) + col0 * + col1 * + col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT cor0.col0 / ( + 82 ) + col0 * + col1 * + col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-808
SELECT col0 + 41 * ( + col2 * CAST( + 63 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
139485
147295
248048

skipif mysql # not compatible
query I rowsort label-808
SELECT col0 + 41 * ( + col2 * CAST ( + 63 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
139485
147295
248048

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

query I rowsort
SELECT - col2 + 88 * col0 FROM tab2
----
589
6838
6914

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

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

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

query I rowsort
SELECT ALL col1 + 29 * col2 * col1 AS col2 FROM tab1
----
16540
36205
40742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 2 + - cor0.col2 col0 FROM tab2 AS cor0
----
-182
-196
-41

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col0 * 50 + - 77 + col0 AS col2 FROM tab0
----
1147
1708
4462

query I rowsort
SELECT ALL col1 * col2 * - col2 + col1 AS col0 FROM tab2
----
-22568
-24531
-39825

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

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

query I rowsort
SELECT DISTINCT - col1 + col1 * 81 FROM tab2 cor0
----
1360
2480
4720

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

query I rowsort
SELECT - 73 * col2 AS col1 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col1 + 71 AS col2 FROM tab1 AS cor0
----
-569
-7
-969

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 95 AS REAL ) FROM tab0
----
-95
-95
-95

query I rowsort
SELECT ALL 63 * + tab1.col1 + col2 AS col1 FROM tab1
----
1692
687
915

query I rowsort
SELECT ALL - 9 * + tab2.col0 + ( + col0 ) * col1 FROM tab2
----
154
3900
632

query I rowsort
SELECT ALL - col2 * - col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 67 * col1 AS col0 FROM tab0
----
-5762
-6097
-6499

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

skipif mysql # not compatible
query I rowsort label-830
SELECT - col1 * col1 / col2 + + col2 AS col0 FROM tab1 AS cor0
----
42
56
95

query I rowsort
SELECT DISTINCT 87 + - col1 AS col2 FROM tab1 AS cor0
----
61
74
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT 34 DIV - col0 + 17 AS col2 FROM tab0
----
16
17
17

skipif mysql # not compatible
query I rowsort label-832
SELECT 34 / - col0 + 17 AS col2 FROM tab0
----
16
17
17

query I rowsort
SELECT ALL - ( + 95 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT ALL 52 * 91 FROM tab0, tab2 AS cor0
----
9 values hashing to 80144708b855b6048e624c01ee165967

query I rowsort
SELECT ALL + col2 + - ( + col2 ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 32 * 99 col1 FROM tab1 AS cor0
----
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col2 FROM tab1 AS cor0
----
10
13
26

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT ALL + col1 DIV 25 + col0 AS col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL + col1 / 25 + col0 AS col0 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-840
SELECT DISTINCT + col1 DIV + 8 + 98 AS col0 FROM tab1
----
101
99

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT + col1 / + 8 + 98 AS col0 FROM tab1
----
101
99

query I rowsort
SELECT ALL + ( - col2 ) * col1 + - col0 + col1 FROM tab0 AS cor0
----
-2776
-35
-7460

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

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

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

query I rowsort
SELECT - - 49 * - ( + col1 ) + + cor0.col1 FROM tab1 AS cor0
----
-1248
-480
-624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-845
SELECT + CAST( 58 AS SIGNED ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
406
4524
4582

skipif mysql # not compatible
query I rowsort label-845
SELECT + CAST ( 58 AS INTEGER ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
406
4524
4582

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

query I rowsort
SELECT DISTINCT + col2 * col1 - col1 * + ( 62 ) FROM tab1 AS cor0
----
-208
-50
442

query I rowsort
SELECT ALL col1 * 96 + - col0 - ( - col1 ) * col0 AS col2 FROM tab0 cor0
----
10296
12672
16746

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

query I rowsort
SELECT ALL + - 19 + - col2 * + col0 FROM tab1 AS cor0
----
-181
-3667
-7699

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

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

query I rowsort
SELECT ALL + 64 * - col2 + + col2 FROM tab1 AS cor0
----
-3402
-3591
-6048

onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT DISTINCT col2 + - col1 - col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
20
47
83

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT col2 + - col1 - col1 / + col0 AS col0 FROM tab1 AS cor0
----
20
47
83

query I rowsort
SELECT col0 * - 91 * + col0 AS col1 FROM tab1
----
-372736
-582400
-819

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

skipif mysql # not compatible
query I rowsort label-856
SELECT + CAST ( col2 AS INTEGER ) * tab0.col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + col0 * - 46 + col2 AS col0 FROM tab2
----
-295
-3562
-3596

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

query I rowsort
SELECT 45 * ( col0 ) + - col2 + - col0 * - col0 FROM tab1 AS cor0
----
6919
90
9904

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

skipif mysql # not compatible
query I rowsort label-860
SELECT - col1 * - col0 / - cor0.col0 AS col2 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 * + col1 col1 FROM tab2
----
119652
51034
5859

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT DISTINCT col2 DIV 45 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT col2 / 45 FROM tab2 AS cor0
----
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-869
SELECT - - col2 - cor0.col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-869
SELECT - - col2 - cor0.col0 / - col1 AS col2 FROM tab2 AS cor0
----
27
27
42

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 + - col1 col1 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - 64 col1 FROM tab1 AS cor0
----
-1664
-640
-832

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

query I rowsort
SELECT ALL - col2 * - col2 + + col1 * col0 FROM tab0 AS cor0
----
14823
3153
3396

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + ( 91 ) * cor0.col0 col2 FROM tab1 AS cor0
----
327
5881
7376

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

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT - col2 * 80 + + col2 DIV - col2 FROM tab1 AS cor0
----
-4321
-4561
-7681

skipif mysql # not compatible
query I rowsort label-880
SELECT - col2 * 80 + + col2 / - col2 FROM tab1 AS cor0
----
-4321
-4561
-7681

query I rowsort
SELECT DISTINCT + col1 * ( - 23 ) FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT - 13 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT cor0.col0 + + 5 FROM tab2, tab0 AS cor0
----
9 values hashing to 60a733a98a4b453bf5ef8cf4226b762f

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

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

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT col2 * ( + tab0.col0 + - col0 ) / - ( col1 ) FROM tab0
----
0

query I rowsort
SELECT + 46 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT - - col1 * + col1 + + 71 DIV - 75 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-887
SELECT - - col1 * + col1 + + 71 / - 75 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to a283a98d14c34636d74b0e0b57633585

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

query I rowsort
SELECT tab2.col2 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9

query I rowsort
SELECT ALL + 49 + col2 FROM tab0
----
131
50
82

query I rowsort
SELECT DISTINCT + - col2 * + col1 * 74 AS col0 FROM tab1 AS cor0
----
-103896
-42180
-92352

query I rowsort
SELECT ALL - - cor0.col1 + + cor0.col1 AS col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - - 10 * + col2 + col0 FROM tab1 AS cor0
----
1040
543
634

query I rowsort
SELECT 53 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-896
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-896
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

skipif mysql # not compatible
query I rowsort label-899
SELECT col1 / - col0 - col0 FROM tab2
----
-11
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-900
SELECT ALL col2 * col1 DIV + col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL col2 * col1 / + col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col0 + col2 * ( col1 ) AS col0 FROM tab2 AS cor0
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 - + col1 col2 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 - col1 * cor0.col2 col2 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT - col2 * - 44 AS col2 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT DISTINCT - - col0 - + col2 * ( + col2 * cor0.col2 ) AS col1 FROM tab0 cor0
----
-35913
-551279
34

query I rowsort
SELECT + col2 - 64 * - tab1.col2 AS col2 FROM tab1
----
3510
3705
6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-907
SELECT - - CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-907
SELECT - - CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-7
-78
-79

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

query I rowsort
SELECT DISTINCT + 41 + - col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1493
-605
-796

onlyif mysql # use DIV operator for integer division
query I rowsort label-910
SELECT DISTINCT - ( col0 ) * 29 DIV - col0 AS col0 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - ( col0 ) * 29 / - col0 AS col0 FROM tab1 AS cor0
----
29

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-913
SELECT - 76 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-913
SELECT - 76 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 6 + col0 AS col1 FROM tab0 AS cor0
----
18
29
83

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT - - col0 + col1 * + 59 AS col2 FROM tab1 AS cor0
----
1537
654
847

query I rowsort
SELECT DISTINCT 64 * col1 FROM tab1
----
1664
640
832

query I rowsort
SELECT 68 + col2 AS col1 FROM tab2
----
106
94
95

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

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

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

query I rowsort
SELECT ALL - 28 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - col1 - 37 FROM tab1 AS cor0
----
-47
-50
-63

query I rowsort
SELECT DISTINCT col0 * - 10 FROM tab0 AS cor0
----
-240
-350
-890

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0 cor0
----
61

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

query I rowsort
SELECT ALL ( - 32 ) + - col2 * + col2 FROM tab0 AS cor0
----
-1121
-33
-6756

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

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

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

query I rowsort
SELECT ALL - cor0.col1 + 70 FROM tab1, tab0 AS cor0
----
9 values hashing to 5a41a4f9ec8e7842aff6ae7861607913

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * + ( 24 * col0 ) FROM tab1 AS cor0
----
-101088
-2396160
-875520

query I rowsort
SELECT 32 * + col0 FROM tab1 AS cor0
----
2048
2560
96

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

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

query I rowsort
SELECT + 98 AS col0 FROM tab0 AS cor0
----
98
98
98

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

query I rowsort
SELECT + + col1 + + 35 * col1 - col0 AS col1 FROM tab1 AS cor0
----
296
388
933

query I rowsort
SELECT - col0 * - col0 + + 95 + + col2 FROM tab2 AS cor0
----
171
6205
6374

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col0 * CAST ( - 76 AS REAL ) + + col0 FROM tab2 cor0
----
539
6006
6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-945
SELECT ALL + - col1 DIV cor0.col2 + - col1 * col1 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-183
-5334
-6111

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + - col1 / cor0.col2 + - col1 * col1 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-183
-5334
-6111

query I rowsort
SELECT ALL + 50 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL col2 + ( - col1 ) * + col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT + 96 * + col1 + - col0 DIV col1 AS col2 FROM tab0 AS cor0
----
8256
8736
9312

skipif mysql # not compatible
query I rowsort label-948
SELECT + 96 * + col1 + - col0 / col1 AS col2 FROM tab0 AS cor0
----
8256
8736
9312

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 + col0 + col1 col0 FROM tab1 cor0
----
-5
-50
14

query I rowsort
SELECT + col1 * 47 FROM tab2
----
1457
2773
799

query I rowsort
SELECT + tab1.col1 * ( ( col1 ) + col2 * col2 ) AS col0 FROM tab1
----
119977
32590
76492

onlyif mysql # use DIV operator for integer division
query I rowsort label-953
SELECT - col0 * + ( col1 ) + + col1 DIV + 48 FROM tab2
----
-1343
-217
-4601

skipif mysql # not compatible
query I rowsort label-953
SELECT - col0 * + ( col1 ) + + col1 / + 48 FROM tab2
----
-1343
-217
-4601

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

query I rowsort
SELECT + 47 + + 31 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT - 40 DIV - ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-957
SELECT - 40 / - ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-958
SELECT 69 + + cor0.col0 DIV col0 FROM tab1 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-958
SELECT 69 + + cor0.col0 / col0 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT ALL ( col0 + - col1 * - col1 ) FROM tab2
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT DISTINCT - ( 87 ) DIV - col2 FROM tab0
----
1
2
87

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - ( 87 ) / - col2 FROM tab0
----
1
2
87

query I rowsort
SELECT DISTINCT 86 * - 36 AS col2 FROM tab1
----
-3096

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-962
SELECT + CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-962
SELECT + CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38

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

query I rowsort
SELECT ALL + col0 * - 86 + - col2 * col0 * + col0 + tab0.col0 AS col0 FROM tab0
----
-21048
-4200
-657087

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

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

query I rowsort
SELECT + 92 * 86 * - col2 + 41 * - ( + col0 ) * - 96 FROM tab1 AS cor0
----
-199080
-415440
-444672

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

query I rowsort
SELECT 25 * col1 FROM tab0
----
2150
2275
2425

query I rowsort
SELECT ALL tab2.col1 + + ( col1 ) * + col0 AS col2 FROM tab2
----
1360
248
4661

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

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

query I rowsort
SELECT DISTINCT - col1 + 53 FROM tab1 cor0
----
27
40
43

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + - 90 col2 FROM tab1 cor0
----
-1130
-168
-730

query I rowsort
SELECT col1 + + col0 * 79 FROM tab0 AS cor0
----
1982
2862
7122

query I rowsort
SELECT ALL 71 * col0 + col1 * ( + col1 * - tab0.col1 ) FROM tab0
----
-634352
-747252
-910188

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

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

query I rowsort
SELECT ALL col2 * col2 + + 53 AS col2 FROM tab2 AS cor0
----
1497
729
782

query I rowsort
SELECT 71 - - col1 AS col0 FROM tab1 AS cor0
----
81
84
97

query I rowsort
SELECT ALL + col0 + - 8 FROM tab0 cor0
----
16
27
81

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

query I rowsort
SELECT DISTINCT col0 + + 19 AS col1 FROM tab1 AS cor0
----
22
83
99

query I rowsort
SELECT - col0 * - 7 + - 36 FROM tab0 AS cor0
----
132
209
587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 45 + + cor0.col1 col0 FROM tab2 AS cor0
----
1229
1246
1727

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

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

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

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

query I rowsort
SELECT DISTINCT - 45 * + col0 FROM tab2
----
-315
-3510
-3555

query I rowsort
SELECT ALL ( col1 ) - - col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT ( - col2 ) * - 19 + - col1 + - col1 AS col1 FROM tab2
----
376
451
688

query I rowsort
SELECT - 76 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-140
-156
-79

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

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

query I rowsort
SELECT ALL - 12 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1068
-288
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 + cor0.col2 col2 FROM tab0 cor0
----
119
168
87

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

query I rowsort
SELECT DISTINCT 36 * col0 AS col0 FROM tab2 AS cor0
----
252
2808
2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT cor0.col2 * ( - cor0.col2 + - ( - 55 ) ) DIV col1 col1 FROM tab1 cor0
----
-11
-302
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-998
SELECT cor0.col2 * ( - cor0.col2 + - ( - 55 ) ) / col1 col1 FROM tab1 cor0
----
-11
-302
2

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

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

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

query I rowsort
SELECT - cor0.col2 * 97 AS col0 FROM tab2 AS cor0
----
-2522
-2619
-3686

query I rowsort
SELECT ALL 43 FROM tab2, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1004
SELECT ALL + col0 * col0 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1128
490
7830

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + col0 * col0 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1128
490
7830

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

query I rowsort
SELECT DISTINCT - col0 * col0 * 18 + - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-115216
-213
-73721

onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT DISTINCT + col0 + + col2 * cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-94
33
6

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT + col0 + + col2 * cor0.col1 / - col0 FROM tab0 AS cor0
----
-94
33
6

query I rowsort
SELECT ALL + - col2 * cor0.col1 - + 72 FROM tab2 AS cor0
----
-1606
-718
-909

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

query I rowsort
SELECT ALL + 82 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT 22 + + 49 AS col0 FROM tab1
----
71
71
71

query I rowsort
SELECT - 51 * col0 + col1 FROM tab2
----
-326
-3919
-4012

query I rowsort
SELECT DISTINCT - 2 * - 43 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
86

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

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

query I rowsort
SELECT col1 * col0 * col1 + col1 AS col0 FROM tab1
----
13533
2054
6410

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * + 71 FROM tab0 AS cor0
----
-1671
-2484
-6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 * - 84 col2 FROM tab1 AS cor0
----
-1012
-2181
-776

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - - col0 / - cor0.col1 AS col2 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT - 27 + - col2 AS col1 FROM tab2 cor0
----
-53
-54
-65

query I rowsort
SELECT DISTINCT 47 + + col0 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT - - 50 + col1 * col2 + 99 * cor0.col1 FROM tab2 AS cor0
----
2379
3956
7425

onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT - - col1 * + col2 * + cor0.col2 - 83 DIV col2 col0 FROM tab1 cor0
----
119808
32489
75815

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1023
SELECT - - col1 * + col2 * + cor0.col2 - 83 / col2 col0 FROM tab1 cor0
----
119808
32489
75815

query I rowsort
SELECT tab2.col0 * tab2.col2 + - 9 AS col0 FROM tab2
----
180
2019
2993

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT + - cor0.col2 DIV 69 + + 59 FROM tab2 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-1026
SELECT + - cor0.col2 / 69 + + 59 FROM tab2 AS cor0
----
59
59
59

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

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

query I rowsort
SELECT - col2 + - 41 * + col2 FROM tab1 cor0
----
-2268
-2394
-4032

query I rowsort
SELECT DISTINCT - col2 * 29 AS col2 FROM tab0 cor0
----
-2378
-29
-957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + 45 * - col1 col0 FROM tab2 AS cor0
----
-1467
-2727
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + col2 col1 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 + + col1 col0 FROM tab2 cor0
----
-25
-53
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1033
SELECT - CAST( col2 AS SIGNED ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1033
SELECT - CAST ( col2 AS INTEGER ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL + - 21 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6105
-6262
-70

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT DISTINCT + col0 DIV + col2 - col0 * ( col0 ) FROM tab1 AS cor0
----
-4095
-6400
-9

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + col0 / + col2 - col0 * ( col0 ) FROM tab1 AS cor0
----
-4095
-6400
-9

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

query I rowsort
SELECT - 40 * + col0 FROM tab1
----
-120
-2560
-3200

query I rowsort
SELECT ALL + + 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

query I rowsort
SELECT col1 * + cor0.col0 + - col2 + + col1 FROM tab1 AS cor0
----
50
593
957

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

query I rowsort
SELECT ALL + 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL + - tab0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1045
SELECT col1 + CAST( col2 + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
195
205
264

skipif mysql # not compatible
query I rowsort label-1045
SELECT col1 + CAST ( col2 + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT cor0.col0 + + tab0.col2 * + ( - 27 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c4bdff8217367054ebd58c0da66fc220

onlyif mysql # use DIV operator for integer division
query I rowsort label-1047
SELECT ALL + col2 DIV - tab1.col0 + + col0 AS col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + col2 / - tab1.col0 + + col0 AS col0 FROM tab1
----
-15
64
79

query I rowsort
SELECT ALL - col1 * col1 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-6604
-9374
-983

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT + col2 * col2 DIV tab0.col0 FROM tab0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-1051
SELECT + col2 * col2 / tab0.col0 FROM tab0
----
0
45
75

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

query I rowsort
SELECT DISTINCT - 67 * col0 FROM tab2 cor0
----
-469
-5226
-5293

query I rowsort
SELECT ALL - 23 + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d8d607c934f9e5940a633767acdde2a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1055
SELECT ALL CAST( col1 AS SIGNED ) * col1 + 90 FROM tab0 AS cor0
----
7486
8371
9499

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL CAST ( col1 AS INTEGER ) * col1 + 90 FROM tab0 AS cor0
----
7486
8371
9499

query I rowsort
SELECT 81 FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT - col0 * col1 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-86
-91
-97

query I rowsort
SELECT - 99 + col0 AS col1 FROM tab0 AS cor0
----
-10
-64
-75

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

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

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

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

query I rowsort
SELECT DISTINCT 53 + + col0 FROM tab0 AS cor0
----
142
77
88

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

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

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

query I rowsort
SELECT - col1 * 46 + tab1.col2 * - col2 + + col2 * col0 AS col0 FROM tab1
----
-2134
-3950
-61

query I rowsort
SELECT ( ( tab0.col1 ) ) * + 51 AS col1 FROM tab0
----
4386
4641
4947

query I rowsort
SELECT ALL + 32 + + col0 + col1 FROM tab2
----
128
169
70

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 + tab0.col1 - - col1 * col2 col2 FROM tab0
----
120
2850
7479

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

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + - ( col1 ) * + 98 AS col1 FROM tab2 cor0
----
-1666
-3038
-5782

query I rowsort
SELECT ALL tab0.col1 * col0 + 54 FROM tab0
----
2118
3449
8153

query I rowsort
SELECT - col0 * + cor0.col2 + 48 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-14712
-3582
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - 54 * col0 col0 FROM tab0 AS cor0
----
-1329
-1891
-4888

query I rowsort
SELECT col1 * - ( + 13 + cor0.col1 ) FROM tab1 AS cor0
----
-1014
-230
-338

query I rowsort
SELECT - - cor0.col1 + col0 + - 95 AS col1 FROM tab0 AS cor0
----
15
37
85

query I rowsort
SELECT ALL - col2 * - col2 * - 94 AS col0 FROM tab1
----
-274104
-305406
-866304

query I rowsort
SELECT tab2.col1 + + 19 * + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to bdc7ddad66a9439f42cf333c6a779517

query I rowsort
SELECT DISTINCT - 69 + 49 AS col1 FROM tab0, tab1 AS cor0
----
-20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1083
SELECT CAST ( + 25 AS INTEGER ) col0 FROM tab1
----
25
25
25

query I rowsort
SELECT + 58 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

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

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

skipif mysql # not compatible
query I rowsort label-1086
SELECT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 35 + col0 * - col2 AS col1 FROM tab2 cor0
----
-154
-1993
-2967

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

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

query I rowsort
SELECT + 64 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1090
SELECT tab0.col0 - CAST( - col1 AS SIGNED ) * - col0 * - col0 FROM tab0
----
118860
49560
720900

skipif mysql # not compatible
query I rowsort label-1090
SELECT tab0.col0 - CAST ( - col1 AS INTEGER ) * - col0 * - col0 FROM tab0
----
118860
49560
720900

query I rowsort
SELECT ALL + col0 * + 17 FROM tab1
----
1088
1360
51

query I rowsort
SELECT - col1 * + 25 - 44 * col2 AS col1 FROM tab1
----
-2758
-3026
-4549

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 29 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
29

query I rowsort
SELECT + + col1 * + 31 AS col0 FROM tab0 AS cor0
----
2666
2821
3007

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

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

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

query I rowsort
SELECT ALL 32 * - col1 AS col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT - col1 + 93 AS col2 FROM tab2 AS cor0
----
34
62
76

query I rowsort
SELECT DISTINCT col0 + 78 * - col2 FROM tab1
----
-4209
-4382
-7408

query I rowsort
SELECT 73 * cor0.col1 - - col2 * + 35 FROM tab1 AS cor0
----
2725
3788
4309

query I rowsort
SELECT DISTINCT + - 33 + + cor0.col1 * + cor0.col0 FROM tab0 cor0
----
2031
3362
8066

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

query I rowsort
SELECT ( col1 ) * - col0 + + 66 FROM tab1 AS cor0
----
-12
-574
-974

query I rowsort
SELECT DISTINCT 52 + 24 * + col0 FROM tab1 AS cor0
----
124
1588
1972

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1106
SELECT CAST ( NULL AS INTEGER ) * - 94 - - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 62 * - col2 AS col2 FROM tab0 AS cor0
----
-2046
-5084
-62

query I rowsort
SELECT - 27 - + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-24
37
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1109
SELECT DISTINCT - CAST( ( col2 ) AS SIGNED ) + - 67 AS col1 FROM tab0 cor0
----
-100
-149
-68

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - CAST ( ( col2 ) AS INTEGER ) + - 67 AS col1 FROM tab0 cor0
----
-100
-149
-68

query I rowsort
SELECT DISTINCT - col2 + - 24 * col2 FROM tab2 cor0
----
-650
-675
-950

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col2 * col2 - col2 * - col0 col0 FROM tab1 AS cor0
----
-112128
-28842
-75654

query I rowsort
SELECT - + 89 + col1 FROM tab0 AS cor0
----
-3
2
8

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

query I rowsort
SELECT DISTINCT - + 1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1116
SELECT - 43 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1116
SELECT - 43 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * + col1 * col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-1118
SELECT DISTINCT col2 * col2 DIV - 30 AS col2 FROM tab0 AS cor0
----
-224
-36
0

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT col2 * col2 / - 30 AS col2 FROM tab0 AS cor0
----
-224
-36
0

query I rowsort
SELECT ALL - cor0.col0 + - 68 FROM tab0 AS cor0
----
-103
-157
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * - 77 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 82818a0ccfcaf41e425101189803d866

onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT + col0 + cor0.col2 DIV 33 FROM tab2 AS cor0
----
7
78
80

skipif mysql # not compatible
query I rowsort label-1121
SELECT + col0 + cor0.col2 / 33 FROM tab2 AS cor0
----
7
78
80

query I rowsort
SELECT DISTINCT - col2 * - ( 60 ) + col2 * - col1 * col2 FROM tab1 cor0
----
-114048
-29070
-72576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - ( - 45 ) col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL - 30 * 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 26c303b2428418ad661c726d334bc160

query I rowsort
SELECT DISTINCT 69 * + col1 FROM tab1
----
1794
690
897

query I rowsort
SELECT - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7
-78
-79

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

query I rowsort
SELECT ALL + cor0.col0 * - ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

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

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

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

query I rowsort
SELECT ALL - cor0.col0 * + 63 + - col1 * col0 + col2 FROM tab1 AS cor0
----
-213
-4615
-5984

query I rowsort
SELECT ALL - col1 + + col1 * + col1 * col0 AS col0 FROM tab2 cor0
----
22814
271459
6696

query I rowsort
SELECT col0 * - 68 AS col0 FROM tab2 AS cor0
----
-476
-5304
-5372

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

query I rowsort
SELECT 19 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

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

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

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT col2 + - col0 / - 15 FROM tab2 AS cor0
----
27
31
43

query I rowsort
SELECT - cor0.col0 * - ( - cor0.col1 ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + + col1 + 58 AS col2 FROM tab0 AS cor0
----
144
149
155

query I rowsort
SELECT DISTINCT - col0 * - 66 FROM tab1 AS cor0
----
198
4224
5280

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

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

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

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

query I rowsort
SELECT DISTINCT col1 * ( 15 ) * + col2 FROM tab2 AS cor0
----
12555
23010
9690

query I rowsort
SELECT col0 * + 28 FROM tab1
----
1792
2240
84

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1150
SELECT - col2 DIV + col2 + - 64 * tab1.col2 AS col2 FROM tab1
----
-3457
-3649
-6145

skipif mysql # not compatible
query I rowsort label-1150
SELECT - col2 / + col2 + - 64 * tab1.col2 AS col2 FROM tab1
----
-3457
-3649
-6145

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

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL - col2 / - col0 AS col1 FROM tab2
----
0
0
3

query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2, tab0, tab0 AS cor0
----
26
27
38

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

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

query I rowsort
SELECT ALL + 67 + col2 * tab2.col2 FROM tab2
----
1511
743
796

query I rowsort
SELECT + - 73 * col0 AS col1 FROM tab2 AS cor0
----
-511
-5694
-5767

query I rowsort
SELECT ALL col0 * col2 - 48 AS col2 FROM tab1 AS cor0
----
114
3600
7632

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

query I rowsort
SELECT col1 * - col1 + ( 61 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2150
-2730
-3492

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT DISTINCT + col1 DIV + col0 + 54 FROM tab2 cor0
----
54
58

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + col1 / + col0 + 54 FROM tab2 cor0
----
54
58

query I rowsort
SELECT - 96 * - 34 + col1 AS col0 FROM tab0 cor0
----
3350
3355
3361

query I rowsort
SELECT + 55 + - 11 * col2 AS col1 FROM tab0 cor0
----
-308
-847
44

query I rowsort
SELECT DISTINCT col2 + + 73 + col0 AS col1 FROM tab2
----
107
177
190

query I rowsort
SELECT - col1 + - col1 + col0 FROM tab2 AS cor0
----
-40
-55
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1165
SELECT col0 + - 39 * + 85 + col2 DIV col2 AS col1 FROM tab0
----
-3225
-3279
-3290

skipif mysql # not compatible
query I rowsort label-1165
SELECT col0 + - 39 * + 85 + col2 / col2 AS col1 FROM tab0
----
-3225
-3279
-3290

onlyif mysql # use DIV operator for integer division
query I rowsort label-1166
SELECT ALL - col0 + 46 * 97 DIV - col1 FROM tab0
----
-138
-75
-81

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - col0 + 46 * 97 / - col1 FROM tab0
----
-138
-75
-81

query I rowsort
SELECT - col1 + + col2 + col0 * + col0 FROM tab1
----
37
4143
6483

query I rowsort
SELECT - col1 + + tab0.col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1169
SELECT DISTINCT - col2 * col1 * col0 + - col2 DIV col1 AS col2 FROM tab2
----
-119652
-51036
-5859

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT - col2 * col1 * col0 + - col2 / col1 AS col2 FROM tab2
----
-119652
-51036
-5859

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

query I rowsort
SELECT DISTINCT + - col1 * 20 + - col1 AS col1 FROM tab0 AS cor0
----
-1806
-1911
-2037

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

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

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

query I rowsort
SELECT 72 + 21 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT - 63 * - col0 + + 34 FROM tab1
----
223
4066
5074

query I rowsort
SELECT ALL + col2 * + 12 AS col0 FROM tab0 cor0
----
12
396
984

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

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

skipif mysql # not compatible
query I rowsort label-1179
SELECT + col1 / ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL col2 * 98 + + col1 FROM tab0 AS cor0
----
195
3320
8127

query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1184
SELECT ( - col0 ) DIV + col2 - - col0 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-1184
SELECT ( - col0 ) / + col2 - - col0 FROM tab0
----
0
24
88

query I rowsort
SELECT - 22 * - 99 FROM tab0 AS cor0
----
2178
2178
2178

query I rowsort
SELECT 3 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

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

skipif mysql # not compatible
query I rowsort label-1188
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT col1 / - col0 AS col0 FROM tab1
----
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT + + 92 DIV + cor0.col0 FROM tab1 AS cor0
----
1
1
30

skipif mysql # not compatible
query I rowsort label-1192
SELECT + + 92 / + cor0.col0 FROM tab1 AS cor0
----
1
1
30

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

skipif mysql # not compatible
query I rowsort label-1193
SELECT + - col0 / 99 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - + col0 + + 24 FROM tab1 AS cor0
----
-40
-56
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-1195
SELECT + col0 * - 48 + - col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-142
-3067
-3833

skipif mysql # not compatible
query I rowsort label-1195
SELECT + col0 * - 48 + - col2 / - col1 AS col2 FROM tab1 AS cor0
----
-142
-3067
-3833

query I rowsort
SELECT + 12 * + col2 * col0 AS col0 FROM tab1
----
1944
43776
92160

query I rowsort
SELECT DISTINCT - - col2 + + col1 * col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
185
727
93

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

query I rowsort
SELECT + cor0.col0 * - 46 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 99200cd267c5d7d8665cbc170a4923b3

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

query I rowsort
SELECT ALL + col2 * + col0 + col0 * col0 AS col2 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT + 98 - tab2.col2 AS col2 FROM tab2
----
60
71
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT DISTINCT - col1 DIV + 29 + col1 FROM tab2
----
17
30
57

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT - col1 / + 29 + col1 FROM tab2
----
17
30
57

query I rowsort
SELECT + col2 * - 25 + col1 AS col0 FROM tab0
----
-1959
-739
72

query I rowsort
SELECT - 29 AS col0 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT ( tab0.col0 ) - 4 AS col0 FROM tab0
----
20
31
85

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

query I rowsort
SELECT col2 * col1 - col1 * 64 FROM tab0
----
-2666
-6111
1638

onlyif mysql # use DIV operator for integer division
query I rowsort label-1209
SELECT - col0 + + col1 DIV + ( + col1 ) FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-1209
SELECT - col0 + + col1 / + ( + col1 ) FROM tab0
----
-23
-34
-88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 55 * - col2 col1 FROM tab2
----
-37180
-40095
-79420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1212
SELECT col2 * CAST( - col2 + col1 * col0 AS SIGNED ) FROM tab1
----
1296
33231
90624

skipif mysql # not compatible
query I rowsort label-1212
SELECT col2 * CAST ( - col2 + col1 * col0 AS INTEGER ) FROM tab1
----
1296
33231
90624

query I rowsort
SELECT ( 51 ) AS col1 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT 79 * col1 * col2 FROM tab0 AS cor0
----
224202
589498
7663

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

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

query I rowsort
SELECT ALL + 97 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT DISTINCT + col1 * tab0.col0 + ( + col2 + ( col0 ) ) AS col1 FROM tab0
----
2121
3431
8270

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

query I rowsort
SELECT + col2 + - ( + 81 ) * + col2 FROM tab0
----
-2640
-6560
-80

query I rowsort
SELECT DISTINCT + 84 + col2 FROM tab2 cor0
----
110
111
122

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 * + col0 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL - col1 * + 70 FROM tab0 AS cor0
----
-6020
-6370
-6790

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( 26 ) FROM tab2 cor0
----
-26

query I rowsort
SELECT - + cor0.col1 * + 10 + col1 FROM tab0 AS cor0
----
-774
-819
-873

query I rowsort
SELECT DISTINCT 45 + 72 * cor0.col1 FROM tab0 AS cor0
----
6237
6597
7029

query I rowsort
SELECT 24 + col2 FROM tab2 AS cor0
----
50
51
62

query I rowsort
SELECT ALL + ( 24 ) * col1 FROM tab0 AS cor0
----
2064
2184
2328

query I rowsort
SELECT - tab1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT - 4 + - col2 FROM tab2
----
-30
-31
-42

query I rowsort
SELECT ALL + 55 * + 51 AS col0 FROM tab1 cor0
----
2805
2805
2805

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1237
SELECT - col1 DIV col1 + col2 * - ( col1 ) AS col0 FROM tab0 cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-1237
SELECT - col1 / col1 + col2 * - ( col1 ) AS col0 FROM tab0 cor0
----
-2839
-7463
-98

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

query I rowsort
SELECT 12 + 57 FROM tab2
----
69
69
69

query I rowsort
SELECT DISTINCT + 49 - - col1 AS col1 FROM tab1 AS cor0
----
59
62
75

query I rowsort
SELECT + col1 + + cor0.col1 FROM tab2 cor0
----
118
34
62

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

query I rowsort
SELECT - 18 * - col2 + + col1 AS col0 FROM tab2 AS cor0
----
517
527
701

onlyif mysql # use DIV operator for integer division
query I rowsort label-1244
SELECT DISTINCT - 6 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT - 6 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-2
0

query I rowsort
SELECT col1 * - col0 + col0 + 64 FROM tab1 AS cor0
----
-11
-512
-896

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

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

query I rowsort
SELECT ALL 46 * - col1 - + 92 AS col0 FROM tab1 AS cor0
----
-1288
-552
-690

query I rowsort
SELECT col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - 81 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-17
-78

query I rowsort
SELECT ALL 12 + - col0 - col2 FROM tab2 AS cor0
----
-105
-22
-92

query I rowsort
SELECT DISTINCT 66 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1159
-510
-7855

query I rowsort
SELECT - 20 AS col0 FROM tab0
----
-20
-20
-20

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

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL CAST ( col0 AS INTEGER ) + - tab2.col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 8 * col1 AS col2 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT - col0 * + 54 FROM tab0 cor0
----
-1296
-1890
-4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1256
SELECT DISTINCT col0 DIV + 86 + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT col0 / + 86 + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

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

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

query I rowsort
SELECT - col0 - 76 AS col1 FROM tab1 AS cor0
----
-140
-156
-79

query I rowsort
SELECT DISTINCT + + col0 + + 84 FROM tab1 AS cor0
----
148
164
87

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

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

query I rowsort
SELECT DISTINCT - col0 * 63 FROM tab1 cor0
----
-189
-4032
-5040

query I rowsort
SELECT DISTINCT + + col2 * + col2 FROM tab2 AS cor0
----
1444
676
729

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

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

query I rowsort
SELECT ALL + col0 * 91 FROM tab0 AS cor0
----
2184
3185
8099

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT ALL - - col1 + + col2 DIV col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL - - col1 + + col2 / col0 FROM tab1 AS cor0
----
10
14
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1270
SELECT + col2 * - col1 - col2 DIV + 26 FROM tab2
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-1270
SELECT + col2 * - col1 - col2 / + 26 FROM tab2
----
-1535
-647
-838

query I rowsort
SELECT + + cor0.col2 + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT DISTINCT - col1 DIV ( + 24 ) AS col0 FROM tab0 AS cor0
----
-3
-4

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - col1 / ( + 24 ) AS col0 FROM tab0 AS cor0
----
-3
-4

query I rowsort
SELECT + + col1 * ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1274
SELECT + tab1.col2 * tab1.col2 DIV tab1.col2 + + col0 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1274
SELECT + tab1.col2 * tab1.col2 / tab1.col2 + + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - - 14 * 97 AS col0 FROM tab0 AS cor0
----
1358
1358
1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 89 col2 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT DISTINCT - + col1 * col0 + 83 FROM tab1 AS cor0
----
-557
-957
5

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

query I rowsort
SELECT + col1 + - ( 46 ) * - col2 FROM tab1 AS cor0
----
2510
2632
4429

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

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

skipif mysql # not compatible
query I rowsort label-1281
SELECT + col0 / + ( col1 * - cor0.col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * 84 * col1 FROM tab0 cor0
----
238392
626808
8148

query I rowsort
SELECT + - 20 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

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

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

query I rowsort
SELECT + + col0 + 49 - cor0.col0 FROM tab0 AS cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col1 FROM tab2, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * col1 col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + + 13 AS col0 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT + col0 * - col1 * ( - col0 ) FROM tab1 AS cor0
----
234
40960
83200

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

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

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

query I rowsort
SELECT ALL col1 * col0 * col1 AS col1 FROM tab0
----
177504
329315
737009

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

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

query I rowsort
SELECT DISTINCT - tab1.col1 * - col2 AS col2 FROM tab1
----
1248
1404
570

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( - col1 * col2 )
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1301
SELECT - col2 + col2 DIV col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-1301
SELECT - col2 + col2 / col2 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT 56 * col0 FROM tab2 AS cor0
----
392
4368
4424

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

skipif mysql # not compatible
query I rowsort
SELECT 68 * col0 * + CAST ( col2 AS REAL ) AS col0 FROM tab1
----
11016
248064
522240

query I rowsort
SELECT ALL + col1 + + ( - 40 ) + col1 AS col0 FROM tab2 AS cor0
----
-6
22
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
90

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + tab2.col0 + 51 AS col2 FROM tab2
----
129
130
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1309
SELECT - col0 DIV - 21 - 79 FROM tab1
----
-76
-76
-79

skipif mysql # not compatible
query I rowsort label-1309
SELECT - col0 / - 21 - 79 FROM tab1
----
-76
-76
-79

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
29
74
93

query I rowsort
SELECT - col1 + - 52 AS col2 FROM tab0 cor0
----
-138
-143
-149

query I rowsort
SELECT DISTINCT + ( + col0 ) * tab0.col2 AS col0 FROM tab0
----
35
7298
792

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

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

query I rowsort
SELECT + 11 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359

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

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

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

query I rowsort
SELECT col0 + - 8 AS col0 FROM tab1 AS cor0
----
-5
56
72

query I rowsort
SELECT 92 - + col0 AS col0 FROM tab1 AS cor0
----
12
28
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT - col2 DIV col0 + + col1 FROM tab0 cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-1320
SELECT - col2 / col0 + + col1 FROM tab0 cor0
----
85
91
97

query I rowsort
SELECT - 21 * - col2 AS col2 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT - 58 + col1 AS col0 FROM tab1 AS cor0
----
-32
-45
-48

query I rowsort
SELECT ALL 89 + - col1 * + col2 * + col2 AS col0 FROM tab1
----
-119719
-32401
-75727

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

skipif mysql # not compatible
query I rowsort label-1324
SELECT + ( + col0 ) / - col2 FROM tab1
----
-1
0
0

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col2 col0 FROM tab0 AS cor0
----
119
173
98

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

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

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

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

query I rowsort
SELECT ALL + tab1.col1 + col1 + tab1.col2 AS col2 FROM tab1
----
106
122
77

query I rowsort
SELECT ALL + col1 + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * - col0 * + col2 col2 FROM tab1
----
36480
4212
99840

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col1 + - col0 + col1 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 + - cor0.col0 col1 FROM tab0 AS cor0
----
-118
-53
-64

query I rowsort
SELECT DISTINCT - ( col2 ) + col1 * col0 * + col0 FROM tab2 AS cor0
----
106059
1492
358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT + 33 * col1 DIV + col1 + - col1 col0 FROM tab0 AS cor0
----
-53
-58
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1343
SELECT + 33 * col1 / + col1 + - col1 col0 FROM tab0 AS cor0
----
-53
-58
-64

query I rowsort
SELECT ( - col1 ) * col1 - col2 * col2 * + col0 FROM tab2 AS cor0
----
-114365
-56209
-6064

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

query I rowsort
SELECT DISTINCT - col2 - + tab2.col0 * + col2 AS col1 FROM tab2
----
-2054
-216
-3040

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

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

query I rowsort
SELECT DISTINCT - tab2.col2 * + col0 * - col1 + + col0 FROM tab2
----
119730
51113
5866

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

query I rowsort
SELECT + ( - col2 ) + + col1 + + col1 AS col0 FROM tab0
----
100
139
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-1351
SELECT ALL col1 + col1 * col0 DIV col0 AS col2 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL col1 + col1 * col0 / col0 AS col2 FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * - col0 - - col0 col1 FROM tab0 AS cor0
----
1958
528
770

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1355
SELECT col2 DIV + col1 + tab0.col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1355
SELECT col2 / + col1 + tab0.col1 FROM tab0
----
86
91
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col1 + col1 )
----

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

query I rowsort
SELECT col1 * col2 * col2 AS col1 FROM tab1
----
119808
32490
75816

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

query I rowsort
SELECT ALL - col0 + col2 - + col2 AS col0 FROM tab2
----
-7
-78
-79

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * + tab0.col1 * + col1 AS col0 FROM tab0
----
-177504
-329315
-737009

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1366
SELECT ALL col1 DIV col0 + col1 * col1 DIV + cor0.col2 FROM tab1 cor0
----
1
1
20

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL col1 / col0 + col1 * col1 / + cor0.col2 FROM tab1 cor0
----
1
1
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT tab1.col1 DIV col2 + col0 * col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1367
SELECT tab1.col1 / col2 + col0 * col2 FROM tab1
----
162
3648
7680

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( col1 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT - col2 DIV - col0 + + col1 AS col2 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT - col2 / - col0 + + col1 AS col2 FROM tab1
----
10
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 - col0 col1 FROM tab0
----
0
7209
768

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT ALL - col2 DIV - col1 + col2 col2 FROM tab1
----
103
56
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - col2 / - col1 + col2 col2 FROM tab1
----
103
56
62

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL BETWEEN tab1.col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * + col2 - - col2 col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - col2 * col2 + + col0 FROM tab1
----
-2913
-3185
-9136

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) BETWEEN + col0 / + col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT DISTINCT - col2 * col2 DIV + tab2.col0 AS col0 FROM tab2
----
-104
-18
-8

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - col2 * col2 / + tab2.col0 AS col0 FROM tab2
----
-104
-18
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT + col1 DIV col0 + tab2.col2 + - col1 FROM tab2
----
-33
0
21

skipif mysql # not compatible
query I rowsort label-1383
SELECT + col1 / col0 + tab2.col2 + - col1 FROM tab2
----
-33
0
21

query I rowsort
SELECT ALL col0 * - tab0.col2 * col2 FROM tab0 WHERE ( + col1 ) <= col2 * col2 + col0
----
-26136
-598436

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

query I rowsort
SELECT DISTINCT - col2 * - col1 * - col1 FROM tab1 cor0
----
-16224
-36504
-5700

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1389
SELECT DISTINCT + col0 * col0 - col1 * + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + col0 * col0 - col1 * + col2 / - cor0.col2 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-1390
SELECT ALL col0 * + col0 + cor0.col1 DIV + col1 + col1 * col2 AS col0 FROM tab0 cor0
----
1323
15384
3415

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL col0 * + col0 + cor0.col1 / + col1 + col1 * col2 AS col0 FROM tab0 cor0
----
1323
15384
3415

query I rowsort
SELECT DISTINCT - + col1 * + col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

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

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

query I rowsort
SELECT DISTINCT col0 * + col2 - + col0 FROM tab1 AS cor0
----
159
3584
7600

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

query I rowsort
SELECT DISTINCT col1 + cor0.col0 + + col0 AS col0 FROM tab0 cor0
----
134
167
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT cor0.col0 + + cor0.col2 + - 27 DIV cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3912990c2bf98113e03d8e657383b95f

skipif mysql # not compatible
query I rowsort label-1397
SELECT cor0.col0 + + cor0.col2 + - 27 / cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3912990c2bf98113e03d8e657383b95f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1398
SELECT CAST( col0 AS SIGNED ) * col0 * 40 AS col0 FROM tab0
----
23040
316840
49000

skipif mysql # not compatible
query I rowsort label-1398
SELECT CAST ( col0 AS INTEGER ) * col0 * 40 AS col0 FROM tab0
----
23040
316840
49000

query I rowsort
SELECT DISTINCT - 8 * + 69 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7948
-8833
-9961

query I rowsort
SELECT + + 60 * + col0 AS col1 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT - - 51 + col2 FROM tab2 AS cor0
----
77
78
89

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

skipif mysql # not compatible
query I rowsort label-1402
SELECT + + col0 * - CAST ( + 17 AS INTEGER ) - col2 FROM tab0 AS cor0
----
-1595
-441
-596

query I rowsort
SELECT ALL col0 * - ( 55 ) FROM tab1 AS cor0
----
-165
-3520
-4400

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

query I rowsort
SELECT - - col1 + - 51 AS col1 FROM tab2 AS cor0
----
-20
-34
8

query I rowsort
SELECT + col0 + + col1 + col2 AS col1 FROM tab0 AS cor0
----
133
143
262

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

skipif mysql # not compatible
query I rowsort label-1407
SELECT col1 * - CAST ( col2 AS INTEGER ) + col1 + - 36 FROM tab1 cor0
----
-1271
-1414
-596

query I rowsort
SELECT ALL col1 * ( col2 ) + + col2 * 57 FROM tab2 AS cor0
----
2376
2812
3016

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

query I rowsort
SELECT col0 + + 53 AS col0 FROM tab0 AS cor0
----
142
77
88

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

skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col0 * + 98 AS col2 FROM tab2
----
686
7644
7742

query I rowsort
SELECT - - 97 * col2 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT - 1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT - 47 * - ( col1 ) * ( 3 ) - cor0.col0 * + ( col2 ) FROM tab0 AS cor0
----
11334
13642
5533

query I rowsort
SELECT + - cor0.col0 * - col1 + col1 + col0 FROM tab1 AS cor0
----
107
1133
714

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

query I rowsort
SELECT - 75 * - 96 FROM tab1 AS cor0
----
7200
7200
7200

query I rowsort
SELECT ALL + - cor0.col0 + - 67 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to b148150ed58169cab5024c36c6dd6ad5

query I rowsort
SELECT - 38 * 7 + col2 AS col1 FROM tab1 AS cor0
----
-170
-209
-212

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

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

query I rowsort
SELECT DISTINCT - ( 66 ) * col2 AS col0 FROM tab2 AS cor0
----
-1716
-1782
-2508

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

query I rowsort
SELECT - 72 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT - - 88 FROM tab1 AS cor0
----
88
88
88

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

query I rowsort
SELECT DISTINCT - col2 + - tab0.col0 * + tab0.col0 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT ALL - 47 * + tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6a4b377ab8f27108c603d7d7a27f734d

query I rowsort
SELECT ALL col0 * - col2 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-119711
-51051
-5890

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( + col2 ) * + col1 col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT col0 * ( 73 ) AS col0 FROM tab2
----
511
5694
5767

onlyif mysql # use DIV operator for integer division
query I rowsort label-1434
SELECT DISTINCT + col1 * - col1 * + col2 - - tab2.col0 * + col1 DIV tab2.col1 AS col1 FROM tab2
----
-10903
-25940
-90428

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT + col1 * - col1 * + col2 - - tab2.col0 * + col1 / tab2.col1 AS col1 FROM tab2
----
-10903
-25940
-90428

query I rowsort
SELECT DISTINCT col1 - + 20 * - col1 AS col2 FROM tab2
----
1239
357
651

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1436
SELECT col2 / + col0 col1 FROM tab1
----
0
1
18

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

query I rowsort
SELECT ALL - tab2.col0 + cor0.col1 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 28f70a38d22725ee756ac68dbc5b6101

query I rowsort
SELECT ALL col0 * - col2 - ( + col1 ) * - tab0.col1 AS col0 FROM tab0
----
6604
9374
983

query I rowsort
SELECT tab2.col1 + - 57 + - col0 FROM tab2
----
-119
-33
-76

query I rowsort
SELECT + 18 + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 - - col0 col0 FROM tab0
----
34
45
99

query I rowsort
SELECT DISTINCT - - cor0.col2 * - cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + - 4 FROM tab2 AS cor0
----
1339
213
4598

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

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

query I rowsort
SELECT DISTINCT + 48 + + col2 AS col2 FROM tab0 AS cor0
----
130
49
81

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

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

query I rowsort
SELECT ALL - + col2 + - col0 * col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-370
-474578
-493077

onlyif mysql # use DIV operator for integer division
query I rowsort label-1450
SELECT - col0 + + col1 DIV + 34 FROM tab0 AS cor0
----
-22
-33
-87

skipif mysql # not compatible
query I rowsort label-1450
SELECT - col0 + + col1 / + 34 FROM tab0 AS cor0
----
-22
-33
-87

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

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

query I rowsort
SELECT ALL - + cor0.col0 * - 96 FROM tab1 AS cor0
----
288
6144
7680

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

query I rowsort
SELECT ALL - + col0 * col2 + - 90 AS col0 FROM tab2 AS cor0
----
-2118
-279
-3092

query I rowsort
SELECT DISTINCT + + col2 - 7 AS col1 FROM tab0 cor0
----
-6
26
75

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

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

skipif mysql # not compatible
query I rowsort label-1457
SELECT + col1 * + col1 + 70 / cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1458
SELECT ALL - 3 * col1 - + tab0.col0 DIV + col2 AS col1 FROM tab0
----
-258
-274
-326

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL - 3 * col1 - + tab0.col0 / + col2 AS col1 FROM tab0
----
-258
-274
-326

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1459
SELECT cor0.col0 * CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 13 + - col0 FROM tab0 AS cor0
----
-22
405
977

query I rowsort
SELECT cor0.col0 * - ( col0 + col1 ) AS col2 FROM tab0 AS cor0
----
-16020
-2640
-4620

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab2, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 * + 14 FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT - 30 * ( + col0 ) FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT DISTINCT - 54 * - col0 AS col1 FROM tab2 AS cor0
----
378
4212
4266

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 4 + - col0 AS REAL ) FROM tab0
----
-20
-31
-85

query I rowsort
SELECT ALL + col1 * col1 * + col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT - + col1 * - 28 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT - 25 * + col0 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT DISTINCT + col1 - + 93 FROM tab0 AS cor0
----
-2
-7
4

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - ( col2 ) AS REAL ) + - 13 AS col0 FROM tab2 cor0
----
13
14
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1473
SELECT DISTINCT + + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59

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

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

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL cor0.col2 + col0 / col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - 46 * col0 * 92 AS col1 FROM tab2 AS cor0
----
-29624
-330096
-334328

query I rowsort
SELECT + 84 * col2 * col0 - cor0.col2 FROM tab0 AS cor0
----
2939
612950
66495

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

query I rowsort
SELECT col2 + 47 AS col0 FROM tab1
----
101
104
143

query I rowsort
SELECT DISTINCT ( 29 ) AS col0 FROM tab0
----
29

query I rowsort
SELECT DISTINCT tab0.col1 * - col2 * col1 AS col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - col0 * + col1 + col2 * - col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-1483
SELECT - 97 DIV + col0 FROM tab1 AS cor0
----
-1
-1
-32

skipif mysql # not compatible
query I rowsort label-1483
SELECT - 97 / + col0 FROM tab1 AS cor0
----
-1
-1
-32

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab1 cor0
----
-59

query I rowsort
SELECT - tab2.col2 FROM tab2, tab0 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1488
SELECT - col1 + col2 + CAST( col2 + col2 AS SIGNED ) FROM tab2
----
19
50
97

skipif mysql # not compatible
query I rowsort label-1488
SELECT - col1 + col2 + CAST ( col2 + col2 AS INTEGER ) FROM tab2
----
19
50
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT ALL tab1.col2 DIV + col2 + 33 AS col2 FROM tab1
----
34
34
34

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL tab1.col2 / + col2 + 33 AS col2 FROM tab1
----
34
34
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1491
SELECT ALL 83 DIV + col1 + + col2 DIV - ( + col0 ) + + col1 AS col0 FROM tab1
----
11
18
18

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL 83 / + col1 + + col2 / - ( + col0 ) + + col1 AS col0 FROM tab1
----
11
18
18

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT ALL + col1 + + tab0.col2 DIV + tab0.col2 AS col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + col1 + + tab0.col2 / + tab0.col2 AS col1 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL col0 + - 83 FROM tab0
----
-48
-59
6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT col0 + 52 * col1 DIV - col0 FROM tab2
----
-223
39
68

skipif mysql # not compatible
query I rowsort label-1499
SELECT col0 + 52 * col1 / - col0 FROM tab2
----
-223
39
68

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

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

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

query I rowsort
SELECT tab1.col2 * - tab1.col1 + - 63 FROM tab1
----
-1311
-1467
-633

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

query I rowsort
SELECT DISTINCT col0 * 19 + - col0 AS col0 FROM tab2
----
126
1404
1422

query I rowsort
SELECT DISTINCT col1 + - 8 + - col1 AS col2 FROM tab0
----
-8

query I rowsort
SELECT cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 08000767d0a951e4a7a7f8edda07fb64

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1511
SELECT - + ( col0 ) / - col2 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - - 88 AS col2 FROM tab1 AS cor0
----
88
88
88

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

query I rowsort
SELECT DISTINCT col2 * + ( + col0 * - 58 ) + + col2 * - col0 * col0 FROM tab2 cor0
----
-12285
-275808
-411274

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( + 46 AS REAL ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT + - col2 * + 45 AS col0 FROM tab1 AS cor0
----
-2430
-2565
-4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1517
SELECT ALL - CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL 7 * + col2 AS col0 FROM tab0 AS cor0
----
231
574
7

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

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - + CAST ( NULL AS REAL ) + 84 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT col0 + - tab2.col2 * ( - 63 ) + + tab2.col0 AS col0 FROM tab2
----
1715
1794
2552

query I rowsort
SELECT DISTINCT - 29 + col1 FROM tab1
----
-16
-19
-3

query I rowsort
SELECT + col2 * + 22 AS col2 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT - cor0.col2 * + 38 + ( col0 * col1 + + col2 ) AS col2 FROM tab0 AS cor0
----
3358
5065
843

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1531
SELECT CAST( - 36 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

skipif mysql # not compatible
query I rowsort label-1531
SELECT CAST ( - 36 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1532
SELECT + + cor0.col0 * 37 DIV + col1 AS col0 FROM tab0 cor0
----
10
13
36

skipif mysql # not compatible
query I rowsort label-1532
SELECT + + cor0.col0 * 37 / + col1 AS col0 FROM tab0 cor0
----
10
13
36

query I rowsort
SELECT col1 + - 87 FROM tab1 AS cor0
----
-61
-74
-77

query I rowsort
SELECT + col2 * col2 + 64 * col0 AS col2 FROM tab0 cor0
----
12420
2241
2625

query I rowsort
SELECT col1 + + col0 * 28 FROM tab2 AS cor0
----
2229
2243
227

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

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

query I rowsort
SELECT col1 * + 64 + 65 AS col1 FROM tab0 AS cor0
----
5569
5889
6273

query I rowsort
SELECT - col0 + col0 * 36 AS col0 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT tab1.col2 + - 88 FROM tab1
----
-31
-34
8

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 * col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - 52 * - 16 + col1 AS col0 FROM tab1 AS cor0
----
842
845
858

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

query I rowsort
SELECT DISTINCT col2 + - 64 AS col0 FROM tab2 AS cor0
----
-26
-37
-38

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

query I rowsort
SELECT DISTINCT + 2 - col2 FROM tab2 AS cor0
----
-24
-25
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT 56 DIV col0 FROM tab2
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1550
SELECT 56 / col0 FROM tab2
----
0
0
8

query I rowsort
SELECT DISTINCT + + ( + col0 ) + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

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

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

query I rowsort
SELECT + col0 * col1 - - ( - col2 * + col0 + + 15 ) FROM tab0 AS cor0
----
1287
3375
816

query I rowsort
SELECT + col2 * + col0 + col1 - - col0 AS col0 FROM tab1 AS cor0
----
191
3722
7773

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1556
SELECT col2 * - cor0.col2 * CAST( col1 AS SIGNED ) FROM tab2 cor0
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-1556
SELECT col2 * - cor0.col2 * CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
-22599
-24548
-39884

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

query I rowsort
SELECT ( cor0.col2 ) * 99 FROM tab0 AS cor0
----
3267
8118
99

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

query I rowsort
SELECT + cor0.col2 * 59 * - col1 FROM tab2 cor0
----
-38114
-49383
-90506

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

query I rowsort
SELECT + col2 * 85 FROM tab2 cor0
----
2210
2295
3230

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

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

query I rowsort
SELECT + - col0 - 34 AS col2 FROM tab2 AS cor0
----
-112
-113
-41

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

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

query I rowsort
SELECT + 21 * - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 94672f86f13288ebf1957fd941c067dd

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1568
SELECT + cor0.col0 + 94 DIV + col0 AS col1 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-1568
SELECT + cor0.col0 + 94 / + col0 AS col1 FROM tab0 AS cor0
----
27
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1569
SELECT + - ( + 90 ) * col2 DIV 56 AS col0 FROM tab1 AS cor0
----
-154
-86
-91

skipif mysql # not compatible
query I rowsort label-1569
SELECT + - ( + 90 ) * col2 / 56 AS col0 FROM tab1 AS cor0
----
-154
-86
-91

query I rowsort
SELECT 57 + + col1 * + col0 AS col0 FROM tab0 cor0
----
2121
3452
8156

query I rowsort
SELECT ALL - 65 * tab0.col0 AS col2 FROM tab0
----
-1560
-2275
-5785

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1573
SELECT + 27 DIV col1 AS col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1573
SELECT + 27 / col1 AS col1 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 72 * col1 AS col2 FROM tab2
----
1224
2232
4248

query I rowsort
SELECT ( ( col0 ) ) - col0 AS col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - 19 * - cor0.col1 - col0 AS col1 FROM tab2 AS cor0
----
1043
244
582

onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT ALL 48 - + col0 DIV col0 FROM tab2 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL 48 - + col0 / col0 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL col0 * col1 - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT col1 * - col0 - - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col0 * + 2 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + 68 + + tab2.col2 FROM tab2, tab2 AS cor0
----
106
94
95

query I rowsort
SELECT ALL 95 * - col2 + col1 FROM tab0
----
-3049
-7699
2

query I rowsort
SELECT ALL - ( - col0 ) + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - tab1.col0 + + 27 * col2 AS col1 FROM tab1
----
1455
1475
2512

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

query I rowsort
SELECT DISTINCT - ( 32 ) FROM tab0 AS cor0
----
-32

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

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL col2 / + col0 + col2 FROM tab0 AS cor0
----
1
34
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1589
SELECT DISTINCT CAST( + col2 AS SIGNED ) + - col0 + 16 FROM tab1 AS cor0
----
32
67
9

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - col0 + 16 FROM tab1 AS cor0
----
32
67
9

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

query I rowsort
SELECT 17 - col1 * + col0 FROM tab0 AS cor0
----
-2047
-3378
-8082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 * - col1 col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + 50 + - col0 + + cor0.col1 FROM tab0 AS cor0
----
112
112
52

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

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

query I rowsort
SELECT 5 + col2 AS col2 FROM tab1
----
101
59
62

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

query I rowsort
SELECT ALL + 47 * + col2 FROM tab1 cor0
----
2538
2679
4512

query I rowsort
SELECT ( - cor0.col2 ) * + ( - 3 ) FROM tab1 AS cor0
----
162
171
288

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + ( - col2 + col0 * cor0.col0 ) FROM tab2 AS cor0
----
105451
357422
682

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

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

query I rowsort
SELECT + col2 + + 54 AS col2 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT + + col2 * 18 FROM tab2 AS cor0
----
468
486
684

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - 17 col0 FROM tab0 AS cor0
----
18
7
72

query I rowsort
SELECT ALL col1 * ( cor0.col0 * - col0 ) - col1 AS col1 FROM tab2 AS cor0
----
-106114
-1550
-359015

query I rowsort
SELECT ALL - 66 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT col1 + col1 * - ( + col2 ) * + 16 AS col1 FROM tab2 AS cor0
----
-10319
-13361
-24485

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

query I rowsort
SELECT ALL - + col1 * ( + col1 + col2 * col1 ) AS col1 FROM tab0 AS cor0
----
-18818
-251464
-687323

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT DISTINCT col2 * ( col1 ) + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

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

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

query I rowsort
SELECT ALL + cor0.col0 * - 20 * col2 FROM tab1 AS cor0
----
-153600
-3240
-72960

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

query I rowsort
SELECT + cor0.col0 * 79 AS col0 FROM tab0 cor0
----
1896
2765
7031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1619
SELECT CAST( + tab2.col0 AS SIGNED ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1619
SELECT CAST ( + tab2.col0 AS INTEGER ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( 23 * col2 ) col0 FROM tab1
----
1245
1375
2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * + 98 + + col1 col1 FROM tab0 cor0
----
2471
3528
8895

onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT - 96 + + cor0.col2 DIV col1 FROM tab2 cor0
----
-94
-96
-96

skipif mysql # not compatible
query I rowsort label-1623
SELECT - 96 + + cor0.col2 / col1 FROM tab2 cor0
----
-94
-96
-96

query I rowsort
SELECT ALL ( col0 ) * - 43 AS col2 FROM tab2 AS cor0
----
-301
-3354
-3397

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

query I rowsort
SELECT + col2 + - col0 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT DISTINCT - col2 * + col2 + - col0 * col0 DIV col0 FROM tab1 cor0
----
-2919
-3313
-9296

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT - col2 * + col2 + - col0 * col0 / col0 FROM tab1 cor0
----
-2919
-3313
-9296

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1632
SELECT DISTINCT col2 DIV col2 + - 71 AS col0 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT col2 / col2 + - 71 AS col0 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT - 22 - - 17 * col1 FROM tab2
----
267
505
981

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

query I rowsort
SELECT DISTINCT + col0 + + col0 + + col1 AS col1 FROM tab2
----
175
215
45

query I rowsort
SELECT ALL 88 + col1 + + col1 AS col0 FROM tab2
----
122
150
206

query I rowsort
SELECT + ( 6 ) * col1 FROM tab1
----
156
60
78

query I rowsort
SELECT ALL col2 * - col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * col2 - 74 col1 FROM tab2
----
119578
50960
5785

query I rowsort
SELECT DISTINCT + 58 + - col1 - tab0.col0 * - 91 AS col2 FROM tab0
----
2156
3146
8066

query I rowsort
SELECT DISTINCT + col2 + + tab0.col0 * col1 + col0 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT + 9 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

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

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

query I rowsort
SELECT ALL - 46 AS col0 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - - col0 + col2 + col0 FROM tab2 cor0
----
182
196
41

query I rowsort
SELECT DISTINCT - - col2 * - col2 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * + tab1.col0 col0 FROM tab1
----
1120
42
896

query I rowsort
SELECT cor0.col0 - col2 * col1 AS col2 FROM tab2 cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT - 84 * col0 - col1 DIV + col1 FROM tab1 cor0
----
-253
-5377
-6721

skipif mysql # not compatible
query I rowsort label-1649
SELECT - 84 * col0 - col1 / + col1 FROM tab1 cor0
----
-253
-5377
-6721

query I rowsort
SELECT ALL + - 95 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT ALL tab0.col1 + col0 FROM tab0 WHERE NULL = col1
----

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

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

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

query I rowsort
SELECT - + 50 - + col2 FROM tab0 AS cor0
----
-132
-51
-83

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

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

query I rowsort
SELECT + + col0 * 27 + col2 FROM tab2 cor0
----
2132
216
2171

query I rowsort
SELECT - 54 * tab2.col0 FROM tab2
----
-378
-4212
-4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-1659
SELECT 72 DIV - col0 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT 72 / - col0 FROM tab0
----
-2
-3
0

query I rowsort
SELECT DISTINCT 65 * tab1.col1 FROM tab1
----
1690
650
845

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - col0 BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT col1 * col0 + - col1 + col0 * - col2 DIV col2 FROM tab0
----
1954
3263
7919

skipif mysql # not compatible
query I rowsort label-1663
SELECT col1 * col0 + - col1 + col0 * - col2 / col2 FROM tab0
----
1954
3263
7919

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( NULL ) <> + col1 / + col2
----

query I rowsort
SELECT DISTINCT col2 * + col0 AS col0 FROM tab2 WHERE NOT - col1 * col0 * col1 IN ( col0 * - col2 )
----
189
2028
3002

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

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT col1 + - col2 * - col2 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL col0 + col0 AS col0 FROM tab0 WHERE ( + col2 * - col1 ) NOT IN ( tab0.col1 + + col0 / col2 )
----
178
48
70

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * + col1 col2 FROM tab2
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1 WHERE ( col0 / + col0 ) NOT BETWEEN col0 AND col1
----
3
64
80

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

query I rowsort
SELECT col1 + tab0.col2 + col2 * + tab0.col1 FROM tab0
----
195
2957
7635

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

query I rowsort
SELECT + 91 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # use DIV operator for integer division
query I rowsort label-1678
SELECT ALL + 9 DIV col1 + - col1 * + 74 AS col0 FROM tab1 AS cor0
----
-1924
-740
-962

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + 9 / col1 + - col1 * + 74 AS col0 FROM tab1 AS cor0
----
-1924
-740
-962

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

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

query I rowsort
SELECT ALL - col2 * cor0.col1 + ( col2 ) + col1 AS col2 FROM tab0 cor0
----
-2719
-7289
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1682
SELECT ALL CAST( - col2 + col0 AS SIGNED ) AS col2 FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL CAST ( - col2 + col0 AS INTEGER ) AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL + 92 AS col0 FROM tab0
----
92
92
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1684
SELECT ALL - col1 + - cor0.col0 * CAST( ( col1 ) AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
-3492
-664209
-68198

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - col1 + - cor0.col0 * CAST ( ( col1 ) AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
-3492
-664209
-68198

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

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

query I rowsort
SELECT + + 32 * col1 AS col0 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT DISTINCT - 81 + col0 FROM tab2 AS cor0
----
-2
-3
-74

query I rowsort
SELECT + - 99 AS col0 FROM tab1 cor0
----
-99
-99
-99

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1692
SELECT + cor0.col1 * CAST ( + col0 * col2 AS INTEGER ) + col1 * + col1 * - col0 FROM tab0 AS cor0
----
-109392
-325920
-72891

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + + 14 * col1 col0 FROM tab0 AS cor0
----
1228
1363
1393

query I rowsort
SELECT - + col1 + - cor0.col1 * 54 AS col2 FROM tab2 AS cor0
----
-1705
-3245
-935

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

query I rowsort
SELECT ALL - + 62 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

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

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

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

query I rowsort
SELECT DISTINCT - 91 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7826
-8281
-8827

query I rowsort
SELECT + 45 * ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT 58 + + 9 AS col0 FROM tab1 AS cor0
----
67
67
67

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT - - 76 DIV col2 FROM tab0 AS cor0
----
0
2
76

skipif mysql # not compatible
query I rowsort label-1705
SELECT - - 76 / col2 FROM tab0 AS cor0
----
0
2
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + col0 * + col1 col1 FROM tab1 AS cor0
----
-20
542
942

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

query I rowsort
SELECT ALL + 29 + ( col1 ) AS col1 FROM tab1
----
39
42
55

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

query I rowsort
SELECT ALL col1 + - col1 * - col1 FROM tab2
----
306
3540
992

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

query I rowsort
SELECT - + 39 FROM tab2 AS cor0
----
-39
-39
-39

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

query I rowsort
SELECT ALL + cor0.col2 / - cor0.col0 AS col1 FROM tab0, tab2 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + tab2.col0 col0 FROM tab2
----
143
144
72

query I rowsort
SELECT ALL - ( tab2.col0 ) AS col0 FROM tab2
----
-7
-78
-79

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT ALL ( + cor0.col2 ) DIV + tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f163ed3ca5eb20f409b03d6ac4a391e3

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL ( + cor0.col2 ) / + tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f163ed3ca5eb20f409b03d6ac4a391e3

query I rowsort
SELECT 77 + - col0 FROM tab1
----
-3
13
74

query I rowsort
SELECT - 85 * tab1.col1 + tab1.col0 FROM tab1
----
-1025
-2207
-786

query I rowsort
SELECT ALL 56 + - 48 * - col2 FROM tab0
----
104
1640
3992

query I rowsort
SELECT - 64 * col1 FROM tab1 AS cor0
----
-1664
-640
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * 28 col1 FROM tab0 AS cor0
----
-2156
-2156
-2156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * col2 col0 FROM tab2 AS cor0
----
-1976
-2052
-2888

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

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

query I rowsort
SELECT - 95 * col2 FROM tab1 cor0
----
-5130
-5415
-9120

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
26
27
38

query I rowsort
SELECT - 89 * + cor0.col0 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT DISTINCT - 23 * + 26 AS col1 FROM tab2 AS cor0
----
-598

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT DISTINCT + col2 + col1 DIV tab2.col1 AS col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT + col2 + col1 / tab2.col1 AS col1 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT - + col1 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab0 WHERE col2 > NULL
----

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

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

query I rowsort
SELECT col1 * tab0.col0 * + tab0.col0 + + col1 * col0 + col0 AS col0 FROM tab0
----
122255
51624
728999

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

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

query I rowsort
SELECT ALL col1 * + col1 * cor0.col0 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE - col0 * - col0 = NULL
----

query I rowsort
SELECT ALL + tab2.col0 AS col1 FROM tab2 WHERE NOT col1 IN ( col0 * + col2 )
----
7
78
79

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 - col2 col0 FROM tab2 AS cor0
----
-1560
-684
-864

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

skipif mysql # not compatible
query I rowsort label-1746
SELECT + + col2 / col1 + cor0.col1 * + col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col1 + + col1 * + col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT ALL + col0 * - col1 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
-1054
-1121
744

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

query I rowsort
SELECT ALL col1 * col1 - - col2 AS col2 FROM tab0 cor0
----
7429
8363
9410

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL col2 / col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
87
92
98

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

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

query I rowsort
SELECT ALL - cor0.col2 * col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col0 FROM tab0 AS cor0
----
70
7387
816

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= NULL AND NOT NULL NOT IN ( col2 / + col2 )
----

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

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

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

query I rowsort
SELECT + + ( + 66 ) AS col1 FROM tab2, tab0, tab2 cor0, tab1
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

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

query I rowsort
SELECT + col1 + col0 * col2 * col2 FROM tab1 cor0
----
207946
737293
8774

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 * + col0 + col1 * 12 col2 FROM tab1 AS cor0
----
2232
2796
411

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT - col1 * col0 DIV col1 - + 6 * + col1 AS col2 FROM tab0 AS cor0
----
-540
-617
-635

skipif mysql # not compatible
query I rowsort label-1768
SELECT - col1 * col0 / col1 - + 6 * + col1 AS col2 FROM tab0 AS cor0
----
-540
-617
-635

query I rowsort
SELECT + col0 + 75 * + col2 FROM tab1 AS cor0
----
4053
4339
7280

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT 79 + tab0.col1 DIV tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to acba7ee2ff1a8ac64e7240e0686a9fa2

skipif mysql # not compatible
query I rowsort label-1772
SELECT 79 + tab0.col1 / tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to acba7ee2ff1a8ac64e7240e0686a9fa2

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

query I rowsort
SELECT ALL - col2 * col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT ALL - ( - col1 ) DIV col1 + + col0 + col1 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - ( - col1 ) / col1 + + col0 + col1 FROM tab0
----
111
133
181

query I rowsort
SELECT - 45 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 + + col2 col1 FROM tab1
----
102
60
63

query I rowsort
SELECT + ( col1 ) + + ( col0 ) + - col1 FROM tab2 AS cor0
----
7
78
79

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 * col1 col0 FROM tab2
----
1770
510
930

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

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

query I rowsort
SELECT ALL - col0 * 72 AS col2 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT + + cor0.col0 + - 21 * - 20 FROM tab0 AS cor0
----
444
455
509

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

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - col1 / col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - 13 FROM tab0 cor0
----
-1157
-312
-455

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT DISTINCT - col1 + - 55 DIV col0 FROM tab1 AS cor0
----
-10
-13
-44

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - col1 + - 55 / col0 FROM tab1 AS cor0
----
-10
-13
-44

query I rowsort
SELECT col0 * ( col0 ) + + col2 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT + col1 + 12 * - col1 AS col0 FROM tab2 AS cor0
----
-187
-341
-649

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

query I rowsort
SELECT 12 * - col2 AS col1 FROM tab1
----
-1152
-648
-684

query I rowsort
SELECT 68 * + col0 FROM tab2
----
476
5304
5372

query I rowsort
SELECT - 21 * - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b3992872ec8ca1b0aac69fb3f428042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 97 col0 FROM tab2 AS cor0
----
-1649
-3007
-5723

query I rowsort
SELECT - col1 * ( 23 ) FROM tab1 AS cor0
----
-230
-299
-598

query I rowsort
SELECT - - col2 * + 51 AS col0 FROM tab2 AS cor0
----
1326
1377
1938

query I rowsort
SELECT ALL - 69 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT + ( 15 ) FROM tab2 cor0
----
15
15
15

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2, tab1 cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

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

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

query I rowsort
SELECT 97 + + col0 AS col0 FROM tab1 cor0
----
100
161
177

query I rowsort
SELECT + - 69 AS col1 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT - + 24 + col0 * + col2 FROM tab0 AS cor0
----
11
7274
768

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

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

query I rowsort
SELECT + - cor0.col1 + col2 * col0 * col2 AS col2 FROM tab2 AS cor0
----
114059
5072
52669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 47 * - col0 - + 31 * - col1 col0 FROM tab1 AS cor0
----
-2688
-3344
691

query I rowsort
SELECT - + 99 * cor0.col0 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
-16035
-361088
-760240

query I rowsort
SELECT + col0 * - col2 * - col2 + col1 + col2 FROM tab0 AS cor0
----
133
26255
598609

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

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 * - col1 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT + 47 * 33 + - col2 + - col2 AS col2 FROM tab2 AS cor0
----
1475
1497
1499

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

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

query I rowsort
SELECT ALL - col2 - col2 * cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
10944
25920
90480

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

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 80 AS col0 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 21 * col2 + col0 AS col1 FROM tab0 AS cor0
----
1811
56
717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT - - col1 * 59 * col2 AS col1 FROM tab0 AS cor0
----
167442
440258
5723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col1 * col2 col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + + col0 + 84 FROM tab1 AS cor0
----
148
164
87

query I rowsort
SELECT - - cor0.col2 * col1 - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + cor0.col2 * + 68 * 23 FROM tab2 cor0
----
40664
42228
59432

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

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

query I rowsort
SELECT ALL 68 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT ALL - 27 * + 71 AS col2 FROM tab2 AS cor0
----
-1917
-1917
-1917

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT DISTINCT col0 * - ( col1 ) + - col1 DIV + 5 AS col0 FROM tab0
----
-2081
-3414
-8117

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT col0 * - ( col1 ) + - col1 / + 5 AS col0 FROM tab0
----
-2081
-3414
-8117

query I rowsort
SELECT col1 * - 4 + col0 * cor0.col0 AS col0 FROM tab2 cor0
----
-75
5848
6173

onlyif mysql # use DIV operator for integer division
query I rowsort label-1843
SELECT + - col0 DIV + col2 + 84 + - col1 * + 32 AS col0 FROM tab1 AS cor0
----
-237
-332
-748

skipif mysql # not compatible
query I rowsort label-1843
SELECT + - col0 / + col2 + 84 + - col1 * + 32 AS col0 FROM tab1 AS cor0
----
-237
-332
-748

query I rowsort
SELECT ALL - col2 + + col0 * col0 + col0 FROM tab0
----
1259
567
7928

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

query I rowsort
SELECT - col2 + 46 AS col2 FROM tab2
----
19
20
8

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

query I rowsort
SELECT DISTINCT col1 + 8 * tab1.col0 FROM tab1
----
50
522
653

query I rowsort
SELECT col1 + 36 AS col1 FROM tab1 AS cor0
----
46
49
62

query I rowsort
SELECT - col1 - + 14 FROM tab1 cor0
----
-24
-27
-40

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1853
SELECT ALL - col0 DIV + 64 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - col0 / + 64 AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + 13 + tab0.col2 FROM tab0, tab0 cor0
----
9 values hashing to 668a2742992d94283d4ebb1a66e12e06

query I rowsort
SELECT - tab1.col2 * - 15 AS col0 FROM tab1
----
1440
810
855

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 37 col1 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1857
SELECT DISTINCT - + CAST( col2 AS SIGNED ) * + cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-1858
SELECT - cor0.col2 + - col2 DIV - col2 - 74 FROM tab0 AS cor0
----
-106
-155
-74

skipif mysql # not compatible
query I rowsort label-1858
SELECT - cor0.col2 + - col2 / - col2 - 74 FROM tab0 AS cor0
----
-106
-155
-74

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

query I rowsort
SELECT DISTINCT col0 * + 84 * + col2 + col1 * col0 FROM tab2 AS cor0
----
16093
174954
253511

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

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 97 + col0 FROM tab0
----
121
132
186

query I rowsort
SELECT col0 * col2 - - ( tab0.col1 ) FROM tab0
----
132
7389
878

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

query I rowsort
SELECT ALL + + 84 + col0 AS col0 FROM tab2 AS cor0
----
162
163
91

query I rowsort
SELECT - 78 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT ALL - cor0.col1 + 63 AS col1 FROM tab0 AS cor0
----
-23
-28
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col2 * col2 + + 40 col1 FROM tab0 AS cor0
----
-1335
-3354
-935

onlyif mysql # use DIV operator for integer division
query I rowsort label-1869
SELECT ALL + + col1 + cor0.col1 DIV - col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + + col1 + cor0.col1 / - col1 FROM tab1 AS cor0
----
12
25
9

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1872
SELECT DISTINCT col1 * col1 + 25 DIV + col0 AS col0 FROM tab0
----
7397
8281
9409

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT col1 * col1 + 25 / + col0 AS col0 FROM tab0
----
7397
8281
9409

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

query I rowsort
SELECT DISTINCT + + col2 * 40 AS col1 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT + col2 + ( - col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - col1 * + 20 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT DISTINCT - col0 * - 7 AS col2 FROM tab1 AS cor0
----
21
448
560

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

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

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

query I rowsort
SELECT 51 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL ( 75 ) AS col1 FROM tab2
----
75
75
75

query I rowsort
SELECT ALL + 11 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT + col0 * col2 - + col0 * - 94 AS col2 FROM tab0
----
15664
3048
3325

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

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

query I rowsort
SELECT - - 22 * - col0 AS col0 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT ALL - - cor0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT cor0.col1 * 35 + - col2 FROM tab1 cor0
----
293
359
856

query I rowsort
SELECT - col1 - 75 * col0 FROM tab2 AS cor0
----
-556
-5909
-5942

query I rowsort
SELECT ALL - 3 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT + tab2.col2 * - 62 FROM tab2
----
-1612
-1674
-2356

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

query I rowsort
SELECT + + 19 + 37 AS col1 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT - - col1 * + col1 + + col2 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - + col2 * - col2 + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + 92 + - col0 FROM tab1 AS cor0
----
12
28
89

query I rowsort
SELECT + 46 + col2 AS col0 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT ALL + ( - 99 ) + + col2 * + 74 * + 20 FROM tab1
----
141981
79821
84261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col2 col0 FROM tab0 cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * - col0 - + col2 col2 FROM tab2
----
568
6604
6677

query I rowsort
SELECT ALL + 6 * col1 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT ALL 14 - - col1 AS col2 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT ALL 8 * + 41 FROM tab0 AS cor0
----
328
328
328

query I rowsort
SELECT + - 97 AS col0 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + cor0.col2 * col0 + + 52 FROM tab1 AS cor0
----
214
3700
7732

query I rowsort
SELECT ( - col0 ) + - 89 AS col1 FROM tab1 AS cor0
----
-153
-169
-92

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

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

query I rowsort
SELECT DISTINCT + col1 + + col1 + - ( - col1 ) AS col0 FROM tab2 cor0
----
177
51
93

query I rowsort
SELECT DISTINCT + - 79 - col2 FROM tab1 AS cor0
----
-133
-136
-175

query I rowsort
SELECT + cor0.col0 * + col2 + - 32 FROM tab0 cor0
----
3
7266
760

query I rowsort
SELECT DISTINCT - 72 * col2 * col2 + col2 AS col1 FROM tab1 cor0
----
-209898
-233871
-663456

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

query I rowsort
SELECT DISTINCT cor0.col0 * col1 + 18 * - col0 FROM tab1 AS cor0
----
-400
-512
24

query I rowsort
SELECT ALL - + 42 - cor0.col2 AS col1 FROM tab2 cor0
----
-68
-69
-80

query I rowsort
SELECT ALL col1 * + col1 + + 71 FROM tab0 AS cor0
----
7467
8352
9480

query I rowsort
SELECT 29 - col0 AS col2 FROM tab1
----
-35
-51
26

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

query I rowsort
SELECT - + 12 + + col1 FROM tab1 AS cor0
----
-2
1
14

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

query I rowsort
SELECT col1 * 54 AS col2 FROM tab2 AS cor0
----
1674
3186
918

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

skipif mysql # not compatible
query I rowsort label-1923
SELECT - - col0 * + CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + col1 * 71 * + col1 AS col0 FROM tab1 AS cor0
----
11999
47996
7100

query I rowsort
SELECT 64 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT DISTINCT - col1 * 82 AS col0 FROM tab2 AS cor0
----
-1394
-2542
-4838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - 30 col0 FROM tab2 cor0
----
1770
510
930

query I rowsort
SELECT ALL + col2 * 82 + 52 AS col0 FROM tab1 AS cor0
----
4480
4726
7924

query I rowsort
SELECT DISTINCT + col0 + - 82 FROM tab2 AS cor0
----
-3
-4
-75

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

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

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

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

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

query I rowsort
SELECT col1 + ( 70 ) FROM tab0 cor0
----
156
161
167

query I rowsort
SELECT ALL - col0 * tab2.col1 + 83 * col2 * col1 FROM tab2
----
122720
52275
69254

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

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

query I rowsort
SELECT cor0.col1 * - col1 + + 85 - + col2 AS col1 FROM tab0 AS cor0
----
-7344
-8278
-9325

query I rowsort
SELECT col2 + + col1 - ( col2 * + col0 ) AS col1 FROM tab1
----
-3581
-7571
-82

query I rowsort
SELECT 57 * col0 + - col0 * + ( tab1.col2 ) FROM tab1
----
-3120
0
9

query I rowsort
SELECT DISTINCT - - 20 + - col2 FROM tab2 AS cor0
----
-18
-6
-7

query I rowsort
SELECT DISTINCT 47 * col0 + + tab0.col2 FROM tab0
----
1161
1646
4265

query I rowsort
SELECT - col1 + - col2 + - col2 * - col1 * + col1 FROM tab2
----
10927
25889
90421

query I rowsort
SELECT ALL + 6 * col2 + 11 FROM tab1
----
335
353
587

query I rowsort
SELECT + col1 + ( col0 * - col0 ) FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - col0 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

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

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

query I rowsort
SELECT ALL + cor0.col0 + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 39 - 25 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff

query I rowsort
SELECT - col2 * - ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col0 * - 85 + col0 - - col1 AS col0 FROM tab2 AS cor0
----
-557
-6493
-6619

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1953
SELECT - col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT - col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - 11 FROM tab2 AS cor0
----
-286
-297
-418

query I rowsort
SELECT - col2 + ( col2 ) + col1 AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT DISTINCT - - col0 DIV + cor0.col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - - col0 / + cor0.col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + + col2 * 74 FROM tab2 AS cor0
----
1924
1998
2812

query I rowsort
SELECT ALL + col1 * + col1 + ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT ALL + cor0.col0 + - ( - col2 ) DIV + col1 FROM tab1 cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + cor0.col0 + - ( - col2 ) / + col1 FROM tab1 cor0
----
5
69
87

query I rowsort
SELECT ALL - 86 * - 85 - + col0 FROM tab0 AS cor0
----
7221
7275
7286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 85 ) col0 FROM tab1
----
85
85
85

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT ALL - - col2 + - 8 DIV cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - - col2 + - 8 / cor0.col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1965
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1966
SELECT + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1966
SELECT + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col2 * + col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - 6 * cor0.col2 * cor0.col2 + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-20412
-22743
-64512

query I rowsort
SELECT cor0.col0 * 40 AS col0 FROM tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT DISTINCT ( 43 ) * + col0 AS col2 FROM tab1 AS cor0
----
129
2752
3440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1971
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col2 AS col0 FROM tab1 cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col2 AS col0 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + cor0.col0 * - col0 * + col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - col1 - - col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + ( + col2 ) + + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + + col2 + col0 + col1 AS col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT - col0 * col0 - col1 FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - 63 * col0 * 53 + col0 FROM tab1 cor0
----
-10014
-213632
-267040

query I rowsort
SELECT 66 + tab0.col1 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to f0cfa5fe36736846f95821dc37e20e6f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1980
SELECT col2 * ( + col1 ) + + ( - col2 + col1 ) * - CAST( col2 AS SIGNED ) * - col2 FROM tab2
----
-29678
23842
3753

skipif mysql # not compatible
query I rowsort label-1980
SELECT col2 * ( + col1 ) + + ( - col2 + col1 ) * - CAST ( col2 AS INTEGER ) * - col2 FROM tab2
----
-29678
23842
3753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + + 78 * + col0 FROM tab0 cor0
----
1872
2730
6942

query I rowsort
SELECT DISTINCT + 29 * - col2 AS col1 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT ( col2 ) * col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + 49 AS col1 FROM tab0 cor0
----
49
49
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1987
SELECT - - cor0.col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT - - cor0.col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - ( - cor0.col0 ) AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + cor0.col1 - + col2 * 47 FROM tab0 AS cor0
----
-1465
-3763
50

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1991
SELECT + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col2 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT - 43 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * ( - tab0.col1 ) col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - 18 + col1 FROM tab2
----
-1
13
41

query I rowsort
SELECT DISTINCT 69 * col1 * - col0 AS col0 FROM tab1
----
-44160
-5382
-71760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab1
----
87

query I rowsort
SELECT ALL - - 55 * + col2 AS col0 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT - 21 * 32 * - col1 FROM tab2 AS cor0
----
11424
20832
39648

query I rowsort
SELECT DISTINCT + 84 + col2 FROM tab1 AS cor0
----
138
141
180

query I rowsort
SELECT + 87 FROM tab0, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - col1 * - 70 FROM tab1
----
1820
700
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab2
----
29
29
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2004
SELECT ALL 77 DIV col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL 77 / col1 FROM tab2
----
1
2
4

query I rowsort
SELECT + + cor0.col0 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT col2 * 29 AS col2 FROM tab0
----
2378
29
957

query I rowsort
SELECT DISTINCT - col2 * + 78 FROM tab1
----
-4212
-4446
-7488

query I rowsort
SELECT DISTINCT - col0 * 82 + col0 * - col2 FROM tab2
----
-763
-8424
-9480

query I rowsort
SELECT + 83 + 89 AS col1 FROM tab1
----
172
172
172

query I rowsort
SELECT ALL 92 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + col1 + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + + col0 - + col0 * col1 * - col0 AS col2 FROM tab1 AS cor0
----
237
41024
83280

onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT - col2 DIV 79 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT - col2 / 79 FROM tab1
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2014
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - + 0 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + - ( - col0 ) + ( 96 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1168
-2493
-896

query I rowsort
SELECT ALL + col0 * col1 * col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + col2 - + col1 * ( col1 ) FROM tab2 AS cor0
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 * col1 col0 FROM tab2 AS cor0
----
-255
-465
-885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2020
SELECT + - col2 + - col2 + + CAST( NULL AS DECIMAL ) / - 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT + - col2 + - col2 + + CAST ( NULL AS REAL ) / - 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 23 * + cor0.col2 - - ( + col2 * cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1458
1520
2132

onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT + col2 DIV col0 + 89 * + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
14436
324672
683521

skipif mysql # not compatible
query I rowsort label-2022
SELECT + col2 / col0 + 89 * + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
14436
324672
683521

query I rowsort
SELECT DISTINCT col0 - col1 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT - col1 + col1 - + 99 FROM tab0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT + col0 - - col2 AS col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT DISTINCT - tab0.col0 DIV - col2 - ( tab0.col0 + tab0.col1 ) * col0 AS col2 FROM tab0
----
-16019
-2640
-4585

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT - tab0.col0 / - col2 - ( tab0.col0 + tab0.col1 ) * col0 AS col2 FROM tab0
----
-16019
-2640
-4585

query I rowsort
SELECT - 95 - + tab1.col0 * ( - 81 + - tab1.col0 ) * col2 AS col1 FROM tab1
----
1236385
13513
528865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col1 - col1 col0 FROM tab0
----
8342
8827
9409

query I rowsort
SELECT tab1.col0 - + col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 - - col0 * 31 * - 37 AS col0 FROM tab1
----
-3438
-73344
-91680

query I rowsort
SELECT + + cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - 25 * - col0 AS col0 FROM tab2
----
175
1950
1975

query I rowsort
SELECT + - col0 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + + col0 + + 60 FROM tab1 AS cor0
----
124
140
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT ALL + - col2 DIV 57 col1 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + - col2 / 57 col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + + col1 * col1 + - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT + col1 * col2 + ( - col1 ) * col0 * col2 FROM tab0 AS cor0
----
-3298
-65274
-656656

query I rowsort
SELECT ALL + col2 * col1 - + ( + cor0.col0 + col2 ) FROM tab0 AS cor0
----
2781
61
7291

query I rowsort
SELECT - - 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - col0 - col2 * ( col1 * + col2 ) FROM tab2 AS cor0
----
-22606
-24627
-39962

query I rowsort
SELECT - - col2 * col0 + + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT 15 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL + + col2 - + cor0.col1 * ( + col2 * col1 ) AS col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * + col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT DISTINCT col2 DIV + 18 AS col0 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT col2 / + 18 AS col0 FROM tab2 cor0
----
1
2

query I rowsort
SELECT ALL - col2 * - cor0.col1 - - col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - + col2 - - col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col2 + 17 AS col2 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT + ( 54 ) FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT 50 * ( + col1 + ( col1 ) ) FROM tab1 AS cor0
----
1000
1300
2600

query I rowsort
SELECT - ( col2 ) * cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + ( col2 ) * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL - 8 + 26 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - - col2 - 65 AS col2 FROM tab1 AS cor0
----
-11
-8
31

query I rowsort
SELECT 61 * + col0 + col1 * + 41 FROM tab2 cor0
----
1698
5516
7177

query I rowsort
SELECT ALL cor0.col0 - cor0.col2 * - col2 * - col0 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT 87 * - col0 AS col0 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT DISTINCT - 51 + col1 FROM tab1 AS cor0
----
-25
-38
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2060
SELECT DISTINCT col2 * col2 * col0 - ( col2 ) DIV - col2 FROM tab0 AS cor0
----
26137
36
598437

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT col2 * col2 * col0 - ( col2 ) / - col2 FROM tab0 AS cor0
----
26137
36
598437

query I rowsort
SELECT + - ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2062
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT + ( - 52 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2063
SELECT + ( - 52 ) / - col0 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT 50 * + 62 + + col0 AS col2 FROM tab2 AS cor0
----
3107
3178
3179

query I rowsort
SELECT ALL - col1 * + 82 AS col2 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT + 54 AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT 74 + - 77 * - col0 AS col0 FROM tab1 AS cor0
----
305
5002
6234

query I rowsort
SELECT ALL - + ( - col0 ) + - cor0.col2 * - ( + cor0.col2 ) FROM tab2 cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2069
SELECT - col1 DIV 7 AS col0 FROM tab0 AS cor0
----
-12
-13
-13

skipif mysql # not compatible
query I rowsort label-2069
SELECT - col1 / 7 AS col0 FROM tab0 AS cor0
----
-12
-13
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2070
SELECT DISTINCT CAST( - 81 AS SIGNED ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT CAST ( - 81 AS INTEGER ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT + col0 * - col2 + tab1.col2 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT DISTINCT ( ( - col0 ) ) * ( col0 ) DIV tab0.col2 + 88 col0 FROM tab0
----
-1137
-8
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT ( ( - col0 ) ) * ( col0 ) / tab0.col2 + 88 col0 FROM tab0
----
-1137
-8
71

query I rowsort
SELECT - ( + col1 ) + col2 + - col0 * 32 AS col1 FROM tab1
----
-2001
-2477
-68

query I rowsort
SELECT DISTINCT + col2 + + col2 * tab0.col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL + + 37 * + ( col2 ) FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT DISTINCT col1 * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - 80 * + col2 AS col1 FROM tab0 AS cor0
----
-2640
-6560
-80

query I rowsort
SELECT ALL - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + 47 + - col1 FROM tab2 AS cor0
----
-106
-64
-78

query I rowsort
SELECT - + 61 * - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-36
1927
4911

query I rowsort
SELECT + - cor0.col1 * + col0 - col0 AS col2 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL + - col1 + + col0 * - col2 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col1 AS col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + col2 * col2 - + col0 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT - cor0.col0 + + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + + 57 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT ALL col2 * + ( + col2 ) + - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + col0 + + 25 FROM tab1
----
105
28
89

query I rowsort
SELECT DISTINCT - + col1 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + col2 * ( ( col0 ) ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - col2 * + 76 + 54 * + col1 + + ( 99 * - col2 ) FROM tab0 AS cor0
----
-1131
-9436
5063

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * ( col0 * ( col0 ) ) FROM tab1 AS cor0
----
-27
262087
511904

query I rowsort
SELECT DISTINCT + + col2 * + col2 + col0 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - col2 + - 22 * + col1 AS col0 FROM tab1 AS cor0
----
-277
-382
-626

onlyif mysql # use DIV operator for integer division
query I rowsort label-2096
SELECT ALL 58 DIV - cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cda644b3598f09ee13d1ed33f1c1ac92

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL 58 / - cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cda644b3598f09ee13d1ed33f1c1ac92

query I rowsort
SELECT - + col2 + - ( cor0.col0 * + col1 ) FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL - col2 * - col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2099
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2100
SELECT + col1 * CAST( 42 AS SIGNED ) + col0 FROM tab1 cor0
----
1095
484
626

skipif mysql # not compatible
query I rowsort label-2100
SELECT + col1 * CAST ( 42 AS INTEGER ) + col0 FROM tab1 cor0
----
1095
484
626

onlyif mysql # use DIV operator for integer division
query I rowsort label-2101
SELECT ALL - + cor0.col0 DIV col1 AS col0 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - + cor0.col0 / col1 AS col0 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT - col1 * 86 + - 81 AS col1 FROM tab1 AS cor0
----
-1199
-2317
-941

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT DISTINCT - ( + col2 ) + col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 55 FROM tab2 AS cor0
----
55

query I rowsort
SELECT 52 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT ALL + 60 AS col2 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT ALL + col0 + + cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2109
SELECT - ( col0 ) * + CAST( 88 AS SIGNED ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2026
-2983
-7741

skipif mysql # not compatible
query I rowsort label-2109
SELECT - ( col0 ) * + CAST ( 88 AS INTEGER ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2026
-2983
-7741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2110
SELECT ALL col0 * - col0 + + CAST( col1 + + col1 * col2 AS SIGNED ) FROM tab2
----
-4491
-5578
819

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL col0 * - col0 + + CAST ( col1 + + col1 * col2 AS INTEGER ) FROM tab2
----
-4491
-5578
819

query I rowsort
SELECT ALL tab0.col2 + + tab0.col1 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT col0 * col1 * + 58 AS col1 FROM tab0
----
119712
196910
469742

query I rowsort
SELECT + + col0 * + col1 + - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT col2 + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + 84 * - col1 FROM tab0 cor0
----
-7224
-7644
-8148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT col1 + + 85 * - 59 * - col1 FROM tab2 AS cor0
----
155496
295944
85272

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT ALL + - cor0.col1 + 15 DIV - col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-31

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + - cor0.col1 + 15 / - col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-31

query I rowsort
SELECT DISTINCT + - 22 FROM tab2, tab1 AS cor0
----
-22

query I rowsort
SELECT + cor0.col0 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col1 * cor0.col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT 14 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL 1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT 5 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
430
455
485

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT 63 * - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT 47 * 65 FROM tab1, tab1 AS cor0
----
9 values hashing to 913ccffd209bf079cfcb06d8fa1b3844

query I rowsort
SELECT ALL col2 * - cor0.col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT - + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 * cor0.col0 + + ( + col0 + col1 ) AS col1 FROM tab0 AS cor0
----
167
7478
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT 56 + + col0 AS col1 FROM tab1 AS cor0
----
120
136
59

query I rowsort
SELECT ALL - tab1.col2 * + 62 FROM tab1
----
-3348
-3534
-5952

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2136
SELECT + 79 DIV col0 AS col2 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-2136
SELECT + 79 / col0 AS col2 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT ALL - - ( col2 ) * - col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - 87 * + col1 AS col0 FROM tab1
----
-1131
-2262
-870

query I rowsort
SELECT tab1.col1 + + col2 * col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL + col1 * - col2 * - col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + ( cor0.col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - 97 AS col2 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT + 59 * + col2 + tab0.col2 FROM tab0
----
1980
4920
60

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + col2 + col0 * 87 FROM tab0
----
2121
3046
7825

query I rowsort
SELECT cor0.col2 * col1 * - col1 FROM tab1 cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( col1 ) col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT col2 * 31 AS col1 FROM tab0
----
1023
2542
31

query I rowsort
SELECT DISTINCT - ( + tab1.col2 * - col1 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) - col1 * 27 AS col1 FROM tab0 AS cor0
----
-2298
-2368
-2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2152
SELECT DISTINCT ( - cor0.col0 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT ( - cor0.col0 ) / col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT + ( - col0 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2153
SELECT + ( - col0 ) / col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col0 + 69 AS col1 FROM tab2 cor0
----
-10
-9
62

query I rowsort
SELECT DISTINCT cor0.col2 + + 19 * col0 AS col0 FROM tab2 AS cor0
----
1508
1539
160

query I rowsort
SELECT 62 * col0 FROM tab0 AS cor0
----
1488
2170
5518

query I rowsort
SELECT ALL + cor0.col1 + col0 * col1 * + 5 FROM tab2 AS cor0
----
1116
23069
6732

query I rowsort
SELECT DISTINCT col1 + + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - col1 * ( + cor0.col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 * + col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + - col0 * - 39 * + col2 AS col0 FROM tab2 cor0
----
117078
7371
79092

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2162
SELECT CAST( + col2 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-2162
SELECT CAST ( + col2 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + ( col0 ) col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2164
SELECT tab0.col0 + - CAST( col0 AS SIGNED ) * tab0.col0 AS col2 FROM tab0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-2164
SELECT tab0.col0 + - CAST ( col0 AS INTEGER ) * tab0.col0 AS col2 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ALL 29 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + col1 + + 70 AS col0 FROM tab1
----
80
83
96

query I rowsort
SELECT ALL - - 13 * col2 FROM tab1 cor0
----
1248
702
741

query I rowsort
SELECT - cor0.col2 + + col1 + - col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 59 + + col0 FROM tab2 AS cor0
----
137
138
66

query I rowsort
SELECT ALL 93 AS col0 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT DISTINCT ( + col2 ) + + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + tab0.col0 - 95 FROM tab0
----
-6
-60
-71

query I rowsort
SELECT DISTINCT - col2 * - 12 * + col0 + + tab2.col0 FROM tab2
----
2275
24414
36103

query I rowsort
SELECT ALL + ( - col1 ) * 17 AS col1 FROM tab0 AS cor0
----
-1462
-1547
-1649

query I rowsort
SELECT - ( - col0 ) - tab0.col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT - tab1.col1 - + col1 AS col2 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT + 71 * col1 + + tab0.col1 * ( + col2 ) * + col1 FROM tab0
----
16296
250174
685503

query I rowsort
SELECT + col2 + - col0 * - col2 - + 55 AS col0 FROM tab0
----
-19
7325
770

query I rowsort
SELECT col0 * col1 + ( - col1 ) FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT 8 + col1 AS col1 FROM tab0
----
105
94
99

query I rowsort
SELECT DISTINCT 88 + col1 AS col2 FROM tab0 cor0
----
174
179
185

query I rowsort
SELECT ALL + 94 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
8117
8636
9119

query I rowsort
SELECT + col1 + - col2 * + cor0.col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + + col0 * 5 AS col1 FROM tab0 cor0
----
120
175
445

query I rowsort
SELECT col2 * ( col1 ) + - col1 * col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * col0 + - 2 FROM tab0 AS cor0
----
2062
3393
8097

query I rowsort
SELECT + 56 * col0 AS col1 FROM tab0
----
1344
1960
4984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 * 74 ) col2 FROM tab2
----
-1258
-2294
-4366

query I rowsort
SELECT + 1 * + tab2.col1 + + ( 43 * col1 ) FROM tab2
----
1364
2596
748

query I rowsort
SELECT + 3 AS col2 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT ALL + col2 * CAST( col0 AS SIGNED ) col1 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + col2 * CAST ( col0 AS INTEGER ) col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - cor0.col0 * col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT col2 * + 6 + + 69 DIV col2 col1 FROM tab1 AS cor0
----
325
343
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2193
SELECT col2 * + 6 + + 69 / col2 col1 FROM tab1 AS cor0
----
325
343
576

query I rowsort
SELECT DISTINCT - - col2 * col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT - + col2 + col1 + cor0.col2 DIV col0 FROM tab1 AS cor0
----
-10
-47
-82

skipif mysql # not compatible
query I rowsort label-2195
SELECT - + col2 + col1 + cor0.col2 / col0 FROM tab1 AS cor0
----
-10
-47
-82

query I rowsort
SELECT + 38 FROM tab1, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - ( - col2 ) * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + ( - cor0.col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT DISTINCT - ( col1 ) + col1 DIV - col1 AS col1 FROM tab0 cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT - ( col1 ) + col1 / - col1 AS col1 FROM tab0 cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT + 18 + 25 * col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
202493
51618
84893

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab1 AS cor0
----
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2202
SELECT ALL col2 + col2 + col0 DIV - col0 FROM tab0 cor0
----
1
163
65

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL col2 + col2 + col0 / - col0 FROM tab0 cor0
----
1
163
65

query I rowsort
SELECT DISTINCT col0 - col2 * + col2 * col1 FROM tab1 AS cor0
----
-119728
-32426
-75813

query I rowsort
SELECT ( col1 ) * 27 * 8 FROM tab0
----
18576
19656
20952

query I rowsort
SELECT ALL 89 + - col1 * col1 FROM tab2 AS cor0
----
-200
-3392
-872

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - 57 + - col1 + ( - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-251
-2981
-7610

query I rowsort
SELECT + - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + 76 AS col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT - col1 * col0 - + col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT col2 * col1 * 24 - col1 AS col2 FROM tab0 AS cor0
----
178997
2231
68026

query I rowsort
SELECT ( + col2 ) * - col1 + + col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT + + 70 AS col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab2, tab0 AS cor0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col2 + col0 col1 FROM tab0 cor0
----
-2781
-61
-7291

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2216
SELECT ALL + col1 / col2 - + cor0.col2 / ( - col0 + + cor0.col0 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + col1 / col2 - + cor0.col2 / ( - col0 + + cor0.col0 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 74 ) + col0 AS col1 FROM tab2 AS cor0
----
152
153
81

query I rowsort
SELECT DISTINCT ( col1 ) * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + + ( 38 ) * col0 FROM tab2 AS cor0
----
266
2964
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col1 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT + 59 * + col0 + - 71 AS col2 FROM tab1 AS cor0
----
106
3705
4649

query I rowsort
SELECT + col2 * - col0 * 86 FROM tab0
----
-3010
-627628
-68112

query I rowsort
SELECT + col1 + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT cor0.col2 * col2 * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT DISTINCT col0 - col1 * col0 DIV col2 FROM tab0 AS cor0
----
-3360
-38
-9

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT col0 - col1 * col0 / col2 FROM tab0 AS cor0
----
-3360
-38
-9

query I rowsort
SELECT + col0 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + 3 * - tab1.col0 FROM tab1
----
-192
-240
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col1 FROM tab2
----
-89

query I rowsort
SELECT - col1 * - 71 AS col2 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * col2 col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT + col1 DIV col1 + col2 AS col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-2233
SELECT + col1 / col1 + col2 AS col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + col0 * - cor0.col2 + + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT DISTINCT + col2 * 3 FROM tab1 cor0
----
162
171
288

query I rowsort
SELECT + + col1 * 3 + col0 AS col1 FROM tab0 AS cor0
----
282
326
362

query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT + 16 * + 6 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - 2 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL 46 * col0 AS col1 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT - - ( cor0.col0 ) * col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-2242
SELECT DISTINCT - col2 - - 56 DIV col1 FROM tab2 AS cor0
----
-26
-35

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT - col2 - - 56 / col1 FROM tab2 AS cor0
----
-26
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT DISTINCT cor0.col0 DIV - ( + col2 ) + 82 * col1 FROM tab1 AS cor0
----
1066
2132
819

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT cor0.col0 / - ( + col2 ) + 82 * col1 FROM tab1 AS cor0
----
1066
2132
819

query I rowsort
SELECT ALL 96 - 41 AS col0 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT 55 AS col2 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT - 11 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT ALL - + col2 * - col0 * - ( col0 ) + + col0 * cor0.col2 FROM tab0 AS cor0
----
-1190
-18216
-642224

query I rowsort
SELECT - col2 + col1 + 64 * + col2 * - col2 FROM tab2 AS cor0
----
-43231
-46652
-92437

query I rowsort
SELECT DISTINCT - 73 * + col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT ALL cor0.col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT 26 * col0 - 68 AS col1 FROM tab0 cor0
----
2246
556
842

query I rowsort
SELECT DISTINCT - + col2 * - col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2254
SELECT - col2 + col2 * CAST( + ( + col0 ) AS SIGNED ) * - 89 + col2 FROM tab2 AS cor0
----
-16821
-180492
-267178

skipif mysql # not compatible
query I rowsort label-2254
SELECT - col2 + col2 * CAST ( + ( + col0 ) AS INTEGER ) * - 89 + col2 FROM tab2 AS cor0
----
-16821
-180492
-267178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * + col0 col2 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT + 4 * + col2 FROM tab2
----
104
108
152

query I rowsort
SELECT DISTINCT - 59 + col1 - - col1 * + 43 FROM tab1
----
1085
381
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - col2 + + col1 + tab1.col0 col2 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT ALL + 48 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT DISTINCT ( 47 * - col0 ) AS col0 FROM tab1
----
-141
-3008
-3760

query I rowsort
SELECT - col2 * col2 * col1 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL col2 * col1 + + ( - col1 ) AS col0 FROM tab0
----
0
2752
7371

query I rowsort
SELECT ALL ( - col0 ) * col0 * col1 FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT - col1 + col1 * col0 DIV + cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-2264
SELECT - col1 + col1 * col0 / + cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - ( col0 ) * + col2 + ( - col0 ) * - ( 29 * + col2 ) + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
5319
56810
84094

query I rowsort
SELECT DISTINCT cor0.col2 + 61 * - cor1.col2 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b23f49df11400a167c1bab81cd4ec429

query I rowsort
SELECT - 65 + - col0 + ( + ( cor0.col1 ) ) AS col2 FROM tab0 AS cor0
----
-3
-3
-63

query I rowsort
SELECT - col2 * cor0.col1 + + 23 FROM tab2 AS cor0
----
-1511
-623
-814

query I rowsort
SELECT ALL + 0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT - ( 87 ) + col2 DIV tab1.col2 AS col1 FROM tab1
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-2270
SELECT - ( 87 ) + col2 / tab1.col2 AS col1 FROM tab1
----
-86
-86
-86

query I rowsort
SELECT - 72 + - col0 AS col2 FROM tab1
----
-136
-152
-75

query I rowsort
SELECT ALL - ( col0 ) + + col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + cor0.col0 + col0 col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT col2 + - 89 * + col0 FROM tab2 cor0
----
-596
-6916
-6993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + ( col0 ) + + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - - col2 + cor0.col2 * - 85 FROM tab1 AS cor0
----
-4536
-4788
-8064

query I rowsort
SELECT ALL - 47 + col2 * - 31 + + col2 AS col1 FROM tab2 AS cor0
----
-1187
-827
-857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2279
SELECT DISTINCT col0 + col1 + CAST( NULL AS SIGNED ) * col0 * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT col0 + col1 + CAST ( NULL AS INTEGER ) * col0 * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + 61 + col1 * 22 FROM tab1 AS cor0
----
281
347
633

query I rowsort
SELECT - col2 * - col2 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
6760
7685
778

query I rowsort
SELECT DISTINCT - 62 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
16
578
978

query I rowsort
SELECT ALL - col0 + cor0.col2 + col0 AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 35 * col1 * col1 FROM tab1 AS cor0
----
23660
3500
5915

query I rowsort
SELECT col0 * + col1 + col0 * col0 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT ALL 1 * + col2 + + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab2, tab1, tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 99 AS REAL ) + + col2 / - col2 FROM tab1
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col0 col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT + cor0.col1 DIV col0 - col2 FROM tab2 cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-2291
SELECT + cor0.col1 / col0 - col2 FROM tab2 cor0
----
-23
-26
-38

query I rowsort
SELECT DISTINCT - col1 * - ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2293
SELECT + col1 * - 38 + - 99 DIV - col1 FROM tab0 cor0
----
-3267
-3457
-3685

skipif mysql # not compatible
query I rowsort label-2293
SELECT + col1 * - 38 + - 99 / - col1 FROM tab0 cor0
----
-3267
-3457
-3685

query I rowsort
SELECT - - col1 * - 10 - 15 AS col0 FROM tab2 AS cor0
----
-185
-325
-605

query I rowsort
SELECT + col1 + ( + 84 * - col1 ) + - col2 * ( col0 ) FROM tab1
----
-2320
-4478
-8759

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col1 * + col0 + + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + - col2 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - - col2 * col2 * col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) - - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) - - col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT - cor0.col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2301
SELECT - cor0.col2 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL col2 + 46 FROM tab0 AS cor0
----
128
47
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 97 col2 FROM tab1 AS cor0
----
1261
2522
970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2304
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) - - 13 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - cor0.col0 + CAST ( NULL AS INTEGER ) - - 13 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * + 35 + + col1 * - col2 FROM tab0 cor0
----
-1998
-4347
1128

query I rowsort
SELECT ALL + col0 * 12 FROM tab2 AS cor0
----
84
936
948

onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT - col2 DIV 79 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT - col2 / 79 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - 42 + - 83 AS col1 FROM tab1 AS cor0
----
-125
-125
-125

query I rowsort
SELECT + - 45 AS col2 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT tab0.col0 * + ( - col0 ) + col0 AS col2 FROM tab0
----
-1190
-552
-7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT ALL col0 / - CAST( NULL AS SIGNED ) + col1 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL col0 / - CAST ( NULL AS INTEGER ) + col1 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col0 - - col0 * 44 FROM tab2 AS cor0
----
119
1404
474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - cor0.col1 col2 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col2 * col0 ) col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL tab2.col0 * 91 + - col1 + + col2 FROM tab2
----
633
7065
7210

onlyif mysql # use DIV operator for integer division
query I rowsort label-2316
SELECT - - 76 * + col1 + col0 DIV - ( 67 ) AS col1 FROM tab2 AS cor0
----
1291
2356
4483

skipif mysql # not compatible
query I rowsort label-2316
SELECT - - 76 * + col1 + col0 / - ( 67 ) AS col1 FROM tab2 AS cor0
----
1291
2356
4483

query I rowsort
SELECT - col0 - 14 FROM tab1 AS cor0
----
-17
-78
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2318
SELECT - + CAST( NULL AS SIGNED ) * + col1 + - col1 + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT - + CAST ( NULL AS INTEGER ) * + col1 + - col1 + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2319
SELECT ALL - col1 + - 33 + + col1 * tab0.col1 DIV 65 AS col2 FROM tab0
----
-6
14
3

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - col1 + - 33 + + col1 * tab0.col1 / 65 AS col2 FROM tab0
----
-6
14
3

query I rowsort
SELECT 1 * tab0.col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2321
SELECT DISTINCT - 39 * - 15 + + col1 DIV col0 FROM tab0 AS cor0
----
586
587
588

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - 39 * - 15 + + col1 / col0 FROM tab0 AS cor0
----
586
587
588

query I rowsort
SELECT ALL - + 46 * col1 - cor0.col1 * ( col1 ) FROM tab1 AS cor0
----
-1872
-560
-767

query I rowsort
SELECT + 28 + + 75 FROM tab0 AS cor0
----
103
103
103

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT DISTINCT + 98 DIV - tab2.col1 FROM tab2
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + 98 / - tab2.col1 FROM tab2
----
-1
-3
-5

query I rowsort
SELECT + 20 * - 36 FROM tab1
----
-720
-720
-720

query I rowsort
SELECT - col2 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT ALL tab0.col2 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL tab0.col2 / + col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2330
SELECT ALL + cor0.col0 DIV - ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + cor0.col0 / - ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT + col0 * + col2 + 44 FROM tab0 AS cor0
----
7342
79
836

query I rowsort
SELECT - col0 + 26 * col0 AS col0 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT cor0.col2 * 99 FROM tab1, tab2 AS cor0
----
9 values hashing to bda9dc9880143e384bf5fe3f45517e20

query I rowsort
SELECT DISTINCT + + 65 AS col0 FROM tab2 AS cor0
----
65

query I rowsort
SELECT - + 30 * + col0 FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT 50 * + col2 AS col2 FROM tab1
----
2700
2850
4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT DISTINCT - ( + col0 ) DIV - col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - ( + col0 ) / - col1 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col2 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 17 * - col2 col0 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT DISTINCT + 78 FROM tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT col1 * 82 FROM tab0
----
7052
7462
7954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT DISTINCT - 36 DIV 39 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - 36 / 39 AS col2 FROM tab2
----
0

query I rowsort
SELECT col0 - col2 * + 16 AS col1 FROM tab1
----
-1456
-848
-861

query I rowsort
SELECT col0 - + col1 * + col2 * - tab1.col1 FROM tab1
----
16304
36507
5764

query I rowsort
SELECT ALL - 18 AS col0 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT - col0 * col0 + 82 * cor0.col2 FROM tab1 AS cor0
----
1472
4419
578

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col1 * - 1 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT - col1 + 29 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2490
610
918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2350
SELECT ALL CAST( + ( - col2 ) AS SIGNED ) * 54 * - 48 + col0 + col1 * + col0 FROM tab1
----
140049
148448
249952

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL CAST ( + ( - col2 ) AS INTEGER ) * 54 * - 48 + col0 + col1 * + col0 FROM tab1
----
140049
148448
249952

query I rowsort
SELECT - col1 - 2 FROM tab1
----
-12
-15
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT ALL col1 DIV - col2 + + col0 + + ( tab0.col0 + col0 ) FROM tab0
----
266
70
8

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL col1 / - col2 + + col0 + + ( tab0.col0 + col0 ) FROM tab0
----
266
70
8

query I rowsort
SELECT DISTINCT - 70 + - col1 AS col0 FROM tab0
----
-156
-161
-167

query I rowsort
SELECT ALL ( + col1 ) + col2 * col1 AS col0 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2355
SELECT ALL + 84 DIV col2 AS col1 FROM tab0 cor0
----
1
2
84

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + 84 / col2 AS col1 FROM tab0 cor0
----
1
2
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col0 + - col1 * + col1 col0 FROM tab1 AS cor0
----
-540
3538
7498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2357
SELECT - - CAST( NULL AS SIGNED ) * + 54 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT - - CAST ( NULL AS INTEGER ) * + 54 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 20 ) + tab0.col1 FROM tab0
----
106
111
117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2359
SELECT ALL CAST( NULL AS SIGNED ) + + col0 + col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 + col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT ALL tab0.col0 DIV tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 41f0a3543969085f79919f2dde47982a

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL tab0.col0 / tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 41f0a3543969085f79919f2dde47982a

query I rowsort
SELECT ALL - - 79 + col1 * + col1 * - 73 AS col1 FROM tab2 AS cor0
----
-21018
-254034
-70074

query I rowsort
SELECT - - 99 * col2 AS col2 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT col1 * col0 + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT col0 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + + 12 AS col1 FROM tab0 cor0
----
12
12
12

query I rowsort
SELECT - col1 * col0 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - 43 * + cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
-1064
-373
-463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col1 col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - + ( cor0.col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2, tab1 cor1
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 * col1 col1 FROM tab0 cor0
----
-3870
-4095
-4365

query I rowsort
SELECT col2 + ( + col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL col2 + 94 * col1 AS col2 FROM tab1 AS cor0
----
1318
2498
997

query I rowsort
SELECT - 52 * + cor0.col0 + + col1 FROM tab0 AS cor0
----
-1162
-1723
-4537

query I rowsort
SELECT DISTINCT + col2 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL - 42 * + col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT ALL ( + col2 ) + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + cor1.col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + col1 * + 96 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT ALL - col2 + ( - col1 ) * col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT tab2.col1 * 99 + + tab2.col2 FROM tab2
----
1721
3096
5867

query I rowsort
SELECT col2 * + 5 FROM tab2 cor0
----
130
135
190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2384
SELECT - + col1 + - CAST( col2 AS SIGNED ) * col2 col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2384
SELECT - + col1 + - CAST ( col2 AS INTEGER ) * col2 col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL - col0 + col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT col2 DIV col1 + cor0.col1 AS col0 FROM tab2 cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-2386
SELECT col2 / col1 + cor0.col1 AS col0 FROM tab2 cor0
----
19
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - 71 * 52 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 298a1111a9fbab5c3ac59d7f68b79bfe

query I rowsort
SELECT DISTINCT - 20 + col0 FROM tab2 AS cor0
----
-13
58
59

query I rowsort
SELECT ALL 88 + - cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-49
-8
50

query I rowsort
SELECT - 93 - 4 * col0 FROM tab2 AS cor0
----
-121
-405
-409

query I rowsort
SELECT ALL - + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + + ( col2 ) * - col0 + - col2 + - col2 AS col0 FROM tab1 cor0
----
-270
-3762
-7872

query I rowsort
SELECT + col1 + 45 FROM tab0 AS cor0
----
131
136
142

query I rowsort
SELECT + + col2 * - 96 - - col1 FROM tab0 AS cor0
----
-3082
-7781
1

query I rowsort
SELECT DISTINCT col1 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2397
SELECT DISTINCT col2 * + CAST( - 34 AS SIGNED ) * + col0 AS col2 FROM tab1
----
-124032
-261120
-5508

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT col2 * + CAST ( - 34 AS INTEGER ) * + col0 AS col2 FROM tab1
----
-124032
-261120
-5508

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2398
SELECT CAST( - 45 AS SIGNED ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif mysql # not compatible
query I rowsort label-2398
SELECT CAST ( - 45 AS INTEGER ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - col2 * - 95 AS col2 FROM tab1
----
5130
5415
9120

query I rowsort
SELECT col0 * 80 + col1 AS col2 FROM tab0
----
2006
2897
7211

query I rowsort
SELECT col0 - + 11 * col0 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT col0 * - ( col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL - col2 + col2 DIV + col1 FROM tab1
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - col2 + col2 / + col1 FROM tab1
----
-52
-52
-89

query I rowsort
SELECT col0 * col0 * 13 FROM tab0
----
102973
15925
7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT DISTINCT + 19 * col1 DIV col1 + 17 col0 FROM tab1
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + 19 * col1 / col1 + 17 col0 FROM tab1
----
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT + col2 DIV 80 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2407
SELECT + col2 / 80 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
28

query I rowsort
SELECT col1 * ( 67 ) AS col1 FROM tab1
----
1742
670
871

query I rowsort
SELECT ALL cor0.col0 + + 38 * col2 * col2 AS col0 FROM tab1 AS cor0
----
110811
123526
350288

query I rowsort
SELECT col0 + - col1 * col0 * - col1 + ( + 77 ) AS col2 FROM tab1 AS cor0
----
13677
2108
6541

onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT DISTINCT - + cor0.col0 + - 24 DIV + cor0.col0 AS col2 FROM tab0 cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT - + cor0.col0 + - 24 / + cor0.col0 AS col2 FROM tab0 cor0
----
-25
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT DISTINCT - tab2.col0 * tab2.col0 DIV + col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - tab2.col0 * tab2.col0 / + col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + tab0.col0 FROM tab0, tab1, tab2 cor0, tab2 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT DISTINCT + 59 * col1 AS col2 FROM tab1
----
1534
590
767

query I rowsort
SELECT ( 74 ) FROM tab0
----
74
74
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2417
SELECT CAST( + col2 AS SIGNED ) * - col2 + - 58 AS col0 FROM tab2
----
-1502
-734
-787

skipif mysql # not compatible
query I rowsort label-2417
SELECT CAST ( + col2 AS INTEGER ) * - col2 + - 58 AS col0 FROM tab2
----
-1502
-734
-787

query I rowsort
SELECT DISTINCT col2 * ( + col2 ) * + col2 + col2 * + col1 FROM tab1 AS cor0
----
158868
185763
885984

query I rowsort
SELECT - + 0 * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 75 * ( + col2 ) + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT ALL + 21 * ( + col1 ) + - col0 AS col1 FROM tab2 AS cor0
----
1161
278
644

query I rowsort
SELECT DISTINCT - tab1.col0 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT - + cor0.col0 * + cor0.col2 + col0 * + cor0.col1 + col2 * - 78 FROM tab0 AS cor0
----
-1302
-5595
3282

query I rowsort
SELECT DISTINCT - 47 * col1 AS col2 FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT - + 96 * col0 AS col2 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT ALL + 49 + + col1 FROM tab2 AS cor0
----
108
66
80

query I rowsort
SELECT 99 + - col1 * - 73 AS col1 FROM tab1 AS cor0
----
1048
1997
829

query I rowsort
SELECT DISTINCT col0 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + col1 * + col2 * + ( + col2 * col1 ) AS col2 FROM tab2
----
2353156
417316
700569

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT DISTINCT col2 + + col1 DIV col0 AS col2 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT col2 + + col1 / col0 AS col2 FROM tab0 cor0
----
3
36
83

query I rowsort
SELECT - + col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + + 45 FROM tab1 AS cor0
----
-19
-35
42

query I rowsort
SELECT + - ( cor0.col1 ) + 13 AS col0 FROM tab0 AS cor0
----
-73
-78
-84

query I rowsort
SELECT ALL - - 6 + col2 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT ALL 32 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT - col1 * col2 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT - - col2 * cor0.col2 + - col0 * col0 * 47 FROM tab0 AS cor0
----
-25983
-365563
-57574

query I rowsort
SELECT + - cor0.col1 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col0 + - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ( col0 * + col2 + + col1 ) FROM tab0
----
132
7389
878

query I rowsort
SELECT - + cor0.col1 - 65 FROM tab2 AS cor0
----
-124
-82
-96

query I rowsort
SELECT ALL + - col1 * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + ( + col1 ) + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col2 + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - 24 * - cor0.col1 + col2 * - col0 * 70 AS col2 FROM tab1 AS cor0
----
-10716
-255120
-537288

query I rowsort
SELECT DISTINCT + 78 * ( col0 ) + + col1 FROM tab1 AS cor0
----
260
5002
6253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + 68 col1 FROM tab0 AS cor0
----
139
139
139

query I rowsort
SELECT DISTINCT + - 52 + col1 AS col0 FROM tab2 AS cor0
----
-21
-35
7

query I rowsort
SELECT ALL - cor0.col1 * + 82 + + col1 - 30 AS col1 FROM tab2 AS cor0
----
-1407
-2541
-4809

query I rowsort
SELECT ALL col2 * + col2 + col2 + + col1 FROM tab1
----
2996
3316
9325

onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT + ( + col2 ) + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2454
SELECT + ( + col2 ) + col2 / - col2 AS col1 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT + ( - 88 ) + col0 + col1 FROM tab2 AS cor0
----
-50
49
8

query I rowsort
SELECT ( col1 ) * tab0.col0 * col2 + - col1 FROM tab0
----
3298
664027
68026

query I rowsort
SELECT 25 + + col1 AS col0 FROM tab0 AS cor0
----
111
116
122

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT ALL + col2 DIV - col1 + - tab2.col0 AS col0 FROM tab2
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + col2 / - col1 + - tab2.col0 AS col0 FROM tab2
----
-7
-78
-81

query I rowsort
SELECT ALL - col1 * col0 * + col0 FROM tab0
----
-118825
-49536
-720811

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col2 IN ( col0 / col2 )
----

query I rowsort
SELECT ALL - col1 * + tab2.col1 * - col2 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col2 * col1 + col0 + col0 AS col2 FROM tab2
----
1690
804
851

query I rowsort
SELECT + col0 + col2 * col0 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT - col1 * - tab2.col1 * tab2.col0 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - col0 - col1 * + col1 AS col0 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT DISTINCT col0 - + col1 * tab2.col1 AS col0 FROM tab2
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2468
SELECT col0 * + col0 - - col2 DIV + col1 AS col2 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-2468
SELECT col0 * + col0 - - col2 / + col1 AS col2 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2469
SELECT + col1 DIV col2 + col1 AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2469
SELECT + col1 / col2 + col1 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT col2 * col2 - - tab0.col2 AS col1 FROM tab0
----
1122
2
6806

query III rowsort
SELECT * FROM tab2 WHERE col1 * col2 NOT IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT - + cor0.col1 + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT + + col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col0 + + col2 - + col1 * + col0 AS col2 FROM tab0
----
-2007
-3359
-7928

query I rowsort
SELECT col2 * - tab1.col2 + col1 + col1 * col2 * col2 FROM tab1
----
110605
29251
72926

onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT + col0 DIV tab0.col2 col2 FROM tab0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2476
SELECT + col0 / tab0.col2 col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT col2 + col1 - col1 FROM tab1
----
54
57
96

query I rowsort
SELECT tab2.col1 + col2 + - col2 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT - tab2.col2 * - col0 + - col2 + - col1 AS col0 FROM tab2
----
131
1943
2947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab0.col1 col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2481
SELECT DISTINCT + tab1.col0 DIV + col0 + - col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + tab1.col0 / + col0 + - col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT ALL - cor0.col0 - cor0.col2 FROM tab2 cor0 WHERE NOT col0 + col1 >= + col0
----

query I rowsort
SELECT + col0 * - tab1.col0 + - tab1.col2 * + col0 FROM tab1
----
-14080
-171
-7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT DISTINCT - col1 DIV - tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - col1 / - tab0.col0 FROM tab0
----
1
2
3

query I rowsort
SELECT + col2 + col1 - col1 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - tab0.col2 + - col2 * - col2 - col1 AS col1 FROM tab0
----
-97
6551
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT DISTINCT - col1 DIV tab2.col1 col1 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - col1 / tab2.col1 col1 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT tab0.col2 * col2 + tab0.col0 AS col1 FROM tab0 WHERE NOT col0 - + col0 >= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT ALL + col2 DIV + tab1.col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL + col2 / + tab1.col2 FROM tab1
----
1
1
1

query I rowsort
SELECT col0 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 64312dc66df177d8c745c63c0bdd4dc7

query I rowsort
SELECT ALL - ( + col0 ) * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + - col2 col0 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + + 44 AS col1 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT - 0 * - 83 + cor0.col1 * cor0.col1 * - col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - - col0 * - col1 - col1 * ( col1 ) AS col2 FROM tab1 AS cor0
----
-1209
-740
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2497
SELECT ALL + 79 DIV + 10 col1 FROM tab0 AS cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + 79 / + 10 col1 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT ALL - ( + col0 ) + tab2.col1 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL 82 + col0 AS col1 FROM tab0
----
106
117
171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2500
SELECT + CAST( NULL AS DECIMAL ) * col0 - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT + CAST ( NULL AS REAL ) * col0 - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * + cor0.col0 + col0 * col1 + col0 FROM tab0 AS cor0
----
15486
2880
3465

onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT DISTINCT - col0 DIV - col2 + col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - col0 / - col2 + col0 FROM tab1 AS cor0
----
3
65
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT DISTINCT + + col0 DIV + ( col1 * 17 ) + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT + + col0 / + ( col1 * 17 ) + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 79 * + col0 * 60 - 95 FROM tab2
----
33085
369625
374365

query I rowsort
SELECT ALL - col1 + col1 * - 15 FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT DISTINCT - col0 + col0 * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2508
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2509
SELECT ALL cor0.col1 * + CAST( col0 AS SIGNED ) + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
15561
3492
4902

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL cor0.col1 * + CAST ( col0 AS INTEGER ) + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
15561
3492
4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT ALL + col0 + + 2 * col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
7
80
88

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + col0 + + 2 * col0 / + col1 AS col0 FROM tab2 AS cor0
----
7
80
88

query I rowsort
SELECT ALL col0 * col0 * col1 + col1 AS col0 FROM tab2 AS cor0
----
106114
1550
359015

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT ALL - - col1 * + 43 + 82 * cor0.col0 DIV + ( - col0 ) FROM tab0 AS cor0
----
3616
3831
4089

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - - col1 * + 43 + 82 * cor0.col0 / + ( - col0 ) FROM tab0 AS cor0
----
3616
3831
4089

query I rowsort
SELECT ALL col2 * col0 * + cor0.col1 AS col2 FROM tab0 cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2515
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + + col0 * 17 AS col0 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT ALL + - 37 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4133
-46
-6437

query I rowsort
SELECT ALL - + col2 * col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT ALL col2 DIV col0 - - col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL col2 / col0 - - col0 FROM tab2 AS cor0
----
10
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2522
SELECT DISTINCT CAST( ( - col0 - cor0.col2 ) AS SIGNED ) + - col2 - col0 FROM tab1 cor0
----
-114
-242
-352

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT CAST ( ( - col0 - cor0.col2 ) AS INTEGER ) + - col2 - col0 FROM tab1 cor0
----
-114
-242
-352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * col1 col0 FROM tab0 cor0
----
-6966
-7371
-7857

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT + col2 DIV - tab1.col0 + - col2 * col2 + col1 * col1 FROM tab1
----
-2258
-3149
-9048

skipif mysql # not compatible
query I rowsort label-2524
SELECT + col2 / - tab1.col0 + - col2 * col2 + col1 * col1 FROM tab1
----
-2258
-3149
-9048

onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT - ( + ( col0 ) + - col0 ) DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT - ( + ( col0 ) + - col0 ) / - col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT DISTINCT ( + col0 ) DIV col0 + + col2 * col2 AS col0 FROM tab1
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT ( + col0 ) / col0 + + col2 * col2 AS col0 FROM tab1
----
2917
3250
9217

query I rowsort
SELECT ALL ( - tab0.col0 ) + + col0 * - col0 AS col2 FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT - col0 * col0 * - cor0.col1 + col1 FROM tab1 AS cor0
----
260
40970
83213

query I rowsort
SELECT 2 + + tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 18e817b62724a9e6c343ab9a374e92bc

query I rowsort
SELECT 26 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 + - 61 col1 FROM tab1
----
-142
-142
-142

query I rowsort
SELECT ALL ( col2 ) + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL + 47 + tab1.col1 AS col2 FROM tab1
----
57
60
73

query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - col2 * - 42 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT DISTINCT - - col1 * ( - 56 ) FROM tab0 AS cor0
----
-4816
-5096
-5432

onlyif mysql # use DIV operator for integer division
query I rowsort label-2537
SELECT ALL tab2.col0 DIV - col1 AS col2 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL tab2.col0 / - col1 AS col2 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 * + col1 + - 53 * + cor0.col1 FROM tab1 AS cor0
----
-2054
-630
-858

query I rowsort
SELECT DISTINCT + col0 + - 99 FROM tab1 AS cor0
----
-19
-35
-96

query I rowsort
SELECT ALL - col0 * + ( 66 ) AS col1 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT DISTINCT + - col1 + + ( col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col1 * 82 AS col2 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT DISTINCT - + col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL col0 * col1 * + col0 AS col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT - tab0.col1 * + col2 + col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT DISTINCT tab1.col2 DIV - tab1.col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT tab1.col2 / - tab1.col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT DISTINCT - col2 * col2 - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT - + col0 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN col2 AND NULL OR NULL = + col0
----
-7
-78
-79

query I rowsort
SELECT col1 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
-54
-57
-96

query I rowsort
SELECT + 41 * col0 + + col2 FROM tab0 AS cor0
----
1017
1436
3731

onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT ALL - col2 * col0 + - col1 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-193
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - col2 * col0 + - col1 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-193
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT ALL cor0.col0 DIV - col2 - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-571

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL cor0.col0 / - col2 - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-571

query I rowsort
SELECT - ( - col2 ) - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + col0 col2 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT - cor0.col1 * col2 * + col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT col0 + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 - col1 col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - 0 * + col2 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 83 * col0 * col2 AS col0 FROM tab1 AS cor0
----
13446
302784
637440

query I rowsort
SELECT + + col0 * - cor0.col0 + - cor0.col1 * - cor0.col1 * col0 AS col1 FROM tab2 cor0
----
16590
265434
6678

query I rowsort
SELECT ALL + ( col1 ) * + col1 + 38 - + col2 FROM tab1
----
111
660
81

query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 - col1 * col1 FROM tab2
----
-1771
-4989
-897

query I rowsort
SELECT DISTINCT col2 * - col0 - + col1 FROM tab2
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col0 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT 41 * tab0.col0 + - col0 + ( + col0 ) * + col1 AS col2 FROM tab0
----
11659
3024
4795

query I rowsort
SELECT + col2 + + col1 * + tab2.col1 AS col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL col0 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - - cor0.col0 + - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT DISTINCT col0 + - col1 * + col2 + + col1 DIV col1 FROM tab2 cor0
----
-1455
-566
-829

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT col0 + - col1 * + col2 + + col1 / col1 FROM tab2 cor0
----
-1455
-566
-829

query I rowsort
SELECT - 18 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT - col0 * + 50 + 92 * - col0 * ( + col1 + col2 ) AS col1 FROM tab1 AS cor0
----
-22230
-397696
-806240

onlyif mysql # use DIV operator for integer division
query I rowsort label-2579
SELECT + col1 * + 79 + col2 + col2 DIV - cor0.col2 FROM tab1 AS cor0
----
1122
2107
846

skipif mysql # not compatible
query I rowsort label-2579
SELECT + col1 * + 79 + col2 + col2 / - cor0.col2 FROM tab1 AS cor0
----
1122
2107
846

query I rowsort
SELECT - col0 + ( 52 ) FROM tab2 AS cor0
----
-26
-27
45

query I rowsort
SELECT - col1 - - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + - col0 + + col1 * - 55 AS col2 FROM tab2 AS cor0
----
-1014
-1712
-3323

query I rowsort
SELECT - col1 + - col2 * 8 * - col0 - + col2 FROM tab1 AS cor0
----
1216
29117
61331

query I rowsort
SELECT ALL + col0 * - 41 AS col1 FROM tab0 cor0
----
-1435
-3649
-984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT cor0.col1 DIV - cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-2586
SELECT cor0.col1 / - cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2587
SELECT DISTINCT - col0 * CAST( + col1 AS SIGNED ) DIV col0 + + col0 * + 66 * col1 + + 58 DIV cor0.col2 FROM tab1 AS cor0
----
42231
5123
68627

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - col0 * CAST ( + col1 AS INTEGER ) / col0 + + col0 * + 66 * col1 + + 58 / cor0.col2 FROM tab1 AS cor0
----
42231
5123
68627

query I rowsort
SELECT col1 + - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2590
SELECT col1 DIV - col1 - col2 AS col0 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-2590
SELECT col1 / - col1 - col2 AS col0 FROM tab1
----
-55
-58
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2591
SELECT ALL + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 1 + col2 AS col1 FROM tab0 cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2594
SELECT DISTINCT + col1 * 2 DIV - col2 col2 FROM tab0 AS cor0
----
-194
-2
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT + col1 * 2 / - col2 col2 FROM tab0 AS cor0
----
-194
-2
-5

query I rowsort
SELECT - 45 * + col0 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT ALL - - 2 * + col2 + col0 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL - col2 * + col2 + - cor0.col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT - - col0 + + cor0.col2 * ( cor0.col1 + col1 ) AS col1 FROM tab0 AS cor0
----
15013
229
5700

query I rowsort
SELECT ALL col1 + cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - 51 FROM tab1, tab0 cor0 CROSS JOIN tab0 cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT ALL + + col0 * col1 - ( col1 + col1 ) FROM tab2 AS cor0
----
1309
155
4484

query I rowsort
SELECT ALL - - 27 AS col1 FROM tab2 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) - 34 col1 FROM tab0 AS cor0
----
-10
1
55

query I rowsort
SELECT DISTINCT - 50 * - col0 * col2 FROM tab1 AS cor0
----
182400
384000
8100

query I rowsort
SELECT ALL col1 * col1 - + 13 AS col1 FROM tab2 AS cor0
----
276
3468
948

query I rowsort
SELECT - - 32 * cor0.col0 FROM tab0 AS cor0
----
1120
2848
768

query I rowsort
SELECT DISTINCT + 83 * col0 AS col0 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT ALL ( + cor0.col2 ) * + col1 * + col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT 17 + col1 * col1 FROM tab0 cor0
----
7413
8298
9426

query I rowsort
SELECT + ( cor0.col1 ) + + 80 FROM tab2 cor0
----
111
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 * - cor0.col0 + + col2 col0 FROM tab2 AS cor0
----
-365
-4342
-4386

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT DISTINCT - cor0.col1 + + col0 DIV + 98 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - cor0.col1 + + col0 / + 98 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT - 7 - col0 FROM tab2
----
-14
-85
-86

query I rowsort
SELECT ALL + + col0 * col1 * + 16 + col2 FROM tab0 AS cor0
----
129666
33057
54321

query I rowsort
SELECT DISTINCT + + col2 * + col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-2617
SELECT ALL col0 + - cor0.col0 DIV 3 FROM tab0 AS cor0
----
16
24
60

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL col0 + - cor0.col0 / 3 FROM tab0 AS cor0
----
16
24
60

query I rowsort
SELECT + ( - col0 ) + - 59 * 23 AS col0 FROM tab2
----
-1364
-1435
-1436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col0 FROM tab2
----
85

query I rowsort
SELECT ALL col0 + + col2 * col2 AS col1 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT + ( + 15 ) AS col1 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT + + 39 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2622
SELECT + + 39 / col0 AS col2 FROM tab2 AS cor0
----
0
0
5

query I rowsort
SELECT - 23 FROM tab0, tab0 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT + + 49 AS col1 FROM tab2 cor0
----
49

query I rowsort
SELECT - col0 * + 23 * - 84 + + col0 * - col1 + col0 FROM tab1
----
123072
153600
5721

query I rowsort
SELECT col0 * col0 * - col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT 45 * - col0 FROM tab2
----
-315
-3510
-3555

query I rowsort
SELECT ALL + 70 FROM tab0, tab1 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL ( 66 ) AS col1 FROM tab2
----
66
66
66

query I rowsort
SELECT 42 + + tab1.col0 FROM tab1
----
106
122
45

query I rowsort
SELECT ALL - - 3 * - col1 FROM tab2 AS cor0
----
-177
-51
-93

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT ALL + 86 DIV + col0 AS col1 FROM tab2 AS cor0
----
1
1
12

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + 86 / + col0 AS col1 FROM tab2 AS cor0
----
1
1
12

query I rowsort
SELECT DISTINCT - col1 * + 45 FROM tab1 AS cor0
----
-1170
-450
-585

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2635
SELECT - CAST( + 69 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-5934
-6279
-6693

skipif mysql # not compatible
query I rowsort label-2635
SELECT - CAST ( + 69 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-5934
-6279
-6693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2636
SELECT DISTINCT + ( 86 ) * - cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + ( 86 ) * - cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col1 FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT - col2 + + col2 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col0 * + 91 + 11 + + col0 FROM tab0 AS cor0
----
-2149
-3139
-7999

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT + col0 DIV + col1 + + col0 AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2640
SELECT + col0 / + col1 + + col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + - col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT + 48 * + cor0.col0 * col0 FROM tab1 AS cor0
----
196608
307200
432

query I rowsort
SELECT DISTINCT + 78 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
78

query I rowsort
SELECT ALL 97 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + - 98 AS col0 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT - col2 - + col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
32

query I rowsort
SELECT ALL - + col2 * col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT col1 + + 36 AS col1 FROM tab2
----
53
67
95

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT ( cor0.col1 * tab1.col0 ) AS col0 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to e6d1e51162f22414194f33e791083a39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2655
SELECT col0 * col0 + col1 DIV col1 AS col1 FROM tab0 cor0
----
1226
577
7922

skipif mysql # not compatible
query I rowsort label-2655
SELECT col0 * col0 + col1 / col1 AS col1 FROM tab0 cor0
----
1226
577
7922

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab0
----
84

query I rowsort
SELECT 21 * + col0 FROM tab0
----
1869
504
735

query I rowsort
SELECT cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + col1 * + 13 FROM tab2
----
221
403
767

query I rowsort
SELECT ALL + tab0.col0 * cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 220064493ff9775ff1f87429d726f896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2661
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab2, tab1 AS cor0, tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab1 AS cor0, tab1
----
NULL

query I rowsort
SELECT ALL - tab1.col1 + 74 AS col1 FROM tab1
----
48
61
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT DISTINCT + col2 + 87 * + col1 AS col0 FROM tab2
----
1517
2724
5159

query I rowsort
SELECT DISTINCT - 43 + + 44 * + col1 * col1 FROM tab0
----
325381
364321
413953

query I rowsort
SELECT DISTINCT 98 + - 29 AS col2 FROM tab0
----
69

query I rowsort
SELECT ALL col1 + col1 + col1 AS col1 FROM tab1
----
30
39
78

query I rowsort
SELECT DISTINCT + col1 + - ( col1 + col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + 94 + col1 + - 29 FROM tab1 AS cor0
----
75
78
91

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 * col0 + 9 FROM tab2
----
-33
-5997
-6153

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2671
SELECT ALL + CAST( NULL AS SIGNED ) * - tab0.col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL + CAST ( NULL AS INTEGER ) * - tab0.col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 * - tab1.col2 AS col2 FROM tab1
----
-4752
-5016
-8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * + col2 col0 FROM tab2
----
2106
2187
3078

query I rowsort
SELECT ALL - 29 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2675
SELECT col0 + + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT col0 + + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2676
SELECT - col1 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2676
SELECT - col1 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT 9 * col1 - - col0 AS col0 FROM tab1 AS cor0
----
154
197
237

query I rowsort
SELECT + col0 + col0 + col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT col0 + col1 * - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 68 col0 FROM tab0
----
-1632
-2380
-6052

query I rowsort
SELECT DISTINCT - col0 * col0 * col2 FROM tab0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - 31 * col0 col1 FROM tab1 AS cor0
----
-2048
-2560
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col0 + 78 FROM tab1 AS cor0
----
142
158
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) + col0 * col0 * col1 col2 FROM tab1 AS cor0
----
180
40903
83104

query I rowsort
SELECT ALL col0 * - ( + 88 ) FROM tab1
----
-264
-5632
-7040

query I rowsort
SELECT - - ( 36 ) AS col0 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT ALL + col0 + - ( col0 ) * col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT col0 DIV + ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2690
SELECT col0 / + ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT DISTINCT - cor0.col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - cor0.col2 / + col0 AS col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT ALL - 85 + + 50 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + 87 + ( cor0.col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
-553
-953
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2695
SELECT DISTINCT + col0 * - 24 + col2 + + CAST( - col1 + - col1 AS SIGNED ) * - ( + col1 ) * - col2 AS col1 FROM tab0 cor0
----
-1360138
-19657
-488679

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT + col0 * - 24 + col2 + + CAST ( - col1 + - col1 AS INTEGER ) * - ( + col1 ) * - col2 AS col1 FROM tab0 cor0
----
-1360138
-19657
-488679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + - 88 * col1 AS col1 FROM tab1 AS cor0
----
-1144
-2288
-880

onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT - col1 DIV - col2 + + col1 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-2698
SELECT - col1 / - col2 + + col1 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT + col1 * col2 + ( - ( col0 ) ) FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT 47 * col2 AS col1 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2702
SELECT DISTINCT - col0 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - col0 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - cor0.col2 + ( - col2 ) AS col0 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT + 11 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2705
SELECT + - col0 + CAST( 56 AS SIGNED ) FROM tab0 AS cor0
----
-33
21
32

skipif mysql # not compatible
query I rowsort label-2705
SELECT + - col0 + CAST ( 56 AS INTEGER ) FROM tab0 AS cor0
----
-33
21
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT DISTINCT col2 DIV col1 + ( - col0 ) * 58 + 74 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-174
-3714
-4638

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT col2 / col1 + ( - col0 ) * 58 + 74 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-174
-3714
-4638

query I rowsort
SELECT ALL col1 + ( + cor0.col2 ) FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + col0 * + 15 AS col2 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT DISTINCT col1 - - 40 * - cor0.col2 FROM tab2 AS cor0
----
-1049
-1503
-981

query I rowsort
SELECT ALL + + cor0.col1 + cor0.col0 * - col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2712
SELECT ALL - cor0.col1 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - cor0.col1 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - ( cor0.col1 * - col1 ) FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 + - 23 col1 FROM tab2 AS cor0
----
-6107
-6264
-72

query I rowsort
SELECT ALL + col0 - 60 * col1 AS col0 FROM tab0 cor0
----
-5136
-5371
-5785

onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT DISTINCT - col0 + + col2 DIV + col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT - col0 + + col2 / + col0 FROM tab2 AS cor0
----
-4
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2717
SELECT + - col2 * + ( + col0 * col1 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT + - col2 * + ( + col0 * col1 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * - 44 + + col2 FROM tab2 AS cor0
----
-281
-3406
-3438

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2719
SELECT ALL + ( col0 ) + col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + ( col0 ) + col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * + 55 FROM tab2 AS cor0
----
-1705
-3245
-935

query I rowsort
SELECT DISTINCT + col2 * + 28 AS col0 FROM tab0 cor0
----
2296
28
924

query I rowsort
SELECT DISTINCT tab0.col0 * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 844087611670bb7fd62286733e4f81ac

query I rowsort
SELECT DISTINCT col1 * + col2 - ( 6 + - col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
15015
2910
4386

query I rowsort
SELECT - 88 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT DISTINCT - 81 * col0 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT + ( + col1 ) - cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT 2 + col0 * col2 AS col1 FROM tab0 cor0
----
37
7300
794

query I rowsort
SELECT - 11 - - 3 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT DISTINCT tab1.col0 - col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL 11 + + 76 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT - col0 * + col0 + col2 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT tab2.col0 * tab2.col0 + + col1 AS col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT + tab0.col2 + - col0 - + tab0.col0 FROM tab0
----
-15
-69
-96

query I rowsort
SELECT + tab2.col1 + col2 AS col1 FROM tab2
----
55
58
85

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 cor0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT ALL col0 + - 98 FROM tab1 AS cor0
----
-18
-34
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT ( col1 ) - ( col1 ) DIV col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2737
SELECT ( col1 ) - ( col1 ) / col1 FROM tab2
----
16
30
58

query I rowsort
SELECT DISTINCT - 28 + + col1 AS col0 FROM tab0
----
58
63
69

query I rowsort
SELECT ALL ( + col0 * + ( + col1 ) ) + + col2 * + 97 FROM tab1
----
10352
5316
6169

query I rowsort
SELECT + 43 * col1 + - 47 FROM tab2
----
1286
2490
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2741
SELECT - CAST( col1 AS SIGNED ) + + col2 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-2741
SELECT - CAST ( col1 AS INTEGER ) + + col2 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2742
SELECT DISTINCT - 50 DIV 83 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - 50 / 83 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col1 * ( tab1.col1 ) AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ( cor0.col1 ) + + cor0.col1 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 956d8870bc331b7793c38009f5a02194

query I rowsort
SELECT ALL + + 21 * - ( col1 + col2 ) FROM tab0 AS cor0
----
-2058
-2499
-3633

query I rowsort
SELECT + col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 7 + cor0.col1 AS col0 FROM tab0 AS cor0
----
104
93
98

query I rowsort
SELECT DISTINCT 47 * 70 + col0 FROM tab2 cor0
----
3297
3368
3369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col0 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT - 61 + - col1 AS col1 FROM tab0 AS cor0
----
-147
-152
-158

query I rowsort
SELECT 70 * - col0 AS col1 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT - ( - col2 ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2754
SELECT - + col1 DIV - cor0.col1 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2754
SELECT - + col1 / - cor0.col1 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - col2 * + ( 30 ) FROM tab0
----
-2460
-30
-990

query I rowsort
SELECT ALL + + col2 + - ( col0 + + col2 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col2 + + 63 AS col1 FROM tab2
----
25
36
37

query I rowsort
SELECT ALL - col1 + 95 + 90 AS col1 FROM tab2
----
126
154
168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2759
SELECT DISTINCT - col2 * col0 * - col1 + col0 - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - col2 * col0 * - col1 + col0 - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL col0 * 83 FROM tab0 AS cor0
----
1992
2905
7387

query I rowsort
SELECT - - cor0.col0 * - cor0.col2 * + 82 AS col0 FROM tab1 AS cor0
----
-13284
-299136
-629760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col2 * col2 + + cor0.col1 * col2 FROM tab0 cor0
----
14186
3927
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col2 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + - col2 * - ( - col2 * + col2 ) - 30 * 87 FROM tab1 AS cor0
----
-160074
-187803
-887346

query I rowsort
SELECT DISTINCT - - col0 + 73 AS col1 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT + col2 + - 48 * - col1 FROM tab2 cor0
----
1515
2858
854

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2768
SELECT - CAST( - col2 AS SIGNED ) * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-2768
SELECT - CAST ( - col2 AS INTEGER ) * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT 75 * col2 + - col1 FROM tab1 AS cor0
----
4024
4265
7187

query I rowsort
SELECT DISTINCT - 59 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-52
19
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2771
SELECT - - CAST( NULL AS SIGNED ) + 63 + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT - - CAST ( NULL AS INTEGER ) + 63 + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT ALL col1 DIV - ( + col0 ) FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL col1 / - ( + col0 ) FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT col0 * + 27 FROM tab0
----
2403
648
945

query I rowsort
SELECT + ( 65 ) + - col0 FROM tab0 AS cor0
----
-24
30
41

query I rowsort
SELECT col2 + 70 + + col2 * + tab1.col0 FROM tab1
----
286
3775
7846

query I rowsort
SELECT - ( col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT ( tab0.col0 * - col1 + + ( col1 ) ) FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT - cor0.col2 * cor0.col2 - - cor0.col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT - cor0.col1 + cor0.col1 * + cor0.col2 - col2 FROM tab0 AS cor0
----
-1
2719
7289

query I rowsort
SELECT + 94 * + col0 FROM tab0 AS cor0
----
2256
3290
8366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( ( - col0 ) ) col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col1 + col1 * - 61 AS col1 FROM tab1 AS cor0
----
-1560
-600
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - - col2 + col1 * + 73 FROM tab0 AS cor0
----
6311
6725
7082

onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT 55 DIV 30 col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2785
SELECT 55 / 30 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - tab0.col2 * col2 AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + ( - 40 ) FROM tab1
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col2 FROM tab0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT col0 * 27 AS col0 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT + col2 + - 55 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
35257
4344
57296

query I rowsort
SELECT col0 * - 93 FROM tab2 AS cor0
----
-651
-7254
-7347

query I rowsort
SELECT - - col1 * + col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2794
SELECT + - 96 DIV - tab1.col1 + - 90 * + cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d4f0c11cc0aec9e51e4e6f0ab224903c

skipif mysql # not compatible
query I rowsort label-2794
SELECT + - 96 / - tab1.col1 + - 90 * + cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d4f0c11cc0aec9e51e4e6f0ab224903c

query I rowsort
SELECT DISTINCT - ( col1 ) * + col2 * + 34 FROM tab2
----
-21964
-28458
-52156

query I rowsort
SELECT + 18 + ( + tab0.col0 + 11 * - cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 857a571bfa9195d1d4e4775bbc189d51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2797
SELECT - col2 + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT - col2 + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - 87 col2 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT + col0 * + col2 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col1 * - col1 * + col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 / + col2 AND col0
----

query I rowsort
SELECT DISTINCT - col1 * + col1 AS col1 FROM tab1 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT col1 DIV + col2 + cor0.col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-2802
SELECT col1 / + col2 + cor0.col0 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT ALL col1 * + col1 FROM tab0 AS cor0 WHERE NOT col2 - + cor0.col0 NOT IN ( col0 - + col1 * - col2 )
----

query I rowsort
SELECT col1 * cor0.col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT DISTINCT col0 DIV + col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT col0 / + col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col0 * + col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN ( - col0 ) AND + col2 / + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + col0 + + tab2.col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 > ( NULL )
----

query I rowsort
SELECT ALL + col2 - col0 * col2 AS col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT - col0 - col1 * - col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT col2 - col2 * - col1 AS col0 FROM tab2
----
1560
684
864

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT col1 DIV col0 + col0 * + col2 - + tab2.col2 * + col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2814
SELECT col1 / col0 + col0 * + col2 - + tab2.col2 * + col0 FROM tab2
----
0
0
4

query I rowsort
SELECT - col0 * + col0 + col2 + col2 FROM tab1
----
-3982
-6208
99

query I rowsort
SELECT col0 * col0 * + col0 + + col1 + - col0 * tab2.col2 * + col0 AS col2 FROM tab2
----
-949
255898
316427

query I rowsort
SELECT ALL + col0 - - cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col2 + - col0 * - col2 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col0 * col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col0 - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2823
SELECT ALL + + col0 DIV + col0 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + + col0 / + col0 col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col1 * col0 * col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT tab1.col0 + col2 * col0 - + col1 FROM tab1
----
139
3702
7747

query I rowsort
SELECT DISTINCT tab1.col1 + col1 * + col1 - - col0 AS col2 FROM tab1
----
174
262
705

query I rowsort
SELECT DISTINCT - col0 + col2 - col0 * + col1 AS col0 FROM tab0
----
-2055
-3429
-8106

query I rowsort
SELECT tab2.col2 + col1 + col2 AS col1 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT + col1 * col2 + - col0 FROM tab1
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT ALL col2 * col2 DIV - col1 + - tab0.col1 FROM tab0
----
-164
-97
-98

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL col2 * col2 / - col1 + - tab0.col1 FROM tab0
----
-164
-97
-98

query I rowsort
SELECT DISTINCT + tab2.col2 * - col1 * col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IN ( - col2 * + col0 ) OR NULL < NULL
----

query I rowsort
SELECT - col1 + col1 + col1 * - col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - + col2 * col2 + - col0 * cor0.col2 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT ALL + col0 * col1 + col1 + + col1 AS col0 FROM tab1
----
1066
130
660

query I rowsort
SELECT col1 * col2 + cor0.col0 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT tab1.col1 + - col2 + + 71 * col2 AS col1 FROM tab1
----
3806
4000
6733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2839
SELECT col0 + + col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT col0 + + col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col0 + col1 * - col0 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT + - col2 + col2 * col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT 96 FROM tab0, tab1, tab2 AS cor0
----
96

query I rowsort
SELECT + 76 * - tab0.col2 AS col1 FROM tab0
----
-2508
-6232
-76

query I rowsort
SELECT - col2 + + col2 * col2 + + col0 FROM tab1
----
2865
3256
9200

query I rowsort
SELECT ALL - - 5 * - col2 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1254
-6
-7134

query I rowsort
SELECT ( - col2 ) * - ( col2 ) + + col1 AS col1 FROM tab2
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col1 * ( - col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 31 + col1 col1 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT tab0.col2 + + col0 + - col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT col1 * + cor0.col2 + - 6 + - cor0.col2 AS col2 FROM tab1 cor0
----
1146
1344
507

query I rowsort
SELECT - col1 * + col0 + + cor0.col1 * + col1 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT + - col0 + + 9 + + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
585
84
969

query I rowsort
SELECT ALL + + col1 * + 85 AS col0 FROM tab2 AS cor0
----
1445
2635
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * 57 col0 FROM tab2 AS cor0
----
-1048
-1774
-3441

query I rowsort
SELECT - tab1.col0 + - col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - tab1.col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 < NULL
----

query I rowsort
SELECT col0 + + col0 + col1 AS col1 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL + col1 + col1 * col2 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT - col2 + col1 * + col0 * col1 FROM tab2
----
22793
271492
6700

query I rowsort
SELECT DISTINCT - col0 - col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL + tab1.col2 AS col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 63 AS col2 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT + 28 - col1 FROM tab2 AS cor0
----
-3
-31
11

query I rowsort
SELECT ALL + 50 + + col1 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT - col1 - - col1 * - 66 AS col0 FROM tab1 AS cor0
----
-1742
-670
-871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2867
SELECT + 61 * - cor0.col2 + + CAST( NULL AS SIGNED ) + col1 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT + 61 * - cor0.col2 + + 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-2868
SELECT DISTINCT - col0 * col0 * + col0 + col0 DIV col2 FROM tab0
----
-13824
-42840
-704968

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT - col0 * col0 * + col0 + col0 / col2 FROM tab0
----
-13824
-42840
-704968

query I rowsort
SELECT - col0 - + col1 AS col1 FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT col1 DIV + col1 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2870
SELECT col1 / + col1 col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2872
SELECT - col0 + col1 DIV - col0 FROM tab2
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-2872
SELECT - col0 + col1 / - col0 FROM tab2
----
-11
-78
-79

query I rowsort
SELECT + col2 + - ( col0 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col2 * - col2 + col1 * col2 AS col0 FROM tab0 cor0
----
1749
738
96

query I rowsort
SELECT - + col0 * 22 - cor0.col0 * - col2 FROM tab1 AS cor0
----
2240
5920
96

query I rowsort
SELECT col0 - 86 * 13 AS col2 FROM tab1 AS cor0
----
-1038
-1054
-1115

query I rowsort
SELECT DISTINCT - col1 + col2 * ( col1 ) FROM tab0
----
0
2752
7371

query I rowsort
SELECT ALL ( col0 ) + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + col0 * col1 + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT 7 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2881
SELECT col0 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT col0 + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + + col1 * - col0 * - col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - col2 * ( + col2 ) FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT tab0.col0 * 97 AS col2 FROM tab0
----
2328
3395
8633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2886
SELECT - CAST( + col0 AS SIGNED ) + + col1 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-2886
SELECT - CAST ( + col0 AS INTEGER ) + + col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT 80 * 73 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f5e99e10ae0ba7b5b0dec5bfcd9e7b8b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2888
SELECT DISTINCT - 90 * col1 - CAST( col0 + - col2 * + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1960
-3854
-963

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT - 90 * col1 - CAST ( col0 + - col2 * + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1960
-3854
-963

query I rowsort
SELECT 57 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2890
SELECT - + 14 DIV col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT - + 14 / col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - ( + col2 ) * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ( - col2 ) + - 46 FROM tab0 AS cor0
----
-128
-47
-79

query I rowsort
SELECT - 32 AS col2 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT col1 * - col1 - col2 FROM tab1 cor0
----
-157
-265
-730

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = col0 AND NULL NOT BETWEEN cor0.col2 AND col2 OR NULL NOT IN ( + col2 + + col1 )
----

query I rowsort
SELECT cor0.col2 - + cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT col0 + col0 * col1 + + col1 FROM tab1
----
107
1133
714

query I rowsort
SELECT - col2 + + tab2.col0 * + col2 FROM tab2
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT + col0 DIV + col0 + - col1 - tab0.col2 * col1 AS col2 FROM tab0
----
-193
-2923
-7552

skipif mysql # not compatible
query I rowsort label-2900
SELECT + col0 / + col0 + - col1 - tab0.col2 * col1 AS col2 FROM tab0
----
-193
-2923
-7552

onlyif mysql # use DIV operator for integer division
query I rowsort label-2901
SELECT col1 DIV - col0 + tab2.col1 * + col0 AS col1 FROM tab2
----
1343
213
4602

skipif mysql # not compatible
query I rowsort label-2901
SELECT col1 / - col0 + tab2.col1 * + col0 AS col1 FROM tab2
----
1343
213
4602

query I rowsort
SELECT DISTINCT col0 * + col0 - + col1 FROM tab0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT - col1 DIV col1 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2903
SELECT - col1 / col1 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 + + cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + + col2 + + col1 * col1 * col2 FROM tab2 cor0
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT - col1 + - col2 DIV - col2 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2906
SELECT - col1 + - col2 / - col2 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT + col2 + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT + 64 * - col0 FROM tab1
----
-192
-4096
-5120

query I rowsort
SELECT + 17 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1513
408
595

onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT + 77 DIV col0 col1 FROM tab1 cor0
----
0
1
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2910
SELECT + 77 / col0 col1 FROM tab1 cor0
----
0
1
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-2911
SELECT + col0 * - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2911
SELECT + col0 * - col1 / col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + 43 AS col0 FROM tab1 AS cor0
----
43
43
43

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 - 78 * + col0 col1 FROM tab1 AS cor0
----
-234
-4992
-6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2915
SELECT ALL - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ( tab2.col1 ) * col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT 64 FROM tab0, tab1, tab2 AS cor0
----
64

query I rowsort
SELECT cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 50 + ( - col2 ) col1 FROM tab0 AS cor0
----
-32
17
49

query I rowsort
SELECT ALL 66 + col2 FROM tab0
----
148
67
99

query I rowsort
SELECT DISTINCT ( tab0.col1 ) + col1 AS col0 FROM tab0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2922
SELECT + CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT + CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - tab1.col0 * + col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT - tab2.col2 + + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f5a900b2f94b2c0349974e7b95e705a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 51 ) + col2 col1 FROM tab2
----
77
78
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT DISTINCT col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT col2 / col2 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + ( 10 ) - col2 FROM tab1 AS cor0
----
-44
-47
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT ( col0 ) / + col1 - CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT ( col0 ) / + col1 - CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT col1 + col2 * 95 AS col0 FROM tab1 AS cor0
----
5156
5425
9133

query I rowsort
SELECT ALL 32 * cor0.col1 AS col1 FROM tab1 AS cor0
----
320
416
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT - col2 * + col0 DIV + col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2932
SELECT - col2 * + col0 / + col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 54 * col1 + - col2 FROM tab1 AS cor0
----
-1458
-597
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT ALL col2 DIV - cor0.col1 + + col0 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL col2 / - cor0.col1 + + col0 FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT + ( col1 ) * + col0 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-101
-512
3926

onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT DISTINCT + cor0.col2 DIV col2 + CAST( 1 AS SIGNED ) * col2 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + cor0.col2 / col2 + CAST ( 1 AS INTEGER ) * col2 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT ALL - - cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 + - 27 * col2 AS col2 FROM tab0
----
-2123
-805
70

query I rowsort
SELECT 99 AS col1 FROM tab1
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col2 ) ) * - col1 + - 29 * + col1 col2 FROM tab2
----
-1139
-1736
-3245

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT + col2 DIV + cor0.col1 + ( col1 + col2 ) col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2941
SELECT + col2 / + cor0.col1 + ( col1 + col2 ) col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - col0 + - ( 96 ) * col1 AS col1 FROM tab0 AS cor0
----
-8280
-8825
-9347

onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT ALL - col0 + - ( + cor0.col0 ) DIV + col2 FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - col0 + - ( + cor0.col0 ) / + col2 FROM tab0 AS cor0
----
-24
-70
-90

query I rowsort
SELECT ALL - cor0.col1 - 57 AS col1 FROM tab0 AS cor0
----
-143
-148
-154

query I rowsort
SELECT + col2 * col2 * 58 FROM tab0 AS cor0
----
389992
58
63162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * + col1 col2 FROM tab2
----
1652
476
868

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + cor0.col2 * 60 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT ALL - col1 * + 43 AS col1 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT + 66 AS col2 FROM tab0
----
66
66
66

query I rowsort
SELECT col1 * + 78 AS col1 FROM tab0
----
6708
7098
7566

onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT ALL + + col1 DIV + col1 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL + + col1 / + col1 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col1 col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2956
SELECT ALL col2 + + 38 DIV + col2 col1 FROM tab0 AS cor0
----
34
39
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL col2 + + 38 / + col2 col1 FROM tab0 AS cor0
----
34
39
82

query I rowsort
SELECT - 40 * - 84 FROM tab2 AS cor0
----
3360
3360
3360

query I rowsort
SELECT DISTINCT - col1 + 21 - + cor0.col0 AS col0 FROM tab1 cor0
----
-53
-72
-8

query I rowsort
SELECT - 91 * col1 AS col1 FROM tab0 AS cor0
----
-7826
-8281
-8827

query I rowsort
SELECT + ( + 36 ) FROM tab2 cor0
----
36
36
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT + col2 - + ( col1 ) DIV col1 AS col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2961
SELECT + col2 - + ( col1 ) / col1 AS col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - + ( - ( col2 ) ) + col0 * - 83 FROM tab1 AS cor0
----
-195
-5255
-6544

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL ( + 39 ) AS col1 FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT ALL + col1 * - col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ( - col0 ) * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - 29 * - col2 FROM tab2 cor0
----
-1102
-754
-783

query I rowsort
SELECT - 36 FROM tab2, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT DISTINCT col1 * col2 DIV - 91 FROM tab1
----
-13
-15
-6

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT col1 * col2 / - 91 FROM tab1
----
-13
-15
-6

query I rowsort
SELECT DISTINCT + col2 * 72 FROM tab2
----
1872
1944
2736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT - 65 DIV - 19 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

skipif mysql # not compatible
query I rowsort label-2972
SELECT - 65 / - 19 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT + 64 * col2 FROM tab2 AS cor0
----
1664
1728
2432

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT + + col1 - col1 DIV + col2 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-2974
SELECT + + col1 - col1 / + col2 FROM tab0 AS cor0
----
0
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 col0 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2977
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 66 * ( - col2 * - col2 ) AS col2 FROM tab0 AS cor0
----
443784
66
71874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2979
SELECT CAST( NULL AS SIGNED ) * - 66 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT CAST ( NULL AS INTEGER ) * - 66 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col2 + - col1 ) FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + 63 + + 89 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 565904e33266d77f7dacf61b699cde5a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2982
SELECT DISTINCT + col1 DIV col0 AS col0 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT + col1 / col0 AS col0 FROM tab2
----
0
4

query I rowsort
SELECT + cor1.col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - tab2.col1 - col0 * tab2.col1 AS col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT ALL + cor0.col1 + - col1 * - ( + col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
53
648
86

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + col0 * + col2 FROM tab1 cor0
----
1566
4218
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2987
SELECT DISTINCT - - col2 + + col1 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT - - col2 + + col1 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + + 24 * col0 AS col2 FROM tab2 AS cor0
----
168
1872
1896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2989
SELECT + col1 + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT + col1 + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - tab1.col1 ) + ( + col1 ) * - col2 * + 76 FROM tab1
----
-106730
-43330
-94861

query I rowsort
SELECT ALL + col1 * 27 AS col2 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab2, tab2 AS cor0
----
79

query I rowsort
SELECT DISTINCT col0 * col1 * - 65 FROM tab2 cor0
----
-14105
-299130
-87295

query I rowsort
SELECT ALL - tab0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 + col0 AS col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT - cor0.col1 * - 49 FROM tab1 AS cor0
----
1274
490
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - col1 * col1 + 83 + - 41 AS col0 FROM tab0 AS cor0
----
-7354
-8239
-9367

query I rowsort
SELECT ALL + - 10 AS col1 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT + + ( + col1 ) + ( col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT cor0.col1 * + 87 AS col1 FROM tab2 cor0
----
1479
2697
5133

query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8

query I rowsort
SELECT DISTINCT - 92 * - col2 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT col1 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - + 0 * - 22 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 99 AS col1 FROM tab0
----
99
99
99

query I rowsort
SELECT col1 + + 16 FROM tab2
----
33
47
75

query I rowsort
SELECT DISTINCT + col2 * 44 FROM tab1
----
2376
2508
4224

query I rowsort
SELECT ALL + + 10 AS col0 FROM tab2 cor0
----
10
10
10

query I rowsort
SELECT DISTINCT 85 FROM tab0, tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT - ( + col1 ) + col2 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT - 96 * 88 FROM tab2 AS cor0
----
-8448
-8448
-8448

query I rowsort
SELECT DISTINCT + ( - col1 + tab1.col1 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT - col0 + col1 DIV col1 col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3019
SELECT - col0 + col1 / col1 col0 FROM tab2 AS cor0
----
-6
-77
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3020
SELECT 67 DIV 66 - tab2.col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-3020
SELECT 67 / 66 - tab2.col2 FROM tab2
----
-25
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT + 13 DIV col2 FROM tab0 cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-3021
SELECT + 13 / col2 FROM tab0 cor0
----
0
0
13

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

query I rowsort
SELECT col2 + col0 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT + 5 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3025
SELECT + col1 + - 9 DIV - col0 FROM tab2 AS cor0
----
17
32
59

skipif mysql # not compatible
query I rowsort label-3025
SELECT + col1 + - 9 / - col0 FROM tab2 AS cor0
----
17
32
59

query I rowsort
SELECT - - col1 - col1 * col1 * - col0 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT - ( 26 ) FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT CAST( col0 AS SIGNED ) + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

skipif mysql # not compatible
query I rowsort label-3028
SELECT CAST ( col0 AS INTEGER ) + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT + col1 + col0 * col0 DIV - col1 col2 FROM tab2 AS cor0
----
-350
-44
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3029
SELECT + col1 + col0 * col0 / - col1 col2 FROM tab2 AS cor0
----
-350
-44
30

query I rowsort
SELECT - ( + 88 ) + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1446
558
749

query I rowsort
SELECT + col2 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + 69 + + col1 + col2 * ( 51 * col2 ) FROM tab0 AS cor0
----
217
343084
55694

query I rowsort
SELECT 84 + + col2 + + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1220
216
781

onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT col2 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3034
SELECT col2 / - cor0.col0 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3035
SELECT - 60 DIV + 69 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT - 60 / + 69 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3036
SELECT col2 DIV + col0 + col0 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-3036
SELECT col2 / + col0 + col0 FROM tab0
----
25
35
89

query I rowsort
SELECT 12 + cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 203a7d17901c40e51934395e6c04b52f

query I rowsort
SELECT - - col2 * col1 - + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - col2 * 75 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-172
-2561
-6241

query I rowsort
SELECT DISTINCT col1 * ( col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col0 * - 8 AS col1 FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT DISTINCT col1 * + col0 - - col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 2 col1 FROM tab1
----
12
15
28

query I rowsort
SELECT DISTINCT - col0 * col2 - + 83 AS col0 FROM tab1 AS cor0
----
-245
-3731
-7763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - + col1 col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col2 + 90 + - col1 AS col2 FROM tab0
----
-29
-8
-83

query I rowsort
SELECT col1 + 90 + col1 * col2 FROM tab0
----
284
3014
7643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT cor0.col0 + - col2 * - 30 AS col0 FROM tab1 AS cor0
----
1623
1774
2960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT + col2 DIV + col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-3051
SELECT + col2 / + col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + - cor0.col2 + - 10 * col2 FROM tab0 cor0
----
-11
-363
-902

query I rowsort
SELECT ALL + + col2 * - col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 69 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL - tab1.col2 * + col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT 49 FROM tab0, tab1, tab0 AS cor0
----
49

query I rowsort
SELECT ALL 21 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL col2 + 39 AS col1 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT - 40 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT col1 * + 65 AS col0 FROM tab2 cor0
----
1105
2015
3835

query I rowsort
SELECT - 99 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-102
-163
-179

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 38896d3a4bd953cc78f93d73ae064cbd

query I rowsort
SELECT + - ( col2 ) + - cor0.col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + col2 * - col1 * 6 AS col0 FROM tab0 AS cor0
----
-17028
-44772
-582

query I rowsort
SELECT - 60 * - col2 AS col0 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT DISTINCT - - col1 + col0 * col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT + - col2 DIV col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3068
SELECT + - col2 / col1 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 + col1 * col1 AS col1 FROM tab1 AS cor0
----
1417
2080
670

query I rowsort
SELECT DISTINCT + col2 + - col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + - 75 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + - 59 * col0 FROM tab2 AS cor0
----
-413
-4602
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * col0 col0 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT + - 60 * col0 AS col2 FROM tab2 cor0
----
-420
-4680
-4740

query I rowsort
SELECT 12 + col0 AS col0 FROM tab1 cor0
----
15
76
92

query I rowsort
SELECT DISTINCT + 69 + + col1 FROM tab2 AS cor0
----
100
128
86

query I rowsort
SELECT ALL + ( col0 ) + ( col1 ) AS col1 FROM tab1 AS cor0
----
29
74
93

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE NULL NOT IN ( cor0.col1 )
----

query I rowsort
SELECT DISTINCT col1 + col1 * + cor0.col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + - 9 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 AS col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT + col0 * 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col2 * 72 * col1 AS col1 FROM tab0 cor0
----
204336
537264
6984

query I rowsort
SELECT 78 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT DISTINCT - cor0.col0 * tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 02551feb5ca40c11f08ef3f9e9603264

query I rowsort
SELECT + 35 + col1 FROM tab0
----
121
126
132

query I rowsort
SELECT 4 + col2 FROM tab1
----
100
58
61

query I rowsort
SELECT ALL 48 + col0 AS col2 FROM tab1 cor0
----
112
128
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3089
SELECT + 9 * - 71 + cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-639
-639
-639

skipif mysql # not compatible
query I rowsort label-3089
SELECT + 9 * - 71 + cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
-639
-639
-639

query I rowsort
SELECT DISTINCT + 18 * 49 * col1 AS col2 FROM tab0 AS cor0
----
75852
80262
85554

query I rowsort
SELECT ALL - - ( - col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT ALL ( col0 ) DIV - col1 + + 99 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
100
3300
8200

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL ( col0 ) / - col1 + + 99 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
100
3300
8200

query I rowsort
SELECT DISTINCT + + 49 FROM tab1 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 * col0 * col1 col1 FROM tab1 AS cor0
----
1920
234
3120

query I rowsort
SELECT + col1 + - cor0.col0 + - col0 AS col2 FROM tab1 cor0
----
-118
-147
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3096
SELECT DISTINCT col1 / 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-3096
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) + col1 col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 * col2 - col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT 0 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col1 + + col1 * + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - col0 + tab1.col2 * col0 - - tab1.col2 FROM tab1
----
213
3641
7696

query I rowsort
SELECT 5 * - col0 AS col1 FROM tab1
----
-15
-320
-400

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab1, tab2 AS cor0
----
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3103
SELECT ALL + 35 * col0 - - col0 * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1600
1760
27

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + 35 * col0 - - col0 * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1600
1760
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3104
SELECT ALL + - ( 57 ) + col0 * - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + - ( 57 ) + col0 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 - + 37 FROM tab0 AS cor0
----
-126
-61
-72

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT + col0 + - col1 DIV cor0.col1 FROM tab2 cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-3107
SELECT + col0 + - col1 / cor0.col1 FROM tab2 cor0
----
6
77
78

query I rowsort
SELECT ALL - 59 FROM tab2, tab0 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT DISTINCT + tab1.col1 * - tab1.col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col2 * + 61 AS col2 FROM tab2
----
-1586
-1647
-2318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3111
SELECT - CAST( NULL AS SIGNED ) * - col0 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT - CAST ( NULL AS INTEGER ) * - col0 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1, tab1 cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT - ( ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - 38 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT col2 * 6 AS col2 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT ( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3117
SELECT + + CAST( 31 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2666
2821
3007

skipif mysql # not compatible
query I rowsort label-3117
SELECT + + CAST ( 31 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT ALL - 76 * + col2 AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT + cor0.col2 * col1 - col1 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT col0 DIV - col1 + col1 * cor0.col0 FROM tab2 AS cor0
----
1339
217
4601

skipif mysql # not compatible
query I rowsort label-3120
SELECT col0 / - col1 + col1 * cor0.col0 FROM tab2 AS cor0
----
1339
217
4601

query I rowsort
SELECT 5 + - col0 FROM tab1 AS cor0
----
-59
-75
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3122
SELECT DISTINCT + 79 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT + 79 / col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + cor0.col0 col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3124
SELECT col2 * + CAST( NULL AS SIGNED ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT col2 * + CAST ( NULL AS INTEGER ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 21 AS col1 FROM tab0 AS cor0
----
1722
21
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT col0 * col0 + - col1 DIV - col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-3126
SELECT col0 * col0 + - col1 / - col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + cor0.col0 * - cor0.col0 * ( - col1 ) + + col0 FROM tab1 cor0
----
237
41024
83280

query I rowsort
SELECT + - cor0.col1 * - col0 + 12 FROM tab2 AS cor0
----
1355
229
4614

onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT ALL - col2 DIV + ( + col1 ) + col1 * 16 AS col0 FROM tab1 AS cor0
----
155
201
414

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - col2 / + ( + col1 ) + col1 * 16 AS col0 FROM tab1 AS cor0
----
155
201
414

query I rowsort
SELECT DISTINCT - + col1 * ( + col0 ) * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + col1 + col2 + col0 AS col1 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT ALL + col0 * - col0 * col0 AS col1 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT DISTINCT - col1 + 84 * - col2 AS col0 FROM tab2 AS cor0
----
-2243
-2299
-3209

query I rowsort
SELECT DISTINCT + col1 + 78 AS col1 FROM tab1 cor0
----
104
88
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col1 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col0 * + ( - 33 ) * + col1 - - 61 FROM tab1 AS cor0
----
21181
2635
34381

query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 + - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT DISTINCT + cor0.col0 + col1 DIV col0 + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-16
41
52

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT + cor0.col0 + col1 / col0 + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-16
41
52

query I rowsort
SELECT ALL + - col0 * - col1 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + 91 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT col0 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT col2 * + 91 AS col1 FROM tab2
----
2366
2457
3458

query I rowsort
SELECT ALL cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + col2 + - 30 AS col1 FROM tab2
----
-3
-4
8

query I rowsort
SELECT DISTINCT - - col1 * col0 + - ( - col1 ) FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + col2 - + col0 * col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT 77 - - col2 AS col0 FROM tab1 AS cor0
----
131
134
173

query I rowsort
SELECT DISTINCT 20 * col1 FROM tab1
----
200
260
520

query I rowsort
SELECT ALL + ( col1 * 20 ) FROM tab1
----
200
260
520

query I rowsort
SELECT - - tab2.col1 AS col2 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL + 34 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT DISTINCT + cor0.col0 * + 48 AS col1 FROM tab0, tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT + col0 - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - cor0.col2 * + col2 * + col0 FROM tab0 cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT tab1.col0 + col0 DIV col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-3157
SELECT tab1.col0 + col0 / col2 FROM tab1
----
3
65
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT DISTINCT + col0 DIV + col0 + + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT + col0 / + col0 + + col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3159
SELECT DISTINCT ( + ( - col1 ) ) * CAST( 22 AS SIGNED ) * + col0 + col2 * col2 FROM tab0 AS cor0
----
-171454
-44319
-74689

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT ( + ( - col1 ) ) * CAST ( 22 AS INTEGER ) * + col0 + col2 * col2 FROM tab0 AS cor0
----
-171454
-44319
-74689

query I rowsort
SELECT ALL - 43 - + 98 * + cor0.col0 FROM tab0 AS cor0
----
-2395
-3473
-8765

query I rowsort
SELECT + ( - col0 ) + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL ( 60 ) FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT col2 * + ( - col0 ) + col0 * - col0 AS col1 FROM tab2
----
-238
-8112
-9243

query I rowsort
SELECT - col1 * + col0 + + col2 AS col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ( + 47 ) + + col1 * ( col0 ) FROM tab0
----
2111
3442
8146

query I rowsort
SELECT ALL 12 * + col1 FROM tab1
----
120
156
312

query I rowsort
SELECT - ( 7 ) * col0 AS col2 FROM tab0 AS cor0
----
-168
-245
-623

query I rowsort
SELECT ALL + 97 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - 74 * col0 AS col2 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT - - 63 * 23 * + col0 FROM tab1 AS cor0
----
115920
4347
92736

query I rowsort
SELECT ( tab1.col2 ) - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b3cfe493ab82d61f577d990b98c32a6

query I rowsort
SELECT - tab0.col0 * 7 + + col2 AS col2 FROM tab0
----
-135
-244
-541

onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT DISTINCT col2 + col0 * col1 + col2 DIV col0 AS col0 FROM tab1
----
1137
150
697

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT col2 + col0 * col1 + col2 / col0 AS col0 FROM tab1
----
1137
150
697

query I rowsort
SELECT 17 * col0 AS col1 FROM tab2
----
119
1326
1343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col2 FROM tab1, tab2, tab1 cor0
----
-47

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT + col2 * + col0 DIV - col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3177
SELECT + col2 * + col0 / - col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT - + col0 + col2 DIV ( 71 ) + + col0 col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3178
SELECT - + col0 + col2 / ( 71 ) + + col0 col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col0 + - col0 * 31 AS col1 FROM tab2
----
-224
-2496
-2528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3180
SELECT DISTINCT col0 + + col0 + CAST( NULL AS SIGNED ) * 56 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT col0 + + col0 + CAST ( NULL AS INTEGER ) * 56 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + tab2.col2 * col2 + - col1 FROM tab2
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT col1 + ( + col0 ) DIV col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3182
SELECT col1 + ( + col0 ) / col1 FROM tab2
----
21
31
60

query I rowsort
SELECT DISTINCT - + col2 + 21 AS col0 FROM tab2 AS cor0
----
-17
-5
-6

query I rowsort
SELECT ALL - col1 + - 96 AS col0 FROM tab1 AS cor0
----
-106
-109
-122

query I rowsort
SELECT + cor0.col2 + 48 * + col2 AS col2 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT DISTINCT col0 + - ( + 53 ) AS col1 FROM tab2 AS cor0
----
-46
25
26

query I rowsort
SELECT + cor0.col0 * - ( + cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - - col2 + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT ALL - col1 + 70 DIV col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - col1 + 70 / col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - cor0.col2 * 35 FROM tab2 AS cor0
----
-1330
-910
-945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3193
SELECT DISTINCT - - col0 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT - - col0 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col0 + + 60 * - 45 * - col2 FROM tab0 AS cor0
----
221489
2735
89124

query I rowsort
SELECT col2 + + ( col0 * - col0 + col0 ) AS col2 FROM tab1 AS cor0
----
-3975
-6224
48

query I rowsort
SELECT ALL col1 + + cor0.col1 * - col2 AS col1 FROM tab1 cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT ALL - - col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - - col1 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + 5 AS col1 FROM tab2
----
12
83
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + - ( 70 ) AS col2 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT - col2 * + 11 AS col1 FROM tab2 cor0
----
-286
-297
-418

query I rowsort
SELECT - ( cor0.col2 ) * - col0 * col2 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT col2 + - col2 * col2 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT + - cor0.col0 DIV 15 FROM tab2 AS cor0
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT + - cor0.col0 / 15 FROM tab2 AS cor0
----
-5
-5
0

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 * col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - ( - col2 ) + col1 + - col0 AS col2 FROM tab1 AS cor0
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3207
SELECT 40 DIV col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3207
SELECT 40 / col0 FROM tab2 AS cor0
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 + col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
-257
-3449
-929

query I rowsort
SELECT ALL 18 FROM tab1 cor0
----
18
18
18

query I rowsort
SELECT ALL + ( - col0 ) + + col1 * col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - ( + 60 ) * col1 FROM tab0 cor0
----
-5160
-5460
-5820

query I rowsort
SELECT - ( + cor0.col2 ) * - col1 * col2 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * - 71 col2 FROM tab0 cor0
----
-2343
-5822
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT DISTINCT + ( col1 ) DIV - 41 + cor0.col1 * - col2 + col1 * col1 AS col0 FROM tab0 AS cor0
----
4556
817
9310

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + ( col1 ) / - 41 + cor0.col1 * - col2 + col1 * col1 AS col0 FROM tab0 AS cor0
----
4556
817
9310

query I rowsort
SELECT + col0 + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL + - col1 + + col1 * 34 FROM tab2 cor0
----
1023
1947
561

query I rowsort
SELECT - col1 * + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - 70 * col2 FROM tab1 AS cor0
----
-3780
-3990
-6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT DISTINCT col2 * + col0 + + 30 DIV col1 AS col1 FROM tab1 AS cor0
----
163
3651
7682

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT col2 * + col0 + + 30 / col1 AS col1 FROM tab1 AS cor0
----
163
3651
7682

query I rowsort
SELECT ALL - + col1 + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + - col0 * + col0 - col1 * - ( - cor0.col2 ) FROM tab2 AS cor0
----
-6887
-7618
-886

onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT DISTINCT 24 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT 24 / cor0.col0 AS col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * - col0 - ( cor0.col0 ) col1 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT + + col0 * col0 - - ( + 85 ) FROM tab1 AS cor0
----
4181
6485
94

query I rowsort
SELECT ALL - cor0.col0 + - col1 * - 31 FROM tab0 AS cor0
----
2642
2732
2972

query I rowsort
SELECT DISTINCT + col1 * - col1 + cor0.col1 * col1 - + col2 * 14 * + 91 FROM tab1 AS cor0
----
-122304
-68796
-72618

query I rowsort
SELECT - col1 + col2 * - col2 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT 79 - col2 AS col0 FROM tab0 AS cor0
----
-3
46
78

query I rowsort
SELECT DISTINCT + + 92 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT + col1 * + col0 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - + col0 + col1 + ( col2 ) FROM tab2 cor0
----
-24
51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT - col2 - cor0.col0 DIV ( col2 ) FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-3234
SELECT - col2 - cor0.col0 / ( col2 ) FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT ALL + 3 AS col1 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - - 61 * col0 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT ALL col0 + col1 * col0 + - col2 AS col0 FROM tab2
----
1384
197
4654

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL ( + 59 ) * - col1 * ( ( - tab0.col0 ) ) AS col1 FROM tab0
----
121776
200305
477841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + col2 + col0 col0 FROM tab0 AS cor0
----
-2781
-61
-7291

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT DISTINCT 69 DIV + tab1.col0 FROM tab1
----
0
1
23

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT 69 / + tab1.col0 FROM tab1
----
0
1
23

query I rowsort
SELECT ALL 66 AS col0 FROM tab0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - cor0.col0 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + - 9 + + col1 FROM tab0 AS cor0
----
77
82
88

query I rowsort
SELECT - col1 * - col0 + - 33 * col0 FROM tab0 AS cor0
----
1272
2240
5162

query I rowsort
SELECT ( cor0.col0 ) * ( 47 ) + col0 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT DISTINCT - col1 + - 16 AS col2 FROM tab0
----
-102
-107
-113

query I rowsort
SELECT - col1 * col2 * col0 AS col0 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 91 ) + cor0.col1 col2 FROM tab1, tab1 cor0
----
9 values hashing to ab9a5420557229d11dbd1b8bdeb55842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 * cor1.col1 * 42 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 84ae4e0586346edea2fe8258416834d1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3251
SELECT DISTINCT + - col1 * CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT + - col1 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + - col0 * col1 + + cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT ALL - - col1 + ( - col0 ) FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col0 * - ( + col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3255
SELECT DISTINCT - col0 * ( 44 ) DIV - col2 FROM tab0 AS cor0
----
1540
32
47

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT - col0 * ( 44 ) / - col2 FROM tab0 AS cor0
----
1540
32
47

query I rowsort
SELECT DISTINCT + col2 * 94 * col0 + col0 FROM tab2 cor0
----
17773
190710
282267

query I rowsort
SELECT - col1 + + 36 + + col1 * col2 FROM tab1 AS cor0
----
1271
1414
596

query I rowsort
SELECT - 27 AS col1 FROM tab2
----
-27
-27
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3259
SELECT DISTINCT + + CAST( col2 AS SIGNED ) col1 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col1 * ( - col0 ) + 19 + col0 AS col0 FROM tab2 cor0
----
-1245
-191
-4505

query I rowsort
SELECT DISTINCT + cor0.col1 * - 61 AS col0 FROM tab2, tab1 AS cor0
----
-1586
-610
-793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3262
SELECT + CAST( - 26 AS SIGNED ) - + col1 FROM tab2 AS cor0
----
-43
-57
-85

skipif mysql # not compatible
query I rowsort label-3262
SELECT + CAST ( - 26 AS INTEGER ) - + col1 FROM tab2 AS cor0
----
-43
-57
-85

query I rowsort
SELECT + 53 * - 23 AS col2 FROM tab2
----
-1219
-1219
-1219

query I rowsort
SELECT ( col0 ) * cor0.col1 + + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT 93 * - col2 * col2 - 79 * col1 FROM tab1 AS cor0
----
-273242
-302947
-858115

query I rowsort
SELECT + ( 0 ) - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 0 * + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col2 * + col1 * + col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT ALL 36 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - + col1 * col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 97 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 - - col0 col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT DISTINCT 57 DIV - cor0.col1 + - col0 * + col1 * col1 + col2 AS col0 FROM tab2 AS cor0
----
-22796
-271492
-6701

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT 57 / - cor0.col1 + - col0 * + col1 * col1 + col2 AS col0 FROM tab2 AS cor0
----
-22796
-271492
-6701

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3274
SELECT CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col0 * + 19 AS col1 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - - 85 * - 21 + col0 FROM tab1 AS cor0
----
-1705
-1721
-1782

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3278
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3279
SELECT ALL CAST( - col1 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL CAST ( - col1 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 11 ) col1 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT ALL col2 DIV 17 - col0 * - 33 FROM tab2 AS cor0
----
232
2575
2609

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL col2 / 17 - col0 * - 33 FROM tab2 AS cor0
----
232
2575
2609

query I rowsort
SELECT col1 - - ( + tab1.col0 ) FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT + CAST( 38 AS SIGNED ) AS col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 9124b06d33995d82062026964cce3a38

skipif mysql # not compatible
query I rowsort label-3283
SELECT + CAST ( 38 AS INTEGER ) AS col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 9124b06d33995d82062026964cce3a38

query I rowsort
SELECT ALL + col0 - - 86 FROM tab2 cor0
----
164
165
93

query I rowsort
SELECT DISTINCT col0 + 38 * col2 * + col2 FROM tab0 AS cor0
----
255601
41406
73

query I rowsort
SELECT ALL - + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 24 * col1 col2 FROM tab2 AS cor0
----
1494
487
751

query I rowsort
SELECT DISTINCT + col1 * col1 + + 61 AS col2 FROM tab0 AS cor0
----
7457
8342
9470

query I rowsort
SELECT ALL - col2 * + col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT - col0 * 51 DIV col0 + - col1 FROM tab0 AS cor0
----
-137
-142
-148

skipif mysql # not compatible
query I rowsort label-3290
SELECT - col0 * 51 / col0 + - col1 FROM tab0 AS cor0
----
-137
-142
-148

query I rowsort
SELECT ALL cor0.col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - + col1 * + col0 * - col0 AS col0 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT col0 * col1 + + col0 * col0 * 24 AS col2 FROM tab0 AS cor0
----
15888
198203
32795

query I rowsort
SELECT cor1.col1 FROM tab1, tab0 cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT - + 1 * 33 * col2 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT cor1.col1 AS col2 FROM tab0, tab1 cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL - col1 + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - ( + cor0.col2 ) * - col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - 57 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT ALL tab0.col1 DIV + 40 AS col2 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL tab0.col1 / + 40 AS col2 FROM tab0
----
2
2
2

query I rowsort
SELECT + col1 * cor0.col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + 30 * cor0.col0 FROM tab2 AS cor0
----
210
2340
2370

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT ALL - col1 DIV + cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - col1 / + cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) * ( cor0.col1 ) col0 FROM tab2 cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 - col1 col0 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 - - ( - col2 ) FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT cor0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL 44 * - col0 AS col2 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT col2 * + col2 * + ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT 52 AS col2 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT 88 - col0 FROM tab2
----
10
81
9

query I rowsort
SELECT + 67 * + col1 + ( - col0 * col0 + tab2.col1 ) AS col1 FROM tab2
----
-2072
-5085
2059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + ( col0 ) col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
SELECT + col0 * 41 + + col2 DIV col0 col1 FROM tab0 AS cor0
----
1435
3649
985

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3315
SELECT + col0 * 41 + + col2 / col0 col1 FROM tab0 AS cor0
----
1435
3649
985

query I rowsort
SELECT DISTINCT tab0.col0 + col0 * - 6 * col0 FROM tab0
----
-3432
-47437
-7315

query I rowsort
SELECT DISTINCT - 19 + col2 * col0 AS col1 FROM tab0
----
16
7279
773

onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT ALL + col2 DIV + col2 + 37 FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + col2 / + col2 + 37 FROM tab1
----
38
38
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT - col1 + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-3319
SELECT - col1 + col0 / + col0 AS col2 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT DISTINCT + col2 - cor0.col2 * - col0 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - tab1.col0 * 83 + col0 col0 FROM tab1
----
-13443
-302720
-637360

query I rowsort
SELECT + col0 + col2 * - col0 * col1 AS col1 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT ALL - tab1.col0 + - tab1.col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL - 17 + + col2 AS col1 FROM tab2
----
10
21
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 89 col0 FROM tab2 AS cor0
----
-623
-6942
-7031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3326
SELECT - - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT - - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 53 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL + 36 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT ALL + col2 DIV 94 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + col2 / 94 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 84 + ( - col2 ) AS col0 FROM tab2
----
-110
-111
-122

query I rowsort
SELECT DISTINCT + - col2 * + 87 + col0 FROM tab1 AS cor0
----
-4695
-4895
-8272

query I rowsort
SELECT ALL + col0 * + cor0.col2 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT 94 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT ALL + ( + 51 ) * + col1 FROM tab0 cor0
----
4386
4641
4947

query I rowsort
SELECT - + ( - col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col2 * + col1 + - col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - 62 * + col1 AS col2 FROM tab0
----
-5332
-5642
-6014

query I rowsort
SELECT ALL 66 * 49 FROM tab2
----
3234
3234
3234

query I rowsort
SELECT DISTINCT 3 FROM tab1, tab2, tab2 AS cor0
----
3

query I rowsort
SELECT ALL 11 * - col2 FROM tab2 AS cor0
----
-286
-297
-418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + + ( col1 ) - - cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - - col1 + + col0 - 31 FROM tab0 AS cor0
----
101
149
79

query I rowsort
SELECT ALL 7 + cor0.col0 FROM tab1 AS cor0
----
10
71
87

query I rowsort
SELECT - + cor0.col1 + + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT 90 * - col1 AS col1 FROM tab0
----
-7740
-8190
-8730

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
29

query I rowsort
SELECT 10 * col1 AS col1 FROM tab0
----
860
910
970

query I rowsort
SELECT + - col1 * col2 - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL 67 * col1 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT ALL + - col0 + + col0 * + ( - col1 * cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT - + col2 - + cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + 81 * 53 AS col2 FROM tab0 cor0
----
4293
4293
4293

onlyif mysql # use DIV operator for integer division
query I rowsort label-3356
SELECT DISTINCT + col2 DIV + tab0.col0 - + col0 col0 FROM tab0
----
-23
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT + col2 / + tab0.col0 - + col0 col0 FROM tab0
----
-23
-35
-89

query I rowsort
SELECT + col1 + - col2 * + col2 + 40 AS col1 FROM tab0
----
-6593
-963
136

query I rowsort
SELECT col0 * col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - 8 - col2 AS col1 FROM tab2 AS cor0
----
-34
-35
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

query I rowsort
SELECT + + 6 * + col0 AS col1 FROM tab2 AS cor0
----
42
468
474

onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT col0 - + col2 DIV - col2 col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3362
SELECT col0 - + col2 / - col2 col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL col0 + col2 * + 71 AS col2 FROM tab1 AS cor0
----
3837
4111
6896

query I rowsort
SELECT - cor0.col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT tab2.col0 * - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 778568a0294a40217171bb2f1bbf2149

query I rowsort
SELECT - col2 * + cor0.col0 + - col1 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT + + 53 * col0 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT DISTINCT + - 26 * col0 + ( col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-10319
-10595
-8020

onlyif mysql # use DIV operator for integer division
query I rowsort label-3369
SELECT DISTINCT - - col0 DIV - col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - - col0 / - col0 FROM tab0 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT ALL tab0.col2 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-3370
SELECT ALL tab0.col2 / - ( col1 ) col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT ALL ( col1 ) DIV col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL ( col1 ) / col1 FROM tab0
----
1
1
1

query I rowsort
SELECT col2 * 18 AS col1 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT DISTINCT - ( tab0.col0 ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col0 * + col0 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT ALL - col0 + - 51 * + col1 FROM tab0 AS cor0
----
-4410
-4730
-4982

query I rowsort
SELECT col2 + 96 * col2 FROM tab2 cor0
----
2522
2619
3686

query I rowsort
SELECT DISTINCT + col0 * - tab0.col0 * + col2 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT ALL + col0 DIV + 4 FROM tab1
----
0
16
20

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + col0 / + 4 FROM tab1
----
0
16
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3379
SELECT ALL col1 * CAST( col2 AS SIGNED ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL col1 * CAST ( col2 AS INTEGER ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col0 * - ( col0 * + cor0.col0 ) FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT - 96 * - col2 AS col0 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT DISTINCT 23 * - col2 * col1 FROM tab2 AS cor0
----
-14858
-19251
-35282

query I rowsort
SELECT ALL + 11 FROM tab0 cor0
----
11
11
11

query I rowsort
SELECT + 27 * col2 FROM tab2 AS cor0
----
1026
702
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT DISTINCT + col0 DIV + tab2.col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT + col0 / + tab2.col0 FROM tab2
----
1

query I rowsort
SELECT col1 - - ( col1 ) FROM tab1
----
20
26
52

query I rowsort
SELECT 17 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT ALL + col0 - + col0 * col0 DIV - ( 46 ) FROM tab2
----
210
214
8

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + col0 - + col0 * col0 / - ( 46 ) FROM tab2
----
210
214
8

query I rowsort
SELECT - 7 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT - ( - ( - tab2.col0 ) * 9 ) + - 58 * col0 + col2 FROM tab2
----
-442
-5200
-5255

query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab2, tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT DISTINCT 50 * col1 FROM tab0 AS cor0
----
4300
4550
4850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * + cor0.col1 col2 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT ALL - + 4 * col2 AS col2 FROM tab0 cor0
----
-132
-328
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3395
SELECT - - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3395
SELECT - - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT DISTINCT 0 DIV 15 col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT 0 / 15 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL 11 + - 92 AS col1 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT + 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-3400
SELECT DISTINCT col1 + col0 * CAST( - 36 AS SIGNED ) * - col2 FROM tab0
----
1357
262819
28598

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT col1 + col0 * CAST ( - 36 AS INTEGER ) * - col2 FROM tab0
----
1357
262819
28598

query I rowsort
SELECT 88 + col0 AS col0 FROM tab1 cor0
----
152
168
91

query I rowsort
SELECT ( col1 ) * + 51 + + cor0.col0 * col1 FROM tab0 AS cor0
----
12740
6450
8342

query I rowsort
SELECT ( + cor0.col0 ) + + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT 13 * col2 AS col2 FROM tab2 AS cor0
----
338
351
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-3405
SELECT DISTINCT - col1 DIV + 50 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT - col1 / + 50 FROM tab1 AS cor0
----
0

query I rowsort
SELECT cor0.col0 * 18 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT + col2 * 31 AS col2 FROM tab1 AS cor0
----
1674
1767
2976

onlyif mysql # use DIV operator for integer division
query I rowsort label-3408
SELECT ALL + col2 DIV + cor0.col0 col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + col2 / + cor0.col0 col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3409
SELECT - CAST( NULL AS DECIMAL ) * + tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT - CAST ( NULL AS REAL ) * + tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 54 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT + + col1 + 33 AS col1 FROM tab2 AS cor0
----
50
64
92

query I rowsort
SELECT - - col2 * + 2 * - col1 + col2 * 37 FROM tab0 AS cor0
----
-11890
-157
-4455

onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT + + 2 DIV col2 + col1 - ( col0 * col1 ) AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort label-3413
SELECT + + 2 / col2 + col1 - ( col0 * col1 ) AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL - cor0.col2 + + col2 * - col1 + col0 * col2 FROM tab0 AS cor0
----
-2079
-246
-63

query I rowsort
SELECT - - col1 + cor0.col0 * col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT ALL + ( - col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col1 * - ( col1 + 16 ) * - col2 AS col2 FROM tab0 cor0
----
10961
289476
798434

onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT DISTINCT + - col0 * cor0.col1 + col0 DIV + col0 FROM tab2 AS cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + - col0 * cor0.col1 + col0 / + col0 FROM tab2 AS cor0
----
-1342
-216
-4601

query I rowsort
SELECT DISTINCT - tab1.col1 + - col1 + col0 FROM tab1
----
-49
44
54

query I rowsort
SELECT ALL + cor0.col2 + 8 FROM tab2 AS cor0
----
34
35
46

query I rowsort
SELECT cor0.col2 * col0 + + col0 - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - cor1.col2 + - 11 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9b630042500cd20f202d4fb8dbb15e2f

query I rowsort
SELECT + ( + col2 ) + - col2 * 54 * - col2 + - col0 AS col1 FROM tab2 cor0
----
36452
39386
77935

query I rowsort
SELECT DISTINCT + - col1 * - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
7
78
79

query I rowsort
SELECT DISTINCT - col0 * col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3427
SELECT DISTINCT + 43 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT + 43 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT + + cor0.col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT + + cor0.col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + + col1 + col2 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3430
SELECT DISTINCT + - col2 * col2 + - CAST( - 88 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1001
-6636
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT + - col2 * col2 + - CAST ( - 88 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1001
-6636
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3431
SELECT ( col0 ) * + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3431
SELECT ( col0 ) * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT DISTINCT col0 + col0 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT col0 + col0 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - tab2.col1 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - + 13 FROM tab0 cor0
----
-13
-13
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-3435
SELECT ALL + col2 * col2 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
11
23
84

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + col2 * col2 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
11
23
84

query I rowsort
SELECT DISTINCT + col2 + + ( + 56 ) FROM tab0 AS cor0
----
138
57
89

query I rowsort
SELECT DISTINCT + 85 FROM tab0, tab0 cor0, tab0 AS cor1
----
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3438
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) * cor0.col1 + - col0 * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) * cor0.col1 + - col0 * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 17 AS col0 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT DISTINCT + + col0 * - col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL col1 * + 89 * + col2 + + 2 FROM tab0 AS cor0
----
252584
664120
8635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 55 col0 FROM tab0 AS cor0
----
-22
-54
27

query I rowsort
SELECT + 18 * 1 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT ALL + + ( cor0.col0 ) + - col2 DIV col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + + ( cor0.col0 ) + - col2 / col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL + + ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + + 96 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT + + col1 * col2 * + cor0.col1 + ( col2 ) * col1 FROM tab2 cor0
----
11628
26784
92040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT ALL - cor0.col1 DIV - col1 + + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - cor0.col1 / - col1 + + col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1501
231
4758

query I rowsort
SELECT cor0.col1 * - cor0.col1 - + col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + col0 * + ( ( col2 ) ) * ( 80 ) - col0 * col0 FROM tab1
----
12951
287744
608000

query I rowsort
SELECT DISTINCT - 59 + 42 AS col0 FROM tab0, tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT col1 - 40 * - 45 AS col1 FROM tab0
----
1886
1891
1897

query I rowsort
SELECT ALL - tab2.col1 * col0 - col1 * col1 FROM tab2
----
-1178
-1632
-8083

query I rowsort
SELECT ALL + ( + 14 ) FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT - col0 + ( - col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
-106
-55
-84

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
1343
217
4602

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) - + col1 * col0 * - col2 AS col1 FROM tab0 cor0
----
3492
664209
68198

query I rowsort
SELECT 90 * cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to b3a2e17796dc8bc76f2637177b402562

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL col0 + ( col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT col2 * - col2 + + 97 * cor0.col2 FROM tab2 AS cor0
----
1846
1890
2242

query I rowsort
SELECT - + 80 AS col2 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + col2 * - 1 * col1 + + col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3465
SELECT - CAST( NULL AS SIGNED ) + col1 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT - CAST ( NULL AS INTEGER ) + col1 * col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3466
SELECT ALL CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3467
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 * + col1 + ( + col2 + - tab0.col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 * + col1 + ( + col2 + - tab0.col0 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - ( + 49 * col2 ) AS col1 FROM tab1
----
-2646
-2793
-4704

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 26 AS col1 FROM tab0
----
-2132
-26
-858

query I rowsort
SELECT ALL col0 * 34 + col2 FROM tab0 AS cor0
----
1191
3108
849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col0 * - ( cor0.col1 ) FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL 55 * col2 AS col2 FROM tab2
----
1430
1485
2090

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT ALL - tab0.col2 DIV tab0.col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - tab0.col2 / tab0.col2 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - 69 AS col0 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT ALL + 51 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT DISTINCT - col0 + + 24 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-304
-392
-627

query I rowsort
SELECT ALL + - col1 * - col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT DISTINCT cor0.col1 * col0 - + cor0.col2 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
2063
3395
8099

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT cor0.col1 * col0 - + cor0.col2 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
2063
3395
8099

query I rowsort
SELECT ALL - 2 AS col2 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT + - col1 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3483
SELECT + col1 * - CAST( NULL AS SIGNED ) - - col1 * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT + col1 * - CAST ( NULL AS INTEGER ) - - col1 * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * + 93 AS col0 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT + col1 - col2 * - 3 * + col1 FROM tab0 AS cor0
----
22477
388
8600

query I rowsort
SELECT - cor0.col0 * - 66 AS col0 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT + - col1 * + ( - 80 ) AS col0 FROM tab1 cor0
----
1040
2080
800

query I rowsort
SELECT - + col2 - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL col2 + tab2.col1 + tab2.col1 AS col1 FROM tab2
----
144
72
89

query I rowsort
SELECT col0 * + col2 - + 21 AS col0 FROM tab2 AS cor0
----
168
2007
2981

query I rowsort
SELECT col0 * 48 * col0 + col0 AS col2 FROM tab0 AS cor0
----
27672
380297
58835

query I rowsort
SELECT + cor0.col1 * - col2 - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + ( col0 ) AS REAL ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3494
SELECT + - col1 DIV 5 + col1 col0 FROM tab2 cor0
----
14
25
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3494
SELECT + - col1 / 5 + col1 col0 FROM tab2 cor0
----
14
25
48

query I rowsort
SELECT - ( + 4 ) FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT 81 + 13 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT + col2 * - 75 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT + 31 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT - col1 * col0 * col1 + col0 AS col1 FROM tab2 cor0
----
-22752
-271440
-6720

query I rowsort
SELECT - - 8 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT + 86 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0, tab2 AS cor1
----
243 values hashing to 435f4131b25a0822065966508fa6e31a

query I rowsort
SELECT ALL - cor1.col2 * 21 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d69f2a221a7bd84a296de2da05432a8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT ALL + - 99 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-3503
SELECT ALL + - 99 / + col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 - - 68 AS col0 FROM tab1 AS cor0
----
125
189
244

query I rowsort
SELECT DISTINCT + 39 FROM tab1 cor0
----
39

query I rowsort
SELECT + col1 * - cor0.col0 * ( + 26 ) FROM tab2 AS cor0
----
-119652
-34918
-5642

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - cor0.col2 * col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

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 83 * - 19 FROM tab0
----
-1577

query I rowsort
SELECT ALL + col0 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + - 89 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT ALL - 65 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT 75 * + 22 * col0 AS col2 FROM tab0
----
146850
39600
57750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab2
----
-27

query I rowsort
SELECT - - 18 * - col0 FROM tab0 AS cor0
----
-1602
-432
-630

query I rowsort
SELECT ALL - 41 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT + col0 * - col0 * - col1 AS col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + 28 FROM tab1 cor0
----
28

query I rowsort
SELECT + - ( col2 ) * - col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col2 + col1 - + col2 AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT + col0 DIV - 72 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT + col0 / - 72 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT - col2 - - 78 * col0 AS col2 FROM tab1
----
180
4935
6144

query I rowsort
SELECT + ( ( tab1.col1 ) ) * col1 + 74 + + col0 FROM tab1
----
238
323
753

query I rowsort
SELECT - 32 - col2 * + col1 AS col1 FROM tab2
----
-1566
-678
-869

query I rowsort
SELECT DISTINCT - tab0.col0 + col1 + col0 * - col1 FROM tab0
----
-2002
-3333
-8097

query I rowsort
SELECT DISTINCT - - col2 * 5 + cor0.col1 FROM tab1 AS cor0
----
295
296
493

query I rowsort
SELECT + + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - ( + col2 ) + col1 FROM tab2 cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 73 col2 FROM tab1 AS cor0
----
127
130
169

query I rowsort
SELECT + col1 * - cor0.col1 + - col0 - + col0 AS col2 FROM tab1 AS cor0
----
-228
-329
-682

query I rowsort
SELECT ALL - - col2 + + 57 - col2 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT - cor0.col0 * 52 + 52 * - col0 * col1 FROM tab2 AS cor0
----
-11648
-243360
-73944

query I rowsort
SELECT DISTINCT + col0 - 16 FROM tab2 cor0
----
-9
62
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 4 - cor0.col1 col1 FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT DISTINCT - 50 * col2 AS col0 FROM tab0
----
-1650
-4100
-50

query I rowsort
SELECT tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT tab2.col2 + - col0 DIV - 57 + + col2 * + col0 FROM tab2
----
2055
216
3041

skipif mysql # not compatible
query I rowsort label-3541
SELECT tab2.col2 + - col0 / - 57 + + col2 * + col0 FROM tab2
----
2055
216
3041

query I rowsort
SELECT + 74 FROM tab1, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL col1 + col2 * + col1 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT + col0 + 47 AS col0 FROM tab1 cor0
----
111
127
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT DISTINCT - col2 DIV cor0.col1 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - col2 / cor0.col1 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3547
SELECT col2 / CAST( NULL AS SIGNED ) - + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT col2 / CAST ( NULL AS INTEGER ) - + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + ( 85 ) AS col0 FROM tab1 AS cor0
----
111
95
98

query I rowsort
SELECT cor0.col1 * + 93 - col0 AS col0 FROM tab1 cor0
----
1129
2415
866

query I rowsort
SELECT DISTINCT col1 * cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - cor0.col2 - - 94 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 0b9f98f223979f1010e328bcdea68e06

query I rowsort
SELECT ALL - - col0 + - 20 FROM tab0 AS cor0
----
15
4
69

query I rowsort
SELECT ALL - col0 * + cor0.col2 + 42 FROM tab1 AS cor0
----
-120
-3606
-7638

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT DISTINCT 46 DIV + col0 AS col1 FROM tab2
----
0
6

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT 46 / + col0 AS col1 FROM tab2
----
0
6

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab2
----
14

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT ALL - col2 + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL - col2 + col1 / col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT - - 39 AS col0 FROM tab0 AS cor0
----
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT col0 * col1 + cor0.col2 DIV + 49 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3559
SELECT col0 * col1 + cor0.col2 / + 49 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 58 AS col0 FROM tab2
----
58
58
58

query I rowsort
SELECT 16 + + 90 * - col1 FROM tab2
----
-1514
-2774
-5294

onlyif mysql # use DIV operator for integer division
query I rowsort label-3562
SELECT ALL col1 + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL col1 + col0 / col0 AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - 45 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + 83 * - col2 AS col1 FROM tab0
----
-2739
-6806
-83

query I rowsort
SELECT ALL - 99 + - col1 AS col1 FROM tab2 AS cor0
----
-116
-130
-158

query I rowsort
SELECT DISTINCT col2 * + col2 + 18 FROM tab1 AS cor0
----
2934
3267
9234

query I rowsort
SELECT DISTINCT - 67 * - col1 * - col2 FROM tab0 AS cor0
----
-190146
-499954
-6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col1 FROM tab0 cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - - 56 + + col2 AS col1 FROM tab1 AS cor0
----
110
113
152

query I rowsort
SELECT - - 16 AS col0 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT + col2 * 18 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT - cor0.col0 * - ( - 29 ) * + col1 AS col0 FROM tab1 AS cor0
----
-18560
-2262
-30160

query I rowsort
SELECT - - col2 * ( col0 + col1 ) AS col1 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT + col1 + - 58 AS col0 FROM tab2 AS cor0
----
-27
-41
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT ALL col2 - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL col2 - col1 / col1 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + 56 FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT DISTINCT + ( - col2 ) + - cor0.col1 * - 26 AS col0 FROM tab2 AS cor0
----
1508
404
779

query I rowsort
SELECT ALL 23 FROM tab0, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL - + cor0.col0 + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT + - ( + col1 ) + col0 * 53 FROM tab2 AS cor0
----
340
4075
4170

query I rowsort
SELECT ALL - col1 * 2 + col2 * + 44 AS col2 FROM tab2 cor0
----
1026
1126
1638

onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT + cor0.col1 DIV + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3583
SELECT + cor0.col1 / + col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 79 AS col1 FROM tab0
----
-79
-79
-79

query I rowsort
SELECT 23 + col1 AS col1 FROM tab1
----
33
36
49

query I rowsort
SELECT col1 * col0 + col1 * + col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT + - col0 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL 69 * 73 * col1 FROM tab1
----
130962
50370
65481

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT CAST( 83 AS SIGNED ) FROM tab2
----
83
83
83

skipif mysql # not compatible
query I rowsort label-3590
SELECT CAST ( 83 AS INTEGER ) FROM tab2
----
83
83
83

query I rowsort
SELECT ALL + 35 * - 93 AS col0 FROM tab0
----
-3255
-3255
-3255

query I rowsort
SELECT ( + col1 ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 81 + - 19 * col2 AS col2 FROM tab2 cor0
----
-413
-432
-641

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab2, tab2 AS cor0
----
-25

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3597
SELECT + CAST( NULL AS SIGNED ) * 20 + + col2 * 55 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT + CAST ( NULL AS INTEGER ) * 20 + + col2 * 55 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab0, tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 74 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT ( col1 + 33 ) DIV - col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3601
SELECT ( col1 + 33 ) / - col1 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL 38 * col0 AS col2 FROM tab2
----
266
2964
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3603
SELECT ( + col1 ) + 95 DIV col1 - col1 FROM tab2 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-3603
SELECT ( + col1 ) + 95 / col1 - col1 FROM tab2 AS cor0
----
1
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + 42 + - col2 col0 FROM tab0 AS cor0
----
1098
42
6684

query I rowsort
SELECT cor0.col1 + ( col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT cor0.col0 + col2 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3607
SELECT - cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT - cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * 43 FROM tab1 AS cor0
----
-129
-2752
-3440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - + col0 + 44 + col0 * col2 AS col2 FROM tab0 AS cor0
----
44
7253
812

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT - col2 * col0 * + col2 + col0 DIV 76 AS col2 FROM tab2 AS cor0
----
-114075
-5103
-52727

skipif mysql # not compatible
query I rowsort label-3611
SELECT - col2 * col0 * + col2 + col0 / 76 AS col2 FROM tab2 AS cor0
----
-114075
-5103
-52727

query I rowsort
SELECT col2 * - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - + col0 * col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT - - col0 + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3614
SELECT - - col0 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col1 FROM tab1, tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT + col2 * + col2 * + 62 + + col0 + col2 FROM tab2
----
42016
45232
89645

onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT - col1 DIV - 22 + - col1 * col1 * + col2 FROM tab0
----
-244065
-679038
-9405

skipif mysql # not compatible
query I rowsort label-3617
SELECT - col1 / - 22 + - col1 * col1 * + col2 FROM tab0
----
-244065
-679038
-9405

query I rowsort
SELECT tab0.col2 + - col0 + - 50 AS col1 FROM tab0
----
-41
-57
-84

query I rowsort
SELECT DISTINCT - 64 FROM tab1, tab1 AS cor0
----
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT - col2 DIV + ( col2 ) FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3620
SELECT - col2 / + ( col2 ) FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * + col2 + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT DISTINCT col2 * + 81 AS col1 FROM tab0 cor0
----
2673
6642
81

query I rowsort
SELECT col1 + - 71 - + col1 AS col0 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
1274
1456
590

query I rowsort
SELECT ALL 80 + col2 AS col2 FROM tab1 cor0
----
134
137
176

onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT 0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT 0 / col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT ALL cor0.col2 + col0 DIV + col0 col2 FROM tab0 cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL cor0.col2 + col0 / + col0 col2 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 * ( + col1 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT DISTINCT + - col2 * 86 + col0 AS col2 FROM tab1 AS cor0
----
-4641
-4838
-8176

query I rowsort
SELECT - col1 + 86 FROM tab1 AS cor0
----
60
73
76

query I rowsort
SELECT DISTINCT + 2 * - cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT DISTINCT + col1 DIV ( - col2 + col1 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + col1 / ( - col2 + col1 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3634
SELECT - CAST( 18 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-3634
SELECT - CAST ( 18 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - 24 AS col2 FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3636
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * col2 + + col1 * col0 * - ( 73 + - col2 ) FROM tab2
----
-10819
-217828
-47651

query I rowsort
SELECT - tab2.col2 + 63 * tab2.col2 FROM tab2
----
1612
1674
2356

query I rowsort
SELECT - col0 + ( 8 + col0 * + col2 ) FROM tab0
----
7217
776
8

query I rowsort
SELECT col2 - + col0 * - col1 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT col0 * + 69 AS col2 FROM tab1
----
207
4416
5520

query I rowsort
SELECT + + 21 * cor0.col0 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT DISTINCT + ( col0 ) * ( col1 ) - - col1 AS col0 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col1 * + 99 + - col2 FROM tab0 AS cor0
----
8567
9018
9699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 - col0 * - 92 col1 FROM tab0 AS cor0
----
2295
3307
8275

query I rowsort
SELECT - cor0.col2 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT - col0 * - col2 + 27 AS col2 FROM tab0 cor0
----
62
7325
819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col0 col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3650
SELECT ALL - col1 * col2 / - CAST( NULL AS DECIMAL ) + + col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - col1 * col2 / - CAST ( NULL AS REAL ) + + col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + col2 + - 83 * + col2 FROM tab1 AS cor0
----
-1083
-288
-4320

query I rowsort
SELECT DISTINCT - 31 * col2 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT ALL + col0 * - col0 * + 53 + + 91 * col0 AS col2 FROM tab0 cor0
----
-28344
-411714
-61740

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT ALL + 32 DIV - col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + 32 / - col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT col0 * col2 + + 56 * - col0 AS col2 FROM tab0 AS cor0
----
-1925
-552
2314

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3657
SELECT - - col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT - - col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT - cor0.col1 * col0 DIV col0 + + col0 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-3658
SELECT - cor0.col1 * col0 / col0 + + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL 1 - - col0 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT DISTINCT - cor0.col1 - col1 DIV col1 FROM tab0 cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT - cor0.col1 - col1 / col1 FROM tab0 cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + col1 col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT + cor0.col0 - - col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - col1 * + cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - col2 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-3665
SELECT ALL col2 + col0 DIV + cor0.col0 + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
2055
217
3041

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL col2 + col0 / + cor0.col0 + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
2055
217
3041

query I rowsort
SELECT ALL col2 * col2 + col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL col2 * + col0 + - cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL + - col1 - - col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col1 * + col2 - tab2.col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT + tab0.col2 + - tab0.col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + tab2.col0 * col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT col0 * cor0.col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 * - col0 * col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT col1 + col2 FROM tab1 WHERE NOT ( NOT NULL <= ( NULL ) ) AND NULL IN ( + col1 * - col2 )
----

query I rowsort
SELECT + tab2.col1 + col0 AS col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT tab0.col2 - - col2 DIV + col2 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3677
SELECT tab0.col2 - - col2 / + col2 AS col2 FROM tab0
----
2
34
83

query I rowsort
SELECT ALL + col1 * col1 FROM tab2 WHERE NULL BETWEEN col2 * col1 * col1 AND + col1 + + col0 * col2
----

query I rowsort
SELECT ALL col2 - col0 * col0 * + col0 FROM tab1
----
-262087
-511904
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < col1 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col1 FROM tab0
----
-2
-62

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN - col1 * col1 + col1 AND NULL
----

query I rowsort
SELECT - tab0.col0 * col1 + - col1 AS col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT + col0 * col0 + - tab2.col0 AS col1 FROM tab2
----
42
6006
6162

query I rowsort
SELECT + tab1.col0 FROM tab1 WHERE col2 * + col2 NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab2.col1 col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 * - col1 AND + col2 * + col2
----

query I rowsort
SELECT DISTINCT 76 * col0 AS col0 FROM tab0
----
1824
2660
6764

query I rowsort
SELECT ALL + + 54 * - col1 AS col1 FROM tab1 AS cor0
----
-1404
-540
-702

query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab1
----
5

query I rowsort
SELECT ALL + col0 * - col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL tab1.col1 FROM tab1 WHERE col2 * col2 + + col2 + col1 IN ( - col0 )
----

query I rowsort
SELECT ALL + col2 * + col0 - + col1 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-3694
SELECT DISTINCT col2 * - cor0.col0 DIV - col0 + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT col2 * - cor0.col0 / - col0 + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col0 * col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND cor0.col0 * col0 * - col0 + col0 + col0 * + col1
----

query I rowsort
SELECT + col0 * cor0.col2 * cor0.col0 + col2 * - col1 * col2 + + col1 FROM tab1 AS cor0
----
-75304
200992
494605

query I rowsort
SELECT col0 - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL col2 * col1 + tab0.col0 - col0 FROM tab0
----
2838
7462
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 + col2 + col1 col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3701
SELECT + col2 + col1 DIV - col0 + col0 AS col0 FROM tab2
----
104
117
30

skipif mysql # not compatible
query I rowsort label-3701
SELECT + col2 + col1 / - col0 + col0 AS col0 FROM tab2
----
104
117
30

query I rowsort
SELECT - col2 * + col2 - + tab2.col1 AS col0 FROM tab2
----
-1461
-735
-760

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * col1 IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col2 + col2 * tab2.col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT + col2 * col1 * - col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - col1 + + col0 * col2 + - col2 FROM tab0
----
-63
673
7125

query I rowsort
SELECT DISTINCT col1 * + col0 AS col2 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col1 * + col2 * col1 AS col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT col0 * + col2 / - col0 + - col0 * - col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col2 * + col2 )
----

query I rowsort
SELECT 51 * col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT - 53 * tab1.col1 FROM tab1
----
-1378
-530
-689

query I rowsort
SELECT DISTINCT ( + col1 ) * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 12 FROM tab0
----
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-3715
SELECT DISTINCT - 58 * col2 DIV col2 AS col0 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - 58 * col2 / col2 AS col0 FROM tab1
----
-58

query I rowsort
SELECT ALL ( - col0 + - 23 ) FROM tab2
----
-101
-102
-30

query I rowsort
SELECT - col2 - tab2.col0 * - tab2.col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT 22 FROM tab0, tab1 cor0
----
22

query I rowsort
SELECT DISTINCT col1 + ( col1 ) AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL 47 + 39 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT cor0.col1 * - ( col1 ) + + ( - col1 ) * col0 FROM tab2 AS cor0
----
-1178
-1632
-8083

query I rowsort
SELECT - + col1 * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 27 + + col2 * + col0 AS col1 FROM tab2 AS cor0
----
162
2001
2975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * 52 col1 FROM tab1 AS cor0
----
4784
4784
4784

onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT + tab1.col0 + 71 + + col2 DIV - tab1.col1 FROM tab1
----
130
144
72

skipif mysql # not compatible
query I rowsort label-3725
SELECT + tab1.col0 + 71 + + col2 / - tab1.col1 FROM tab1
----
130
144
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3726
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3727
SELECT ALL col2 * + CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab1, tab2 AS cor0
----
-43

query I rowsort
SELECT ALL col2 + col1 - - col0 AS col1 FROM tab1
----
131
189
83

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT + + ( col0 ) + - col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + 46 - col1 * col0 FROM tab1 AS cor0
----
-32
-594
-994

query I rowsort
SELECT + cor0.col0 * cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL + col1 + + col1 - col1 FROM tab2
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3735
SELECT ALL - CAST( 44 AS SIGNED ) * col1 - - col1 FROM tab0
----
-3698
-3913
-4171

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - CAST ( 44 AS INTEGER ) * col1 - - col1 FROM tab0
----
-3698
-3913
-4171

onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT + 60 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT + 60 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 - - ( + col0 ) AS col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * col2 col2 FROM tab2
----
1248
1296
1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3739
SELECT DISTINCT CAST( NULL AS SIGNED ) - ( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT CAST ( NULL AS INTEGER ) - ( - col1 ) FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3740
SELECT ALL - 12 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - 12 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 53 * col2 AS col1 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT 93 + 26 FROM tab0
----
119
119
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-3743
SELECT - 78 DIV + tab1.col0 FROM tab1
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 78 / + tab1.col0 FROM tab1
----
-1
-26
0

query I rowsort
SELECT col2 * + col0 + tab1.col1 + col2 FROM tab1
----
242
3715
7789

onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT + col0 * col0 + col2 DIV + col2 AS col2 FROM tab0
----
1226
577
7922

skipif mysql # not compatible
query I rowsort label-3745
SELECT + col0 * col0 + col2 / + col2 AS col2 FROM tab0
----
1226
577
7922

query I rowsort
SELECT DISTINCT 26 - - col0 AS col0 FROM tab0
----
115
50
61

query I rowsort
SELECT DISTINCT ( + col0 ) * + col1 * - col0 + col0 * tab1.col1 - col1 FROM tab1
----
-182
-40330
-82173

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col1 * - col2 + - col0 + - col1 FROM tab2
----
-1671
-742
-875

onlyif mysql # use DIV operator for integer division
query I rowsort label-3750
SELECT DISTINCT 72 DIV col1 AS col0 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT 72 / col1 AS col0 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT + + 29 + cor0.col2 + col0 DIV + cor0.col1 AS col0 FROM tab1 cor0
----
131
83
92

skipif mysql # not compatible
query I rowsort label-3751
SELECT + + 29 + cor0.col2 + col0 / + cor0.col1 AS col0 FROM tab1 cor0
----
131
83
92

query I rowsort
SELECT - + col2 + - col1 + - col2 FROM tab2 AS cor0
----
-111
-85
-93

query I rowsort
SELECT DISTINCT - 42 + + col2 AS col1 FROM tab1 AS cor0
----
12
15
54

query I rowsort
SELECT - + col0 * - col1 + cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 - col1 * + col0 col2 FROM tab0 AS cor0
----
-2032
-3363
-8067

query I rowsort
SELECT DISTINCT 67 * + col2 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT - 26 + - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1317
191
4576

query I rowsort
SELECT + col1 + - col1 * col2 * - col2 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT + + col2 + cor0.col0 + - col1 AS col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT - 68 * - col0 - - cor0.col2 FROM tab2 AS cor0
----
503
5330
5410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * col0 + - col0 col1 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT ALL - - ( col2 ) + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + - 60 + + col1 * + col2 FROM tab1 AS cor0
----
1188
1344
510

query I rowsort
SELECT - + ( - col1 ) AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - 13 + + col0 * col0 * + col2 FROM tab1 AS cor0
----
233459
473
614387

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 + + cor0.col2 * + col2 col1 FROM tab0 AS cor0
----
-33
1098
6717

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT ALL - col0 * 14 + col2 DIV - col1 FROM tab1 AS cor0
----
-1127
-44
-901

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - col0 * 14 + col2 / - col1 FROM tab1 AS cor0
----
-1127
-44
-901

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT ALL - + col0 * ( col2 ) * + cor0.col0 + - col0 DIV - col2 FROM tab0 AS cor0
----
-1190
-19008
-649521

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - + col0 * ( col2 ) * + cor0.col0 + - col0 / - col2 FROM tab0 AS cor0
----
-1190
-19008
-649521

query I rowsort
SELECT ALL - col2 * - ( col2 ) + col1 AS col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT col0 * - 14 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT + - col0 + ( ( - col0 ) ) FROM tab1 cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 + 29 col1 FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT - - col0 + + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col1 * + 52 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT ALL - col0 * - 5 + - col1 AS col2 FROM tab0 AS cor0
----
34
354
78

query I rowsort
SELECT ALL col0 * - 76 FROM tab0
----
-1824
-2660
-6764

query I rowsort
SELECT 90 FROM tab2, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT + col0 * - ( - col2 ) * col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT 61 - tab2.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
2
30
44

query I rowsort
SELECT ALL - cor0.col2 * - ( - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT - col1 + col0 * + col1 DIV col1 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-3782
SELECT - col1 + col0 * + col1 / col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT cor0.col1 * - 76 AS col0 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT DISTINCT + + col0 * - ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - - ( 47 ) AS col2 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT - col1 * - 4 AS col1 FROM tab1 AS cor0
----
104
40
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + col1 col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col1 FROM tab2 AS cor0
----
-99
-99
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3789
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - ( + ( + col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + + cor0.col2 + - col1 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col0 * - col1 + - 58 * ( col2 ) * col0 + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-210934
-444387
-9292

query I rowsort
SELECT DISTINCT + col1 * col1 + ( col2 ) FROM tab0 AS cor0
----
7429
8363
9410

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 ALL col0 * col0 + 20 * col2 col0 FROM tab1 cor0
----
1089
5236
8320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT col2 DIV - col1 + col1 * + col0 + + col0 FROM tab0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-3796
SELECT col2 / - col1 + col1 * + col0 + + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL + + 28 AS col2 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT - - 50 * cor0.col2 FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT 14 * col1 + cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
207
291
444

onlyif mysql # use DIV operator for integer division
query I rowsort label-3800
SELECT col2 * col2 * + col1 + cor0.col1 - + cor0.col2 DIV col0 FROM tab1 AS cor0
----
119820
32500
75824

skipif mysql # not compatible
query I rowsort label-3800
SELECT col2 * col2 * + col1 + cor0.col1 - + cor0.col2 / col0 FROM tab1 AS cor0
----
119820
32500
75824

onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT + col1 DIV cor0.col2 + 26 * col1 FROM tab0 AS cor0
----
2238
2367
2619

skipif mysql # not compatible
query I rowsort label-3801
SELECT + col1 / cor0.col2 + 26 * col1 FROM tab0 AS cor0
----
2238
2367
2619

query I rowsort
SELECT DISTINCT + + 4 + col1 FROM tab1 AS cor0
----
14
17
30

skipif mysql # not compatible
query I rowsort
SELECT - col1 / + col2 + + CAST ( - 68 AS REAL ) FROM tab0 AS cor0
----
-165
-69
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col0 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT 23 * cor0.col0 + CAST( NULL AS SIGNED ) * + 75 - - col1 * 20 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT 23 * cor0.col0 + CAST ( NULL AS INTEGER ) * + 75 - - col1 * 20 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 65 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT + - col2 DIV - col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3808
SELECT + - col2 / - col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT + col0 + + col0 * + col0 + + col0 FROM tab2
----
6240
63
6399

query I rowsort
SELECT - - col2 * + col2 * - col0 + + col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT - - col0 * 34 + + col0 * - col2 AS col0 FROM tab0 cor0
----
-4272
1155
24

query I rowsort
SELECT cor0.col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3813
SELECT DISTINCT + tab1.col1 + col2 * CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT + tab1.col1 + col2 * CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL

query I rowsort
SELECT 16 * + col1 AS col1 FROM tab1
----
160
208
416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - tab2.col1 col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort
SELECT - - col2 * + CAST ( - col0 AS REAL ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col1 * 16 AS col0 FROM tab1
----
160
208
416

query I rowsort
SELECT + 8 * col1 * col2 + - 53 * + cor0.col1 FROM tab1 AS cor0
----
4030
9295
9854

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3820
SELECT ALL - CAST( - col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - CAST ( - col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col2 * - ( + 87 ) AS col1 FROM tab0
----
2871
7134
87

query I rowsort
SELECT DISTINCT col1 * + col0 + cor0.col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - cor0.col1 + 23 AS col0 FROM tab0 AS cor0
----
-63
-68
-74

query I rowsort
SELECT + col0 - col2 * - cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col2 * 20 FROM tab1
----
1080
1140
1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-3826
SELECT DISTINCT + col1 DIV 9 col2 FROM tab1
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + col1 / 9 col2 FROM tab1
----
1
2

query I rowsort
SELECT ALL + 75 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ( cor1.col0 ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT + + cor0.col0 DIV - col0 - col0 * col1 FROM tab2 AS cor0
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-3829
SELECT + + cor0.col0 / - col0 - col0 * col1 FROM tab2 AS cor0
----
-1344
-218
-4603

query I rowsort
SELECT - 28 * col1 FROM tab1
----
-280
-364
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 93 + col2 + + ( 42 * - col0 ) col1 FROM tab2 AS cor0
----
384
4004
4067

query I rowsort
SELECT 62 - col2 AS col2 FROM tab0 cor0
----
-20
29
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3833
SELECT CAST( NULL AS SIGNED ) + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT CAST ( NULL AS INTEGER ) + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 22 * + col2 + col0 FROM tab1 AS cor0
----
1191
1318
2192

query I rowsort
SELECT col2 * - col1 + col1 + - 54 FROM tab1 cor0
----
-1289
-1432
-614

query I rowsort
SELECT - col2 * col0 - col2 AS col2 FROM tab0 cor0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT DISTINCT - col2 * col1 DIV + 72 FROM tab2 AS cor0
----
-11
-21
-8

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT - col2 * col1 / + 72 FROM tab2 AS cor0
----
-11
-21
-8

query I rowsort
SELECT ALL - col2 + + cor0.col0 * ( + col0 ) FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab0, tab0 cor0, tab0 cor1
----
83

query I rowsort
SELECT col1 * + col0 + + col2 + - 36 FROM tab0 AS cor0
----
2061
3360
8145

query I rowsort
SELECT ALL - 91 AS col0 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ( col0 ) * tab1.col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT ( - col1 ) * + col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL 71 * - 58 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c757817fb47d9a736c1747fd4009d644

query I rowsort
SELECT + + col1 + + col0 * col1 * col1 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT DISTINCT + - col1 * - col2 + + 5 FROM tab1 AS cor0
----
1253
1409
575

query I rowsort
SELECT DISTINCT 98 + col1 FROM tab2 AS cor0
----
115
129
157

query I rowsort
SELECT ( - 94 ) * col0 * - cor0.col0 FROM tab1 AS cor0
----
385024
601600
846

query I rowsort
SELECT - col1 * + col1 + col0 + col2 AS col1 FROM tab1 AS cor0
----
-619
21
7

query I rowsort
SELECT DISTINCT 58 + - col0 FROM tab0 AS cor0
----
-31
23
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 18 * col0 col1 FROM tab1 cor0
----
-1152
-1440
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * 93 col2 FROM tab1 cor0
----
5022
5301
8928

query I rowsort
SELECT - 43 * col2 AS col2 FROM tab2 cor0
----
-1118
-1161
-1634

query I rowsort
SELECT ALL + 71 * col2 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT ALL - - col0 * - ( + col2 * - col1 ) + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
3360
656820
67320

query I rowsort
SELECT DISTINCT - 56 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT ALL + 95 AS col2 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT ALL + 39 + + col1 FROM tab0 AS cor0
----
125
130
136

query I rowsort
SELECT DISTINCT - 87 * - ( col0 ) - - col0 FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT col1 * col1 - 0 * tab0.col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - 34 - - col1 FROM tab2
----
-17
-3
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - tab1.col0 col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL 1 * col0 * tab0.col0 - 11 AS col0 FROM tab0
----
1214
565
7910

query I rowsort
SELECT DISTINCT 61 - + col0 FROM tab1
----
-19
-3
58

query I rowsort
SELECT 80 * col1 + + col2 + - 35 AS col1 FROM tab0
----
6878
7327
7726

query I rowsort
SELECT + - tab0.col1 * + 40 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to dce0e2aee727d1fd6c1c17a2592a4121

onlyif mysql # use DIV operator for integer division
query I rowsort label-3867
SELECT DISTINCT - col1 + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - col1 + col2 / + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + ( ( cor0.col1 ) ) * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT DISTINCT - 25 * cor0.col1 + cor0.col1 DIV cor0.col1 FROM tab1 AS cor0
----
-249
-324
-649

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - 25 * cor0.col1 + cor0.col1 / cor0.col1 FROM tab1 AS cor0
----
-249
-324
-649

query I rowsort
SELECT cor0.col0 + 26 FROM tab0 AS cor0
----
115
50
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT ALL 38 DIV - col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL 38 / - col1 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 23 FROM tab1, tab2 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT ( + col1 * - col1 ) FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT DISTINCT - col0 DIV - 98 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT - col0 / - 98 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + + col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT - col2 * 43 AS col1 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT ALL - col2 - + col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col2 * - col0 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ( 3 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT DISTINCT ( + col2 ) DIV + 84 + col0 * col0 col1 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT ( + col2 ) / + 84 + col0 * col0 col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT col0 + col0 * + col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL tab1.col0 + tab1.col2 * ( + ( col2 ) ) AS col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT + 67 * + col0 FROM tab2
----
469
5226
5293

query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3887
SELECT ALL - col2 + - ( col1 ) DIV + cor0.col1 AS col2 FROM tab2 cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - col2 + - ( col1 ) / + cor0.col1 AS col2 FROM tab2 cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT col0 * + 62 + - ( - col0 ) * 55 FROM tab0 AS cor0
----
10413
2808
4095

query I rowsort
SELECT DISTINCT - col0 + ( + ( + cor0.col2 ) ) FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT cor0.col2 + + ( - 14 ) * - col0 FROM tab0 AS cor0
----
1328
369
491

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3892
SELECT DISTINCT + - col0 + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT + - col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 * CAST ( cor0.col1 AS REAL ) + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT DISTINCT + col1 DIV + 34 + cor0.col0 FROM tab0 AS cor0
----
26
37
91

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT + col1 / + 34 + cor0.col0 FROM tab0 AS cor0
----
26
37
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT DISTINCT + col2 DIV + 40 + - col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + col2 / + 40 + - col0 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + tab2.col1 - col2 * + 82 col1 FROM tab2
----
-1989
-2099
-3015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + - col2 * col1 col0 FROM tab0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + - col0 + + col1 col0 FROM tab1
----
-17
-30
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3899
SELECT - col1 DIV tab2.col0 + + col0 + 88 * col1 FROM tab2
----
1575
2731
5270

skipif mysql # not compatible
query I rowsort label-3899
SELECT - col1 / tab2.col0 + + col0 + 88 * col1 FROM tab2
----
1575
2731
5270

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3900
SELECT cor0.col2 + col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT cor0.col2 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col0 * + 8 + - col2 AS col0 FROM tab2
----
29
594
598

query I rowsort
SELECT 71 + col1 + + col1 FROM tab2
----
105
133
189

query I rowsort
SELECT - 85 * - col0 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT 56 + - col1 FROM tab2
----
-3
25
39

query I rowsort
SELECT DISTINCT tab0.col0 * col1 + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - 44 * + col0 FROM tab1 AS cor0
----
-132
-2816
-3520

query I rowsort
SELECT + col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - 4 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT 61 * col0 FROM tab2
----
427
4758
4819

onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT DISTINCT + - 2 DIV col0 + - ( + 69 ) * - col1 col2 FROM tab1 AS cor0
----
1794
690
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT + - 2 / col0 + - ( + 69 ) * - col1 col2 FROM tab1 AS cor0
----
1794
690
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 76 * col0 + ( cor0.col2 ) * - col1 * - col1 col0 FROM tab2 AS cor0
----
16986
26479
96434

query I rowsort
SELECT DISTINCT col2 * col2 + + col0 + - col0 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3914
SELECT + 95 * col2 + col1 DIV - col0 col2 FROM tab2 AS cor0
----
2470
2561
3610

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3914
SELECT + 95 * col2 + col1 / - col0 col2 FROM tab2 AS cor0
----
2470
2561
3610

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + + col1 * - col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3916
SELECT ALL cor0.col0 * + col1 - CAST( - ( + col2 ) AS SIGNED ) * col2 * col0 AS col0 FROM tab2 AS cor0
----
115419
5320
57330

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL cor0.col0 * + col1 - CAST ( - ( + col2 ) AS INTEGER ) * col2 * col0 AS col0 FROM tab2 AS cor0
----
115419
5320
57330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col0 FROM tab0 cor0
----
-110
-132
-180

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

query I rowsort
SELECT 35 * - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 30d03caa7c82297bd8e37fdfc8fa43e4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT col2 DIV ( 43 ) - + col0 AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3920
SELECT col2 / ( 43 ) - + col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL col1 * - 15 FROM tab2
----
-255
-465
-885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3923
SELECT + col2 + ( - 27 ) DIV col1 FROM tab1 AS cor0
----
53
55
94

skipif mysql # not compatible
query I rowsort label-3923
SELECT + col2 + ( - 27 ) / col1 FROM tab1 AS cor0
----
53
55
94

query I rowsort
SELECT col0 * + ( - ( col1 ) + col2 ) FROM tab1 cor0
----
3008
6640
84

query I rowsort
SELECT ALL - col1 * ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - cor0.col1 - + col2 AS col0 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT ( + cor0.col1 + + 55 ) AS col1 FROM tab0, tab0 AS cor0
----
141
146
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 64 ) col2 FROM tab2 cor0
----
-64
-64
-64

query I rowsort
SELECT ( col0 ) - col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 87 col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3931
SELECT - tab2.col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT - tab2.col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col1 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 75 * - col0 + cor0.col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 * cor0.col2 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3936
SELECT CAST( 73 AS SIGNED ) AS col1 FROM tab0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-3936
SELECT CAST ( 73 AS INTEGER ) AS col1 FROM tab0
----
73
73
73

query I rowsort
SELECT + ( cor0.col1 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 14 * cor0.col2 FROM tab0 cor0
----
1148
14
462

query I rowsort
SELECT 44 * + col2 + + ( ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
2379
2572
4304

query I rowsort
SELECT col0 * - col0 * + col2 AS col1 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + - col2 col0 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT + cor2.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ( cor0.col0 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3944
SELECT + col2 + CAST( NULL AS SIGNED ) * - 41 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT + col2 + CAST ( NULL AS INTEGER ) * - 41 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 33 AS col1 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT + + cor0.col1 * + 98 AS col1 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT - cor0.col0 + + ( + col2 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT DISTINCT - cor1.col2 DIV + 14 AS col2 FROM tab2, tab0, tab1 AS cor0, tab2 cor1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT - cor1.col2 / + 14 AS col2 FROM tab2, tab0, tab1 AS cor0, tab2 cor1
----
-1
-2

query I rowsort
SELECT col0 + - col0 * col2 AS col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT 16 AS col1 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT - 84 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT + col0 - + col1 * + 16 AS col0 FROM tab1
----
-128
-413
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT ALL + tab0.col1 DIV 5 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 934b6df8827924dac4cf591b1467b677

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL + tab0.col1 / 5 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 934b6df8827924dac4cf591b1467b677

query I rowsort
SELECT + col2 * col0 + ( col1 ) * - col2 FROM tab2 AS cor0
----
-648
2356
494

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94

query I rowsort
SELECT - col1 * tab1.col0 + - col0 AS col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT - col2 * 14 - + col2 FROM tab0
----
-1230
-15
-495

query I rowsort
SELECT col2 * + col1 + + 46 AS col2 FROM tab2
----
1580
692
883

query I rowsort
SELECT col0 * 37 FROM tab0
----
1295
3293
888

query I rowsort
SELECT col2 * + ( + col2 ) + col1 * + 46 FROM tab2
----
2155
2226
3390

query I rowsort
SELECT DISTINCT - + col0 - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT col1 * ( 17 ) FROM tab2 AS cor0
----
1003
289
527

onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT DISTINCT col2 + - col1 * - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT col2 + - col1 * - col2 / + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT 23 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT ( 64 ) + col1 AS col2 FROM tab1
----
74
77
90

query I rowsort
SELECT DISTINCT col2 + 37 AS col2 FROM tab2
----
63
64
75

query I rowsort
SELECT ALL - cor1.col1 * + 90 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to e761f859a7f0d3dd0629c2a99d2be84c

query I rowsort
SELECT - cor0.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - - 42 * - col1 AS col0 FROM tab1 AS cor0
----
-1092
-420
-546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3971
SELECT CAST( - 18 AS SIGNED ) AS col2 FROM tab1
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-3971
SELECT CAST ( - 18 AS INTEGER ) AS col2 FROM tab1
----
-18
-18
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT DISTINCT - col2 DIV 3 FROM tab0
----
-11
-27
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT - col2 / 3 FROM tab0
----
-11
-27
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + tab1.col1 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab1, tab1 AS cor0
----
7

query I rowsort
SELECT ALL + + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ( + col0 ) * col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT 42 * + col2 AS col0 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT + 31 * 24 FROM tab1 AS cor0
----
744
744
744

query I rowsort
SELECT ALL col0 * col1 + ( ( col2 ) ) + + 31 AS col2 FROM tab1 cor0
----
1167
163
728

query I rowsort
SELECT + col0 * + cor0.col1 AS col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3982
SELECT ( + col0 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 63 AS col0 FROM tab2
----
1638
1701
2394

query I rowsort
SELECT DISTINCT 82 * col0 AS col1 FROM tab2
----
574
6396
6478

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT DISTINCT CAST( - col1 AS SIGNED ) * tab2.col1 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * tab2.col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col2 * - col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col0 FROM tab2
----
15
15
15

query I rowsort
SELECT 32 + cor0.col2 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 19f7ee62d7b7a77c5c1a4f8a082e2ea7

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab2, tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT + ( col0 ) * 89 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT ALL col1 * + cor0.col0 + + col0 + col2 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT - cor0.col1 + - col2 FROM tab0 cor0
----
-119
-173
-98

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2, tab1 AS cor1
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + col1 col1 FROM tab0 cor0
----
159
164
170

query I rowsort
SELECT ALL + + 16 + + col0 FROM tab2 cor0
----
23
94
95

query I rowsort
SELECT 83 * + col1 * col2 FROM tab0 AS cor0
----
235554
619346
8051

query I rowsort
SELECT - ( + col2 ) + ( col1 ) * + col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + 51 * - tab1.col1 + ( col2 ) * + col0 FROM tab1
----
-1164
3138
7017

query I rowsort
SELECT ALL - - col2 * 61 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT DISTINCT - col1 + + 78 * - 4 * - col2 AS col0 FROM tab2 AS cor0
----
11839
8053
8393

query I rowsort
SELECT ALL + col2 * + col2 * 28 AS col0 FROM tab0 cor0
----
188272
28
30492

query I rowsort
SELECT - col2 + ( col0 ) * - col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT + - col0 + 67 * - 98 AS col1 FROM tab1 AS cor0
----
-6569
-6630
-6646

query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 + - 79 AS col1 FROM tab1 AS cor0
----
-187
-193
-271

query I rowsort
SELECT - col1 + 93 * col0 FROM tab0 AS cor0
----
2146
3158
8186

query I rowsort
SELECT DISTINCT + - ( - col2 ) * - col1 + 63 * 10 + + col1 FROM tab2 cor0
----
-176
-845
1

query I rowsort
SELECT ALL 34 - + col1 FROM tab2 AS cor0
----
-25
17
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4008
SELECT + CAST( + col0 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-4008
SELECT + CAST ( + col0 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 12 AS col1 FROM tab0 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * ( - 31 ) col2 FROM tab0
----
1085
2759
744

query I rowsort
SELECT + col2 + - ( col1 ) * + 27 FROM tab2 AS cor0
----
-1567
-421
-810

query I rowsort
SELECT DISTINCT - + col2 - + ( col2 ) AS col1 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4013
SELECT + - CAST( NULL AS SIGNED ) * 55 + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT + - CAST ( NULL AS INTEGER ) * 55 + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 35 + + 17 AS col2 FROM tab2 cor0
----
-18

query I rowsort
SELECT DISTINCT col2 * col1 * col2 + - col2 FROM tab0 AS cor0
----
611802
93621
96

query I rowsort
SELECT ALL 25 + - cor0.col2 * col1 FROM tab1 AS cor0
----
-1223
-1379
-545

onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT ALL - col2 DIV ( col2 ) - col0 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL - col2 / ( col2 ) - col0 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT 91 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4019
SELECT + + CAST( + cor0.col0 AS SIGNED ) + col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-4019
SELECT + + CAST ( + cor0.col0 AS INTEGER ) + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + ( + 43 ) * col1 FROM tab0 cor0
----
3698
3913
4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4021
SELECT ALL - CAST( NULL AS SIGNED ) * col2 * - col0 + ( + col2 + - col0 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 * - col0 + ( + col2 + - col0 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + 31 * + col1 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT - 28 + - col0 AS col1 FROM tab1 AS cor0
----
-108
-31
-92

query I rowsort
SELECT ALL - + cor0.col1 * col2 * col0 + + 48 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-1714
-659764
-66927

query I rowsort
SELECT - - col2 * col2 - col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT - col2 * cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - cor0.col1 + col1 col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col2 + - col0 * tab0.col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT - col2 + col1 + + col1 FROM tab2
----
-4
35
92

query I rowsort
SELECT DISTINCT col1 * - col0 * + col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT col2 + + col1 * - col0 + col0 FROM tab1 AS cor0
----
-21
-519
-864

query I rowsort
SELECT ALL col1 * col2 + col0 * + col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT - cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 + ( col0 ) AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT + col2 + 26 AS col0 FROM tab1
----
122
80
83

query I rowsort
SELECT ALL 64 - col0 FROM tab2 AS cor0
----
-14
-15
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * - col0 col2 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT - + col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - - 52 * + col2 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT ALL + 5 + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7401
8286
9414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col0 + col1 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 70 * - col0 - - col2 FROM tab2 AS cor0
----
-463
-5434
-5492

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col1 * col0 * + col0 FROM tab0 AS cor0
----
118790
49512
720722

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col0 NOT IN ( + col0 + col1 * col2 * col0 )
----

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 WHERE ( + col0 + col2 / - col2 ) = NULL
----

query I rowsort
SELECT tab0.col2 + col1 * col1 * + col1 AS col0 FROM tab0
----
636089
753653
912674

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col0 - col1 * col0 AS col2 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT + tab1.col1 + + col0 AS col2 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE NOT col0 NOT IN ( col0 + - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4055
SELECT - col1 + - tab1.col2 DIV col0 AS col1 FROM tab1
----
-10
-14
-44

skipif mysql # not compatible
query I rowsort label-4055
SELECT - col1 + - tab1.col2 / col0 AS col1 FROM tab1
----
-10
-14
-44

query I rowsort
SELECT ALL col2 * - tab2.col2 + - tab2.col0 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT ALL - col0 - tab2.col2 * + col2 * col2 AS col1 FROM tab2
----
-17654
-19690
-54951

query I rowsort
SELECT DISTINCT + tab1.col1 - col0 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT col1 - - col2 DIV - col0 AS col1 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-4059
SELECT col1 - - col2 / - col0 AS col1 FROM tab0
----
85
91
97

query I rowsort
SELECT DISTINCT + col0 * col0 * col1 FROM tab2 WHERE NOT NULL NOT IN ( + tab2.col2 * col0 - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col2 * col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT col0 * col2 DIV col1 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-4062
SELECT col0 * col2 / col1 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT col2 * cor0.col0 + - col0 + col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col1 + - col0 AS col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT + tab1.col0 * col1 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT - cor0.col0 * col1 * + col1 + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col2 * col2 + + col0 * col0 col0 FROM tab1 AS cor0
----
126208
36586
75825

query I rowsort
SELECT ALL cor0.col0 / col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + + col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) > + col0 * cor0.col1
----
29
74
93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 - + col1 / - col0 NOT IN ( cor0.col0 * cor0.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT + col0 * col2 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + - col0 * col0 * - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - ( 27 ) FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT 17 + 67 AS col1 FROM tab2 AS cor0
----
84

query I rowsort
SELECT DISTINCT + col2 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + 36 - - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4060
-6364
27

query I rowsort
SELECT DISTINCT + 39 + + cor0.col1 * col1 * - 84 AS col2 FROM tab2 AS cor0
----
-24237
-292365
-80685

query I rowsort
SELECT ALL + col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( - col2 ) * - ( 14 ) col2 FROM tab1 AS cor0
----
-1331
-730
-788

query I rowsort
SELECT col1 * 25 FROM tab2
----
1475
425
775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4083
SELECT CAST( 92 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif mysql # not compatible
query I rowsort label-4083
SELECT CAST ( 92 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - col0 * col2 + col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT - 63 + - 60 AS col1 FROM tab2 AS cor0
----
-123
-123
-123

query I rowsort
SELECT ALL + 42 - col1 AS col0 FROM tab1 AS cor0
----
16
29
32

query I rowsort
SELECT + + cor0.col0 + col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 41 ) col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT tab1.col0 * - 76 * - 33 FROM tab1
----
160512
200640
7524

query I rowsort
SELECT - tab1.col2 * + ( tab1.col0 ) * + col2 AS col1 FROM tab1
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col2 FROM tab2
----
19
19
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT + 72 + - 52 DIV col2 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-4092
SELECT + 72 + - 52 / col2 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4093
SELECT - 36 * + col0 DIV - col0 - + ( tab0.col2 ) AS col0 FROM tab0
----
-46
3
35

skipif mysql # not compatible
query I rowsort label-4093
SELECT - 36 * + col0 / - col0 - + ( tab0.col2 ) AS col0 FROM tab0
----
-46
3
35

query I rowsort
SELECT ALL + col0 * ( col2 * + cor0.col1 ) + - ( - col2 ) * - col2 + col1 AS col1 FROM tab0 AS cor0
----
3491
657485
67109

onlyif mysql # use DIV operator for integer division
query I rowsort label-4095
SELECT ALL cor0.col0 + - col1 DIV 17 FROM tab1 cor0
----
2
64
80

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL cor0.col0 + - col1 / 17 FROM tab1 cor0
----
2
64
80

query I rowsort
SELECT DISTINCT col2 + ( - 26 ) * tab2.col2 * - 78 FROM tab2
----
52754
54783
77102

query I rowsort
SELECT + - cor0.col0 + 42 AS col1 FROM tab2 AS cor0
----
-36
-37
35

query I rowsort
SELECT col1 + + 46 * col2 FROM tab1
----
2510
2632
4429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4100
SELECT - col0 * CAST( + 28 AS SIGNED ) FROM tab0 cor0
----
-2492
-672
-980

skipif mysql # not compatible
query I rowsort label-4100
SELECT - col0 * CAST ( + 28 AS INTEGER ) FROM tab0 cor0
----
-2492
-672
-980

query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 43 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT col2 + cor0.col0 AS col0 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 + - 81 + col1 * - col2 col0 FROM tab0
----
-14841
-213
-3711

onlyif mysql # use DIV operator for integer division
query I rowsort label-4105
SELECT DISTINCT cor0.col0 + - col2 * - col0 - cor0.col2 DIV col2 FROM tab0 AS cor0
----
69
7386
815

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT cor0.col0 + - col2 * - col0 - cor0.col2 / col2 FROM tab0 AS cor0
----
69
7386
815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( + col1 ) col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 * + col2 + + col2 * col1 * + col1 FROM tab0 AS cor0
----
217932
80606
9374

query I rowsort
SELECT DISTINCT + col1 + + col1 * 99 FROM tab2 AS cor0
----
1700
3100
5900

query I rowsort
SELECT ALL 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL - col2 * ( ( + col1 ) ) + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + 7 + + col0 AS col1 FROM tab0 AS cor0
----
31
42
96

query I rowsort
SELECT - col1 * 49 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT - 87 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( - col2 ) col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + cor0.col1 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - cor0.col2 - - cor0.col0 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a

query I rowsort
SELECT col0 + 67 FROM tab2 AS cor0
----
145
146
74

query I rowsort
SELECT - + 87 AS col1 FROM tab0 AS cor0
----
-87
-87
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4119
SELECT DISTINCT + ( col1 ) DIV col1 + - col0 AS col0 FROM tab1 cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT + ( col1 ) / col1 + - col0 AS col0 FROM tab1 cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - ( col0 ) col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4121
SELECT DISTINCT cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT cor0.col1 * CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + tab1.col0 + col2 + tab1.col2 * col0 FROM tab1
----
219
3769
7856

query I rowsort
SELECT DISTINCT - col1 * col1 * 51 + - col0 * - col0 FROM tab0
----
-376620
-414410
-478634

query I rowsort
SELECT ALL + + 27 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT ALL - + col2 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 + cor0.col1 * - col2 col0 FROM tab2 AS cor0
----
-1463
-575
-766

query I rowsort
SELECT ALL - 42 * + col2 * + col0 + + col0 * cor0.col1 FROM tab2 AS cor0
----
-124741
-7721
-80574

query I rowsort
SELECT - col2 + - 28 + 43 AS col2 FROM tab1 cor0
----
-39
-42
-81

query I rowsort
SELECT ALL + col2 * ( col0 * cor0.col0 ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4132
SELECT - col0 * cor0.col2 + + 6 DIV - col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-4132
SELECT - col0 * cor0.col2 + + 6 / - col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col1 - - 82 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT ALL + + col0 * col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT col0 - + ( col2 ) FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT DISTINCT + + col0 * - CAST( NULL AS DECIMAL ) * + cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + + col0 * - CAST ( NULL AS REAL ) * + cor0.col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + col2 * + 54 AS col2 FROM tab0 AS cor0
----
151
1868
4519

query I rowsort
SELECT + cor0.col0 + col2 + col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL + 41 - - tab2.col1 FROM tab2
----
100
58
72

query I rowsort
SELECT - col2 * + col1 * 20 FROM tab2
----
-12920
-16740
-30680

query I rowsort
SELECT ALL - ( - col2 * - col0 ) + - col1 - col2 FROM tab0
----
-133
-7471
-911

query I rowsort
SELECT ALL - col0 - + col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - + col0 * - col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab1 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 57 * col2 + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
0
3744

query I rowsort
SELECT DISTINCT - - 58 * - col1 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT ALL 66 * col0 AS col0 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT - col1 * 22 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT - - col1 + ( 14 ) * cor0.col2 FROM tab2 cor0
----
409
423
549

query I rowsort
SELECT ALL - 79 * col1 FROM tab2
----
-1343
-2449
-4661

query I rowsort
SELECT ALL 85 * + 89 + - cor0.col0 AS col1 FROM tab1 cor0
----
7485
7501
7562

query I rowsort
SELECT + 32 * - 34 FROM tab0 AS cor0
----
-1088
-1088
-1088

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 ALL + + 91 * + col1 + - col2 * 90 FROM tab1 cor0
----
-2494
-4220
-7457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * - col1 col0 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT ALL - - 76 FROM tab1 cor0
----
76
76
76

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + col1 * + col0 FROM tab1 AS cor0
----
4736
7440
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT CAST( 95 AS SIGNED ) FROM tab1 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-4158
SELECT CAST ( 95 AS INTEGER ) FROM tab1 AS cor0
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4159
SELECT 24 + - col2 DIV + col1 FROM tab1 AS cor0
----
17
19
22

skipif mysql # not compatible
query I rowsort label-4159
SELECT 24 + - col2 / + col1 FROM tab1 AS cor0
----
17
19
22

query I rowsort
SELECT ALL - + 58 * 67 AS col2 FROM tab2 AS cor0
----
-3886
-3886
-3886

query I rowsort
SELECT ALL 6 * col2 AS col1 FROM tab1 cor0
----
324
342
576

query I rowsort
SELECT DISTINCT col0 + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col2 + ( - tab2.col1 + col2 ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + 63 + + 64 AS col0 FROM tab0 AS cor0
----
127
127
127

query I rowsort
SELECT + col1 - ( - tab0.col2 ) * - col1 AS col0 FROM tab0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col1 * - col2 + - tab1.col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT tab1.col2 + col2 * - col2 AS col1 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + - col1 * - cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL ( col2 ) + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + ( cor0.col2 ) * + col2 + col0 * col2 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT - + 81 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1262
136
4521

query I rowsort
SELECT - col0 * col1 + col1 * col1 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT ALL - ( + 16 * col1 ) AS col1 FROM tab1
----
-160
-208
-416

query I rowsort
SELECT DISTINCT - col0 * 41 AS col1 FROM tab2
----
-287
-3198
-3239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT ALL ( tab0.col1 ) + CAST( NULL AS SIGNED ) * + 47 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL ( tab0.col1 ) + CAST ( NULL AS INTEGER ) * + 47 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * 66 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fff329ee264ac4e62ab5e6867cd6607a

query I rowsort
SELECT + 12 AS col0 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT 28 + cor0.col1 FROM tab1 AS cor0
----
38
41
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4180
SELECT + + CAST( 61 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif mysql # not compatible
query I rowsort label-4180
SELECT + + CAST ( 61 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + col1 + - col2 * 66 FROM tab0 AS cor0
----
-2092
-5321
31

query I rowsort
SELECT ALL 58 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * 36 col0 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT + - col0 * + cor0.col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col2 * + ( + cor0.col2 + col1 ) FROM tab1 cor0
----
10464
3819
4320

query I rowsort
SELECT ALL + col1 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - 36 FROM tab1, tab1 cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT - col0 + col2 * - col1 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT + - col0 * 83 * + col2 + + col2 * col1 FROM tab2 AS cor0
----
-14850
-166790
-248520

query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT - 92 * - col0 AS col0 FROM tab2
----
644
7176
7268

query I rowsort
SELECT + + 56 + 3 + cor0.col2 AS col2 FROM tab0 AS cor0
----
141
60
92

query I rowsort
SELECT - + col2 * - col0 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col0 + + ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1, tab2 AS cor0
----
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4196
SELECT col2 + col0 DIV + col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4196
SELECT col2 + col0 / + col0 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT + + col0 DIV - 65 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4197
SELECT + + col0 / - 65 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + 76 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT ALL col0 + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT + col1 DIV - col0 + - col0 * col1 col2 FROM tab2 AS cor0
----
-1343
-221
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4200
SELECT + col1 / - col0 + - col0 * col1 col2 FROM tab2 AS cor0
----
-1343
-221
-4602

query I rowsort
SELECT - col1 + col1 * + 90 * col2 AS col0 FROM tab1 AS cor0
----
112307
126334
51290

query I rowsort
SELECT ALL + col1 + 18 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) + + col0 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT ALL + cor0.col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL + cor0.col1 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4205
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4206
SELECT col0 + + cor0.col1 DIV + 89 AS col1 FROM tab0 cor0
----
24
36
90

skipif mysql # not compatible
query I rowsort label-4206
SELECT col0 + + cor0.col1 / + 89 AS col1 FROM tab0 cor0
----
24
36
90

query I rowsort
SELECT DISTINCT col2 * col2 + + col0 AS col0 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - + col1 * - 41 AS col1 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT col2 + - col0 * + 87 AS col1 FROM tab2 AS cor0
----
-582
-6760
-6835

query I rowsort
SELECT - ( - 66 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT - 94 + - 81 AS col1 FROM tab1 AS cor0
----
-175
-175
-175

query I rowsort
SELECT ( - 12 ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT DISTINCT - + 6 DIV - col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - + 6 / - col1 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT DISTINCT - tab0.col2 * col0 * - col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT - tab0.col2 * col0 * - col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 81 * + col1 FROM tab1 AS cor0
----
-1053
-2106
-810

query I rowsort
SELECT DISTINCT + 31 + + col0 AS col2 FROM tab2 AS cor0
----
109
110
38

query I rowsort
SELECT DISTINCT - col2 * + col1 - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 - 20 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT - col2 - col1 * + 30 AS col1 FROM tab2 AS cor0
----
-1796
-548
-957

query I rowsort
SELECT ALL col2 * + col1 + col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col0 - - col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 * col2 * - col2 + + tab2.col0 * col0 FROM tab2
----
-11492
-19634
-48631

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 - - cor0.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e13b0ded89320c7f6f4b5a15db1fe2be

onlyif mysql # use DIV operator for integer division
query I rowsort label-4225
SELECT DISTINCT col2 DIV - col1 - tab1.col2 FROM tab1
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT col2 / - col1 - tab1.col2 FROM tab1
----
-103
-56
-62

query I rowsort
SELECT - - col0 + cor0.col1 - col0 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + + ( + col0 ) * - col2 * col0 - col1 FROM tab2 cor0
----
-1354
-158243
-237175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT - 18 DIV col2 + col2 FROM tab0 cor0
----
-17
33
82

skipif mysql # not compatible
query I rowsort label-4229
SELECT - 18 / col2 + col2 FROM tab0 cor0
----
-17
33
82

query I rowsort
SELECT - 20 * col2 FROM tab1
----
-1080
-1140
-1920

query I rowsort
SELECT ( - col1 ) + + 16 FROM tab0
----
-70
-75
-81

query I rowsort
SELECT col1 - cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - cor0.col1 - - col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT ALL + - col0 + + CAST( col2 AS SIGNED ) * col2 - + 73 col1 FROM tab0 AS cor0
----
-107
6562
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + - col0 + + CAST ( col2 AS INTEGER ) * col2 - + 73 col1 FROM tab0 AS cor0
----
-107
6562
992

query I rowsort
SELECT DISTINCT + 36 FROM tab2, tab0 AS cor0
----
36

query I rowsort
SELECT ALL - cor0.col1 * + 21 + - 90 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ea68518329093ee412d427dd6fe8ad7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4237
SELECT DISTINCT - col2 - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT - col2 - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT tab0.col2 DIV ( col2 ) + + col0 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4238
SELECT tab0.col2 / ( col2 ) + + col0 AS col0 FROM tab0
----
25
36
90

query I rowsort
SELECT DISTINCT col2 * - 12 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT + cor0.col0 * ( - col0 ) - col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT + col0 + - ( col2 ) AS col2 FROM tab0
----
-9
34
7

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 cor0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT cor0.col0 * - 74 FROM tab1, tab0 AS cor0
----
9 values hashing to 0e29caf0e9c3660bf8d93cc0bccba882

query I rowsort
SELECT DISTINCT + tab0.col2 * + col0 + 36 * - col2 * 33 FROM tab0
----
-1153
-38412
-90118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * col0 + - 14 col2 FROM tab0
----
2050
3381
8085

query I rowsort
SELECT ALL 81 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) AS col0 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col1 * + CAST ( 8 AS REAL ) * col2 - - 54 AS col1 FROM tab1 cor0
----
10038
11286
4614

query I rowsort
SELECT col0 * col0 * col1 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT ALL ( - col1 ) * col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL ( - col1 ) * col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * tab2.col1 * + col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - cor2.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 9 * - cor0.col1 FROM tab1 AS cor0
----
-117
-234
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT DISTINCT col1 DIV - col1 col1 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT col1 / - col1 col1 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + 28 * + col2 FROM tab0 AS cor0
----
2296
28
924

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT ALL - 94 DIV - col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - 94 / - col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + + col2 + - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + cor0.col0 * + col2 + - col2 AS col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT col2 - - col2 * col0 FROM tab0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - cor0.col0 * 98 FROM tab0 AS cor0
----
-2266
-3333
-8631

query I rowsort
SELECT DISTINCT + + 4 FROM tab0 cor0
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT DISTINCT col2 DIV + col0 + + col0 * 43 FROM tab0 AS cor0
----
1033
1505
3827

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT col2 / + col0 + + col0 * 43 FROM tab0 AS cor0
----
1033
1505
3827

query I rowsort
SELECT 78 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT ALL - - col2 * + col2 * col2 + col2 - col1 FROM tab2 cor0
----
17543
19679
54893

query I rowsort
SELECT col1 * - ( - 5 ) * col1 + + col0 * col1 FROM tab0
----
39044
49504
50440

query I rowsort
SELECT - col2 * - ( col0 * - tab2.col1 ) FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col2 * + cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( + col0 ) col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col1 * - 2 * + cor0.col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT - 54 AS col1 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT 10 + - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1079
-6714
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col2 FROM tab0
----
85

query I rowsort
SELECT - col1 + + col0 * + 63 + - col2 AS col1 FROM tab1
----
109
3965
4931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * - tab0.col1 col1 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col1 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT DISTINCT - + col0 + cor0.col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - + col0 + cor0.col0 / - col1 AS col2 FROM tab1 AS cor0
----
-3
-70
-86

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab0, tab1 cor0
----
54

query I rowsort
SELECT + - col2 * + col0 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4283
SELECT DISTINCT - col2 * CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - col2 * CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col0 + 86 FROM tab1 cor0
----
150
166
89

query I rowsort
SELECT ALL + col0 * col0 + - cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
1226
14645
1665

query I rowsort
SELECT DISTINCT - col1 * col2 * + ( + col2 * + col0 ) - col2 FROM tab0 AS cor0
----
-2247729
-3396
-54457758

query I rowsort
SELECT DISTINCT + col2 + + col2 * ( col1 + + tab1.col0 ) * col0 FROM tab1
----
270009
4752
714336

query I rowsort
SELECT + col2 + + col0 + + col0 AS col2 FROM tab0 AS cor0
----
260
71
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT - cor0.col1 * 71 + - cor0.col0 * cor0.col1 - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT - cor0.col1 * 71 + - cor0.col0 * cor0.col1 - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col0 - col1 AS col0 FROM tab0
----
-131
6544
979

query I rowsort
SELECT DISTINCT col2 - ( - ( - tab0.col2 ) ) * 81 FROM tab0
----
-2640
-6560
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 + + 38 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT ALL - col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 40 AS REAL ) AS col1 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL + - 51 AS col2 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4298
SELECT + 16 DIV 78 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 16 / 78 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - ( tab0.col0 + col1 ) FROM tab0
----
-16020
-2640
-4620

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab0, tab2 cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col2 FROM tab2 cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + tab2.col0 ) col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + 63 FROM tab1
----
63
63
63

query I rowsort
SELECT - - 24 + - 78 * cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cc78093d427fd96c67b7b95894057611

query I rowsort
SELECT 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL + 71 - col2 AS col2 FROM tab2
----
33
44
45

query I rowsort
SELECT ALL - 97 + col0 - - col0 * - tab0.col0 FROM tab0
----
-1287
-649
-7929

query I rowsort
SELECT col2 * + 46 AS col0 FROM tab0
----
1518
3772
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL 17 * - col0 - col0 * tab0.col0 FROM tab0
----
-1820
-9434
-984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4311
SELECT CAST( NULL AS SIGNED ) / col1 - col1 / + CAST( + col2 * col1 + + 31 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT CAST ( NULL AS INTEGER ) / col1 - col1 / + CAST ( + col2 * col1 + + 31 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - - col1 AS col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4313
SELECT ALL - + col2 * 31 + - cor0.col2 DIV + CAST( cor0.col1 AS SIGNED ) FROM tab1 cor0
----
-1676
-1772
-2983

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - + col2 * 31 + - cor0.col2 / + CAST ( cor0.col1 AS INTEGER ) FROM tab1 cor0
----
-1676
-1772
-2983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 + + tab0.col2 col2 FROM tab0
----
246
3
99

query I rowsort
SELECT DISTINCT + tab1.col0 + - 3 FROM tab1
----
0
61
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT ( col2 ) DIV + col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4316
SELECT ( col2 ) / + col2 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) * - col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT + col2 + tab2.col0 + - col1 AS col1 FROM tab2
----
100
3
45

query I rowsort
SELECT DISTINCT + + col1 * - col2 + 53 AS col0 FROM tab1 AS cor0
----
-1195
-1351
-517

query I rowsort
SELECT ALL col0 - - col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL - - ( cor0.col0 ) + + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col2 * - col2 + - col1 * col2 * + col2 FROM tab1 cor0
----
-129024
-35739
-78732

query I rowsort
SELECT DISTINCT 5 + col0 * col0 FROM tab2 AS cor0
----
54
6089
6246

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4324
SELECT DISTINCT + col2 * - col0 * - CAST( 48 AS SIGNED ) + col2 + 62 FROM tab1 AS cor0
----
175223
368798
7892

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT + col2 * - col0 * - CAST ( 48 AS INTEGER ) + col2 + 62 FROM tab1 AS cor0
----
175223
368798
7892

query I rowsort
SELECT + 91 + col2 AS col1 FROM tab2 AS cor0
----
117
118
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 - 2 col0 FROM tab2 cor0
----
1532
644
835

query I rowsort
SELECT ALL - + col0 - - col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + 11 * col0 FROM tab1 AS cor0
----
33
704
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 27 * col1 AS col0 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT DISTINCT + + 33 + - col2 * ( col2 ) AS col1 FROM tab1 cor0
----
-2883
-3216
-9183

query I rowsort
SELECT DISTINCT - col1 * col1 * col0 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - 77 * col0 + 26 * + col2 * + col1 FROM tab2 AS cor0
----
10713
21223
33878

query I rowsort
SELECT ALL + 56 FROM tab1
----
56
56
56

query I rowsort
SELECT - col0 * - col2 * + 42 AS col0 FROM tab1 AS cor0
----
153216
322560
6804

query I rowsort
SELECT - + 66 AS col1 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT 15 + + col1 * col0 * + col1 FROM tab2 AS cor0
----
22846
271533
6742

query I rowsort
SELECT DISTINCT + 7 * - col2 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT ALL - - col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - col2 + 36 AS col2 FROM tab2 AS cor0
----
62
63
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT - col0 DIV + ( 80 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT - col0 / + ( 80 ) FROM tab0 AS cor0
----
-1
0
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
89

query I rowsort
SELECT - col1 + + 81 * + 87 * col1 FROM tab0
----
605956
641186
683462

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT ALL - col1 + col1 DIV col0 AS col0 FROM tab0 cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - col1 + col1 / col0 AS col0 FROM tab0 cor0
----
-83
-90
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT + - col1 DIV + 27 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4347
SELECT + - col1 / + 27 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + + col2 * - col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + 8 * col0 FROM tab0 AS cor0
----
-192
-280
-712

onlyif mysql # use DIV operator for integer division
query I rowsort label-4350
SELECT ALL + cor0.col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + cor0.col2 / col0 AS col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4351
SELECT - - CAST( NULL AS SIGNED ) / + ( cor0.col1 * - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT - - CAST ( NULL AS INTEGER ) / + ( cor0.col1 * - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 55 - col2 * + 95 col2 FROM tab1 AS cor0
----
-3700
-4865
-8405

onlyif mysql # use DIV operator for integer division
query I rowsort label-4353
SELECT ALL - col1 DIV - col0 col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - col1 / - col0 col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT + 58 * - 84 FROM tab0 cor0
----
-4872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 42 * + 85 col2 FROM tab1 AS cor0
----
-3570

query I rowsort
SELECT ALL 17 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col1 + + col0 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 18 * + ( cor0.col1 ) FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT ALL - col2 * ( col1 ) + + 38 * 96 FROM tab1 AS cor0
----
2244
2400
3078

onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT DISTINCT tab0.col1 DIV - col1 col0 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT tab0.col1 / - col1 col0 FROM tab0
----
-1

query I rowsort
SELECT - col0 * col1 + + 0 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - 45 * + col2 AS col0 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT + + 94 + - col2 * - col1 AS col0 FROM tab2 cor0
----
1628
740
931

query I rowsort
SELECT ALL 60 + + 71 * cor0.col0 FROM tab0 AS cor0
----
1764
2545
6379

query I rowsort
SELECT ALL - - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + - col0 * col2 + + col2 + - cor0.col1 FROM tab2 AS cor0
----
-193
-2061
-2981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 32 ) col0 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4372
SELECT - ( - tab0.col2 ) * col0 + + ( + col1 ) DIV col0 AS col0 FROM tab0
----
37
7299
795

skipif mysql # not compatible
query I rowsort label-4372
SELECT - ( - tab0.col2 ) * col0 + + ( + col1 ) / col0 AS col0 FROM tab0
----
37
7299
795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 * col1 ) col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4374
SELECT - col2 DIV - col0 - - 69 FROM tab2 AS cor0
----
69
69
72

skipif mysql # not compatible
query I rowsort label-4374
SELECT - col2 / - col0 - - 69 FROM tab2 AS cor0
----
69
69
72

query I rowsort
SELECT - ( col1 ) * col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + - col2 * + ( - 2 ) + col1 + - col1 AS col1 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT + col1 DIV 76 + + col0 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-4377
SELECT + col1 / 76 + + col0 col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT DISTINCT - 50 DIV + col1 + tab1.col1 FROM tab1
----
10
25
5

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - 50 / + col1 + tab1.col1 FROM tab1
----
10
25
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4379
SELECT DISTINCT - cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - cor0.col2 * + ( - ( - col2 ) + + col0 ) FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT DISTINCT - col1 + 3 * + col2 * col1 FROM tab1 AS cor0
----
1700
3731
4186

query I rowsort
SELECT ALL + col2 * + cor0.col2 * - col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL - 5 + col2 AS col1 FROM tab1
----
49
52
91

query I rowsort
SELECT ALL - col2 + + col0 * - ( tab1.col0 ) FROM tab1
----
-4153
-63
-6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4385
SELECT tab2.col0 * col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT tab2.col0 * col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + - col2 col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT col1 * 16 * col0 + - tab0.col2 * + col1 * col0 FROM tab0
----
-35088
-534534
50925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4388
SELECT col1 + CAST( col0 AS SIGNED ) FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4388
SELECT col1 + CAST ( col0 AS INTEGER ) FROM tab0
----
110
132
180

query I rowsort
SELECT - col2 * col0 * + 92 FROM tab1 AS cor0
----
-14904
-335616
-706560

query I rowsort
SELECT ALL + + cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT 23 FROM tab0, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + col2 * 21 AS col1 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT cor0.col0 - + 64 FROM tab0, tab2 AS cor0
----
9 values hashing to e386a43ed9a775c3e0c680cb9f7e9dd1

query I rowsort
SELECT 12 - - col0 AS col2 FROM tab0 AS cor0
----
101
36
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4396
SELECT ALL CAST( col1 * col1 AS SIGNED ) + 53 AS col0 FROM tab2
----
1014
342
3534

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL CAST ( col1 * col1 AS INTEGER ) + 53 AS col0 FROM tab2
----
1014
342
3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * 78 col2 FROM tab0
----
234
234
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 * - col0 col2 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT tab0.col0 + - tab0.col1 FROM tab0, tab0 AS cor0
----
-2
-62

query I rowsort
SELECT 40 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
32

query I rowsort
SELECT + col1 * - col2 + + 16 FROM tab1 AS cor0
----
-1232
-1388
-554

query I rowsort
SELECT + 90 * + col1 AS col0 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab0
----
-42

query I rowsort
SELECT DISTINCT - col1 - + col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT ALL - + 19 AS col1 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4407
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4407
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 90 * + 88 AS col1 FROM tab1, tab2 AS cor0
----
7920

query I rowsort
SELECT ALL - + col1 * - col1 + ( col1 ) AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - col2 - - ( + 48 * - col0 ) AS col1 FROM tab0 cor0
----
-1185
-1681
-4354

query I rowsort
SELECT ALL - col1 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT tab0.col1 + tab0.col0 * + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL - - 57 * 93 - col0 FROM tab1 cor0
----
5221
5237
5298

query I rowsort
SELECT + + cor0.col0 * col2 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - 8 + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
41
6076
6233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col0 * - cor0.col2 col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + cor0.col2 * col1 - col1 FROM tab0 cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT DISTINCT - 12 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - 12 / col1 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT col1 - 15 FROM tab2 AS cor0
----
16
2
44

query I rowsort
SELECT ALL - cor0.col0 * + col1 * - col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT - tab0.col0 AS col0 FROM tab0, tab1 cor0, tab2, tab1 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4422
SELECT - CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4422
SELECT - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 94 FROM tab0 cor0
----
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4425
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 95 - col2 AS col1 FROM tab2 AS cor0
----
57
68
69

query I rowsort
SELECT + 84 * cor0.col2 + - col2 * + col2 FROM tab1 AS cor0
----
-1152
1539
1620

query I rowsort
SELECT + ( + col1 ) + col1 - + 54 FROM tab1 AS cor0
----
-2
-28
-34

query I rowsort
SELECT DISTINCT - 26 * - col0 FROM tab1
----
1664
2080
78

query I rowsort
SELECT ALL + 90 FROM tab2
----
90
90
90

query I rowsort
SELECT DISTINCT + 47 FROM tab1, tab2 AS cor0
----
47

query I rowsort
SELECT + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4433
SELECT - CAST( col0 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4433
SELECT - CAST ( col0 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 + + col2 * col0 + col0 * + col2 FROM tab0 AS cor0
----
14678
1617
71

query I rowsort
SELECT - col0 * col0 * 22 AS col2 FROM tab0 AS cor0
----
-12672
-174262
-26950

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 * - col1 * + 86 AS col2 FROM tab1
----
-54983
-6654
-89344

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4437
SELECT + CAST( + col2 + col2 AS SIGNED ) * - 21 AS col0 FROM tab2
----
-1092
-1134
-1596

skipif mysql # not compatible
query I rowsort label-4437
SELECT + CAST ( + col2 + col2 AS INTEGER ) * - 21 AS col0 FROM tab2
----
-1092
-1134
-1596

query I rowsort
SELECT DISTINCT 49 * - col2 FROM tab2
----
-1274
-1323
-1862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col0 FROM tab1
----
-11

query I rowsort
SELECT + col1 * + 80 AS col0 FROM tab0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT - 2 * - col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - 2 + col1 FROM tab2 AS cor0
----
15
29
57

query I rowsort
SELECT + + 53 - col1 FROM tab0 AS cor0
----
-33
-38
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col0 * + col1 - col0 AS col2 FROM tab2 cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col1 * + 61 col1 FROM tab0 AS cor0
----
5270
5640
5952

query I rowsort
SELECT - + col1 + 5 FROM tab2 AS cor0
----
-12
-26
-54

query I rowsort
SELECT - cor0.col1 * - ( col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT 56 + col1 FROM tab2
----
115
73
87

query I rowsort
SELECT ALL + 56 * + col0 * col1 FROM tab1
----
35840
4368
58240

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT + col2 * col2 + - 67 * col2 DIV cor0.col2 FROM tab0 AS cor0
----
-66
1022
6657

skipif mysql # not compatible
query I rowsort label-4451
SELECT + col2 * col2 + - 67 * col2 / cor0.col2 FROM tab0 AS cor0
----
-66
1022
6657

query I rowsort
SELECT - col2 * ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - ( - ( col1 ) ) AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL 2 FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - - col0 * 19 FROM tab2 cor0
----
133
1482
1501

query I rowsort
SELECT + col0 + 91 * col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5

query I rowsort
SELECT 94 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL + cor0.col2 * 96 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT DISTINCT + + col2 * 99 + + 54 AS col2 FROM tab2 AS cor0
----
2628
2727
3816

query I rowsort
SELECT ALL + col2 * - 11 + 73 FROM tab2 AS cor0
----
-213
-224
-345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 97 col2 FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT ALL col2 - 87 * col2 AS col2 FROM tab1 AS cor0
----
-4644
-4902
-8256

query I rowsort
SELECT DISTINCT - col1 + ( - 18 ) AS col1 FROM tab2 AS cor0
----
-35
-49
-77

query I rowsort
SELECT - col1 + 24 AS col0 FROM tab1 AS cor0
----
-2
11
14

query I rowsort
SELECT DISTINCT - - col2 * + 50 + - col2 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT DISTINCT - - 51 + cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
140
75
86

query I rowsort
SELECT ALL 6 * col2 * + col2 FROM tab0
----
40344
6
6534

query I rowsort
SELECT ALL 48 * col2 FROM tab1
----
2592
2736
4608

query I rowsort
SELECT + + col2 * + col2 - - col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT col0 - ( + col2 + - col1 ) AS col0 FROM tab0
----
131
77
98

query I rowsort
SELECT + ( - 12 ) FROM tab2, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL col0 - ( - col0 ) FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT DISTINCT 66 DIV 87 AS col2 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT 66 / 87 AS col2 FROM tab0, tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + ( col2 ) AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col2 + + 36 FROM tab1 cor0
----
132
90
93

query I rowsort
SELECT ALL - col2 * ( - col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col0 + + 20 FROM tab1 AS cor0
----
100
23
84

query I rowsort
SELECT + - col2 * 77 FROM tab1 AS cor0
----
-4158
-4389
-7392

query I rowsort
SELECT ALL col2 - col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 35 * - col2 + + col2 AS col0 FROM tab1
----
1944
2052
3456

query I rowsort
SELECT DISTINCT + cor0.col2 * + ( - 5 ) FROM tab2, tab1 AS cor0
----
-270
-285
-480

query I rowsort
SELECT - 89 FROM tab2, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 1e1759ead845b97a0ef58dbd6a959d73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT + ( + col2 ) DIV col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4485
SELECT + ( + col2 ) / col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 * col2 col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col2 * + col0 + col2 * col2 AS col0 FROM tab0
----
14022
1881
36

query I rowsort
SELECT - 16 * col2 + - col0 FROM tab0 AS cor0
----
-1401
-51
-552

query I rowsort
SELECT - 82 * + col2 + + 56 * - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-115700
-12798
-171228

query I rowsort
SELECT col0 * + col0 + + col2 AS col0 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT cor0.col2 + - col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col2 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT DISTINCT + 22 DIV col1 + - col1 * - 66 FROM tab1 AS cor0
----
1716
662
859

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + 22 / col1 + - col1 * - 66 FROM tab1 AS cor0
----
1716
662
859

query I rowsort
SELECT DISTINCT + 69 * col0 + - 79 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-240
-350
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 + + col2 col0 FROM tab2 AS cor0
----
53
54
65

query I rowsort
SELECT ALL - + col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + + cor0.col0 * + ( + cor0.col2 * col0 ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT + col2 * - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col2 + col1 * - 86 AS col0 FROM tab0
----
-7429
-7908
-8343

query I rowsort
SELECT + 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + - col1 * + col2 + + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - ( - col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT cor0.col0 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4505
SELECT DISTINCT + + col0 DIV + col0 + - cor0.col2 * col1 + 98 FROM tab1 AS cor0
----
-1149
-1305
-471

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + + col0 / + col0 + - cor0.col2 * col1 + 98 FROM tab1 AS cor0
----
-1149
-1305
-471

query I rowsort
SELECT - ( + ( col1 ) ) + col0 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1506
695
705

query I rowsort
SELECT ALL 48 * col0 AS col2 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT ALL + cor1.col0 FROM tab2, tab0 cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT 99 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739

query I rowsort
SELECT cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT col1 + + col0 DIV col1 AS col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-4511
SELECT col1 + + col0 / col1 AS col1 FROM tab2
----
21
31
60

query I rowsort
SELECT + 28 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ( - col1 ) * col2 + ( col1 ) FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col2 + col0 + - col2 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + 38 + + tab0.col1 + col2 * + col2 FROM tab0
----
1213
136
6853

query I rowsort
SELECT + 19 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL + col0 + + 60 FROM tab2
----
138
139
67

query I rowsort
SELECT ALL ( 84 ) + + tab2.col2 + - col0 AS col2 FROM tab2
----
104
32
43

query I rowsort
SELECT - col1 + tab0.col2 * col0 AS col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL ( col2 ) * - col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col1 AS REAL ) + tab1.col1 col0 FROM tab1
----
0

query I rowsort
SELECT ALL 11 * col0 FROM tab1 AS cor0
----
33
704
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + cor0.col1 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + col0 * col0 + + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
117
4210
6592

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + col1 AS REAL ) * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 49 * col2 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT - col0 * - 82 FROM tab2 AS cor0
----
574
6396
6478

onlyif mysql # use DIV operator for integer division
query I rowsort label-4529
SELECT + col2 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4529
SELECT + col2 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( + col1 ) + col0 * col0 * 46 FROM tab2 AS cor0
----
2223
279805
287069

query I rowsort
SELECT + + col2 - + col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL col1 + - col2 * + col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT - + col0 * - 20 * cor0.col1 FROM tab1 cor0
----
12800
1560
20800

query I rowsort
SELECT - col0 * 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 65 + - 70 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL + col2 * + 78 FROM tab0
----
2574
6396
78

query I rowsort
SELECT tab2.col2 + 92 * - 12 AS col2 FROM tab2
----
-1066
-1077
-1078

query I rowsort
SELECT ALL + - col2 + ( - cor0.col0 + - col0 ) * + 19 AS col1 FROM tab0 AS cor0
----
-1331
-3464
-945

query I rowsort
SELECT ALL + col2 * + 15 AS col1 FROM tab0 AS cor0
----
1230
15
495

query I rowsort
SELECT ALL ( + 83 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL 11 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT - + 46 * + 69 FROM tab0 AS cor0
----
-3174
-3174
-3174

onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT ALL + col0 + 7 DIV + col2 AS col2 FROM tab0 AS cor0
----
24
42
89

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL + col0 + 7 / + col2 AS col2 FROM tab0 AS cor0
----
24
42
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT ALL - + cor0.col1 * col0 DIV + cor0.col0 + ( 0 ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - + cor0.col1 * col0 / + cor0.col0 + ( 0 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col0 * + col0 + col1 * col2 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT DISTINCT - + 99 * + col0 + col0 * - ( + ( - col1 ) + col1 ) FROM tab0 AS cor0
----
-2376
-3465
-8811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4547
SELECT DISTINCT - cor0.col2 * - CAST( + 83 AS SIGNED ) AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
2739
6806
83

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - cor0.col2 * - CAST ( + 83 AS INTEGER ) AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
2739
6806
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + - cor0.col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col1 * + col1 * 84 AS col2 FROM tab2
----
24276
292404
80724

query I rowsort
SELECT - 47 AS col2 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + col2 - col0 * ( - col0 ) FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + col0 + col1 * - col0 - - 74 * - col2 FROM tab2
----
-2208
-4076
-6448

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
-60

query I rowsort
SELECT + col1 + 32 FROM tab2 AS cor0
----
49
63
91

query I rowsort
SELECT + col1 * col2 + col0 * col0 AS col1 FROM tab2 AS cor0
----
6887
7618
886

onlyif mysql # use DIV operator for integer division
query I rowsort label-4556
SELECT + col2 DIV col2 + - cor0.col2 + - col0 FROM tab1 AS cor0
----
-120
-175
-56

skipif mysql # not compatible
query I rowsort label-4556
SELECT + col2 / col2 + - cor0.col2 + - col0 FROM tab1 AS cor0
----
-120
-175
-56

query I rowsort
SELECT - cor0.col2 + ( - ( col1 ) ) * col0 + - 96 * col1 FROM tab2 AS cor0
----
-10292
-3013
-3220

query I rowsort
SELECT DISTINCT - 26 + col2 * + col2 AS col0 FROM tab0 cor0
----
-25
1063
6698

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL 66 AS col2 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + - ( + col1 ) * + ( 90 ) + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT + col1 + col2 * tab1.col1 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL + col2 + col1 * col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT 28 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL - col2 + 35 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT DISTINCT + col2 * 82 AS col1 FROM tab1 AS cor0
----
4428
4674
7872

query I rowsort
SELECT col2 * 56 AS col2 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT + cor0.col2 + col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL col1 * col2 * + col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT 22 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT + 98 - tab1.col2 FROM tab1
----
2
41
44

query I rowsort
SELECT col0 * - col2 + + col1 AS col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE col2 <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT ALL - col1 * - col0 - + col1 DIV + tab0.col2 AS col2 FROM tab0
----
2062
3298
8098

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - col1 * - col0 - + col1 / + tab0.col2 AS col2 FROM tab0
----
2062
3298
8098

query I rowsort
SELECT + col0 + + col2 * + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT col0 * col1 * tab1.col2 + col1 - col2 AS col0 FROM tab1
----
36433
4184
99757

query I rowsort
SELECT ALL - col0 + col1 - col2 * - col1 AS col0 FROM tab2
----
1515
584
861

onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT + col0 * col1 DIV col0 + + tab0.col1 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-4578
SELECT + col0 * col1 / col0 + + tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT col1 + + col2 - - col1 AS col0 FROM tab0
----
195
205
264

query I rowsort
SELECT col0 + tab0.col0 * col0 + col0 AS col0 FROM tab0
----
1295
624
8099

query I rowsort
SELECT DISTINCT - col0 + - col0 * col1 + col1 AS col1 FROM tab2
----
-1405
-193
-4621

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT DISTINCT + col2 * col1 - + tab0.col1 * tab0.col2 DIV - col2 FROM tab0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + col2 * col1 - + tab0.col1 * tab0.col2 / - col2 FROM tab0
----
194
2924
7553

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + col1 / + col0 + - col2 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL + col2 * + col1 - col2 AS col0 FROM tab1
----
1152
1350
513

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - col2 + col2 * col1 IN ( - tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT - tab1.col0 * - col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col0 * tab1.col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - col2 * col0 + tab2.col0 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT col1 + + col1 * col1 / - tab2.col0 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 * - col1 ) <> ( NULL )
----

query I rowsort
SELECT ALL col2 * + col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + tab2.col2 * col1 + - col1 AS col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT - col1 + + tab1.col2 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT 89 + 61 AS col0 FROM tab1
----
150

query I rowsort
SELECT - + col2 + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4596
SELECT 96 + + col2 DIV + col1 + ( 27 ) FROM tab1
----
125
128
130

skipif mysql # not compatible
query I rowsort label-4596
SELECT 96 + + col2 / + col1 + ( 27 ) FROM tab1
----
125
128
130

query I rowsort
SELECT ( 28 + - col2 ) AS col1 FROM tab2
----
-10
1
2

query I rowsort
SELECT ALL col1 * + 85 + cor0.col0 FROM tab1 AS cor0
----
1185
2213
914

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ( + ( + cor0.col0 ) ) + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + tab1.col2 * - 91 * col0 AS col2 FROM tab1
----
-14742
-331968
-698880

query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT + 3 + + col0 AS col0 FROM tab0
----
27
38
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4604
SELECT + 78 * col0 + CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 78 * col0 + CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + + 79 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4607
SELECT ALL + - col2 DIV + col0 + col1 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + - col2 / + col0 + col1 FROM tab2 AS cor0
----
17
28
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4608
SELECT ALL col0 * + col0 + CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
-2262
1128
459

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL col0 * + col0 + CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT + + col1 * cor0.col0 * col0 + col1 FROM tab0 cor0
----
118922
49622
720902

query I rowsort
SELECT ALL + + col2 * + col2 + - cor0.col1 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
2770
5219
915

query I rowsort
SELECT DISTINCT ( - col1 ) - + col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col1 + - col1 * col2 * + col2 AS col2 FROM tab1
----
-119795
-32480
-75790

query I rowsort
SELECT col1 * + col1 + + col0 AS col1 FROM tab1
----
164
249
679

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4615
SELECT col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + ( - col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4617
SELECT ALL + col0 * + CAST( + ( col2 ) AS SIGNED ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + col0 * + CAST ( + ( col2 ) AS INTEGER ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - col1 * + ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col1 * + ( + 15 + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1443
-1794
-720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT col2 * - 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-4621
SELECT + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 * + col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT ALL + + col0 + - col2 DIV 9 FROM tab0 AS cor0
----
21
35
80

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + + col0 + - col2 / 9 FROM tab0 AS cor0
----
21
35
80

query I rowsort
SELECT ALL ( - col2 ) + col1 * col1 AS col2 FROM tab2 cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT - - col1 + 97 * col0 AS col0 FROM tab2 AS cor0
----
710
7625
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4626
SELECT + col1 DIV 7 - col2 AS col2 FROM tab2 AS cor0
----
-18
-23
-36

skipif mysql # not compatible
query I rowsort label-4626
SELECT + col1 / 7 - col2 AS col2 FROM tab2 AS cor0
----
-18
-23
-36

query I rowsort
SELECT + ( 4 ) * cor0.col0 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT cor0.col1 * 18 FROM tab1 AS cor0
----
180
234
468

query I rowsort
SELECT DISTINCT - tab2.col0 * 36 AS col0 FROM tab2, tab0 cor0
----
-252
-2808
-2844

query I rowsort
SELECT ALL 40 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT + + col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4631
SELECT + + col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT ( - col1 ) DIV + ( + col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4632
SELECT ( - col1 ) / + ( + col1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col1 * col2 * 48 AS col0 FROM tab0 AS cor0
----
-136224
-358176
-4656

query I rowsort
SELECT DISTINCT + 80 * col2 AS col0 FROM tab1 cor0
----
4320
4560
7680

query I rowsort
SELECT + col2 * 93 AS col2 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT + col2 + 23 AS col0 FROM tab1 AS cor0
----
119
77
80

query I rowsort
SELECT - cor0.col2 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - col0 * - ( 57 ) AS col1 FROM tab0 AS cor0
----
1368
1995
5073

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT - - col2 DIV 45 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4639
SELECT - - col2 / 45 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - 43 + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-2071
-232
-3045

onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT ALL + col1 + col2 DIV col0 AS col1 FROM tab0 cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + col1 + col2 / col0 AS col1 FROM tab0 cor0
----
87
91
97

query I rowsort
SELECT + 65 * + cor0.col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT + cor0.col2 * ( + col2 ) + 48 FROM tab0 AS cor0
----
1137
49
6772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4644
SELECT + ( ( col0 ) ) * + CAST( NULL AS DECIMAL ) / 46 + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT + ( ( col0 ) ) * + CAST ( NULL AS REAL ) / 46 + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 47 * col1 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559

onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT DISTINCT - col0 DIV + col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - col0 / + col0 FROM tab2
----
-1

query I rowsort
SELECT col1 + + col0 * - 34 FROM tab2 AS cor0
----
-207
-2593
-2669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 + + cor0.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d3d8ce4e6f3adca6a8d763a963674e12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * col0 col2 FROM tab0
----
1728
2520
6408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT ALL col1 DIV + col1 + 75 FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL col1 / + col1 + 75 FROM tab0 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT + ( + col0 + + col1 ) AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT + 5 AS col1 FROM tab2
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab0, tab2, tab1 AS cor0
----
12

query I rowsort
SELECT + 82 + cor0.col1 AS col1 FROM tab1 AS cor0
----
108
92
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 + col0 col1 FROM tab2
----
167
168
96

query I rowsort
SELECT 82 + col2 FROM tab2
----
108
109
120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT ALL + 5 DIV col1 + + tab1.col0 col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + 5 / col1 + + tab1.col0 col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 + - col1 col0 FROM tab2
----
-114
-72
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT DISTINCT + col0 + 70 DIV + 15 col1 FROM tab0
----
28
39
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + col0 + 70 / + 15 col1 FROM tab0
----
28
39
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT DISTINCT col1 + ( + tab1.col0 ) DIV col2 AS col2 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT col1 + ( + tab1.col0 ) / col2 AS col2 FROM tab1
----
11
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 - cor0.col2 col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 AS col2 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4665
SELECT ALL - + CAST( + col1 AS SIGNED ) * + col1 + 42 AS col1 FROM tab2 AS cor0
----
-247
-3439
-919

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - + CAST ( + col1 AS INTEGER ) * + col1 + 42 AS col1 FROM tab2 AS cor0
----
-247
-3439
-919

query I rowsort
SELECT + col1 + + ( col2 ) AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + 43 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + cor0.col2 * - 44 AS col0 FROM tab2 AS cor0
----
-1144
-1188
-1672

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) * + col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + - cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT - col2 DIV ( col1 ) - 60 * col0 * - col2 FROM tab2 AS cor0
----
11340
121680
180118

skipif mysql # not compatible
query I rowsort label-4672
SELECT - col2 / ( col1 ) - 60 * col0 * - col2 FROM tab2 AS cor0
----
11340
121680
180118

query I rowsort
SELECT ( + 34 ) * col1 + + col1 AS col1 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT col2 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - tab2.col2 + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + col0 * + col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + col0 + col2 * - tab2.col2 * col1 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT DISTINCT - col2 * 28 + tab2.col1 AS col2 FROM tab2
----
-1047
-669
-725

query I rowsort
SELECT col2 * 17 + col0 FROM tab0
----
1483
52
585

query I rowsort
SELECT col1 - 55 * col1 AS col2 FROM tab1
----
-1404
-540
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4681
SELECT ALL - - cor0.col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - - cor0.col0 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4682
SELECT ALL + - col2 DIV - ( + cor0.col0 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + - col2 / - ( + cor0.col0 ) FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4683
SELECT ALL - CAST( + col0 AS SIGNED ) + col2 + - 50 FROM tab0 cor0
----
-41
-57
-84

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL - CAST ( + col0 AS INTEGER ) + col2 + - 50 FROM tab0 cor0
----
-41
-57
-84

query I rowsort
SELECT DISTINCT + + 39 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
-26364
-3900
-6591

query I rowsort
SELECT DISTINCT + + 34 AS col1 FROM tab2 AS cor0
----
34

query I rowsort
SELECT - 29 + ( - col0 ) AS col2 FROM tab1 cor0
----
-109
-32
-93

query I rowsort
SELECT DISTINCT col1 * + 72 + - col1 FROM tab0 cor0
----
6106
6461
6887

query I rowsort
SELECT ALL cor0.col1 + col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + ( 46 ) * - col0 - col2 FROM tab1 AS cor0
----
-192
-3001
-3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col1 * + cor0.col2 col2 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT + + col1 - - ( + col1 ) FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 15 col0 FROM tab1
----
18
79
95

query I rowsort
SELECT DISTINCT tab2.col0 + col0 + - col2 AS col0 FROM tab2
----
-13
120
130

query I rowsort
SELECT - + ( 1 ) + col1 FROM tab1 cor0
----
12
25
9

query I rowsort
SELECT DISTINCT + ( + 25 ) + - col1 * 28 * - ( - col2 ) FROM tab2 cor0
----
-18063
-23411
-42927

onlyif mysql # use DIV operator for integer division
query I rowsort label-4696
SELECT DISTINCT + tab1.col1 DIV 70 + + 72 * + tab1.col1 + ( tab1.col0 + + col2 ) AS col1 FROM tab1
----
1112
1929
841

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT + tab1.col1 / 70 + + 72 * + tab1.col1 + ( tab1.col0 + + col2 ) AS col1 FROM tab1
----
1112
1929
841

query I rowsort
SELECT col0 - 75 AS col2 FROM tab1
----
-11
-72
5

query I rowsort
SELECT + - cor0.col1 - col1 * + ( + col1 * + col1 + 68 ) AS col0 FROM tab1 AS cor0
----
-1690
-19370
-3094

query I rowsort
SELECT ALL + - col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4700
SELECT ( col1 ) * CAST( col1 AS SIGNED ) + col2 + + col1 AS col0 FROM tab0 AS cor0
----
7515
8454
9507

skipif mysql # not compatible
query I rowsort label-4700
SELECT ( col1 ) * CAST ( col1 AS INTEGER ) + col2 + + col1 AS col0 FROM tab0 AS cor0
----
7515
8454
9507

onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT DISTINCT - col1 DIV - col0 AS col0 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT - col1 / - col0 AS col0 FROM tab2 cor0
----
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4702
SELECT - + col1 * - col2 * col2 - + 70 DIV cor0.col1 FROM tab1 AS cor0
----
119803
32483
75814

skipif mysql # not compatible
query I rowsort label-4702
SELECT - + col1 * - col2 * col2 - + 70 / cor0.col1 FROM tab1 AS cor0
----
119803
32483
75814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 + + col0 col1 FROM tab0 AS cor0
----
109
44
55

query I rowsort
SELECT - + 90 FROM tab0 AS cor0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - cor0.col1 col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + ( - col0 + - col2 ) * + tab1.col2 * + col2 AS col1 FROM tab1
----
-1622016
-166212
-393129

onlyif mysql # use DIV operator for integer division
query I rowsort label-4707
SELECT DISTINCT - 49 DIV - col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - 49 / - col1 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL + 57 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT + ( + col2 ) DIV - col0 + 31 FROM tab2 AS cor0
----
28
31
31

skipif mysql # not compatible
query I rowsort label-4709
SELECT + ( + col2 ) / - col0 + 31 FROM tab2 AS cor0
----
28
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4710
SELECT DISTINCT - - col2 + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - - col2 + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col1 * col1 * + 75 + cor0.col0 FROM tab2 AS cor0
----
21754
261153
72082

query I rowsort
SELECT ALL + - cor0.col0 + col0 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + col1 - col0 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT 1 + + col2 AS col0 FROM tab2 AS cor0
----
27
28
39

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT DISTINCT - col2 * - col1 + 71 AS col0 FROM tab1 AS cor0
----
1319
1475
641

query I rowsort
SELECT ALL + col2 * ( col0 + - col2 ) AS col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT - tab1.col1 * col0 * col0 AS col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + - col0 * + 88 FROM tab2 AS cor0
----
-616
-6864
-6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col0 * 90 + col0 + + col1 AS col0 FROM tab0 AS cor0
----
2270
3282
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT - col1 DIV col1 + + col2 col1 FROM tab2 AS cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4722
SELECT - col1 / col1 + + col2 col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL + - col2 * col0 + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT + col2 + + 75 FROM tab0 AS cor0
----
108
157
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 47 + - col1 col0 FROM tab0 AS cor0
----
-144
-1637
-3945

query I rowsort
SELECT + + 83 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT + 62 + - col2 AS col0 FROM tab1
----
-34
5
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4728
SELECT DISTINCT cor1.col0 / CAST( NULL AS SIGNED ) - + 53 FROM tab0, tab1, tab0 cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT cor1.col0 / CAST ( NULL AS INTEGER ) - + 53 FROM tab0, tab1, tab0 cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 44 - col2 AS col1 FROM tab0
----
-38
11
43

query I rowsort
SELECT - col1 + + 67 + - 11 FROM tab1
----
30
43
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4731
SELECT DISTINCT - - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - 90 + - 22 * - cor0.col1 col2 FROM tab1 AS cor0
----
-4288
-4910
-8354

query I rowsort
SELECT ALL - - cor0.col0 * - col1 + + 24 * col1 * col0 FROM tab1 AS cor0
----
14720
1794
23920

query I rowsort
SELECT DISTINCT - col0 + - 39 FROM tab0 AS cor0
----
-128
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 * - cor0.col1 col2 FROM tab0 AS cor0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - + cor0.col2 + - col0 - col1 * + col1 FROM tab2 AS cor0
----
-3585
-406
-995

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab0
----
49

query I rowsort
SELECT DISTINCT + ( 61 ) + - cor0.col2 FROM tab0 cor0
----
-21
28
60

query I rowsort
SELECT ALL col0 - 60 AS col0 FROM tab2 AS cor0
----
-53
18
19

query I rowsort
SELECT ALL - + ( - col0 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT DISTINCT col1 + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT col1 + - col2 / col0 AS col0 FROM tab1 AS cor0
----
10
12
8

query I rowsort
SELECT - tab0.col0 + - 81 AS col2 FROM tab0
----
-105
-116
-170

query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab0
----
91

query I rowsort
SELECT ALL 55 * - col2 + + cor0.col0 FROM tab0 cor0
----
-1791
-20
-4421

query I rowsort
SELECT ALL - col0 * + col0 + col0 * + col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 + col1 + col1 AS col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - 60 * col2 + 73 FROM tab1 AS cor0
----
-3167
-3347
-5687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - - cor0.col1 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 59 + col2 * 79 FROM tab1 AS cor0
----
4325
4562
7643

query I rowsort
SELECT - 61 * 89 + - col0 AS col2 FROM tab0 cor0
----
-5453
-5464
-5518

query I rowsort
SELECT col1 * 53 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT ALL - col1 + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4757
SELECT ALL - CAST( + cor0.col2 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL - CAST ( + cor0.col2 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + + cor0.col2 + col1 col2 FROM tab2 AS cor0
----
110
80
83

query I rowsort
SELECT col0 * cor0.col1 + + col1 FROM tab1 cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4760
SELECT + col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4761
SELECT col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4762
SELECT + CAST( + 43 AS SIGNED ) AS col1 FROM tab0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-4762
SELECT + CAST ( + 43 AS INTEGER ) AS col1 FROM tab0
----
43
43
43

query I rowsort
SELECT + cor0.col1 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + ( - col0 ) * col1 * 9 + - cor0.col2 FROM tab0 AS cor0
----
-18609
-30556
-72973

query I rowsort
SELECT - - 75 * - cor1.col0 + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 26d0a37da7fb89d8b0774b2d6379bfcb

query I rowsort
SELECT ALL - 86 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT - col2 * col1 - + col0 * col0 AS col2 FROM tab2 AS cor0
----
-6887
-7618
-886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + ( col0 ) * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - + col1 + + col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + 13 - col0 AS col2 FROM tab1 AS cor0
----
-51
-67
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-4772
SELECT ALL 77 * col1 DIV 64 FROM tab2 AS cor0
----
20
37
70

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL 77 * col1 / 64 FROM tab2 AS cor0
----
20
37
70

query I rowsort
SELECT + + col0 * + col0 + - ( col0 ) AS col2 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT ALL - 11 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT col0 + - ( col2 ) FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT + tab1.col1 - + tab1.col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - + col0 * + 92 AS col0 FROM tab0 cor0
----
-2208
-3220
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4779
SELECT + col2 - CAST( 83 AS SIGNED ) * + cor0.col2 AS col1 FROM tab0 cor0
----
-2706
-6724
-82

skipif mysql # not compatible
query I rowsort label-4779
SELECT + col2 - CAST ( 83 AS INTEGER ) * + cor0.col2 AS col1 FROM tab0 cor0
----
-2706
-6724
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT col0 DIV 71 + - col0 + col2 AS col2 FROM tab2 AS cor0
----
-40
-51
20

skipif mysql # not compatible
query I rowsort label-4780
SELECT col0 / 71 + - col0 + col2 AS col2 FROM tab2 AS cor0
----
-40
-51
20

query I rowsort
SELECT ALL 44 * - col1 * col1 FROM tab1 AS cor0
----
-29744
-4400
-7436

onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT DISTINCT - ( cor0.col2 ) * - col1 + 68 DIV col0 AS col1 FROM tab1 AS cor0
----
1248
1426
571

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - ( cor0.col2 ) * - col1 + 68 / col0 AS col1 FROM tab1 AS cor0
----
1248
1426
571

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT + col1 * + col0 * - col1 AS col0 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4785
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT - 11 AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT - - 36 AS col0 FROM tab1 cor0
----
36

query I rowsort
SELECT ALL col0 + col0 + 14 FROM tab0 AS cor0
----
192
62
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT col0 * - cor0.col2 DIV ( col2 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4790
SELECT col0 * - cor0.col2 / ( col2 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 + 37 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT col1 * ( - 23 ) - col0 FROM tab2 AS cor0
----
-1435
-470
-720

query I rowsort
SELECT DISTINCT + col0 * 19 AS col2 FROM tab2 AS cor0
----
133
1482
1501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - + col2 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 * col1 - - col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - col1 + col1 * ( col2 ) FROM tab1
----
1235
1378
560

query I rowsort
SELECT DISTINCT 73 * + col2 AS col0 FROM tab2
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT ALL + tab1.col2 DIV tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e356a6b217612a547b669fa80e15d9b4

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + tab1.col2 / tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e356a6b217612a547b669fa80e15d9b4

query I rowsort
SELECT 32 + col2 AS col1 FROM tab1
----
128
86
89

query I rowsort
SELECT DISTINCT + ( col1 ) - tab1.col0 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL + + col2 * col2 + 84 FROM tab2 AS cor0
----
1528
760
813

query I rowsort
SELECT 16 * col0 + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
2607
329
5850

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT col0 * - col1 * col2 + col1 * - col1 AS col2 FROM tab0
----
-12804
-672399
-75508

query I rowsort
SELECT DISTINCT + 92 + + col2 FROM tab2 cor0
----
118
119
130

query I rowsort
SELECT DISTINCT - col2 + col2 + + col0 FROM tab2
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4807
SELECT ( col0 * - CAST( col2 AS SIGNED ) ) AS col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4807
SELECT ( col0 * - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT tab1.col2 * col2 + 19 * 98 * + col1 FROM tab1
----
21869
33422
51328

query I rowsort
SELECT DISTINCT - col1 + tab2.col1 + 35 AS col1 FROM tab2
----
35

query I rowsort
SELECT ALL - - ( - col0 ) * 43 - - col2 AS col2 FROM tab1 AS cor0
----
-2695
-3344
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4811
SELECT ALL - col1 * col0 DIV col2 FROM tab0 AS cor0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - col1 * col0 / col2 FROM tab0 AS cor0
----
-3395
-62
-98

query I rowsort
SELECT + - cor0.col1 * - col1 * col0 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 * 11 FROM tab0 AS cor0
----
12
396
984

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT ALL - col0 + cor0.col0 * col2 DIV - 12 col0 FROM tab1 AS cor0
----
-16
-368
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - col0 + cor0.col0 * col2 / - 12 col0 FROM tab1 AS cor0
----
-16
-368
-720

query I rowsort
SELECT col1 * + col2 + col2 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT ALL - - col1 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - - col1 / col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 60 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT DISTINCT - - ( + 99 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT ( 48 ) + col0 AS col0 FROM tab0 AS cor0
----
137
72
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4820
SELECT ALL - CAST( + col1 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL - CAST ( + col1 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL cor0.col1 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - col0 * col2 * + col1 + + ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-3298
-65274
-656656

query I rowsort
SELECT DISTINCT + - col1 * col2 + col0 * + 78 - + col2 * col2 * col1 AS col0 FROM tab0 AS cor0
----
-612404
-94620
2536

onlyif mysql # use DIV operator for integer division
query I rowsort label-4824
SELECT ALL - 73 DIV - 66 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - 73 / - 66 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT DISTINCT + col2 + 24 DIV + col0 AS col1 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + col2 + 24 / + col0 AS col1 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT - ( - col1 ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - 75 * col2 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT col0 - - col2 * - ( + col2 ) FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ALL ( + 71 ) * - tab2.col1 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5069683cf3e714ae5506d71e4afc8e94

query I rowsort
SELECT + col0 - + ( col2 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT col0 + col0 * 72 FROM tab2
----
511
5694
5767

query I rowsort
SELECT DISTINCT + + 68 + - ( col1 ) FROM tab2 AS cor0
----
37
51
9

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab2 AS cor0
----
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT ALL cor0.col0 DIV + col2 + col0 AS col0 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL cor0.col0 / + col2 + col0 AS col0 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT DISTINCT - 3 * col0 - - cor0.col2 FROM tab0 AS cor0
----
-104
-185
-39

query I rowsort
SELECT - - ( ( cor0.col0 ) ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + + col0 - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col1 + 21 * + col2 AS col0 FROM tab1 AS cor0
----
1108
1187
2003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * + col1 col2 FROM tab1 cor0
----
1508
580
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT DISTINCT - + col1 * ( col1 ) + + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-272
-3422
-930

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - + col1 * ( col1 ) + + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL 43 * col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT + 8 + + col0 * + col2 FROM tab2 AS cor0
----
197
2036
3010

query I rowsort
SELECT DISTINCT cor1.col2 * - cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
9 values hashing to 6e831ce95b59398818a720c8e9b6e293

query I rowsort
SELECT ALL - 35 * col2 AS col0 FROM tab0 AS cor0
----
-1155
-2870
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - col2 AS REAL ) * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4847
SELECT DISTINCT - 38 DIV - 41 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT - 38 / - 41 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
0

query I rowsort
SELECT - 10 FROM tab0, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT - - ( + col2 ) + col0 DIV + col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4849
SELECT - - ( + col2 ) + col0 / + col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - ( - col0 ) + + col2 * + cor0.col1 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT - - col0 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT + 48 + + col0 DIV 59 FROM tab2 AS cor0
----
48
49
49

skipif mysql # not compatible
query I rowsort label-4852
SELECT + 48 + + col0 / 59 FROM tab2 AS cor0
----
48
49
49

query I rowsort
SELECT + + 9 * col0 - - 45 FROM tab2 AS cor0
----
108
747
756

query I rowsort
SELECT + ( + col1 ) - 93 AS col1 FROM tab1 AS cor0
----
-67
-80
-83

query I rowsort
SELECT DISTINCT - ( tab0.col0 ) * col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + 66 * col2 FROM tab2
----
1716
1782
2508

query I rowsort
SELECT 64 + col0 AS col2 FROM tab1
----
128
144
67

query I rowsort
SELECT ALL + - col0 * 49 FROM tab1 cor0
----
-147
-3136
-3920

query I rowsort
SELECT + cor0.col2 + - cor0.col1 * - col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - col1 + + ( col0 ) FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL + cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col2 * 62 FROM tab1 AS cor0
----
3348
3534
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT DISTINCT col0 + + col2 DIV col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT col0 + + col2 / col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT + col0 * col0 * col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - cor0.col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT + col0 DIV ( - col2 ) FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4866
SELECT + col0 / ( - col2 ) FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT col2 * + col1 - ( 66 ) FROM tab0
----
2772
31
7396

query I rowsort
SELECT + 82 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT - - col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4870
SELECT col1 * CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT col1 * CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + col0 * col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - - col2 + 0 * col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - ( + 76 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - col0 + + col1 + - col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4877
SELECT cor0.col2 DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4877
SELECT cor0.col2 / + col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT 62 * col1 + + col1 - col0 AS col1 FROM tab2 AS cor0
----
1946
3639
992

query I rowsort
SELECT + 44 + + cor0.col1 FROM tab0 AS cor0
----
130
135
141

onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT + col0 * + col0 + + col2 DIV + col1 + - col0 FROM tab2
----
42
6006
6164

skipif mysql # not compatible
query I rowsort label-4880
SELECT + col0 * + col0 + + col2 / + col1 + - col0 FROM tab2
----
42
6006
6164

query I rowsort
SELECT col2 * - 22 AS col0 FROM tab0
----
-1804
-22
-726

onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT + col2 * col0 DIV col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4882
SELECT + col2 * col0 / col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - - 74 + col1 AS col2 FROM tab2 AS cor0
----
105
133
91

query I rowsort
SELECT + 7 * - col2 AS col0 FROM tab0
----
-231
-574
-7

query I rowsort
SELECT ( col1 ) + col0 + - col0 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + ( + cor0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 75 AS col1 FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT cor0.col0 * + 6 FROM tab2 AS cor0
----
42
468
474

onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT - 63 DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT - 63 / col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT 81 FROM tab1, tab2 cor0
----
81

query I rowsort
SELECT + 32 * col0 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
1121
2930
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT - 22 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT - 22 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 84 AS col0 FROM tab0
----
84
84
84

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab1, tab0 AS cor0
----
70

query I rowsort
SELECT - - 82 FROM tab1 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT col0 + + col2 * col1 * col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
133
612055
93711

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) IN ( tab0.col0 + - col2 )
----

query I rowsort
SELECT + col2 + col1 * col1 AS col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE col1 + col1 < NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( + col1 + tab2.col2 * - col2 * col1 ) <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col2 + col1 / + col2 )
----

query I rowsort
SELECT DISTINCT - col2 * col2 * + col1 FROM tab1
----
-119808
-32490
-75816

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - cor0.col2 * + col2 / - col0 ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4907
SELECT - col0 DIV col0 - + col1 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-4907
SELECT - col0 / col0 - + col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT col2 * - col1 - + col1 * col1 * col1 AS col2 FROM tab2 AS cor0
----
-206913
-30628
-5559

query I rowsort
SELECT DISTINCT + col0 * tab0.col2 + + col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col1 * - tab2.col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( col2 ) IN ( col1 ) AND col1 * col1 > + col2 + col0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT + - col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4914
SELECT + - col2 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - - col0 + col2 * col2 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT ALL cor0.col2 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4918
SELECT DISTINCT cor0.col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT cor0.col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col1 + 26 AS col0 FROM tab2 AS cor0
----
43
57
85

query I rowsort
SELECT DISTINCT - col2 * 42 + + col0 * + col0 FROM tab0 AS cor0
----
-810
1183
4477

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col0 + CAST ( col0 * - col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4923
SELECT ALL + + col1 + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL + + col1 + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + cor0.col1 * + 20 FROM tab0 AS cor0
----
1744
1909
1975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT ALL col0 + CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL col0 + CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - col0 - ( 15 ) AS col2 FROM tab0
----
-104
-39
-50

query I rowsort
SELECT ALL + col2 - + col0 * col0 AS col0 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT ALL + col0 + 53 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT 65 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT + - col0 + 61 AS col0 FROM tab0 AS cor0
----
-28
26
37

query I rowsort
SELECT ALL col0 + + 3 + col2 FROM tab0 AS cor0
----
174
39
60

query I rowsort
SELECT ALL - col2 + - 44 + + tab0.col2 FROM tab0
----
-44
-44
-44

query I rowsort
SELECT ( - 49 ) FROM tab2, tab1 cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + 51 + col0 * col2 * + col0 FROM tab2
----
1374
158235
237209

query I rowsort
SELECT + 16 - col0 AS col0 FROM tab1
----
-48
-64
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT DISTINCT + + col0 DIV - cor0.col0 + col1 + + col0 * col0 FROM tab2 AS cor0
----
6142
6257
79

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + + col0 / - cor0.col0 + col1 + + col0 * col0 FROM tab2 AS cor0
----
6142
6257
79

query I rowsort
SELECT ALL + + 17 + col2 * + col0 FROM tab2 cor0
----
2045
206
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4940
SELECT ALL - CAST( NULL AS SIGNED ) + + tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL - CAST ( NULL AS INTEGER ) + + tab1.col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 + - 38 AS col2 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT 99 * - col0 + + col2 * col0 + col1 FROM tab0 AS cor0
----
-1422
-1498
-3333

query I rowsort
SELECT DISTINCT 64 + col1 * col0 FROM tab0
----
2128
3459
8163

onlyif mysql # use DIV operator for integer division
query I rowsort label-4944
SELECT col1 - tab2.col1 DIV col0 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-4944
SELECT col1 - tab2.col1 / col0 FROM tab2
----
17
27
59

query I rowsort
SELECT 34 * 7 * - col1 + 42 FROM tab1
----
-2338
-3052
-6146

query I rowsort
SELECT 32 + col2 * + col1 FROM tab1
----
1280
1436
602

query I rowsort
SELECT DISTINCT 82 + tab1.col2 AS col0 FROM tab1
----
136
139
178

query I rowsort
SELECT + 44 * tab2.col1 * + tab2.col2 FROM tab2
----
28424
36828
67496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT DISTINCT + 89 + - col0 DIV 62 FROM tab1 cor0
----
88
89

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + 89 + - col0 / 62 FROM tab1 cor0
----
88
89

query I rowsort
SELECT ALL - - 44 * col0 + ( col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
-1170
2133
91

query I rowsort
SELECT DISTINCT col1 * col0 - col1 * 40 FROM tab2 AS cor0
----
-1023
2242
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT col1 + + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT col1 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - col0 - + 63 FROM tab0 AS cor0
----
-2127
-3458
-8162

query I rowsort
SELECT - + 88 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT ALL - col2 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL ( + col1 ) - - col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL 63 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4958
SELECT DISTINCT - cor0.col1 DIV tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
-1
-2
-3
-5

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT - cor0.col1 / tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
-1
-2
-3
-5

query I rowsort
SELECT tab0.col0 + - col2 * + col0 AS col2 FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4960
SELECT 74 DIV - col1 + + 19 FROM tab2
----
15
17
18

skipif mysql # not compatible
query I rowsort label-4960
SELECT 74 / - col1 + + 19 FROM tab2
----
15
17
18

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2, tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL col2 * + cor0.col2 + ( col1 ) AS col1 FROM tab2 cor0
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4963
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 + - 27 FROM tab1 cor0
----
-24
37
53

query I rowsort
SELECT ALL - col1 + + col0 * + 94 FROM tab2 cor0
----
627
7273
7409

query I rowsort
SELECT ALL col2 * ( col1 ) + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 23 col2 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT + 39 + - col1 FROM tab2
----
-20
22
8

query I rowsort
SELECT - cor0.col1 - tab2.col1 FROM tab2, tab0 cor0
----
9 values hashing to 912dbfd2b19c8ded12fada41f9dcce64

query I rowsort
SELECT + col0 * + 68 AS col2 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT + + col2 - + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 87 + - ( + cor0.col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1335
-1491
-657

query I rowsort
SELECT DISTINCT - + 23 + - ( col1 ) FROM tab1 AS cor0
----
-33
-36
-49

query I rowsort
SELECT ALL - 21 FROM tab1 cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 * - col1 * col2 col1 FROM tab0 AS cor0
----
-194012
-2522
-73788

query I rowsort
SELECT ALL col2 * - 25 FROM tab2 AS cor0
----
-650
-675
-950

onlyif mysql # use DIV operator for integer division
query I rowsort label-4977
SELECT + ( col0 ) + col0 + col0 DIV ( cor0.col0 ) col0 FROM tab1 cor0
----
129
161
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4977
SELECT + ( col0 ) + col0 + col0 / ( cor0.col0 ) col0 FROM tab1 cor0
----
129
161
7

query I rowsort
SELECT DISTINCT + ( - 18 ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL col0 * col0 * col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT + ( 46 ) AS col1 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT col1 * 87 * - col0 AS col0 FROM tab1 AS cor0
----
-55680
-6786
-90480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4982
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4983
SELECT + CAST( 46 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
2484
2622
4416

skipif mysql # not compatible
query I rowsort label-4983
SELECT + CAST ( 46 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT cor0.col2 * + col0 - - col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + ( col2 ) + col1 * + col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - 37 + - 76 AS col0 FROM tab1 cor0
----
-113
-113
-113

query I rowsort
SELECT ALL - - 59 * + 66 FROM tab0 AS cor0
----
3894
3894
3894

query I rowsort
SELECT ALL 25 + 76 * col0 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2663
-3111
1640

query I rowsort
SELECT DISTINCT col0 + - 7 AS col1 FROM tab1 AS cor0
----
-4
57
73

query I rowsort
SELECT - ( col0 ) * 90 + - col1 FROM tab2 AS cor0
----
-661
-7079
-7127

query I rowsort
SELECT ALL - 25 + + col2 + + col0 FROM tab1
----
151
32
96

query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab2 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT 93 + - ( + col1 ) * - 10 FROM tab0 AS cor0
----
1003
1063
953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 + + col2 * - col0 col0 FROM tab0 AS cor0
----
-702
-7208
55

query I rowsort
SELECT + cor0.col1 * col0 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - 33 - + col1 AS col2 FROM tab2 AS cor0
----
-50
-64
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * + 23 * - cor0.col0 col1 FROM tab0 AS cor0
----
-167763
-18130
-708

query I rowsort
SELECT ALL - - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + + col1 * - col2 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col1 - + cor0.col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col1 * 81 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT - + col1 * ( col0 ) * col2 + + 10 * 59 FROM tab2 cor0
----
-119062
-50444
-5269

query I rowsort
SELECT + + ( + cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT col1 + + col1 * - col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT + col1 * col2 + + 27 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2109
2862
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT - - col1 + + ( col1 ) * col2 DIV - ( + 67 * + col0 ) FROM tab0 AS cor0
----
85
90
97

skipif mysql # not compatible
query I rowsort label-5007
SELECT - - col1 + + ( col1 ) * col2 / - ( + 67 * + col0 ) FROM tab0 AS cor0
----
85
90
97

query I rowsort
SELECT ALL + 15 - ( + col2 + + col0 ) FROM tab2 AS cor0
----
-102
-19
-89

query I rowsort
SELECT + - 99 FROM tab1 cor0
----
-99
-99
-99

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22

query I rowsort
SELECT + 37 * col1 * + col0 FROM tab2 cor0
----
170274
49691
8029

query I rowsort
SELECT + 46 * col0 AS col2 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT ALL cor0.col2 * - 34 FROM tab2 AS cor0
----
-1292
-884
-918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5014
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 76 + 27 FROM tab2 cor0
----
103
103
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col2 FROM tab2 AS cor0
----
39

query I rowsort
SELECT - - 79 * + col2 AS col1 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT ( - col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5019
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - + ( - col0 ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + - 32 * col0 AS col2 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col0 * + 78 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT DISTINCT + col0 + - 39 + cor0.col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
126
3673
7721

query I rowsort
SELECT ALL - + ( 11 ) * col0 * - col0 FROM tab1 AS cor0
----
45056
70400
99

query I rowsort
SELECT + 69 * - col1 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT - + ( ( - col1 ) ) FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5030
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT - col1 * tab0.col0 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 + ( cor0.col0 ) AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * 80 + col2 * col2 + col0 col0 FROM tab1 AS cor0
----
-1807
2679
2896

query I rowsort
SELECT 71 * col2 AS col1 FROM tab0
----
2343
5822
71

query I rowsort
SELECT DISTINCT + 13 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

query I rowsort
SELECT - col0 * + tab0.col1 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col0 + col0 * - col2 + + tab0.col1 AS col1 FROM tab0
----
-7296
-730
27

query I rowsort
SELECT + col0 + - col2 * + col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5041
SELECT DISTINCT - - col2 + + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - - col2 + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - col1 + + col1 + 28 * - col0 * col1 FROM tab2 AS cor0
----
-128856
-37604
-6076

query I rowsort
SELECT ALL - - cor0.col0 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - col2 - col1 * 85 FROM tab0 AS cor0
----
-7343
-7817
-8246

onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT ALL + - col0 DIV - col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + - col0 / - col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( - tab0.col1 ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + 3 FROM tab0 cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT + col1 + + col1 DIV - ( + col1 ) AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5048
SELECT + col1 + + col1 / - ( + col1 ) AS col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + col1 + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT col0 + col2 * ( - col1 + col2 ) FROM tab2 AS cor0
----
-101
-780
877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col1 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT col2 * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 96 * col1 FROM tab0 AS cor0
----
8256
8736
9312

query I rowsort
SELECT DISTINCT + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + 34 * col1 AS col1 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT ALL - col0 * - 29 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1491
2426
3568

query I rowsort
SELECT - + col1 + cor0.col2 * ( col2 ) FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT col2 * 94 + - 85 AS col2 FROM tab0 AS cor0
----
3017
7623
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col1 FROM tab2
----
33
33
33

query I rowsort
SELECT ALL + 57 AS col0 FROM tab0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 66 + 28 col0 FROM tab0 cor0
----
94

query I rowsort
SELECT ALL + - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - col1 - col1 * col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT - col1 + 63 * cor0.col1 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT DISTINCT - - col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col0 * + 38 - 40 * - col1 AS col2 FROM tab2
----
1506
3682
5324

query I rowsort
SELECT - - cor0.col1 * + 81 + 12 + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5946c28a2ce6f2fa42530e837393f6eb

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * - 46 col0 FROM tab1
----
-3174
-3174
-3174

query I rowsort
SELECT - col1 + 6 FROM tab2
----
-11
-25
-53

query I rowsort
SELECT DISTINCT - ( - 26 ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort
SELECT - tab1.col2 * + col1 - col2 * CAST ( 87 AS REAL ) * col1 AS col1 FROM tab1
----
-109824
-123552
-50160

query I rowsort
SELECT DISTINCT + tab1.col0 + 74 AS col1 FROM tab1
----
138
154
77

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 + 54 + col2 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1280
663
8057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col1 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT col0 + tab1.col2 * + col2 AS col0 FROM tab1
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT CAST( - col0 * col1 AS SIGNED ) AS col0 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5078
SELECT CAST ( - col0 * col1 AS INTEGER ) AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 * - 77 + col1 FROM tab2
----
2061
2110
2943

query I rowsort
SELECT - ( - col0 ) * + col2 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5081
SELECT + 70 * + ( col0 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT + 70 * + ( col0 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 45 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
55
58
71

query I rowsort
SELECT ALL + 71 + + 22 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # use DIV operator for integer division
query I rowsort label-5084
SELECT - - 21 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-5084
SELECT - - 21 / - col0 col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL cor1.col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL 45 * - tab1.col1 FROM tab1
----
-1170
-450
-585

query I rowsort
SELECT + col0 + - tab2.col2 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * + col1 col0 FROM tab1
----
-1430
-550
-715

query I rowsort
SELECT ALL col1 + + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - 24 * cor0.col1 * cor1.col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to c187fccb84edbc11c40c55fcd312bd14

query I rowsort
SELECT + - col2 + - col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + col2 * + col1 - col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT ALL col1 * tab1.col1 AS col2 FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5096
SELECT DISTINCT + + col1 * CAST( NULL AS DECIMAL ) + cor0.col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT + + col1 * CAST ( NULL AS REAL ) + cor0.col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + cor1.col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + - ( + col1 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + - 9 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1031
631
69

query I rowsort
SELECT DISTINCT 35 + + cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
35

query I rowsort
SELECT ALL + + 29 AS col2 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT - 86 AS col0 FROM tab0 cor0
----
-86
-86
-86

query I rowsort
SELECT - col2 * + col1 - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + + col0 + + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + ( - 53 ) AS col2 FROM tab0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col1 FROM tab0, tab1 AS cor0
----
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT - cor0.col2 DIV col1 + - col1 * ( + col0 + - col1 ) AS col0 FROM tab1 AS cor0
----
-545
-878
596

skipif mysql # not compatible
query I rowsort label-5107
SELECT - cor0.col2 / col1 + - col1 * ( + col0 + - col1 ) AS col0 FROM tab1 AS cor0
----
-545
-878
596

query I rowsort
SELECT ALL - - 59 AS col2 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5109
SELECT DISTINCT - + col0 * col2 + col1 * - col0 DIV col0 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - + col0 * col2 + col1 * - col0 / col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - + 22 + col1 FROM tab1 AS cor0
----
-12
-9
4

query I rowsort
SELECT + col2 - + col1 * col2 * col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT col1 * cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5113
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * col2 + col1 AS col1 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT - 60 AS col1 FROM tab2
----
-60
-60
-60

query I rowsort
SELECT + + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - + col1 * 46 - + 2 AS col0 FROM tab0 cor0
----
-3958
-4188
-4464

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT ALL - cor0.col0 + - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - cor0.col0 + - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 90 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1
-55
-66

query I rowsort
SELECT DISTINCT 55 * col1 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT col0 * + ( + col1 ) * ( + col0 ) FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + col1 * + col2 + col1 * + ( ( - col2 ) ) * - col0 + + 29 FROM tab0 AS cor0
----
3521
671609
70979

query I rowsort
SELECT - - 3 AS col2 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab1, tab0 AS cor0
----
43

query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - 7 * - col0 AS col0 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT + cor0.col1 + col0 * - 91 AS col2 FROM tab2 AS cor0
----
-606
-7039
-7172

query I rowsort
SELECT - 13 + - cor0.col0 + ( col1 + col0 ) FROM tab1 AS cor0
----
-3
0
13

query I rowsort
SELECT ALL + col0 * tab0.col0 + ( 18 ) FROM tab0
----
1243
594
7939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col2 col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + - cor0.col0 + - cor0.col0 * 45 + cor0.col1 FROM tab1 AS cor0
----
-112
-2934
-3667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5132
SELECT CAST( + col2 AS SIGNED ) * col0 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-5132
SELECT CAST ( + col2 AS INTEGER ) * col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - - cor0.col0 * col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + cor0.col0 + + cor0.col1 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + col1 * col1 + + ( - col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT + - 1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 13 * col1 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT + cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 25 * + col1 AS col2 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT ALL + col1 * - cor0.col0 + - 44 FROM tab1 AS cor0
----
-1084
-122
-684

query I rowsort
SELECT + cor0.col0 * col0 + + 53 * - 45 FROM tab0 cor0
----
-1160
-1809
5536

query I rowsort
SELECT ALL + + col1 + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - - cor0.col1 - col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT 57 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT DISTINCT - col0 * + col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT ALL col1 * col2 - + 63 DIV col2 AS col2 FROM tab0 AS cor0
----
2837
34
7462

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL col1 * col2 - + 63 / col2 AS col2 FROM tab0 AS cor0
----
2837
34
7462

query I rowsort
SELECT ALL tab1.col0 * col2 + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + + col1 * - 85 FROM tab0 AS cor0
----
-7310
-7735
-8245

query I rowsort
SELECT ALL + 0 + 23 * + col0 * col1 FROM tab1 AS cor0
----
14720
1794
23920

query I rowsort
SELECT 66 - + col0 * - col2 AS col1 FROM tab0 AS cor0
----
101
7364
858

query I rowsort
SELECT col2 - - 0 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 83 * 79 - - col0 * + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-47517
-6791
-89757

query I rowsort
SELECT ALL 49 * 41 FROM tab0, tab0 AS cor0
----
9 values hashing to 315a1ed332db2c02f92fcde16f953409

query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - 53 * 52 + - tab1.col1 * col0 - - 4 FROM tab1
----
-2830
-3392
-3792

query I rowsort
SELECT DISTINCT + 22 + + 62 * + col0 + col2 FROM tab2
----
483
4884
4958

query I rowsort
SELECT DISTINCT - col2 + + ( 12 ) * col2 AS col0 FROM tab2
----
286
297
418

onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT ALL - col1 DIV col0 + col2 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL - col1 / col0 + col2 FROM tab2
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 98 col1 FROM tab2 cor0
----
60
71
72

query I rowsort
SELECT + col1 + 61 * - col2 AS col1 FROM tab0 AS cor0
----
-1927
-4911
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 * col0 col2 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT DISTINCT + col0 + CAST( 97 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
100
161
177

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT + col0 + CAST ( 97 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
100
161
177

query I rowsort
SELECT - col2 * + cor0.col1 + - col1 + cor0.col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + cor0.col1 * - 4 FROM tab0 AS cor0
----
-344
-364
-388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5165
SELECT + CAST( NULL AS SIGNED ) * 13 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5165
SELECT + CAST ( NULL AS INTEGER ) * 13 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * cor0.col2 + ( + 41 ) col0 FROM tab0 AS cor0
----
1154
6854
77

query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab2, tab1 AS cor0
----
25

query I rowsort
SELECT col1 * cor0.col2 + col1 * col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT + tab0.col1 + - ( - col2 ) AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( col1 ) + cor0.col0 * ( + col1 ) FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT + 74 + - col2 AS col0 FROM tab1 AS cor0
----
-22
17
20

query I rowsort
SELECT ALL ( col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - 18 + - col0 AS col2 FROM tab1 AS cor0
----
-21
-82
-98

query I rowsort
SELECT + ( - col2 ) + - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL - col2 + - col2 AS col0 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT ALL + 3 AS col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5177
SELECT + 79 DIV col1 + ( col1 * - col2 ) FROM tab0 cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5177
SELECT + 79 / col1 + ( col1 * - col2 ) FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT 66 * - col1 + - col0 * + tab0.col1 * tab0.col0 FROM tab0
----
-125227
-55212
-726817

query I rowsort
SELECT DISTINCT - col1 + + tab0.col1 * - col2 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT + + ( + col1 ) + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - 34 * + cor0.col1 FROM tab2 AS cor0
----
-1054
-2006
-578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col2 + + col0 * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col2 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * - col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 + + col1 * col2 * col0 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT + col1 + - 91 * + col0 AS col1 FROM tab0 AS cor0
----
-2098
-3088
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT DISTINCT + cor0.col1 * - CAST( NULL AS SIGNED ) + 31 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT + cor0.col1 * - CAST ( NULL AS INTEGER ) + 31 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 87 - + tab1.col0 AS col2 FROM tab1
----
23
7
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - 84 col0 FROM tab2 AS cor0
----
-2184
-2268
-3192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT - - col0 DIV - 99 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5191
SELECT - - col0 / - 99 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 + + ( + col0 ) * col2 * - col1 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT col2 - + ( col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + + col2 - 49 AS col1 FROM tab1 AS cor0
----
47
5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 - - col0 col0 FROM tab0
----
-46
-57
8

query I rowsort
SELECT DISTINCT col2 - tab0.col1 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL col2 * - col1 - - col0 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT + col2 + + col1 + - col0 AS col0 FROM tab1
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT - tab1.col1 * col0 + col2 DIV - 91 - tab1.col1 * + col2 FROM tab1
----
-1210
-1482
-2289

skipif mysql # not compatible
query I rowsort label-5199
SELECT - tab1.col1 * col0 + col2 / - 91 - tab1.col1 * + col2 FROM tab1
----
-1210
-1482
-2289

query I rowsort
SELECT col1 + tab2.col0 * + 77 AS col0 FROM tab2
----
570
6065
6100

query I rowsort
SELECT - col0 * + col0 + col2 AS col0 FROM tab1
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5202
SELECT - 46 DIV - col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 46 / - col0 FROM tab0
----
0
1
1

query I rowsort
SELECT tab2.col0 + + tab2.col1 - col2 * - tab2.col0 FROM tab2
----
2165
227
3098

query I rowsort
SELECT - col1 * + col1 - ( - col0 ) FROM tab0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-5205
SELECT + cor0.col1 * col2 + ( col0 ) DIV - 33 FROM tab2 AS cor0
----
1532
644
837

skipif mysql # not compatible
query I rowsort label-5205
SELECT + cor0.col1 * col2 + ( col0 ) / - 33 FROM tab2 AS cor0
----
1532
644
837

query I rowsort
SELECT - - col0 - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - cor0.col2 + + 67 * - 64 AS col1 FROM tab2 cor0
----
-4314
-4315
-4326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col1 - - cor0.col1 col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT 87 + + col2 AS col2 FROM tab1
----
141
144
183

query I rowsort
SELECT + ( col1 + - col0 ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col0 * cor0.col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

query I rowsort
SELECT tab1.col1 * + col0 * + 38 AS col0 FROM tab1
----
24320
2964
39520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( tab0.col1 ) col0 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT + col0 * 90 + + col2 * tab2.col0 FROM tab2
----
10112
819
9048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5216
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( + col0 ) * cor0.col2 - 81 FROM tab1 AS cor0
----
3567
7599
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5218
SELECT DISTINCT tab0.col0 + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT tab0.col0 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT + col0 DIV + 14 FROM tab2
----
0
5
5

skipif mysql # not compatible
query I rowsort label-5219
SELECT + col0 / + 14 FROM tab2
----
0
5
5

query I rowsort
SELECT tab1.col0 * ( col1 ) * col2 AS col1 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT tab2.col1 DIV + 99 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT tab2.col1 / + 99 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab1, tab1 AS cor0
----
78

query I rowsort
SELECT - col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5224
SELECT + CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5224
SELECT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col0 + ( tab1.col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT + 81 AS col1 FROM tab0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT + - col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5227
SELECT + - col1 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 63 * col2 FROM tab0 cor0
----
2079
5166
63

query I rowsort
SELECT + 75 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT DISTINCT ( col1 * col1 ) AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT + ( + tab0.col2 + + col0 ) AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT col1 * + col2 * ( - col1 ) + + col0 AS col0 FROM tab1
----
-16144
-36501
-5636

query I rowsort
SELECT ALL col0 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL + + col2 + + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 - - col0 * col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - + 51 * + col1 AS col1 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT DISTINCT - - 76 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-21
-2762
-7386

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5238
SELECT - CAST( - 30 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
-2460
-30
-990

skipif mysql # not compatible
query I rowsort label-5238
SELECT - CAST ( - 30 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT 57 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col2 FROM tab0, tab1 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 col2 FROM tab1, tab2 cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT - col2 * + 30 AS col1 FROM tab0 AS cor0
----
-2460
-30
-990

onlyif mysql # use DIV operator for integer division
query I rowsort label-5243
SELECT + - 20 + + cor0.col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-20
-20
-23

skipif mysql # not compatible
query I rowsort label-5243
SELECT + - 20 + + cor0.col2 / - col0 AS col1 FROM tab2 AS cor0
----
-20
-20
-23

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL 99 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col0 FROM tab2
----
23
23
23

query I rowsort
SELECT ALL 73 FROM tab1, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL 41 * + ( col2 ) AS col1 FROM tab1
----
2214
2337
3936

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT + 81 DIV + 27 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5249
SELECT + 81 / + 27 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT + col1 * + 16 + col2 FROM tab1
----
217
304
470

query I rowsort
SELECT - 59 * - col2 - col0 * col1 FROM tab2
----
-3068
1376
899

query I rowsort
SELECT 42 * tab1.col1 + - col1 FROM tab1
----
1066
410
533

query I rowsort
SELECT DISTINCT ( + col1 ) * tab1.col0 + - col0 * - col2 FROM tab1
----
240
4288
8720

query I rowsort
SELECT DISTINCT col1 * col0 + + col0 AS col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5255
SELECT DISTINCT - tab0.col2 * col0 DIV - ( + col0 ) AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT - tab0.col2 * col0 / - ( + col0 ) AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - 52 * col0 FROM tab0
----
-1248
-1820
-4628

query I rowsort
SELECT DISTINCT - cor0.col1 - ( - col0 + col2 ) FROM tab2 cor0
----
-51
-7
24

query I rowsort
SELECT + - col0 * + 67 - + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1306
-5939
-6760

query I rowsort
SELECT DISTINCT - + col1 + ( 19 ) FROM tab1 AS cor0
----
-7
6
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT + col0 * col2 / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT + col0 * col2 / + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5261
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab0, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT + tab2.col1 * 25 FROM tab2
----
1475
425
775

query I rowsort
SELECT col0 * col2 + col2 AS col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT + + col2 + cor0.col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT col2 + - cor0.col2 * + 13 * col1 - col0 FROM tab0 AS cor0
----
-1295
-36885
-97013

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT - - col2 + - CAST( + col2 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5266
SELECT - - col2 + - CAST ( + col2 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT ALL col1 - + col1 DIV col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL col1 - + col1 / col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - col0 + - col1 * - col1 FROM tab2
----
210
3403
954

query I rowsort
SELECT - col0 - - col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL - col1 * col0 - + col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL - tab2.col0 + + col2 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT + col1 * + col0 + + col2 * + col0 AS col1 FROM tab2
----
406
4345
6630

query I rowsort
SELECT DISTINCT + col1 + - col0 * - cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - col1 * + col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT col0 DIV col1 col2 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5275
SELECT col0 / col1 col2 FROM tab1 AS cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT DISTINCT + col2 + col2 * cor0.col0 DIV + col2 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT + col2 + col2 * cor0.col0 / + col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL col1 * - col0 + + col1 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT DISTINCT col2 * - cor0.col1 + - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT col2 * - cor0.col1 + - col0 / + col0 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

query I rowsort
SELECT ALL + cor0.col1 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT + col1 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * - col1 AS col0 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + col1 * cor0.col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + + cor0.col1 * cor0.col2 + + col1 AS col2 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL OR NOT col0 * + col0 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col0 FROM tab2
----
74
74
74

query I rowsort
SELECT + 27 AS col2 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT - tab0.col2 * col0 + + col1 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col1 FROM tab1
----
42

query I rowsort
SELECT ALL - 12 AS col2 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - - 64 * + col1 AS col0 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT 98 * col1 AS col2 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT DISTINCT - col1 * col1 * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col0 - + col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 - - col2 * + col2 FROM tab0 AS cor0
----
-61
1027
6722

query I rowsort
SELECT ALL 78 AS col1 FROM tab0
----
78
78
78

query I rowsort
SELECT + col1 + col2 + - col1 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col2 * + 37 + 26 * col1 col1 FROM tab0 AS cor0
----
-586
1048
2486

query I rowsort
SELECT - col0 * col0 - ( + cor0.col2 * col0 ) FROM tab2 AS cor0
----
-238
-8112
-9243

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5304
SELECT 55 * cor0.col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT 55 * cor0.col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * + col2 + 96 FROM tab1 AS cor0
----
3012
3345
9312

query I rowsort
SELECT ALL - 8 * - col0 AS col0 FROM tab2 AS cor0
----
56
624
632

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5307
SELECT - + 72 * col2 - + CAST( 72 AS SIGNED ) * - cor0.col0 FROM tab0 AS cor0
----
-648
2448
504

skipif mysql # not compatible
query I rowsort label-5307
SELECT - + 72 * col2 - + CAST ( 72 AS INTEGER ) * - cor0.col0 FROM tab0 AS cor0
----
-648
2448
504

query I rowsort
SELECT - col0 * col2 + - col1 + - col0 AS col0 FROM tab1
----
-191
-3722
-7773

query I rowsort
SELECT - 52 * + 0 + col0 * ( + ( + col0 ) ) * - tab1.col1 + 53 * tab1.col2 * tab1.col1 AS col2 FROM tab1
----
-10750
-17056
74178

query I rowsort
SELECT ALL + 18 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT ALL col0 - - col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT - 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL + cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 30 + - cor0.col2 FROM tab1 AS cor0
----
-24
-27
-66

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * + col2 + + col2 * - col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) * - 46 col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-5317
SELECT DISTINCT - col2 * col0 DIV ( - col0 ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT - col2 * col0 / ( - col0 ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 * - ( - ( tab0.col0 ) ) col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + - col2 - - 14 AS col1 FROM tab0 AS cor0
----
-19
-68
13

query I rowsort
SELECT - cor0.col2 * + 87 + + col0 AS col0 FROM tab2 AS cor0
----
-2184
-2342
-3227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 32 * 67 col1 FROM tab1 AS cor0
----
-2064
-2080
-2141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * col0 + + col0 col2 FROM tab1
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * col2 col2 FROM tab2 AS cor0
----
2210
2295
3230

onlyif mysql # use DIV operator for integer division
query I rowsort label-5324
SELECT ALL + + 22 DIV col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + + 22 / col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT - - col0 DIV - 20 FROM tab1 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT - - col0 / - 20 FROM tab1 AS cor0
----
-3
-4
0

query I rowsort
SELECT DISTINCT - ( + 22 + col1 ) AS col1 FROM tab2
----
-39
-53
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5327
SELECT CAST( + col2 AS SIGNED ) * col0 + + ( + col0 ) * tab1.col0 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT CAST ( + col2 AS INTEGER ) * col0 + + ( + col0 ) * tab1.col0 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + - ( col2 ) + col2 * + 93 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT - 94 * + col1 AS col1 FROM tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT DISTINCT + 77 * - col0 + col2 * - cor0.col1 AS col2 FROM tab2 cor0
----
-1376
-6729
-7540

query I rowsort
SELECT ( + cor0.col1 ) + + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - col2 + - col0 * 53 AS col2 FROM tab1 AS cor0
----
-213
-3449
-4336

query I rowsort
SELECT ALL col0 - - tab0.col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT - 93 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT + ( - col2 ) * - ( 75 ) FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT DISTINCT cor0.col0 + - 30 FROM tab0 AS cor0
----
-6
5
59

query I rowsort
SELECT ALL + - col1 + + 32 FROM tab0 AS cor0
----
-54
-59
-65

query I rowsort
SELECT ALL col1 * + ( col0 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT - col0 * 61 FROM tab2 AS cor0
----
-427
-4758
-4819

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 * + col0 - + ( + col2 ) FROM tab0 cor0
----
1259
1335
15137

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5342
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5343
SELECT ALL - col2 * + tab2.col1 DIV col1 AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - col2 * + tab2.col1 / col1 AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT cor0.col0 + + ( - cor0.col0 ) AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT + cor0.col2 DIV col1 - - col2 AS col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-5345
SELECT + cor0.col2 / col1 - - col2 AS col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT + col0 + + 63 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT - col1 + - 16 AS col1 FROM tab0 AS cor0
----
-102
-107
-113

query I rowsort
SELECT DISTINCT - 28 FROM tab2, tab2 AS cor0
----
-28

query I rowsort
SELECT + + col0 + + 45 AS col2 FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col1 * col0 + - 5 AS col1 FROM tab0 AS cor0
----
2145
3487
8185

query I rowsort
SELECT DISTINCT - col1 * - col0 + cor0.col2 - col0 FROM tab0 AS cor0
----
2073
3361
8092

query I rowsort
SELECT ALL - col1 + + col0 AS col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT - col0 + - 21 AS col2 FROM tab0 AS cor0
----
-110
-45
-56

query I rowsort
SELECT DISTINCT - + ( - col1 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 - - cor0.col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT 77 + col1 * col0 FROM tab0 AS cor0
----
2141
3472
8176

query I rowsort
SELECT + col0 * col0 * - 12 + + col2 FROM tab1
----
-49095
-54
-76704

query I rowsort
SELECT ALL + 51 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT 43 + col1 AS col1 FROM tab2 cor0
----
102
60
74

query I rowsort
SELECT - + 23 * col2 AS col0 FROM tab2 AS cor0
----
-598
-621
-874

onlyif mysql # use DIV operator for integer division
query I rowsort label-5362
SELECT ALL col2 DIV - 37 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL col2 / - 37 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT - 34 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - - col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5365
SELECT DISTINCT - 59 DIV - tab0.col2 FROM tab0
----
0
1
59

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT - 59 / - tab0.col2 FROM tab0
----
0
1
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5366
SELECT DISTINCT - + col2 * - 91 + 25 + + cor0.col1 * 6 DIV 4 FROM tab1 AS cor0
----
4978
5227
8780

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - + col2 * - 91 + 25 + + cor0.col1 * 6 / 4 FROM tab1 AS cor0
----
4978
5227
8780

query I rowsort
SELECT DISTINCT col2 * - ( + col1 ) - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL col0 + - col0 * 22 * - col2 AS col2 FROM tab1 AS cor0
----
169040
3567
80320

query I rowsort
SELECT DISTINCT col0 * - 69 AS col0 FROM tab1 AS cor0
----
-207
-4416
-5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT ALL - + col0 + col2 DIV + 2 AS col2 FROM tab2 AS cor0
----
-60
-65
6

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - + col0 + col2 / + 2 AS col2 FROM tab2 AS cor0
----
-60
-65
6

query I rowsort
SELECT + ( col1 ) * 67 * + col0 - col1 * col1 AS col2 FROM tab1
----
42780
4550
69511

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5373
SELECT + col1 + tab2.col1 * - tab2.col0 - col1 DIV 98 FROM tab2
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-5373
SELECT + col1 + tab2.col1 * - tab2.col0 - col1 / 98 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT - col2 * 29 FROM tab1
----
-1566
-1653
-2784

query I rowsort
SELECT ALL - col0 + 67 * col0 AS col0 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT ALL col0 + col2 + ( col1 + + col0 ) FROM tab0 AS cor0
----
167
168
351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT col1 * - 73 + 87 * + col1 + + col2 AS col1 FROM tab2 cor0
----
276
461
852

query I rowsort
SELECT + col1 + 36 + col1 AS col0 FROM tab1 AS cor0
----
56
62
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 98 + col0 col1 FROM tab0 AS cor0
----
146
168
276

query I rowsort
SELECT ALL - cor0.col0 + col2 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5383
SELECT DISTINCT col0 * + CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT col0 * + CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - col2 * - col0 + + col1 AS col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + - cor0.col1 * ( + col0 ) * + col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - - col2 + 43 * + col1 * col0 AS col2 FROM tab1 cor0
----
27577
3408
44816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT ALL col1 DIV - col1 + tab1.col0 AS col1 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL col1 / - col1 + tab1.col0 AS col1 FROM tab1
----
2
63
79

query I rowsort
SELECT ( cor0.col1 ) * - 28 AS col0 FROM tab1 AS cor0
----
-280
-364
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab0 AS cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * col2 + col2 col2 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT ALL - + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT 40 * col0 * 82 AS col0 FROM tab1 AS cor0
----
209920
262400
9840

query I rowsort
SELECT 65 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT ALL + - col1 - col0 FROM tab0 cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5396
SELECT ALL - 66 + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - 66 + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 17 * - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1431
-375
-594

query I rowsort
SELECT + col2 * tab1.col0 * - col2 AS col2 FROM tab1 WHERE NOT col2 NOT BETWEEN col0 AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT DISTINCT tab1.col2 - tab1.col0 DIV col2 FROM tab1
----
54
56
96

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT tab1.col2 - tab1.col0 / col2 FROM tab1
----
54
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5401
SELECT col1 + col2 DIV - col2 AS col1 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5401
SELECT col1 + col2 / - col2 AS col1 FROM tab0
----
85
90
96

query I rowsort
SELECT DISTINCT col0 + col2 + + col2 AS col2 FROM tab1
----
111
178
272

query I rowsort
SELECT + col1 * - col2 * col1 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT ALL col0 DIV - col1 + + tab2.col2 * col2 + - tab2.col0 AS col2 FROM tab2
----
1361
597
722

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL col0 / - col1 + + tab2.col2 * col2 + - tab2.col0 AS col2 FROM tab2
----
1361
597
722

query I rowsort
SELECT col1 * + col1 * + col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT - col0 * col1 * + col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - + cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT + col2 * col1 DIV - col0 AS col1 FROM tab2 cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-5408
SELECT + col2 * col1 / - col0 AS col1 FROM tab2 cor0
----
-119
-19
-8

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 + col1 col2 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL col0 * - col1 + col1 * col1 AS col2 FROM tab2 cor0
----
-1054
-1121
744

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 * - col1 FROM tab0 WHERE NOT NULL = col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT col0 <> ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT + tab0.col1 DIV col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5417
SELECT + tab0.col1 / col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL tab0.col1 - col1 * - col2 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col0 / col1 + - col2 * col2 FROM tab0 WHERE NULL IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN + col0 - - col0 AND NULL
----

query I rowsort
SELECT col1 * ( 1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT col1 * + 3 + - 93 AS col0 FROM tab1 AS cor0
----
-15
-54
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT ALL - + col0 * col0 + + 65 DIV col0 AS col1 FROM tab0 AS cor0
----
-1224
-574
-7921

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - + col0 * col0 + + 65 / col0 AS col1 FROM tab0 AS cor0
----
-1224
-574
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - ( + 57 ) col0 FROM tab1 AS cor0
----
-121
-137
-60

query I rowsort
SELECT col0 + - ( ( - col1 ) ) * col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - - col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT DISTINCT tab2.col1 DIV 35 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT tab2.col1 / 35 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col0 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - cor1.col0 * 6 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-18
-384
-480

query I rowsort
SELECT + 97 + - col0 FROM tab1 AS cor0
----
17
33
94

query I rowsort
SELECT + - ( cor0.col2 ) + + col0 * + 86 FROM tab2 AS cor0
----
575
6682
6756

query I rowsort
SELECT ALL 96 - - cor0.col2 FROM tab0 AS cor0
----
129
178
97

query I rowsort
SELECT DISTINCT - 44 * + col2 * - col2 + + col2 FROM tab2
----
29770
32103
63574

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5438
SELECT ( col0 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ( col0 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 48 * cor0.col2 - - 95 AS col2 FROM tab0 AS cor0
----
-1489
-3841
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT ALL cor0.col0 DIV col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL cor0.col0 / col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-58
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 - ( + 82 + col0 ) * + col2 col2 FROM tab0 AS cor0
----
-22121
-3512
-5562

onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT + - col0 - + col2 DIV - col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-5442
SELECT + - col0 - + col2 / - col0 FROM tab0 AS cor0
----
-23
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5443
SELECT + col2 DIV + CAST( col0 AS SIGNED ) + col1 * + col2 FROM tab2 cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-5443
SELECT + col2 / + CAST ( col0 AS INTEGER ) + col1 * + col2 FROM tab2 cor0
----
1534
646
840

query I rowsort
SELECT - col1 + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT + col2 + - ( + col0 ) + col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5446
SELECT ALL + col1 DIV + col0 - + col1 AS col2 FROM tab2 cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + col1 / + col0 - + col1 AS col2 FROM tab2 cor0
----
-17
-27
-59

query I rowsort
SELECT cor0.col1 * + col1 + - 12 FROM tab2 cor0
----
277
3469
949

query I rowsort
SELECT DISTINCT - 98 + + col0 AS col2 FROM tab2
----
-19
-20
-91

query I rowsort
SELECT - col1 * ( 60 ) AS col2 FROM tab0 AS cor0
----
-5160
-5460
-5820

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5451
SELECT + - col0 + - col2 DIV + 95 FROM tab1 AS cor0
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-5451
SELECT + - col0 + - col2 / + 95 FROM tab1 AS cor0
----
-3
-64
-81

query I rowsort
SELECT col1 * + col1 + + ( + col2 ) - col1 FROM tab2 cor0
----
310
3448
957

query I rowsort
SELECT - + cor0.col0 + col0 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + col0 col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5455
SELECT ( - col0 ) + - 77 * col1 DIV - col0 - col1 * + col2 FROM tab1 cor0
----
-1316
-622
-740

skipif mysql # not compatible
query I rowsort label-5455
SELECT ( - col0 ) + - 77 * col1 / - col0 - col1 * + col2 FROM tab1 cor0
----
-1316
-622
-740

query I rowsort
SELECT 75 * + 43 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16cbcb21bc207cb5ebab31e847c58c0d

query I rowsort
SELECT ALL + 48 + - col1 AS col2 FROM tab0 AS cor0
----
-38
-43
-49

query I rowsort
SELECT ALL - - 62 AS col2 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT cor0.col1 * - 84 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 51002eaedb8c46c2003d6b8e1630bd2e

query I rowsort
SELECT 26 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5461
SELECT ALL CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5462
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT - CAST ( NULL AS REAL ) + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 2 * col1 + col0 + col1 AS col1 FROM tab1 AS cor0
----
119
81
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5464
SELECT ALL + CAST( + col0 AS SIGNED ) + - col1 AS col1 FROM tab0 cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + CAST ( + col0 AS INTEGER ) + - col1 AS col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + ( col0 ) * - col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT cor1.col0 * - cor1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-1040
-640
-78

query I rowsort
SELECT ALL ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT 66 * 94 FROM tab0 AS cor0
----
6204
6204
6204

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT DISTINCT - 97 DIV col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - 97 / col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - + col0 + ( col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 23 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5473
SELECT DISTINCT + 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-5473
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5474
SELECT CAST( NULL AS SIGNED ) + - col1 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT CAST ( NULL AS INTEGER ) + - col1 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - col0 * + ( - col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT - - cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 80 * col2 AS col2 FROM tab0 AS cor0
----
2640
6560
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5478
SELECT col0 * + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT col0 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 11 * col1 FROM tab2
----
187
341
649

query I rowsort
SELECT - 59 + 66 * - col1 AS col1 FROM tab1
----
-1775
-719
-917

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + cor0.col1 * cor0.col1 + col2 FROM tab2 AS cor0
----
-2675
1479
799

query I rowsort
SELECT ALL - - cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5483
SELECT - + col1 + CAST( col0 + col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1163
1282
15128

skipif mysql # not compatible
query I rowsort label-5483
SELECT - + col1 + CAST ( col0 + col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1163
1282
15128

query I rowsort
SELECT ALL - - col2 * 62 AS col0 FROM tab2 AS cor0
----
1612
1674
2356

query I rowsort
SELECT - 82 + cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 5a08b691b28a79c581804c76db70d5bd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5486
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + 84 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + 84 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 + 25 * - 49 + - col0 FROM tab0 AS cor0
----
-1225

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5488
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + cor0.col2 * - col0 + cor0.col0 * + 29 AS col2 FROM tab0 AS cor0
----
-120
-4806
945

query I rowsort
SELECT DISTINCT + col0 * col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col2 * + ( + col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 45 + col2 AS col2 FROM tab1
----
102
141
99

query I rowsort
SELECT - 61 + + col1 * ( col1 ) FROM tab1
----
108
39
615

query I rowsort
SELECT DISTINCT + col0 * col2 * col0 + col1 AS col1 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT ALL - col1 + ( + tab0.col0 ) * tab0.col1 AS col1 FROM tab0
----
1978
3298
8008

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

onlyif mysql # use DIV operator for integer division
query I rowsort label-5497
SELECT - col1 DIV - 42 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5497
SELECT - col1 / - 42 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col2 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5499
SELECT - + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT - + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 40 * col2 AS col2 FROM tab0
----
-1320
-3280
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col0 FROM tab0
----
-82

query I rowsort
SELECT + 47 + + col0 FROM tab2
----
125
126
54

query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-51

query I rowsort
SELECT ALL + + 36 * col0 * col0 + col1 FROM tab0 AS cor0
----
20822
285247
44197

query I rowsort
SELECT ALL + 2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT - + 73 + col1 AS col0 FROM tab2 AS cor0
----
-14
-42
-56

query I rowsort
SELECT col2 + ( col0 ) * col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT DISTINCT - col0 DIV col0 + + col0 * col1 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - col0 / col0 + + col0 * col1 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT ALL cor0.col1 * ( col2 ) - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT col0 * + 14 AS col0 FROM tab2 cor0
----
1092
1106
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5511
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + - col2 * + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + - col2 * + col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - tab0.col1 * + col1 + 22 FROM tab0
----
-7374
-8259
-9387

query I rowsort
SELECT ALL - 81 FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT DISTINCT + - ( + col0 ) + + col1 DIV - 78 col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + - ( + col0 ) + + col1 / - 78 col1 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT DISTINCT - ( + 51 ) * col0 + - col2 * 18 DIV col1 + 4 * col0 * col2 AS col1 FROM tab1 AS cor0
----
11226
26508
458

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT - ( + 51 ) * col0 + - col2 * 18 / col1 + 4 * col0 * col2 AS col1 FROM tab1 AS cor0
----
11226
26508
458

query I rowsort
SELECT ALL - cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - 45 + - ( col1 ) * col0 FROM tab1 AS cor0
----
-1085
-123
-685

query I rowsort
SELECT + - 49 - col2 * - col0 AS col0 FROM tab0 AS cor0
----
-14
7249
743

query I rowsort
SELECT - ( + col2 ) - col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL col1 - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5522
SELECT ( 3 ) * col2 + 89 DIV + col2 FROM tab1 cor0
----
163
172
288

skipif mysql # not compatible
query I rowsort label-5522
SELECT ( 3 ) * col2 + 89 / + col2 FROM tab1 cor0
----
163
172
288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5523
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 14 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 14 + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5524
SELECT ALL - + CAST( NULL AS SIGNED ) + 27 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-5524
SELECT ALL - + CAST ( NULL AS INTEGER ) + 27 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5525
SELECT ALL - col2 - + col0 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - col2 - + col0 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-58
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5526
SELECT - CAST( - 74 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-5526
SELECT - CAST ( - 74 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT - 95 * - 89 AS col2 FROM tab2 cor0
----
8455

query I rowsort
SELECT ALL + ( col1 ) + - col1 * 54 + col0 AS col2 FROM tab0 AS cor0
----
-4534
-4734
-5106

query I rowsort
SELECT ALL - 96 - col2 FROM tab0 AS cor0
----
-129
-178
-97

query I rowsort
SELECT - 62 + + col2 FROM tab1 AS cor0
----
-5
-8
34

query I rowsort
SELECT col1 * + 72 FROM tab2
----
1224
2232
4248

query I rowsort
SELECT DISTINCT 10 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
10

query I rowsort
SELECT + - 63 + + col0 + ( 48 ) FROM tab1 AS cor0
----
-12
49
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT + 32 + cor0.col1 + - col0 * col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
180
221
3524

skipif mysql # not compatible
query I rowsort label-5534
SELECT + 32 + cor0.col1 + - col0 * col1 / - col2 AS col2 FROM tab0 AS cor0
----
180
221
3524

query I rowsort
SELECT 64 + col1 + + col0 * col0 FROM tab1 AS cor0
----
4170
6477
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT - tab2.col0 DIV + 83 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5536
SELECT - tab2.col0 / + 83 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 + 57 FROM tab0, tab0 AS cor0, tab2 cor1
----
139
58
90

query I rowsort
SELECT DISTINCT ( 67 ) AS col1 FROM tab1
----
67

query I rowsort
SELECT - col1 * col0 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + + col1 * - col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + col1 * - cor0.col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5542
SELECT col1 * cor0.col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT col1 * cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + col1 * - col2 AS col0 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + ( + 35 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT col1 + - 94 FROM tab0 AS cor0
----
-3
-8
3

query I rowsort
SELECT 10 * + 80 FROM tab1
----
800
800
800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5548
SELECT DISTINCT CAST( col2 AS SIGNED ) * col2 AS col1 FROM tab2
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col2 AS col1 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * col0 col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - col2 * + 43 AS col2 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT - col0 * col2 * cor0.col1 - 36 FROM tab0 cor0
----
-3431
-664154
-68148

query I rowsort
SELECT - col0 * - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
96

query I rowsort
SELECT DISTINCT + 15 FROM tab0, tab1 AS cor0
----
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5555
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - col1 + + 18 AS col1 FROM tab1 AS cor0
----
1266
1422
588

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5557
SELECT ALL CAST( 33 AS SIGNED ) FROM tab1
----
33
33
33

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL CAST ( 33 AS INTEGER ) FROM tab1
----
33
33
33

query I rowsort
SELECT - ( ( - col1 ) ) FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5559
SELECT ALL + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab0, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + 46 + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c072a3156883c434f8b49cdb0c025c1d

query I rowsort
SELECT - col1 + - ( col1 ) - ( col2 ) FROM tab0
----
-195
-205
-264

query I rowsort
SELECT - + col1 * - col0 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab2, tab1 AS cor0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT + cor0.col1 DIV - col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5565
SELECT + cor0.col1 / - col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT DISTINCT - 54 + - cor0.col2 DIV ( 45 ) AS col1 FROM tab1 AS cor0
----
-55
-56

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - 54 + - cor0.col2 / ( 45 ) AS col1 FROM tab1 AS cor0
----
-55
-56

query I rowsort
SELECT - 46 + + col0 AS col0 FROM tab2 AS cor0
----
-39
32
33

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col0 + 92 FROM tab2 AS cor0
----
-125
-1251
-4510

query I rowsort
SELECT DISTINCT 1 * + col1 + ( - cor0.col0 ) * - cor0.col0 AS col2 FROM tab2 cor0
----
6143
6258
80

query I rowsort
SELECT col0 * + 21 AS col1 FROM tab2
----
147
1638
1659

query I rowsort
SELECT DISTINCT + + col0 - - col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + col0 * + col2 + - col0 * col0 FROM tab2 cor0
----
-3239
-4056
140

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT DISTINCT col2 DIV col0 + col0 * col1 col1 FROM tab2
----
1343
220
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT col2 / col0 + col0 * col1 col1 FROM tab2
----
1343
220
4602

query I rowsort
SELECT DISTINCT col2 + col1 * - 42 AS col2 FROM tab0
----
-3579
-3740
-4073

query I rowsort
SELECT 9 + - col1 FROM tab0
----
-77
-82
-88

query I rowsort
SELECT DISTINCT - 15 AS col0 FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - 20 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT ALL + col0 + cor0.col0 - ( col2 ) AS col0 FROM tab0 cor0
----
15
69
96

query I rowsort
SELECT DISTINCT + col0 * col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col0 * 54 + cor0.col1 AS col1 FROM tab2 AS cor0
----
409
4271
4283

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5584
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col1 + - col1 col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL col0 + 14 + col0 FROM tab2 AS cor0
----
170
172
28

query I rowsort
SELECT DISTINCT cor0.col1 * + 1 + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + cor0.col0 - + 0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col1 * + 72 * - 54 + + cor0.col2 * + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-121851
-303254
-387576

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * 73 col2 FROM tab2 AS cor0
----
-1898
-1971
-2774

query I rowsort
SELECT col1 * - col2 - col2 AS col0 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT + tab0.col2 + tab0.col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - cor1.col1 * 60 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to db2aa951231b8211170a7ecf72b75b55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + + tab1.col2 col2 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT col1 + - 76 * 79 * - col2 AS col1 FROM tab2 cor0
----
156163
162139
228169

query I rowsort
SELECT ALL 51 + col0 * col0 * 35 FROM tab2
----
1766
212991
218486

query I rowsort
SELECT DISTINCT + + ( + col2 ) * col0 - 50 FROM tab2 AS cor0
----
139
1978
2952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( cor0.col2 ) col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - ( + col2 ) - - col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL 4 + + col0 * + col0 + col1 FROM tab2 AS cor0
----
6147
6262
84

query I rowsort
SELECT 5 * - ( + cor0.col2 ) + - col1 + - col0 FROM tab1 AS cor0
----
-299
-359
-573

query I rowsort
SELECT DISTINCT - + ( col2 ) - + cor0.col0 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT + 67 + col1 + + col0 FROM tab0 cor0
----
177
199
247

onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT - ( + col1 ) DIV - col0 - 85 * + col0 AS col0 FROM tab0 AS cor0
----
-2037
-2973
-7564

skipif mysql # not compatible
query I rowsort label-5605
SELECT - ( + col1 ) / - col0 - 85 * + col0 AS col0 FROM tab0 AS cor0
----
-2037
-2973
-7564

query I rowsort
SELECT DISTINCT + col2 * ( col0 * col2 ) FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT DISTINCT + tab0.col2 DIV + 96 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT + tab0.col2 / + 96 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT DISTINCT - col1 + - col0 * col1 DIV + ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT - col1 + - col0 * col1 / + ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + + cor0.col0 + + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + 90 * + cor0.col1 FROM tab1 AS cor0
----
1170
2340
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ( col0 ) * 48 + col1 + + col1 FROM tab1 AS cor0
----
196
3092
3866

onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT 69 DIV 94 + col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5614
SELECT 69 / 94 + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + col2 * 0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col0 * + tab0.col2 AS col2 FROM tab0
----
-131
-7307
-845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 32 + + cor0.col2 col0 FROM tab2 AS cor0
----
-5
-6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 54 col0 FROM tab1
----
-3
-42
0

query I rowsort
SELECT - col2 * - 31 FROM tab2
----
1178
806
837

query I rowsort
SELECT DISTINCT col2 * tab0.col1 + 91 FROM tab0
----
188
2929
7553

query I rowsort
SELECT ALL ( + col1 ) * - col0 + 60 AS col2 FROM tab1 AS cor0
----
-18
-580
-980

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 col0 * - 4 AS col1 FROM tab2 AS cor0
----
-28
-312
-316

query I rowsort
SELECT - col1 * cor0.col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT col1 * - 2 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5626
SELECT ALL - cor0.col2 + col2 DIV col0 col0 FROM tab2 AS cor0
----
-24
-26
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - cor0.col2 + col2 / col0 col0 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT - - 10 * 59 FROM tab1 AS cor0
----
590
590
590

query I rowsort
SELECT DISTINCT 52 + - col2 AS col1 FROM tab0 AS cor0
----
-30
19
51

query I rowsort
SELECT ALL + - ( - cor0.col0 ) * - col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col0 + + 16 AS col1 FROM tab1 AS cor0
----
19
80
96

query I rowsort
SELECT DISTINCT - col2 * col0 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT - + cor0.col1 DIV col2 + col0 AS col2 FROM tab0 cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-5632
SELECT - + cor0.col1 / col2 + col0 AS col2 FROM tab0 cor0
----
-62
22
88

query I rowsort
SELECT col1 + col0 * - ( col1 ) FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5635
SELECT col2 + col0 DIV - 63 FROM tab1
----
54
56
95

skipif mysql # not compatible
query I rowsort label-5635
SELECT col2 + col0 / - 63 FROM tab1
----
54
56
95

query I rowsort
SELECT ALL - 25 * col0 AS col1 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT cor0.col0 * col1 + 1 * + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5638
SELECT ALL - - col2 DIV col0 - - 62 AS col0 FROM tab2 AS cor0
----
62
62
65

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL - - col2 / col0 - - 62 AS col0 FROM tab2 AS cor0
----
62
62
65

query I rowsort
SELECT 94 AS col2 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5640
SELECT ALL + col1 + col2 - + col2 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
110
67
98

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL + col1 + col2 - + col2 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
110
67
98

query I rowsort
SELECT + - cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * col0 + - 93 FROM tab1 AS cor0
----
-15
547
947

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT + col0 DIV - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT + col0 / - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT col2 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5645
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 - + col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT 68 - + col1 * - 76 FROM tab0
----
6604
6984
7440

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 + + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 47 col2 FROM tab1, tab2 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT col1 * - ( + cor0.col0 ) + - col2 FROM tab1 cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5652
SELECT col2 DIV - 72 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT col2 / - 72 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT col1 + - 47 AS col2 FROM tab1 AS cor0
----
-21
-34
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - ( - col1 + col1 ) col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col1 * ( - col2 + + col1 * 44 ) FROM tab0 AS cor0
----
-322586
-356902
-413899

query I rowsort
SELECT 92 * - ( col1 ) FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT + - 1 * col0 AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - ( - 5 ) FROM tab1 AS cor0
----
5
5
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5659
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + col2 * - col1 + ( + col0 + col1 * col1 ) col0 FROM tab1 AS cor0
----
-402
-721
-995

query I rowsort
SELECT 52 + + ( - col1 ) FROM tab2
----
-7
21
35

query I rowsort
SELECT + col1 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT 31 * - tab2.col1 FROM tab2
----
-1829
-527
-961

query I rowsort
SELECT ALL - 83 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT 3 * + col0 AS col1 FROM tab0 cor0
----
105
267
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT ALL - 8 + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL - 8 + col0 / - col0 AS col1 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - col0 + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT 11 * - col1 + + cor0.col1 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT + 74 * - col2 + - col1 FROM tab1 AS cor0
----
-4022
-4228
-7117

query I rowsort
SELECT - 13 * col0 FROM tab1 AS cor0
----
-1040
-39
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 + col1 col1 FROM tab2 AS cor0
----
-29
-57
-71

query I rowsort
SELECT DISTINCT 58 * + col1 FROM tab1 cor0
----
1508
580
754

query I rowsort
SELECT - + 5 * col0 + cor0.col2 AS col2 FROM tab2 cor0
----
-357
-364
-8

query I rowsort
SELECT ALL 85 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT + 39 * - ( col2 ) * 45 FROM tab1
----
-100035
-168480
-94770

onlyif mysql # use DIV operator for integer division
query I rowsort label-5676
SELECT DISTINCT tab2.col1 DIV - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
-10
-19
-5
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT tab2.col1 / - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
-10
-19
-5
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5677
SELECT DISTINCT - col1 * col1 + + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT - col1 * col1 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col0 - col0 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col2 - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + ( + col0 ) + + 11 FROM tab1 AS cor0
----
14
75
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT DISTINCT + col0 DIV - col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT + col0 / - col2 FROM tab1 cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT ALL col2 DIV col1 + col2 * cor0.col2 DIV ( 25 * + col1 ) FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL col2 / col1 + col2 * cor0.col2 / ( 25 * + col1 ) FROM tab2 AS cor0
----
0
0
5

query I rowsort
SELECT DISTINCT col1 - - ( ( + cor0.col2 ) + + ( col1 ) ) FROM tab2 AS cor0
----
144
72
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 - 77 * col2 AS col0 FROM tab2 AS cor0
----
-1976
-2052
-2888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - - cor0.col1 * 48 * + col1 AS col1 FROM tab1 AS cor0
----
32448
4800
8112

query I rowsort
SELECT - cor0.col0 + - 93 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 27989a7319f7b587c757d2547c712c5b

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab0, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 13 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab1, tab1 AS cor0
----
11

query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - tab0.col0 * - col1 * tab0.col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT 36 - cor0.col0 FROM tab2 AS cor0
----
-42
-43
29

query I rowsort
SELECT + - cor0.col2 + + col1 + - col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT + 42 * col2 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT ALL - ( tab0.col2 ) * col0 + 6 * + col1 FROM tab0
----
-276
-6752
547

query I rowsort
SELECT - cor0.col2 * - 51 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to f84a446af717583637654043eeb3cb87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT DISTINCT - col2 DIV - col0 + col1 * - 22 * tab2.col0 + - col2 * + 16 FROM tab2
----
-101660
-30154
-5203

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT - col2 / - col0 + col1 * - 22 * tab2.col0 + - col2 * + 16 FROM tab2
----
-101660
-30154
-5203

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - col2 + tab1.col1 * + col2 + col2 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col1 + + col1 * + 51 + + col2 * + col1 FROM tab2
----
1530
2449
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 + + col2 col0 FROM tab2
----
-11
-111
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT + col0 DIV - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT + col0 / - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + col2 + col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL 94 * + col0 FROM tab1 cor0
----
282
6016
7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ( 16 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL - col0 * - ( col0 ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL col0 * 13 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
2450
26286
38947

onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT ALL - - col2 + + ( + col1 ) * col0 DIV col1 col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL - - col2 + + ( + col1 ) * col0 / col1 col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 col0 FROM tab1 cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5716
SELECT DISTINCT - ( col1 ) DIV col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT - ( col1 ) / col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - ( col1 ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT ALL cor0.col2 + col0 DIV col1 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL cor0.col2 + col0 / col1 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + ( cor0.col2 ) * + col2 - + cor0.col1 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT - 61 * col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
-375
-390
-7

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 61 * col0 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
-375
-390
-7

query I rowsort
SELECT ALL + col2 + 82 AS col2 FROM tab0 AS cor0
----
115
164
83

query I rowsort
SELECT DISTINCT + - col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ( col2 ) * - col2 - + 22 * col1 * col2 AS col1 FROM tab2 AS cor0
----
-15656
-19143
-34424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( col1 ) ) + ( - ( - cor0.col2 ) ) col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * cor0.col2 - col1 col0 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT - + col0 * - 45 + - col0 FROM tab1 AS cor0
----
132
2816
3520

onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT + col0 DIV + 60 + col0 AS col2 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-5728
SELECT + col0 / + 60 + col0 AS col2 FROM tab0 AS cor0
----
24
35
90

query I rowsort
SELECT ALL - 60 - col0 AS col2 FROM tab0 AS cor0
----
-149
-84
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5730
SELECT + CAST( NULL AS SIGNED ) + - cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5731
SELECT DISTINCT - col1 * - 42 + cor0.col0 + - CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT - col1 * - 42 + cor0.col0 + - CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5732
SELECT ALL + - col1 * col1 + + col1 DIV col1 FROM tab2 cor0
----
-288
-3480
-960

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + - col1 * col1 + + col1 / col1 FROM tab2 cor0
----
-288
-3480
-960

query I rowsort
SELECT + col0 - 34 AS col1 FROM tab2
----
-27
44
45

query I rowsort
SELECT DISTINCT - col0 + 74 AS col1 FROM tab0 AS cor0
----
-15
39
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT ALL + - col2 + - ( col1 ) DIV + col0 col2 FROM tab1 AS cor0
----
-57
-62
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + - col2 + - ( col1 ) / + col0 col2 FROM tab1 AS cor0
----
-57
-62
-96

query I rowsort
SELECT 77 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
4158
4389
7392

onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT DISTINCT CAST( 85 AS SIGNED ) DIV + col2 FROM tab0 AS cor0
----
1
2
85

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT CAST ( 85 AS INTEGER ) / + col2 FROM tab0 AS cor0
----
1
2
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5738
SELECT + CAST( 48 AS SIGNED ) * + col2 AS col1 FROM tab0 cor0
----
1584
3936
48

skipif mysql # not compatible
query I rowsort label-5738
SELECT + CAST ( 48 AS INTEGER ) * + col2 AS col1 FROM tab0 cor0
----
1584
3936
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col0 * - col2 + - col0 * + col2 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + col0 col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT tab1.col0 AS col1 FROM tab1 WHERE NOT NULL = - col0
----

query I rowsort
SELECT col1 + - col1 * - tab2.col0 AS col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT col2 - col1 * col0 AS col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT + col0 * tab1.col0 * col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT col0 * + tab0.col1 + col0 AS col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT col2 + - col2 DIV - col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5747
SELECT col2 + - col2 / - col1 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col0 * col2 - + col0 AS col1 FROM tab0
----
0
7209
768

query I rowsort
SELECT - col1 + - col2 FROM tab0 WHERE + col1 + - col2 IN ( + col1 * col0 )
----

query I rowsort
SELECT col0 FROM tab2 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - col1 * col2 + - col1 * - tab2.col0 FROM tab2
----
-620
3068
697

query I rowsort
SELECT + tab1.col0 FROM tab1 WHERE NOT + col2 * + col0 IN ( + col0 )
----
3
64
80

query I rowsort
SELECT tab0.col1 * + col1 + + col0 AS col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT + + col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - tab0.col1 * + tab0.col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL = ( col1 * - col1 )
----

query I rowsort
SELECT + + col2 * + col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - col1 + + col0 * - col0 * cor0.col0 FROM tab0 AS cor0
----
-13910
-42972
-705060

query I rowsort
SELECT DISTINCT - col0 * + col0 * col2 AS col2 FROM tab1 cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - cor0.col2 * - cor0.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 02081120b66025475df9f31f465bcbe4

query I rowsort
SELECT - col1 * 75 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT + col0 + 78 AS col0 FROM tab2 AS cor0
----
156
157
85

query I rowsort
SELECT + col1 + - col0 * - col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT 81 + col0 AS col2 FROM tab0
----
105
116
170

query I rowsort
SELECT 12 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT - col2 * col0 + ( + col1 ) FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col2 * tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col0 * - 22 AS col0 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT cor0.col0 * 42 * 65 AS col2 FROM tab0 AS cor0
----
242970
65520
95550

query I rowsort
SELECT - col0 * + ( - 20 ) FROM tab0
----
1780
480
700

query I rowsort
SELECT - col0 + - col1 * 76 AS col1 FROM tab0 cor0
----
-6560
-7005
-7407

query I rowsort
SELECT DISTINCT col0 * 67 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
175
4278
5347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5777
SELECT + cor0.col2 * CAST( - ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5777
SELECT + cor0.col2 * CAST ( - ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT tab1.col1 * - col0 + - tab1.col2 * col0 AS col2 FROM tab1
----
-240
-4288
-8720

query I rowsort
SELECT - tab1.col2 + col1 * - col0 AS col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL col1 * col0 - col1 AS col2 FROM tab2
----
1326
186
4543

query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 AS col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT + col1 * + col2 * - col2 + - col1 FROM tab0
----
-194
-611975
-93740

query I rowsort
SELECT tab2.col1 * col0 * - col2 + - tab2.col0 AS col2 FROM tab2
----
-119730
-51113
-5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + + col1 col2 FROM tab1
----
138
173
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab2.col1 col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT + col2 * col1 * col0 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - col2 * - col2 - - col1 FROM tab1
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col2 / - col1 AS col1 FROM tab0 WHERE NOT + col0 + + col1 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT 4 + - col0 * - cor0.col0 FROM tab2 AS cor0
----
53
6088
6245

query I rowsort
SELECT DISTINCT tab2.col0 * col2 - + col0 AS col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT + + 2 + col1 * - cor0.col1 * - col1 FROM tab0 AS cor0
----
636058
753573
912675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col1 col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col2 > NULL
----

query I rowsort
SELECT - col2 + tab2.col1 - 43 AS col0 FROM tab2
----
-10
-39
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5797
SELECT DISTINCT - col2 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT - col2 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 + 11 FROM tab0 cor0
----
-22
-71
10

query I rowsort
SELECT DISTINCT cor0.col2 * - ( col0 ) * + col1 + 83 * - col0 AS col2 FROM tab2 cor0
----
-126126
-57591
-6440

query I rowsort
SELECT ALL - col1 - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT ALL - col2 + col1 * col2 + - 92 DIV + col0 FROM tab2 AS cor0
----
1507
607
797

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL - col2 + col1 * col2 + - 92 / + col0 FROM tab2 AS cor0
----
1507
607
797

onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT 89 DIV + col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5802
SELECT 89 / + col1 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT + - 3 + cor0.col0 FROM tab2 AS cor0
----
4
75
76

query I rowsort
SELECT + 85 FROM tab0, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT ALL + col0 DIV 76 + + col0 AS col2 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + col0 / 76 + + col0 AS col2 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT ALL - col2 * 74 AS col0 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab0, tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - col1 col1 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT - cor0.col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL - - 64 * - col2 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT DISTINCT - 83 * - col1 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT - 78 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT - cor0.col1 * - 32 FROM tab1 AS cor0
----
320
416
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5814
SELECT col2 DIV - tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5814
SELECT col2 / - tab0.col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5815
SELECT + col2 * CAST( NULL AS SIGNED ) + - 98 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT + col2 * CAST ( NULL AS INTEGER ) + - 98 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT - col1 + - col1 DIV + 70 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5816
SELECT - col1 + - col1 / + 70 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col2 * - 33 FROM tab2 cor0
----
-1254
-858
-891

onlyif mysql # use DIV operator for integer division
query I rowsort label-5819
SELECT DISTINCT - col0 DIV 79 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - col0 / 79 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT 2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT 18 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT DISTINCT - col2 + ( col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 + 85 * - col0 FROM tab0 AS cor0
----
-1954
-2878
-7474

query I rowsort
SELECT ALL col1 + 13 AS col2 FROM tab1 AS cor0
----
23
26
39

query I rowsort
SELECT DISTINCT - + col1 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + - 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT + - col2 * + ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col0 * - 43 AS col2 FROM tab1 AS cor0
----
-129
-2752
-3440

query I rowsort
SELECT + 78 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT + tab2.col1 + + col1 FROM tab2
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5831
SELECT ALL + tab0.col0 * CAST( + col1 AS SIGNED ) + col0 FROM tab0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + tab0.col0 * CAST ( + col1 AS INTEGER ) + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col1 * + 36 - + col1 AS col2 FROM tab0
----
3010
3185
3395

query I rowsort
SELECT ALL - col2 + + tab0.col0 - col1 * col2 FROM tab0
----
-2847
-63
-7455

query I rowsort
SELECT ALL col2 + + 21 - + col2 AS col2 FROM tab1
----
21
21
21

query I rowsort
SELECT DISTINCT - + col0 * + col2 + 72 * col0 FROM tab0 AS cor0
----
-890
2485
936

query I rowsort
SELECT - col1 * 96 FROM tab1 AS cor0
----
-1248
-2496
-960

query I rowsort
SELECT DISTINCT + + col1 * 87 * cor0.col2 FROM tab2 AS cor0
----
133458
56202
72819

onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT DISTINCT col1 DIV 26 + + col2 * - tab2.col1 * + 14 FROM tab2
----
-11717
-21474
-9044

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT col1 / 26 + + col2 * - tab2.col1 * + 14 FROM tab2
----
-11717
-21474
-9044

query I rowsort
SELECT DISTINCT col0 + + 47 FROM tab1
----
111
127
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + tab0.col2 FROM tab0, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + tab0.col2 FROM tab0, tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 FROM tab0
----
-2
-62

query I rowsort
SELECT ALL + col1 * col2 + + 48 + col0 * + col1 AS col1 FROM tab2 cor0
----
1102
2037
6184

query I rowsort
SELECT DISTINCT 54 * - col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab0 AS cor0
----
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5845
SELECT CAST( 88 AS SIGNED ) * tab2.col2 + + col0 FROM tab2
----
2366
2383
3423

skipif mysql # not compatible
query I rowsort label-5845
SELECT CAST ( 88 AS INTEGER ) * tab2.col2 + + col0 FROM tab2
----
2366
2383
3423

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) + + col2 * col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT col0 * 83 * col0 - - col2 FROM tab2
----
4094
504998
518041

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 + - col1 col2 FROM tab0
----
-20
-95
73

query I rowsort
SELECT - + 49 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT ( col2 ) + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT 47 + + col0 * + 67 AS col1 FROM tab2
----
516
5273
5340

query I rowsort
SELECT DISTINCT + col2 + col1 * 52 AS col2 FROM tab2 AS cor0
----
1639
3094
922

onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT + + cor0.col1 + - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5853
SELECT + + cor0.col1 + - col1 / col1 AS col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT + + 41 + col1 * cor0.col2 FROM tab0 AS cor0
----
138
2879
7503

onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT - col2 DIV + col0 col2 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5855
SELECT - col2 / + col0 col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5857
SELECT - - 5 DIV col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5857
SELECT - - 5 / col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * 41 + col0 AS col0 FROM tab1 AS cor0
----
-2211
-2273
-3856

query I rowsort
SELECT 98 * + col2 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 + + 38 FROM tab1 AS cor0
----
-545
-906
14

query I rowsort
SELECT ALL + + col1 * 69 + + col0 FROM tab2 AS cor0
----
1252
2146
4149

query I rowsort
SELECT 54 * + col0 FROM tab2 AS cor0
----
378
4212
4266

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT DISTINCT + - 71 + col1 * col0 DIV cor0.col0 FROM tab1 AS cor0
----
-45
-58
-61

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT + - 71 + col1 * col0 / cor0.col0 FROM tab1 AS cor0
----
-45
-58
-61

query I rowsort
SELECT - col0 + - 55 FROM tab1 AS cor0
----
-119
-135
-58

query I rowsort
SELECT - cor0.col2 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT col0 * + col1 - 53 FROM tab0 AS cor0
----
2011
3342
8046

query I rowsort
SELECT + + ( - col2 ) - 41 FROM tab2 AS cor0
----
-67
-68
-79

query I rowsort
SELECT ALL ( - ( tab0.col1 ) ) AS col0 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT - col1 DIV 73 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT - col1 / 73 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + - col1 * 52 AS col2 FROM tab2 AS cor0
----
-1605
-2990
-805

query I rowsort
SELECT DISTINCT + col1 * + 80 + col1 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT DISTINCT cor0.col2 * - 83 FROM tab1 cor0
----
-4482
-4731
-7968

query I rowsort
SELECT col1 * ( col1 ) + cor0.col1 AS col0 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT 56 + + col2 + + 20 AS col1 FROM tab1
----
130
133
172

query I rowsort
SELECT DISTINCT col0 + - col2 + col0 FROM tab1
----
-48
64
71

query I rowsort
SELECT ALL 3 + + cor1.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5eb1e58ce728c48d963cc590dc109cd1

query I rowsort
SELECT ALL + 96 * col1 + + col0 AS col0 FROM tab1
----
1024
1328
2499

query I rowsort
SELECT col0 + - col1 * - col1 AS col0 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT - + cor0.col2 * 69 + col1 * col1 FROM tab1 AS cor0
----
-3050
-3833
-6455

onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT DISTINCT + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5883
SELECT DISTINCT - cor0.col0 / + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - cor0.col0 / + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5884
SELECT col1 * 57 + - col2 DIV - col0 FROM tab1 AS cor0
----
1500
570
742

skipif mysql # not compatible
query I rowsort label-5884
SELECT col1 * 57 + - col2 / - col0 FROM tab1 AS cor0
----
1500
570
742

query I rowsort
SELECT ALL cor0.col0 + - 67 FROM tab2 AS cor0
----
-60
11
12

query I rowsort
SELECT + col1 * - cor0.col2 * - col2 FROM tab1 AS cor0
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col1 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1155
232
2805

query I rowsort
SELECT ALL + 17 AS col2 FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + + 64 * 92 AS col2 FROM tab0 cor0
----
5888

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT ALL 25 * col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL 25 * col1 / + col1 AS col2 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT 2 AS col1 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT + cor0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT col0 * - 38 FROM tab2
----
-266
-2964
-3002

query I rowsort
SELECT DISTINCT - 74 AS col0 FROM tab1, tab0 AS cor0
----
-74

query I rowsort
SELECT - col2 * - 38 FROM tab1 AS cor0
----
2052
2166
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5896
SELECT + CAST( NULL AS SIGNED ) * 11 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT + CAST ( NULL AS INTEGER ) * 11 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 14 + col1 FROM tab1 AS cor0
----
24
27
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5898
SELECT DISTINCT + col2 * col2 + CAST( NULL AS SIGNED ) / + cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + col2 * col2 + CAST ( NULL AS INTEGER ) / + cor0.col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + + col1 + + cor0.col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT + col1 * col2 + 49 AS col1 FROM tab1 AS cor0
----
1297
1453
619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col0 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT 71 * col1 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT - - ( col1 ) * - 16 + - 49 * col1 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col0 + + cor0.col1 * 14 FROM tab2 AS cor0
----
317
441
904

query I rowsort
SELECT + cor0.col2 * 34 AS col1 FROM tab0 cor0
----
1122
2788
34

query I rowsort
SELECT ALL 92 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - + cor0.col0 + - col0 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT + + cor0.col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT + + cor0.col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 82 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1330
1486
652

query I rowsort
SELECT - ( + col1 + + col1 * col1 ) FROM tab1
----
-110
-182
-702

query I rowsort
SELECT col1 + - col2 * tab0.col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - - 45 * - col0 FROM tab2 AS cor0
----
-315
-3510
-3555

onlyif mysql # use DIV operator for integer division
query I rowsort label-5914
SELECT DISTINCT col1 DIV + col0 AS col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT col1 / + col0 AS col0 FROM tab0 cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5915
SELECT cor0.col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5915
SELECT cor0.col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5916
SELECT CAST( NULL AS SIGNED ) - col1 * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT CAST ( NULL AS INTEGER ) - col1 * - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 84 AS col0 FROM tab1
----
148
164
87

query I rowsort
SELECT DISTINCT + tab0.col0 * - 41 AS col2 FROM tab0
----
-1435
-3649
-984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5919
SELECT DISTINCT CAST( 2 AS SIGNED ) * col2 FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT CAST ( 2 AS INTEGER ) * col2 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + cor1.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0f57767cd84a75460a1ded6f4ec18d38

query I rowsort
SELECT DISTINCT - tab0.col1 + col2 + ( col1 ) AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT 59 * - col0 * - col2 AS col2 FROM tab2
----
11151
119652
177118

query I rowsort
SELECT col0 + + col1 + - 13 FROM tab2
----
124
25
83

query I rowsort
SELECT DISTINCT - - 70 * - cor0.col0 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT DISTINCT - + 56 FROM tab1 cor0
----
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT ALL col0 DIV + col1 AS col2 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL col0 / + col1 AS col2 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT ( col1 ) - 70 * + cor0.col1 * col0 FROM tab0 AS cor0
----
-144394
-237553
-566839

query I rowsort
SELECT cor0.col0 + + col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5930
SELECT ALL - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - col1 / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + - col1 * col2 + + 83 FROM tab0 AS cor0
----
-14
-2755
-7379

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT ALL - - CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL - - CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col1 + 34 AS col0 FROM tab2 AS cor0
----
-25
17
3

query I rowsort
SELECT DISTINCT - 57 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5936
SELECT DISTINCT + - ( 95 ) * col1 + + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT + - ( 95 ) * col1 + + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * ( + cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + 52 FROM tab1 cor0
----
-52

query I rowsort
SELECT ALL + ( - col1 ) * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 54 AS col2 FROM tab1, tab2 AS cor0, tab1 cor1, tab1 cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col2 * - col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL col1 * - 52 * - col2 FROM tab0 cor0
----
147576
388024
5044

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT DISTINCT CAST( + col2 AS SIGNED ) * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL + + 84 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5945
SELECT ALL + - CAST( + col1 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + - CAST ( + col1 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - col1 + + 81 * - col0 AS col1 FROM tab2 AS cor0
----
-598
-6377
-6416

query I rowsort
SELECT 73 + col1 * + col2 FROM tab2 AS cor0
----
1607
719
910

query I rowsort
SELECT ALL - + col2 * col2 + col1 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col2 + col1 - col2 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + ( 83 ) * cor0.col1 + col1 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT DISTINCT + - 21 + ( col2 + ( 64 ) ) FROM tab2 AS cor0
----
69
70
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT ALL - 31 * 16 DIV col1 + + 24 DIV - col2 AS col1 FROM tab0 AS cor0
----
-29
-5
-5

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - 31 * 16 / col1 + + 24 / - col2 AS col1 FROM tab0 AS cor0
----
-29
-5
-5

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) + + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT col0 + - 75 AS col2 FROM tab2 cor0
----
-68
3
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5956
SELECT CAST( - 54 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-5956
SELECT CAST ( - 54 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5957
SELECT ALL + col0 * + ( col0 ) + CAST( - 94 AS SIGNED ) * - col0 * cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
132562
20454
438750

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL + col0 * + ( col0 ) + CAST ( - 94 AS INTEGER ) * - col0 * cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
132562
20454
438750

query I rowsort
SELECT - + 37 + col0 FROM tab2 AS cor0
----
-30
41
42

query I rowsort
SELECT ALL + col2 + + col2 + + ( + col0 + - cor0.col0 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + col0 * col1 + - ( - col0 + - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1460
251
4706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + tab2.col2 * - col0 + col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0, tab2 AS cor0
----
46

query I rowsort
SELECT ALL 89 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL + 26 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT + col1 + ( ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT - col1 + - col1 * 73 AS col0 FROM tab1 cor0
----
-1924
-740
-962

onlyif mysql # use DIV operator for integer division
query I rowsort label-5969
SELECT + - col1 DIV cor0.col0 + + col1 FROM tab2 cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-5969
SELECT + - col1 / cor0.col0 + + col1 FROM tab2 cor0
----
17
27
59

query I rowsort
SELECT ALL + cor0.col0 + + 63 AS col1 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT 59 * col1 * tab1.col2 + col2 FROM tab1
----
33687
73728
82890

query I rowsort
SELECT col2 + - col2 * ( tab0.col1 ) - col1 * col2 AS col0 FROM tab0
----
-14842
-193
-5643

query I rowsort
SELECT - col1 + + 17 * + col2 AS col2 FROM tab1 AS cor0
----
1619
892
959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5975
SELECT ALL col2 + CAST( - col2 AS SIGNED ) + - col1 * ( col0 ) col0 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL col2 + CAST ( - col2 AS INTEGER ) + - col1 * ( col0 ) col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col2 + - 43 AS col2 FROM tab0
----
-10
-42
39

query I rowsort
SELECT - col2 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 30 AS col0 FROM tab2 AS cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( 60 ) + - col2 col0 FROM tab2
----
39
64
93

query I rowsort
SELECT ALL - col0 + 84 AS col2 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT - tab2.col1 + tab2.col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col0 * col1 * + ( col2 ) FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col1 + - ( - col0 ) FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + col0 + + col2 * 42 FROM tab0 cor0
----
1410
3533
77

query I rowsort
SELECT ALL col2 * - cor0.col2 + col1 * cor0.col1 FROM tab2 AS cor0
----
-1155
232
2805

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT - 29 DIV + col0 FROM tab1 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-5986
SELECT - 29 / + col0 FROM tab1 AS cor0
----
-9
0
0

query I rowsort
SELECT ALL - ( cor0.col2 ) + - col2 * - col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + col2 * 83 FROM tab2
----
2158
2241
3154

onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT DISTINCT col0 DIV + 3 FROM tab0
----
11
29
8

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT col0 / + 3 FROM tab0
----
11
29
8

query I rowsort
SELECT tab1.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 col1 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to 2df272448a67587d4635afedff278dcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT + col2 + + CAST( 97 AS SIGNED ) DIV + col1 AS col1 FROM tab1 AS cor0
----
103
57
66

skipif mysql # not compatible
query I rowsort label-5992
SELECT + col2 + + CAST ( 97 AS INTEGER ) / + col1 AS col1 FROM tab1 AS cor0
----
103
57
66

query I rowsort
SELECT - - col2 + + col1 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT - col1 * + 43 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT 87 * + ( col1 ) FROM tab0
----
7482
7917
8439

query I rowsort
SELECT 97 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT + 47 FROM tab0, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col0 col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL - col1 * 53 FROM tab1 cor0
----
-1378
-530
-689

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT ALL + col1 DIV + 51 - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + col1 / + 51 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 3 * - ( col2 * + col2 ) + + 58 FROM tab1 AS cor0
----
27706
8806
9805

query I rowsort
SELECT + 19 * + col2 + 57 FROM tab2 AS cor0
----
551
570
779

query I rowsort
SELECT ALL col2 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - + 88 * - col0 + - col2 AS col0 FROM tab1 cor0
----
210
5575
6944

query I rowsort
SELECT col2 + + col1 * col1 * col1 FROM tab0
----
636089
753653
912674

query I rowsort
SELECT ALL col2 * - 28 + col0 AS col1 FROM tab0
----
-2207
-900
7

query I rowsort
SELECT - + col1 + col0 * + col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - col0 * - col0 + - cor0.col2 * - col0 FROM tab0 AS cor0
----
1260
1368
15219

onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT ALL col1 * + 91 + + col2 DIV 6 AS col0 FROM tab1
----
1199
2375
919

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL col1 * + 91 + + col2 / 6 AS col0 FROM tab1
----
1199
2375
919

query I rowsort
SELECT DISTINCT col2 * + col0 + 1 AS col1 FROM tab0
----
36
7299
793

query I rowsort
SELECT ALL + 2 + - col1 AS col1 FROM tab2
----
-15
-29
-57

query I rowsort
SELECT 73 * tab0.col2 AS col0 FROM tab0
----
2409
5986
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6013
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + ( col0 ) - - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL 19 * - col1 FROM tab1 AS cor0
----
-190
-247
-494

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col1 + ( - col0 ) * col0 * ( 71 ) + - col0 AS col2 FROM tab2 AS cor0
----
-2649
-430508
-442544

query I rowsort
SELECT ALL + col1 * col1 + cor0.col2 * + col2 FROM tab0 AS cor0
----
15005
8485
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT ALL + col0 * + 11 - - col1 DIV col0 FROM tab0 AS cor0
----
267
387
980

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + col0 * + 11 - - col1 / col0 FROM tab0 AS cor0
----
267
387
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 85 + - col0 col0 FROM tab0 AS cor0
----
2016
2940
7476

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6020
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 99 col0 FROM tab2 AS cor0
----
40
68
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT DISTINCT + col0 DIV col0 - - col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + col0 / col0 - - col1 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL col1 * 11 + col2 - col0 AS col2 FROM tab2 AS cor0
----
146
361
597

query I rowsort
SELECT DISTINCT + + col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - - col0 + ( - 38 ) + + col0 * cor0.col2 AS col0 FROM tab0 cor0
----
32
7349
778

query I rowsort
SELECT DISTINCT - col2 + ( + col0 + - col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
-567
1326
1520

query I rowsort
SELECT col1 + col2 * + ( col0 ) AS col1 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT col2 + col1 DIV col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-6028
SELECT col2 + col1 / col0 FROM tab2 AS cor0
----
26
31
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6029
SELECT - + CAST( NULL AS SIGNED ) * 0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT - + CAST ( NULL AS INTEGER ) * 0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 3 ) col0 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT 49 * - 78 FROM tab1, tab0 cor0
----
-3822

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6032
SELECT ALL - + CAST( NULL AS SIGNED ) * ( cor0.col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - + CAST ( NULL AS INTEGER ) * ( cor0.col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col0 * + col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + cor0.col2 * + 19 - col2 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT DISTINCT + + col2 + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT + col1 DIV + 62 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6036
SELECT + col1 / + 62 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT DISTINCT col1 DIV 45 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT col1 / 45 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT cor0.col1 * 32 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL cor0.col1 * 29 AS col0 FROM tab0 AS cor0
----
2494
2639
2813

onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT + col2 DIV 27 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6041
SELECT + col2 / 27 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + col2 + col2 * tab1.col0 + + 25 AS col2 FROM tab1
----
241
3730
7801

query I rowsort
SELECT col2 + col0 * col2 AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL - col0 * col2 + + 35 FROM tab1
----
-127
-3613
-7645

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 AS col1 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT DISTINCT cor0.col0 * - col2 - + col2 * col2 DIV col1 FROM tab0 AS cor0
----
-35
-7371
-804

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT cor0.col0 * - col2 - + col2 * col2 / col1 FROM tab0 AS cor0
----
-35
-7371
-804

query I rowsort
SELECT 63 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - + col1 * + cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col2 * - cor0.col2 col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - col1 - ( col2 * col2 ) AS col0 FROM tab2
----
-1461
-735
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6051
SELECT - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 36 * col1 AS col1 FROM tab0
----
3096
3276
3492

query I rowsort
SELECT + ( + col1 ) * + col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT 77 + cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 694bb0cc4138ef482de6a85dffc59c07

query I rowsort
SELECT + 17 + col1 + col0 * col1 FROM tab0
----
2167
3509
8207

query I rowsort
SELECT ( tab0.col2 ) * - col0 + + ( - col1 ) + - col2 AS col0 FROM tab0
----
-133
-7471
-911

query I rowsort
SELECT 0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 + col0 * 68 FROM tab1
----
207
4416
5520

query I rowsort
SELECT - 17 + col2 FROM tab0
----
-16
16
65

query I rowsort
SELECT ALL 34 * col0 + - 9 FROM tab2
----
229
2643
2677

query I rowsort
SELECT - 6 * col0 AS col1 FROM tab0
----
-144
-210
-534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 + - 76 col1 FROM tab0
----
-42
-69
-85

query I rowsort
SELECT DISTINCT + col2 * - col2 + + 57 FROM tab1
----
-2859
-3192
-9159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + col1 col1 FROM tab1 AS cor0
----
65
68
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT - 40 + + col2 DIV - ( + col0 ) FROM tab1 AS cor0
----
-40
-41
-58

skipif mysql # not compatible
query I rowsort label-6065
SELECT - 40 + + col2 / - ( + col0 ) FROM tab1 AS cor0
----
-40
-41
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6066
SELECT + col1 * col1 DIV cor0.col2 FROM tab1 AS cor0
----
1
1
12

skipif mysql # not compatible
query I rowsort label-6066
SELECT + col1 * col1 / cor0.col2 FROM tab1 AS cor0
----
1
1
12

query I rowsort
SELECT DISTINCT 85 * + col1 FROM tab1 AS cor0
----
1105
2210
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT DISTINCT - col1 + + col0 DIV - col0 col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - col1 + + col0 / - col0 col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT - + col0 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - 97 + col0 AS col1 FROM tab2 AS cor0
----
-18
-19
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT DISTINCT col1 DIV cor0.col1 col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT col1 / cor0.col1 col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + ( col0 ) + col2 * col1 FROM tab2 cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT cor0.col1 * + cor0.col2 * - col0 + col0 DIV col2 FROM tab0 AS cor0
----
-3360
-664117
-68112

skipif mysql # not compatible
query I rowsort label-6074
SELECT cor0.col1 * + cor0.col2 * - col0 + col0 / col2 FROM tab0 AS cor0
----
-3360
-664117
-68112

query I rowsort
SELECT + - 73 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-511
-5694
-5767

query I rowsort
SELECT ALL + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col1 * col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT col1 * - cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + - col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 * + col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT - + cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + 8 + col2 FROM tab1
----
104
62
65

query I rowsort
SELECT ALL - - col0 + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + 47 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ( + col1 ) * - cor0.col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - col0 * - 23 + col2 FROM tab2 AS cor0
----
1820
1855
188

query I rowsort
SELECT ALL tab0.col1 + 52 AS col0 FROM tab0
----
138
143
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 3 ) + col0 col1 FROM tab2
----
4
75
76

query I rowsort
SELECT DISTINCT + col2 * + ( col1 ) * - col1 + - col0 AS col0 FROM tab2
----
-11061
-25954
-90584

query I rowsort
SELECT DISTINCT col1 - 14 FROM tab2 AS cor0
----
17
3
45

query I rowsort
SELECT ALL 6 * col1 - col1 * - col1 AS col1 FROM tab0 AS cor0
----
7912
8827
9991

onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT ALL - - cor0.col1 DIV col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - - cor0.col1 / col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 - - col1 * + cor0.col1 col2 FROM tab2 AS cor0
----
259
3451
931

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * - col0 - - col0 FROM tab2 cor0
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6096
SELECT - CAST( NULL AS SIGNED ) - col0 * cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT - CAST ( NULL AS INTEGER ) - col0 * cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT DISTINCT - + col1 * + cor0.col2 + + col1 DIV - col1 AS col2 FROM tab1 cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - + col1 * + cor0.col2 + + col1 / - col1 AS col2 FROM tab1 cor0
----
-1249
-1405
-571

query I rowsort
SELECT ALL col0 * cor0.col2 + col1 * - col1 + + cor0.col2 AS col0 FROM tab0 cor0
----
-6571
-901
-9373

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT + 18 + - col2 DIV - col1 FROM tab2 AS cor0
----
18
18
20

skipif mysql # not compatible
query I rowsort label-6099
SELECT + 18 + - col2 / - col1 FROM tab2 AS cor0
----
18
18
20

query I rowsort
SELECT + 58 + cor0.col0 * col1 FROM tab2 AS cor0
----
1401
275
4660

query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 - + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-6102
SELECT - 9 + + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-8
-9
26

skipif mysql # not compatible
query I rowsort label-6102
SELECT - 9 + + col0 / + col2 AS col0 FROM tab0 AS cor0
----
-8
-9
26

query I rowsort
SELECT ALL - - col2 + + cor0.col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT - 77 + col1 - col1 DIV - col1 FROM tab0
----
10
15
21

skipif mysql # not compatible
query I rowsort label-6104
SELECT - 77 + col1 - col1 / - col1 FROM tab0
----
10
15
21

query I rowsort
SELECT ALL - cor0.col1 * col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - 77 + col1 FROM tab0 AS cor0
----
14
20
9

query I rowsort
SELECT ALL + + cor0.col0 + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - - col2 - + col1 * col1 AS col0 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + - 73 FROM tab2 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL tab2.col2 + 76 AS col1 FROM tab2
----
102
103
114

onlyif mysql # use DIV operator for integer division
query I rowsort label-6112
SELECT DISTINCT col1 DIV col0 + + col1 DIV col1 FROM tab2
----
1
5

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT col1 / col0 + + col1 / col1 FROM tab2
----
1
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - ( col1 ) col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT ( col1 ) * col1 - - col2 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL + + cor0.col0 * 25 FROM tab0, tab0 cor0
----
9 values hashing to 736f0bd0d851c53eb4226edbc0c0dd3e

query I rowsort
SELECT 22 + col1 FROM tab2 AS cor0
----
39
53
81

query I rowsort
SELECT col0 * ( col2 ) AS col0 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6118
SELECT DISTINCT + CAST( + 66 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT + CAST ( + 66 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
66

query I rowsort
SELECT - 78 + tab1.col2 FROM tab1
----
-21
-24
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6120
SELECT DISTINCT + CAST( 83 AS SIGNED ) * - col0 FROM tab0
----
-1992
-2905
-7387

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + CAST ( 83 AS INTEGER ) * - col0 FROM tab0
----
-1992
-2905
-7387

query I rowsort
SELECT ALL + ( col1 + - col1 ) * col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - + 6 AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT ( - col0 ) + - col2 FROM tab2
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL - col0 * - col0 + - col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT ALL - col2 + + col1 * 97 AS col2 FROM tab1 AS cor0
----
1165
2468
913

onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT DISTINCT - ( col1 ) + + ( 95 ) DIV - col0 FROM tab0 cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT - ( col1 ) + + ( 95 ) / - col0 FROM tab0 cor0
----
-89
-92
-99

query I rowsort
SELECT - tab2.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - col1 * + ( + 67 ) + + col1 * + ( - col1 ) FROM tab1 AS cor0
----
-1040
-2418
-770

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT ALL + + col0 + cor0.col2 + col0 * - col0 DIV - col0 FROM tab0 cor0
----
260
71
81

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL + + col0 + cor0.col2 + col0 * - col0 / - col0 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT ALL - col2 + - col1 + + col0 * + col2 FROM tab2 cor0
----
131
1943
2947

query I rowsort
SELECT col0 + 60 FROM tab1 cor0
----
124
140
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 4 col2 FROM tab2 AS cor0
----
-11
-82
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT ALL + col1 * col1 DIV - col0 FROM tab1
----
-1
-2
-225

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + col1 * col1 / - col0 FROM tab1
----
-1
-2
-225

query I rowsort
SELECT + + col0 + + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6136
SELECT + col1 DIV - col1 - + col1 AS col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-6136
SELECT + col1 / - col1 - + col1 AS col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT col0 + + col2 * 21 - col1 AS col0 FROM tab2 AS cor0
----
543
565
860

query I rowsort
SELECT ALL - col2 * - ( - 12 ) FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT - col2 + ( col2 ) * - col2 AS col0 FROM tab0 cor0
----
-1122
-2
-6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT DISTINCT col2 DIV + ( col0 ) - col0 FROM tab2
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT col2 / + ( col0 ) - col0 FROM tab2
----
-4
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 64 col1 FROM tab1
----
3456
3648
6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT + col1 * col0 DIV tab0.col2 AS col1 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-6142
SELECT + col1 * col0 / tab0.col2 AS col1 FROM tab0
----
3395
62
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6143
SELECT - col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6144
SELECT + CAST( col1 AS SIGNED ) * col2 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-6144
SELECT + CAST ( col1 AS INTEGER ) * col2 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT + col1 * + col0 - col0 DIV + col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-6145
SELECT + col1 * + col0 - col0 / + col0 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT - + col0 * - 31 + + col1 FROM tab1 AS cor0
----
119
1994
2493

query I rowsort
SELECT ALL 77 * + cor0.col0 - + col0 AS col0 FROM tab2 AS cor0
----
532
5928
6004

query I rowsort
SELECT + - col2 + + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT col2 * ( + tab0.col0 + tab0.col1 ) AS col2 FROM tab0
----
132
14760
3630

query I rowsort
SELECT ALL + ( + 66 ) AS col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT col0 + col2 - col0 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - ( cor0.col2 ) + + cor0.col1 + + 88 * - col0 AS col1 FROM tab2 AS cor0
----
-612
-6831
-6973

query I rowsort
SELECT + - col1 * col0 + col1 * col1 - 53 AS col0 FROM tab0 AS cor0
----
129
5279
5961

query I rowsort
SELECT DISTINCT + + col2 + 20 AS col2 FROM tab1 cor0
----
116
74
77

query I rowsort
SELECT + - 70 * - ( + col1 ) + col0 * col0 AS col2 FROM tab0 AS cor0
----
14291
6596
8015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT + 46 AS col0 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - ( - col1 + + col0 ) FROM tab1
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6159
SELECT CAST( + col2 AS SIGNED ) * + col2 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-6159
SELECT CAST ( + col2 AS INTEGER ) * + col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - - col1 - + col0 * - col0 FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col1 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 53 + - col0 * + col0 AS col1 FROM tab1
----
-4043
-6347
44

query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT col1 + col1 + 93 FROM tab2
----
127
155
211

query I rowsort
SELECT ALL + 20 + + col1 * col2 * 91 FROM tab1
----
113588
127784
51890

query I rowsort
SELECT DISTINCT 70 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
70

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT - 47 + + col2 FROM tab0
----
-14
-46
35

query I rowsort
SELECT ( - 56 ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT DISTINCT + 78 + col1 * - col2 FROM tab1 AS cor0
----
-1170
-1326
-492

query I rowsort
SELECT ALL cor0.col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT 42 * col1 AS col0 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT + - 27 + + col2 FROM tab0 AS cor0
----
-26
55
6

query I rowsort
SELECT ALL col0 * - col2 + 44 + + col0 FROM tab0 AS cor0
----
-7165
-724
44

query I rowsort
SELECT DISTINCT - col0 + + col1 * col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - cor0.col1 + 92 * col2 AS col2 FROM tab1 cor0
----
4942
5234
8819

query I rowsort
SELECT ALL + col0 + + ( col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - - col0 * ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + + col1 + ( - col0 ) FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6180
SELECT DISTINCT + col0 DIV 36 col1 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT + col0 / 36 col1 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT DISTINCT - col1 + col2 + + col0 FROM tab2
----
100
3
45

query I rowsort
SELECT cor0.col0 + - tab2.col0 * + tab2.col1 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9f78deb19f64f6d722837317c9af27fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col1 FROM tab0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6184
SELECT DISTINCT - - col0 + CAST( NULL AS SIGNED ) - ( col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT - - col0 + CAST ( NULL AS INTEGER ) - ( col1 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 17 col0 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT - ( col1 ) - + col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 12 + 56 * - cor0.col0 FROM tab0 AS cor0
----
-1332
-1948
-4972

query I rowsort
SELECT - 77 * col0 AS col1 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT DISTINCT - 84 * col1 AS col1 FROM tab0 AS cor0
----
-7224
-7644
-8148

query I rowsort
SELECT ( + col1 ) + + col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 col2 FROM tab1 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - col0 col2 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT - 3 * - 31 + col1 DIV - CAST( - 25 * col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-6194
SELECT - 3 * - 31 + col1 / - CAST ( - 25 * col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + col1 col1 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT - - col1 * - col1 * col1 AS col0 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT + 80 + col0 AS col1 FROM tab1 AS cor0
----
144
160
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT ALL + ( col0 ) DIV col0 - + 53 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + ( col0 ) / col0 - + 53 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + col0 - - col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + col0 * ( 19 ) FROM tab0
----
1691
456
665

query I rowsort
SELECT DISTINCT 24 FROM tab0, tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col1 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 + - col2 * col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT 10 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
101
107
96

query I rowsort
SELECT ALL + ( + ( col0 ) ) * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col1 - col2 FROM tab1
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6208
SELECT DISTINCT + ( - col2 ) + - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT + ( - col2 ) + - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 79 * col0 * - col0 FROM tab0 AS cor0
----
-45504
-625759
-96775

query I rowsort
SELECT - ( + col2 ) + tab0.col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL 69 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6212
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col1 - col2 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6214
SELECT + col1 + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT + col1 + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col2 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT - col1 DIV + col0 + + 99 + col0 AS col1 FROM tab0 AS cor0
----
120
132
187

skipif mysql # not compatible
query I rowsort label-6216
SELECT - col1 / + col0 + + 99 + col0 AS col1 FROM tab0 AS cor0
----
120
132
187

query I rowsort
SELECT + 14 + - col2 AS col2 FROM tab2 AS cor0
----
-12
-13
-24

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col0 * + col0 FROM tab1 AS cor0
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col1 + col0 col2 FROM tab0 AS cor0
----
-27
-38
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT 85 + col2 + col2 * - CAST( - ( col1 ) AS SIGNED ) FROM tab1
----
1429
1543
712

skipif mysql # not compatible
query I rowsort label-6220
SELECT 85 + col2 + col2 * - CAST ( - ( col1 ) AS INTEGER ) FROM tab1
----
1429
1543
712

query I rowsort
SELECT ALL - 43 + tab1.col2 * - col1 - ( 99 ) FROM tab1
----
-1390
-1546
-712

query I rowsort
SELECT ALL + 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 * + col0 + + cor0.col0 col2 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT 54 + cor0.col0 FROM tab1 AS cor0
----
118
134
57

query I rowsort
SELECT DISTINCT - col1 * + col0 - ( + col1 + col1 ) FROM tab0 AS cor0
----
-2236
-3589
-8281

query I rowsort
SELECT col1 * - col1 - 4 AS col0 FROM tab2 AS cor0
----
-293
-3485
-965

query I rowsort
SELECT + col0 * - cor0.col2 + col2 FROM tab1 cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6229
SELECT col1 DIV - 34 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6229
SELECT col1 / - 34 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + col2 AS col0 FROM tab2 cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT ALL + - cor0.col0 DIV CAST( - col0 AS SIGNED ) + + col1 * + 40 + - cor0.col0 * cor0.col1 * - ( 93 ) FROM tab0 AS cor0
----
195393
319616
756848

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + - cor0.col0 / CAST ( - col0 AS INTEGER ) + + col1 * + 40 + - cor0.col0 * cor0.col1 * - ( 93 ) FROM tab0 AS cor0
----
195393
319616
756848

onlyif mysql # use DIV operator for integer division
query I rowsort label-6232
SELECT ALL + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL + col2 / col0 AS col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT + 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * ( cor0.col1 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e40657f31d9aea6e13f83a553419ccf4

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab2, tab2 cor0
----
29

query I rowsort
SELECT DISTINCT + 48 * + col0 + col2 * + 50 AS col1 FROM tab0 AS cor0
----
1730
2802
8372

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
3645 values hashing to d6394df0309139ffe20e7d96c77e26ee

query I rowsort
SELECT ALL 89 * - 10 FROM tab2 AS cor0
----
-890
-890
-890

query I rowsort
SELECT ALL - col2 + ( col1 + 85 * col0 ) FROM tab0
----
2093
3071
7574

query I rowsort
SELECT - 89 FROM tab2, tab2 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT - - 71 * col2 FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT + + 74 * cor0.col1 AS col1 FROM tab2 cor0
----
1258
2294
4366

query I rowsort
SELECT + cor0.col0 + cor0.col0 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6244
SELECT + + CAST( NULL AS SIGNED ) * - 34 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT + + CAST ( NULL AS INTEGER ) * - 34 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 80 AS col0 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - + cor0.col2 * cor0.col0 + col0 * col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 19 + 74 FROM tab1 AS cor0
----
55

query I rowsort
SELECT ALL - col2 - + 96 AS col0 FROM tab0
----
-129
-178
-97

query I rowsort
SELECT + + col2 * ( col2 ) - - col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col0 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - col0 + + ( + col0 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + col1 * + cor0.col2 + col0 * col0 AS col1 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT + + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col2 * col2 - - col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + - 68 + + col2 FROM tab2 AS cor0
----
-30
-41
-42

query I rowsort
SELECT DISTINCT + + col2 + - col1 * - col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + - 53 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT col2 * ( col2 + - tab2.col2 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + col0 * - col0 FROM tab1 cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT + 57 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT + 57 / col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
7
78
79

query I rowsort
SELECT 17 + tab2.col2 FROM tab2
----
43
44
55

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL 81 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT - 56 + col1 AS col0 FROM tab0 AS cor0
----
30
35
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT - col0 * ( - ( + col2 ) ) DIV 23 FROM tab1 cor0
----
158
333
7

skipif mysql # not compatible
query I rowsort label-6267
SELECT - col0 * ( - ( + col2 ) ) / 23 FROM tab1 cor0
----
158
333
7

query I rowsort
SELECT 67 + - 85 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col2 * - CAST ( 89 AS REAL ) FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT ALL - ( 75 ) * cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 639efcf95382c0e4655b8e9bec96eac3

query I rowsort
SELECT - 85 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6272
SELECT - col2 + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-6272
SELECT - col2 + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + cor0.col1 * + 99 AS col1 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT DISTINCT + 5 * ( col1 ) AS col2 FROM tab0
----
430
455
485

query I rowsort
SELECT ALL - 4 AS col1 FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort
SELECT - 85 * ( col1 + CAST ( col2 AS REAL ) ) * col0 FROM tab2
----
-34510
-369325
-563550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6277
SELECT CAST( NULL AS SIGNED ) - tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT CAST ( NULL AS INTEGER ) - tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6278
SELECT ALL tab1.col2 + - col2 DIV + col2 AS col0 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL tab1.col2 + - col2 / + col2 AS col0 FROM tab1
----
53
56
95

query I rowsort
SELECT ALL - 53 + ( col1 + - col1 * col2 ) FROM tab1
----
-1288
-1431
-613

query I rowsort
SELECT - cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT + cor0.col0 + + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6281
SELECT + cor0.col0 + + col2 / - col1 AS col2 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT + - 59 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-1593
-2242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + - ( + col2 ) col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - - col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT DISTINCT + 10 DIV - col0 AS col0 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + 10 / - col0 AS col0 FROM tab1 AS cor0
----
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT + ( col0 ) DIV col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6286
SELECT + ( col0 ) / col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ( + cor0.col2 ) * + 22 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 441b8401f0ab9b799aa419e8418bc2c6

query I rowsort
SELECT + 84 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
1411
2573
4897

onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT cor0.col0 DIV - col0 + + 73 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-6289
SELECT cor0.col0 / - col0 + + 73 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT ALL - ( + col1 ) * + 82 FROM tab2 AS cor0
----
-1394
-2542
-4838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6291
SELECT ALL - tab2.col1 * + CAST( - 90 AS SIGNED ) + - col0 * ( 21 * col1 ) AS col2 FROM tab2
----
-1767
-26673
-91332

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - tab2.col1 * + CAST ( - 90 AS INTEGER ) + - col0 * ( 21 * col1 ) AS col2 FROM tab2
----
-1767
-26673
-91332

query I rowsort
SELECT ALL - tab1.col2 * - col0 * col1 + col1 AS col1 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT DISTINCT col1 + col0 * tab0.col0 * + col1 - 32 FROM tab0
----
118890
49590
720870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab1.col2 col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + - col0 + - col1 * - col1 * col0 FROM tab0 cor0
----
177480
329280
736920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6296
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 70 * + ( col2 ) + col1 * - col1 FROM tab0 cor0
----
-2541
-5086
-9339

query I rowsort
SELECT - 93 + + 55 AS col0 FROM tab1 cor0
----
-38
-38
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT ALL - cor0.col1 DIV - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - cor0.col1 / - col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 * - col2 + col1 col0 FROM tab1 AS cor0
----
-4942
-5234
-8819

query I rowsort
SELECT ALL + col0 + - cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + col0 col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL col2 * col2 * col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT + ( + 57 ) + + col2 * 61 FROM tab1 AS cor0
----
3351
3534
5913

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT - cor0.col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6305
SELECT - cor0.col0 / - col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL - + col2 * + 20 FROM tab1 AS cor0
----
-1080
-1140
-1920

query I rowsort
SELECT ALL + - 45 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL - + 96 * + col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT + + ( + ( + col1 ) ) + + col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6310
SELECT ALL - col1 + 43 DIV col2 FROM tab0 AS cor0
----
-54
-85
-91

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - col1 + 43 / col2 FROM tab0 AS cor0
----
-54
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col2 * col1 col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - col0 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 99 + - 46 * col1 AS col0 FROM tab1 AS cor0
----
-1097
-361
-499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + col2 col1 FROM tab1 cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6315
SELECT CAST( NULL AS DECIMAL ) * - cor0.col1 * col0 + 58 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT CAST ( NULL AS REAL ) * - cor0.col1 * col0 + 58 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 * - col0 AS col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6317
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT + cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ( col2 ) + - 89 * + col0 AS col0 FROM tab1
----
-213
-5639
-7024

query I rowsort
SELECT DISTINCT col2 + + col2 + cor0.col2 * - 51 * - col1 AS col0 FROM tab0 cor0
----
144804
380726
4949

onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT ALL + 79 + + col0 * col2 DIV col0 AS col0 FROM tab0 AS cor0
----
112
161
80

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL + 79 + + col0 * col2 / col0 AS col0 FROM tab0 AS cor0
----
112
161
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 54 - + col1 col1 FROM tab1 AS cor0
----
28
41
44

query I rowsort
SELECT DISTINCT - - 15 * + col0 AS col1 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT ALL cor0.col0 + col1 * col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
3500
351
937

query I rowsort
SELECT - col1 + - col2 * - col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL + 47 + cor0.col1 * ( 78 * - col2 ) AS col2 FROM tab0 AS cor0
----
-221317
-581989
-7519

query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 + + col2 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT ALL + cor0.col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + ( col0 ) col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + + col2 - ( col1 ) AS col1 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT DISTINCT col0 + col2 DIV + col1 col0 FROM tab1 AS cor0
----
5
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT col0 + col2 / + col1 col0 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT DISTINCT + col0 + ( + 51 ) AS col0 FROM tab0 AS cor0
----
140
75
86

query I rowsort
SELECT - - col2 * + col2 - col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + + col0 + ( + cor0.col0 ) FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + col0 + ( - cor0.col0 + + col0 * 87 ) AS col2 FROM tab1 AS cor0
----
261
5568
6960

query I rowsort
SELECT DISTINCT + 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
63

query I rowsort
SELECT - col1 * 50 AS col2 FROM tab0 AS cor0
----
-4300
-4550
-4850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT DISTINCT col0 * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT col0 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col0 * + col2 * - 54 FROM tab0 AS cor0
----
1890
394092
42768

query I rowsort
SELECT ALL - 46 FROM tab2, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL + cor0.col2 + - 98 * - col2 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT ALL - cor0.col2 * + col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab0
----
52

query I rowsort
SELECT 42 + + col0 * col0 FROM tab2
----
6126
6283
91

query I rowsort
SELECT col1 * + 83 FROM tab2 AS cor0
----
1411
2573
4897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6348
SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) - 57 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) - 57 col2 FROM tab2 AS cor0
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f

query I rowsort
SELECT - ( + col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 + - 60 AS col0 FROM tab0
----
-27
-59
22

query I rowsort
SELECT - - ( - 53 ) - col2 FROM tab0 AS cor0
----
-135
-54
-86

query I rowsort
SELECT ( 28 ) + col0 FROM tab0 AS cor0
----
117
52
63

query I rowsort
SELECT DISTINCT col2 * - ( + ( + tab2.col0 ) ) * + ( col2 ) + + col0 AS col1 FROM tab2
----
-113997
-5096
-52650

query I rowsort
SELECT + - 36 AS col0 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - + 13 + col2 AS col1 FROM tab0 AS cor0
----
-12
20
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT ALL col1 + + cor0.col2 DIV + col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL col1 + + cor0.col2 / + col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT - 15 + col0 FROM tab1
----
-12
49
65

query I rowsort
SELECT col1 + + tab2.col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT 39 * + col2 AS col2 FROM tab2 cor0
----
1014
1053
1482

query I rowsort
SELECT DISTINCT - - 37 AS col0 FROM tab2 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * + col1 col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT ( + col2 ) * col1 + col2 + - col2 * + ( cor0.col0 ) FROM tab2 AS cor0
----
-2318
-468
675

query I rowsort
SELECT + ( - col1 ) AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + ( + 25 ) FROM tab2
----
25
25
25

query I rowsort
SELECT DISTINCT - ( tab2.col2 ) AS col0 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT + 57 + col2 DIV col2 FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-6367
SELECT + 57 + col2 / col2 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT 81 DIV col2 AS col2 FROM tab0 AS cor0
----
0
2
81

skipif mysql # not compatible
query I rowsort label-6368
SELECT 81 / col2 AS col2 FROM tab0 AS cor0
----
0
2
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT col0 * 84 DIV + col2 FROM tab1 AS cor0
----
4
70
94

skipif mysql # not compatible
query I rowsort label-6369
SELECT col0 * 84 / + col2 FROM tab1 AS cor0
----
4
70
94

query I rowsort
SELECT col1 + col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT 44 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + + col2 * + col0 col2 FROM tab2 cor0
----
195
2034
3008

query I rowsort
SELECT DISTINCT - 99 * + cor0.col0 * 94 AS col2 FROM tab2, tab2 AS cor0
----
-65142
-725868
-735174

query I rowsort
SELECT - col2 * + 2 FROM tab1 cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6375
SELECT ALL + + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 92 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT col2 * col2 DIV col1 + - tab0.col1 * + col2 col1 FROM tab0
----
-2826
-7389
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6378
SELECT col2 * col2 / col1 + - tab0.col1 * + col2 col1 FROM tab0
----
-2826
-7389
-97

query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT + 18 * + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT ALL + + col1 + + col1 AS col2 FROM tab2 cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6382
SELECT + ( col0 ) + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT + ( col0 ) + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + ( cor0.col1 + - ( - cor0.col1 ) ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 97 * 20 + col0 FROM tab2 AS cor0
----
1947
2018
2019

query I rowsort
SELECT DISTINCT - col2 - + col1 * + 21 AS col1 FROM tab0 AS cor0
----
-1839
-1993
-2038

query I rowsort
SELECT ALL - 55 + - col1 + - ( - ( - col0 ) ) FROM tab2 AS cor0
----
-151
-192
-93

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 + - 71 AS col1 FROM tab1 AS cor0
----
-233
-3719
-7751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * - col1 col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 94 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col0 + 91 * col1 AS col2 FROM tab0
----
7850
8370
8862

query I rowsort
SELECT - ( col0 ) + - col1 AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col0 * - 14 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT - 73 * col1 FROM tab1
----
-1898
-730
-949

query I rowsort
SELECT + + col2 * - col1 + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - + cor0.col2 + + ( ( col1 ) ) + ( col2 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col1 * - col1 + + 8 + cor0.col1 FROM tab2 AS cor0
----
-264
-3414
-922

query I rowsort
SELECT ( + col0 ) * + col0 * 26 AS col2 FROM tab2
----
1274
158184
162266

query I rowsort
SELECT ALL - ( + col0 ) * - col1 - - col2 * + tab1.col2 AS col1 FROM tab1
----
10256
2994
3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT + col1 DIV tab2.col1 col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6402
SELECT + col1 / tab2.col1 col2 FROM tab2
----
1
1
1

query I rowsort
SELECT 53 * - tab1.col1 FROM tab1
----
-1378
-530
-689

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL cor1.col2 * 48 AS col1 FROM tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to d2826b1a60dd9b862a6514bf69a0f44e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6406
SELECT col1 - - CAST( NULL AS SIGNED ) * 22 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT col1 - - CAST ( NULL AS INTEGER ) * 22 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2, tab1 cor0
----
58

query I rowsort
SELECT ALL - 93 + 60 FROM tab0, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT - col2 DIV + col0 + + col1 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
110
181
684

skipif mysql # not compatible
query I rowsort label-6409
SELECT - col2 / + col0 + + col1 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
110
181
684

query I rowsort
SELECT DISTINCT - 42 * - col1 * - ( ( - col0 ) * + col1 ) AS col0 FROM tab1 AS cor0
----
268800
567840
85176

query I rowsort
SELECT ( col1 ) * - 55 AS col1 FROM tab0 AS cor0
----
-4730
-5005
-5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-6412
SELECT DISTINCT + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT + col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - 59 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT ALL col2 * cor0.col1 - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL + col1 * col2 - cor0.col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - 86 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT DISTINCT 96 + + col1 DIV + col0 FROM tab1 AS cor0
----
104
96

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT 96 + + col1 / + col0 FROM tab1 AS cor0
----
104
96

query I rowsort
SELECT ALL - 55 + - col1 AS col2 FROM tab0 AS cor0
----
-141
-146
-152

query I rowsort
SELECT + 36 * col1 AS col2 FROM tab2 AS cor0
----
1116
2124
612

query I rowsort
SELECT - 76 * col2 AS col1 FROM tab1 AS cor0
----
-4104
-4332
-7296

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 6 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - col1 * + 32 + + col0 * - cor0.col2 FROM tab0 AS cor0
----
-10210
-3139
-3544

query I rowsort
SELECT - 12 + col0 FROM tab1
----
-9
52
68

query I rowsort
SELECT DISTINCT + 86 + - col0 AS col0 FROM tab0
----
-3
51
62

query I rowsort
SELECT ALL 2 + col2 AS col1 FROM tab2
----
28
29
40

query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 * - 8 FROM tab2 AS cor0
----
-119
-217
-413

onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT DISTINCT + col1 + - col0 DIV 94 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT + col1 + - col0 / 94 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT cor0.col2 * + cor0.col1 - - col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + ( col2 * col0 ) + + col0 AS col2 FROM tab0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6431
SELECT ALL - ( col2 ) * - CAST( NULL AS DECIMAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - ( col2 ) * - CAST ( NULL AS REAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + tab2.col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 + + 12 + col0 FROM tab2
----
-8
53
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT ALL col1 * - CAST( NULL AS SIGNED ) + 14 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + 14 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6435
SELECT ALL - - CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col0 + - ( col1 + col1 ) AS col2 FROM tab0
----
-148
-159
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6437
SELECT col0 * CAST( NULL AS SIGNED ) + 70 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT col0 * CAST ( NULL AS INTEGER ) + 70 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col2 * - col2 - - col1 * tab1.col1 AS col1 FROM tab1
----
-2240
-3149
-9047

query I rowsort
SELECT + 13 AS col1 FROM tab1
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT + - col1 * 55 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
-152
-197
-56

skipif mysql # not compatible
query I rowsort label-6441
SELECT + - col1 * 55 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
-152
-197
-56

query I rowsort
SELECT DISTINCT col2 * - 59 AS col1 FROM tab1 AS cor0
----
-3186
-3363
-5664

query I rowsort
SELECT ( 12 ) * + col2 AS col1 FROM tab1 cor0
----
1152
648
684

query I rowsort
SELECT + cor0.col1 * 54 FROM tab0 AS cor0
----
4644
4914
5238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 64 col0 FROM tab2 AS cor0
----
102
90
91

query I rowsort
SELECT 13 * col0 AS col0 FROM tab1 AS cor0
----
1040
39
832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6447
SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 96 * 30 AS col2 FROM tab2 AS cor0
----
-2880
-2880
-2880

query I rowsort
SELECT DISTINCT - - 61 AS col1 FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT cor0.col0 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6451
SELECT ALL - - ( + ( col1 ) ) DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL - - ( + ( col1 ) ) / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 46 * ( + col0 ) FROM tab0 AS cor0
----
-1104
-1610
-4094

query I rowsort
SELECT DISTINCT - - col1 - + col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - 58 * + col0 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT ALL + 7 FROM tab0, tab2 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 col1 FROM tab2
----
7
78
79

query I rowsort
SELECT + ( col0 ) + tab2.col0 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL + 95 * 12 FROM tab2
----
1140
1140
1140

query I rowsort
SELECT ( + col1 * - col0 ) + col0 AS col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort
SELECT CAST ( cor0.col1 AS REAL ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6463
SELECT + 14 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6463
SELECT + 14 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col2 AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL - - col0 + col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + 21 AS col1 FROM tab2 cor0
----
21

query I rowsort
SELECT - - col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 94 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-101
-172
-173

query I rowsort
SELECT - + col2 * col2 + + 11 * + col1 AS col2 FROM tab1 cor0
----
-2630
-3139
-9073

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6470
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 - + 25 * col1 FROM tab0 AS cor0
----
-2126
-2186
-2390

query I rowsort
SELECT DISTINCT + col2 * - col2 + col1 AS col1 FROM tab1 cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-6473
SELECT col0 DIV - col0 + + col2 AS col1 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6473
SELECT col0 / - col0 + + col2 AS col1 FROM tab0 cor0
----
0
32
81

query I rowsort
SELECT DISTINCT + + col0 + - ( col0 + col2 ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT ALL col0 + col1 DIV col0 + col2 AS col2 FROM tab2 AS cor0
----
104
117
38

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL col0 + col1 / col0 + col2 AS col2 FROM tab2 AS cor0
----
104
117
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6476
SELECT DISTINCT col0 - CAST( col2 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT col0 - CAST ( col2 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - col1 + - 95 AS col1 FROM tab1 AS cor0
----
-105
-108
-121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT + col1 + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT + col1 + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT ALL - col0 * col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - col0 * col1 / col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - cor0.col1 * ( 33 + col0 ) FROM tab0 AS cor0
----
-11102
-4902
-6596

query I rowsort
SELECT DISTINCT - col2 * 31 * - col2 + + col0 FROM tab1 cor0
----
100783
285776
90399

onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT ALL + cor0.col1 - - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL + cor0.col1 - - col1 / col0 AS col1 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT - col1 * - 47 + col0 AS col1 FROM tab0 cor0
----
4066
4366
4594

query I rowsort
SELECT ALL + - col1 + cor0.col2 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT - col0 * - 66 + + col1 FROM tab2 cor0
----
493
5207
5231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * col1 col2 FROM tab1 cor0
----
1066
2132
820

query I rowsort
SELECT - 47 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT - col0 + + 66 AS col1 FROM tab0
----
-23
31
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 99 col0 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT - cor0.col2 + + col1 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL 44 * col1 FROM tab2
----
1364
2596
748

query I rowsort
SELECT DISTINCT - 64 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT ALL + 86 DIV - 9 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL + 86 / - 9 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049

query I rowsort
SELECT - + col2 * - col1 * col1 FROM tab0 cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT - col2 DIV - col0 + + col2 - col2 * + 65 AS col1 FROM tab0 AS cor0
----
-2111
-5248
-64

skipif mysql # not compatible
query I rowsort label-6496
SELECT - col2 / - col0 + + col2 - col2 * + 65 AS col1 FROM tab0 AS cor0
----
-2111
-5248
-64

query I rowsort
SELECT - + 80 AS col0 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - + 39 FROM tab2, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT + 0 * col2 + tab0.col1 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6500
SELECT ( - col2 ) * CAST( - 10 AS SIGNED ) + col0 * tab1.col2 - 17 * - col1 FROM tab1
----
1144
4388
8861

skipif mysql # not compatible
query I rowsort label-6500
SELECT ( - col2 ) * CAST ( - 10 AS INTEGER ) + col0 * tab1.col2 - 17 * - col1 FROM tab1
----
1144
4388
8861

query I rowsort
SELECT ALL - 10 * col2 + 58 AS col1 FROM tab1 AS cor0
----
-482
-512
-902

query I rowsort
SELECT + cor0.col2 * - col1 + + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - cor0.col1 + + col2 col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - col0 * cor0.col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT 61 * cor0.col0 + 78 AS col0 FROM tab2 AS cor0
----
4836
4897
505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119

query I rowsort
SELECT ALL - col0 + col2 * col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT col1 * + 20 AS col0 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5

query I rowsort
SELECT ALL - - col2 * + 2 AS col1 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL - 66 FROM tab2, tab0 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT DISTINCT + col2 + - CAST( - cor0.col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT + col2 + - CAST ( - cor0.col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1, tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + 85 FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL 64 * - col2 AS col0 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT DISTINCT + + 74 * + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT + col0 * col0 + + col2 * - col1 * - col0 AS col2 FROM tab0 AS cor0
----
4620
672039
68688

query I rowsort
SELECT + ( + col0 ) * - col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL cor1.col0 - + 63 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to b0e8e1faa8442becd0ace9a07d8158d1

query I rowsort
SELECT DISTINCT cor0.col0 * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL 83 * col0 + col2 FROM tab2 AS cor0
----
608
6500
6595

query I rowsort
SELECT DISTINCT - 81 * col1 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT - cor0.col2 * col0 - + ( - ( - cor0.col0 ) ) AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col1 ) + - col1 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 84 - - 4 AS col2 FROM tab2
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 - + col1 * ( col0 ) * tab0.col2 col1 FROM tab0
----
-672217
-6790
-70176

query I rowsort
SELECT + 27 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT tab2.col2 - + col0 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL 25 * + cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 74c634edb1b47d707181662c50effb1a

query I rowsort
SELECT DISTINCT 73 + 26 * col1 FROM tab0 AS cor0
----
2309
2439
2595

query I rowsort
SELECT DISTINCT - + 66 * + 76 * + cor0.col2 + 94 AS col0 FROM tab1 cor0
----
-270770
-285818
-481442

query I rowsort
SELECT ALL - + col1 * 79 - col1 * ( 31 ) AS col0 FROM tab2 AS cor0
----
-1870
-3410
-6490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT CAST( - col1 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-6534
SELECT CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL 44 * - col0 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL 50 + - 7 FROM tab0 cor0
----
43
43
43

query I rowsort
SELECT ALL + col1 * - col1 + col1 * + 98 FROM tab2 AS cor0
----
1377
2077
2301

query I rowsort
SELECT ALL col1 * col0 + cor0.col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + col0 * 17 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT ALL + ( - 65 ) AS col2 FROM tab2 AS cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) - + col2 col0 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT 90 * + ( col0 ) * - 21 + - 77 AS col1 FROM tab0
----
-168287
-45437
-66227

query I rowsort
SELECT ALL + col2 * col2 + - 10 * col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
2552
2832
8320

query I rowsort
SELECT ALL ( + col0 ) * - 80 AS col0 FROM tab1 AS cor0
----
-240
-5120
-6400

query I rowsort
SELECT col1 + + ( - col1 * - 65 ) AS col2 FROM tab1
----
1716
660
858

query I rowsort
SELECT tab0.col2 * col2 + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT - 58 * tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b791b4f040a58fe4339aa3450ab68397

query I rowsort
SELECT - 3 * 37 - col2 * tab0.col0 AS col0 FROM tab0
----
-146
-7409
-903

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * - 0 col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + - col0 * - 80 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6553
SELECT + - col0 + - CAST( NULL AS SIGNED ) * 22 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT + - col0 + - CAST ( NULL AS INTEGER ) * 22 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * + 17 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT DISTINCT col2 * ( + 15 + + col0 ) * 2 AS col0 FROM tab2 AS cor0
----
1188
4836
7144

query I rowsort
SELECT + col2 + + col0 * 20 AS col0 FROM tab1 AS cor0
----
114
1337
1696

query I rowsort
SELECT ALL - 91 + + col1 FROM tab0
----
-5
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - 70 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT ALL + col0 DIV ( col2 ) - col0 AS col1 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + col0 / ( col2 ) - col0 AS col1 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT ALL - col0 + col1 * + ( - col0 + - 1 ) * - col2 FROM tab1 AS cor0
----
101008
36986
5613

query I rowsort
SELECT + col2 * col0 * + col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6563
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col1 + 78 FROM tab0 AS cor0
----
164
169
175

query I rowsort
SELECT ALL col1 * ( - col2 ) + col1 * tab0.col1 * - 78 AS col1 FROM tab0
----
-579726
-653380
-733999

query I rowsort
SELECT + col2 * + 18 FROM tab2
----
468
486
684

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + tab0.col1 + ( col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT + 12 + + col1 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT 84 * + col1 FROM tab0 AS cor0
----
7224
7644
8148

onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT cor0.col0 DIV - col1 + col2 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-6571
SELECT cor0.col0 / - col1 + col2 FROM tab1 AS cor0
----
51
54
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6572
SELECT DISTINCT - col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT - col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 * 44 + + col1 + col0 * + col0 AS col1 FROM tab1
----
10637
2411
6614

query I rowsort
SELECT - 48 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col2 FROM tab1
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 95 col2 FROM tab0 AS cor0
----
3135
7790
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6578
SELECT + CAST( - 46 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-43
18
34

skipif mysql # not compatible
query I rowsort label-6578
SELECT + CAST ( - 46 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-43
18
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 * col0 col1 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT ALL + col1 * - col0 * + col1 FROM tab2 cor0
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6581
SELECT - + CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT - + CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( cor0.col2 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT ALL + col2 - - 83 DIV - col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + col2 - - 83 / - col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + 81 * - 50 FROM tab2 AS cor0
----
-4050
-4050
-4050

query I rowsort
SELECT ALL - col0 + - 11 * col1 FROM tab1 AS cor0
----
-174
-223
-289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + col1 + 95 col2 FROM tab1
----
1148
199
745

query I rowsort
SELECT 12 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT DISTINCT + 5 + - col0 FROM tab0
----
-19
-30
-84

query I rowsort
SELECT ALL - cor0.col1 * col1 + + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-26
-647
-76

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT DISTINCT - 85 + - col1 DIV - 39 col1 FROM tab1 AS cor0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - 85 + - col1 / - 39 col1 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT ALL - - col0 * + col2 - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6593
SELECT + 3 * col0 / CAST( NULL AS DECIMAL ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT + 3 * col0 / CAST ( NULL AS REAL ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + col1 + + cor0.col0 * 82 FROM tab1 AS cor0
----
218
5201
6477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col1 * 36 col2 FROM tab2 AS cor0
----
-10404
-125316
-34596

query I rowsort
SELECT - 62 FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
243 values hashing to 22d73994ba93cf376d9a127b5c347e13

query I rowsort
SELECT ALL - + col1 * - 11 FROM tab2 cor0
----
187
341
649

query I rowsort
SELECT col0 + 96 + col1 FROM tab1 AS cor0
----
125
170
189

query I rowsort
SELECT - - col1 * ( + col2 ) AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col0 + 8 AS col0 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT DISTINCT + - col1 + col2 * + col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col0 * 49 + + col0 + + cor0.col0 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT tab1.col1 + + col2 * 58 FROM tab1
----
3158
3316
5581

query I rowsort
SELECT DISTINCT col0 + col1 + col2 AS col0 FROM tab0
----
133
143
262

query I rowsort
SELECT + col1 * + col0 + + col0 * + col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT col1 * - col1 * - col0 AS col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - col1 + - col2 * col2 * col1 FROM tab0
----
-194
-611975
-93740

query I rowsort
SELECT col1 + cor0.col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT col2 * + col2 + + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT col2 * + col2 + col0 * + col0 FROM tab2 cor0
----
6760
7685
778

query I rowsort
SELECT + tab1.col0 + - col1 * - col0 FROM tab1
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * - col0 col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-6614
SELECT - tab0.col0 DIV - col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6614
SELECT - tab0.col0 / - col0 AS col0 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 > ( - col2 ) AND col0 + + col0 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6616
SELECT - col2 DIV + tab2.col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6616
SELECT - col2 / + tab2.col0 AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT + col2 * col2 * - col0 AS col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT - - cor0.col2 - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT col1 * cor0.col1 - - col2 * col1 AS col2 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT + col1 + - col0 * - col2 * col1 AS col2 FROM tab0 cor0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - tab0.col0 * - col0 * + col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL col2 - - col0 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 + col0 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT tab2.col1 + col0 AS col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT col2 DIV col2 + + col1 AS col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6627
SELECT col2 / col2 + + col1 AS col0 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL col0 + - tab1.col1 AS col1 FROM tab1
----
-23
54
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= - col1 * - col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 * - col2 ) BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 * col1 FROM tab0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + col2 + + col2 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( tab1.col0 * col0 )
----

query I rowsort
SELECT tab2.col0 * tab2.col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT col1 * col2 AS col2 FROM tab1 WHERE - col2 / col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 * tab0.col2 + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT + col2 + col1 + - col1 * - col1 FROM tab0 cor0
----
7515
8454
9507

query I rowsort
SELECT ALL + 31 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT ALL + col2 + - tab2.col1 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + - ( + 37 ) AS col0 FROM tab2 cor0
----
-115
-116
-44

query I rowsort
SELECT + 52 AS col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT col2 * col1 - + 6 * - col1 AS col0 FROM tab2 AS cor0
----
1023
1888
748

query I rowsort
SELECT 1 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT 55 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT ALL col0 - col0 * col2 DIV + tab0.col1 FROM tab0
----
15
35
9

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL col0 - col0 * col2 / + tab0.col1 FROM tab0
----
15
35
9

query I rowsort
SELECT DISTINCT col1 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - tab1.col2 - col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab2 WHERE NULL <> - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT DISTINCT col0 DIV - col2 AS col1 FROM tab0 WHERE NOT col1 DIV - col1 <= ( - col1 * + col1 )
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT col0 / - col2 AS col1 FROM tab0 WHERE NOT col1 / - col1 <= ( - col1 * + col1 )
----
-1
-35
0

query I rowsort
SELECT DISTINCT tab2.col1 + + col0 * col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT tab0.col0 FROM tab0 WHERE NOT + col2 NOT IN ( - col0 * + tab0.col1 + col2 )
----

query I rowsort
SELECT + tab0.col1 * + col1 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 + col1 * + col2 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col2 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col1 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + col1 + - 41 AS col1 FROM tab0 cor0
----
45
50
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * col1 col1 FROM tab2 AS cor0
----
22831
271518
6727

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-6661
SELECT col2 DIV ( - col1 * - col1 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6661
SELECT col2 / ( - col1 * - col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6662
SELECT DISTINCT - col0 + ( + cor0.col0 ) DIV col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - col0 + ( + cor0.col0 ) / col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + + cor0.col2 * col2 + col0 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT - 85 * + 43 * + col1 + + col1 AS col0 FROM tab2 cor0
----
-113274
-215586
-62118

query I rowsort
SELECT col1 * ( col1 ) - col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT - col1 + 7 FROM tab2 AS cor0
----
-10
-24
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT ALL ( ( col2 ) ) * 43 DIV + 64 FROM tab2 AS cor0
----
17
18
25

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL ( ( col2 ) ) * 43 / + 64 FROM tab2 AS cor0
----
17
18
25

query I rowsort
SELECT + 31 - cor0.col2 FROM tab1 AS cor0
----
-23
-26
-65

query I rowsort
SELECT ALL ( col1 ) + col2 AS col0 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT DISTINCT + col1 + 29 DIV col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT + col1 + 29 / col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) + - col2 * col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - col2 * + col1 - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - ( 67 ) + col2 * col1 * col2 + col2 * 59 FROM tab2 AS cor0
----
24125
26723
41351

query I rowsort
SELECT DISTINCT + + cor0.col0 + + 10 FROM tab2 AS cor0
----
17
88
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6675
SELECT - + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6675
SELECT - + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - - col2 * 50 + col1 * col2 FROM tab1 AS cor0
----
3420
4104
6048

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - 82 AS REAL ) * - col0 + ( col0 ) FROM tab1 AS cor0
----
-243
-5184
-6480

query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 * - col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - - 77 AS col0 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT 43 DIV - col0 + + col1 col0 FROM tab2 AS cor0
----
17
25
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6681
SELECT 43 / - col0 + + col1 col0 FROM tab2 AS cor0
----
17
25
59

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 38 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
1047
1057
1461

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT 69 DIV col2 col2 FROM tab0 cor0
----
0
2
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6685
SELECT 69 / col2 col2 FROM tab0 cor0
----
0
2
69

query I rowsort
SELECT DISTINCT + ( col0 ) * cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + col0 + col0 * + col2 * + col0 AS col1 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT - col0 * - col2 + 37 - + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
-611
2393
531

query I rowsort
SELECT ALL + 5 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT DISTINCT - col2 + + tab2.col0 * + col2 FROM tab2
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT ALL + col2 - 59 FROM tab2
----
-21
-32
-33

query I rowsort
SELECT + 2 * + col1 + - col1 + 71 * + ( - col1 ) * 3 AS col0 FROM tab0
----
-18232
-19292
-20564

query I rowsort
SELECT 18 - cor0.col1 FROM tab1 AS cor0
----
-8
5
8

query I rowsort
SELECT - 68 - col1 FROM tab1 AS cor0
----
-78
-81
-94

query I rowsort
SELECT DISTINCT cor0.col0 * cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9337cab14248fdf0584f0cfce23b6e23

query I rowsort
SELECT ALL + 35 AS col2 FROM tab1
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6698
SELECT - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6699
SELECT - 64 DIV col0 AS col1 FROM tab1
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-6699
SELECT - 64 / col0 AS col1 FROM tab1
----
-1
-21
0

query I rowsort
SELECT + - 37 + - col1 * col1 * col1 FROM tab1 AS cor0
----
-1037
-17613
-2234

query I rowsort
SELECT - + col1 * + col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + 33 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT - tab2.col1 * + 2 * + col1 FROM tab2
----
-1922
-578
-6962

query I rowsort
SELECT 76 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - col0 * col1 + ( col1 ) FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + col2 * + tab2.col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT 92 + + col0 FROM tab2 AS cor0
----
170
171
99

query I rowsort
SELECT DISTINCT - + 74 AS col1 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL col2 * 91 + + col1 - - col2 FROM tab1 AS cor0
----
4994
5254
8845

query I rowsort
SELECT - 61 * + cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
-1583
-546
-713

query I rowsort
SELECT ALL - cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + + 7 * cor0.col1 AS col0 FROM tab2 cor0
----
119
217
413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 * cor0.col2 col1 FROM tab1 AS cor0
----
-3132
-3306
-5568

query I rowsort
SELECT ALL + + col0 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + 61 + col1 FROM tab0 AS cor0
----
147
152
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT - col0 * col1 DIV 47 AS col1 FROM tab0
----
-172
-43
-72

skipif mysql # not compatible
query I rowsort label-6716
SELECT - col0 * col1 / 47 AS col1 FROM tab0
----
-172
-43
-72

query I rowsort
SELECT DISTINCT - col2 + col1 - + 50 FROM tab1
----
-133
-78
-97

query I rowsort
SELECT DISTINCT - col0 - col0 * 91 * col2 AS col0 FROM tab1
----
-14745
-332032
-698960

query I rowsort
SELECT DISTINCT col0 + tab2.col1 - - 77 * + col1 FROM tab2
----
1405
2425
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - ( - col2 ) col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT ( - ( tab0.col0 ) ) AS col2 FROM tab0, tab2 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6723
SELECT col0 DIV + ( col0 ) + col2 + - 83 FROM tab2
----
-44
-55
-56

skipif mysql # not compatible
query I rowsort label-6723
SELECT col0 / + ( col0 ) + col2 + - 83 FROM tab2
----
-44
-55
-56

query I rowsort
SELECT + col1 - 81 AS col0 FROM tab0 AS cor0
----
10
16
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6725
SELECT - + col1 - + CAST( + ( col0 ) AS SIGNED ) * + col0 * + col1 FROM tab2 cor0
----
-106114
-1550
-359015

skipif mysql # not compatible
query I rowsort label-6725
SELECT - + col1 - + CAST ( + ( col0 ) AS INTEGER ) * + col0 * + col1 FROM tab2 cor0
----
-106114
-1550
-359015

query I rowsort
SELECT - - 55 + col2 AS col2 FROM tab0 cor0
----
137
56
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6727
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * + 78 FROM tab1 AS cor0
----
-234
-4992
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - cor0.col1 ) col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col1 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - ( cor0.col0 ) + - col0 * 0 - col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT cor0.col0 * - 42 - + col2 FROM tab2 AS cor0
----
-321
-3302
-3356

query I rowsort
SELECT ALL + + col1 + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT tab2.col1 * + ( + 53 ) AS col0 FROM tab2
----
1643
3127
901

query I rowsort
SELECT + + 45 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6736
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + cor0.col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6737
SELECT DISTINCT col0 * col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT col0 * col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT ALL + col0 DIV - col2 + col1 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL + col0 / - col2 + col1 FROM tab0 AS cor0
----
62
86
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 + - ( 94 ) col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 25c827c080269894a9747268bcfda55a

query I rowsort
SELECT DISTINCT + + col2 + 52 * + ( - col1 ) FROM tab0 AS cor0
----
-4439
-4650
-5043

query I rowsort
SELECT ALL - - cor0.col0 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + 48 FROM tab2
----
48
48
48

query I rowsort
SELECT DISTINCT col1 * col1 + ( col0 * + ( + col2 ) ) + - col0 * cor0.col0 FROM tab1 AS cor0
----
-348
1449
829

query I rowsort
SELECT ALL + col1 - ( + 3 ) FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT - - col0 * 45 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT ALL + col2 * 24 AS col0 FROM tab0 AS cor0
----
1968
24
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT DISTINCT - col2 + - 23 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-48
-49
-60

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT - col2 + - 23 + col1 / col1 AS col1 FROM tab2 AS cor0
----
-48
-49
-60

query I rowsort
SELECT DISTINCT + col1 * 59 * - 63 + col1 * col1 AS col2 FROM tab1 AS cor0
----
-37070
-48152
-95966

query I rowsort
SELECT ALL col2 + - col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + col0 * - 87 AS col2 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT ALL col1 * - col2 + + col2 * col2 * + col2 AS col0 FROM tab0 AS cor0
----
-96
33099
543906

query I rowsort
SELECT ALL + col1 + 6 * 1 AS col1 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT + col2 + + 38 AS col2 FROM tab0 AS cor0
----
120
39
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT DISTINCT - col0 * + col2 - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT - col0 * + col2 - col1 / - col1 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col2 + col1 col0 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 + 38 col0 FROM tab2 AS cor0
----
1572
684
875

onlyif mysql # use DIV operator for integer division
query I rowsort label-6757
SELECT ALL + cor0.col0 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + cor0.col0 / + cor0.col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col2 * ( col2 ) AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ( tab2.col1 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT 1 * + col0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT - col1 + tab1.col1 * + col2 AS col2 FROM tab1
----
1235
1378
560

query I rowsort
SELECT + 22 + col2 AS col2 FROM tab0
----
104
23
55

query I rowsort
SELECT + col0 * + col1 + - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL - 30 AS col1 FROM tab2
----
-30
-30
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT ALL - col0 + - col0 DIV + 81 AS col1 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL - col0 + - col0 / + 81 AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + + 53 * col0 FROM tab0 cor0
----
1272
1855
4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT DISTINCT + col0 * - col2 + + 54 * col0 DIV - col0 FROM tab0 AS cor0
----
-7352
-846
-89

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT + col0 * - col2 + + 54 * col0 / - col0 FROM tab0 AS cor0
----
-7352
-846
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - + col2 * - 82 col1 FROM tab0 AS cor0
----
2739
6806
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6770
SELECT col1 + CAST( NULL AS SIGNED ) - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT col1 + CAST ( NULL AS INTEGER ) - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col1 * col2 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 + + 75 FROM tab0
----
108
157
76

query I rowsort
SELECT + - 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT col0 + ( 63 ) * col1 * col2 + 3 * col1 FROM tab0
----
179076
470468
6437

query I rowsort
SELECT DISTINCT - 51 * 30 FROM tab0
----
-1530

query I rowsort
SELECT 14 * + 74 FROM tab0
----
1036
1036
1036

query I rowsort
SELECT ALL ( + ( col1 ) * + ( col1 ) ) AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT 54 + + tab2.col2 AS col0 FROM tab2
----
80
81
92

query I rowsort
SELECT - col2 + - 66 FROM tab0
----
-148
-67
-99

query I rowsort
SELECT + 28 * 68 AS col2 FROM tab0
----
1904
1904
1904

query I rowsort
SELECT DISTINCT - 8 FROM tab2
----
-8

query I rowsort
SELECT 85 * + col2 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT DISTINCT + col2 + - col0 * + cor0.col2 * col0 FROM tab0 AS cor0
----
-1224
-18975
-649440

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT + - 7 + col0 FROM tab0 AS cor0
----
17
28
82

query I rowsort
SELECT + - col2 + ( - col2 ) + + col1 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6789
SELECT ALL - tab1.col1 DIV - tab1.col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - tab1.col1 / - tab1.col1 AS col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab2
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT ALL - - cor0.col1 * - col1 FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6794
SELECT DISTINCT cor0.col1 DIV col0 + + 9 FROM tab0 cor0
----
10
11
12

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT cor0.col1 / col0 + + 9 FROM tab0 cor0
----
10
11
12

query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col1 + - col1 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT 40 + cor1.col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
129
64
75

query I rowsort
SELECT + col0 * + col0 + + ( col2 ) * col2 AS col1 FROM tab1 AS cor0
----
15616
2925
7345

query I rowsort
SELECT + + col0 + + col2 * 44 + + col1 AS col2 FROM tab2 AS cor0
----
1226
1281
1768

query I rowsort
SELECT ALL + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col2 * ( 43 ) FROM tab1 cor0
----
2322
2451
4128

query I rowsort
SELECT + + cor0.col0 * 22 + - 72 + col2 AS col0 FROM tab0 cor0
----
1968
489
699

query I rowsort
SELECT col2 * - 1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT DISTINCT col0 + + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT col0 + + col1 / col1 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + - col0 * + col0 + - col1 + + col2 FROM tab2 AS cor0
----
-53
-6117
-6220

onlyif mysql # use DIV operator for integer division
query I rowsort label-6806
SELECT DISTINCT - col2 * col0 DIV + ( - col0 ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - col2 * col0 / + ( - col0 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 * col1 - - 50 FROM tab2 AS cor0
----
1584
696
887

query I rowsort
SELECT + - col1 + col1 + col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6809
SELECT + col0 + + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6809
SELECT + col0 + + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col2 + + 4 * ( col0 ) FROM tab0 AS cor0
----
129
141
438

query I rowsort
SELECT DISTINCT - col1 + 29 * 77 FROM tab2 AS cor0
----
2174
2202
2216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 44 col0 FROM tab1 cor0
----
-1144
-440
-572

query I rowsort
SELECT DISTINCT col1 + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + cor0.col0 * + ( - 61 ) AS col0 FROM tab0 AS cor0
----
-1464
-2135
-5429

onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT DISTINCT - col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT - col2 / + col0 AS col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT ALL + cor0.col1 + + ( - ( cor0.col1 ) ) AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * col2 + + 55 + + col2 FROM tab2 AS cor0
----
1615
739
919

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6818
SELECT + CAST( NULL AS SIGNED ) + + 19 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6818
SELECT + CAST ( NULL AS INTEGER ) + + 19 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col2 * - col1 + + col1 AS col0 FROM tab1 cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT - + col1 DIV + col0 + - col0 * - ( 38 ) * + col2 - - col1 FROM tab2 AS cor0
----
114093
7209
77123

skipif mysql # not compatible
query I rowsort label-6820
SELECT - + col1 / + col0 + - col0 * - ( 38 ) * + col2 - - col1 FROM tab2 AS cor0
----
114093
7209
77123

query I rowsort
SELECT + - 58 * + col2 + cor0.col2 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT - - ( + col2 ) * col1 - - 25 AS col0 FROM tab2 AS cor0
----
1559
671
862

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6823
SELECT 47 + col1 / - col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT 47 + col1 / - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * - col0 + - col1 * cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-919
2525
5873

query I rowsort
SELECT - 38 * ( - col0 ) + col2 FROM tab0 AS cor0
----
1331
3464
945

query I rowsort
SELECT ALL col1 * col2 + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT - 57 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-50
21
22

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - 77 + col2 AS col1 FROM tab1 AS cor0
----
-20
-23
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col0 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + 40 * col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT ALL 23 AS col0 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT ALL + 29 DIV - col0 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
17

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + 29 / - col0 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
17

query I rowsort
SELECT DISTINCT col1 + - col2 * - ( - 71 + + col1 ) * cor0.col0 AS col1 FROM tab1 cor0
----
-222518
-445427
-7264

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL 5 + - tab0.col0 * tab0.col1 AS col0 FROM tab0
----
-2059
-3390
-8094

query I rowsort
SELECT DISTINCT + 57 + 45 AS col2 FROM tab1
----
102

query I rowsort
SELECT - + ( cor0.col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT - col0 + cor0.col0 DIV ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-6840
SELECT - col0 + cor0.col0 / ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - cor0.col2 + + cor0.col1 * 48 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to bb105f2a31163d670cbede198b6ddffb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6844
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 85 * + col0 - 75 FROM tab1 AS cor0
----
180
5365
6725

onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT - + 65 * col1 DIV - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-25
23
260

skipif mysql # not compatible
query I rowsort label-6846
SELECT - + 65 * col1 / - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-25
23
260

query I rowsort
SELECT ALL + - col1 * cor0.col2 + - ( 51 + col0 ) AS col0 FROM tab1 AS cor0
----
-1379
-1458
-685

onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT ALL 58 DIV 92 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL 58 / 92 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( - tab0.col0 * col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 99 FROM tab2, tab1 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT ( 72 ) * col2 AS col2 FROM tab1
----
3888
4104
6912

query I rowsort
SELECT DISTINCT col0 + - cor0.col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + 8 FROM tab0 cor0
----
8
8
8

query I rowsort
SELECT - - cor0.col2 * + col1 * + 88 FROM tab1 AS cor0
----
109824
123552
50160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + tab2.col2 col0 FROM tab2
----
101
89
90

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 AS REAL ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( ( - col2 ) * - col1 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + 46 * - cor0.col2 FROM tab0 cor0
----
-1518
-3772
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6859
SELECT - + col0 + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT - + col0 + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL + 58 - col0 * + col2 FROM tab1
----
-104
-3590
-7622

query I rowsort
SELECT + col1 + + col2 * col2 AS col0 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT 95 * + cor0.col0 AS col0 FROM tab0 cor0
----
2280
3325
8455

query I rowsort
SELECT - 77 + + col1 * + 0 AS col0 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT - + col0 + - col2 + - 46 FROM tab2 AS cor0
----
-150
-163
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT + + col2 DIV 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6866
SELECT + + col2 / 96 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT + col1 * 55 DIV + col1 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-6867
SELECT + col1 * 55 / + col1 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT col0 * - cor0.col0 + 88 * + col0 FROM tab2 AS cor0
----
567
711
780

query I rowsort
SELECT col1 * + 40 AS col2 FROM tab1 AS cor0
----
1040
400
520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6870
SELECT DISTINCT cor1.col0 * - CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT cor1.col0 * - CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT 75 * - col2 AS col0 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT col2 * 26 AS col0 FROM tab2
----
676
702
988

query I rowsort
SELECT + - 70 AS col2 FROM tab2 cor0
----
-70
-70
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6875
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 35 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 35 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6877
SELECT + CAST( NULL AS SIGNED ) + 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT + CAST ( NULL AS INTEGER ) + 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT ALL - CAST( col0 AS SIGNED ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - CAST ( col0 AS INTEGER ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL 98 * + 96 + - col1 AS col1 FROM tab1 AS cor0
----
9382
9395
9398

query I rowsort
SELECT DISTINCT - 91 * col1 AS col2 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT + ( col2 ) * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6882
SELECT - - CAST( 54 AS SIGNED ) * col1 + col0 FROM tab1 AS cor0
----
1407
604
782

skipif mysql # not compatible
query I rowsort label-6882
SELECT - - CAST ( 54 AS INTEGER ) * col1 + col0 FROM tab1 AS cor0
----
1407
604
782

query I rowsort
SELECT DISTINCT 97 * col1 + col2 + col2 * + cor0.col1 FROM tab0 AS cor0
----
11213
16371
9507

query I rowsort
SELECT cor0.col2 + - col1 * col1 * - ( + col0 + - col1 ) AS col2 FROM tab2 AS cor0
----
-23037
17956
66165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6885
SELECT CAST( cor0.col0 AS SIGNED ) + - col1 col2 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6885
SELECT CAST ( cor0.col0 AS INTEGER ) + - col1 col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT DISTINCT + 63 DIV + col0 + + col2 AS col0 FROM tab1 AS cor0
----
57
75
96

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT + 63 / + col0 + + col2 AS col0 FROM tab1 AS cor0
----
57
75
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col1 + col1 * - col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + ( - col1 ) * - col2 + - 53 * - cor0.col1 + cor0.col1 * 50 FROM tab0 cor0
----
1911
6020
9894

query I rowsort
SELECT DISTINCT + 17 * - col1 + col2 FROM tab1 AS cor0
----
-113
-125
-388

query I rowsort
SELECT col0 + ( cor0.col0 ) * + ( + col2 ) * - col2 FROM tab2 cor0
----
-113997
-5096
-52650

query I rowsort
SELECT DISTINCT - col1 - + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT - col2 * - 49 + - col1 * + col1 FROM tab1 AS cor0
----
1970
2693
4535

query I rowsort
SELECT ALL + col2 - 12 FROM tab1 AS cor0
----
42
45
84

query I rowsort
SELECT - - 38 + + col0 FROM tab2 cor0
----
116
117
45

query I rowsort
SELECT ALL - + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL 81 * col1 + col2 AS col0 FROM tab2 AS cor0
----
1415
2538
4805

query I rowsort
SELECT + cor2.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col0 FROM tab2 AS cor0
----
11

query I rowsort
SELECT DISTINCT + 86 + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-14
-590
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6900
SELECT ALL + 4 DIV col2 + + col2 AS col0 FROM tab0 AS cor0
----
33
5
82

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + 4 / col2 + + col2 AS col0 FROM tab0 AS cor0
----
33
5
82

query I rowsort
SELECT DISTINCT col0 * + 96 + + col2 AS col2 FROM tab1 cor0
----
342
6201
7776

query I rowsort
SELECT - + cor0.col1 + 12 FROM tab1 AS cor0
----
-1
-14
2

query I rowsort
SELECT ( - col1 ) * col0 * + col1 AS col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT + 77 FROM tab1, tab0 AS cor0
----
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT - - col0 - - col2 DIV + ( col0 ) AS col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6905
SELECT - - col0 - - col2 / + ( col0 ) AS col0 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT ALL col0 * - col2 + 91 AS col2 FROM tab1
----
-3557
-71
-7589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( + tab0.col2 ) * col0 col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL col1 * + col2 + - col2 * - col0 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT ALL + + col1 + 83 AS col1 FROM tab0 AS cor0
----
169
174
180

query I rowsort
SELECT col2 * - 3 FROM tab2 cor0
----
-114
-78
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6911
SELECT DISTINCT + col2 * + CAST( col0 AS SIGNED ) + + col0 + - col2 FROM tab1 AS cor0
----
111
3655
7664

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT + col2 * + CAST ( col0 AS INTEGER ) + + col0 + - col2 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT DISTINCT - col2 + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - + col0 + - col2 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT cor0.col1 * - 33 + + 87 FROM tab1 AS cor0
----
-243
-342
-771

query I rowsort
SELECT DISTINCT + col0 + - 95 AS col2 FROM tab1 AS cor0
----
-15
-31
-92

query I rowsort
SELECT DISTINCT + - col2 * - ( col2 ) + col1 FROM tab0 cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT tab0.col2 + 36 FROM tab0, tab2 cor0
----
9 values hashing to 02e74cc85484ebef95d60e4d930018a3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 17 col1 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT col2 + - col1 * + col0 * col0 FROM tab0
----
-118824
-49503
-720729

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT + ( 58 ) AS col2 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6923
SELECT + CAST( - col2 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6923
SELECT + CAST ( - col2 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 + col0 + - col2 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 + tab2.col1 AS col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6926
SELECT col2 DIV + 71 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6926
SELECT col2 / + 71 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT + 23 - tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 1ef3ceb280f162cb3bf884358eb2c607

onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT DISTINCT cor0.col2 DIV 99 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT cor0.col2 / 99 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col0 + - 3 col2 FROM tab1 AS cor0
----
159
3645
7677

onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT - tab1.col2 DIV col1 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6930
SELECT - tab1.col2 / col1 AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - - col2 * - col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT ALL - col2 + + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL - col2 + + col0 / col2 AS col1 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT col1 + - col2 * + tab2.col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col0 - col0 * + tab2.col0 AS col2 FROM tab2
----
-42
-6006
-6162

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= col1
----

query I rowsort
SELECT - col0 * tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col1 * col0 * + col2 + + col0 + + tab1.col1 FROM tab1 WHERE NULL IN ( + col0 / + col0 + - tab1.col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6939
SELECT ALL + col0 + col0 * col0 DIV col1 FROM tab1
----
3
473
572

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL + col0 + col0 * col0 / col1 FROM tab1
----
3
473
572

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab0
----
-10

query I rowsort
SELECT cor0.col2 * tab0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 1a327f2a52a0a35b577f58109ee147a4

query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab1
----
65

query I rowsort
SELECT ALL + col1 * ( 21 ) AS col0 FROM tab1
----
210
273
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * - col0 col2 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT DISTINCT 64 + 82 FROM tab1, tab0 AS cor0
----
146

query I rowsort
SELECT 57 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT DISTINCT 78 * + 86 FROM tab1
----
6708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 71801088bb30ca6eac036729ebfbbace

query I rowsort
SELECT + ( - 83 ) FROM tab1
----
-83
-83
-83

query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT 30 * + 94 AS col2 FROM tab1
----
2820
2820
2820

query I rowsort
SELECT DISTINCT + ( - 11 ) * - cor0.col2 + - col1 FROM tab2 AS cor0
----
227
266
401

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6954
SELECT + CAST( NULL AS SIGNED ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT + CAST ( NULL AS INTEGER ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6955
SELECT 20 DIV col2 FROM tab0
----
0
0
20

skipif mysql # not compatible
query I rowsort label-6955
SELECT 20 / col2 FROM tab0
----
0
0
20

query I rowsort
SELECT ALL + cor0.col2 * 79 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + 62 * + col1 - - col0 FROM tab0 AS cor0
----
5356
5731
6049

query I rowsort
SELECT - col0 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - 84 + + col1 AS col2 FROM tab1 cor0
----
-58
-71
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT col2 + col0 DIV + 72 AS col2 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-6961
SELECT col2 + col0 / + 72 AS col2 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT DISTINCT - + 58 AS col1 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT + col0 * col1 + ( col2 * + col1 ) AS col2 FROM tab2 cor0
----
1054
1989
6136

query I rowsort
SELECT 29 + - col1 AS col0 FROM tab1 cor0
----
16
19
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT + - col2 + col1 + - col1 * col0 DIV col0 AS col0 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6965
SELECT + - col2 + col1 + - col1 * col0 / col0 AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL cor0.col1 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT DISTINCT col1 DIV col1 + + col2 AS col0 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT col1 / col1 + + col2 AS col0 FROM tab0 cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6968
SELECT ALL + col2 DIV + tab0.col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL + col2 / + tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * col0 + col0 * - col2 FROM tab0
----
-216
1190
623

query I rowsort
SELECT + col1 + - tab0.col0 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL + ( + col1 ) * + col2 * col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + col2 * + col0 * - col1 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - ( 45 ) * + col0 AS col2 FROM tab2
----
-315
-3510
-3555

onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT ( col2 ) * - col2 + - col2 DIV col1 col1 FROM tab1 AS cor0
----
-2918
-3254
-9223

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6974
SELECT ( col2 ) * - col2 + - col2 / col1 col1 FROM tab1 AS cor0
----
-2918
-3254
-9223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 90 + + col1 col1 FROM tab2 AS cor0
----
107
121
149

onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT ALL col1 - - col2 DIV - cor0.col0 AS col0 FROM tab0 cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL col1 - - col2 / - cor0.col0 AS col0 FROM tab0 cor0
----
85
91
97

query I rowsort
SELECT + 75 * 23 AS col2 FROM tab2
----
1725
1725
1725

query I rowsort
SELECT + 34 * + col0 AS col0 FROM tab1
----
102
2176
2720

query I rowsort
SELECT DISTINCT + 80 + col2 AS col1 FROM tab1
----
134
137
176

query I rowsort
SELECT + + 67 * cor0.col1 + col2 AS col0 FROM tab1 cor0
----
1796
727
967

query I rowsort
SELECT - - 2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT + ( - cor0.col2 ) + col0 + col0 AS col0 FROM tab2 AS cor0
----
-13
120
130

onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT - col0 FROM tab0 WHERE NOT - col2 + col2 > - col2 DIV + col1
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6983
SELECT - col0 FROM tab0 WHERE NOT - col2 + col2 > - col2 / + col1
----
-24
-35
-89

query I rowsort
SELECT ALL col2 * - col2 * + col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ALL col1 * - tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - tab2.col0 * col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col0 * + col1 * tab0.col2 AS col1 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT - col1 * tab2.col2 + + col1 DIV - col1 FROM tab2
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-6988
SELECT - col1 * tab2.col2 + + col1 / - col1 FROM tab2
----
-1535
-647
-838

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + col0 + + col2 <> NULL
----

query I rowsort
SELECT - col2 * - tab0.col0 * col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - col0 + - col1 >= ( NULL )
----

query I rowsort
SELECT ALL col2 * col1 * tab2.col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT - col2 * + col2 * - col0 AS col0 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT DISTINCT + col2 - - col0 DIV - col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT + col2 - - col0 / - col1 AS col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * col2 * col1 col0 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT * FROM tab2 WHERE - col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + + col1 col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT + tab0.col0 + tab0.col0 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7000
SELECT ALL - col1 * col2 + - col1 DIV col1 FROM tab2
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL - col1 * col2 + - col1 / col1 FROM tab2
----
-1535
-647
-838

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND col0 * col2 / - col2
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( - col2 - col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 + + col1 col1 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT DISTINCT - col1 - col1 DIV col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT - col1 - col1 / col1 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT col2 * + col0 + + col1 AS col0 FROM tab2
----
2087
220
3019

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN col2 AND col1 OR - col2 + cor0.col2 IN ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 * + col0 + col0 AS col1 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col2 - - col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 * cor0.col2 col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col1 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - cor0.col0 + - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col2 * col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 * cor0.col2 + - col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + cor0.col0 * col1 < NULL
----

query I rowsort
SELECT col1 + + col2 + tab2.col2 FROM tab2
----
111
85
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col0 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7019
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col1 * 79 FROM tab0 AS cor0
----
6761
7107
7662

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col1 * 79 FROM tab0 AS cor0
----
6761
7107
7662

query I rowsort
SELECT ALL - ( + 72 ) * col2 + - ( col0 ) * col2 + col2 FROM tab2 AS cor0
----
-2106
-3874
-5700

query I rowsort
SELECT + - ( + 42 ) + col2 FROM tab0 AS cor0
----
-41
-9
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7022
SELECT ALL CAST( NULL AS DECIMAL ) * col0 - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL CAST ( NULL AS REAL ) * col0 - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 * cor0.col0 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT col1 + - 49 * - col2 * + 24 FROM tab1 AS cor0
----
112909
63530
67042

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( ( col1 ) AS REAL ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT ALL col0 + + col1 DIV col0 col1 FROM tab0 AS cor0
----
27
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL col0 + + col1 / col0 col1 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT cor0.col1 + 17 * + col2 FROM tab0 AS cor0
----
114
1485
647

query I rowsort
SELECT DISTINCT + - 94 + - col2 AS col2 FROM tab2 AS cor0
----
-120
-121
-132

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7029
SELECT DISTINCT + + cor0.col2 * - col2 * + cor0.col0 + CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + + cor0.col2 * - col2 * + cor0.col0 + CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * + cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT ALL col1 DIV 87 FROM tab0 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL col1 / 87 FROM tab0 cor0
----
0
1
1

query I rowsort
SELECT + col2 + cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + 34 * col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT ALL + 67 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT DISTINCT + - 65 * col1 AS col2 FROM tab0 AS cor0
----
-5590
-5915
-6305

query I rowsort
SELECT DISTINCT - + 7 AS col1 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT ALL - - 47 + + col1 AS col0 FROM tab1 AS cor0
----
57
60
73

query I rowsort
SELECT ALL - + col0 * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - ( - col0 * + col0 ) AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL - 95 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT DISTINCT cor0.col1 * + cor1.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ae10dfda2508149d338269366c35c584

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT ALL + col1 DIV 48 + + 4 AS col2 FROM tab2 AS cor0
----
4
4
5

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL + col1 / 48 + + 4 AS col2 FROM tab2 AS cor0
----
4
4
5

query I rowsort
SELECT DISTINCT col2 * - 93 AS col1 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT DISTINCT + col1 * 34 FROM tab2 AS cor0
----
1054
2006
578

onlyif mysql # use DIV operator for integer division
query I rowsort label-7045
SELECT ALL - col1 * ( 85 * col0 ) + - col0 + + col2 DIV col1 FROM tab2 AS cor0
----
-114232
-18452
-391248

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL - col1 * ( 85 * col0 ) + - col0 + + col2 / col1 FROM tab2 AS cor0
----
-114232
-18452
-391248

query I rowsort
SELECT ALL + col0 * 30 AS col2 FROM tab0 AS cor0
----
1050
2670
720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7047
SELECT col1 + - CAST( NULL AS SIGNED ) * - 47 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT col1 + - CAST ( NULL AS INTEGER ) * - 47 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7048
SELECT DISTINCT col1 + + CAST( NULL AS DECIMAL ) * 64 * - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT col1 + + CAST ( NULL AS REAL ) * 64 * - col1 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7049
SELECT + col0 * - CAST( + col1 AS SIGNED ) - col1 FROM tab2
----
-1360
-248
-4661

skipif mysql # not compatible
query I rowsort label-7049
SELECT + col0 * - CAST ( + col1 AS INTEGER ) - col1 FROM tab2
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT ( - 39 ) DIV - col2 FROM tab0 AS cor0
----
0
1
39

skipif mysql # not compatible
query I rowsort label-7050
SELECT ( - 39 ) / - col2 FROM tab0 AS cor0
----
0
1
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7051
SELECT ALL col2 / CAST( NULL AS SIGNED ) + col2 / col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL col2 / CAST ( NULL AS INTEGER ) + col2 / col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 60 FROM tab0 AS cor0
----
-29
25
36

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
54

query I rowsort
SELECT 93 + + 71 * col1 AS col0 FROM tab0 cor0
----
6199
6554
6980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7055
SELECT ALL - CAST( - cor0.col1 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL - CAST ( - cor0.col1 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - tab2.col0 * - 89 FROM tab2
----
623
6942
7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT DISTINCT + 62 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT + 62 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT ALL col0 DIV col0 + col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL col0 / col0 + col2 FROM tab1
----
55
58
97

query I rowsort
SELECT - + col2 * cor0.col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT + col1 * col1 + 97 FROM tab2
----
1058
3578
386

query I rowsort
SELECT col2 + + col1 * col0 + col0 AS col1 FROM tab1
----
1216
135
761

query I rowsort
SELECT ALL col2 * col1 + 1 * col1 + + tab0.col0 FROM tab0
----
229
2948
7642

query I rowsort
SELECT DISTINCT - - 99 + col2 AS col1 FROM tab2 AS cor0
----
125
126
137

query I rowsort
SELECT DISTINCT + col1 + ( 80 ) * + col1 AS col0 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT ALL - + cor0.col2 * ( - ( - col0 ) ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 * - 16 - col1 * col1 FROM tab1 AS cor0
----
-1092
-260
-377

query I rowsort
SELECT cor0.col2 + 17 * - col1 * - col1 FROM tab1 AS cor0
----
11546
1757
2969

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 AS cor2, tab2
----
13122 values hashing to f1de6a366f92565154f517aabddc5957

query I rowsort
SELECT + - col1 * col1 + 22 + cor0.col1 FROM tab1 AS cor0
----
-134
-628
-68

query I rowsort
SELECT + + cor0.col0 - + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col1 * - 83 + 13 * + col0 FROM tab0 cor0
----
-6396
-6826
-7596

query I rowsort
SELECT - col0 + - col2 + col2 * col2 FROM tab0 AS cor0
----
-35
1032
6553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7073
SELECT + + cor0.col2 - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-7073
SELECT + + cor0.col2 - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - 81 + col0 AS col1 FROM tab2 AS cor0
----
-2
-3
-74

query I rowsort
SELECT ALL col0 * col2 + - tab0.col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab1 cor0, tab1 cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7077
SELECT + col2 DIV - col2 + 73 FROM tab0 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-7077
SELECT + col2 / - col2 + 73 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7078
SELECT - - col0 + cor0.col1 DIV col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-7078
SELECT - - col0 + cor0.col1 / col2 FROM tab0 AS cor0
----
132
26
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT ALL + col2 DIV + 71 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL + col2 / + 71 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 * - 98 AS col1 FROM tab0 cor0
----
-8342
-8827
-9409

query I rowsort
SELECT ALL - cor0.col1 * - 40 + 34 FROM tab0 AS cor0
----
3474
3674
3914

onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT + - cor0.col0 DIV col2 + 39 AS col1 FROM tab0 AS cor0
----
38
39
4

skipif mysql # not compatible
query I rowsort label-7082
SELECT + - cor0.col0 / col2 + 39 AS col1 FROM tab0 AS cor0
----
38
39
4

query I rowsort
SELECT ALL + col2 * - 0 * col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 + 75 AS col0 FROM tab1 cor0
----
101
85
88

query I rowsort
SELECT ALL cor0.col1 + 33 AS col0 FROM tab1 AS cor0
----
43
46
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col0 * + col2 col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + col2 + ( + 21 ) * col1 FROM tab2 cor0
----
1265
395
678

query I rowsort
SELECT + - col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * ( 33 ) + + col0 AS col2 FROM tab1 AS cor0
----
394
509
861

query I rowsort
SELECT DISTINCT col2 * 42 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT ALL - 25 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 cor0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT - col1 + - 80 FROM tab2 cor0
----
-111
-139
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7094
SELECT + + CAST( + col1 AS SIGNED ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-7094
SELECT + + CAST ( + col1 AS INTEGER ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 44 * + col1 FROM tab0 cor0
----
3784
4004
4268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7096
SELECT - CAST( NULL AS SIGNED ) * 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT - CAST ( NULL AS INTEGER ) * 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + cor0.col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - col0 * + 67 FROM tab1 AS cor0
----
-201
-4288
-5360

query I rowsort
SELECT ALL ( + cor0.col0 + 85 * + 74 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 4b4a41a91400a911cdcfd702a551916d

query I rowsort
SELECT cor0.col0 * col0 + col2 AS col0 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT - col1 - + ( cor0.col2 ) FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7102
SELECT 79 * col1 + col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT 79 * col1 + col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - - col0 * - col1 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL - col0 * + col0 + - 92 AS col2 FROM tab2 AS cor0
----
-141
-6176
-6333

query I rowsort
SELECT + ( col0 ) + 48 * 11 FROM tab1 AS cor0
----
531
592
608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 75 col1 FROM tab1
----
139
155
78

query I rowsort
SELECT ALL + col1 * + col1 - col2 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7108
SELECT + col1 + col2 DIV - 53 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7108
SELECT + col1 + col2 / - 53 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 * 58 FROM tab0 AS cor0
----
164604
432796
5626

query I rowsort
SELECT DISTINCT + col0 * col0 + - 25 AS col1 FROM tab2 AS cor0
----
24
6059
6216

query I rowsort
SELECT ( + col0 ) * - 78 FROM tab1 AS cor0
----
-234
-4992
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * col1 + - ( col2 ) * col1 + - CAST ( + col1 AS REAL ) * - col0 col0 FROM tab1 AS cor0
----
-39
-650
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-7113
SELECT + 49 DIV - ( + col0 ) + - ( ( col2 ) ) FROM tab1
----
-57
-70
-96

skipif mysql # not compatible
query I rowsort label-7113
SELECT + 49 / - ( + col0 ) + - ( ( col2 ) ) FROM tab1
----
-57
-70
-96

query I rowsort
SELECT + 55 * + tab1.col2 - - col2 * ( + 79 ) AS col2 FROM tab1
----
12864
7236
7638

query I rowsort
SELECT tab0.col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7116
SELECT + CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7116
SELECT + CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT + col2 * - tab2.col2 - col2 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT col2 + col2 * ( - col0 ) FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - + 0 * - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + + col0 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + 6 + + col1 * - 29 * + 13 AS col1 FROM tab2 AS cor0
----
-11681
-22237
-6403

query I rowsort
SELECT + + 57 - col2 * col2 * + cor0.col1 FROM tab1 AS cor0
----
-119751
-32433
-75759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) * - col1 + + col1 * cor0.col1 * + col2 col2 FROM tab2 cor0
----
10693
24986
87025

query I rowsort
SELECT DISTINCT col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col2 * 72 col1 FROM tab1 cor0
----
14592
4050
7752

onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT col1 DIV + col1 - - 67 FROM tab1 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-7126
SELECT col1 / + col1 - - 67 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + + col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col1 + + 95 col2 FROM tab2 AS cor0
----
-194
-3386
-866

onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT col2 * + col1 + + tab1.col0 DIV - tab1.col1 AS col0 FROM tab1
----
1242
1404
564

skipif mysql # not compatible
query I rowsort label-7129
SELECT col2 * + col1 + + tab1.col0 / - tab1.col1 AS col0 FROM tab1
----
1242
1404
564

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7130
SELECT ALL - CAST( - 19 AS SIGNED ) * tab1.col2 AS col2 FROM tab1
----
1026
1083
1824

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - CAST ( - 19 AS INTEGER ) * tab1.col2 AS col2 FROM tab1
----
1026
1083
1824

query I rowsort
SELECT - cor1.col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT 75 FROM tab0, tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT + - 44 + - col1 * - cor0.col2 + ( + col2 ) FROM tab1 AS cor0
----
1300
1414
583

query I rowsort
SELECT ALL - + 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT + + cor0.col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 46 ) * - col1 col1 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT DISTINCT + 57 FROM tab0 AS cor0
----
57

query I rowsort
SELECT ALL - col1 * cor0.col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col0 * + col0 * col0 AS col2 FROM tab1 AS cor0
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT ALL 35 * col2 DIV tab0.col1 + + col0 FROM tab0
----
120
35
37

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL 35 * col2 / tab0.col1 + + col0 FROM tab0
----
120
35
37

query I rowsort
SELECT ALL 64 * + col1 AS col1 FROM tab2
----
1088
1984
3776

query I rowsort
SELECT DISTINCT - tab1.col0 + col0 * ( + col0 * col0 + + ( - col1 ) ) AS col2 FROM tab1
----
-54
261440
510880

skipif mysql # not compatible
query I rowsort
SELECT - col1 + - CAST ( 30 AS REAL ) AS col2 FROM tab0 AS cor0
----
-116
-121
-127

query I rowsort
SELECT 35 + + col0 FROM tab1
----
115
38
99

query I rowsort
SELECT DISTINCT 53 * col0 AS col0 FROM tab0
----
1272
1855
4717

query I rowsort
SELECT + 69 + col0 + col2 FROM tab2
----
103
173
186

query I rowsort
SELECT 13 * - tab1.col1 FROM tab1
----
-130
-169
-338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * - col1 col2 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7149
SELECT - col1 DIV - CAST( - col2 * - col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
2
33
82

skipif mysql # not compatible
query I rowsort label-7149
SELECT - col1 / - CAST ( - col2 * - col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
2
33
82

query I rowsort
SELECT - + col1 * col2 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL + - col0 * ( + 88 ) + + col2 AS col0 FROM tab2 cor0
----
-589
-6838
-6914

query I rowsort
SELECT + col1 * col0 * 6 FROM tab0 AS cor0
----
12384
20370
48594

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7153
SELECT ALL - col0 * CAST( + 91 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-668
-7157
-7206

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL - col0 * CAST ( + 91 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-668
-7157
-7206

query I rowsort
SELECT col0 + - col2 * + col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-113997
-5096
-52650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + 90 + 69 col0 FROM tab2 AS cor0
----
2409
2499
3489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * ( + 82 ) col0 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab0, tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT - 85 * col1 FROM tab2 cor0
----
-1445
-2635
-5015

query I rowsort
SELECT DISTINCT + 85 + col0 FROM tab0 AS cor0
----
109
120
174

query I rowsort
SELECT + ( cor0.col1 ) + + col2 * 54 * + col1 FROM tab1 AS cor0
----
30790
67405
75842

query I rowsort
SELECT - col0 - - 15 FROM tab1 AS cor0
----
-49
-65
12

query I rowsort
SELECT ALL ( 0 ) * col0 + col2 AS col0 FROM tab1