sqllogictest

Artifact [5dd24edeee]
Login

Artifact 5dd24edeeec619f8c8dc39f7bdba638dcb413da2:


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 * ( 84 * + cor0.col0 ) + 34 FROM tab0 AS cor0
----
102934
48418
665398

query I rowsort
SELECT ALL - col2 * - 15 + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
412
468
649

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

query I rowsort
SELECT ALL - - col2 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT - col2 + + 36 AS col0 FROM tab2 AS cor0
----
-2
10
9

query I rowsort
SELECT DISTINCT - cor0.col0 * + 38 * col0 AS col0 FROM tab0 AS cor0
----
-21888
-300998
-46550

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 74 - + col1 AS col0 FROM tab2 AS cor0
----
15
43
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT ALL + CAST( + col1 + col1 AS SIGNED ) DIV 70 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + CAST ( + col1 + col1 AS INTEGER ) / 70 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + + cor0.col2 * + col2 - - col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + + col1 + + col0 * 19 AS col1 FROM tab2 AS cor0
----
1518
1541
164

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

query I rowsort
SELECT ALL - - 40 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL 55 FROM tab1, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( + col0 ) + - ( col1 ) ) col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT + 75 - col1 AS col2 FROM tab2
----
16
44
58

query I rowsort
SELECT ALL tab2.col1 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 73681df8216070e2d6c1ade2e7109825

query I rowsort
SELECT + 30 - + col0 AS col1 FROM tab1
----
-34
-50
27

query I rowsort
SELECT col0 * col1 + col1 + - col2 FROM tab0
----
2117
3491
8108

query I rowsort
SELECT 83 * col1 * - col2 AS col0 FROM tab1
----
-103584
-116532
-47310

query I rowsort
SELECT + col2 * col1 + - 77 FROM tab1 AS cor0
----
1171
1327
493

onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT DISTINCT - ( + col0 ) DIV + 25 + col2 + col2 FROM tab0
----
1
161
66

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - ( + col0 ) / + 25 + col2 + col2 FROM tab0
----
1
161
66

query I rowsort
SELECT + col0 * col2 + ( + 37 ) AS col1 FROM tab2 AS cor0
----
2065
226
3039

query I rowsort
SELECT + ( + 56 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col0 + col0 col1 FROM tab1 AS cor0
----
-20
118
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-31
SELECT + + col1 DIV col1 + - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-31
SELECT + + col1 / col1 + - col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT - col2 * col0 + col0 + col2 AS col1 FROM tab2
----
-155
-1924
-2885

query I rowsort
SELECT ALL - + col2 + cor0.col1 * 32 AS col1 FROM tab0 AS cor0
----
2719
2830
3103

query I rowsort
SELECT - cor0.col2 + + ( - 41 * col1 ) AS col2 FROM tab1 AS cor0
----
-1120
-467
-629

onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT - col2 + 73 DIV + col1 - + col0 DIV + ( cor0.col2 * + col0 ) AS col0 FROM tab0 AS cor0
----
-2
-33
-82

skipif mysql # not compatible
query I rowsort label-35
SELECT - col2 + 73 / + col1 - + col0 / + ( cor0.col2 * + col0 ) AS col0 FROM tab0 AS cor0
----
-2
-33
-82

query I rowsort
SELECT 30 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

query I rowsort
SELECT + - col0 + 2 - - 58 * col1 AS col0 FROM tab2 AS cor0
----
1793
3346
909

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

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

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

query I rowsort
SELECT - - 36 AS col0 FROM tab2 cor0
----
36
36
36

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

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

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL col1 / 55 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 2 + + col1 FROM tab2 cor0
----
19
33
61

query I rowsort
SELECT ALL 25 + + col2 AS col0 FROM tab2 AS cor0
----
51
52
63

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

query I rowsort
SELECT ALL 75 - + col1 FROM tab0 cor0
----
-11
-16
-22

query I rowsort
SELECT ALL + col2 * 26 * col0 FROM tab0 AS cor0
----
189748
20592
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT DISTINCT 73 + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 73 + col0 / col0 AS col2 FROM tab2 AS cor0
----
74

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

skipif mysql # not compatible
query I rowsort label-50
SELECT - CAST ( + col1 AS INTEGER ) + + col2 * + ( 34 + col2 ) FROM tab0 AS cor0
----
-62
2125
9421

query I rowsort
SELECT DISTINCT + - cor0.col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT DISTINCT - - col2 * + col2 + 59 DIV + 48 FROM tab1 AS cor0
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT - - col2 * + col2 + 59 / + 48 FROM tab1 AS cor0
----
2917
3250
9217

onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT ALL - - col0 * col1 + - 45 + + 43 DIV col1 AS col0 FROM tab0 AS cor0
----
2019
3350
8054

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - - col0 * col1 + - 45 + + 43 / col1 AS col0 FROM tab0 AS cor0
----
2019
3350
8054

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

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

query I rowsort
SELECT + 90 * + cor0.col2 FROM tab1 AS cor0
----
4860
5130
8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-57
SELECT ALL - col2 + + col1 DIV ( 45 + - col2 ) FROM tab1 cor0
----
-56
-57
-96

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - col2 + + col1 / ( 45 + - col2 ) FROM tab1 cor0
----
-56
-57
-96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-59
SELECT col2 DIV + 58 + col0 AS col2 FROM tab1
----
3
64
81

skipif mysql # not compatible
query I rowsort label-59
SELECT col2 / + 58 + col0 AS col2 FROM tab1
----
3
64
81

query I rowsort
SELECT DISTINCT + col0 * + col0 * cor0.col2 + + col0 FROM tab1 AS cor0
----
233536
489
614480

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

query I rowsort
SELECT 3 - - col0 AS col2 FROM tab0
----
27
38
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT col0 DIV - 53 + col0 FROM tab0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-64
SELECT col0 / - 53 + col0 FROM tab0
----
24
35
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT + 73 DIV - col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-65
SELECT + 73 / - col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT 97 * - ( tab2.col2 ) FROM tab2
----
-2522
-2619
-3686

query I rowsort
SELECT 98 AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * col1 + tab2.col1 col1 FROM tab2
----
1003
1829
3481

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT + CAST( + col0 AS SIGNED ) DIV + col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-71
SELECT + CAST ( + col0 AS INTEGER ) / + col1 AS col1 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT 32 DIV 7 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-72
SELECT 32 / 7 FROM tab2
----
4
4
4

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

query I rowsort
SELECT ALL - 30 * + col0 FROM tab2
----
-210
-2340
-2370

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

query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-77
SELECT ALL - col2 * col0 DIV 66 AS col2 FROM tab1
----
-116
-2
-55

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - col2 * col0 / 66 AS col2 FROM tab1
----
-116
-2
-55

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

skipif mysql # not compatible
query I rowsort label-78
SELECT + col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + + col1 * + 71 FROM tab2 AS cor0
----
1207
2201
4189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 52 col2 FROM tab2 AS cor0
----
-1612
-3068
-884

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT + - col0 DIV + 28 AS col2 FROM tab1 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-82
SELECT + - col0 / + 28 AS col2 FROM tab1 AS cor0
----
-2
-2
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT - cor0.col2 + - 72 * + col1 DIV cor0.col1 AS col0 FROM tab1 cor0
----
-126
-129
-168

skipif mysql # not compatible
query I rowsort label-84
SELECT - cor0.col2 + - 72 * + col1 / cor0.col1 AS col0 FROM tab1 cor0
----
-126
-129
-168

query I rowsort
SELECT - col0 * - 50 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT DISTINCT + col0 + ( col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT col1 * 47 - - col0 AS col0 FROM tab2
----
1464
2851
878

query I rowsort
SELECT col2 * + 91 + + col1 AS col0 FROM tab2 cor0
----
2425
2488
3475

query I rowsort
SELECT + col1 + + 98 AS col1 FROM tab1
----
108
111
124

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

query I rowsort
SELECT ALL - + 77 * 59 AS col2 FROM tab2 AS cor0
----
-4543
-4543
-4543

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT col2 - col0 DIV + col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-95
SELECT col2 - col0 / + col2 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT + - 32 + col0 FROM tab1 AS cor0
----
-29
32
48

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

query I rowsort
SELECT col1 * + col2 * - col1 + col1 + ( + col1 ) FROM tab1 AS cor0
----
-16198
-36452
-5680

query I rowsort
SELECT - + 47 * 13 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 467e261c158f0ef6f030156efb36340d

query I rowsort
SELECT DISTINCT 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
5

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

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

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

query I rowsort
SELECT - col1 * cor0.col1 + + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - + col2 + + col0 * + col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col2 * - col2 - + col1 * + col0 AS col0 FROM tab2 cor0
----
-2787
-5278
-946

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-113
SELECT DISTINCT col1 DIV col0 + col1 FROM tab2 cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT col1 / col0 + col1 FROM tab2 cor0
----
17
35
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-114
SELECT DISTINCT col2 * - col0 + col2 DIV - col0 FROM tab0 AS cor0
----
-35
-7298
-793

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT col2 * - col0 + col2 / - col0 FROM tab0 AS cor0
----
-35
-7298
-793

query I rowsort
SELECT - col2 + cor0.col2 * col1 * col2 FROM tab0 AS cor0
----
611802
93621
96

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
1323
158184
237158

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

query I rowsort
SELECT + col2 * + tab2.col0 FROM tab2 WHERE - col0 = col2 + - col1 + + col0 AND NOT ( NULL ) BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT + col2 * col2 - col2 * cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
120328
52478
6588

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

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

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

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

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

query I rowsort
SELECT + col2 + col2 * col2 + - col2 * col1 FROM tab1
----
1566
2736
8064

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT col0 + + col0 DIV - col1 AS col1 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-132
SELECT col0 + + col0 / - col1 AS col1 FROM tab2
----
7
75
77

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

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

query I rowsort
SELECT ALL + col2 - tab1.col2 * col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT + tab2.col2 AS col0 FROM tab2, tab1 cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-137
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 13 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT + col2 * - col2 * 19 FROM tab2 AS cor0
----
-12844
-13851
-27436

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

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

query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2, tab1, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + 29 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT DISTINCT - col2 * col0 + tab2.col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * + col1 + - col0 * - col1 + col2 AS col1 FROM tab2
----
1081
2027
6162

query I rowsort
SELECT col2 + + col1 * + col2 + col0 AS col0 FROM tab1
----
1424
1461
691

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

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

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

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col0 + + col1 + col0 = - col1
----
54
57
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col1 )
----

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

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

query I rowsort
SELECT - col0 * tab1.col0 + col1 * col1 AS col0 FROM tab1
----
-3996
-6231
667

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * - col2 + + col0 col1 FROM tab1
----
-119728
-32426
-75813

query I rowsort
SELECT col0 + - col2 * col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT + tab0.col2 * col0 * col2 - - tab0.col2 AS col0 FROM tab0
----
26169
36
598518

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

query I rowsort
SELECT DISTINCT col0 * col2 * tab1.col0 + col0 FROM tab1
----
233536
489
614480

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

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

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

query I rowsort
SELECT - col0 + ( - cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT 81 * - col1 + - col0 AS col1 FROM tab1
----
-1133
-2109
-874

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

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

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

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

query I rowsort
SELECT + + 30 + col1 AS col2 FROM tab2 cor0
----
47
61
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 94 ) * + col2 col1 FROM tab2 AS cor0
----
2444
2538
3572

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

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + col0 + ( col0 ) FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT col0 + 1 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT tab1.col0 DIV + 72 + + col1 FROM tab1
----
10
14
26

skipif mysql # not compatible
query I rowsort label-173
SELECT tab1.col0 / + 72 + + col1 FROM tab1
----
10
14
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * col2 + col0 + col1 col1 FROM tab1
----
-133
-3574
-7587

query I rowsort
SELECT tab2.col2 - 23 FROM tab2, tab0 AS cor0
----
9 values hashing to 55826b63b45bd9d99e96935f23e3f74a

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

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT col2 / - col2 + tab0.col0 * - col1 FROM tab0
----
-2065
-3396
-8100

query I rowsort
SELECT - - 3 * col1 + col0 FROM tab2 cor0
----
100
130
255

query I rowsort
SELECT + col0 * + 41 * col0 FROM tab1
----
167936
262400
369

onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT ALL + tab1.col0 * - 20 + 70 DIV + col0 AS col0 FROM tab1
----
-1279
-1600
-37

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL + tab1.col0 * - 20 + 70 / + col0 AS col0 FROM tab1
----
-1279
-1600
-37

query I rowsort
SELECT - col1 + + 87 FROM tab0
----
-10
-4
1

query I rowsort
SELECT DISTINCT tab0.col1 * + 47 FROM tab0
----
4042
4277
4559

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT col1 DIV - ( col1 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-182
SELECT col1 / - ( col1 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

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

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

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

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

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

query I rowsort
SELECT ALL col0 * 17 * col1 FROM tab1
----
10880
1326
17680

query I rowsort
SELECT + col0 * col2 * col1 + - cor0.col0 FROM tab1 AS cor0
----
36416
4209
99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT - col2 DIV col0 + col2 * col2 FROM tab0 AS cor0
----
1
1088
6724

skipif mysql # not compatible
query I rowsort label-189
SELECT - col2 / col0 + col2 * col2 FROM tab0 AS cor0
----
1
1088
6724

query I rowsort
SELECT + col1 + col1 * col2 * + col0 FROM tab1 AS cor0
----
36490
4238
99853

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

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

query I rowsort
SELECT ALL 2 * col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL 20 * - col2 FROM tab1
----
-1080
-1140
-1920

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

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

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

query I rowsort
SELECT cor0.col1 + - ( 86 ) FROM tab0 AS cor0
----
0
11
5

query I rowsort
SELECT - col2 * + ( + 24 ) * col2 + - col1 - col1 FROM tab0 AS cor0
----
-161558
-218
-26308

query I rowsort
SELECT - + col1 + col1 - + 30 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
20280
21870
43320

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT + col1 * col1 - + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
287
3481
961

skipif mysql # not compatible
query I rowsort label-199
SELECT + col1 * col1 - + col2 / + col1 AS col0 FROM tab2 AS cor0
----
287
3481
961

query I rowsort
SELECT DISTINCT + col1 + 1 * + 97 + - col2 AS col0 FROM tab0 cor0
----
106
150
193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-201
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col1 * - col0 AS col2 FROM tab2
----
-1422
-224
-4680

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col1 * - col0 AS col2 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT col1 + col2 * - col0 * col1 + tab2.col0 FROM tab2
----
-119515
-50938
-5821

onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT + - 91 DIV - 58 + + cor0.col1 * + col1 FROM tab0 cor0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-203
SELECT + - 91 / - 58 + + cor0.col1 * + col1 FROM tab0 cor0
----
7397
8282
9410

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

query I rowsort
SELECT ALL tab0.col2 + - ( col0 ) FROM tab0
----
-34
-7
9

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT DISTINCT col2 + - col1 DIV + col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT col2 + - col1 / + col2 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT ALL + - col2 * col2 + - cor0.col2 FROM tab2 AS cor0
----
-1482
-702
-756

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

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

query I rowsort
SELECT 46 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL + ( 63 ) FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

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

query I rowsort
SELECT col2 + col0 + cor0.col0 FROM tab2 AS cor0
----
182
196
41

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

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

query I rowsort
SELECT DISTINCT 61 * + col2 FROM tab0 AS cor0
----
2013
5002
61

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

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

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

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

query I rowsort
SELECT ALL - - 42 * - col2 AS col0 FROM tab2 AS cor0
----
-1092
-1134
-1596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * col1 + 72 col1 FROM tab2 AS cor0
----
-1384
-495
-758

query I rowsort
SELECT ALL 91 * - col1 AS col2 FROM tab1 AS cor0
----
-1183
-2366
-910

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

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

query I rowsort
SELECT ALL + - 36 + - col2 FROM tab2 AS cor0
----
-62
-63
-74

query I rowsort
SELECT - - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT col2 + + col1 + 25 FROM tab1
----
105
134
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT ALL 94 DIV col2 + col2 * col0 DIV + col1 + - col2 AS col0 FROM tab1
----
-47
308
494

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL 94 / col2 + col2 * col0 / + col1 + - col2 AS col0 FROM tab1
----
-47
308
494

query I rowsort
SELECT - 13 + + col1 * - col0 FROM tab0 AS cor0
----
-2077
-3408
-8112

query I rowsort
SELECT DISTINCT col1 + col1 * - 59 AS col0 FROM tab1 AS cor0
----
-1508
-580
-754

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT ALL + + col1 DIV - col1 + - 64 * col0 AS col2 FROM tab2 AS cor0
----
-449
-4993
-5057

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + + col1 / - col1 + - 64 * col0 AS col2 FROM tab2 AS cor0
----
-449
-4993
-5057

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

query I rowsort
SELECT ALL + col0 * + 79 AS col0 FROM tab1 AS cor0
----
237
5056
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-239
SELECT DISTINCT - col1 DIV - ( 39 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - col1 / - ( 39 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - col2 * col1 * - 84 AS col0 FROM tab0 AS cor0
----
238392
626808
8148

query I rowsort
SELECT - cor0.col1 * + 64 FROM tab1 AS cor0
----
-1664
-640
-832

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

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

query I rowsort
SELECT - cor0.col1 * + col0 + - col0 * - col2 FROM tab0 AS cor0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT ALL - col0 DIV 91 + 59 FROM tab2 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - col0 / 91 + 59 FROM tab2 AS cor0
----
59
59
59

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + - ( - cor0.col0 * col1 ) + - 42 FROM tab0 AS cor0
----
2046
3388
8146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 84 col2 FROM tab0 AS cor0
----
-2772
-6888
-84

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

query I rowsort
SELECT DISTINCT - cor0.col2 - - col2 FROM tab1 cor0
----
0

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

query I rowsort
SELECT DISTINCT + + col0 * col0 + ( + 7 ) AS col0 FROM tab2 AS cor0
----
56
6091
6248

query I rowsort
SELECT col2 * cor0.col0 * ( - 56 ) + - col1 FROM tab2 cor0
----
-10615
-113627
-168129

query I rowsort
SELECT DISTINCT - + 52 * cor0.col0 + cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
-1106
-175
-2028

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

query I rowsort
SELECT ALL + col1 - - col1 * - col0 * - 72 FROM tab2 AS cor0
----
15655
331403
96713

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-259
SELECT DISTINCT + 93 + - col1 * + CAST( col0 AS SIGNED ) FROM tab1
----
-547
-947
15

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT + 93 + - col1 * + CAST ( col0 AS INTEGER ) FROM tab1
----
-547
-947
15

query I rowsort
SELECT - 94 * + col0 + 67 FROM tab0
----
-2189
-3223
-8299

query I rowsort
SELECT DISTINCT 18 + + col1 AS col2 FROM tab1
----
28
31
44

query I rowsort
SELECT 63 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT - + 5 + - col2 FROM tab2 cor0
----
-31
-32
-43

query I rowsort
SELECT DISTINCT col2 * tab2.col1 * col2 + col1 * + col0 FROM tab2
----
22816
25891
44486

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

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

query I rowsort
SELECT 8 + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 30a3ab28cbcb2bb5256768d46940f0ed

query I rowsort
SELECT - cor0.col1 + 19 * col1 AS col2 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT - - ( - col2 ) * col0 + 78 AS col0 FROM tab1 cor0
----
-3570
-7602
-84

query I rowsort
SELECT - + 30 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-65
-7328
-822

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

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

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

query I rowsort
SELECT cor0.col0 * col0 + 58 AS col0 FROM tab0 AS cor0
----
1283
634
7979

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

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL - col0 / ( + col0 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + col0 + - col2 * - 66 AS col1 FROM tab0 cor0
----
101
2202
5501

query I rowsort
SELECT col1 - ( - 36 * + col2 ) FROM tab2 AS cor0
----
1003
1385
995

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-277
SELECT col2 + + CAST( 74 + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
126
128
150

skipif mysql # not compatible
query I rowsort label-277
SELECT col2 + + CAST ( 74 + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
126
128
150

query I rowsort
SELECT - col1 + - col0 * - col2 - cor0.col0 AS col0 FROM tab1 AS cor0
----
133
3574
7587

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-280
SELECT - 82 + 56 DIV col0 col1 FROM tab1 cor0
----
-64
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-280
SELECT - 82 + 56 / col0 col1 FROM tab1 cor0
----
-64
-82
-82

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

skipif mysql # not compatible
query I rowsort label-281
SELECT col2 / ( - col1 + + 67 ) AS col1 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT 68 + + 97 * - cor0.col2 FROM tab2 AS cor0
----
-2454
-2551
-3618

query I rowsort
SELECT col0 * + ( + col1 ) * + ( col1 ) + col2 FROM tab1 cor0
----
13616
2082
6457

query I rowsort
SELECT + 79 + - cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
-561
-961
1

query I rowsort
SELECT - col0 + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + 41 + - 90 * + col2 FROM tab1 AS cor0
----
-4819
-5089
-8599

onlyif mysql # use DIV operator for integer division
query I rowsort label-287
SELECT col1 + col2 DIV + col2 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-287
SELECT col1 + col2 / + col2 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT DISTINCT col1 * ( + col2 ) * + col0 + 83 AS col1 FROM tab2
----
119735
51117
5942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

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

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

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

query I rowsort
SELECT - - ( + ( col0 ) ) + 7 AS col2 FROM tab0 AS cor0
----
31
42
96

query I rowsort
SELECT 55 - + col2 AS col0 FROM tab0 cor0
----
-27
22
54

query I rowsort
SELECT + ( - cor0.col2 ) * - col1 * ( 41 * - cor0.col2 ) - col1 FROM tab2 AS cor0
----
-1006485
-1635303
-926590

query I rowsort
SELECT DISTINCT + ( 62 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
2046
5084
62

query I rowsort
SELECT ALL - + 27 * - col2 + cor0.col1 * + ( col1 ) FROM tab1 AS cor0
----
1639
2134
2761

query I rowsort
SELECT ALL + col0 - 59 AS col0 FROM tab0 AS cor0
----
-24
-35
30

query I rowsort
SELECT DISTINCT col2 - cor0.col1 * col0 FROM tab1 AS cor0
----
-24
-583
-944

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

query I rowsort
SELECT + - cor0.col2 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 2df272448a67587d4635afedff278dcc

query I rowsort
SELECT + - 37 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-199
-3685
-7717

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

query I rowsort
SELECT DISTINCT + 90 * - col2 AS col0 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT DISTINCT col2 * col2 + 42 AS col2 FROM tab2 AS cor0
----
1486
718
771

query I rowsort
SELECT DISTINCT - + 37 + + col0 AS col2 FROM tab0 cor0
----
-13
-2
52

query I rowsort
SELECT ALL 69 - + tab0.col2 FROM tab0
----
-13
36
68

query I rowsort
SELECT - + 53 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * - col2 col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - cor0.col0 * + 86 FROM tab2 AS cor0
----
-602
-6708
-6794

query I rowsort
SELECT DISTINCT + + cor0.col0 * 45 AS col0 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT + - col0 * - 42 FROM tab2 AS cor0
----
294
3276
3318

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

query I rowsort
SELECT - 30 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT - tab2.col1 * 76 * + col2 FROM tab2
----
-116584
-49096
-63612

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT col0 DIV - ( 2 ) - - col0 FROM tab2
----
39
4
40

skipif mysql # not compatible
query I rowsort label-318
SELECT col0 / - ( 2 ) - - col0 FROM tab2
----
39
4
40

query I rowsort
SELECT col2 + col2 * - col2 * - 88 AS col1 FROM tab2 AS cor0
----
127110
59514
64179

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-322
SELECT ALL + + col2 * col2 DIV - 19 AS col2 FROM tab0 AS cor0
----
-353
-57
0

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL + + col2 * col2 / - 19 AS col2 FROM tab0 AS cor0
----
-353
-57
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT ALL + col0 + col1 DIV 44 FROM tab2 AS cor0
----
7
79
79

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + col0 + col1 / 44 FROM tab2 AS cor0
----
7
79
79

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 - + 74 AS col2 FROM tab2 AS cor0
----
-123
-6158
-6315

onlyif mysql # use DIV operator for integer division
query I rowsort label-326
SELECT DISTINCT - 14 DIV - cor0.col2 - - ( col0 ) * col1 FROM tab0 AS cor0
----
2064
3409
8099

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - 14 / - cor0.col2 - - ( col0 ) * col1 FROM tab0 AS cor0
----
2064
3409
8099

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-328
SELECT DISTINCT + col1 DIV col0 + ( + cor0.col2 ) * col0 - - col2 AS col1 FROM tab2 AS cor0
----
2054
220
3040

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + col1 / col0 + ( + cor0.col2 ) * col0 - - col2 AS col1 FROM tab2 AS cor0
----
2054
220
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * - col2 * col0 - col2 col2 FROM tab2
----
-114114
-5130
-52754

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

query I rowsort
SELECT - col2 * 37 FROM tab1
----
-1998
-2109
-3552

query I rowsort
SELECT DISTINCT col2 * - 36 FROM tab2
----
-1368
-936
-972

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

skipif mysql # not compatible
query I rowsort label-333
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT - 1 + + col0 * ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT DISTINCT + - 25 * col2 AS col1 FROM tab0 AS cor0
----
-2050
-25
-825

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-337
SELECT - col1 - CAST ( NULL AS INTEGER ) * - col1 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor1.col2 * 94 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
3102
7708
94

query I rowsort
SELECT cor0.col0 - - 42 FROM tab1 AS cor0
----
106
122
45

query I rowsort
SELECT + col0 * col2 + + 26 FROM tab2 AS cor0
----
2054
215
3028

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( ( col0 ) * + ( col2 ) AS REAL ) - col0 FROM tab0 AS cor0
----
7300
854
97

query I rowsort
SELECT DISTINCT col2 + 93 AS col0 FROM tab1
----
147
150
189

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

query I rowsort
SELECT ( - 47 ) + + col2 * 8 * col2 AS col1 FROM tab2
----
11505
5361
5785

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

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

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

query I rowsort
SELECT - 21 * - cor0.col2 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT DISTINCT 30 * - col1 AS col1 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT - 94 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT col2 * col2 + + col1 + ( 49 ) * col0 FROM tab1
----
13149
3089
6395

query I rowsort
SELECT + - 91 + + col0 FROM tab1 AS cor0
----
-11
-27
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * + 21 + - col1 col0 FROM tab0 AS cor0
----
680
686
691

query I rowsort
SELECT DISTINCT + - 27 - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1116
-28
-6751

query I rowsort
SELECT ALL + col2 * - 8 AS col2 FROM tab0 AS cor0
----
-264
-656
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-355
SELECT 17 DIV - 59 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-355
SELECT 17 / - 59 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col1 * col2 + - col0 * col1 FROM tab0 AS cor0
----
-3298
-637
774

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

query I rowsort
SELECT DISTINCT - cor0.col2 * 65 FROM tab2 cor0
----
-1690
-1755
-2470

query I rowsort
SELECT ALL 63 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT + 38 * 51 FROM tab0 AS cor0
----
1938
1938
1938

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

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

query I rowsort
SELECT DISTINCT + - cor0.col1 - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT ALL 57 DIV col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL 57 / col1 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT DISTINCT 61 * col2 + - col1 FROM tab2 AS cor0
----
1527
1616
2301

onlyif mysql # use DIV operator for integer division
query I rowsort label-366
SELECT ALL col1 DIV col0 + + col1 DIV 39 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL col1 / col0 + + col1 / 39 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - 42 * - col1 FROM tab1 AS cor0
----
1092
420
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-368
SELECT - - 78 + - col1 DIV - ( - 54 * col1 ) + - col0 * ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-1265
-139
-4524

skipif mysql # not compatible
query I rowsort label-368
SELECT - - 78 + - col1 / - ( - 54 * col1 ) + - col0 * ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-1265
-139
-4524

query I rowsort
SELECT DISTINCT + 81 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
81

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

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

skipif mysql # not compatible
query I rowsort label-371
SELECT - cor0.col2 * + col0 + + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT col2 * + 42 + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
2964
3672
5280

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

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

query I rowsort
SELECT - - col0 * ( - 35 ) + + col0 AS col1 FROM tab2 cor0
----
-238
-2652
-2686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - ( + 69 ) col1 FROM tab2 AS cor0
----
-147
-148
-76

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + - 42 AS col0 FROM tab1
----
-16
-29
-32

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

query I rowsort
SELECT DISTINCT + col0 * - 10 * ( cor0.col2 ) + + col0 + col2 FROM tab2 AS cor0
----
-1856
-20176
-29903

query I rowsort
SELECT ALL - col2 + 56 AS col0 FROM tab2 AS cor0
----
18
29
30

query I rowsort
SELECT ALL col1 - col0 * + 17 FROM tab2
----
-1267
-1326
-88

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( col1 AS REAL ) * + col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT 97 - + 93 * col2 FROM tab0 cor0
----
-2972
-7529
4

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

query I rowsort
SELECT + tab2.col2 * 18 + + col2 AS col2 FROM tab2
----
494
513
722

query I rowsort
SELECT col1 + + col1 + tab2.col0 * col1 FROM tab2
----
1377
279
4720

query I rowsort
SELECT DISTINCT col2 + - ( + 98 ) AS col0 FROM tab0
----
-16
-65
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 22 + + cor0.col0 - + col0 col2 FROM tab0 AS cor0
----
-1958
-528
-770

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

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

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

query I rowsort
SELECT DISTINCT + - ( 49 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-49

query I rowsort
SELECT + cor0.col2 + 89 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to df7429add5f154e4c0c403a7ef49c4bc

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

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

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

query I rowsort
SELECT ALL - 67 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

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

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

query I rowsort
SELECT DISTINCT + 43 * col0 AS col0 FROM tab0 cor0
----
1032
1505
3827

onlyif mysql # use DIV operator for integer division
query I rowsort label-401
SELECT DISTINCT - + 81 DIV + col0 FROM tab1 AS cor0
----
-1
-27

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT - + 81 / + col0 FROM tab1 AS cor0
----
-1
-27

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

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

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

query I rowsort
SELECT + 92 + col0 - - 68 * col1 AS col0 FROM tab1 cor0
----
1056
1863
836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + 99 * col2 + + col2 * - 6 col0 FROM tab2 AS cor0
----
2392
2484
3496

onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT + - 13 DIV + col2 - 34 col0 FROM tab0 AS cor0
----
-34
-34
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-406
SELECT + - 13 / + col2 - 34 col0 FROM tab0 AS cor0
----
-34
-34
-47

query I rowsort
SELECT - col1 + + col0 + 99 FROM tab1 cor0
----
153
166
76

query I rowsort
SELECT 49 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT ALL - 81 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT ALL - 68 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT DISTINCT + 34 * col0 DIV - col0 AS col2 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT + 34 * col0 / - col0 AS col2 FROM tab2
----
-34

query I rowsort
SELECT ALL + col1 * - 26 FROM tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT ALL - col2 * 55 + + col0 FROM tab0 AS cor0
----
-1791
-20
-4421

query I rowsort
SELECT + + col0 + 24 * col1 FROM tab1 AS cor0
----
304
392
627

query I rowsort
SELECT DISTINCT col2 * col1 + 76 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
1311
1454
636

query I rowsort
SELECT - cor0.col1 - - col0 * - 90 AS col0 FROM tab0 AS cor0
----
-2246
-3247
-8101

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

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

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

query I rowsort
SELECT 35 * col1 + col1 AS col1 FROM tab0 AS cor0
----
3096
3276
3492

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

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

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

skipif mysql # not compatible
query I rowsort label-423
SELECT CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89

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

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

query I rowsort
SELECT + - col1 + + 48 * + col0 FROM tab2 AS cor0
----
305
3685
3775

query I rowsort
SELECT DISTINCT - 85 * col2 AS col2 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + cor0.col2 + col2 * col2 FROM tab2 AS cor0
----
1520
728
783

query I rowsort
SELECT 89 + col2 AS col0 FROM tab0 AS cor0
----
122
171
90

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

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col0 * + col0 + 75 FROM tab0 AS cor0
----
-1150
-18933
-649447

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 + - col0 col1 FROM tab1 AS cor0
----
-1232
-1353
-577

onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT DISTINCT - col1 DIV col2 + - col2 + col1 FROM tab0
----
-1
51
8

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - col1 / col2 + - col2 + col1 FROM tab0
----
-1
51
8

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

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

query I rowsort
SELECT + col2 - col2 * + col2 * col1 AS col1 FROM tab0 AS cor0
----
-611802
-93621
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT + - col1 + col2 DIV - col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-438
SELECT + - col1 + col2 / - col1 FROM tab1 AS cor0
----
-15
-20
-28

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

query I rowsort
SELECT ALL + col0 * + col1 + col2 * cor0.col0 FROM tab2 AS cor0
----
406
4345
6630

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

query I rowsort
SELECT ALL + col1 * col1 * - col1 FROM tab2 cor0
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT col2 + tab0.col1 * tab0.col2 * col2 FROM tab0
----
611966
93687
98

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

query I rowsort
SELECT ALL + 57 * col2 AS col0 FROM tab1 AS cor0
----
3078
3249
5472

query I rowsort
SELECT - - col0 - col1 * + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + + 9 + col0 * cor0.col2 FROM tab0 AS cor0
----
44
7307
801

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + + col2 * - col2 col1 FROM tab1 AS cor0
----
-2816
-2907
847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 * col0 + + col1 * col1 col1 FROM tab1 AS cor0
----
-4444
-5511
463

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

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

query I rowsort
SELECT DISTINCT + col1 * col0 * + col1 + - col2 * - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
1416051
338724
421572

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

query I rowsort
SELECT DISTINCT + col1 * - 31 AS col1 FROM tab2
----
-1829
-527
-961

query I rowsort
SELECT ALL 67 * col1 + col2 AS col1 FROM tab1 AS cor0
----
1796
727
967

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

query I rowsort
SELECT ALL + 41 - col0 FROM tab0
----
-48
17
6

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

query I rowsort
SELECT 74 - col2 AS col1 FROM tab1 AS cor0
----
-22
17
20

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

query I rowsort
SELECT col2 + - col0 + col0 * - col1 AS col0 FROM tab2
----
-1384
-197
-4654

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

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

query I rowsort
SELECT + col2 + col2 + col2 AS col1 FROM tab1
----
162
171
288

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

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

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

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

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

query I rowsort
SELECT col0 * tab1.col2 * - col2 AS col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT col0 + + col2 + col0 AS col0 FROM tab1
----
185
256
60

query I rowsort
SELECT ALL col0 + col0 + col1 * tab1.col2 AS col2 FROM tab1
----
1408
1410
698

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + col2 = NULL
----

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

query I rowsort
SELECT tab2.col1 * col0 * col2 FROM tab2 WHERE NOT col0 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) BETWEEN - col2 * + col0 AND + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <= col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-479
SELECT ALL - col1 DIV col1 AS col0 FROM tab0
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 / + col2 col0 FROM tab2 WHERE ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT IN ( col0 )
----

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

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

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

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

query I rowsort
SELECT + cor0.col2 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT col2 + - col1 + col0 * col1 FROM tab1 AS cor0
----
106
1123
687

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-490
SELECT + col1 DIV col2 + col2 col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-490
SELECT + col1 / col2 + col2 col1 FROM tab1
----
54
57
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to dc3731b6ce8b1f8ecf6042af8e1c4df1

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

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

skipif mysql # not compatible
query I rowsort label-495
SELECT CAST ( 8 AS INTEGER ) FROM tab2 AS cor0
----
8
8
8

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT ALL + 37 DIV 81 - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL + 37 / 81 - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 14 col0 FROM tab0 AS cor0
----
-13
19
68

query I rowsort
SELECT 29 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - + col2 * 60 FROM tab0 cor0
----
-1980
-4920
-60

query I rowsort
SELECT ALL - tab0.col1 * ( col1 * col2 ) AS col0 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - col2 + 19 AS col2 FROM tab1 AS cor0
----
-35
-38
-77

query I rowsort
SELECT DISTINCT + - col1 * - 58 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
4964
5189
5591

query I rowsort
SELECT DISTINCT - - ( col0 ) + + col0 - + col2 * col0 * + col1 FROM tab2 AS cor0
----
-119496
-50876
-5845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-506
SELECT ALL col1 + CAST( col0 AS SIGNED ) * + col1 AS col1 FROM tab2
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL col1 + CAST ( col0 AS INTEGER ) * + col1 AS col1 FROM tab2
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-507
SELECT ALL - tab2.col2 * - CAST( col2 * - col2 + - col1 AS SIGNED ) FROM tab2
----
-19110
-20520
-55518

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - tab2.col2 * - CAST ( col2 * - col2 + - col1 AS INTEGER ) FROM tab2
----
-19110
-20520
-55518

query I rowsort
SELECT ( 35 ) - - col1 AS col1 FROM tab1
----
45
48
61

query I rowsort
SELECT ALL cor0.col0 + - 34 * cor0.col2 FROM tab2 AS cor0
----
-1213
-806
-911

query I rowsort
SELECT + 29 * col2 AS col1 FROM tab0 cor0
----
2378
29
957

query I rowsort
SELECT - col2 + col1 - tab1.col1 FROM tab1
----
-54
-57
-96

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-515
SELECT + col1 DIV + col0 + - col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-833

skipif mysql # not compatible
query I rowsort label-515
SELECT + col1 / + col0 + - col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-833

query I rowsort
SELECT - - 29 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - col0 + col1 * + 59 AS col1 FROM tab1 AS cor0
----
1531
526
687

query I rowsort
SELECT DISTINCT 70 + tab1.col0 AS col2 FROM tab1
----
134
150
73

query I rowsort
SELECT + col2 * col2 + - 77 FROM tab2
----
1367
599
652

query I rowsort
SELECT col1 + col2 * + ( col1 * col1 + col2 ) AS col2 FROM tab2 AS cor0
----
12443
26707
91241

query I rowsort
SELECT + - col0 * col2 * col0 + 74 AS col2 FROM tab1 AS cor0
----
-233398
-412
-614326

query I rowsort
SELECT + col0 * - cor0.col0 * 72 FROM tab2 AS cor0
----
-3528
-438048
-449352

query I rowsort
SELECT - cor0.col1 * + ( + 28 ) AS col1 FROM tab0 AS cor0
----
-2408
-2548
-2716

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

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

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

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

skipif mysql # not compatible
query I rowsort label-526
SELECT col1 * CAST ( 69 AS INTEGER ) + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1260
2145
3198

query I rowsort
SELECT + cor0.col2 + 61 FROM tab2 AS cor0
----
87
88
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - cor0.col2 col2 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-529
SELECT + cor0.col0 + - cor0.col1 DIV + 18 AS col0 FROM tab2 AS cor0
----
6
75
79

skipif mysql # not compatible
query I rowsort label-529
SELECT + cor0.col0 + - cor0.col1 / + 18 AS col0 FROM tab2 AS cor0
----
6
75
79

query I rowsort
SELECT ALL + + 77 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT 3 * + col0 AS col2 FROM tab0
----
105
267
72

query I rowsort
SELECT - col2 * 61 * 51 AS col2 FROM tab0 AS cor0
----
-102663
-255102
-3111

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-534
SELECT ALL - col1 DIV + CAST( 62 AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - col1 / + CAST ( 62 AS INTEGER ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col2 + 24 * + 40 AS col2 FROM tab0 AS cor0
----
1042
961
993

query I rowsort
SELECT 91 * - col1 + ( - col2 ) AS col0 FROM tab0
----
-7859
-8363
-8828

query I rowsort
SELECT DISTINCT col1 + + tab2.col0 * 2 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT ALL - 37 - col2 DIV 2 AS col2 FROM tab1
----
-64
-65
-85

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - 37 - col2 / 2 AS col2 FROM tab1
----
-64
-65
-85

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

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

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

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

query I rowsort
SELECT DISTINCT - 57 + cor0.col2 * 86 FROM tab2 AS cor0
----
2179
2265
3211

query I rowsort
SELECT + 76 * + tab2.col0 AS col1 FROM tab2
----
532
5928
6004

query I rowsort
SELECT + col0 + tab0.col1 * - col0 + + col2 AS col1 FROM tab0
----
-2007
-3359
-7928

query I rowsort
SELECT - - col0 * + col0 + + 30 FROM tab1 AS cor0
----
39
4126
6430

query I rowsort
SELECT + col0 * 45 AS col2 FROM tab1 cor0
----
135
2880
3600

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

query I rowsort
SELECT + cor0.col0 * + ( + 11 ) AS col0 FROM tab2 AS cor0
----
77
858
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-549
SELECT DISTINCT col2 DIV - 64 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT col2 / - 64 AS col2 FROM tab2 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-550
SELECT - + cor0.col2 / + 81 FROM tab1 AS cor0
----
-1
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT ALL + col2 + cor0.col1 DIV + col0 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + col2 + cor0.col1 / + col0 FROM tab0 cor0
----
3
36
83

query I rowsort
SELECT DISTINCT - - col2 + - 62 * col1 FROM tab2 AS cor0
----
-1016
-1895
-3632

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-554
SELECT + col2 + CAST ( - col2 AS INTEGER ) * - col1 * - ( col1 ) col0 FROM tab1 cor0
----
-16128
-36450
-5643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 57 col1 FROM tab2 AS cor0
----
83
84
95

query I rowsort
SELECT ALL col2 - - tab1.col1 * col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - - col0 + - 44 - - col0 * + cor0.col1 * col0 FROM tab2 AS cor0
----
106132
1482
358990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-558
SELECT DISTINCT + col0 + - CAST( 29 AS SIGNED ) FROM tab2 AS cor0
----
-22
49
50

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT + col0 + - CAST ( 29 AS INTEGER ) FROM tab2 AS cor0
----
-22
49
50

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

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

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL + col0 / + 13 AS col1 FROM tab1 AS cor0
----
0
4
6

query I rowsort
SELECT cor0.col2 + 33 + col0 AS col2 FROM tab2 AS cor0
----
137
150
67

query I rowsort
SELECT DISTINCT - - col2 + ( + cor0.col0 ) + col2 * + ( - col0 ) FROM tab1 AS cor0
----
-105
-3527
-7504

query I rowsort
SELECT + col1 + 42 FROM tab0 AS cor0
----
128
133
139

query I rowsort
SELECT DISTINCT - 88 + + col0 AS col0 FROM tab1 AS cor0
----
-24
-8
-85

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 * 14 * col0 AS col2 FROM tab0 AS cor0
----
110976
17151
8097

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * - 55 col0 FROM tab2 AS cor0
----
5005
5005
5005

query I rowsort
SELECT ALL col2 * - col0 - + col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - - 60 * cor0.col1 + col2 FROM tab1 cor0
----
1614
657
876

query I rowsort
SELECT - 17 * + col2 * col1 FROM tab0 AS cor0
----
-126854
-1649
-48246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + - col1 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + cor0.col1 + 51 * col0 * col1 FROM tab1 AS cor0
----
32650
4004
53053

query I rowsort
SELECT DISTINCT + ( - col0 ) * col1 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-13533
-2054
-6410

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + cor0.col0 ) + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - col0 + + col0 * 32 - 89 FROM tab1 AS cor0
----
1895
2391
4

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

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

query I rowsort
SELECT - ( 48 ) AS col0 FROM tab1
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col2 * + 8 + 18 AS col2 FROM tab0 cor0
----
27
315
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT ALL - col1 DIV - col2 + - 0 * col2 - - col0 AS col1 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - col1 / - col2 + - 0 * col2 - - col0 AS col1 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT DISTINCT 2 + col2 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT DISTINCT + 54 * - col2 + 79 FROM tab2 AS cor0
----
-1325
-1379
-1973

onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT DISTINCT + 22 DIV + col1 + col1 AS col1 FROM tab2 AS cor0
----
18
31
59

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT + 22 / + col1 + col1 AS col1 FROM tab2 AS cor0
----
18
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT - 73 + tab0.col2 DIV - col0 AS col2 FROM tab0
----
-73
-73
-74

skipif mysql # not compatible
query I rowsort label-589
SELECT - 73 + tab0.col2 / - col0 AS col2 FROM tab0
----
-73
-73
-74

query I rowsort
SELECT ALL + 17 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-593
SELECT col1 + - col2 - + col2 DIV + col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-593
SELECT col1 + - col2 - + col2 / + col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-594
SELECT DISTINCT + - 74 * - col0 + 23 + col1 DIV col1 FROM tab1 AS cor0
----
246
4760
5944

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + - 74 * - col0 + 23 + col1 / col1 FROM tab1 AS cor0
----
246
4760
5944

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

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

query I rowsort
SELECT ALL - 15 * ( col0 ) AS col1 FROM tab0
----
-1335
-360
-525

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

query I rowsort
SELECT ALL - - 24 + - col0 AS col1 FROM tab2 cor0
----
-54
-55
17

query I rowsort
SELECT + 24 * col0 * + cor0.col2 + - col1 AS col1 FROM tab0 cor0
----
175061
18922
743

onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT ALL + tab2.col1 DIV - ( col0 * tab2.col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + tab2.col1 / - ( col0 * tab2.col1 ) FROM tab2
----
0
0
0

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

query I rowsort
SELECT col2 * 26 AS col1 FROM tab0 cor0
----
2132
26
858

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

skipif mysql # not compatible
query I rowsort label-604
SELECT - CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT 53 + - col0 * col2 FROM tab0 AS cor0
----
-7245
-739
18

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

skipif mysql # not compatible
query I rowsort label-606
SELECT col2 / 22 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT - col2 * + col2 * + 4 FROM tab0
----
-26896
-4
-4356

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

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

query I rowsort
SELECT ALL - col1 - tab2.col1 AS col1 FROM tab2
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-611
SELECT col1 DIV - 11 + - cor0.col0 + - col1 FROM tab1 cor0
----
-31
-74
-94

skipif mysql # not compatible
query I rowsort label-611
SELECT col1 / - 11 + - cor0.col0 + - col1 FROM tab1 cor0
----
-31
-74
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-612
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT ALL col2 + col1 DIV + col2 - cor0.col1 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL col2 + col1 / + col2 - cor0.col1 FROM tab1 AS cor0
----
28
47
83

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

query I rowsort
SELECT DISTINCT ( - col2 + ( + 11 ) * col1 ) AS col2 FROM tab2
----
149
314
623

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

skipif mysql # not compatible
query I rowsort label-616
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 + - 82 * + col0 * col1 FROM tab2
----
-110164
-17821
-377390

onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT + col0 DIV + tab2.col1 + - col2 AS col0 FROM tab2
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-618
SELECT + col0 / + tab2.col1 + - col2 AS col0 FROM tab2
----
-25
-27
-34

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

query I rowsort
SELECT + col2 - 91 * + 93 FROM tab0
----
-8381
-8430
-8462

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

query I rowsort
SELECT ALL ( - 37 ) FROM tab1, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - col1 ) + - col2 * col0 col1 FROM tab1
----
-240
-4288
-8720

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

query I rowsort
SELECT - 33 * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-1237
-799
-860

query I rowsort
SELECT ALL 78 - + col1 AS col2 FROM tab2 cor0
----
19
47
61

query I rowsort
SELECT 13 * + col0 FROM tab0
----
1157
312
455

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-629
SELECT ( tab0.col0 + tab0.col1 ) DIV + CAST( + 29 + - col0 AS SIGNED ) AS col0 FROM tab0
----
-22
-3
22

skipif mysql # not compatible
query I rowsort label-629
SELECT ( tab0.col0 + tab0.col1 ) / + CAST ( + 29 + - col0 AS INTEGER ) AS col0 FROM tab0
----
-22
-3
22

query I rowsort
SELECT + cor1.col1 * ( tab1.col2 ) AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 6eca0fdf700a988d88ac850bac7633ab

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * tab1.col2 * tab1.col0 col0 FROM tab1
----
211584
445440
9396

onlyif mysql # use DIV operator for integer division
query I rowsort label-632
SELECT - + col1 * col1 + ( col0 ) DIV + col0 FROM tab0 AS cor0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-632
SELECT - + col1 * col1 + ( col0 ) / + col0 FROM tab0 AS cor0
----
-7395
-8280
-9408

query I rowsort
SELECT - 77 * - col1 AS col0 FROM tab2
----
1309
2387
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * col2 col1 FROM tab0 cor0
----
-231
-574
-7

query I rowsort
SELECT DISTINCT + col1 + + col1 - + col1 * cor0.col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
286
40980
83226

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

query I rowsort
SELECT + 11 * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT DISTINCT - - 96 AS col1 FROM tab1 AS cor0
----
96

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * col1 * 12 AS col1 FROM tab2
----
11532
3468
41772

onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT col0 DIV - col0 + col0 * col2 AS col1 FROM tab0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-644
SELECT col0 / - col0 + col0 * col2 AS col1 FROM tab0
----
34
7297
791

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

query I rowsort
SELECT DISTINCT - col1 * ( tab1.col0 * - 35 ) + - 45 AS col0 FROM tab1
----
22355
2685
36355

query I rowsort
SELECT DISTINCT + col1 + ( col2 ) * - 55 FROM tab1
----
-2944
-3125
-5267

query I rowsort
SELECT DISTINCT + tab2.col1 + 80 FROM tab2
----
111
139
97

query I rowsort
SELECT ALL + 66 + col0 FROM tab2 AS cor0
----
144
145
73

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-651
SELECT col2 DIV 74 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-651
SELECT col2 / 74 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-652
SELECT DISTINCT CAST( ( col2 ) AS SIGNED ) col2 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT CAST ( ( col2 ) AS INTEGER ) col2 FROM tab2
----
26
27
38

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

query I rowsort
SELECT ALL + + 60 + col2 FROM tab2 AS cor0
----
86
87
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 + + col2 + - 34 col0 FROM tab1
----
158
74
80

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

query I rowsort
SELECT DISTINCT 79 + - col2 AS col0 FROM tab1
----
-17
22
25

query I rowsort
SELECT DISTINCT + 14 * + tab1.col0 + - col0 + - col2 FROM tab1
----
-15
775
944

query I rowsort
SELECT DISTINCT 68 + + col0 AS col2 FROM tab1
----
132
148
71

query I rowsort
SELECT ALL + 26 + col1 AS col0 FROM tab0 AS cor0
----
112
117
123

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

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

query I rowsort
SELECT DISTINCT 84 + + col2 * 55 * 14 AS col0 FROM tab0
----
25494
63224
854

query I rowsort
SELECT - col2 * col2 * ( 64 * - col0 ) + - 51 FROM tab2
----
326541
3374541
7300813

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-666
SELECT ALL col0 + CAST( 72 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
107
161
96

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL col0 + CAST ( 72 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
107
161
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - cor0.col2 - + col0 col1 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-668
SELECT DISTINCT + - col0 DIV cor0.col0 + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT + - col0 / cor0.col0 + col0 FROM tab2 AS cor0
----
6
77
78

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

query I rowsort
SELECT DISTINCT - - col2 * + 32 AS col2 FROM tab0 AS cor0
----
1056
2624
32

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-672
SELECT DISTINCT col2 DIV - CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT col2 / - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT cor0.col0 * col0 * cor0.col0 FROM tab2 AS cor0
----
343
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 * cor0.col2 col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + + col2 * 21 AS col2 FROM tab1 AS cor0
----
1134
1197
2016

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-677
SELECT ALL + - cor0.col0 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT + 18 + + col2 * + col0 FROM tab1 AS cor0
----
180
3666
7698

query I rowsort
SELECT ALL + - ( 35 ) * - cor0.col1 + - col2 FROM tab2 AS cor0
----
1058
2039
557

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

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

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL tab0.col2 * col1 / tab0.col0 AS col2 FROM tab0
----
118
2
83

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

query I rowsort
SELECT ALL + - col0 + col2 * ( 0 ) FROM tab1 AS cor0
----
-3
-64
-80

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

query I rowsort
SELECT + 29 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-35
-51
26

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

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

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

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

query I rowsort
SELECT ALL 34 + + col0 AS col1 FROM tab2
----
112
113
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 + - col0 col2 FROM tab2
----
-19
-20
52

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-694
SELECT ALL 31 * - col1 + col2 DIV col2 AS col1 FROM tab1
----
-309
-402
-805

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL 31 * - col1 + col2 / col2 AS col1 FROM tab1
----
-309
-402
-805

onlyif mysql # use DIV operator for integer division
query I rowsort label-695
SELECT ALL col2 DIV col1 + + 59 FROM tab2
----
59
59
61

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL col2 / col1 + + 59 FROM tab2
----
59
59
61

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

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL - - cor0.col0 / col0 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-85
-90
-96

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-700
SELECT DISTINCT - col1 + - cor0.col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT - col1 + - cor0.col0 / col2 AS col2 FROM tab1 AS cor0
----
-11
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * col0 + + col1 col0 FROM tab0 cor0
----
-1810
-2668
-6940

onlyif mysql # use DIV operator for integer division
query I rowsort label-702
SELECT DISTINCT cor0.col1 + - col2 DIV 25 FROM tab1 cor0
----
10
24
8

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT cor0.col1 + - col2 / 25 FROM tab1 cor0
----
10
24
8

query I rowsort
SELECT - 29 * + col0 AS col1 FROM tab0 cor0
----
-1015
-2581
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab0.col2 col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - + 78 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to addd48c7f1edb90d97fc53e913fbcef0

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

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

query I rowsort
SELECT cor0.col2 + - col0 + ( + col2 + 79 ) AS col2 FROM tab0 AS cor0
----
121
154
46

query I rowsort
SELECT + cor0.col0 + + ( + 98 ) * + col1 + col2 * - 4 AS col0 FROM tab2 AS cor0
----
1593
2937
5756

query I rowsort
SELECT + - col1 * - 53 + col2 * + col0 + + ( + col2 ) AS col2 FROM tab2 AS cor0
----
1859
3941
5181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( - col2 ) * col2 col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT + + 91 * 34 DIV + col0 + col2 * col0 * cor0.col0 FROM tab0 AS cor0
----
1313
19136
649556

skipif mysql # not compatible
query I rowsort label-712
SELECT + + 91 * 34 / + col0 + col2 * col0 * cor0.col0 FROM tab0 AS cor0
----
1313
19136
649556

query I rowsort
SELECT 62 + + col0 * - cor0.col1 AS col1 FROM tab2 cor0
----
-1281
-155
-4540

query I rowsort
SELECT DISTINCT - 99 + 2 AS col2 FROM tab2 AS cor0
----
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-715
SELECT + col0 * + col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-715
SELECT + col0 * + col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + col0 + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-15
-69
-96

query I rowsort
SELECT DISTINCT - - 81 * + col2 FROM tab2 AS cor0
----
2106
2187
3078

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-718
SELECT DISTINCT + CAST( col0 AS SIGNED ) + + col2 + col2 AS col2 FROM tab0 AS cor0
----
253
37
90

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + + col2 + col2 AS col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT - + col1 + - 37 * - col1 AS col2 FROM tab2 AS cor0
----
1116
2124
612

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

query I rowsort
SELECT ALL col2 * col0 * cor0.col0 + + ( - col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1224
17919
642798

query I rowsort
SELECT 71 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

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

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + - col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + ( - 37 ) + - col2 * - col1 FROM tab2
----
1497
609
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * - col1 - - col0 col0 FROM tab2 AS cor0
----
-1512
-2813
-754

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

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

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

query I rowsort
SELECT ALL - col0 * ( ( + col2 ) ) * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col1 + + 93 * col0 + col0 * - ( + 95 ) FROM tab2 AS cor0
----
-141
-97
17

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-731
SELECT + + col2 * CAST( 94 AS SIGNED ) FROM tab1 AS cor0
----
5076
5358
9024

skipif mysql # not compatible
query I rowsort label-731
SELECT + + col2 * CAST ( 94 AS INTEGER ) FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * 60 AS col0 FROM tab2 AS cor0
----
451
4739
4757

query I rowsort
SELECT DISTINCT - - 18 * - col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-1052
-1271
622

query I rowsort
SELECT + col2 + + 42 AS col2 FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT ALL col0 * - cor0.col1 + + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT DISTINCT - ( + 93 ) * - tab1.col2 - - 44 AS col0 FROM tab1, tab2 AS cor0
----
5066
5345
8972

query I rowsort
SELECT - col2 + 73 FROM tab0
----
-9
40
72

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

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT + col2 + col0 * col2 / - col0 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT + - 43 * col0 * 9 AS col0 FROM tab2 AS cor0
----
-2709
-30186
-30573

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

query I rowsort
SELECT + 90 + - cor0.col2 FROM tab1 AS cor0
----
-6
33
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + col0 * + col1 col0 FROM tab1
----
1047
647
85

query I rowsort
SELECT - col0 * + ( 63 ) FROM tab2 AS cor0
----
-441
-4914
-4977

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT ALL + - 48 * col0 DIV + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1679
30

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + - 48 * col0 / + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1679
30

query I rowsort
SELECT ALL - col2 - col2 AS col2 FROM tab0
----
-164
-2
-66

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

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

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

query I rowsort
SELECT - - col2 + + col1 + col2 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
-119567
-50979
-5801

query I rowsort
SELECT ALL - 23 * col1 + col1 + + col2 AS col0 FROM tab0 AS cor0
----
-1859
-1920
-2133

query I rowsort
SELECT ALL 11 + + col2 AS col0 FROM tab1 AS cor0
----
107
65
68

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

query I rowsort
SELECT DISTINCT col1 * - col2 + + col0 + - tab1.col1 FROM tab1
----
-1181
-1427
-516

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

query I rowsort
SELECT ALL col1 * + col1 + col2 * + ( + col2 ) * col1 FROM tab1
----
119977
32590
76492

query I rowsort
SELECT ALL col0 * - tab0.col1 + col0 AS col0 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT ALL col2 DIV 15 FROM tab1 AS cor0
----
3
3
6

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL col2 / 15 FROM tab1 AS cor0
----
3
3
6

query I rowsort
SELECT ALL + + 82 * col2 AS col2 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT DISTINCT + col1 + 61 AS col2 FROM tab0 AS cor0
----
147
152
158

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-763
SELECT + CAST( cor0.col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-763
SELECT + CAST ( cor0.col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 68 * 11 AS col0 FROM tab1 AS cor0
----
-748
-748
-748

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

query I rowsort
SELECT ALL 73 + cor0.col2 AS col1 FROM tab1 cor0
----
127
130
169

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

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

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

query I rowsort
SELECT ALL + col2 - ( + col1 ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-770
SELECT ALL CAST( - col0 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL CAST ( - col0 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 + + tab2.col0 + + col2 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL + col2 * - 72 FROM tab2
----
-1872
-1944
-2736

query I rowsort
SELECT col2 * col0 + - tab0.col1 * col0 + col2 FROM tab0
----
-1239
-3359
-719

query I rowsort
SELECT + col2 + + col1 * 91 FROM tab2 AS cor0
----
1585
2848
5395

query I rowsort
SELECT DISTINCT + 3 + + col0 AS col0 FROM tab1
----
6
67
83

query I rowsort
SELECT - col0 * - 9 FROM tab2
----
63
702
711

query I rowsort
SELECT + col0 + col0 * col0 AS col1 FROM tab2
----
56
6162
6320

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-780
SELECT - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-780
SELECT - + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT + 62 * + col0 + ( col0 ) DIV col1 AS col2 FROM tab0 AS cor0
----
1488
2170
5518

skipif mysql # not compatible
query I rowsort label-783
SELECT + 62 * + col0 + ( col0 ) / col1 AS col2 FROM tab0 AS cor0
----
1488
2170
5518

query I rowsort
SELECT 47 * + col2 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT + 97 + - col0 AS col2 FROM tab0 AS cor0
----
62
73
8

query I rowsort
SELECT - 4 * col0 + 91 FROM tab0 AS cor0
----
-265
-49
-5

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

query I rowsort
SELECT ALL - 75 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to a0b2f2fd1ab7466175d5b39a8fa7be73

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

query I rowsort
SELECT ALL + col1 + 41 FROM tab2 AS cor0
----
100
58
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT ALL cor0.col0 DIV col2 - - col1 AS col2 FROM tab1 cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL cor0.col0 / col2 - - col1 AS col2 FROM tab1 cor0
----
11
13
26

query I rowsort
SELECT DISTINCT + col1 * 94 AS col0 FROM tab0 AS cor0
----
8084
8554
9118

query I rowsort
SELECT ALL + col1 * - cor0.col0 + col0 + col1 FROM tab1 AS cor0
----
-49
-566
-947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + - 55 col1 FROM tab1 AS cor0
----
-65
-68
-81

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

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

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col2 + + col1 * col2 + 74 * - col1 AS col0 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT - + col2 * + ( - cor0.col2 * - 42 ) + col2 * - col1 - 60 FROM tab2 AS cor0
----
-29986
-31515
-61354

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 - - col0 col1 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT col0 + col1 + col1 * + col0 * + ( col2 + col2 ) AS col1 FROM tab2
----
102164
11756
239441

query I rowsort
SELECT - - col1 * ( - col1 ) + cor0.col1 FROM tab0 cor0
----
-7310
-8190
-9312

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

query I rowsort
SELECT - - col2 * + col0 - + cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

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

query I rowsort
SELECT ALL - - col1 * - 21 FROM tab0 AS cor0
----
-1806
-1911
-2037

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

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

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

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

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

query I rowsort
SELECT ALL + 60 FROM tab1 cor0
----
60
60
60

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-816
SELECT DISTINCT - tab1.col0 DIV - col1 + col2 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - tab1.col0 / - col1 + col2 FROM tab1
----
102
54
63

query I rowsort
SELECT ( 57 * col0 + tab2.col0 ) FROM tab2
----
406
4524
4582

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

query I rowsort
SELECT ALL - 98 AS col1 FROM tab2, tab1 cor0, tab1, tab0 cor1
----
81 values hashing to b6a3c9eea26c3759e6417d75f38258d1

query I rowsort
SELECT ALL ( + tab1.col0 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT + ( - col1 ) DIV + 59 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-822
SELECT + ( - col1 ) / + 59 FROM tab1
----
0
0
0

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

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

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

query I rowsort
SELECT + col2 + + ( + cor0.col2 ) * - col1 - + ( col1 ) FROM tab0 cor0
----
-193
-2891
-7471

onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT DISTINCT + col0 DIV ( col0 * + col2 + 34 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + col0 / ( col0 * + col2 + 34 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + col2 * 73 - - col2 AS col1 FROM tab2 AS cor0
----
1924
1998
2812

onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT + col1 * 10 DIV + col1 FROM tab0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-828
SELECT + col1 * 10 / + col1 FROM tab0
----
10
10
10

query I rowsort
SELECT tab2.col2 * + ( col1 + col2 ) AS col2 FROM tab2
----
1566
2090
2210

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col2 + col2 * col1 col1 FROM tab0 cor0
----
133
14842
3663

onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT - 81 - 69 DIV - col0 FROM tab1
----
-58
-80
-81

skipif mysql # not compatible
query I rowsort label-833
SELECT - 81 - 69 / - col0 FROM tab1
----
-58
-80
-81

query I rowsort
SELECT - col2 + - 23 FROM tab1 AS cor0
----
-119
-77
-80

query I rowsort
SELECT + + ( 31 ) + - col0 FROM tab1 AS cor0
----
-33
-49
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 + - col1 col1 FROM tab2 AS cor0
----
38
66
80

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

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

query I rowsort
SELECT 1 * - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

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

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT ( + col1 ) + - CAST ( col0 AS INTEGER ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

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

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

query I rowsort
SELECT - 84 - col0 * - tab2.col2 FROM tab2
----
105
1944
2918

query I rowsort
SELECT 61 * ( - col0 ) FROM tab2
----
-427
-4758
-4819

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

query I rowsort
SELECT - col0 + - 10 FROM tab0 AS cor0
----
-34
-45
-99

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

query I rowsort
SELECT - ( cor0.col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + col2 * - 56 col2 FROM tab1 AS cor0
----
-108
3840
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-850
SELECT - + ( col2 ) * + col2 + - 98 DIV col2 FROM tab0 AS cor0
----
-1091
-6725
-99

skipif mysql # not compatible
query I rowsort label-850
SELECT - + ( col2 ) * + col2 + - 98 / col2 FROM tab0 AS cor0
----
-1091
-6725
-99

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-856
SELECT ALL + col2 * CAST( 81 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2106
2187
3078

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + col2 * CAST ( 81 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2106
2187
3078

onlyif mysql # use DIV operator for integer division
query I rowsort label-857
SELECT DISTINCT - col1 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT - col1 / col1 + col1 AS col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT - 7 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT ALL + - 96 DIV - 36 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
12
15
28

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL + - 96 / - 36 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
12
15
28

query I rowsort
SELECT + + 59 * + ( - col0 ) AS col2 FROM tab1 cor0
----
-177
-3776
-4720

query I rowsort
SELECT cor0.col1 * cor0.col0 - col0 * - 69 FROM tab2 AS cor0
----
6794
700
9984

query I rowsort
SELECT ALL - col2 * - col2 + - 77 * col2 FROM tab2
----
-1326
-1350
-1482

query I rowsort
SELECT ALL - col1 + - col0 * - col0 + col0 FROM tab0
----
1163
514
7919

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

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

query I rowsort
SELECT col0 + + col0 * col0 * - col0 FROM tab2 AS cor0
----
-336
-474474
-492960

query I rowsort
SELECT - tab2.col1 * tab2.col0 + col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0 AS cor2
----
81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540

onlyif mysql # use DIV operator for integer division
query I rowsort label-871
SELECT 13 * - col0 DIV col0 AS col0 FROM tab2
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-871
SELECT 13 * - col0 / col0 AS col0 FROM tab2
----
-13
-13
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT + + ( col2 ) + ( col2 ) DIV - col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-872
SELECT + + ( col2 ) + ( col2 ) / - col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT DISTINCT + 72 + + col2 AS col2 FROM tab0 AS cor0
----
105
154
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * - 18 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-1026
-1728
-972

query I rowsort
SELECT col2 * + col0 + ( 69 * - col1 ) FROM tab1
----
-1632
2958
6783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-876
SELECT - ( - tab1.col2 + + CAST( 74 AS SIGNED ) ) AS col0 FROM tab1
----
-17
-20
22

skipif mysql # not compatible
query I rowsort label-876
SELECT - ( - tab1.col2 + + CAST ( 74 AS INTEGER ) ) AS col0 FROM tab1
----
-17
-20
22

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

query I rowsort
SELECT col0 + 77 AS col1 FROM tab2 AS cor0
----
155
156
84

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

query I rowsort
SELECT + cor0.col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - col0 * 65 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT ALL cor0.col0 * - 50 + 74 FROM tab1 AS cor0
----
-3126
-3926
-76

query I rowsort
SELECT ALL col1 * - col1 * col1 + - col0 * col0 + cor0.col0 * - col0 FROM tab1 cor0
----
-14997
-17594
-9192

onlyif mysql # use DIV operator for integer division
query I rowsort label-884
SELECT ALL + col0 + col0 DIV 85 FROM tab0 cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + col0 + col0 / 85 FROM tab0 cor0
----
24
35
90

query I rowsort
SELECT 18 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT ALL + tab0.col1 * col1 + col2 - 34 DIV col2 FROM tab0
----
7428
8363
9376

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL + tab0.col1 * col1 + col2 - 34 / col2 FROM tab0
----
7428
8363
9376

query I rowsort
SELECT ALL 17 - col1 AS col0 FROM tab0
----
-69
-74
-80

query I rowsort
SELECT ALL 79 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT col0 + + col0 * + cor0.col2 * col0 FROM tab1 cor0
----
233536
489
614480

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

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

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

query I rowsort
SELECT + col0 * 16 + col2 - - col2 FROM tab1 cor0
----
1138
1472
156

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

query I rowsort
SELECT 92 * col0 * - tab0.col2 AS col0 FROM tab0
----
-3220
-671416
-72864

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

query I rowsort
SELECT - - 3 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

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

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

query I rowsort
SELECT - col1 + - 76 * + 24 AS col2 FROM tab1 AS cor0
----
-1834
-1837
-1850

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

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

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE ( NULL ) <> NULL
----

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

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

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

query I rowsort
SELECT col0 + col0 * - col0 - col0 * - col2 AS col0 FROM tab2
----
-3160
-3978
147

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

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

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

query I rowsort
SELECT ALL col1 + - col0 + col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-910
SELECT ALL - 96 DIV - col0 col0 FROM tab0 cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-910
SELECT ALL - 96 / - col0 col0 FROM tab0 cor0
----
1
2
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT DISTINCT - 76 DIV col2 + - col2 FROM tab0 AS cor0
----
-35
-77
-82

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - 76 / col2 + - col2 FROM tab0 AS cor0
----
-35
-77
-82

query I rowsort
SELECT + col0 * + col0 + col2 * - col1 + + col1 * col0 FROM tab1
----
-1317
4166
6192

query I rowsort
SELECT - col1 * + col0 + col0 + tab2.col2 FROM tab2
----
-1226
-183
-4498

query I rowsort
SELECT DISTINCT - col0 * col1 * 66 FROM tab1 AS cor0
----
-42240
-5148
-68640

query I rowsort
SELECT ALL - - cor0.col1 + cor0.col1 * col2 + - col2 AS col0 FROM tab0 cor0
----
193
2891
7471

query I rowsort
SELECT - 39 * + col1 FROM tab2 AS cor0
----
-1209
-2301
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col1 + 28 col0 FROM tab0 AS cor0
----
-2810
-69
-7434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * col1 col0 FROM tab2 AS cor0
----
1612
725
844

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

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

query I rowsort
SELECT DISTINCT - 64 - col2 * 61 FROM tab1 AS cor0
----
-3358
-3541
-5920

query I rowsort
SELECT ALL - 64 + col2 FROM tab1 AS cor0
----
-10
-7
32

query I rowsort
SELECT ALL - col0 + col2 + - 88 FROM tab2 AS cor0
----
-129
-140
-68

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

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

query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) + 87 AS col0 FROM tab0
----
5
54
86

query I rowsort
SELECT DISTINCT col0 + 42 + - col1 * + col1 FROM tab1
----
-47
-631
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT - col1 + 69 DIV col1 AS col1 FROM tab1
----
-24
-4
-8

skipif mysql # not compatible
query I rowsort label-928
SELECT - col1 + 69 / col1 AS col1 FROM tab1
----
-24
-4
-8

query I rowsort
SELECT DISTINCT + col0 + + 29 AS col0 FROM tab2
----
107
108
36

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

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - col2 / col2 + col0 / + col0 AS col0 FROM tab0
----
0

query I rowsort
SELECT 7 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT DISTINCT + col0 + - col0 DIV 17 col1 FROM tab2 AS cor0
----
7
74
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + col0 + - col0 / 17 col1 FROM tab2 AS cor0
----
7
74
75

query I rowsort
SELECT - 12 + - col0 FROM tab1 AS cor0
----
-15
-76
-92

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

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

query I rowsort
SELECT - col2 * 80 FROM tab1
----
-4320
-4560
-7680

query I rowsort
SELECT - ( + cor1.col1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT - + 74 * + 87 FROM tab1 AS cor0
----
-6438

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

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT + col2 * - col1 + 31 AS col1 FROM tab1 cor0
----
-1217
-1373
-539

query I rowsort
SELECT - 17 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

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

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

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

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - CAST ( - col2 + col2 AS INTEGER ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col0 + - 11 * col1 AS col2 FROM tab0 AS cor0
----
-1032
-912
-922

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

query I rowsort
SELECT - cor0.col1 * - 3 * - 19 FROM tab0, tab1 AS cor0
----
9 values hashing to b3c8b5d59b492d1f7afa6ee176eab00d

query I rowsort
SELECT ALL - 74 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

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

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

query I rowsort
SELECT ALL - 28 + + cor0.col1 AS col0 FROM tab0 cor0
----
58
63
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * 94 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - - CAST ( NULL AS INTEGER ) * cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 * tab1.col1 + 48 AS col1 FROM tab1
----
1088
126
688

onlyif mysql # use DIV operator for integer division
query I rowsort label-958
SELECT DISTINCT - col0 DIV + col1 - col2 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - col0 / + col1 - col2 FROM tab1 AS cor0
----
-102
-54
-63

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

skipif mysql # not compatible
query I rowsort label-959
SELECT cor0.col0 - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col2 + + 32 AS col0 FROM tab0 AS cor0
----
114
33
65

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT + col0 DIV - cor0.col0 - 78 * col2 AS col0 FROM tab1 AS cor0
----
-4213
-4447
-7489

skipif mysql # not compatible
query I rowsort label-962
SELECT + col0 / - cor0.col0 - 78 * col2 AS col0 FROM tab1 AS cor0
----
-4213
-4447
-7489

onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT DISTINCT col2 * col2 DIV - col1 + - col0 + ( col0 ) FROM tab1 AS cor0
----
-112
-324
-708

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT col2 * col2 / - col1 + - col0 + ( col0 ) FROM tab1 AS cor0
----
-112
-324
-708

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

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

skipif mysql # not compatible
query I rowsort label-965
SELECT col2 + - CAST ( col2 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-966
SELECT - col2 + 92 DIV - col2 FROM tab0 AS cor0
----
-35
-83
-93

skipif mysql # not compatible
query I rowsort label-966
SELECT - col2 + 92 / - col2 FROM tab0 AS cor0
----
-35
-83
-93

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

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

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

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

query I rowsort
SELECT + - 97 AS col0 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL 96 * - col2 + + col0 FROM tab0 AS cor0
----
-3144
-61
-7783

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

query I rowsort
SELECT ALL - ( cor0.col1 ) * - 97 AS col2 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT ALL col2 + - col1 * 60 * + col2 AS col2 FROM tab1 AS cor0
----
-34143
-74784
-84186

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

query I rowsort
SELECT DISTINCT 49 + col2 AS col1 FROM tab0 AS cor0
----
131
50
82

query I rowsort
SELECT - col2 * - col1 * 54 AS col0 FROM tab2 AS cor0
----
34884
45198
82836

query I rowsort
SELECT DISTINCT + 71 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
-2310
-5740
-70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + - col0 col0 FROM tab2 AS cor0
----
-56
-6162
-6320

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( col0 * col1 ) + 63 col2 FROM tab2 AS cor0
----
22894
271581
6790

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

query I rowsort
SELECT + 99 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT col2 + - col0 * col1 * cor0.col1 FROM tab2 cor0
----
-22793
-271492
-6700

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

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

query I rowsort
SELECT ALL + 67 + col2 AS col0 FROM tab2 AS cor0
----
105
93
94

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

query I rowsort
SELECT ALL + 68 + - 20 AS col2 FROM tab2 AS cor0
----
48
48
48

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - col2 * - col0 - - col0 col1 FROM tab1 cor0
----
191
3722
7773

query I rowsort
SELECT 47 + - 63 FROM tab2 cor0
----
-16
-16
-16

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-996
SELECT ALL col1 * - CAST( - col1 AS SIGNED ) * tab0.col1 AS col2 FROM tab0
----
636056
753571
912673

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL col1 * - CAST ( - col1 AS INTEGER ) * tab0.col1 AS col2 FROM tab0
----
636056
753571
912673

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

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

query I rowsort
SELECT + col2 - - col1 * 28 FROM tab0
----
2441
2630
2717

query I rowsort
SELECT DISTINCT col1 * - ( + 55 ) * - tab0.col1 FROM tab0
----
406780
455455
517495

query I rowsort
SELECT + - col1 * - 13 * + cor0.col2 AS col2 FROM tab1 cor0
----
16224
18252
7410

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

query I rowsort
SELECT DISTINCT + 18 + 23 * col2 FROM tab1 cor0
----
1260
1329
2226

query I rowsort
SELECT ALL - col1 + col2 + col0 AS col2 FROM tab2
----
100
3
45

query I rowsort
SELECT - 92 * col0 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT col2 + cor0.col2 * + ( - col2 ) FROM tab2 AS cor0
----
-1406
-650
-702

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

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

query I rowsort
SELECT 58 * cor0.col2 + 41 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 90b5fb9416d36987e6d5e66076c3abf8

query I rowsort
SELECT ALL - - ( 71 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + col0 * + 57 * col1 FROM tab2 AS cor0
----
12369
262314
76551

onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT col2 * - ( + 8 * - col0 ) + + 19 + - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
1527
16243
24035

skipif mysql # not compatible
query I rowsort label-1011
SELECT col2 * - ( + 8 * - col0 ) + + 19 + - col1 / col0 AS col2 FROM tab2 AS cor0
----
1527
16243
24035

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

query I rowsort
SELECT - col1 + col1 * - cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
-50
-593
-957

query I rowsort
SELECT DISTINCT + col1 + - 53 AS col1 FROM tab2 AS cor0
----
-22
-36
6

query I rowsort
SELECT - + col0 + 24 * col1 FROM tab0 AS cor0
----
2040
2095
2293

query I rowsort
SELECT DISTINCT - col2 + ( 95 * cor0.col0 ) + ( + col2 * + col0 ) AS col1 FROM tab2 AS cor0
----
10469
827
9412

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT col1 / 60 AS col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL col1 + col0 * col2 + col1 * + 17 AS col1 FROM tab0 cor0
----
1781
2340
8936

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

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
17576
19683
54872

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

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

skipif mysql # not compatible
query I rowsort label-1023
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 ALL - + col1 * - col1 + cor0.col0 col0 FROM tab2 cor0
----
3559
368
968

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT + col2 + col1 DIV + 19 AS col0 FROM tab2
----
28
29
38

skipif mysql # not compatible
query I rowsort label-1029
SELECT + col2 + col1 / + 19 AS col0 FROM tab2
----
28
29
38

query I rowsort
SELECT + cor0.col2 * cor0.col0 * + col0 - + 14 AS col1 FROM tab1 AS cor0
----
233458
472
614386

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

query I rowsort
SELECT + - ( + col2 ) * 72 - + col2 * col1 FROM tab2 cor0
----
-2781
-3382
-3406

query I rowsort
SELECT 8 - + col1 AS col1 FROM tab1 AS cor0
----
-18
-2
-5

query I rowsort
SELECT ALL + - col2 * - col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT 12 * - col2 + ( col1 ) FROM tab2 AS cor0
----
-253
-293
-439

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

query I rowsort
SELECT DISTINCT - 49 + + col2 * + tab2.col2 FROM tab2
----
1395
627
680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1038
SELECT ALL - CAST( NULL AS DECIMAL ) * + cor1.col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL - CAST ( NULL AS REAL ) * + cor1.col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col1 * col2 + 82 - - 39 * + col0 AS col1 FROM tab1
----
1603
3148
4450

query I rowsort
SELECT - 96 * col1 + + col2 FROM tab2
----
-1594
-2949
-5638

query I rowsort
SELECT ALL - 22 + - tab2.col2 FROM tab2
----
-48
-49
-60

query I rowsort
SELECT + col0 * col1 + - 66 FROM tab2 AS cor0
----
1277
151
4536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1043
SELECT ALL CAST( NULL AS SIGNED ) * 46 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL CAST ( NULL AS INTEGER ) * 46 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 16 + - tab2.col1 AS col2 FROM tab2
----
-1
-15
-43

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 - 13 AS col0 FROM tab0 AS cor0
----
7383
8268
9396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * - ( col0 ) col1 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT DISTINCT - - 87 * ( - col0 ) AS col2 FROM tab0 cor0
----
-2088
-3045
-7743

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

query I rowsort
SELECT ALL - col2 * col2 + col1 * - cor0.col1 * - cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
634991
746936
912707

onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT ALL - col1 * col2 + - col2 DIV + col2 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - col1 * col2 + - col2 / + col2 FROM tab0 AS cor0
----
-2839
-7463
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1052
SELECT tab0.col1 + 38 DIV tab0.col0 FROM tab0
----
87
91
98

skipif mysql # not compatible
query I rowsort label-1052
SELECT tab0.col1 + 38 / tab0.col0 FROM tab0
----
87
91
98

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1056
SELECT DISTINCT col1 + + 30 DIV col1 FROM tab2
----
18
31
59

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT col1 + + 30 / col1 FROM tab2
----
18
31
59

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

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

query I rowsort
SELECT ALL - 41 * 83 + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1375
-3214
-401

query I rowsort
SELECT 28 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

query I rowsort
SELECT 69 - col2 * ( - col0 * col0 ) FROM tab2
----
1392
158253
237227

onlyif mysql # use DIV operator for integer division
query I rowsort label-1062
SELECT DISTINCT col2 * col1 DIV col0 FROM tab1 AS cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT col2 * col1 / col0 FROM tab1 AS cor0
----
15
468
8

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

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

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

query I rowsort
SELECT col0 * ( - col0 + + col0 * + 49 ) FROM tab2
----
2352
292032
299568

query I rowsort
SELECT DISTINCT + col2 * - 4 AS col0 FROM tab1
----
-216
-228
-384

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

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

query I rowsort
SELECT DISTINCT + col1 * - 79 AS col1 FROM tab2 cor0
----
-1343
-2449
-4661

query I rowsort
SELECT DISTINCT - - col2 * + 37 + - col2 AS col1 FROM tab1 AS cor0
----
1944
2052
3456

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT ALL - cor0.col0 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL - cor0.col0 + col1 / col1 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 21 col1 FROM tab2
----
546
567
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26
-27
-38

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

query I rowsort
SELECT + + ( - cor1.col1 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL - col0 * 50 AS col2 FROM tab2
----
-350
-3900
-3950

query I rowsort
SELECT ALL + 46 FROM tab1, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

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

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

query I rowsort
SELECT + - 72 * + col1 + col0 * + col2 FROM tab2 cor0
----
-2043
-2220
1778

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

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

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

query I rowsort
SELECT DISTINCT 40 * - cor0.col1 FROM tab0, tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT DISTINCT col1 * 92 * col0 AS col1 FROM tab0
----
189888
312340
745108

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1088
SELECT - + col2 + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-1088
SELECT - + col2 + col0 / - col1 AS col2 FROM tab2 AS cor0
----
-27
-27
-42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1089
SELECT - - CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1089
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 41 * + col1 * 51 + - col1 * col0 FROM tab2 AS cor0
----
-127971
-36890
-65038

query I rowsort
SELECT + 51 * + col1 + ( + col0 ) - - cor0.col2 FROM tab1 AS cor0
----
1383
631
839

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

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

query I rowsort
SELECT + col1 + + 49 * col2 * col0 AS col1 FROM tab1 AS cor0
----
178762
376333
7964

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

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

query I rowsort
SELECT 1 * - col0 + col2 FROM tab1
----
-7
16
51

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

skipif mysql # not compatible
query I rowsort label-1097
SELECT ( col0 ) / 25 AS col2 FROM tab2
----
0
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor2.col2 col2 FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT ALL + ( + 46 ) AS col1 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - cor0.col2 - 66 col1 FROM tab2 AS cor0
----
-118
-120
-142

query I rowsort
SELECT + 82 * tab0.col1 * col1 AS col0 FROM tab0
----
606472
679042
771538

query I rowsort
SELECT ALL + - ( col0 ) * ( + col0 ) + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL tab0.col2 + + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ed0f18675169071c56b762ebcebeac71

query I rowsort
SELECT ( col1 ) + + 48 FROM tab2
----
107
65
79

query I rowsort
SELECT col1 - col0 * + 11 AS col2 FROM tab1
----
-694
-7
-867

query I rowsort
SELECT ( - col1 ) + - tab2.col1 AS col2 FROM tab2
----
-118
-34
-62

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

query I rowsort
SELECT ALL 22 * - col1 * - col2 FROM tab2 cor0
----
14212
18414
33748

query I rowsort
SELECT + 71 + cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
106
7369
863

query I rowsort
SELECT ALL - 22 * col1 FROM tab2 cor0
----
-1298
-374
-682

query I rowsort
SELECT - - col0 * col2 * col2 - + col2 AS col1 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT ALL + 7 FROM tab1, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT - - ( - 80 ) * - cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
1322
2453
4694

query I rowsort
SELECT ALL col0 - 49 AS col1 FROM tab2
----
-42
29
30

query I rowsort
SELECT ALL - col2 * 11 - - 49 FROM tab0
----
-314
-853
38

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

query I rowsort
SELECT DISTINCT 43 * - 16 AS col1 FROM tab0, tab2 AS cor0
----
-688

onlyif mysql # use DIV operator for integer division
query I rowsort label-1118
SELECT - col1 DIV 44 col2 FROM tab0
----
-1
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1118
SELECT - col1 / 44 col2 FROM tab0
----
-1
-2
-2

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

query I rowsort
SELECT col1 + + 85 AS col0 FROM tab2 cor0
----
102
116
144

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

query I rowsort
SELECT + + ( 49 ) * col0 * col0 - 84 FROM tab0 AS cor0
----
28140
388045
59941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - 28 col2 FROM tab2 AS cor0
----
-1
-2
10

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

query I rowsort
SELECT ALL + col0 + 29 AS col1 FROM tab1
----
109
32
93

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

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

query I rowsort
SELECT DISTINCT 92 + tab2.col0 AS col2 FROM tab2
----
170
171
99

query I rowsort
SELECT DISTINCT - col2 + col1 * + col1 * + col2 FROM tab1
----
16128
36450
5643

query I rowsort
SELECT ALL + ( + 77 ) + col2 FROM tab2
----
103
104
115

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

query I rowsort
SELECT 76 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT + col0 DIV + col2 + + col1 + 15 FROM tab1
----
26
28
41

skipif mysql # not compatible
query I rowsort label-1132
SELECT + col0 / + col2 + + col1 + 15 FROM tab1
----
26
28
41

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

query I rowsort
SELECT ALL + 65 * col2 + 69 FROM tab1 AS cor0
----
3579
3774
6309

query I rowsort
SELECT ALL - + 44 * - col1 FROM tab2 AS cor0
----
1364
2596
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - 20 col0 FROM tab1 AS cor0
----
149
656
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT col2 - col0 * CAST ( + col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - 68 * - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
207
4416
5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1139
SELECT - - 26 * cor0.col1 + CAST( 16 AS SIGNED ) + + col0 col1 FROM tab0 AS cor0
----
2276
2471
2573

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1139
SELECT - - 26 * cor0.col1 + CAST ( 16 AS INTEGER ) + + col0 col1 FROM tab0 AS cor0
----
2276
2471
2573

onlyif mysql # use DIV operator for integer division
query I rowsort label-1140
SELECT DISTINCT + col0 * col2 DIV + ( - 78 ) FROM tab2 AS cor0
----
-2
-26
-38

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT + col0 * col2 / + ( - 78 ) FROM tab2 AS cor0
----
-2
-26
-38

query I rowsort
SELECT + + 41 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2069
230
3043

query I rowsort
SELECT DISTINCT - + 29 + + col2 - ( + 7 * col2 ) AS col1 FROM tab1 AS cor0
----
-353
-371
-605

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 * col2 + ( col1 * - 75 ) AS col0 FROM tab2 AS cor0
----
112801
2778
48303

query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 + + cor0.col2 - - col1 AS col1 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT - 51 * col2 + cor0.col0 FROM tab2 AS cor0
----
-1248
-1370
-1859

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

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + - cor0.col1 * col1 / ( col2 ) FROM tab1 AS cor0
----
-1
-1
-12

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

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

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

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

query I rowsort
SELECT ALL - col0 * + 30 * + col2 FROM tab1 AS cor0
----
-109440
-230400
-4860

onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT DISTINCT + col0 + 75 * col1 DIV col2 col1 FROM tab0 cor0
----
172
219
7310

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + col0 + 75 * col1 / col2 col1 FROM tab0 cor0
----
172
219
7310

query I rowsort
SELECT DISTINCT + col2 + + col0 * col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
2132
223
3119

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

query I rowsort
SELECT - 5 + - col2 - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1487
-707
-761

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

query I rowsort
SELECT col0 * + 79 - - col0 * cor0.col0 FROM tab1 AS cor0
----
12720
246
9152

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

query I rowsort
SELECT - + cor0.col0 * cor0.col1 + col1 + + ( 54 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1357
-408
1488

query I rowsort
SELECT DISTINCT + col1 + 47 FROM tab1 AS cor0
----
57
60
73

query I rowsort
SELECT - - 2 * - col0 AS col2 FROM tab0 cor0
----
-178
-48
-70

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

query I rowsort
SELECT col0 * + col0 + - col1 + cor0.col0 FROM tab0 AS cor0
----
1163
514
7919

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1164
SELECT ALL + cor0.col0 + col0 * col2 DIV - col0 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + cor0.col0 + col0 * col2 / - col0 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * + col0 col2 FROM tab0 AS cor0
----
1225
19008
649522

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

query I rowsort
SELECT ALL + 49 + - col0 * + col1 FROM tab0 AS cor0
----
-2015
-3346
-8050

query I rowsort
SELECT + - col2 * col2 * + col2 AS col1 FROM tab1 cor0
----
-157464
-185193
-884736

query I rowsort
SELECT DISTINCT - - 35 * cor0.col0 AS col0 FROM tab0 cor0
----
1225
3115
840

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

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

query I rowsort
SELECT DISTINCT col2 * col0 + - cor0.col2 * col2 AS col1 FROM tab0 cor0
----
-297
34
574

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

query I rowsort
SELECT ALL 89 - col1 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
-243979
-678953
-9320

query I rowsort
SELECT + col1 * - col0 + 95 FROM tab2
----
-122
-1248
-4507

query I rowsort
SELECT ALL - 88 * + 8 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 38da29b1a5975bc8b83a3901248170e3

query I rowsort
SELECT + col1 * ( col0 ) * + col2 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - 55 + + col0 * + col2 AS col2 FROM tab0
----
-20
7243
737

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

query I rowsort
SELECT 27 * + col0 + col2 FROM tab0 AS cor0
----
2485
681
946

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT + CAST ( col1 AS INTEGER ) + col0 * col0 FROM tab2 cor0
----
6143
6258
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT - col2 + tab2.col0 DIV - tab2.col0 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-1187
SELECT - col2 + tab2.col0 / - tab2.col0 FROM tab2
----
-27
-28
-39

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

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 * col1
----

query I rowsort
SELECT + cor0.col2 * col2 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
10256
2994
3889

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col0 AND col1
----

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

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

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

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

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

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

query I rowsort
SELECT + - col0 * - col2 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL col1 * - tab0.col1 * col0 AS col2 FROM tab0
----
-177504
-329315
-737009

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

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

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

query I rowsort
SELECT - cor0.col1 + col2 * - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-132
-26222
-598527

query I rowsort
SELECT ALL col0 + col2 * + tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT - col2 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-1206
SELECT + + col2 * + CAST( - cor0.col1 AS SIGNED ) DIV - cor0.col1 + + 46 AS col1 FROM tab1 AS cor0
----
100
103
142

skipif mysql # not compatible
query I rowsort label-1206
SELECT + + col2 * + CAST ( - cor0.col1 AS INTEGER ) / - cor0.col1 + + 46 AS col1 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT DISTINCT + cor0.col1 * 14 + - 87 FROM tab0 AS cor0
----
1117
1187
1271

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

query I rowsort
SELECT ALL + col0 * + 95 FROM tab0 cor0
----
2280
3325
8455

query I rowsort
SELECT DISTINCT cor0.col1 * + 0 + cor0.col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col0 - col2 * - 99 FROM tab0 AS cor0
----
134
3291
8207

query I rowsort
SELECT + col0 * col2 - - col0 * col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT - - ( + col0 ) + + col1 + + ( - col2 ) FROM tab2 AS cor0
----
11
111
58

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

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

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

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

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

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

query I rowsort
SELECT ALL + - ( - ( - col0 ) ) + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 * + 90 + + col0 * + col1 FROM tab0 AS cor0
----
-5335
-5676
-91

query I rowsort
SELECT DISTINCT - - cor0.col1 * ( col1 ) + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

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

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

query I rowsort
SELECT col0 * - 58 FROM tab0
----
-1392
-2030
-5162

query I rowsort
SELECT ALL - col2 * col1 + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - + 42 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-11
-25
17

query I rowsort
SELECT col0 * + col1 * + 71 FROM tab1 AS cor0
----
45440
5538
73840

query I rowsort
SELECT + - col1 + + col2 * ( - 37 + col1 ) AS col0 FROM tab1 AS cor0
----
-1549
-2317
-620

query I rowsort
SELECT - ( 32 ) AS col0 FROM tab1
----
-32
-32
-32

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

query I rowsort
SELECT DISTINCT tab1.col0 * 4 * - col1 AS col2 FROM tab1
----
-2560
-312
-4160

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

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

query I rowsort
SELECT - col1 - - tab2.col2 * - 39 FROM tab2
----
-1073
-1084
-1499

query I rowsort
SELECT ALL col1 + col0 * + 50 FROM tab2 AS cor0
----
381
3959
3967

onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT 9 + col0 DIV ( col2 ) FROM tab0
----
10
44
9

skipif mysql # not compatible
query I rowsort label-1235
SELECT 9 + col0 / ( col2 ) FROM tab0
----
10
44
9

query I rowsort
SELECT ALL 70 * + tab2.col2 AS col2 FROM tab2
----
1820
1890
2660

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

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

query I rowsort
SELECT col1 * - col0 + col2 * col0 FROM tab1
----
3008
6640
84

query I rowsort
SELECT tab0.col2 + - col1 * - 17 FROM tab0
----
1495
1629
1650

query I rowsort
SELECT ALL 29 * + col0 AS col2 FROM tab1
----
1856
2320
87

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

query I rowsort
SELECT DISTINCT + col1 * - 66 + + col0 FROM tab1 AS cor0
----
-1713
-596
-778

query I rowsort
SELECT DISTINCT - col0 * + 54 * - col2 FROM tab0 AS cor0
----
1890
394092
42768

query I rowsort
SELECT DISTINCT + col1 + + col1 - + ( col2 ) AS col0 FROM tab0 AS cor0
----
100
139
193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1246
SELECT DISTINCT - col0 - CAST( col1 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
-3559
-368
-968

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - col0 - CAST ( col1 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
-3559
-368
-968

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1248
SELECT DISTINCT col1 - - 68 DIV + cor0.col0 FROM tab2 AS cor0
----
17
40
59

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT col1 - - 68 / + cor0.col0 FROM tab2 AS cor0
----
17
40
59

query I rowsort
SELECT ALL col1 * 58 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
39208
5800
9802

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

query I rowsort
SELECT ALL col0 - col2 * + 57 * col2 AS col1 FROM tab1 AS cor0
----
-166209
-185129
-525232

query I rowsort
SELECT DISTINCT - + col0 + + ( + 55 ) * col1 * col1 AS col0 FROM tab2 AS cor0
----
15816
191377
52848

query I rowsort
SELECT cor0.col1 * + 93 - 62 FROM tab1 AS cor0
----
1147
2356
868

query I rowsort
SELECT ALL - tab1.col1 - + tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4a21fff066040168fa2a1bf702533e5d

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + cor0.col1 * 10 FROM tab0 cor0
----
1005
884
999

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

query I rowsort
SELECT ALL - + col2 + col1 * col2 * - col0 FROM tab2 AS cor0
----
-119678
-51072
-5886

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

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

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

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT CAST ( 29 AS INTEGER ) AS col2 FROM tab0 cor0
----
29

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

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

query I rowsort
SELECT ALL - - 91 AS col0 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT 10 + cor0.col1 FROM tab0 cor0
----
101
107
96

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

query I rowsort
SELECT - 20 + - cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
169
2008
2982

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

query I rowsort
SELECT ALL + + col2 * + col1 * - 76 FROM tab1 AS cor0
----
-106704
-43320
-94848

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

query I rowsort
SELECT DISTINCT - ( + 70 ) FROM tab0
----
-70

query I rowsort
SELECT - tab2.col0 + col2 * - col0 + + 93 FROM tab2
----
-103
-2013
-2988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - col0 * + col0 + 19 AS col1 FROM tab2 AS cor0
----
-30
-6065
-6222

query I rowsort
SELECT ALL cor0.col0 * + 89 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 0645a7614be705a7413a3b1d04bc3bf0

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

query I rowsort
SELECT DISTINCT ( + 9 ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT + ( + 60 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
60

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

query I rowsort
SELECT + - 94 * col0 + col1 FROM tab2 AS cor0
----
-627
-7273
-7409

query I rowsort
SELECT cor0.col1 * + col2 + col2 * 91 FROM tab0 AS cor0
----
14924
188
5841

query I rowsort
SELECT - - 43 + col0 AS col2 FROM tab2 AS cor0
----
121
122
50

query I rowsort
SELECT ALL - col0 + 5 FROM tab2 cor0
----
-2
-73
-74

query I rowsort
SELECT + - col0 * + 97 * col1 FROM tab2 AS cor0
----
-130271
-21049
-446394

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

query I rowsort
SELECT col2 + 54 + col2 AS col2 FROM tab2 AS cor0
----
106
108
130

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 52 AS REAL ) * - col0 + + col0 FROM tab1 AS cor0
----
-153
-3264
-4080

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1289
SELECT + - col0 DIV + 62 + col2 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-1289
SELECT + - col0 / + 62 + col2 FROM tab0 AS cor0
----
1
33
81

query I rowsort
SELECT - cor0.col1 * cor0.col0 * + col0 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-106176
-1526
-359034

onlyif mysql # use DIV operator for integer division
query I rowsort label-1291
SELECT - col2 * col2 DIV + col2 + + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-1291
SELECT - col2 * col2 / + col2 + + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
24
583
944

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

query I rowsort
SELECT DISTINCT ( - col2 * col1 ) - - ( - 53 ) FROM tab0
----
-150
-2891
-7515

onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT + 19 + - col1 DIV col0 + ( col0 ) AS col2 FROM tab0
----
107
40
52

skipif mysql # not compatible
query I rowsort label-1294
SELECT + 19 + - col1 / col0 + ( col0 ) AS col2 FROM tab0
----
107
40
52

query I rowsort
SELECT - 88 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-101
-114
-98

query I rowsort
SELECT col2 * 84 FROM tab0 AS cor0
----
2772
6888
84

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

query I rowsort
SELECT + 35 + col2 * - col1 FROM tab1 AS cor0
----
-1213
-1369
-535

query I rowsort
SELECT ALL - 6 + col1 + col2 FROM tab1 AS cor0
----
103
61
74

query I rowsort
SELECT DISTINCT + - 70 AS col1 FROM tab1 cor0
----
-70

query I rowsort
SELECT DISTINCT 10 * col0 AS col1 FROM tab1 AS cor0
----
30
640
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT - CAST( + col1 AS SIGNED ) * + col0 - col0 DIV col1 FROM tab1 AS cor0
----
-1046
-646
-78

skipif mysql # not compatible
query I rowsort label-1302
SELECT - CAST ( + col1 AS INTEGER ) * + col0 - col0 / col1 FROM tab1 AS cor0
----
-1046
-646
-78

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1306
SELECT - 59 / cor0.col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT col0 + col1 + + 7 FROM tab2 AS cor0
----
103
144
45

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

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

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

query I rowsort
SELECT cor0.col0 + 70 AS col1 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT - cor0.col2 * - 28 AS col1 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT + 0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT - - 56 * + col1 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT - 74 + + cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 96808a6831faa202b9c2ddc35a41c6df

query I rowsort
SELECT 59 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT - + col2 + ( col2 ) * col1 + + ( col0 ) * - col1 FROM tab2 AS cor0
----
-3094
-735
593

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

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

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

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

query I rowsort
SELECT - col1 - 68 * + col2 AS col1 FROM tab0 AS cor0
----
-165
-2330
-5667

onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT DISTINCT col1 DIV - col2 + - col2 FROM tab0 AS cor0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT col1 / - col2 + - col2 FROM tab0 AS cor0
----
-35
-83
-98

query I rowsort
SELECT ALL - col2 * col1 * - 75 + col1 * cor0.col1 FROM tab2 cor0
----
118531
48739
63736

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

query I rowsort
SELECT ALL col0 + 28 FROM tab0 AS cor0
----
117
52
63

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

query I rowsort
SELECT + + 85 * col1 FROM tab1 cor0
----
1105
2210
850

onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT DISTINCT 2 * 11 DIV - tab1.col1 AS col1 FROM tab1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT 2 * 11 / - tab1.col1 AS col1 FROM tab1
----
-1
-2
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT + cor0.col0 + - col1 * col2 DIV - col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-1329
SELECT + cor0.col0 + - col1 * col2 / - col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 95 * + cor0.col0 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT + - cor0.col0 * cor0.col2 + ( + 6 ) FROM tab2 AS cor0
----
-183
-2022
-2996

query I rowsort
SELECT DISTINCT - 88 + col1 AS col2 FROM tab1 AS cor0
----
-62
-75
-78

query I rowsort
SELECT ALL + 91 * + cor0.col0 FROM tab2 AS cor0
----
637
7098
7189

onlyif mysql # use DIV operator for integer division
query I rowsort label-1334
SELECT + 48 - col1 DIV col0 FROM tab1
----
40
48
48

skipif mysql # not compatible
query I rowsort label-1334
SELECT + 48 - col1 / col0 FROM tab1
----
40
48
48

query I rowsort
SELECT + 16 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

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

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

query I rowsort
SELECT ALL - 12 AS col0 FROM tab0 AS cor0
----
-12
-12
-12

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

query I rowsort
SELECT ALL - col1 * - col1 + - 43 * + 92 AS col2 FROM tab1 cor0
----
-3280
-3787
-3856

query I rowsort
SELECT ALL - col0 + col0 * - 74 AS col2 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT - - 75 * cor0.col0 FROM tab1 AS cor0
----
225
4800
6000

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

query I rowsort
SELECT - 29 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1345
SELECT + tab1.col0 * col0 + CAST( - 52 AS SIGNED ) AS col2 FROM tab1
----
-43
4044
6348

skipif mysql # not compatible
query I rowsort label-1345
SELECT + tab1.col0 * col0 + CAST ( - 52 AS INTEGER ) AS col2 FROM tab1
----
-43
4044
6348

query I rowsort
SELECT ALL + 63 * 63 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 75213a4dbe8008dbae21cee520b4ca0d

query I rowsort
SELECT + + tab2.col1 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

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

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

query I rowsort
SELECT ALL + tab1.col1 * + 99 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6f145882e7bb0bbb2b1665f06415703e

query I rowsort
SELECT - 15 + - col0 AS col1 FROM tab1
----
-18
-79
-95

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

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

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

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

query I rowsort
SELECT ALL + col0 * col0 * + col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
243
45056
89600

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

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

query I rowsort
SELECT ALL + col1 * - 44 + + col2 FROM tab1 AS cor0
----
-1090
-383
-476

onlyif mysql # use DIV operator for integer division
query I rowsort label-1356
SELECT DISTINCT 98 DIV + 65 - - col1 * + cor0.col2 FROM tab1 cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT 98 / + 65 - - col1 * + cor0.col2 FROM tab1 cor0
----
1249
1405
571

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

query I rowsort
SELECT + 84 + - 39 * col1 FROM tab1 AS cor0
----
-306
-423
-930

query I rowsort
SELECT DISTINCT - 49 + + 95 + col1 * col1 FROM tab1 cor0
----
146
215
722

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

query I rowsort
SELECT DISTINCT - col1 + - 46 AS col2 FROM tab0
----
-132
-137
-143

onlyif mysql # use DIV operator for integer division
query I rowsort label-1362
SELECT ALL + - ( cor0.col1 ) DIV col1 + col0 AS col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL + - ( cor0.col1 ) / col1 + col0 AS col0 FROM tab0 AS cor0
----
23
34
88

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

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

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

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + col2 + col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT + col0 + 78 FROM tab2 AS cor0
----
156
157
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT ALL - col0 + + col0 * + col0 + + col2 DIV col0 FROM tab1 AS cor0
----
24
4032
6321

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - col0 + + col0 * + col0 + + col2 / col0 FROM tab1 AS cor0
----
24
4032
6321

query I rowsort
SELECT 10 + ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-14
-25
-79

query I rowsort
SELECT DISTINCT - col1 + - 81 FROM tab1 AS cor0
----
-107
-91
-94

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

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

query I rowsort
SELECT - col2 + - 37 FROM tab0 cor0
----
-119
-38
-70

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

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

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

query I rowsort
SELECT ALL 83 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT ALL 43 + + col0 AS col0 FROM tab0
----
132
67
78

query I rowsort
SELECT DISTINCT col2 + col1 * + 88 * + tab1.col0 FROM tab1
----
56377
6918
91616

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT col2 + + 8 * + 76 FROM tab1 AS cor0
----
662
665
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT DISTINCT col0 * ( 4 ) DIV - col0 + col2 * + 35 * + cor0.col0 FROM tab0 AS cor0
----
1221
255426
27716

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT col0 * ( 4 ) / - col0 + col2 * + 35 * + cor0.col0 FROM tab0 AS cor0
----
1221
255426
27716

query I rowsort
SELECT - - col1 - - 83 AS col1 FROM tab0 AS cor0
----
169
174
180

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + 47 AS col0 FROM tab1 AS cor0
----
141
3008
3760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * + 68 * col0 col1 FROM tab2 AS cor0
----
-39508
-440232
-445876

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

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

query I rowsort
SELECT ALL + 36 + cor0.col2 FROM tab2 AS cor0
----
62
63
74

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

query I rowsort
SELECT DISTINCT + 11 * + col2 FROM tab1
----
1056
594
627

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

query I rowsort
SELECT + cor0.col1 * - 2 FROM tab0, tab2 AS cor0
----
9 values hashing to 66e198acca624efd182aa551bb5de4c7

query I rowsort
SELECT DISTINCT + 91 + + cor0.col0 FROM tab0 AS cor0
----
115
126
180

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

query I rowsort
SELECT cor0.col0 * - 20 * - 1 FROM tab0, tab0 cor0
----
9 values hashing to 7c9c3e0d5466b072c8b1e09f0514ac02

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

query I rowsort
SELECT + 96 * cor0.col1 AS col1 FROM tab1 cor0
----
1248
2496
960

query I rowsort
SELECT - cor0.col0 * col2 + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

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

query I rowsort
SELECT - + col1 + 52 AS col1 FROM tab1 AS cor0
----
26
39
42

query I rowsort
SELECT 79 + - 85 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-7145
-7565
-8069

query I rowsort
SELECT ALL + - 41 + col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-4137
-50
-6441

query I rowsort
SELECT + 71 + 50 * - col2 AS col1 FROM tab0 AS cor0
----
-1579
-4029
21

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) * 34 FROM tab2
----
-156468
-45662
-7378

onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT ALL - col2 DIV 45 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - col2 / 45 FROM tab0
----
-1
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * - 12 + col2 * + ( + 5 ) col2 FROM tab0 AS cor0
----
-502
-747
-907

query I rowsort
SELECT ALL + + cor0.col0 * + col0 * + col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
374
474611
493056

query I rowsort
SELECT col1 * + 39 * - tab0.col1 - 0 AS col2 FROM tab0
----
-288444
-322959
-366951

query I rowsort
SELECT + 28 + - col0 FROM tab0
----
-61
-7
4

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

query I rowsort
SELECT 41 - + col2 FROM tab0
----
-41
40
8

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

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

query I rowsort
SELECT + col1 + - col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + cor0.col0 * 51 + - col0 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT 61 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT - col0 + - col2 DIV col1 AS col2 FROM tab1 cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-1419
SELECT - col0 + - col2 / col1 AS col2 FROM tab1 cor0
----
-5
-69
-87

query I rowsort
SELECT + 19 * col0 AS col0 FROM tab1
----
1216
1520
57

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col1 - 70 * - col1 AS col0 FROM tab2 cor0
----
1207
2201
4189

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

query I rowsort
SELECT DISTINCT + - col1 + col1 * - 62 FROM tab2 AS cor0
----
-1071
-1953
-3717

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

skipif mysql # not compatible
query I rowsort label-1428
SELECT tab0.col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - + col0 + ( - col1 + cor0.col0 * 8 ) FROM tab0 AS cor0
----
148
532
82

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

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

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

query I rowsort
SELECT ALL col0 * + ( - 29 * col2 ) + ( 40 ) FROM tab0 AS cor0
----
-211602
-22928
-975

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

query I rowsort
SELECT ALL - + col2 + 44 * col1 AS col2 FROM tab1 cor0
----
1090
383
476

query I rowsort
SELECT + - col2 * - col1 + col1 * + cor0.col1 FROM tab0 AS cor0
----
10234
15743
9506

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1442
SELECT ALL - 95 DIV 5 AS col2 FROM tab1 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - 95 / 5 AS col2 FROM tab1 AS cor0
----
-19
-19
-19

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

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

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

query I rowsort
SELECT ALL - - 55 + col0 * cor0.col0 FROM tab1 AS cor0
----
4151
64
6455

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

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

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

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

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

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

query I rowsort
SELECT - + cor0.col1 * + col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

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

query I rowsort
SELECT DISTINCT ( col0 ) + + cor0.col0 * - 23 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT ALL - 51 + + cor0.col1 * + 51 AS col1 FROM tab0 AS cor0
----
4335
4590
4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-1456
SELECT + col0 * col0 DIV + col0 + 55 FROM tab1 AS cor0
----
119
135
58

skipif mysql # not compatible
query I rowsort label-1456
SELECT + col0 * col0 / + col0 + 55 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT ALL 47 + cor0.col2 * ( cor0.col0 ) + + col0 FROM tab1 AS cor0
----
212
3759
7807

query I rowsort
SELECT ALL 40 + - col0 * col1 FROM tab1 AS cor0
----
-1000
-38
-600

query I rowsort
SELECT + 21 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c

query I rowsort
SELECT DISTINCT - 23 + col1 AS col1 FROM tab2 cor0
----
-6
36
8

query I rowsort
SELECT - ( col0 ) + - ( - col2 ) - col0 FROM tab1 AS cor0
----
-64
-71
48

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

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

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

query I rowsort
SELECT DISTINCT 55 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
55

query I rowsort
SELECT + 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-1467
SELECT - ( - col0 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1467
SELECT - ( - col0 ) / + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT + col2 * col0 DIV col0 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1468
SELECT + col2 * col0 / col0 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 13 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + col1 * - 10 FROM tab0
----
-860
-910
-970

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

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

query I rowsort
SELECT - - 90 * col1 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT 38 + + 91 AS col1 FROM tab1 AS cor0
----
129
129
129

query I rowsort
SELECT col2 + + col2 + col2 * col2 FROM tab0 AS cor0
----
1155
3
6888

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

query I rowsort
SELECT + 11 * col0 * col1 + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
11373
6986
881

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

query I rowsort
SELECT + 43 * + col2 + col1 + col2 * col1 FROM tab1 AS cor0
----
3031
3752
5389

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

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

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

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

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

query I rowsort
SELECT ALL + 7 * col2 AS col0 FROM tab0
----
231
574
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - ( 2 ) col1 FROM tab1 AS cor0
----
11
24
8

query I rowsort
SELECT + cor0.col0 + - 10 AS col2 FROM tab1 AS cor0
----
-7
54
70

query I rowsort
SELECT 16 * tab0.col1 AS col1 FROM tab0
----
1376
1456
1552

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1491
SELECT ALL col2 + CAST( 19 AS SIGNED ) * + cor0.col2 col1 FROM tab1 AS cor0
----
1080
1140
1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL col2 + CAST ( 19 AS INTEGER ) * + cor0.col2 col1 FROM tab1 AS cor0
----
1080
1140
1920

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

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - cor0.col1 + 34 FROM tab2 AS cor0
----
51
65
93

query I rowsort
SELECT ALL - col1 * col1 + + 34 FROM tab2 AS cor0
----
-255
-3447
-927

query I rowsort
SELECT + cor0.col0 + + 47 AS col1 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT tab1.col1 * - 39 FROM tab1
----
-1014
-390
-507

query I rowsort
SELECT DISTINCT + col1 * - col0 - + col1 * - cor0.col1 FROM tab1 AS cor0
----
-540
-871
598

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

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

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

query I rowsort
SELECT ALL + col0 * - col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

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

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

query I rowsort
SELECT + 89 + col0 FROM tab0 AS cor0
----
113
124
178

query I rowsort
SELECT + col0 * - col0 + + col2 FROM tab0 cor0
----
-1224
-543
-7839

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

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

query I rowsort
SELECT ALL + 53 + - cor0.col1 * - ( + 45 ) AS col2 FROM tab2 AS cor0
----
1448
2708
818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col0 * col0 col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL col2 * col1 + + ( col0 ) * + col1 FROM tab1 cor0
----
1210
1482
2288

query I rowsort
SELECT ALL - + 86 * col2 AS col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT - 39 * col2 AS col0 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT DISTINCT - col1 * - col0 * + col1 + col2 * + col0 FROM tab2 AS cor0
----
25833
273546
6916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1514
SELECT + col1 + - col0 * - CAST( 47 + + col1 AS SIGNED ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1007033
-105250
-4943

skipif mysql # not compatible
query I rowsort label-1514
SELECT + col1 + - col0 * - CAST ( 47 + + col1 AS INTEGER ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1007033
-105250
-4943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col2 * 21 col0 FROM tab1 AS cor0
----
-193536
-61236
-68229

query I rowsort
SELECT ALL - 85 * + col0 + col2 + 3 FROM tab1 cor0
----
-198
-5380
-6701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * ( col0 ) col0 FROM tab2 AS cor0
----
56
6162
6320

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

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

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

query I rowsort
SELECT DISTINCT cor0.col2 + - 66 AS col2 FROM tab2, tab2 AS cor0
----
-28
-39
-40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - col1 col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

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

skipif mysql # not compatible
query I rowsort label-1523
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col1 * + col1 + + 28 FROM tab0
----
7424
8309
9437

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1525
SELECT - CAST( 2 AS SIGNED ) + + col1 * col2 FROM tab2 cor0
----
1532
644
835

skipif mysql # not compatible
query I rowsort label-1525
SELECT - CAST ( 2 AS INTEGER ) + + col1 * col2 FROM tab2 cor0
----
1532
644
835

query I rowsort
SELECT DISTINCT + col0 + + col0 * + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

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

query I rowsort
SELECT ALL + - col1 * 53 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1375
-466
-609

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

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

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

query I rowsort
SELECT DISTINCT + 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
17

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1533
SELECT ALL 25 + tab1.col0 DIV col0 AS col0 FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL 25 + tab1.col0 / col0 AS col0 FROM tab1
----
26
26
26

query I rowsort
SELECT + 40 + - col1 * col0 * 44 + + 64 * col1 FROM tab2
----
-198672
-57964
-7524

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

query I rowsort
SELECT - ( + cor0.col2 ) + - col1 - col1 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT + 6 * - col0 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1422
-1728
-954

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

query I rowsort
SELECT DISTINCT + 12 + col1 * cor0.col2 AS col0 FROM tab1 cor0
----
1260
1416
582

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) + col2 col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ( col2 + + col0 ) * - col2 FROM tab0
----
-14022
-1881
-36

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

query I rowsort
SELECT ALL - + col2 + 19 FROM tab0 AS cor0
----
-14
-63
18

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

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

query I rowsort
SELECT DISTINCT + ( 2 ) * tab2.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
118
34
62

query I rowsort
SELECT ALL + 27 + col2 FROM tab2 AS cor0
----
53
54
65

query I rowsort
SELECT ALL + - 42 * - col0 - - col2 FROM tab0 AS cor0
----
1041
1471
3820

query I rowsort
SELECT + 56 - - col2 * 3 FROM tab2 AS cor0
----
134
137
170

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

query I rowsort
SELECT ALL col2 * col1 + + 73 * + 29 AS col2 FROM tab1 AS cor0
----
2687
3365
3521

query I rowsort
SELECT ALL - - ( col1 ) + 70 FROM tab1 AS cor0
----
80
83
96

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

query I rowsort
SELECT DISTINCT - - 5 + + col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT - col1 + col1 * + 53 * - tab1.col2 AS col2 FROM tab1
----
-30220
-66157
-74438

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

query I rowsort
SELECT DISTINCT col0 * + col0 + 71 * - col0 AS col1 FROM tab1 AS cor0
----
-204
-448
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT 29 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

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

query I rowsort
SELECT + 87 * col1 * - col0 AS col1 FROM tab2 cor0
----
-116841
-18879
-400374

query I rowsort
SELECT + col2 * - 88 AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT ALL + - col0 + 43 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-308
-3432
-3476

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

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

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * col1 + col1 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

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

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

query I rowsort
SELECT ALL - - 25 * + col2 AS col2 FROM tab0 AS cor0
----
2050
25
825

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

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

query I rowsort
SELECT col0 * + col0 * col1 - - col2 FROM tab2
----
106135
1546
358982

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1573
SELECT col0 / 75 + col1 col0 FROM tab0
----
86
92
97

query I rowsort
SELECT DISTINCT 18 + cor0.col2 FROM tab1, tab0 AS cor0
----
100
19
51

query I rowsort
SELECT col1 * col1 + 4 AS col1 FROM tab2
----
293
3485
965

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

query I rowsort
SELECT + col0 * 65 + - col2 * + col2 FROM tab0 AS cor0
----
-939
2274
471

query I rowsort
SELECT ALL 93 + cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to a4e08e5121cd8dc57a6dfe331d50c533

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

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT tab1.col0 / 81 FROM tab1
----
0

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

query I rowsort
SELECT ALL - tab0.col1 * - 49 FROM tab0
----
4214
4459
4753

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

skipif mysql # not compatible
query I rowsort label-1582
SELECT - + ( - 53 ) + - col2 * - CAST ( - col1 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
-16171
-36451
-5647

query I rowsort
SELECT col1 * - 12 FROM tab0 AS cor0
----
-1032
-1092
-1164

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

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

query I rowsort
SELECT + - 23 + 83 FROM tab1 AS cor0
----
60
60
60

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

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

query I rowsort
SELECT DISTINCT - + col1 * col1 + 52 * 35 FROM tab1 cor0
----
1144
1651
1720

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + - col1 + - col2 * 75 AS col2 FROM tab1
----
-4102
-4295
-7226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * col1 * col0 col2 FROM tab2 AS cor0
----
11501
243906
71179

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

query I rowsort
SELECT - col1 + + cor0.col1 * + col2 * col1 - col2 FROM tab1 AS cor0
----
16115
36424
5633

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

query I rowsort
SELECT 83 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT - col0 * 36 FROM tab0 cor0
----
-1260
-3204
-864

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

query I rowsort
SELECT col2 * col0 * col0 + 68 * tab2.col0 FROM tab2
----
163488
1799
242530

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

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT + cor0.col1 - + CAST ( col1 AS INTEGER ) * col0 * - col2 FROM tab2 AS cor0
----
119711
51051
5890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * col2 col1 FROM tab1
----
3294
3477
5856

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1606
SELECT ALL CAST( - 56 AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL CAST ( - 56 AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT - cor0.col0 * - 8 AS col1 FROM tab1 AS cor0
----
24
512
640

onlyif mysql # use DIV operator for integer division
query I rowsort label-1608
SELECT + col0 DIV CAST( + 89 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1608
SELECT + col0 / CAST ( + 89 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 6 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1612
SELECT col2 + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-1612
SELECT col2 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT col2 * ( - 30 ) + + col1 FROM tab0
----
-2369
-904
67

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT ALL 6 - + col0 DIV col1 FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL 6 - + col0 / col1 FROM tab0
----
6
6
6

query I rowsort
SELECT - cor0.col2 + - col2 * - col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT - 83 * + col1 AS col2 FROM tab2
----
-1411
-2573
-4897

query I rowsort
SELECT + cor0.col0 * - cor0.col1 + - 64 FROM tab1 AS cor0
----
-1104
-142
-704

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab1 cor0
----
3
64
80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1622
SELECT tab2.col2 * - col1 DIV col1 + + col1 FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-1622
SELECT tab2.col2 * - col1 / col1 + + col1 FROM tab2
----
-21
33
4

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

query I rowsort
SELECT - col1 + - col0 * + col1 AS col2 FROM tab0 WHERE ( - col0 + col0 * + col0 ) = NULL
----

query I rowsort
SELECT ALL - col0 * + col0 * + tab0.col1 FROM tab0
----
-118825
-49536
-720811

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

query I rowsort
SELECT DISTINCT col1 * tab2.col0 + - tab2.col2 - + col1 * - tab2.col1 FROM tab2
----
1151
1594
8057

onlyif mysql # use DIV operator for integer division
query I rowsort label-1628
SELECT tab1.col1 DIV + col2 + + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1628
SELECT tab1.col1 / + col2 + + col1 FROM tab1
----
10
13
26

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT - col2 DIV - col0 + ( + 23 ) FROM tab1 AS cor0
----
23
24
41

skipif mysql # not compatible
query I rowsort label-1635
SELECT - col2 / - col0 + ( + 23 ) FROM tab1 AS cor0
----
23
24
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT ALL + ( + col0 ) + cor0.col1 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + ( + col0 ) + cor0.col1 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
3
64
80

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

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

query I rowsort
SELECT col0 * col2 FROM tab1 WHERE NULL BETWEEN ( - col2 * - col1 ) AND - col2
----

query I rowsort
SELECT col1 + col0 + - col0 AS col0 FROM tab1
----
10
13
26

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

query I rowsort
SELECT tab1.col1 * - col2 - col2 FROM tab1
----
-1344
-1458
-627

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT col2 DIV col0 + + col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-1643
SELECT col2 / col0 + + col0 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT ( + col0 ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT col2 * col0 - + col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * col2 col0 FROM tab0
----
2871
7544
98

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1650
SELECT col1 / + col1 + col1 col0 FROM tab0
----
87
92
98

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1655
SELECT - CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 26 * + col2 AS col2 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT 62 * col0 AS col0 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT ALL 18 * col0 + col0 FROM tab1 cor0
----
1216
1520
57

query I rowsort
SELECT DISTINCT + - ( col2 ) * col2 + - 20 FROM tab1 AS cor0
----
-2936
-3269
-9236

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 * + col2 + col0 col2 FROM tab0
----
288
43
745

query I rowsort
SELECT DISTINCT - 31 * + 3 + col2 AS col2 FROM tab2
----
-55
-66
-67

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

skipif mysql # not compatible
query I rowsort label-1664
SELECT 10 / + col2 AS col0 FROM tab0
----
0
0
10

query I rowsort
SELECT col1 + tab1.col0 + col0 * + ( 72 ) AS col2 FROM tab1
----
245
4682
5853

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1667
SELECT ALL 26 + col0 DIV + col0 FROM tab2
----
27
27
27

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 26 + col0 / + col0 FROM tab2
----
27
27
27

query I rowsort
SELECT ALL + col1 + 32 AS col1 FROM tab1
----
42
45
58

query I rowsort
SELECT ALL - 20 + + 98 FROM tab2
----
78
78
78

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT 0 DIV col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1671
SELECT 0 / col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 35 + - col1 FROM tab2
----
-52
-66
-94

query I rowsort
SELECT - col2 * col1 + + 62 FROM tab2
----
-1472
-584
-775

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

skipif mysql # not compatible
query I rowsort label-1674
SELECT + col2 + - col1 / + 63 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - col2 * col0 - ( - ( - cor0.col0 ) * ( col0 ) ) FROM tab2 cor0
----
-238
-8112
-9243

query I rowsort
SELECT ALL + - col1 + 47 AS col0 FROM tab1 AS cor0
----
21
34
37

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

query I rowsort
SELECT ALL + col2 + + 72 FROM tab1 AS cor0
----
126
129
168

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT DISTINCT + col2 + 68 + - 63 * col0 DIV - ( - 59 ) FROM tab1 cor0
----
119
57
79

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT + col2 + 68 + - 63 * col0 / - ( - 59 ) FROM tab1 cor0
----
119
57
79

query I rowsort
SELECT ALL + col2 * col1 * + col2 - col0 * col0 AS col2 FROM tab2 AS cor0
----
18307
22550
33800

query I rowsort
SELECT DISTINCT + - col1 + + col2 * + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-96
35851
551277

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

query I rowsort
SELECT ALL col2 * - 57 FROM tab1 AS cor0
----
-3078
-3249
-5472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + 44 col1 FROM tab1 AS cor0
----
132
2816
3520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 * - col0 + col1 col0 FROM tab2 cor0
----
269
2703
2711

query I rowsort
SELECT DISTINCT tab0.col0 * col0 * + col0 AS col2 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT - 0 * col1 * - col0 + + col1 FROM tab1
----
10
13
26

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1691
SELECT + col0 DIV col0 + col2 * col2 AS col2 FROM tab2 cor0
----
1445
677
730

skipif mysql # not compatible
query I rowsort label-1691
SELECT + col0 / col0 + col2 * col2 AS col2 FROM tab2 cor0
----
1445
677
730

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

query I rowsort
SELECT ALL tab2.col1 * 14 FROM tab2
----
238
434
826

query I rowsort
SELECT DISTINCT col0 * - 84 FROM tab2
----
-588
-6552
-6636

query I rowsort
SELECT - ( + ( - tab0.col1 ) ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

query I rowsort
SELECT ALL - col1 + + 38 FROM tab2
----
-21
21
7

query I rowsort
SELECT ALL + col0 + - 59 AS col2 FROM tab1 AS cor0
----
-56
21
5

query I rowsort
SELECT 86 - col1 AS col2 FROM tab0 AS cor0
----
-11
-5
0

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

query I rowsort
SELECT - ( col0 ) * col2 + ( cor0.col2 + col1 ) FROM tab1 cor0
----
-3581
-7571
-82

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

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

skipif mysql # not compatible
query I rowsort
SELECT ( - cor0.col0 ) * + cor0.col0 - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-4153
-63
-6496

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

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 + 53 - col1 AS col0 FROM tab0
----
-43
1056
6686

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

query I rowsort
SELECT DISTINCT tab2.col2 - col2 * - col2 AS col0 FROM tab2
----
1482
702
756

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

query I rowsort
SELECT col1 - + 96 * col1 AS col1 FROM tab0
----
-8170
-8645
-9215

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

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT + CAST ( cor0.col0 AS INTEGER ) + - col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - - col0 * + 4 AS col0 FROM tab1 AS cor0
----
12
256
320

query I rowsort
SELECT ALL + 15 * col2 * - 96 AS col2 FROM tab1 AS cor0
----
-138240
-77760
-82080

query I rowsort
SELECT col2 + col1 * + 53 AS col0 FROM tab0 AS cor0
----
4591
4905
5142

query I rowsort
SELECT 25 * cor0.col2 + + 63 AS col2 FROM tab1 AS cor0
----
1413
1488
2463

query I rowsort
SELECT DISTINCT + col2 * + col1 + ( cor0.col0 ) + + col2 * + 25 FROM tab1 AS cor0
----
2059
2757
3728

query I rowsort
SELECT DISTINCT + ( + col1 ) * 3 - 21 AS col1 FROM tab1 AS cor0
----
18
57
9

query I rowsort
SELECT col0 * 27 AS col0 FROM tab1
----
1728
2160
81

query I rowsort
SELECT - ( + 26 ) * col2 * col1 AS col2 FROM tab1
----
-14820
-32448
-36504

query I rowsort
SELECT - - 42 * - col0 AS col0 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT + cor0.col0 + col2 * 15 FROM tab0 AS cor0
----
1319
50
519

query I rowsort
SELECT DISTINCT 54 * col1 FROM tab2 AS cor0
----
1674
3186
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 40 col1 FROM tab1
----
-2160
-2280
-3840

query I rowsort
SELECT + cor0.col1 * 88 FROM tab2 cor0
----
1496
2728
5192

query I rowsort
SELECT + col1 + 89 * + 23 + col0 AS col2 FROM tab2 cor0
----
2085
2143
2184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 65 col2 FROM tab0 AS cor0
----
151
156
162

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

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
3
64
80

query I rowsort
SELECT + ( 71 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL + cor0.col0 * - 0 + + 89 * + col1 FROM tab2 AS cor0
----
1513
2759
5251

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

query I rowsort
SELECT ALL + cor0.col2 * 26 AS col0 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT + ( + tab1.col0 ) + - 98 FROM tab1
----
-18
-34
-95

query I rowsort
SELECT col2 * col0 - - ( col2 ) * + col2 FROM tab0
----
14022
1881
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-1736
SELECT - 13 DIV + col1 + 57 FROM tab1
----
56
56
57

skipif mysql # not compatible
query I rowsort label-1736
SELECT - 13 / + col1 + 57 FROM tab1
----
56
56
57

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

query I rowsort
SELECT ALL cor0.col1 * 10 * + 83 AS col1 FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to f7dc4fbe58361ecc829ff475530686ec

query I rowsort
SELECT + col2 * 14 + 90 * + col1 + 49 AS col0 FROM tab1
----
1747
2563
3145

query I rowsort
SELECT DISTINCT - + cor0.col0 * 44 AS col2 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT - col1 + 63 * + 57 FROM tab2 AS cor0
----
3532
3560
3574

query I rowsort
SELECT + + col0 + - ( 5 * - col1 ) AS col0 FROM tab0 AS cor0
----
454
520
544

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT - - col2 / col2 FROM tab0 cor0
----
1

query I rowsort
SELECT - + cor0.col1 + + 15 - + col0 AS col0 FROM tab2 AS cor0
----
-122
-23
-81

query I rowsort
SELECT + - cor1.col2 * - 45 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8c033541caf69f6347023da0ef126f74

query I rowsort
SELECT DISTINCT - + 33 + + col0 * col2 FROM tab1 AS cor0
----
129
3615
7647

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

query I rowsort
SELECT DISTINCT + ( col1 ) - - col0 * ( col2 + + cor0.col2 ) * 21 FROM tab0 AS cor0
----
1567
306607
33350

query I rowsort
SELECT - 30 * - ( + col0 ) * - 50 AS col1 FROM tab1 cor0
----
-120000
-4500
-96000

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

skipif mysql # not compatible
query I rowsort label-1755
SELECT - + CAST ( - col1 AS INTEGER ) + col1 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( + col2 ) * 87 col1 FROM tab2 AS cor0
----
133458
56202
72819

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL CAST ( - 43 AS INTEGER ) col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + ( 15 ) - col1 FROM tab1 AS cor0
----
-11
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1759
SELECT + col2 + tab0.col1 DIV - col0 AS col1 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-1759
SELECT + col2 + tab0.col1 / - col0 AS col1 FROM tab0
----
-1
30
81

query I rowsort
SELECT ALL - col2 * - col0 + + 36 FROM tab1 AS cor0
----
198
3684
7716

query I rowsort
SELECT DISTINCT ( + col0 ) * - 9 FROM tab0 AS cor0
----
-216
-315
-801

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

query I rowsort
SELECT DISTINCT - + 7 + - col0 FROM tab2 AS cor0
----
-14
-85
-86

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

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

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

query I rowsort
SELECT DISTINCT + + 20 * - col0 FROM tab2 cor0
----
-140
-1560
-1580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 + cor0.col2 * 18 col0 FROM tab0 AS cor0
----
1487
29
605

query I rowsort
SELECT ALL - col1 * + col0 + ( col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-2787
-5278
-946

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * - col2 col0 FROM tab1 AS cor0
----
-3294
-3477
-5856

onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT 14 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT 14 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 25 * + col1 + - 52 col1 FROM tab0 AS cor0
----
2098
2223
2373

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

query I rowsort
SELECT - col2 * col1 + - 18 AS col0 FROM tab1 cor0
----
-1266
-1422
-588

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

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

query I rowsort
SELECT DISTINCT 67 * + col0 AS col1 FROM tab2 AS cor0
----
469
5226
5293

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

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

query I rowsort
SELECT DISTINCT - - cor0.col0 + 15 FROM tab2 AS cor0
----
22
93
94

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

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

query I rowsort
SELECT ALL col0 * - 17 + - col1 AS col0 FROM tab0 AS cor0
----
-1604
-494
-692

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

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

query I rowsort
SELECT ALL - - col1 * col1 + col2 * + col2 FROM tab2 AS cor0
----
1690
1733
4157

query I rowsort
SELECT + cor0.col2 + - 71 FROM tab0 AS cor0
----
-38
-70
11

query I rowsort
SELECT ALL + col1 + 67 FROM tab2
----
126
84
98

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT CAST ( + col2 AS INTEGER ) * + col2 + + col0 AS col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT + col2 * col0 + - ( 79 ) + col0 AS col1 FROM tab2 AS cor0
----
117
2027
3002

query I rowsort
SELECT ALL 41 + - tab2.col1 FROM tab2
----
-18
10
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1791
SELECT ALL + CAST( + col0 AS SIGNED ) * col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + CAST ( + col0 AS INTEGER ) * col2 FROM tab0
----
35
7298
792

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

query I rowsort
SELECT 42 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

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

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

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

query I rowsort
SELECT + - col0 * + col0 + + 93 * col2 - + ( - col2 ) * + col1 FROM tab2 cor0
----
-2061
-2132
3299

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1798
SELECT - + col2 + - CAST( - col1 AS SIGNED ) - - col2 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1798
SELECT - + col2 + - CAST ( - col1 AS INTEGER ) - - col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL - 55 FROM tab1, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT 95 + + col0 DIV - col0 AS col2 FROM tab2 cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-1802
SELECT 95 + + col0 / - col0 AS col2 FROM tab2 cor0
----
94
94
94

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

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

query I rowsort
SELECT ALL - 48 * + ( col0 ) FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT ALL + col0 - 49 FROM tab1
----
-46
15
31

query I rowsort
SELECT + 90 * - col0 + col2 AS col1 FROM tab2
----
-603
-6994
-7072

query I rowsort
SELECT DISTINCT col1 + + col0 + - col0 * - 6 AS col1 FROM tab1 AS cor0
----
458
47
573

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

skipif mysql # not compatible
query I rowsort label-1808
SELECT 87 / - col2 FROM tab0 AS cor0
----
-1
-2
-87

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

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

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

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 * + tab2.col0 * 66 FROM tab2
----
3234
401544
411906

query I rowsort
SELECT ALL - 37 AS col2 FROM tab0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 - tab0.col1 col0 FROM tab0
----
-80
-85
-91

query I rowsort
SELECT - col2 * - col0 + + col0 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - 67 * - 17 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 70cbbd175c37203213d25d1126702522

query I rowsort
SELECT - - col2 + ( 37 ) FROM tab2 AS cor0
----
63
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1818
SELECT - + col0 * + CAST ( + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + col1 * + col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-2990
-618
627

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

query I rowsort
SELECT col1 + + 67 FROM tab1 AS cor0
----
77
80
93

query I rowsort
SELECT ALL col2 + - ( + 79 ) FROM tab1 cor0
----
-22
-25
17

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1825
SELECT - col1 + + col0 DIV - col0 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-1825
SELECT - col1 + + col0 / - col0 FROM tab2 AS cor0
----
-18
-32
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1826
SELECT + CAST( - col2 AS SIGNED ) * + tab2.col0 FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1826
SELECT + CAST ( - col2 AS INTEGER ) * + tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 66 * - col2 * + col1 + col0 + col1 AS col0 FROM tab1
----
-37546
-82275
-92635

query I rowsort
SELECT + - 88 * - 89 AS col2 FROM tab2 AS cor0
----
7832
7832
7832

query I rowsort
SELECT 25 * - cor0.col0 + - cor0.col2 * col2 * - 31 AS col1 FROM tab0 AS cor0
----
-844
206219
33159

query I rowsort
SELECT + col1 * + col1 + + cor0.col1 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT ALL - + 46 * col2 + 11 FROM tab2 AS cor0
----
-1185
-1231
-1737

query I rowsort
SELECT ALL - + 34 * col1 AS col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT + 24 AS col1 FROM tab2
----
24
24
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT DISTINCT + 90 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + 90 / col2 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + - col2 * + col1 + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-2262
1128
459

onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT DISTINCT col1 DIV - col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT col1 / - col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - ( - col0 ) + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT DISTINCT - col0 * + col1 DIV col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT - col0 * + col1 / col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col0 * cor0.col0 + col2 * 76 AS col2 FROM tab0 cor0
----
1301
14153
3084

query I rowsort
SELECT - cor0.col2 * 65 FROM tab2 AS cor0
----
-1690
-1755
-2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT DISTINCT col0 * + cor0.col2 * col2 + + 90 DIV - col0 col0 FROM tab2 AS cor0
----
114075
5091
52727

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT col0 * + cor0.col2 * col2 + + 90 / - col0 col0 FROM tab2 AS cor0
----
114075
5091
52727

query I rowsort
SELECT DISTINCT - - 21 * - cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
-1782
-1822
-2002

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - ( 9 ) * col0 AS col1 FROM tab1 AS cor0
----
-27
-576
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + + 18 col1 FROM tab2
----
35
49
77

query I rowsort
SELECT + col1 + + 69 FROM tab2
----
100
128
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 54 ) * col2 - 46 col0 FROM tab1
----
2870
3032
5138

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2
----
3645 values hashing to 7e665e04e6102323f69d70091871d1d2

query I rowsort
SELECT + 95 * + col0 AS col2 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT DISTINCT col0 + - col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + 97 col0 FROM tab2 AS cor0
----
-679
-7566
-7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT DISTINCT + - cor0.col0 DIV - 82 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT + - cor0.col0 / - 82 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + ( col2 ) col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1854
SELECT 61 + - col0 DIV + col2 FROM tab1 AS cor0
----
60
61
61

skipif mysql # not compatible
query I rowsort label-1854
SELECT 61 + - col0 / + col2 FROM tab1 AS cor0
----
60
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 * col1 * + col0 col0 FROM tab2 AS cor0
----
-122213
-19747
-418782

query I rowsort
SELECT + col1 * col0 - col1 AS col2 FROM tab1
----
1027
52
630

query I rowsort
SELECT - + 1 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + 72 * col1 AS col1 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT DISTINCT tab0.col0 * - col1 + + col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT - col2 * col1 * col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT - - col2 * - cor0.col0 + - col1 * col0 * 64 FROM tab1 AS cor0
----
-44608
-5154
-74240

query I rowsort
SELECT + col2 * + ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT col2 + col2 * 18 FROM tab2
----
494
513
722

query I rowsort
SELECT + col2 * - tab0.col1 * tab0.col2 AS col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT DISTINCT - - col1 * 81 DIV - col1 col2 FROM tab1 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - - col1 * 81 / - col1 col2 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL + col0 + cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * ( 83 + + col0 ) col0 FROM tab1
----
15648
4644
8379

query I rowsort
SELECT ALL col0 + 23 AS col1 FROM tab0
----
112
47
58

query I rowsort
SELECT + - col2 + 73 FROM tab0 AS cor0
----
-9
40
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1871
SELECT DISTINCT - + col2 DIV + 66 + 21 FROM tab0 AS cor0
----
20
21

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT - + col2 / + 66 + 21 FROM tab0 AS cor0
----
20
21

query I rowsort
SELECT DISTINCT - + col1 * - 15 + ( col2 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-372
-391
-649

query I rowsort
SELECT DISTINCT - - col0 * - cor0.col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + col0 + ( - 22 ) * - col2 * col1 FROM tab1 AS cor0
----
12604
27536
30891

query I rowsort
SELECT DISTINCT col1 + - 10 AS col0 FROM tab0 AS cor0
----
76
81
87

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT ALL + col1 * 76 FROM tab0 cor0
----
6536
6916
7372

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1878
SELECT + CAST( 38 AS SIGNED ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
134
92
95

skipif mysql # not compatible
query I rowsort label-1878
SELECT + CAST ( 38 AS INTEGER ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
134
92
95

query I rowsort
SELECT 65 + - col0 AS col0 FROM tab0 cor0
----
-24
30
41

query I rowsort
SELECT + ( 82 ) + col1 * col1 AS col1 FROM tab1 AS cor0
----
182
251
758

query I rowsort
SELECT + 51 * - 9 * col2 FROM tab0 AS cor0
----
-15147
-37638
-459

query I rowsort
SELECT cor0.col1 * col2 + + 79 + + cor0.col0 * col1 FROM tab0 AS cor0
----
15640
3571
4981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * - col0 col1 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - + col0 + + col0 * + col0 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-147
3160
3978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1885
SELECT DISTINCT - 33 + - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT - 33 + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 + col1 + + 96 col2 FROM tab2 AS cor0
----
197
211
239

query I rowsort
SELECT col2 * + col0 + + col0 * - col2 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 83 * - col0 AS col1 FROM tab0
----
-1992
-2905
-7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT ALL + col0 * tab2.col1 + col0 DIV - tab2.col1 FROM tab2
----
1339
217
4601

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + col0 * tab2.col1 + col0 / - tab2.col1 FROM tab2
----
1339
217
4601

query I rowsort
SELECT ALL - col2 + cor0.col1 * col0 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + 47 * + 0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT DISTINCT col2 DIV col2 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT col2 / col2 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1893
SELECT ALL + + cor0.col1 / + col1 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL + + cor0.col1 / + col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col0 * col2 col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * col2 * + ( - 16 ) col1 FROM tab0 AS cor0
----
14432
176
5808

query I rowsort
SELECT ALL col0 + - cor0.col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col1 * - ( col0 ) + + col0 + col2 AS col2 FROM tab0 AS cor0
----
-2007
-3359
-7928

query I rowsort
SELECT col2 * cor0.col0 + - 94 FROM tab1 AS cor0
----
3554
68
7586

onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT ALL + - col1 DIV - 40 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + - col1 / - 40 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT - col2 * - col2 + col0 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT - col1 * ( - col2 ) + - col2 - + col1 * col0 FROM tab0 AS cor0
----
-3299
-719
741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1902
SELECT col1 + CAST( col2 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-1902
SELECT col1 + CAST ( col2 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + col2 + - tab2.col1 + - tab2.col1 * col0 AS col1 FROM tab2
----
-1322
-221
-4635

query I rowsort
SELECT DISTINCT - ( + tab0.col0 * - col0 ) + col2 AS col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL - + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT cor0.col2 - + col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col0 + col1 * + col1 * + col0 AS col1 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT col0 + - 3 * - col1 AS col0 FROM tab1 AS cor0
----
119
81
94

query I rowsort
SELECT + + 87 * col1 * col0 + 41 FROM tab1 AS cor0
----
55721
6827
90521

query I rowsort
SELECT - ( 26 ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 92c9dcf04a06d25c174ffa715aa22fcf

query I rowsort
SELECT ( 93 ) * + col0 AS col2 FROM tab0 AS cor0
----
2232
3255
8277

onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT + + col2 DIV + col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1912
SELECT + + col2 / + col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - 8 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

query I rowsort
SELECT + 91 * - col1 AS col2 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT ( - 81 ) AS col2 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + + 14 FROM tab0 AS cor0
----
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT - cor0.col1 DIV - 28 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1917
SELECT - cor0.col1 / - 28 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - 64 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-64

query I rowsort
SELECT + - col0 * + col0 + cor0.col2 * + col0 + + col1 AS col1 FROM tab2 cor0
----
-3222
-3997
171

onlyif mysql # use DIV operator for integer division
query I rowsort label-1920
SELECT ALL - 10 + col1 DIV col2 FROM tab1 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - 10 + col1 / col2 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT - col2 - 88 FROM tab2
----
-114
-115
-126

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1922
SELECT CAST( - cor1.col2 AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif mysql # not compatible
query I rowsort label-1922
SELECT CAST ( - cor1.col2 AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1923
SELECT ALL ( + col1 ) + - CAST( col1 AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL ( + col1 ) + - CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 - 88 * + ( cor0.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 2386a026b72b8025d009218451fb0918

onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT - col1 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT - col1 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT 7 FROM tab1, tab0, tab1 AS cor0
----
7

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) * col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - col1 * + ( - col1 ) + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 9 col2 FROM tab2 AS cor0
----
26
40
68

query I rowsort
SELECT ALL - ( - col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT ( + 17 ) * - col2 AS col0 FROM tab2 AS cor0
----
-442
-459
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT DISTINCT + + col2 DIV col1 + + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + + col2 / col1 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - ( - 80 ) + + col2 FROM tab2 AS cor0
----
106
107
118

query I rowsort
SELECT 75 + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0813b97ccf3422bb1f9b85c429e9bf44

query I rowsort
SELECT + col0 * 57 * + col0 FROM tab2
----
2793
346788
355737

query I rowsort
SELECT col1 * - ( col0 + col0 ) FROM tab1
----
-1280
-156
-2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT + col2 DIV 5 AS col2 FROM tab0
----
0
16
6

skipif mysql # not compatible
query I rowsort label-1938
SELECT + col2 / 5 AS col2 FROM tab0
----
0
16
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1939
SELECT DISTINCT + col2 - + CAST( NULL AS SIGNED ) / + ( col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT + col2 - + CAST ( NULL AS INTEGER ) / + ( col0 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 85 + + col1 AS col1 FROM tab1
----
111
95
98

query I rowsort
SELECT + 24 + col2 AS col2 FROM tab2 cor0
----
50
51
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1942
SELECT CAST( NULL AS SIGNED ) + - col0 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT CAST ( NULL AS INTEGER ) + - col0 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col1 + + 43 FROM tab0 AS cor0
----
129
134
140

query I rowsort
SELECT + col1 + col2 * col0 * + col0 FROM tab2 AS cor0
----
1354
158243
237175

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col0 + - col0 )
----

query I rowsort
SELECT + col2 * - col2 * - cor0.col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL cor0.col1 * col0 - - col2 * - col2 FROM tab1 AS cor0
----
-2609
-2838
-8176

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( col2 / col1 )
----

query I rowsort
SELECT ALL - tab2.col2 + col2 / tab2.col1 FROM tab2 WHERE NOT col1 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 * + col1 col0 FROM tab2
----
-1343
-217
-4602

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT ALL col2 + tab1.col0 * col0 AS col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT - col1 / + col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE ( NULL ) NOT IN ( col0 / + col2 )
----

query I rowsort
SELECT ALL col1 * - col1 * col1 + + col0 AS col1 FROM tab1
----
-17573
-2117
-936

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL IN ( + col0 * col1 / + tab2.col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col1 + col2 )
----

query I rowsort
SELECT + col0 + col1 * tab0.col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT + col2 + + col1 - + col1 * - tab1.col2 AS col1 FROM tab1
----
1357
1484
637

query I rowsort
SELECT DISTINCT col1 - tab1.col1 AS col0 FROM tab1 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - col0 * + col0 + col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT cor0.col1 + col1 - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1309
-155
-4484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col0 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - col0 + cor0.col1 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + - col1 * col1 + + col0 - + col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col2 * col2 + cor0.col0 FROM tab0 cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 * col1 col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-1971
SELECT col2 * + col1 DIV col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1971
SELECT col2 * + col1 / col1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col0 - - tab2.col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + cor0.col0 * col1 + col1 AS col2 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + - col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col1 col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT + - col2 * - col0 + - col1 * col0 FROM tab2 cor0
----
-2574
-28
1659

query I rowsort
SELECT col2 + col1 * - col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col0 * col1 * col0 FROM tab1 AS cor0
----
234
40960
83200

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 + col2 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 + col1 )
----

query I rowsort
SELECT ALL - - col2 * col1 * + col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT tab1.col0 + - col2 * col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT + tab0.col1 + - col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT DISTINCT col1 + - tab0.col2 DIV col1 + - tab0.col0 * + col0 FROM tab0
----
-1128
-490
-7830

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT col1 + - tab0.col2 / col1 + - tab0.col0 * + col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT - - col1 * - 77 FROM tab0 AS cor0
----
-6622
-7007
-7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT + - col0 DIV - col1 AS col0 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1986
SELECT + - col0 / - col1 AS col0 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT + - col1 + col0 * 97 FROM tab1 AS cor0
----
265
6198
7747

onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT - col1 + col1 DIV - col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-1988
SELECT - col1 + col1 / - col2 FROM tab0 AS cor0
----
-194
-88
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT - col2 DIV ( 75 ) FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT - col2 / ( 75 ) FROM tab1 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT ALL - col1 DIV col1 + + ( 76 ) FROM tab0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL - col1 / col1 + + ( 76 ) FROM tab0
----
75
75
75

query I rowsort
SELECT - col2 + col1 + + ( + 73 * col1 + 24 ) FROM tab0
----
6355
6676
7201

query I rowsort
SELECT - 72 * - 94 FROM tab2, tab1 AS cor0
----
9 values hashing to e3c76b04e6c42ec7888584af35ed9d88

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT - 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT cor0.col0 + + ( + col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - cor0.col0 + 43 * - cor0.col0 FROM tab0 AS cor0
----
-1056
-1540
-3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT - col2 + + cor0.col2 DIV + 35 FROM tab2 AS cor0
----
-26
-27
-37

skipif mysql # not compatible
query I rowsort label-1997
SELECT - col2 + + cor0.col2 / + 35 FROM tab2 AS cor0
----
-26
-27
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1998
SELECT - col2 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-1998
SELECT - col2 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1999
SELECT DISTINCT col1 + 61 * col2 DIV col2 AS col2 FROM tab1 cor0
----
71
74
87

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT col1 + 61 * col2 / col2 AS col2 FROM tab1 cor0
----
71
74
87

query I rowsort
SELECT ALL + col0 + ( - col0 * + col0 ) AS col0 FROM tab2 cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT DISTINCT - col1 + + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT - col1 + + col0 / col0 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT DISTINCT col0 + col0 DIV col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT col0 + col0 / col0 FROM tab2 AS cor0
----
79
8
80

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT tab1.col0 * col2 * col2 + + col2 FROM tab1
----
207993
737376
8802

query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab0 WHERE col2 < col1
----
2838
7462
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT ALL - 33 * - col0 + - col0 * - 11 * col0 FROM tab1 AS cor0
----
198
47168
73040

query I rowsort
SELECT DISTINCT + ( col2 ) * - 54 + col2 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 + col1 * col1 FROM tab2 cor0
----
1178
1632
8083

query I rowsort
SELECT + - 8 + - col1 FROM tab1 AS cor0
----
-18
-21
-34

query I rowsort
SELECT 2 AS col1 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT - 20 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT - col0 * - ( - cor0.col2 ) + col2 FROM tab1 cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab2.col2 ) col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL + + 8 * 59 + + col1 FROM tab0 AS cor0
----
558
563
569

query I rowsort
SELECT + 73 + + col1 FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT ALL + - 58 AS col2 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + - cor0.col1 * cor0.col0 + col0 * col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + 16 AS col2 FROM tab1 AS cor0
----
-48
-64
13

query I rowsort
SELECT DISTINCT tab0.col2 + 80 AS col1 FROM tab0, tab0 AS cor0
----
113
162
81

query I rowsort
SELECT ALL ( col2 * + ( col2 ) + col0 ) AS col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT col1 * - 89 * - col2 FROM tab1 AS cor0
----
111072
124956
50730

query I rowsort
SELECT col0 * col0 + 46 FROM tab0
----
1271
622
7967

query I rowsort
SELECT + col1 * col2 + 15 * col2 - ( + col1 ) FROM tab0 AS cor0
----
15
3247
8601

onlyif mysql # use DIV operator for integer division
query I rowsort label-2028
SELECT + - col0 DIV + col1 + cor0.col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2028
SELECT + - col0 / + col1 + cor0.col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - col0 * col0 * 70 FROM tab0 AS cor0
----
40320
554470
85750

query I rowsort
SELECT - col0 + - 18 FROM tab0
----
-107
-42
-53

query I rowsort
SELECT + - cor0.col0 - + col0 * - col2 * col1 FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT DISTINCT + col2 * - col1 + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL cor0.col0 + + ( cor0.col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + - col0 * - ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + col1 * - 0 + - ( - col0 + col1 ) AS col1 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2036
SELECT DISTINCT col1 + CAST( + col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT col1 + CAST ( + col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - col0 col0 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) * + ( + col0 * - col1 ) FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL + 46 * + 68 AS col2 FROM tab0 AS cor0
----
3128
3128
3128

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 2 * ( col0 ) + col1 AS col0 FROM tab1 cor0
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT - col0 DIV ( + col1 * col2 ) + - tab0.col2 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2042
SELECT - col0 / ( + col1 * col2 ) + - tab0.col2 AS col1 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT DISTINCT - - 75 DIV - col0 + + col0 AS col2 FROM tab0 AS cor0
----
21
33
89

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT - - 75 / - col0 + + col0 AS col2 FROM tab0 AS cor0
----
21
33
89

query I rowsort
SELECT DISTINCT 36 * col0 * - 89 + col1 * col2 + - ( - col0 + + col2 ) AS col2 FROM tab2 AS cor0
----
-21611
-248326
-252429

query I rowsort
SELECT ALL col0 * - col0 + 65 AS col1 FROM tab2 cor0
----
-6019
-6176
16

query I rowsort
SELECT ALL + col2 + col2 * col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - 84 AS col1 FROM tab2 cor0
----
-84
-84
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2048
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab0, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0, tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2049
SELECT CAST( col2 + col0 * - 42 AS SIGNED ) FROM tab1
----
-2631
-3264
-72

skipif mysql # not compatible
query I rowsort label-2049
SELECT CAST ( col2 + col0 * - 42 AS INTEGER ) FROM tab1
----
-2631
-3264
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 88 col0 FROM tab0 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * col2 col0 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT col1 + col1 DIV col0 - + col1 AS col2 FROM tab2 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2053
SELECT col1 + col1 / col0 - + col1 AS col2 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT ALL 34 * tab1.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ba41c000c85dca3eaef7b1a80b9d565e

query I rowsort
SELECT ALL + 96 * cor0.col2 + col0 FROM tab0 AS cor0
----
131
3192
7961

query I rowsort
SELECT ALL - col1 + - col1 * - col0 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT ALL + col0 + col0 * + col0 * - col2 + + 33 DIV - col1 AS col2 FROM tab1 AS cor0
----
-233411
-484
-614322

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + col0 + col0 * + col0 * - col2 + + 33 / - col1 AS col2 FROM tab1 AS cor0
----
-233411
-484
-614322

query I rowsort
SELECT DISTINCT - + 97 + + 48 AS col0 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT DISTINCT - 32 + col0 FROM tab0
----
-8
3
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2060
SELECT CAST( NULL AS SIGNED ) * - col2 * + col2 + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT CAST ( NULL AS INTEGER ) * - col2 * + col2 + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + tab2.col0 + tab2.col1 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT ALL - - ( ( + col0 DIV + col0 ) ) * + cor0.col0 * col2 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - - ( ( + col0 / + col0 ) ) * + cor0.col0 * col2 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT col2 + - 82 * col0 FROM tab2 AS cor0
----
-547
-6370
-6440

query I rowsort
SELECT DISTINCT - col1 * col1 + 53 * col2 FROM tab2 AS cor0
----
-2103
1725
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col0 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT ALL - ( + col0 ) + + 56 - + col2 * col2 FROM tab1 AS cor0
----
-2863
-3257
-9240

query I rowsort
SELECT DISTINCT + + col2 * + col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + + ( - col2 ) * 84 + + 8 AS col1 FROM tab2 AS cor0
----
-2176
-2260
-3184

query I rowsort
SELECT ALL - + ( - col1 ) - 87 FROM tab2 cor0
----
-28
-56
-70

query I rowsort
SELECT ALL - ( cor1.col1 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2071
SELECT + col2 * col2 * CAST( + col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
22572
24510
39858

skipif mysql # not compatible
query I rowsort label-2071
SELECT + col2 * col2 * CAST ( + col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
22572
24510
39858

query I rowsort
SELECT DISTINCT - + 61 + - col1 FROM tab0 AS cor0
----
-147
-152
-158

query I rowsort
SELECT ALL + 82 - cor0.col1 FROM tab1 AS cor0
----
56
69
72

query I rowsort
SELECT - ( + col2 ) + + 56 AS col0 FROM tab2 AS cor0
----
18
29
30

query I rowsort
SELECT + 72 + col1 FROM tab0 AS cor0
----
158
163
169

query I rowsort
SELECT col1 * + 17 AS col0 FROM tab0
----
1462
1547
1649

query I rowsort
SELECT DISTINCT - + ( + col2 ) * - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + + col0 * cor0.col0 + col2 AS col1 FROM tab2 cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT DISTINCT - 32 DIV cor0.col0 + 19 - col0 AS col2 FROM tab2 AS cor0
----
-59
-60
8

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - 32 / cor0.col0 + 19 - col0 AS col2 FROM tab2 AS cor0
----
-59
-60
8

query I rowsort
SELECT col0 * + col1 + - col2 + - cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-1697
1
2548

query I rowsort
SELECT - col0 * col1 * col0 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - + col0 * + 16 FROM tab1 AS cor0
----
-1024
-1280
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-2083
SELECT - cor0.col0 DIV 19 AS col1 FROM tab0 AS cor0
----
-1
-1
-4

skipif mysql # not compatible
query I rowsort label-2083
SELECT - cor0.col0 / 19 AS col1 FROM tab0 AS cor0
----
-1
-1
-4

query I rowsort
SELECT DISTINCT col2 + + 34 FROM tab0 AS cor0
----
116
35
67

query I rowsort
SELECT + col1 + col1 * + 21 AS col2 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT - col1 * - ( + 87 ) * + col0 AS col1 FROM tab0 cor0
----
179568
295365
704613

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2087
SELECT ALL - + col1 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - + col1 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + 26 AS col2 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT ALL + - 66 + col1 FROM tab1 AS cor0
----
-40
-53
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2090
SELECT + cor0.col0 + col2 DIV + col1 FROM tab1 cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-2090
SELECT + cor0.col0 + col2 / + col1 FROM tab1 cor0
----
5
69
87

query I rowsort
SELECT DISTINCT col1 - + col1 * col0 * + col1 FROM tab1 AS cor0
----
-13507
-2002
-6390

query I rowsort
SELECT ALL - col1 * 51 - col2 FROM tab2 AS cor0
----
-1608
-3035
-905

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT - col1 + + col2 DIV col1 FROM tab1 cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-2094
SELECT - col1 + + col2 / col1 FROM tab1 cor0
----
-24
-5
-6

query I rowsort
SELECT - col0 + tab1.col0 + col1 * col1 AS col0 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2096
SELECT + CAST( + col0 AS SIGNED ) + col1 DIV + col1 col2 FROM tab1 cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2096
SELECT + CAST ( + col0 AS INTEGER ) + col1 / + col1 col2 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT ALL + col2 * ( col0 ) * col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT col2 + + ( 41 ) * - col0 * 69 AS col1 FROM tab2
----
-19776
-220636
-223453

query I rowsort
SELECT - - 11 + col2 * + col2 FROM tab2 AS cor0
----
1455
687
740

onlyif mysql # use DIV operator for integer division
query I rowsort label-2100
SELECT DISTINCT CAST( - 22 AS SIGNED ) * - col2 + col0 DIV col2 FROM tab0
----
1805
57
726

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT CAST ( - 22 AS INTEGER ) * - col2 + col0 / col2 FROM tab0
----
1805
57
726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2101
SELECT - 10 - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT - 10 - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2102
SELECT DISTINCT CAST( 58 AS SIGNED ) * col1 FROM tab2
----
1798
3422
986

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT CAST ( 58 AS INTEGER ) * col1 FROM tab2
----
1798
3422
986

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT ( 90 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2105
SELECT DISTINCT + tab0.col1 * CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + tab0.col1 * CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT ALL tab0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL tab0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - tab1.col1 * - ( tab1.col1 * col1 ) AS col0 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT DISTINCT + 63 FROM tab2, tab2 cor0
----
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT - + col0 DIV + 94 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2109
SELECT - + col0 / + 94 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 26 + + 47 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - - 56 * col2 + 64 AS col0 FROM tab1 AS cor0
----
3088
3256
5440

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - col1 * - col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + - col2 + + cor0.col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - - col0 * + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 + - col0 * col2 col0 FROM tab2 AS cor0
----
-2713
1453
772

query I rowsort
SELECT ALL 63 AS col0 FROM tab1 cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2120
SELECT + col1 * CAST( ( - col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-2120
SELECT + col1 * CAST ( ( - col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL col0 + col0 * + col1 + 38 * + col0 FROM tab1
----
195
3136
4160

query I rowsort
SELECT - 68 * + col2 FROM tab1
----
-3672
-3876
-6528

query I rowsort
SELECT - col2 * col1 + + 3 FROM tab2 AS cor0
----
-1531
-643
-834

query I rowsort
SELECT DISTINCT col0 + col0 * tab2.col2 + col2 * col1 FROM tab2
----
1033
3640
3727

onlyif mysql # use DIV operator for integer division
query I rowsort label-2125
SELECT ALL - ( col1 ) + cor0.col2 DIV 7 + 69 AS col0 FROM tab0 AS cor0
----
-11
-13
-28

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - ( col1 ) + cor0.col2 / 7 + 69 AS col0 FROM tab0 AS cor0
----
-11
-13
-28

query I rowsort
SELECT col0 + col2 * + col1 - ( - 33 * + cor0.col1 + + 26 ) FROM tab0 AS cor0
----
10528
3307
5674

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 - - tab0.col2 FROM tab0
----
2011
3299
8090

query I rowsort
SELECT ( - 91 ) + col2 AS col0 FROM tab0
----
-58
-9
-90

query I rowsort
SELECT - ( 5 * col1 ) - col2 FROM tab2
----
-123
-182
-321

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT col1 * + ( col2 ) DIV col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2130
SELECT col1 * + ( col2 ) / col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ( - col1 ) * col0 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + cor0.col0 + ( 0 ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - - ( col2 ) + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - + 48 - - cor0.col0 FROM tab1 AS cor0
----
-45
16
32

query I rowsort
SELECT + col0 * - 25 AS col0 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT ALL + col2 * - 81 + + col0 * col2 + ( cor0.col1 ) AS col1 FROM tab2 cor0
----
-19
-1967
-59

query I rowsort
SELECT - cor0.col2 * ( - col1 ) FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL 58 + col1 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT ALL cor0.col2 + - col0 * 68 FROM tab0 AS cor0
----
-1599
-2379
-5970

query I rowsort
SELECT DISTINCT - tab0.col0 * col1 + + tab0.col0 * + col0 * + col1 + - 66 FROM tab0
----
115364
47406
712646

query I rowsort
SELECT ALL tab0.col2 + col0 * 11 AS col2 FROM tab0
----
1061
297
386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * col0 + tab1.col0 col2 FROM tab1
----
12
4160
6480

query I rowsort
SELECT + cor0.col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 44 - + col1 AS col2 FROM tab0 AS cor0
----
-42
-47
-53

query I rowsort
SELECT DISTINCT + + col1 * col2 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL 73 * + col1 AS col2 FROM tab0 AS cor0
----
6278
6643
7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 * + 68 col1 FROM tab0 AS cor0
----
5872
6277
6631

query I rowsort
SELECT - col0 - + ( - col0 * col0 ) AS col2 FROM tab1
----
4032
6
6320

query I rowsort
SELECT col1 + - 21 * - tab2.col0 FROM tab2
----
1676
1697
178

query I rowsort
SELECT - tab1.col2 * col2 - - ( - col0 ) * - ( + 27 ) FROM tab1
----
-1521
-2835
-7056

query I rowsort
SELECT + 82 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + col2 * + col0 * + col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT col1 * - ( + cor0.col2 ) + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + col1 * cor0.col0 col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT ALL 26 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT - - cor0.col1 * + cor0.col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 19 * 6 col2 FROM tab2 AS cor0
----
55
83
97

query I rowsort
SELECT + 52 * - cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
-29952
-411892
-63700

query I rowsort
SELECT ALL 89 + - col0 * + col0 FROM tab2 AS cor0
----
-5995
-6152
40

query I rowsort
SELECT ALL + - cor0.col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 * 75 + - col2 col1 FROM tab2 AS cor0
----
-1076
-1077
-1088

query I rowsort
SELECT - - 24 AS col0 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT col1 + + ( col2 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT 38 * col2 + + cor0.col1 FROM tab1 AS cor0
----
2078
2176
3661

query I rowsort
SELECT ALL + col2 * - col0 + - col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2046
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT ALL - 63 * - 56 * col1 + - CAST( NULL AS SIGNED ) - 65 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - 63 * - 56 * col1 + - CAST ( NULL AS INTEGER ) - 65 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 6 * + col0 FROM tab2
----
1302
27612
8058

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab0, tab1 cor0
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-2169
SELECT col1 DIV ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2169
SELECT col1 / ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2170
SELECT ALL + col1 * 88 DIV 41 FROM tab1 AS cor0
----
21
27
55

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + col1 * 88 / 41 FROM tab1 AS cor0
----
21
27
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT + col1 + 57 DIV col0 FROM tab1 cor0
----
10
13
45

skipif mysql # not compatible
query I rowsort label-2171
SELECT + col1 + 57 / col0 FROM tab1 cor0
----
10
13
45

query I rowsort
SELECT ALL + col0 + + tab0.col1 + col1 FROM tab0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT ALL - col2 + - col1 DIV + col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - col2 + - col1 / + col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col1 + col1 * + col1 AS col2 FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT - col0 + + 68 FROM tab0
----
-21
33
44

query I rowsort
SELECT ALL col1 * - ( col1 * + tab1.col2 ) + col2 AS col2 FROM tab1
----
-16128
-36450
-5643

query I rowsort
SELECT ALL col2 * + tab1.col0 + - ( + col1 * - tab1.col2 ) FROM tab1
----
1566
4218
8928

query I rowsort
SELECT DISTINCT - cor0.col1 * ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + tab1.col0 * ( + col0 ) + + col0 * col0 FROM tab1
----
12800
18
8192

query I rowsort
SELECT DISTINCT - 20 + 66 FROM tab1, tab2 AS cor0
----
46

query I rowsort
SELECT - col2 + col1 * - col2 FROM tab2
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2182
SELECT + CAST( NULL AS SIGNED ) + - cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2182
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 4 + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-25
-70
-89

query I rowsort
SELECT - 9 + - ( + col2 ) FROM tab0 AS cor0
----
-10
-42
-91

query I rowsort
SELECT - 7 + - 12 * - col0 AS col1 FROM tab2
----
77
929
941

query I rowsort
SELECT - 97 * + tab2.col0 FROM tab2
----
-679
-7566
-7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-2187
SELECT ALL cor0.col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL cor0.col0 / + col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT - + ( col0 ) * + col0 + + ( - col2 ) FROM tab1 AS cor0
----
-4153
-63
-6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + col0 col1 FROM tab0 AS cor0
----
108
162
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2190
SELECT ALL - cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 + col1 * - col0 col2 FROM tab0 AS cor0
----
-1992
-3323
-8027

onlyif mysql # use DIV operator for integer division
query I rowsort label-2192
SELECT - cor0.col1 + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2192
SELECT - cor0.col1 + col2 / col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT 54 * - col0 FROM tab0 cor0
----
-1296
-1890
-4806

query I rowsort
SELECT ALL - 85 * col0 AS col2 FROM tab1 cor0
----
-255
-5440
-6800

query I rowsort
SELECT ALL + col2 + + col2 * ( 33 ) * col1 AS col2 FROM tab1 AS cor0
----
18867
41280
46386

query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 * ( col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + + 77 * col0 - - col2 AS col2 FROM tab1 cor0
----
285
4985
6256

query I rowsort
SELECT + col1 + ( col2 ) FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2199
SELECT CAST( NULL AS SIGNED ) - + 63 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT CAST ( NULL AS INTEGER ) - + 63 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2202
SELECT + + 60 * cor0.col2 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT + + 60 * cor0.col2 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 4 + 58 * col0 AS col2 FROM tab2 AS cor0
----
410
4528
4586

query I rowsort
SELECT 89 + col0 FROM tab1 AS cor0
----
153
169
92

query I rowsort
SELECT DISTINCT + ( 61 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT DISTINCT + col1 * - 76 AS col2 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT - - col1 + 38 FROM tab1 AS cor0
----
48
51
64

query I rowsort
SELECT - 87 + col1 * col2 - - col1 * cor0.col2 FROM tab2 AS cor0
----
1205
1587
2981

query I rowsort
SELECT ALL col1 * + ( + ( col2 ) ) + - 28 AS col1 FROM tab0
----
2810
69
7434

query I rowsort
SELECT ALL + 36 * + tab1.col2 + + tab1.col0 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to d1a373fce1af29743826295f286ccf36

onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT col2 DIV 48 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2211
SELECT col2 / 48 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col1 + ( - tab0.col1 + col0 ) AS col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2213
SELECT - col2 * 95 + + col2 DIV - col1 FROM tab1 AS cor0
----
-5132
-5420
-9127

skipif mysql # not compatible
query I rowsort label-2213
SELECT - col2 * 95 + + col2 / - col1 FROM tab1 AS cor0
----
-5132
-5420
-9127

query I rowsort
SELECT col2 + - col2 + ( cor0.col0 * col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + + col1 * - col0 + cor0.col2 * + col0 + - col1 FROM tab1 AS cor0
----
2998
58
6627

query I rowsort
SELECT + col0 * + ( + 33 ) AS col1 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT col2 + - col2 - - tab1.col1 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT + - col1 + - col2 DIV col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-2218
SELECT + - col1 + - col2 / col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col2 * + 97 AS col2 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT ALL - + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL + 49 + col1 AS col1 FROM tab1 AS cor0
----
59
62
75

query I rowsort
SELECT + 88 * col2 - + cor0.col1 * - col2 FROM tab2 AS cor0
----
3213
3822
3990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2224
SELECT + + CAST( + col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-2224
SELECT + + CAST ( + col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT DISTINCT ( col2 ) DIV + cor0.col2 + col0 - col0 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT ( col2 ) / + cor0.col2 + col0 - col0 AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 - + ( col2 ) AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT cor0.col2 + cor1.col2 * + cor1.col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
9 values hashing to 89d02fca2c245b2af3761007ec4b8e73

query I rowsort
SELECT + 40 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT ALL + 12 + col0 FROM tab0 AS cor0
----
101
36
47

query I rowsort
SELECT + 27 FROM tab2, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab1.col2 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL ( col0 + col1 ) * + col0 FROM tab1
----
4736
7440
87

query I rowsort
SELECT ALL + 9 AS col0 FROM tab1
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT + ( col1 ) + 37 DIV - 94 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2234
SELECT + ( col1 ) + 37 / - 94 FROM tab1
----
10
13
26

query I rowsort
SELECT + - col2 * - col2 * col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col1 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT ALL - cor0.col1 * col2 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
-2772
-7298
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT DISTINCT - col1 DIV - col2 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT - col1 / - col2 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2239
SELECT + col2 * col0 DIV col0 + - col1 col1 FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2239
SELECT + col2 * col0 / col0 + - col1 col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col1 - - tab0.col0 AS col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2241
SELECT - col0 DIV cor0.col0 AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2241
SELECT - col0 / cor0.col0 AS col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - ( tab1.col1 ) + + col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL 42 + col0 FROM tab1
----
106
122
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2244
SELECT ALL CAST( col1 * col2 AS SIGNED ) + col0 FROM tab2
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL CAST ( col1 * col2 AS INTEGER ) + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT cor0.col0 + + cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

query I rowsort
SELECT col2 + + col0 + tab2.col2 AS col0 FROM tab2
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 + col0 * + col1 col2 FROM tab1 AS cor0
----
1216
135
761

query I rowsort
SELECT ALL + + ( + col2 ) + cor0.col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + cor0.col2 * - cor0.col0 FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT ALL - 80 - + col0 FROM tab0 AS cor0
----
-104
-115
-169

query I rowsort
SELECT - col2 * + col0 + col2 AS col2 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT DISTINCT - - cor0.col1 + col1 DIV col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - - cor0.col1 + col1 / col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT col2 * col1 * - col2 + - col0 FROM tab2 AS cor0
----
-22606
-24627
-39962

query I rowsort
SELECT + + cor0.col0 * - col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + - col2 - col1 * col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT - + 24 * + col0 FROM tab2 AS cor0
----
-168
-1872
-1896

query I rowsort
SELECT ALL - ( col0 ) * col0 + - col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL cor0.col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + 3 + col1 * - col1 FROM tab0 AS cor0
----
-7393
-8278
-9406

query I rowsort
SELECT + + ( + col1 ) + col2 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - 10 * col1 * - col2 AS col1 FROM tab1 AS cor0
----
12480
14040
5700

query I rowsort
SELECT DISTINCT + + ( 12 ) AS col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + 42 * - 30 AS col0 FROM tab1 AS cor0
----
-1260
-1260
-1260

query I rowsort
SELECT col2 * + col0 + col0 * + 1 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + col1 * col1 + - col2 AS col1 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT + ( col0 ) + + col2 * col2 * + tab1.col0 AS col0 FROM tab1
----
208000
737360
8751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2269
SELECT ALL CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2270
SELECT ALL - - col1 + CAST( - 94 AS SIGNED ) * cor0.col0 AS col0 FROM tab2 cor0
----
-627
-7273
-7409

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - - col1 + CAST ( - 94 AS INTEGER ) * cor0.col0 AS col0 FROM tab2 cor0
----
-627
-7273
-7409

query I rowsort
SELECT - col2 * - cor0.col2 + - 61 + cor0.col1 AS col1 FROM tab0 AS cor0
----
1114
37
6754

query I rowsort
SELECT ALL col1 + ( 73 ) FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT + - col1 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col0 + col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
101
586
973

query I rowsort
SELECT DISTINCT - + col2 * 8 * + 80 AS col0 FROM tab0 AS cor0
----
-21120
-52480
-640

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL 85 + tab1.col1 * col1 AS col2 FROM tab1
----
185
254
761

query I rowsort
SELECT + col0 * + ( 5 ) + tab2.col1 FROM tab2
----
412
449
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2279
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col0 * ( + 76 ) FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT DISTINCT - col0 * col2 + + cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT DISTINCT + cor0.col1 * - 79 AS col1 FROM tab0 AS cor0
----
-6794
-7189
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 26 col2 FROM tab2 AS cor0
----
182
2028
2054

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT + + col2 DIV - CAST( col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-2284
SELECT + + col2 / - CAST ( col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-15
64
79

query I rowsort
SELECT DISTINCT - - col2 + - ( ( - col1 ) ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT - col1 + - ( col2 ) + + col0 * col1 AS col1 FROM tab0 AS cor0
----
1945
3297
7926

query I rowsort
SELECT ( - cor0.col2 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + cor0.col2 * - 8 + col1 * col0 FROM tab0 cor0
----
1800
3387
7443

query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 91 * - col0 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT - + 86 * col0 + col1 FROM tab0 AS cor0
----
-1978
-2913
-7563

query I rowsort
SELECT 13 + col1 * col2 + - col2 FROM tab2 AS cor0
----
1521
621
823

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2293
SELECT + - CAST( NULL AS SIGNED ) + 86 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT + - CAST ( NULL AS INTEGER ) + 86 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 94 FROM tab0 AS cor0
----
127
176
95

query I rowsort
SELECT ( 29 ) + col2 FROM tab1 AS cor0
----
125
83
86

query I rowsort
SELECT DISTINCT 28 + - col0 AS col0 FROM tab0
----
-61
-7
4

query I rowsort
SELECT + 10 * + col1 AS col2 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT ALL - 6 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-168
-3654
-7686

query I rowsort
SELECT 14 - col0 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT DISTINCT - - 91 * col2 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT - col0 + - col0 * + col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT - col0 + - ( cor0.col2 ) * - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT + + col2 * - cor0.col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - col0 + + col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + 54 * - col0 * - ( col0 ) + - col1 AS col0 FROM tab0
----
31018
427643
66053

onlyif mysql # use DIV operator for integer division
query I rowsort label-2306
SELECT + col1 - col2 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2306
SELECT + col1 - col2 / col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col1 - + 35 AS col2 FROM tab2 cor0
----
-52
-66
-94

query I rowsort
SELECT DISTINCT col0 * col2 + ( col1 ) * col2 AS col2 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT 67 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2310
SELECT DISTINCT + col1 * CAST( + ( + col0 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT + col1 * CAST ( + ( + col0 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + 89 * col2 AS col0 FROM tab1 AS cor0
----
4806
5073
8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT col0 DIV col0 + + col0 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2312
SELECT col0 / col0 + + col0 AS col0 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL - + col2 * 16 + ( + col0 * - ( col0 ) ) FROM tab0 AS cor0
----
-1104
-1241
-9233

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2314
SELECT ALL cor0.col0 * CAST( - cor0.col0 AS SIGNED ) * - cor0.col1 + 89 + col0 * - col0 FROM tab0 cor0
----
117689
49049
712979

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL cor0.col0 * CAST ( - cor0.col0 AS INTEGER ) * - cor0.col1 + 89 + col0 * - col0 FROM tab0 cor0
----
117689
49049
712979

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT ALL + col1 + - col0 DIV - col2 + + col2 * 56 FROM tab1 cor0
----
3050
3203
5389

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + col1 + - col0 / - col2 + + col2 * 56 FROM tab1 cor0
----
3050
3203
5389

query I rowsort
SELECT DISTINCT + col0 * 97 * - col2 FROM tab1 AS cor0
----
-15714
-353856
-744960

query I rowsort
SELECT ALL + + col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + + col0 * 56 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT DISTINCT col0 + cor0.col1 + + 93 AS col2 FROM tab0 AS cor0
----
203
225
273

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2320
SELECT CAST( 61 AS SIGNED ) AS col1 FROM tab0 cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2320
SELECT CAST ( 61 AS INTEGER ) AS col1 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT ( col0 ) * + col2 + - 41 FROM tab0 AS cor0
----
-6
7257
751

query I rowsort
SELECT - col1 + 84 FROM tab2 cor0
----
25
53
67

query I rowsort
SELECT DISTINCT col0 * - 85 + + tab0.col2 AS col1 FROM tab0
----
-2007
-2974
-7483

query I rowsort
SELECT col2 * - col1 * + col1 AS col1 FROM tab1 cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ( 92 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT DISTINCT + - col1 + col2 * 53 AS col0 FROM tab0 AS cor0
----
-44
1663
4255

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT col2 * col0 + - ( 79 + col2 ) FROM tab1 AS cor0
----
29
3512
7505

query I rowsort
SELECT + + col2 * - col2 + + 87 AS col0 FROM tab2 AS cor0
----
-1357
-589
-642

onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT ALL + 3 - col0 DIV + 80 col0 FROM tab2 AS cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + 3 - col0 / + 80 col0 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL + - col0 * col1 + 16 FROM tab2 AS cor0
----
-1327
-201
-4586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - col0 * col0 col0 FROM tab1 AS cor0
----
-4046
-6350
41

query I rowsort
SELECT ALL + 33 * col1 + col2 FROM tab1
----
387
525
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 + - col0 col2 FROM tab1
----
-22
-38
39

query I rowsort
SELECT ( - col2 * - col1 ) + ( - 3 ) * col2 AS col1 FROM tab2
----
1456
532
756

query I rowsort
SELECT ALL + + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + col1 * - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2339
SELECT + ( - col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT + ( - col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - 22 * col1 AS col2 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT DISTINCT col2 * - col1 * ( - 68 ) AS col1 FROM tab0
----
192984
507416
6596

query I rowsort
SELECT DISTINCT - - col0 * - cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT + 41 + - col2 DIV col0 AS col1 FROM tab1
----
23
40
41

skipif mysql # not compatible
query I rowsort label-2344
SELECT + 41 + - col2 / col0 AS col1 FROM tab1
----
23
40
41

query I rowsort
SELECT DISTINCT 4 * + 73 FROM tab0 AS cor0
----
292

query I rowsort
SELECT DISTINCT 44 * - col2 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT - + col1 + 97 - col1 AS col1 FROM tab2 cor0
----
-21
35
63

query I rowsort
SELECT + + 25 * + cor0.col1 FROM tab2 cor0
----
1475
425
775

query I rowsort
SELECT ALL col0 + 45 * + col1 FROM tab1
----
1173
514
665

query I rowsort
SELECT - col1 - cor0.col2 * - cor0.col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + col1 + 24 AS col0 FROM tab0 AS cor0
----
110
115
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2352
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) * col0 + cor0.col1 * col2 FROM tab2 AS cor0
----
-3068
-697
620

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) * col0 + cor0.col1 * col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT ALL col1 + col1 + + col2 AS col2 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT col2 + + 58 * + cor0.col1 - col2 AS col0 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL - cor0.col2 + - 3 * + col2 AS col1 FROM tab1 AS cor0
----
-216
-228
-384

query I rowsort
SELECT + - col0 + col0 * col1 AS col0 FROM tab1 cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT DISTINCT col2 DIV + col1 - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT col2 / + col1 - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 78 * col1 FROM tab0 cor0
----
-6708
-7098
-7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2359
SELECT ALL CAST( NULL AS SIGNED ) * - 36 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL CAST ( NULL AS INTEGER ) * - 36 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT ALL + 44 DIV col1 FROM tab1 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + 44 / col1 FROM tab1 AS cor0
----
1
3
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2361
SELECT ALL - CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
54
57
96

query I rowsort
SELECT + + 9 * col1 - col2 * + cor0.col0 FROM tab1 AS cor0
----
-3558
-7563
72

query I rowsort
SELECT + - col1 * col0 - col1 * col2 * - col2 FROM tab0 AS cor0
----
-3298
603785
91590

query I rowsort
SELECT ALL + ( col0 ) * 65 FROM tab0 cor0
----
1560
2275
5785

onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT cor0.col0 DIV - col2 - - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-2367
SELECT cor0.col0 / - col2 - - col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT + + col2 * - 51 + 60 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1683
-4182
-51

skipif mysql # not compatible
query I rowsort label-2369
SELECT + + col2 * - 51 + 60 / - col1 AS col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT - - col1 * ( + col0 * col1 ) + cor0.col0 FROM tab0 AS cor0
----
177528
329350
737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 30 * col2 col0 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT - - col1 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 78 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT + col1 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2376
SELECT col1 DIV + CAST( cor0.col0 * col2 AS SIGNED ) - + col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2376
SELECT col1 / + CAST ( cor0.col0 * col2 AS INTEGER ) - + col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2377
SELECT - col2 DIV col1 + - col2 - col0 * 30 * col2 FROM tab2 AS cor0
----
-5697
-60866
-90100

skipif mysql # not compatible
query I rowsort label-2377
SELECT - col2 / col1 + - col2 - col0 * 30 * col2 FROM tab2 AS cor0
----
-5697
-60866
-90100

query I rowsort
SELECT DISTINCT + col1 + - col1 + + 39 AS col0 FROM tab0
----
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT + CAST( col1 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2379
SELECT + CAST ( col1 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT ALL col1 DIV + col2 + - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL col1 / + col2 + - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col1 * 75 AS col2 FROM tab0
----
-6450
-6825
-7275

query I rowsort
SELECT - col2 * + 9 FROM tab2
----
-234
-243
-342

query I rowsort
SELECT + col1 * ( tab1.col2 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT 18 * + col0 FROM tab1
----
1152
1440
54

query I rowsort
SELECT + - col1 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL ( 8 ) AS col1 FROM tab1
----
8
8
8

query I rowsort
SELECT - col0 * col0 * ( col0 ) AS col2 FROM tab2 cor0
----
-343
-474552
-493039

query I rowsort
SELECT ALL - 50 * - col0 + 79 FROM tab2 AS cor0
----
3979
4029
429

query I rowsort
SELECT ALL ( + 3 ) + - col2 * - cor0.col1 FROM tab0 AS cor0
----
100
2841
7465

onlyif mysql # use DIV operator for integer division
query I rowsort label-2390
SELECT ALL + col0 DIV 19 FROM tab0
----
1
1
4

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + col0 / 19 FROM tab0
----
1
1
4

query I rowsort
SELECT DISTINCT 62 * + 88 FROM tab1 AS cor0
----
5456

query I rowsort
SELECT - - col0 * + 82 AS col0 FROM tab0 AS cor0
----
1968
2870
7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT + 63 * col2 * - col1 + + col0 * col1 DIV + col2 + - col2 DIV cor0.col1 FROM tab1 AS cor0
----
-35904
-78621
-88453

skipif mysql # not compatible
query I rowsort label-2393
SELECT + 63 * col2 * - col1 + + col0 * col1 / + col2 + - col2 / cor0.col1 FROM tab1 AS cor0
----
-35904
-78621
-88453

query I rowsort
SELECT ALL cor0.col0 + col0 AS col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT - cor0.col2 + + col0 * + cor0.col0 FROM tab0 AS cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col0 FROM tab0
----
164
2
66

query I rowsort
SELECT + ( col0 ) + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col0 + cor0.col0 * - cor0.col1 * 77 FROM tab1 AS cor0
----
-49344
-6009
-80160

query I rowsort
SELECT + ( col2 ) * cor0.col0 * + col1 AS col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - ( col0 + + col2 ) FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - + ( - col0 ) - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + col1 * col1 - 43 * ( - col2 + - col1 ) AS col1 FROM tab2 cor0
----
2654
3455
7136

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col0 * CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT DISTINCT - tab1.col0 + col1 DIV col2 AS col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT - tab1.col0 + col1 / col2 AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + col0 + - ( + col1 ) + + col0 FROM tab0
----
-27
-38
87

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT DISTINCT 82 DIV - cor0.col1 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT 82 / - cor0.col1 FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT + + col0 + + ( col2 ) + col0 AS col0 FROM tab0 AS cor0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * - col0 - + 45 * col1 col0 FROM tab2 AS cor0
----
-1584
-3767
-4683

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2410
SELECT + + cor0.col0 * CAST( - col2 AS SIGNED ) * + col0 + ( + col2 ) - col0 AS col1 FROM tab0 AS cor0
----
-1259
-18999
-649529

skipif mysql # not compatible
query I rowsort label-2410
SELECT + + cor0.col0 * CAST ( - col2 AS INTEGER ) * + col0 + ( + col2 ) - col0 AS col1 FROM tab0 AS cor0
----
-1259
-18999
-649529

query I rowsort
SELECT ALL - col1 * + ( cor0.col1 * - col2 ) AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL + + cor0.col0 * - col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - col0 * cor0.col0 col1 FROM tab0 AS cor0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 * 36 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
3096
3276
3492

query I rowsort
SELECT DISTINCT 99 + col0 * col2 AS col1 FROM tab1 cor0
----
261
3747
7779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 20 ) + col1 col1 FROM tab0 AS cor0
----
66
71
77

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab1 cor2
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 + - col0 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT + - cor0.col0 + ( - col0 + col0 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + - ( + col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT DISTINCT - - col2 DIV cor0.col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT - - col2 / cor0.col1 FROM tab0 AS cor0
----
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT DISTINCT - 31 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT DISTINCT ( col2 ) DIV - 47 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT ( col2 ) / - 47 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2426
SELECT DISTINCT + col2 * + col2 + + CAST( NULL AS SIGNED ) * cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + col2 * + col2 + + CAST ( NULL AS INTEGER ) * cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + tab1.col1 * + tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT 39 - col0 * + ( - col2 ) AS col0 FROM tab2
----
2067
228
3041

onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT col0 * + tab2.col1 + - ( + col2 ) DIV - col1 + + col1 AS col2 FROM tab2
----
1362
248
4661

skipif mysql # not compatible
query I rowsort label-2429
SELECT col0 * + tab2.col1 + - ( + col2 ) / - col1 + + col1 AS col2 FROM tab2
----
1362
248
4661

query I rowsort
SELECT ALL - + 55 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

query I rowsort
SELECT tab0.col1 - - col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - - cor0.col0 * 92 * 77 FROM tab2 AS cor0
----
49588
552552
559636

onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT DISTINCT + col0 - + ( + cor0.col0 ) DIV - col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT + col0 - + ( + cor0.col0 ) / - col1 FROM tab1 AS cor0
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2434
SELECT col2 DIV + col0 - 36 FROM tab0 AS cor0
----
-35
-36
-36

skipif mysql # not compatible
query I rowsort label-2434
SELECT col2 / + col0 - 36 FROM tab0 AS cor0
----
-35
-36
-36

query I rowsort
SELECT DISTINCT tab1.col0 + + col1 - - ( - col0 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + 4 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT DISTINCT col2 - - tab0.col2 AS col2 FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2438
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2438
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT - col0 DIV + tab0.col2 col2 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2439
SELECT - col0 / + tab0.col2 col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT ( + 79 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2441
SELECT ALL - col2 * col2 + + tab1.col0 * ( - 60 ) DIV col1 AS col0 FROM tab1
----
-2922
-3633
-9585

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - col2 * col2 + + tab1.col0 * ( - 60 ) / col1 AS col0 FROM tab1
----
-2922
-3633
-9585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * tab0.col2 col0 FROM tab0
----
2244
5576
68

query I rowsort
SELECT - cor0.col2 * ( - 54 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 08ffc5e1d45702513f859faaccb573d3

query I rowsort
SELECT + col1 + col2 * - col2 * 77 AS col2 FROM tab1 AS cor0
----
-224506
-250163
-709619

query I rowsort
SELECT ALL - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col1 + + col2 * - ( - 4 + col0 * col2 ) FROM tab0 AS cor0
----
-25918
-598017
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2447
SELECT - CAST( NULL AS SIGNED ) / tab2.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2447
SELECT - CAST ( NULL AS INTEGER ) / tab2.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - + 87 * col0 + 53 * 30 AS col1 FROM tab1 AS cor0
----
-3978
-5370
1329

query I rowsort
SELECT + col2 * - col1 + 11 AS col2 FROM tab1 AS cor0
----
-1237
-1393
-559

query I rowsort
SELECT DISTINCT - 90 + + col2 AS col0 FROM tab0 AS cor0
----
-57
-8
-89

query I rowsort
SELECT ALL + + cor0.col2 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT col2 + ( col1 ) * - col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-7330
-8117
-9407

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT ALL - CAST( 34 AS SIGNED ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1500
612
803

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - CAST ( 34 AS INTEGER ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1500
612
803

query I rowsort
SELECT ALL - col0 * + 9 + + col0 AS col2 FROM tab1 cor0
----
-24
-512
-640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2455
SELECT ALL - CAST( + 76 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-43
-75
6

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - CAST ( + 76 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-43
-75
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT DISTINCT 32 DIV - col2 FROM tab0 AS cor0
----
-32
0

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT 32 / - col2 FROM tab0 AS cor0
----
-32
0

query I rowsort
SELECT cor0.col2 - - 32 FROM tab2 AS cor0
----
58
59
70

query I rowsort
SELECT ALL - + ( 58 ) * - col1 + col0 AS col2 FROM tab1 cor0
----
1511
644
834

query I rowsort
SELECT DISTINCT - ( 95 ) - col1 * + col1 FROM tab1 AS cor0
----
-195
-264
-771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 * col2 col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL col1 + 55 AS col1 FROM tab1 AS cor0
----
65
68
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT DISTINCT - col1 + + col0 DIV + cor0.col2 FROM tab1 cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - col1 + + col0 / + cor0.col2 FROM tab1 cor0
----
-13
-26
-9

query I rowsort
SELECT ALL + 46 + 52 AS col1 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT ALL 14 DIV - 9 + col2 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL 14 / - 9 + col2 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab0, tab2 AS cor0
----
19

query I rowsort
SELECT DISTINCT tab2.col1 * + col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT - col1 * col2 + col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + + 8 * + col0 * + cor0.col2 + - col0 FROM tab0 AS cor0
----
245
58295
6312

query I rowsort
SELECT + + ( - col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - ( - cor0.col0 ) * col2 * + col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + cor2.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 45 col0 FROM tab0 AS cor0
----
-41
-46
-52

query I rowsort
SELECT + - 80 + + col0 FROM tab0 AS cor0
----
-45
-56
9

query I rowsort
SELECT + - 5 FROM tab0 cor0
----
-5
-5
-5

query I rowsort
SELECT + 61 AS col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT cor0.col1 * col0 + + col1 AS col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT - col1 + cor0.col0 * - 91 AS col1 FROM tab2 AS cor0
----
-668
-7157
-7206

query I rowsort
SELECT - - 83 + col2 * 58 FROM tab0 AS cor0
----
141
1997
4839

query I rowsort
SELECT col1 * + 19 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT + col1 + + 57 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT - col0 * + ( col0 ) FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2482
SELECT cor0.col2 + ( col0 ) * col2 * - CAST( - 75 AS SIGNED ) col0 FROM tab1 AS cor0
----
12204
273657
576096

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2482
SELECT cor0.col2 + ( col0 ) * col2 * - CAST ( - 75 AS INTEGER ) col0 FROM tab1 AS cor0
----
12204
273657
576096

query I rowsort
SELECT - 98 * tab0.col1 * ( - col2 ) FROM tab0
----
278124
731276
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT + + col1 DIV CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2484
SELECT + + col1 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT - ( - cor0.col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - col1 * 86 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-115498
-18662
-395772

query I rowsort
SELECT DISTINCT - col1 * ( - 88 + col2 ) * + col0 FROM tab2 AS cor0
----
13237
285324
67150

query I rowsort
SELECT + col0 + + 89 * col0 * - cor0.col2 + - col0 AS col0 FROM tab0 cor0
----
-3115
-649522
-70488

query I rowsort
SELECT ALL col2 * + col0 - 70 * col1 AS col2 FROM tab2 AS cor0
----
-1981
-2102
1812

query I rowsort
SELECT 72 * - tab0.col2 + 4 * - col2 - - col1 AS col2 FROM tab0
----
-2422
-6141
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2491
SELECT ALL col2 + tab0.col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL col2 + tab0.col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - col2 ) + 27 AS col2 FROM tab1 AS cor0
----
-27
-30
-69

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
23

query I rowsort
SELECT ALL - 8 * col1 AS col1 FROM tab1 AS cor0
----
-104
-208
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT DISTINCT + + cor0.col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT + + cor0.col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 95 + - cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 74684c17a086d44e1ce179a202aba6be

query I rowsort
SELECT cor0.col2 + col1 - 35 * 58 AS col2 FROM tab2 AS cor0
----
-1945
-1972
-1975

query I rowsort
SELECT - + col2 + - 5 FROM tab1 AS cor0
----
-101
-59
-62

query I rowsort
SELECT col0 * 11 + - col0 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT ALL + - col1 + - 37 AS col0 FROM tab0 AS cor0
----
-123
-128
-134

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - - col2 * ( - col0 + cor0.col1 ) * col2 AS col2 FROM tab1 cor0
----
-175446
-617472
67068

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT DISTINCT - - col0 DIV + 4 + col2 + - col0 * col0 FROM tab2 AS cor0
----
-21
-6039
-6184

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT - - col0 / + 4 + col2 + - col0 * col0 FROM tab2 AS cor0
----
-21
-6039
-6184

query I rowsort
SELECT ALL - 35 + col2 FROM tab1
----
19
22
61

query I rowsort
SELECT ALL - col1 * - col1 + + 21 AS col2 FROM tab2
----
310
3502
982

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT col0 - col1 DIV - ( 98 ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2507
SELECT col0 - col1 / - ( 98 ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT 39 + cor0.col0 AS col0 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT DISTINCT + + ( 51 ) * - col1 AS col0 FROM tab0 cor0
----
-4386
-4641
-4947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT + - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT + - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT - - 44 * + col1 + - col0 DIV + 92 + - 31 AS col2 FROM tab2 AS cor0
----
1333
2565
717

skipif mysql # not compatible
query I rowsort label-2511
SELECT - - 44 * + col1 + - col0 / + 92 + - 31 AS col2 FROM tab2 AS cor0
----
1333
2565
717

query I rowsort
SELECT DISTINCT 49 + - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-140
-1979
-2953

query I rowsort
SELECT - 41 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984

onlyif mysql # use DIV operator for integer division
query I rowsort label-2514
SELECT ALL - tab2.col2 DIV + col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - tab2.col2 / + col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL - tab0.col0 * - 14 * + col2 AS col2 FROM tab0
----
102172
11088
490

query I rowsort
SELECT ALL col2 - - 66 * + col1 FROM tab0
----
5709
6088
6403

query I rowsort
SELECT - ( + col0 ) * - col0 - 3 AS col2 FROM tab0 AS cor0
----
1222
573
7918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2518
SELECT CAST( NULL AS SIGNED ) * col2 * col0 + col1 + col1 * - col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT CAST ( NULL AS INTEGER ) * col2 * col0 + col1 + col1 * - col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 53 - col2 FROM tab2 AS cor0
----
15
26
27

query I rowsort
SELECT 56 + 83 - col2 * - col1 FROM tab0 AS cor0
----
236
2977
7601

onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT col0 + - 47 DIV + col0 FROM tab1
----
-12
64
80

skipif mysql # not compatible
query I rowsort label-2521
SELECT col0 + - 47 / + col0 FROM tab1
----
-12
64
80

query I rowsort
SELECT ALL 4 - col1 * col2 FROM tab2
----
-1530
-642
-833

query I rowsort
SELECT 40 * col1 + col1 * - col1 + + col2 FROM tab2
----
-1095
306
429

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 - col2 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + + 43 - col0 AS col0 FROM tab2 AS cor0
----
-35
-36
36

query I rowsort
SELECT DISTINCT - col0 * col2 + col2 * col1 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT - + col0 * col0 + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
-4049
-6317
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT + + 67 + col0 - + col1 DIV + col0 FROM tab2 AS cor0
----
145
146
70

skipif mysql # not compatible
query I rowsort label-2528
SELECT + + 67 + col0 - + col1 / + col0 FROM tab2 AS cor0
----
145
146
70

query I rowsort
SELECT ALL col0 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col0 * col0 + - col2 - col0 * - col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + ( col0 + - col1 * + col1 ) FROM tab1
----
-36
-673
-89

query I rowsort
SELECT + 45 + col2 * col1 FROM tab1
----
1293
1449
615

query I rowsort
SELECT ( + tab1.col2 ) * col0 * col0 + col0 AS col1 FROM tab1
----
233536
489
614480

query I rowsort
SELECT DISTINCT ( + ( - col0 ) ) AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + tab0.col2 + - col2 * col2 + col0 * col0 FROM tab0
----
-480
1225
1279

query I rowsort
SELECT ALL - 99 + col1 AS col1 FROM tab1
----
-73
-86
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 46 col1 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL + 92 + + col0 AS col1 FROM tab2
----
170
171
99

query I rowsort
SELECT DISTINCT - + col1 + - col2 + + col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col2 * + col1 + col0 * col1 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT - col2 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2542
SELECT col0 * col2 + + col1 DIV cor0.col0 AS col0 FROM tab2 cor0
----
193
2028
3002

skipif mysql # not compatible
query I rowsort label-2542
SELECT col0 * col2 + + col1 / cor0.col0 AS col0 FROM tab2 cor0
----
193
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT + col1 DIV + col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2543
SELECT + col1 / + col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 54 + + cor0.col2 FROM tab2 AS cor0
----
80
81
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 * + cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1298
-374
-682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + 41 col0 FROM tab0 cor0
----
-123
-42
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2547
SELECT DISTINCT + - col2 + + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + - col2 + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2548
SELECT + - cor0.col1 + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-2548
SELECT + - cor0.col1 + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - col2 * 39 + 12 AS col2 FROM tab1 AS cor0
----
-2094
-2211
-3732

query I rowsort
SELECT DISTINCT - col0 * - 16 - col0 * cor0.col0 FROM tab1 AS cor0
----
-3072
-5120
39

query I rowsort
SELECT cor0.col2 * col1 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-3068
-697
620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2552
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) * + 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) * + 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 93 * 95 AS col0 FROM tab0 AS cor0
----
8835
8835
8835

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab0 cor0
----
45

query I rowsort
SELECT - 87 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-609
-6786
-6873

query I rowsort
SELECT DISTINCT - 20 FROM tab2, tab1 cor0
----
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 37 + ( + col1 ) * + col0 FROM tab1 AS cor0
----
1077
115
677

query I rowsort
SELECT ALL col0 * - col1 + col0 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-237
-4224
-8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT ALL - col1 + + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - col1 + + col2 / col0 AS col0 FROM tab2 AS cor0
----
-17
-28
-59

query I rowsort
SELECT DISTINCT + + ( 19 ) * - cor0.col2 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT + cor0.col1 + + col0 * col2 * + col2 AS col2 FROM tab1 cor0
----
207946
737293
8774

onlyif mysql # use DIV operator for integer division
query I rowsort label-2563
SELECT DISTINCT + col1 * 27 DIV - ( - col2 ) - 68 AS col0 FROM tab0 AS cor0
----
-39
2
2551

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + col1 * 27 / - ( - col2 ) - 68 AS col0 FROM tab0 AS cor0
----
-39
2
2551

query I rowsort
SELECT - col2 * 74 FROM tab1 AS cor0
----
-3996
-4218
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT + col2 DIV + col2 + + col1 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2565
SELECT + col2 / + col2 + + col1 AS col0 FROM tab1
----
11
14
27

query I rowsort
SELECT - tab0.col0 * col2 + - 44 AS col0 FROM tab0
----
-7342
-79
-836

query I rowsort
SELECT - + col0 * col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) * col1 + col1 AS col0 FROM tab2
----
-22814
-271459
-6696

query I rowsort
SELECT col0 * 96 * + 77 FROM tab0
----
177408
258720
657888

query I rowsort
SELECT + tab0.col0 + - 76 AS col1 FROM tab0
----
-41
-52
13

query I rowsort
SELECT + 9 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

onlyif mysql # use DIV operator for integer division
query I rowsort label-2572
SELECT DISTINCT col0 * col2 DIV + col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT col0 * col2 / + col0 FROM tab0
----
1
33
82

query I rowsort
SELECT col2 * - 75 * - col2 FROM tab2
----
108300
50700
54675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2574
SELECT + cor0.col0 / + CAST( NULL AS SIGNED ) + - cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2574
SELECT + cor0.col0 / + CAST ( NULL AS INTEGER ) + - cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col1 * - col2 * - col0 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT 83 * - cor0.col0 + col2 FROM tab0 AS cor0
----
-1959
-2904
-7305

query I rowsort
SELECT ALL - tab1.col2 * tab1.col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + - 12 + - col0 * - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-201
-2040
-3014

query I rowsort
SELECT - col2 - - ( - col0 ) AS col1 FROM tab0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2580
SELECT + col2 DIV + 53 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-2580
SELECT + col2 / + 53 col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT col0 * 69 - col0 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT + col0 + + 61 FROM tab2
----
139
140
68

query I rowsort
SELECT - + col2 + 60 FROM tab0 cor0
----
-22
27
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT - col2 * ( col2 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-2586
SELECT - col2 * ( col2 ) / col1 AS col2 FROM tab2 AS cor0
----
-11
-23
-84

query I rowsort
SELECT + 36 * + col2 AS col1 FROM tab0
----
1188
2952
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2588
SELECT CAST( + col0 AS SIGNED ) * col2 - + col2 col0 FROM tab1 cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2588
SELECT CAST ( + col0 AS INTEGER ) * col2 - + col2 col0 FROM tab1 cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2589
SELECT + CAST( NULL AS SIGNED ) * + cor0.col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col1 ) * - col1 + - 80 * - cor0.col0 FROM tab1 AS cor0
----
5220
6569
916

query I rowsort
SELECT - - cor0.col1 + col2 + - col1 * col2 * - col0 FROM tab0 AS cor0
----
3493
664291
68231

query I rowsort
SELECT - 99 + cor0.col0 + 91 AS col1 FROM tab0 cor0
----
16
27
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2593
SELECT CAST( + col1 AS SIGNED ) * + tab0.col0 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2593
SELECT CAST ( + col1 AS INTEGER ) * + tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - + 87 + + col0 FROM tab1 AS cor0
----
-23
-7
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2595
SELECT CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col1 * col0 col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - + col2 + + col0 * col0 * + 7 FROM tab1 AS cor0
----
28615
44704
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2599
SELECT - 12 + + col0 + CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT - 12 + + col0 + CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col2 * + 81 FROM tab0 AS cor0
----
2706
6724
82

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col1 + + cor0.col0 * - CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT - col1 * + cor0.col1 + 93 DIV col2 col0 FROM tab1 AS cor0
----
-169
-675
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2602
SELECT - col1 * + cor0.col1 + 93 / col2 col0 FROM tab1 AS cor0
----
-169
-675
-99

query I rowsort
SELECT DISTINCT col1 * col1 * col1 + + 12 AS col1 FROM tab1 AS cor0
----
1012
17588
2209

query I rowsort
SELECT 50 * + 9 FROM tab0
----
450
450
450

query I rowsort
SELECT - 64 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT - - ( + col2 ) * ( col2 ) - - cor0.col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL 11 * cor0.col2 + + col0 * - col0 AS col2 FROM tab0 cor0
----
-1214
-213
-7019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT DISTINCT - col2 + - col1 DIV + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT - col2 + - col1 / + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col0 * col0 - + col2 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT + ( - col0 ) * 49 + - col1 AS col0 FROM tab0 AS cor0
----
-1262
-1812
-4452

query I rowsort
SELECT + - col1 + - col0 * + col1 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT ALL - - cor0.col1 + - col0 DIV + col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - - cor0.col1 + - col0 / + col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT + cor0.col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - col0 + + col2 * - 16 AS col1 FROM tab2 AS cor0
----
-439
-494
-687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 81 col1 FROM tab1 AS cor0
----
243
5184
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT + col1 * CAST( - cor0.col0 + col1 AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT + col1 * CAST ( - cor0.col0 + col1 AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - 83 FROM tab0 cor0
----
-1992
-2905
-7387

query I rowsort
SELECT ALL + col1 + + col0 - - col0 * col1 FROM tab0 AS cor0
----
2174
3527
8279

query I rowsort
SELECT DISTINCT + ( + 18 ) + + col0 FROM tab0 AS cor0
----
107
42
53

query I rowsort
SELECT ALL + col2 * - col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - 82 + + 23 FROM tab0 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * 64 col0 FROM tab2 AS cor0
----
1664
1728
2432

query I rowsort
SELECT cor0.col1 + col1 * col0 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + col2 * + 60 + col2 FROM tab0 cor0
----
2013
5002
61

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab0 AS cor0
----
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT DISTINCT tab0.col1 DIV - col1 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT tab0.col1 / - col1 AS col1 FROM tab0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT + 21 DIV col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2629
SELECT + 21 / col1 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT ALL 86 * - col0 FROM tab0 AS cor0
----
-2064
-3010
-7654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 * - col2 col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL cor0.col2 + col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL - - col0 * - 78 + col2 FROM tab0 AS cor0
----
-1839
-2729
-6860

query I rowsort
SELECT DISTINCT + ( col1 ) - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( 68 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - cor0.col0 * 87 AS col2 FROM tab2 cor0
----
-609
-6786
-6873

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
10
13
26

query I rowsort
SELECT col2 * - col0 * - 30 FROM tab1
----
109440
230400
4860

query I rowsort
SELECT 73 * col1 AS col0 FROM tab1
----
1898
730
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT DISTINCT - col1 * 14 DIV col2 + - col0 + + col0 AS col0 FROM tab1 cor0
----
-1
-2
-6

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT - col1 * 14 / col2 + - col0 + + col0 AS col0 FROM tab1 cor0
----
-1
-2
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2642
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT + col0 + col0 + - col0 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT 0 - 88 AS col0 FROM tab1, tab2 AS cor0
----
-88

query I rowsort
SELECT DISTINCT - col1 + col1 + + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col1 * + col2 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT - + col1 + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + cor0.col0 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + col0 + - cor0.col0 * + col2 * col1 - col2 * col2 AS col1 FROM tab0 AS cor0
----
-2171
-662921
-68625

query I rowsort
SELECT ALL + - col1 * + col1 - - col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + - col0 + + cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( col1 + + col2 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + + col2 * col1 col1 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT - cor0.col1 * + cor0.col2 + col0 * - col0 FROM tab0 AS cor0
----
-1322
-15383
-3414

query I rowsort
SELECT ALL - col1 - + cor0.col0 * + col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT + col1 + tab0.col2 * + col0 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT col2 * col1 + col0 AS col2 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT cor0.col2 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2661
SELECT cor0.col2 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 + col2 * - col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col0 * + tab1.col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT tab2.col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - - 20 * col1 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT col0 * + col2 + col0 * col2 AS col2 FROM tab0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT col2 + - col0 DIV - col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2667
SELECT col2 + - col0 / - col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col0 * col1 + col2 * 74 * col1 AS col0 FROM tab1 AS cor0
----
103974
42820
93392

query I rowsort
SELECT col1 * tab0.col2 - - col2 AS col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT + col1 + tab0.col0 * col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - col1 * - tab0.col1 * col2 - + col2 * tab0.col1 FROM tab0
----
241230
671580
9312

query I rowsort
SELECT ALL + col0 - - col1 * - col0 * col2 FROM tab0
----
-3360
-664029
-68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-2673
SELECT col0 DIV + col1 + + col1 * + col0 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2673
SELECT col0 / + col1 + + col1 * + col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE col2 IN ( - col2 )
----

query I rowsort
SELECT DISTINCT col0 + - col0 * col1 AS col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + col0 * - col0 FROM tab1 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL col2 * col1 + col0 AS col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT - tab0.col2 + - col1 * col0 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT tab2.col1 * col0 * col2 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT ALL tab1.col0 DIV tab1.col1 AS col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL tab1.col0 / tab1.col1 AS col1 FROM tab1
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT col1 * - tab1.col0 DIV - col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2681
SELECT col1 * - tab1.col0 / - col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL tab2.col0 * + col2 + tab2.col0 + + col0 AS col0 FROM tab2 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - col0 + col2 + col1 AS col2 FROM tab0
----
63
84
95

query I rowsort
SELECT + col2 / - col2 AS col1 FROM tab0 WHERE ( NULL ) IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + tab2.col0 * + col1 + col1 col2 FROM tab2
----
10745
297
7601

query I rowsort
SELECT DISTINCT col0 * col2 * col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT tab2.col0 * + col1 + tab2.col2 AS col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col2 + tab0.col0 - - col0 AS col0 FROM tab0
----
260
71
81

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT ALL + col2 + col2 * + col1 + col2 DIV col0 AS col0 FROM tab2
----
1560
684
867

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + col2 + col2 * + col1 + col2 / col0 AS col0 FROM tab2
----
1560
684
867

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT DISTINCT - col0 DIV - tab1.col1 AS col2 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT - col0 / - tab1.col1 AS col2 FROM tab1
----
0
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT - col0 DIV tab0.col2 + + col2 AS col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-2692
SELECT - col0 / tab0.col2 + + col2 AS col2 FROM tab0
----
-34
33
81

query I rowsort
SELECT tab2.col1 * + tab2.col0 * col2 FROM tab2
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2694
SELECT 32 * + col2 + + CAST( - col1 * tab0.col1 AS SIGNED ) FROM tab0
----
-5657
-6340
-9377

skipif mysql # not compatible
query I rowsort label-2694
SELECT 32 * + col2 + + CAST ( - col1 * tab0.col1 AS INTEGER ) FROM tab0
----
-5657
-6340
-9377

onlyif mysql # use DIV operator for integer division
query I rowsort label-2695
SELECT - col1 + - col0 * col1 DIV col0 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-2695
SELECT - col1 + - col0 * col1 / col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL - col2 * + col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT + col2 + + col1 DIV + tab1.col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2697
SELECT + col2 + + col1 / + tab1.col2 FROM tab1
----
54
57
96

query I rowsort
SELECT + col1 + col1 * + col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - 11 * tab0.col0 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 8535eee14ee2aa95591f56f755bb678d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2700
SELECT col0 * + 69 + col2 - + col0 DIV col1 AS col1 FROM tab0
----
1689
2416
6223

skipif mysql # not compatible
query I rowsort label-2700
SELECT col0 * + 69 + col2 - + col0 / col1 AS col1 FROM tab0
----
1689
2416
6223

onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT - col2 DIV + col0 + + tab1.col2 * - tab1.col1 + + 11 FROM tab1
----
-1238
-1411
-559

skipif mysql # not compatible
query I rowsort label-2701
SELECT - col2 / + col0 + + tab1.col2 * - tab1.col1 + + 11 FROM tab1
----
-1238
-1411
-559

query I rowsort
SELECT ALL + col2 * + 56 AS col2 FROM tab1 cor0
----
3024
3192
5376

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 + - 4 * + col2 AS col1 FROM tab0 AS cor0
----
1932
3391
7771

onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT ALL col1 * col1 DIV 66 AS col2 FROM tab1 AS cor0
----
1
10
2

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL col1 * col1 / 66 AS col2 FROM tab1 AS cor0
----
1
10
2

query I rowsort
SELECT + ( cor1.col1 ) + 54 AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 49381463e0d600e35b7372fd1549a2f0

query I rowsort
SELECT ALL 34 + - col1 * col1 FROM tab1
----
-135
-642
-66

query I rowsort
SELECT ALL + 90 * 63 + - col1 + + 99 AS col2 FROM tab1
----
5743
5756
5759

query I rowsort
SELECT ALL - col0 + - 93 FROM tab2
----
-100
-171
-172

query I rowsort
SELECT ALL + 32 FROM tab2, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - ( - col0 ) - + col2 * + ( + col0 ) AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT col2 + - ( col1 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - ( col0 ) * - col2 + + 51 FROM tab2 AS cor0
----
-138
-1977
-2951

onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT + ( - cor0.col1 ) + col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-2713
SELECT + ( - cor0.col1 ) + col1 / - col2 AS col2 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT DISTINCT - 18 + col2 + + col2 * 56 AS col2 FROM tab2 cor0
----
1464
1521
2148

query I rowsort
SELECT 12 + - cor0.col2 FROM tab0 cor0
----
-21
-70
11

query I rowsort
SELECT ALL - 45 + col2 FROM tab2 AS cor0
----
-18
-19
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 * col1 + + 53 col1 FROM tab0 AS cor0
----
3493
3693
3933

query I rowsort
SELECT col0 * + ( col2 ) AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL col2 + - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - col1 * cor0.col2 + + col2 + 11 AS col2 FROM tab0 cor0
----
-2794
-7369
-85

query I rowsort
SELECT DISTINCT - 40 * col2 AS col2 FROM tab2 cor0
----
-1040
-1080
-1520

query I rowsort
SELECT ALL 6 * cor0.col0 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT DISTINCT + 43 * + col1 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT ALL 76 * + cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 12891e8740769f418a963aab1f9f0bbb

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 - - cor0.col2 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT ALL - cor0.col1 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT ALL - + col2 * cor0.col2 DIV + 37 + col2 - - col0 FROM tab1 AS cor0
----
-21
-73
34

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL - + col2 * cor0.col2 / + 37 + col2 - - col0 FROM tab1 AS cor0
----
-21
-73
34

query I rowsort
SELECT - - 61 + - col1 * col1 * - 7 FROM tab0 AS cor0
----
51833
58028
65924

query I rowsort
SELECT 65 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
227
3713
7745

query I rowsort
SELECT DISTINCT - col0 * + col2 * cor0.col0 + - col0 FROM tab0 AS cor0
----
-1260
-19032
-649611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - + cor0.col2 col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - col1 + ( + cor0.col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2733
SELECT ALL col2 * - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL col2 * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + 10 * col2 - col2 FROM tab0 cor0
----
297
738
9

query I rowsort
SELECT - - col2 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT col0 * + col1 * + col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - 11 * col1 AS col2 FROM tab2 AS cor0
----
-187
-341
-649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2739
SELECT CAST( NULL AS SIGNED ) + - col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT CAST ( NULL AS INTEGER ) + - col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 11 * - col2 FROM tab0 cor0
----
11
363
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + + 96 col2 FROM tab2 AS cor0
----
146
146
146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT + - cor0.col2 * + col0 + col2 + + CAST( - 47 * - col2 AS SIGNED ) FROM tab0 AS cor0
----
-3362
13
792

skipif mysql # not compatible
query I rowsort label-2742
SELECT + - cor0.col2 * + col0 + col2 + + CAST ( - 47 * - col2 AS INTEGER ) FROM tab0 AS cor0
----
-3362
13
792

query I rowsort
SELECT col2 * + 77 + col2 FROM tab2 AS cor0
----
2028
2106
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 50 * - col0 * col0 col1 FROM tab1
----
204810
320013
476

query I rowsort
SELECT + col2 + + col2 - + col2 * col0 FROM tab0
----
-33
-7134
-726

query I rowsort
SELECT DISTINCT col0 - col0 * - 99 * col2 FROM tab1
----
16041
361216
760400

query I rowsort
SELECT + - 42 AS col1 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + ( col1 ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 * + 57 col0 FROM tab0 AS cor0
----
-4788

query I rowsort
SELECT - - 33 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4063
-6367
24

query I rowsort
SELECT ALL + cor0.col1 * + 5 FROM tab0 cor0
----
430
455
485

query I rowsort
SELECT DISTINCT - 86 + col2 AS col2 FROM tab1 AS cor0
----
-29
-32
10

query I rowsort
SELECT - 59 + col0 AS col0 FROM tab2 AS cor0
----
-52
19
20

query I rowsort
SELECT - 90 * col2 AS col1 FROM tab1
----
-4860
-5130
-8640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2755
SELECT - CAST( NULL AS SIGNED ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT - CAST ( NULL AS INTEGER ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( tab2.col0 ) ) * tab2.col1 * 46 + + col0 + col2 col0 FROM tab2
----
10016
211796
61895

query I rowsort
SELECT DISTINCT + 35 + col1 AS col2 FROM tab2
----
52
66
94

query I rowsort
SELECT col0 * - 78 + + col1 * col1 FROM tab0
----
1339
5524
6679

query I rowsort
SELECT DISTINCT col1 * col2 * - 60 FROM tab0
----
-170280
-447720
-5820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT col1 * ( - ( + col1 ) * - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT col1 * ( - ( + col1 ) * - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 50 * col0 AS col2 FROM tab0
----
28800
396050
61250

query I rowsort
SELECT ALL - + col2 * - col2 + + col1 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT - ( + tab0.col2 ) AS col1 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2764
SELECT - + CAST( - 92 AS SIGNED ) DIV cor0.col1 + - 84 + 33 col1 FROM tab1 AS cor0
----
-42
-44
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2764
SELECT - + CAST ( - 92 AS INTEGER ) / cor0.col1 + - 84 + 33 col1 FROM tab1 AS cor0
----
-42
-44
-48

query I rowsort
SELECT 11 + - col2 AS col2 FROM tab2 AS cor0
----
-15
-16
-27

query I rowsort
SELECT + col2 + + 6 * col2 FROM tab0 cor0
----
231
574
7

query I rowsort
SELECT + - col0 * col0 * + col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT + col2 + + 81 * cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
1162
2186
877

query I rowsort
SELECT + - 5 * + col2 AS col2 FROM tab0 AS cor0
----
-165
-410
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT + cor0.col0 DIV col0 + + col0 * 71 + - ( col0 ) FROM tab0 AS cor0
----
1681
2451
6231

skipif mysql # not compatible
query I rowsort label-2770
SELECT + cor0.col0 / col0 + + col0 * 71 + - ( col0 ) FROM tab0 AS cor0
----
1681
2451
6231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col1 * - col1 col2 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT DISTINCT + - cor0.col1 DIV - col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT + - cor0.col1 / - col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT DISTINCT - col1 + - cor0.col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT - col1 + - cor0.col0 / + cor0.col1 FROM tab1 AS cor0
----
-16
-19
-26

query I rowsort
SELECT + + 82 + - col0 * ( + 27 ) * cor0.col2 FROM tab2 AS cor0
----
-5021
-54674
-80972

onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT ALL + - col2 DIV + col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL + - col2 / + col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT 77 - col1 * ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
174
2915
7539

onlyif mysql # use DIV operator for integer division
query I rowsort label-2777
SELECT ALL + - col2 DIV - col1 + + 43 * col2 AS col2 FROM tab2 AS cor0
----
1118
1161
1636

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + - col2 / - col1 + + 43 * col2 AS col2 FROM tab2 AS cor0
----
1118
1161
1636

query I rowsort
SELECT DISTINCT - col2 * col1 + 63 FROM tab0 AS cor0
----
-2775
-34
-7399

query I rowsort
SELECT - col2 * - col1 - + col2 * + 60 AS col1 FROM tab2 AS cor0
----
-1634
-26
-783

query I rowsort
SELECT DISTINCT - + 83 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT DISTINCT - - col2 + - col0 AS col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - - 18 * + col0 * ( - col1 ) + col0 AS col1 FROM tab1 AS cor0
----
-11456
-1401
-18640

query I rowsort
SELECT - + col2 * - col0 - col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2784
SELECT + col1 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-2784
SELECT + col1 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col0 - - 38 * ( col0 * - col0 ) AS col1 FROM tab0 AS cor0
----
-21864
-300909
-46515

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2786
SELECT + + col1 + + CAST( col2 * - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-2786
SELECT + + col1 + + CAST ( col2 * - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - col0 * + 10 + + col1 FROM tab0 AS cor0
----
-154
-253
-799

query I rowsort
SELECT + col0 * + col1 + 12 AS col0 FROM tab2 AS cor0
----
1355
229
4614

query I rowsort
SELECT ALL + col2 * cor0.col0 + + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col1 - 91 AS col1 FROM tab1 AS cor0
----
-65
-78
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT cor0.col2 + cor0.col0 DIV + 41 FROM tab1 AS cor0
----
54
58
97

skipif mysql # not compatible
query I rowsort label-2791
SELECT cor0.col2 + cor0.col0 / + 41 FROM tab1 AS cor0
----
54
58
97

query I rowsort
SELECT ALL - - cor0.col1 * ( + ( - col1 ) * - 78 ) FROM tab1 AS cor0
----
13182
52728
7800

query I rowsort
SELECT + col2 - 95 AS col0 FROM tab1 AS cor0
----
-38
-41
1

query I rowsort
SELECT ALL + + ( - col1 ) + col0 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2795
SELECT - CAST( 43 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-2795
SELECT - CAST ( 43 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 - + CAST ( - 77 AS REAL ) * + col0 FROM tab2
----
566
6032
6121

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab0, tab0 cor0
----
30

query I rowsort
SELECT ALL - 79 + col1 * - ( - cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0
----
17497
2118
921

query I rowsort
SELECT DISTINCT col0 + - col0 * 90 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
48

query I rowsort
SELECT + - 1 * col0 + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * col1 - + 9 AS col0 FROM tab0
----
-2073
-3404
-8108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2804
SELECT ALL + 66 DIV 83 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + 66 / 83 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT ALL + 22 + col0 * col1 FROM tab0 AS cor0
----
2086
3417
8121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 col2 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 29 * + col0 col0 FROM tab2
----
5481
58812
87058

query I rowsort
SELECT DISTINCT - 87 + 89 AS col2 FROM tab0, tab2 AS cor0
----
2

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23

query I rowsort
SELECT tab2.col2 + - ( + col0 * col1 ) AS col2 FROM tab2
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 25 FROM tab1
----
1350
1425
2400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2814
SELECT + + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2814
SELECT + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 32 + 14 * col1 FROM tab2
----
270
466
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab2.col2 col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col0 * + 93 + 87 FROM tab2 AS cor0
----
-564
-7167
-7260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2818
SELECT ALL - + col1 * + CAST( 10 * - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
2890
34810
9610

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL - + col1 * + CAST ( 10 * - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
2890
34810
9610

query I rowsort
SELECT + - col0 + 84 AS col0 FROM tab0 AS cor0
----
-5
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2820
SELECT + col2 + col0 DIV col1 col1 FROM tab1 AS cor0
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2820
SELECT + col2 + col0 / col1 col1 FROM tab1 AS cor0
----
102
54
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT DISTINCT - - col1 DIV 89 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - - col1 / 89 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * ( + 41 ) FROM tab2 AS cor0
----
287
3198
3239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2823
SELECT col2 * CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2823
SELECT col2 * CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 - + ( + col2 ) col0 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - col0 - col2 * + 52 FROM tab0
----
-1740
-4353
-87

query I rowsort
SELECT + 38 * col1 FROM tab0
----
3268
3458
3686

query I rowsort
SELECT - col2 * tab2.col2 + 62 + col0 * - col2 FROM tab2
----
-2642
-4384
-856

query I rowsort
SELECT + col1 * - 57 + tab2.col0 + - col0 FROM tab2
----
-1767
-3363
-969

query I rowsort
SELECT + + col2 * - col0 + + 4 FROM tab2 AS cor0
----
-185
-2024
-2998

query I rowsort
SELECT - col1 * 9 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT ALL col2 + 80 * col1 FROM tab0 AS cor0
----
6913
7362
7761

onlyif mysql # use DIV operator for integer division
query I rowsort label-2832
SELECT ALL - + cor0.col1 DIV col1 + + col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - + cor0.col1 / col1 + + col2 FROM tab2 AS cor0
----
25
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT ALL + col0 DIV + 61 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + col0 / + 61 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2834
SELECT ALL - col1 * col0 * 45 + col0 DIV col2 FROM tab0 AS cor0
----
-152740
-364454
-92880

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - col1 * col0 * 45 + col0 / col2 FROM tab0 AS cor0
----
-152740
-364454
-92880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2835
SELECT + + col0 * CAST( col1 AS SIGNED ) + - cor0.col0 * 64 AS col0 FROM tab0 AS cor0
----
1155
2403
528

skipif mysql # not compatible
query I rowsort label-2835
SELECT + + col0 * CAST ( col1 AS INTEGER ) + - cor0.col0 * 64 AS col0 FROM tab0 AS cor0
----
1155
2403
528

query I rowsort
SELECT - col1 * - 95 + + col0 AS col1 FROM tab0 AS cor0
----
8194
8734
9250

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT col2 DIV + ( col0 ) + col0 AS col2 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2837
SELECT col2 / + ( col0 ) + col0 AS col2 FROM tab2 AS cor0
----
10
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT + + col0 DIV - ( 61 ) col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2838
SELECT + + col0 / - ( 61 ) col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col0 + + 87 + col1 AS col2 FROM tab1
----
116
161
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2840
SELECT ALL col1 + col2 DIV - col1 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL col1 + col2 / - col1 AS col2 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - tab1.col1 * + 91 col2 FROM tab1
----
-1279
-2420
-967

query I rowsort
SELECT ALL - + col1 - - cor0.col0 * 63 * - col0 FROM tab0 AS cor0
----
-36374
-499114
-77272

query I rowsort
SELECT DISTINCT - col0 + + 58 FROM tab1 AS cor0
----
-22
-6
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 85 col0 FROM tab0
----
-2040
-2975
-7565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * + col2 + + 36 col0 FROM tab2
----
-1408
-640
-693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT col1 DIV 78 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2846
SELECT col1 / 78 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 * col0 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT - + cor0.col1 + - 8 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-774
-819
-873

onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT ALL - - col1 * + col1 DIV - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - - col1 * + col1 / - col1 FROM tab2 AS cor0
----
-17
-31
-59

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 col2 * - col2 * - cor0.col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + + 43 + col1 * - col0 FROM tab1 AS cor0
----
-35
-597
-997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 48 col1 FROM tab0 cor0
----
-130
-49
-81

query I rowsort
SELECT ALL - 27 AS col1 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + ( - 16 ) + - col0 AS col1 FROM tab1 AS cor0
----
-19
-80
-96

query I rowsort
SELECT ALL + 47 * 59 AS col0 FROM tab2 AS cor0
----
2773
2773
2773

query I rowsort
SELECT ALL 7 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL - - 6 * col2 AS col1 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT - ( col0 ) * - col0 AS col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2860
SELECT - col1 + - 36 / col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT - col1 + - 36 / col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2861
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 3 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 3 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2862
SELECT - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2862
SELECT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 21 + cor0.col1 FROM tab1 cor0
----
-11
-8
5

query I rowsort
SELECT ALL 75 * + ( col1 * - col1 ) FROM tab1 AS cor0
----
-12675
-50700
-7500

query I rowsort
SELECT DISTINCT col2 + - col2 + - col1 * ( + ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 + + col2 col1 FROM tab2 AS cor0
----
-16
-27
-28

query I rowsort
SELECT DISTINCT - - ( col0 ) + col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - col2 + + cor0.col0 * col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 * col1 AS col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2870
SELECT ALL + ( - col0 ) + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + ( - col0 ) + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - col1 * - 5 - + col0 * col0 FROM tab0 AS cor0
----
-232
-7557
-837

query I rowsort
SELECT + + 54 + - col0 AS col1 FROM tab0 AS cor0
----
-35
19
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 + - col0 col1 FROM tab1 AS cor0
----
-68
-7
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + - col2 col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL - 62 + - 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab1bc5e2f6f0be65bdb55f5590ed33f3

query I rowsort
SELECT ALL col2 * - col2 * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-2877
SELECT ALL + col1 DIV - col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + col1 / - col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT - col0 * + col1 * cor0.col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT col0 * - col1 * - 13 AS col1 FROM tab0 AS cor0
----
105287
26832
44135

query I rowsort
SELECT ALL - + 92 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL col0 + + col2 * 45 AS col2 FROM tab2 cor0
----
1222
1248
1789

onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT DISTINCT - - ( col0 ) DIV + col1 - 1 * col1 * + 69 col2 FROM tab0 AS cor0
----
-5934
-6279
-6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT - - ( col0 ) / + col1 - 1 * col1 * + 69 col2 FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT + + 59 * col0 AS col1 FROM tab2 AS cor0
----
413
4602
4661

query I rowsort
SELECT DISTINCT + col0 * col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col1 * + col2 + 27 * - col2 - + cor0.col2 * - ( 98 ) FROM tab1 AS cor0
----
2430
3477
5568

query I rowsort
SELECT ALL + + col0 + - col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col0 + + col1 AS col1 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col0 * col1 - 49 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-5214
-560
-8424

query I rowsort
SELECT - ( 51 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL + - col1 - - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + ( + col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL ( tab0.col1 * col1 ) AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + col1 - col1 * col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + col1 + col0 * col1 * + 96 FROM tab2 AS cor0
----
128945
20863
441851

query I rowsort
SELECT col0 + + col1 - 33 AS col0 FROM tab2 AS cor0
----
104
5
63

query I rowsort
SELECT 48 + col0 + + cor0.col1 FROM tab0 cor0
----
158
180
228

query I rowsort
SELECT 1 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2898
SELECT - col1 * - col1 DIV + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2898
SELECT - col1 * - col1 / + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL ( + col1 ) + col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - 37 * tab2.col1 + + tab2.col1 + 84 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 4c46fee8985532d5e7bb16074053877a

query I rowsort
SELECT DISTINCT + col2 * - col1 + - tab2.col2 AS col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT + 58 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT + + ( + col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT - - col0 + - col1 - 86 DIV - col0 FROM tab1 AS cor0
----
5
55
68

skipif mysql # not compatible
query I rowsort label-2904
SELECT - - col0 + - col1 - 86 / - col0 FROM tab1 AS cor0
----
5
55
68

query I rowsort
SELECT - 74 * col0 * + 68 FROM tab0 AS cor0
----
-120768
-176120
-447848

query I rowsort
SELECT DISTINCT - 67 * cor0.col1 + ( + col1 ) FROM tab1 AS cor0
----
-1716
-660
-858

query I rowsort
SELECT 77 FROM tab0, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL - col1 * - 74 AS col0 FROM tab2
----
1258
2294
4366

query I rowsort
SELECT ALL + - col1 + col0 * col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - cor0.col1 * + 83 + col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1356
-2515
-4812

query I rowsort
SELECT DISTINCT + col0 * col1 + - 93 AS col1 FROM tab2 AS cor0
----
124
1250
4509

query I rowsort
SELECT + 61 * - 57 FROM tab0 AS cor0
----
-3477
-3477
-3477

onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT + cor0.col2 DIV + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2913
SELECT + cor0.col2 / + col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 97 * - col2 AS col0 FROM tab2 AS cor0
----
2522
2619
3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * - 86 col1 FROM tab2 AS cor0
----
4128

onlyif mysql # use DIV operator for integer division
query I rowsort label-2916
SELECT + col0 DIV - 29 AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT + col0 / - 29 AS col2 FROM tab0
----
-1
-3
0

query I rowsort
SELECT + - col0 * ( col0 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL ( - col1 * col0 ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT 88 * + 69 AS col0 FROM tab1 AS cor0
----
6072
6072
6072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT + CAST( col1 AS SIGNED ) * + col0 * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-2920
SELECT + CAST ( col1 AS INTEGER ) * + col0 * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - - cor0.col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + - 20 + col2 FROM tab2 AS cor0
----
18
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + ( col1 ) col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - + 14 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 + - ( - 86 ) FROM tab0 AS cor0
----
-706
-7212
51

query I rowsort
SELECT ALL - col0 + cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 + col1 + col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT - + col2 * + ( + col1 ) + - cor0.col1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT - + col1 + - col0 * col0 * + col0 FROM tab0 AS cor0
----
-13910
-42972
-705060

query I rowsort
SELECT + + col2 + + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * - col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT ( 13 ) FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL + col1 + + 90 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT 68 * + 62 AS col1 FROM tab0 AS cor0
----
4216
4216
4216

query I rowsort
SELECT + 25 + + col2 FROM tab1 AS cor0
----
121
79
82

query I rowsort
SELECT ALL - 82 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
37

query I rowsort
SELECT ALL tab1.col2 * tab1.col2 AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + col2 * ( + 56 ) AS col0 FROM tab1
----
3024
3192
5376

query I rowsort
SELECT DISTINCT + col0 * col2 * col0 + - col0 * + col0 + - col2 FROM tab2
----
1247
152074
230879

query I rowsort
SELECT ALL + col1 * ( col2 + col1 * - 3 ) FROM tab2 AS cor0
----
-2046
-221
-8909

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT ALL col1 * - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL col1 * - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 * col0 + + col2 + col0 AS col0 FROM tab2 cor0
----
2132
223
3119

query I rowsort
SELECT DISTINCT col0 * cor0.col2 * col0 + col0 * ( + col0 * col0 ) FROM tab2 AS cor0
----
1666
632736
730197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2945
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * 78 - col2 AS col0 FROM tab0 AS cor0
----
-2607
-6478
-79

query I rowsort
SELECT + + col1 + - 35 FROM tab2 AS cor0
----
-18
-4
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2949
SELECT DISTINCT - col0 * - CAST( NULL AS DECIMAL ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT - col0 * - CAST ( NULL AS REAL ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + 59 * col0 FROM tab0 AS cor0
----
1502
2162
5342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + 42 + 76 col0 FROM tab1 AS cor0
----
128
131
144

query I rowsort
SELECT + + col1 * 26 AS col2 FROM tab2 AS cor0
----
1534
442
806

query I rowsort
SELECT + col0 - - col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - col0 + ( - 63 + col0 ) FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL + 51 AS col2 FROM tab1 AS cor0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col2 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( - 71 ) FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + col2 * + col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + col1 + - cor0.col2 * + col2 AS col1 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT - ( cor0.col2 ) + cor0.col2 * + 46 AS col0 FROM tab2 cor0
----
1170
1215
1710

query I rowsort
SELECT DISTINCT + tab2.col2 - col1 AS col2 FROM tab2
----
-33
-4
21

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 * + col1 ) IN ( + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col2 + col2 * col0 AS col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT - + col0 * + col1 - + ( cor0.col1 + + col0 ) AS col0 FROM tab0 AS cor0
----
-2174
-3527
-8279

query I rowsort
SELECT + col0 + col1 * 65 FROM tab2 AS cor0
----
1184
2022
3913

query I rowsort
SELECT DISTINCT 21 + + col1 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT ALL - cor0.col1 + col0 * + col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT + + cor0.col1 + - col2 - - col1 FROM tab1 AS cor0
----
-2
-37
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2969
SELECT 82 DIV + col0 AS col2 FROM tab1
----
1
1
27

skipif mysql # not compatible
query I rowsort label-2969
SELECT 82 / + col0 AS col2 FROM tab1
----
1
1
27

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + CAST ( + ( col2 ) AS REAL ) + col0 AS col2 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT ALL - - col2 * + ( col1 ) - + col2 * cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( - col0 ) col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2973
SELECT DISTINCT + col1 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + col1 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - - col1 * ( ( col0 ) ) - + 82 FROM tab1 AS cor0
----
-4
558
958

query I rowsort
SELECT ALL + col0 + col0 * tab1.col1 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT - ( col0 ) - - ( tab2.col0 ) * - col2 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT col1 + - col1 * col2 * - col2 + + col2 AS col1 FROM tab2
----
22657
24603
39969

onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT DISTINCT + tab1.col0 DIV col1 - + col1 FROM tab1
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT + tab1.col0 / col1 - + col1 FROM tab1
----
-26
-4
-7

query I rowsort
SELECT col0 * - tab1.col1 * col2 AS col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT DISTINCT + - col2 * + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - cor0.col1 - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5851d1227c8cfb29c393fad48c7a8a79

query I rowsort
SELECT ALL - tab0.col2 * - 29 FROM tab0, tab0 cor0
----
9 values hashing to 8f85e3ecde9c175a4afac265b47c3df9

query I rowsort
SELECT ALL - tab1.col2 + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2984
SELECT ALL col1 + - CAST( 33 AS SIGNED ) * + col0 AS col0 FROM tab2
----
-200
-2515
-2590

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL col1 + - CAST ( 33 AS INTEGER ) * + col0 AS col0 FROM tab2
----
-200
-2515
-2590

onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT tab0.col1 * + 72 + col0 DIV + col0 AS col2 FROM tab0
----
6193
6553
6985

skipif mysql # not compatible
query I rowsort label-2985
SELECT tab0.col1 * + 72 + col0 / + col0 AS col2 FROM tab0
----
6193
6553
6985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + + col1 + col2 - - 19 * + col2 * col1 AS col0 FROM tab2 AS cor0
----
12329
15961
29231

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT - col2 + 7 * 9 DIV cor0.col2 + col0 FROM tab1 AS cor0
----
-16
-50
8

skipif mysql # not compatible
query I rowsort label-2988
SELECT - col2 + 7 * 9 / cor0.col2 + col0 FROM tab1 AS cor0
----
-16
-50
8

query I rowsort
SELECT ALL 37 * tab2.col1 * cor0.col1 + 87 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f6d8f5c420210f8d523bb96585030d07

query I rowsort
SELECT DISTINCT 38 * 26 AS col2 FROM tab1
----
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * + 6 col2 FROM tab2
----
72
72
72

query I rowsort
SELECT ALL + - 59 + col1 * col2 + 94 FROM tab2 cor0
----
1569
681
872

query I rowsort
SELECT ALL + 96 FROM tab0, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT DISTINCT 75 * col2 DIV col0 AS col1 FROM tab2
----
25
289
36

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT 75 * col2 / col0 AS col1 FROM tab2
----
25
289
36

query I rowsort
SELECT ( 32 ) * col0 * + col0 FROM tab0
----
18432
253472
39200

query I rowsort
SELECT - + cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + - 7 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT + - 98 AS col0 FROM tab0 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 * + col1 col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT 18 + - col2 AS col1 FROM tab1 AS cor0
----
-36
-39
-78

query I rowsort
SELECT + - 0 * col0 * - ( col0 * col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 3 * - col1 AS col0 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT ALL - - col1 + cor0.col0 * 11 AS col1 FROM tab0 AS cor0
----
1070
350
482

query I rowsort
SELECT - col0 + col2 - col2 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + col2 * col2 col0 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-3006
SELECT DISTINCT cor0.col2 + + col2 DIV col1 FROM tab1 cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT cor0.col2 + + col2 / col1 FROM tab1 cor0
----
103
56
62

query I rowsort
SELECT - col0 * col1 + + col1 * + col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 - - col1 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT + col1 DIV + col0 col1 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3009
SELECT + col1 / + col0 col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT + col2 + + cor0.col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT 53 * - col2 FROM tab0 AS cor0
----
-1749
-4346
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * col2 * + col1 col0 FROM tab2 AS cor0
----
-121186
-51034
-66123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT + cor0.col2 * + col0 * col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - 17 * + col1 FROM tab2
----
-1003
-289
-527

query I rowsort
SELECT ALL - 86 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3010
-7654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col1 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT ALL - col2 + col2 * - col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - col1 + + col1 * col1 AS col2 FROM tab1 WHERE NULL > - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 IN ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col1 - + tab2.col2 FROM tab2
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + - col2 col1 FROM tab1
----
-111
-163
-31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * col0 <> ( + col2 * + col1 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 - - tab0.col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 + col1 + - col0 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE col2 * col2 * col1 <= NULL
----

query I rowsort
SELECT - col0 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT col2 DIV + cor0.col1 + + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3030
SELECT col2 / + cor0.col1 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 * - col2 + col2 * - col1 - - col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + col0 - + tab0.col1 col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT DISTINCT col2 * col0 * + col2 AS col1 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - col1 + + col0 + col2 AS col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT - col0 + tab1.col0 + tab1.col2 FROM tab1
----
54
57
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 * col2 * - col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 AS col0 FROM tab2, tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT + col0 DIV col1 + - col2 AS col0 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-3039
SELECT + col0 / col1 + - col2 AS col0 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT col0 + col1 * col1 AS col0 FROM tab1 AS cor0 WHERE - cor0.col2 BETWEEN + col1 AND NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3041
SELECT ALL - CAST( NULL AS SIGNED ) + - ( - col0 ) * + 96 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - CAST ( NULL AS INTEGER ) + - ( - col0 ) * + 96 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3042
SELECT + CAST( + 36 AS SIGNED ) FROM tab1 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3042
SELECT + CAST ( + 36 AS INTEGER ) FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 - col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT ALL - col1 + - col1 DIV + col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL - col1 + - col1 / + col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - + col2 - + col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT + 42 DIV + tab0.col0 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3046
SELECT + 42 / + tab0.col0 AS col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL col0 * - col1 + + 38 + + col2 * + col0 FROM tab1 cor0
----
122
3046
6678

query I rowsort
SELECT DISTINCT - col1 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - - col2 + cor0.col1 * 40 AS col2 FROM tab1 AS cor0
----
1094
457
616

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col0 * col0 + + 6 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1219
-378
-7429

query I rowsort
SELECT DISTINCT cor2.col2 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
1
33
82

query I rowsort
SELECT ALL - 45 + cor0.col0 FROM tab0 AS cor0
----
-10
-21
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3054
SELECT + col0 + + CAST( NULL AS SIGNED ) * col0 / col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT + col0 + + CAST ( NULL AS INTEGER ) * col0 / col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3055
SELECT ALL + CAST( NULL AS SIGNED ) - - ( cor0.col0 ) * - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + CAST ( NULL AS INTEGER ) - - ( cor0.col0 ) * - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3057
SELECT ALL col0 * ( col1 ) + col1 + 69 DIV 58 FROM tab2 AS cor0
----
1361
249
4662

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL col0 * ( col1 ) + col1 + 69 / 58 FROM tab2 AS cor0
----
1361
249
4662

query I rowsort
SELECT ALL - col0 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - - col2 + + col1 * + col2 + + 29 * col0 * - col1 FROM tab2 cor0
----
-131898
-38263
-5429

query I rowsort
SELECT ALL + col1 * - 23 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT ALL col0 + + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + 45 + - col1 AS col0 FROM tab2 AS cor0
----
-14
14
28

query I rowsort
SELECT DISTINCT - 86 * col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT - cor0.col1 * + 59 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT ALL ( 16 ) AS col2 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT - - 97 * + col2 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT DISTINCT + 48 + + col0 AS col2 FROM tab1 AS cor0
----
112
128
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT + - CAST( col1 AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-3068
SELECT + - CAST ( col1 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + + col2 + cor0.col1 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 16 + col1 FROM tab1 cor0
----
-3
-6
10

query I rowsort
SELECT ALL - col2 * 49 + + col0 FROM tab1 AS cor0
----
-2643
-2729
-4624

query I rowsort
SELECT + col1 * 67 * + col0 AS col1 FROM tab1 AS cor0
----
42880
5226
69680

query I rowsort
SELECT DISTINCT 90 + col2 FROM tab1 AS cor0
----
144
147
186

query I rowsort
SELECT - ( - 66 ) * col2 AS col0 FROM tab1 AS cor0
----
3564
3762
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + col0 col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3076
SELECT tab2.col1 * + 99 + + tab2.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT tab2.col1 * + 99 + + tab2.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT 33 + - col0 DIV - col0 FROM tab1
----
34
34
34

skipif mysql # not compatible
query I rowsort label-3077
SELECT 33 + - col0 / - col0 FROM tab1
----
34
34
34

query I rowsort
SELECT DISTINCT - ( - ( - tab0.col0 ) ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 * - col0 * col0 FROM tab1
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT ALL cor0.col1 DIV + 67 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL cor0.col1 / + 67 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - col1 * ( - col1 * col1 ) + col2 * tab2.col0 * 64 AS col0 FROM tab2
----
197041
335171
41887

query I rowsort
SELECT DISTINCT + cor0.col2 + ( 48 ) * + col2 AS col0 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT + cor0.col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3084
SELECT ALL + col0 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + col0 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 30 + + col1 AS col2 FROM tab0
----
116
121
127

query I rowsort
SELECT col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - col1 + - ( + cor0.col2 ) * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL cor0.col0 * + 65 AS col1 FROM tab0 AS cor0
----
1560
2275
5785

query I rowsort
SELECT ALL + - cor0.col2 * - col1 - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + col2 + + col1 * + 54 AS col1 FROM tab0 cor0
----
4677
4996
5239

query I rowsort
SELECT ALL tab0.col0 + col1 * - ( col2 ) AS col0 FROM tab0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3092
SELECT ALL - 56 + col0 * + CAST( NULL AS SIGNED ) + + tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - 56 + col0 * + CAST ( NULL AS INTEGER ) + + tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ALL col0 * 14 FROM tab0
----
1246
336
490

onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT + col1 DIV + 47 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3095
SELECT + col1 / + 47 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + 67 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT DISTINCT col1 + 67 AS col0 FROM tab0 AS cor0
----
153
158
164

query I rowsort
SELECT - col1 + 83 * col1 AS col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT - col1 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + - col0 + ( + col1 ) * + cor0.col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + col0 + - 76 * 38 AS col0 FROM tab1 AS cor0
----
-2808
-2824
-2885

query I rowsort
SELECT + col2 + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * + 79 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT + cor1.col2 + - cor0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to fd2a21e343d9d5b51bc74ad419d88859

query I rowsort
SELECT - cor0.col0 * + 82 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT DISTINCT 28 * col2 + col2 AS col1 FROM tab2 cor0
----
1102
754
783

query I rowsort
SELECT DISTINCT - + col1 * + col1 + + col1 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2266
3159
9060

query I rowsort
SELECT ALL + ( 27 ) AS col2 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT - ( + 12 ) + + col0 FROM tab1 AS cor0
----
-9
52
68

query I rowsort
SELECT col2 * 87 + col0 FROM tab1 cor0
----
4701
5023
8432

query I rowsort
SELECT - 58 + 61 * col1 FROM tab2 AS cor0
----
1833
3541
979

query I rowsort
SELECT - 77 + col0 FROM tab1 AS cor0
----
-13
-74
3

query I rowsort
SELECT - col0 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3114
SELECT CAST( col1 AS SIGNED ) * + tab2.col1 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-3114
SELECT CAST ( col1 AS INTEGER ) * + tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col0 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT col0 * + col1 + + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3118
SELECT DISTINCT 56 * + col1 - + col1 DIV - 63 AS col1 FROM tab2 cor0
----
1736
3304
952

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT 56 * + col1 - + col1 / - 63 AS col1 FROM tab2 cor0
----
1736
3304
952

query I rowsort
SELECT ALL - 97 + cor0.col1 * - ( + col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
177407
329218
736912

query I rowsort
SELECT DISTINCT - 41 * col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
-1244
-2393
-659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 * col1 ) col0 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab2, tab1, tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 40 col2 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT - 25 * cor0.col1 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT ALL - + ( col1 ) * 11 * cor0.col2 FROM tab1 AS cor0
----
-13728
-15444
-6270

query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col1 + 97 AS col1 FROM tab2 AS cor0
----
114
128
156

query I rowsort
SELECT - 42 - - col1 * col0 AS col1 FROM tab2
----
1301
175
4560

query I rowsort
SELECT col1 * col2 + 88 AS col2 FROM tab1 AS cor0
----
1336
1492
658

query I rowsort
SELECT ALL tab1.col2 * - col2 + col0 * - col2 * col2 FROM tab1
----
-11664
-211185
-746496

query I rowsort
SELECT col1 + + col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3132
SELECT ALL col0 + col2 DIV col2 + ( col1 + + col2 ) AS col1 FROM tab1 AS cor0
----
132
190
84

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL col0 + col2 / col2 + ( col1 + + col2 ) AS col1 FROM tab1 AS cor0
----
132
190
84

query I rowsort
SELECT + col0 + + 7 FROM tab0
----
31
42
96

query I rowsort
SELECT DISTINCT - 83 - 55 * col2 AS col0 FROM tab0
----
-138
-1898
-4593

onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT col1 DIV col2 + col0 * + col2 + col0 FROM tab1
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-3135
SELECT col1 / col2 + col0 * + col2 + col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT DISTINCT - 63 DIV ( col0 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - 63 / ( col0 ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT col2 + - col0 - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT + + col2 * col2 + - col0 * ( + col0 * col1 ) FROM tab1 AS cor0
----
-37711
-73984
2682

query I rowsort
SELECT - col1 * - 67 FROM tab2 cor0
----
1139
2077
3953

query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL col2 + - 73 FROM tab1 AS cor0
----
-16
-19
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3142
SELECT - col0 + - CAST( + cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-3142
SELECT - col0 + - CAST ( + cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL col0 * 42 + - col1 FROM tab0 AS cor0
----
1373
3647
922

query I rowsort
SELECT ALL + col0 + - ( col1 + - col0 ) AS col0 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT DISTINCT col0 + + 56 - - cor0.col1 * + col2 FROM tab2 AS cor0
----
1668
781
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col0 * 98 col1 FROM tab0 AS cor0
----
2385
3431
8804

query I rowsort
SELECT + col0 + col2 * 58 FROM tab2 cor0
----
1573
1586
2283

query I rowsort
SELECT - col0 * col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * ( - 5 + cor0.col1 * - col2 ) col2 FROM tab2 AS cor0
----
-22734
-24738
-40014

query I rowsort
SELECT + - ( 5 ) + - col1 FROM tab2 AS cor0
----
-22
-36
-64

query I rowsort
SELECT ALL col0 + + 24 * + 51 FROM tab1 AS cor0
----
1227
1288
1304

query I rowsort
SELECT ALL col0 * col0 - 45 AS col0 FROM tab2 AS cor0
----
4
6039
6196

query I rowsort
SELECT - col0 * col2 * col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT cor0.col1 * + 57 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT DISTINCT + + cor0.col2 * 12 AS col0 FROM tab0 cor0
----
12
396
984

query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab0, tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT - + cor0.col2 * 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-2607
-6478
-79

query I rowsort
SELECT 60 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

query I rowsort
SELECT ( col0 ) + + col1 * - cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
-22592
-24469
-39806

query I rowsort
SELECT ALL 91 * + col1 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT 55 + col0 FROM tab2
----
133
134
62

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to 69b4911f80c201eb66bfc6aa5cd34245

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3164
SELECT + CAST( NULL AS SIGNED ) * - ( col0 * - col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT + CAST ( NULL AS INTEGER ) * - ( col0 * - col2 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 94 * - col2 + 66 AS col0 FROM tab1 AS cor0
----
5142
5424
9090

query I rowsort
SELECT DISTINCT + 28 FROM tab1, tab0 cor0, tab0 AS cor1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - - 79 FROM tab1 cor0
----
79
79
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3169
SELECT + 47 * col1 * CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3169
SELECT + 47 * col1 * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 0 * tab2.col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - cor0.col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + 22 + col1 AS col2 FROM tab1 AS cor0
----
32
35
48

query I rowsort
SELECT ALL 0 * + col2 + col0 + + 59 AS col1 FROM tab1 AS cor0
----
123
139
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3174
SELECT DISTINCT - cor0.col2 + CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT - cor0.col2 + CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( - 7 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL tab0.col1 * + tab0.col2 AS col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT col0 DIV 15 AS col0 FROM tab1 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-3177
SELECT col0 / 15 AS col0 FROM tab1 AS cor0
----
0
4
5

query I rowsort
SELECT + + col2 + + 95 * 7 FROM tab2 cor0
----
691
692
703

query I rowsort
SELECT 44 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3180
SELECT + col0 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT + col0 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3182
SELECT ALL CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 45 + + 87 * - cor0.col1 FROM tab2 AS cor0
----
-1434
-2652
-5088

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3184
SELECT - col2 - col2 * - cor0.col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
26103
34
598354

skipif mysql # not compatible
query I rowsort label-3184
SELECT - col2 - col2 * - cor0.col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT ALL + - ( + cor0.col2 ) + + col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT DISTINCT cor0.col1 DIV 27 + - col0 * + 71 col2 FROM tab2 cor0
----
-496
-5536
-5609

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT cor0.col1 / 27 + - col0 * + 71 col2 FROM tab2 cor0
----
-496
-5536
-5609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3187
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * - col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * - col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - ( cor0.col1 ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT col2 * col1 * + col2 - + 11 DIV col0 FROM tab0 cor0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-3189
SELECT col2 * col1 * + col2 - + 11 / col0 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT col2 + + cor0.col0 * 37 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-110957
-6959
-74932

query I rowsort
SELECT + 9 * col0 AS col1 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT DISTINCT + col0 + - col0 * + ( + col0 ) FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT + 15 * cor0.col1 + - 72 FROM tab0 AS cor0
----
1218
1293
1383

query I rowsort
SELECT ALL - ( col1 ) + col0 AS col2 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3195
SELECT ALL - col2 * + col0 * + col2 + ( + 67 ) DIV tab0.col0 FROM tab0
----
-26134
-34
-598436

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - col2 * + col0 * + col2 + ( + 67 ) / tab0.col0 FROM tab0
----
-26134
-34
-598436

query I rowsort
SELECT ALL - + 29 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

query I rowsort
SELECT ALL 56 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL - col0 * 32 AS col0 FROM tab2 AS cor0
----
-224
-2496
-2528

query I rowsort
SELECT cor0.col1 * cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 11afcae511dc5af9fcc80b9c18958911

query I rowsort
SELECT + col1 + - ( 25 ) * + col0 AS col2 FROM tab2
----
-144
-1891
-1958

query I rowsort
SELECT ALL + - 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ( + col2 ) * col1 * col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT ALL - col0 * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * tab1.col0 * col1 FROM tab1
----
36480
4212
99840

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT ALL 58 AS col0 FROM tab1
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + + col0 * - col0 + + cor0.col1 * ( 3 ) AS col0 FROM tab2 AS cor0
----
-5907
-6190
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT ALL col2 * tab2.col1 + + col1 DIV + 34 AS col1 FROM tab2
----
1535
646
837

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL col2 * tab2.col1 + + col1 / + 34 AS col1 FROM tab2
----
1535
646
837

query I rowsort
SELECT ALL col0 + + 50 FROM tab0
----
139
74
85

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 84 + col2 AS col0 FROM tab2
----
110
111
122

query I rowsort
SELECT cor0.col1 + - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 023677f2362ebf8bd60cb629f4090df4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT + - col0 DIV col1 col0 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3214
SELECT + - col0 / col1 col0 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT col0 * + col1 + + 61 FROM tab1 AS cor0
----
1101
139
701

query I rowsort
SELECT col1 - ( - cor0.col1 ) * col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col2 * + col2 + 12 AS col1 FROM tab2 AS cor0
----
-1432
-664
-717

query I rowsort
SELECT - col0 * 71 + - 22 FROM tab1 AS cor0
----
-235
-4566
-5702

query I rowsort
SELECT col0 * col2 + cor0.col2 - - col0 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT - col0 + - 38 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1033
-1066
-1523

query I rowsort
SELECT + col0 * - col0 + col0 * col1 FROM tab0 AS cor0
----
1488
178
2170

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT cor0.col2 DIV col0 + - ( col2 ) * - 48 FROM tab1 AS cor0
----
2610
2736
4609

skipif mysql # not compatible
query I rowsort label-3222
SELECT cor0.col2 / col0 + - ( col2 ) * - 48 FROM tab1 AS cor0
----
2610
2736
4609

query I rowsort
SELECT col2 + - col0 + - col1 * col2 FROM tab1
----
-1232
-1353
-577

query I rowsort
SELECT ALL - tab0.col1 + 96 AS col2 FROM tab0
----
-1
10
5

query I rowsort
SELECT DISTINCT + col2 - - 14 * + 47 AS col0 FROM tab1
----
712
715
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-3226
SELECT col0 DIV 38 + col0 + - col1 * + ( 62 + col2 ) FROM tab0
----
-13013
-6076
-8146

skipif mysql # not compatible
query I rowsort label-3226
SELECT col0 / 38 + col0 + - col1 * + ( 62 + col2 ) FROM tab0
----
-13013
-6076
-8146

query I rowsort
SELECT + col1 * + 98 FROM tab2
----
1666
3038
5782

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col1 FROM tab2
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3229
SELECT ALL + col2 + CAST( col2 + + col2 AS SIGNED ) FROM tab0 AS cor0
----
246
3
99

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL + col2 + CAST ( col2 + + col2 AS INTEGER ) FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT + + col0 + 82 AS col1 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT ALL col2 * 49 + col0 FROM tab2 AS cor0
----
1330
1352
1941

query I rowsort
SELECT DISTINCT 33 * ( col1 ) + + col1 FROM tab2 AS cor0
----
1054
2006
578

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3233
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) * col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) * col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col0 * cor0.col0 + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + col1 * 98 FROM tab1 cor0
----
1274
2548
980

query I rowsort
SELECT 82 * + col2 * col1 FROM tab2 AS cor0
----
125788
52972
68634

query I rowsort
SELECT ALL 1 + cor0.col0 * + col0 FROM tab2 AS cor0
----
50
6085
6242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3238
SELECT DISTINCT - col1 + + ( - cor0.col1 ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - col1 + + ( - cor0.col1 ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 18 * + 58 + - col0 AS col1 FROM tab2 AS cor0
----
1037
965
966

onlyif mysql # use DIV operator for integer division
query I rowsort label-3240
SELECT ALL + - ( col2 ) * col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
112
324
708

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + - ( col2 ) * col2 / - col1 AS col0 FROM tab1 AS cor0
----
112
324
708

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT + ( + cor0.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col0 - tab0.col0 AS col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT - col0 * - col0 - col1 * col0 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT DISTINCT + ( 61 ) * col1 AS col2 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT - - ( col0 ) + - col0 * - 18 * + cor0.col0 FROM tab1 AS cor0
----
115280
165
73792

query I rowsort
SELECT DISTINCT + 4 * col2 AS col2 FROM tab1 AS cor0
----
216
228
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 41 ) * + col0 + - col2 * col0 col0 FROM tab1 AS cor0
----
-10960
-285
-6272

query I rowsort
SELECT - + col0 * + col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + 30 AS col2 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - - 42 * col1 FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT ALL - 22 * col2 + cor0.col0 * + col0 FROM tab0 AS cor0
----
-150
1203
6117

query I rowsort
SELECT ALL + 53 + + col2 + col0 FROM tab0 AS cor0
----
110
224
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3254
SELECT ALL + 99 * col0 - + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
693
7723
7825

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL + 99 * col0 - + col0 / - cor0.col1 FROM tab2 AS cor0
----
693
7723
7825

query I rowsort
SELECT + - 45 AS col1 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT DISTINCT - col1 + + 32 - ( col2 ) DIV + col1 FROM tab0 cor0
----
-54
-59
-65

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - col1 + + 32 - ( col2 ) / + col1 FROM tab0 cor0
----
-54
-59
-65

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL - + 88 * + 23 AS col0 FROM tab0 AS cor0
----
-2024
-2024
-2024

query I rowsort
SELECT + col2 * col0 + col0 * 50 AS col0 FROM tab2 AS cor0
----
539
5928
6952

query I rowsort
SELECT DISTINCT + + ( + col2 ) + col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT ALL 41 DIV + col1 FROM tab2 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL 41 / + col1 FROM tab2 cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3262
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 + + col1 FROM tab0 AS cor0
----
154
159
165

query I rowsort
SELECT + col1 * - ( - col0 ) AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 * + col2 - + col1 * 50 * cor0.col1 FROM tab2 AS cor0
----
-13804
-172516
-47213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) + + col1 * - 28 col1 FROM tab2 AS cor0
----
-1593
-459
-837

query I rowsort
SELECT DISTINCT + cor0.col2 + + 71 * + col2 AS col1 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT DISTINCT + + cor0.col1 + col2 * col1 AS col0 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT ( - col1 ) + col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * 50 + col2 FROM tab0 AS cor0
----
4333
4632
4851

query I rowsort
SELECT - + 24 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1367
-241
-4626

query I rowsort
SELECT ALL - col2 * col0 * col1 + + col1 * col0 FROM tab2 AS cor0
----
-115050
-49691
-5642

query I rowsort
SELECT ALL - 71 + col1 * col2 FROM tab2 AS cor0
----
1463
575
766

query I rowsort
SELECT DISTINCT + + 75 + - col1 * col2 AS col0 FROM tab2 cor0
----
-1459
-571
-762

query I rowsort
SELECT ALL - 18 * - 68 - + col1 FROM tab0 AS cor0
----
1127
1133
1138

onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT DISTINCT - 75 DIV - 33 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - 75 / - 33 FROM tab1 cor0
----
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3277
SELECT ALL - + CAST( NULL AS DECIMAL ) / cor0.col2 + + cor0.col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - + CAST ( NULL AS REAL ) / cor0.col2 + + cor0.col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 60 * + col0 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-11309
-121621
-180103

query I rowsort
SELECT + 37 * col0 FROM tab0 AS cor0
----
1295
3293
888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3280
SELECT DISTINCT + + col0 + col0 * CAST( - col2 + col1 AS SIGNED ) FROM tab0 AS cor0
----
1296
3395
890

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT + + col0 + col0 * CAST ( - col2 + col1 AS INTEGER ) FROM tab0 AS cor0
----
1296
3395
890

query I rowsort
SELECT DISTINCT - + col0 + col0 * 87 * col0 FROM tab2 AS cor0
----
4256
529230
542888

query I rowsort
SELECT ALL - + col2 - 69 FROM tab1 AS cor0
----
-123
-126
-165

query I rowsort
SELECT ALL + + col1 * col2 * - col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT ALL + col1 + ( col0 ) DIV col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + col1 + ( col0 ) / col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL + ( col0 * + col0 ) - - col1 * col0 FROM tab1
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3286
SELECT ALL + col0 * - 34 * - 20 + col2 DIV - tab1.col2 + 87 * - col0 AS col1 FROM tab1
----
1778
37951
47439

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + col0 * - 34 * - 20 + col2 / - tab1.col2 + 87 * - col0 AS col1 FROM tab1
----
1778
37951
47439

query I rowsort
SELECT + col1 + + 73 + col2 AS col1 FROM tab0
----
171
192
246

query I rowsort
SELECT col0 - + 90 AS col2 FROM tab2
----
-11
-12
-83

query I rowsort
SELECT - col0 * 40 - + ( + col0 ) AS col2 FROM tab0
----
-1435
-3649
-984

query I rowsort
SELECT + col0 + 8 * ( col1 ) - + ( - col0 ) FROM tab2
----
262
294
628

query I rowsort
SELECT ALL + 20 AS col0 FROM tab0, tab2, tab1 AS cor0, tab2 cor1
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8

query I rowsort
SELECT DISTINCT + col2 + 21 * col1 FROM tab1 cor0
----
267
369
600

query I rowsort
SELECT col0 - 93 AS col1 FROM tab2 AS cor0
----
-14
-15
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT DISTINCT - + col0 DIV 63 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - + col0 / 63 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3295
SELECT + col1 * - CAST( + col2 AS SIGNED ) * + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

skipif mysql # not compatible
query I rowsort label-3295
SELECT + col1 * - CAST ( + col2 AS INTEGER ) * + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT + col0 * + col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL + tab2.col2 + col0 * - col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col0 * tab2.col1 + - col2 * tab2.col0 AS col2 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT col0 * + ( - col2 * tab2.col0 ) AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col2 * ( col0 + col2 ) * - col0 FROM tab1
----
-1351680
-441408
-9234

query I rowsort
SELECT col2 * 98 AS col1 FROM tab1
----
5292
5586
9408

query I rowsort
SELECT - ( - tab1.col0 ) * col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - col1 * 34 * - cor0.col1 FROM tab1 AS cor0
----
22984
3400
5746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3305
SELECT - CAST( NULL AS SIGNED ) * col0 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT - CAST ( NULL AS INTEGER ) * col0 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - col2 * 87 FROM tab2
----
-2262
-2349
-3306

query I rowsort
SELECT - ( 27 ) * col1 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT + + ( 11 ) * col0 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT + 45 + col2 AS col1 FROM tab0 cor0
----
127
46
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT - col2 DIV + 26 col0 FROM tab0 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3311
SELECT - col2 / + 26 col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT 68 * col0 AS col1 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT - ( + 28 ) * col1 + + col2 FROM tab2 AS cor0
----
-1626
-438
-841

query I rowsort
SELECT ALL col1 * + cor0.col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL col1 * - col0 * + 98 AS col2 FROM tab2
----
-131614
-21266
-450996

query I rowsort
SELECT DISTINCT - tab1.col1 + tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - ( - col2 + 25 ) FROM tab0
----
-24
57
8

query I rowsort
SELECT DISTINCT + + cor0.col1 * + 95 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
1007
1331
2524

query I rowsort
SELECT ALL + cor0.col1 + cor0.col0 * - col1 * col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3320
SELECT col1 + - CAST( - 18 AS SIGNED ) * - col2 - col2 FROM tab1 AS cor0
----
-1000
-1073
-1811

skipif mysql # not compatible
query I rowsort label-3320
SELECT col1 + - CAST ( - 18 AS INTEGER ) * - col2 - col2 FROM tab1 AS cor0
----
-1000
-1073
-1811

query I rowsort
SELECT + cor0.col1 * 95 + col0 * col1 AS col2 FROM tab2 AS cor0
----
10207
2958
3162

query I rowsort
SELECT DISTINCT + col0 * - col1 + + col2 * col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT + cor0.col1 - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - col0 + + col1 * + 48 AS col1 FROM tab1 cor0
----
1245
416
544

query I rowsort
SELECT DISTINCT + col2 + - 29 * + cor0.col0 * - cor0.col2 AS col1 FROM tab0 cor0
----
1016
211724
23001

query I rowsort
SELECT DISTINCT + - col0 + ( - 87 ) + + col1 FROM tab2 AS cor0
----
-106
-149
-63

query I rowsort
SELECT - col1 + 59 * col1 AS col2 FROM tab1 AS cor0
----
1508
580
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( col2 ) + + col0 col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT - 29 - tab2.col2 DIV - col0 AS col1 FROM tab2
----
-26
-29
-29

skipif mysql # not compatible
query I rowsort label-3329
SELECT - 29 - tab2.col2 / - col0 AS col1 FROM tab2
----
-26
-29
-29

query I rowsort
SELECT - - col0 + + 12 * - col0 - col0 AS col2 FROM tab0 AS cor0
----
-1068
-288
-420

query I rowsort
SELECT - + col1 + - 38 * + col1 AS col1 FROM tab2 AS cor0
----
-1209
-2301
-663

query I rowsort
SELECT - - col0 + cor0.col2 * - col2 - - col2 * col0 AS col1 FROM tab1 AS cor0
----
-1456
-2751
463

query I rowsort
SELECT DISTINCT - col0 * col1 + - col2 AS col0 FROM tab0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + - 80 col0 FROM tab2 AS cor0
----
1454
566
757

query I rowsort
SELECT ALL + col2 + col2 * + 55 AS col2 FROM tab2 AS cor0
----
1456
1512
2128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3336
SELECT - col1 * + col2 * - CAST( NULL AS SIGNED ) - - col1 * col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT - col1 * + col2 * - CAST ( NULL AS INTEGER ) - - col1 * col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
56

query I rowsort
SELECT 43 * - col0 FROM tab1
----
-129
-2752
-3440

onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT ALL col0 DIV 65 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL col0 / 65 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - - col1 * ( 38 ) - - col1 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab1
----
22

query I rowsort
SELECT DISTINCT ( col2 + - col0 ) AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT 33 * col2 AS col0 FROM tab2
----
1254
858
891

query I rowsort
SELECT + - col1 + 22 * - col1 FROM tab2 AS cor0
----
-1357
-391
-713

onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT + col1 * + cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3345
SELECT + col1 * + cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * col0 col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT + col1 + - 13 FROM tab1
----
-3
0
13

query I rowsort
SELECT DISTINCT col1 * 72 AS col1 FROM tab2
----
1224
2232
4248

query I rowsort
SELECT + 49 * tab1.col1 * - col2 AS col0 FROM tab1
----
-27930
-61152
-68796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * cor0.col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + 21 * col1 col1 FROM tab1 AS cor0
----
267
369
600

query I rowsort
SELECT ( - col1 * + col2 ) AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - 59 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT DISTINCT ( 73 ) DIV col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT ( 73 ) / col1 FROM tab2
----
1
2
4

query I rowsort
SELECT ALL 98 * 8 FROM tab2
----
784
784
784

query I rowsort
SELECT - col1 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + + cor0.col0 * cor0.col2 + col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT - 55 + col2 DIV + 33 FROM tab0 AS cor0
----
-53
-54
-55

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 55 + col2 / + 33 FROM tab0 AS cor0
----
-53
-54
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 + + col0 * + ( col1 * cor0.col1 ) col1 FROM tab2 cor0
----
22842
271529
6738

query I rowsort
SELECT ALL + 28 + - col0 AS col1 FROM tab1 cor0
----
-36
-52
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT DISTINCT - col0 DIV col2 + col0 AS col1 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - col0 / col2 + col0 AS col1 FROM tab0
----
0
24
88

query I rowsort
SELECT + - col0 * - 25 * col0 AS col0 FROM tab0 AS cor0
----
14400
198025
30625

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT col0 DIV col1 - 55 FROM tab0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-3363
SELECT col0 / col1 - 55 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT - col0 * + col2 + cor0.col2 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * cor0.col0 + - col2 * col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT ALL + col1 * + col0 + + cor0.col2 * col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT + col2 * - col0 + col2 AS col0 FROM tab0 cor0
----
-34
-7216
-759

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - col0 * 48 AS col0 FROM tab0
----
-1152
-1680
-4272

query I rowsort
SELECT ALL - col2 * col1 + col0 * col0 * - 99 + + col1 FROM tab1
----
-2269
-406064
-634835

query I rowsort
SELECT DISTINCT col2 * - 69 * + tab0.col1 + + col2 * 74 + - col1 FROM tab0
----
-193466
-508901
-6716

query I rowsort
SELECT 11 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col2 col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT col2 * - 39 AS col1 FROM tab2 AS cor0
----
-1014
-1053
-1482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3377
SELECT ALL 36 * cor0.col2 + + cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 36 * cor0.col2 + + cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT - col2 DIV - 59 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3378
SELECT - col2 / - 59 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3379
SELECT - CAST( NULL AS SIGNED ) + col1 * col0 * - 76 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT - CAST ( NULL AS INTEGER ) + col1 * col0 * - 76 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT ALL + col0 DIV col0 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + col0 / col0 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT ALL + col1 DIV 47 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + col1 / 47 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 73 * + col2 + - col1 AS col1 FROM tab2 cor0
----
1839
1940
2757

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - + col0 * + 31 + + col1 + 81 AS col2 FROM tab2 AS cor0
----
-105
-2278
-2351

query I rowsort
SELECT - + 62 * + col1 AS col2 FROM tab2 cor0
----
-1054
-1922
-3658

query I rowsort
SELECT - 48 * col2 * col0 AS col2 FROM tab0 AS cor0
----
-1680
-350304
-38016

query I rowsort
SELECT DISTINCT col0 * - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col0 + + 36 * - col0 + + 0 FROM tab0 AS cor0
----
-1295
-3293
-888

query I rowsort
SELECT DISTINCT - 4 + col0 AS col2 FROM tab0 AS cor0
----
20
31
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT ALL - - col2 DIV cor0.col2 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - - col2 / cor0.col2 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + col0 * - cor0.col0 + + col1 * + ( col2 ) + - 90 FROM tab0 cor0
----
-1218
-549
2172

query I rowsort
SELECT DISTINCT + - 15 AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3393
SELECT ALL - 73 + cor0.col2 DIV - col2 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL - 73 + cor0.col2 / - col2 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + + 3 * col0 FROM tab0 cor0
----
105
267
72

query I rowsort
SELECT ALL + - 64 + + col1 AS col0 FROM tab0 AS cor0
----
22
27
33

query I rowsort
SELECT DISTINCT - 44 + + col2 + ( + col1 ) AS col2 FROM tab1 cor0
----
23
36
65

query I rowsort
SELECT ALL col0 + + cor0.col1 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 * 27 * col2 FROM tab1 AS cor0
----
249872
78810
88363

query I rowsort
SELECT ALL - col0 + col0 * 67 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT + col2 + - ( + col2 ) * col2 * - col0 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT DISTINCT - col1 * - 11 + cor0.col0 FROM tab1 AS cor0
----
174
223
289

query I rowsort
SELECT ALL + col1 + + 86 FROM tab2 AS cor0
----
103
117
145

query I rowsort
SELECT ALL + - col2 * + 25 AS col0 FROM tab2 cor0
----
-650
-675
-950

query I rowsort
SELECT ALL col1 * - ( col1 ) + - col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT + col2 * 0 - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - col1 * col2 + 22 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1020
1519
2832

query I rowsort
SELECT ALL col0 + - col2 * + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL - - cor0.col1 + - 26 AS col1 FROM tab0 AS cor0
----
60
65
71

query I rowsort
SELECT DISTINCT + col0 - ( col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 * - col1 + - 61 FROM tab2 AS cor0
----
-1022
-350
-3542

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) + + tab2.col1 AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col1 * - col1 + + 67 AS col0 FROM tab2
----
-222
-3414
-894

query I rowsort
SELECT + 50 * + cor1.col1 * + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5dde10106d275998338a34f37c656e48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col0 * + col0 col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT DISTINCT + 80 FROM tab1, tab1 AS cor0
----
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3417
SELECT ALL CAST( NULL AS SIGNED ) - ( + tab0.col0 ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL CAST ( NULL AS INTEGER ) - ( + tab0.col0 ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 67 * - col2 FROM tab1 AS cor0
----
-3618
-3819
-6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 85 col2 FROM tab0
----
-1
-12
-6

query I rowsort
SELECT ALL 73 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL + 37 * - col2 AS col0 FROM tab2
----
-1406
-962
-999

query I rowsort
SELECT + 37 + - col2 AS col2 FROM tab2
----
-1
10
11

query I rowsort
SELECT cor0.col1 * - 37 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a071cba3adf7afa21d98e376e0c27356

query I rowsort
SELECT - 12 * col2 FROM tab1 cor0
----
-1152
-648
-684

query I rowsort
SELECT - col2 * + 78 * col2 AS col2 FROM tab1 AS cor0
----
-227448
-253422
-718848

query I rowsort
SELECT + 82 * ( - col2 ) FROM tab1 AS cor0
----
-4428
-4674
-7872

query I rowsort
SELECT + 35 + + cor0.col0 + + col2 FROM tab1 AS cor0
----
156
211
92

query I rowsort
SELECT + - col1 * - cor0.col2 * + col1 + - 45 FROM tab2 AS cor0
----
10937
25902
90461

query I rowsort
SELECT - 44 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT + 42 FROM tab0, tab1 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL 58 + col0 * - ( col2 ) FROM tab0 AS cor0
----
-7240
-734
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + - cor0.col0 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT 70 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT + 62 FROM tab2, tab1 AS cor0
----
62

query I rowsort
SELECT ALL - col1 * + 97 AS col2 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT ( cor0.col0 * + tab2.col0 ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5f0d3c96eb7e6285a2259b8e887cbdfe

query I rowsort
SELECT + col0 + 11 FROM tab0 AS cor0
----
100
35
46

query I rowsort
SELECT ALL 39 - - col0 AS col2 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT DISTINCT + 47 * 62 * + col2 AS col0 FROM tab0 AS cor0
----
238948
2914
96162

query I rowsort
SELECT ALL + - 90 * - col1 + col2 * - col0 FROM tab1 AS cor0
----
-2748
-6510
2178

query I rowsort
SELECT DISTINCT + 73 FROM tab1, tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT + + 16 AS col1 FROM tab2 cor0
----
16

query I rowsort
SELECT - 53 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2785
44
7409

query I rowsort
SELECT + - col1 + ( + col1 ) * + col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 * + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT ALL + + 91 + - col1 FROM tab1 AS cor0
----
65
78
81

query I rowsort
SELECT 96 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
81 values hashing to e03080212e3345d8b37e64e3264019c4

query I rowsort
SELECT DISTINCT - col2 + + 83 FROM tab1 AS cor0
----
-13
26
29

query I rowsort
SELECT DISTINCT + col2 + + col2 + - col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3452
SELECT DISTINCT + CAST( - ( + col0 ) AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + CAST ( - ( + col0 ) AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col2 + 98 FROM tab1
----
2
41
44

query I rowsort
SELECT - 46 * - col2 AS col0 FROM tab1
----
2484
2622
4416

onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT ALL col1 * tab2.col0 DIV - ( col0 + - col2 ) AS col0 FROM tab2
----
-32
-88
10

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL col1 * tab2.col0 / - ( col0 + - col2 ) AS col0 FROM tab2
----
-32
-88
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3456
SELECT DISTINCT cor0.col2 + CAST( col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
2054
216
3040

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT cor0.col2 + CAST ( col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col2 * + ( + ( col1 ) ) + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - - cor0.col0 + - col1 AS col2 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3459
SELECT ALL col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col1 + col2 * + col0 - + col0 FROM tab2
----
2009
213
2940

query I rowsort
SELECT - col1 * col2 + col2 + 73 FROM tab0
----
-23
-2732
-7307

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3462
SELECT ( + col1 ) * - tab1.col1 / col0 + - col1 * CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT ( + col1 ) * - tab1.col1 / col0 + - col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + + col1 * 3 col0 FROM tab2
----
106
148
232

query I rowsort
SELECT cor0.col1 + cor0.col1 FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 956d8870bc331b7793c38009f5a02194

query I rowsort
SELECT DISTINCT col0 + - 58 FROM tab2 AS cor0
----
-51
20
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - col2 * 99 AS col2 FROM tab2 AS cor0
----
-2574
-2673
-3762

query I rowsort
SELECT DISTINCT col0 * - ( + cor0.col1 * col0 ) AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - cor0.col0 * col1 + - 11 * - col1 FROM tab1 AS cor0
----
-530
-897
208

query I rowsort
SELECT ALL + - cor0.col0 * - col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT + col0 + - ( + 46 + - col0 ) AS col1 FROM tab0 AS cor0
----
132
2
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT DISTINCT + - cor0.col1 * CAST( + col0 AS SIGNED ) + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + - cor0.col1 * CAST ( + col0 AS INTEGER ) + cor0.col1 / + col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col2 * + 77 * + col0 AS col0 FROM tab0 AS cor0
----
2695
561946
60984

query I rowsort
SELECT ALL col0 * 6 * - cor0.col2 - col0 FROM tab2 AS cor0
----
-1141
-12246
-18091

query I rowsort
SELECT - + ( cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 60 + tab0.col1 FROM tab0, tab1 cor0
----
146
151
157

query I rowsort
SELECT ( + 59 ) + + col0 AS col1 FROM tab2
----
137
138
66

query I rowsort
SELECT + col0 + col0 + col0 FROM tab1
----
192
240
9

query I rowsort
SELECT DISTINCT - 99 * + 64 - col1 * + col0 FROM tab2
----
-10938
-6553
-7679

query I rowsort
SELECT cor0.col1 + + col2 * ( 63 ) + - col1 FROM tab2 cor0
----
1638
1701
2394

query I rowsort
SELECT ALL + - 94 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-104
-107
-120

query I rowsort
SELECT DISTINCT - + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 80 FROM tab0, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT + col1 - 24 AS col1 FROM tab0
----
62
67
73

query I rowsort
SELECT 34 * col1 + ( 81 ) + - col2 FROM tab2
----
1108
2061
621

query I rowsort
SELECT DISTINCT col1 * col0 * col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL + - col0 * col0 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
-847
2816
2907

query I rowsort
SELECT DISTINCT col0 + - col0 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT + 37 * col0 AS col0 FROM tab1 cor0
----
111
2368
2960

query I rowsort
SELECT DISTINCT - 36 * + col1 AS col0 FROM tab0 cor0
----
-3096
-3276
-3492

query I rowsort
SELECT + - col1 * + col0 - - col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col2 * 33 + col2 AS col0 FROM tab2
----
-1216
-832
-864

query I rowsort
SELECT col0 - + 29 * col1 FROM tab1
----
-226
-297
-751

query I rowsort
SELECT DISTINCT - col2 * - 66 * col2 + col1 FROM tab0 AS cor0
----
163
443875
71960

query I rowsort
SELECT ALL - + col2 * 61 FROM tab0 cor0
----
-2013
-5002
-61

query I rowsort
SELECT + + col0 + 12 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
105
41
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT ALL + col1 DIV 86 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL + col1 / 86 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor1.col2 FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + 45 * + 61 AS col2 FROM tab0
----
2745

onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT DISTINCT + col1 + col2 DIV + cor0.col0 AS col0 FROM tab2 cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + col1 + col2 / + cor0.col0 AS col0 FROM tab2 cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT + 56 DIV - 72 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 56 / - 72 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT + ( col2 ) DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3503
SELECT + ( col2 ) / + cor0.col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL col0 * - 23 AS col0 FROM tab1
----
-1472
-1840
-69

query I rowsort
SELECT ALL + 36 + 30 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT CAST( - 83 AS SIGNED ) FROM tab1 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-3506
SELECT CAST ( - 83 AS INTEGER ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 * + cor0.col2 * + col0 + - col1 FROM tab0 AS cor0
----
-27
26074
598434

query I rowsort
SELECT ALL col2 * cor0.col1 - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col0 * - ( 4 + col1 ) FROM tab0 AS cor0
----
-3535
-693310
-71280

query I rowsort
SELECT DISTINCT - + 51 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
-1597
-4091
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-3511
SELECT + col1 + col0 DIV + col2 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-3511
SELECT + col1 + col0 / + col2 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 24 AS REAL ) AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3513
SELECT - CAST( 27 AS SIGNED ) FROM tab2
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-3513
SELECT - CAST ( 27 AS INTEGER ) FROM tab2
----
-27
-27
-27

query I rowsort
SELECT ALL + + ( - col2 ) + + col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) + - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - - 27 * 4 AS col1 FROM tab1 AS cor0
----
108
108
108

query I rowsort
SELECT ALL + cor0.col0 * 8 AS col0 FROM tab0 AS cor0
----
192
280
712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3518
SELECT + + col1 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT + + col1 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + - ( 62 ) * - col0 - 81 AS col1 FROM tab2 AS cor0
----
322
4696
4800

query I rowsort
SELECT - cor0.col2 + col0 * 8 FROM tab0 AS cor0
----
159
279
630

query I rowsort
SELECT + 53 + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2cd14832f76a56e635b1e88e89f255c7

query I rowsort
SELECT - col0 + - 8 AS col0 FROM tab0
----
-32
-43
-97

query I rowsort
SELECT col0 * + 87 FROM tab2
----
609
6786
6873

query I rowsort
SELECT + - col1 * + ( col0 ) + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT ALL 96 DIV col1 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL 96 / col1 FROM tab1
----
3
7
9

query I rowsort
SELECT + ( 78 ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

onlyif mysql # use DIV operator for integer division
query I rowsort label-3527
SELECT DISTINCT 36 + col2 DIV + col1 col2 FROM tab0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT 36 + col2 / + col1 col2 FROM tab0
----
36

query I rowsort
SELECT DISTINCT + - 44 + + 97 * cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5194
5485
9268

query I rowsort
SELECT 76 + col2 * - col2 AS col1 FROM tab0
----
-1013
-6648
75

query I rowsort
SELECT + col2 * tab1.col0 * col1 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT DISTINCT + col1 DIV - ( - col2 ) col2 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT + col1 / - ( - col2 ) col2 FROM tab0
----
1
2
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3532
SELECT col0 + CAST( col2 * col2 AS SIGNED ) AS col2 FROM tab2
----
1523
736
754

skipif mysql # not compatible
query I rowsort label-3532
SELECT col0 + CAST ( col2 * col2 AS INTEGER ) AS col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT 62 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT 30 AS col1 FROM tab1 cor0
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3535
SELECT CAST( 41 AS SIGNED ) - col0 FROM tab2 AS cor0
----
-37
-38
34

skipif mysql # not compatible
query I rowsort label-3535
SELECT CAST ( 41 AS INTEGER ) - col0 FROM tab2 AS cor0
----
-37
-38
34

query I rowsort
SELECT + col0 * - 46 + - col1 FROM tab0 AS cor0
----
-1190
-1707
-4185

query I rowsort
SELECT + 76 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3538
SELECT + + 31 + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-3538
SELECT + + 31 + col0 / col0 AS col1 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT ALL 54 DIV col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL 54 / col2 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - cor0.col2 + - col1 * col0 * col1 + col1 FROM tab2 cor0
----
-22852
-271485
-6723

query I rowsort
SELECT ( + col0 ) + ( + col1 * - col0 ) + 78 * col2 AS col1 FROM tab1 AS cor0
----
3870
4137
6528

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col0 * col1 * - 71 + col2 FROM tab2
----
-15380
-326716
-95315

query I rowsort
SELECT ALL - col0 * + col0 + 53 AS col1 FROM tab0
----
-1172
-523
-7868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3545
SELECT DISTINCT - col2 * - col0 + CAST( NULL AS SIGNED ) * + 68 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - col2 * - col0 + CAST ( NULL AS INTEGER ) * + 68 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col0 + col1 + - cor0.col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col1 * col2 * - col2 - + 82 * cor0.col0 FROM tab0 AS cor0
----
-2773
604586
91686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - 29 ) col2 FROM tab2 AS cor0
----
-1711
-493
-899

query I rowsort
SELECT - col1 * cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + cor0.col2 * - 12 + 88 * col2 AS col2 FROM tab0 cor0
----
2508
6232
76

query I rowsort
SELECT DISTINCT + - col2 - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3552
SELECT ALL - col2 * + CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - col2 * + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + cor0.col0 + + ( col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * + 47 AS col1 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT ALL - col2 + col0 - + col2 FROM tab0 AS cor0
----
-42
-75
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + cor0.col0 * col0 col0 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT ALL + col2 * col2 + 20 FROM tab2
----
1464
696
749

query I rowsort
SELECT ALL - 15 + col1 FROM tab2
----
16
2
44

query I rowsort
SELECT col1 - - tab1.col0 * col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT - col2 - + 64 AS col0 FROM tab2 AS cor0
----
-102
-90
-91

query I rowsort
SELECT 21 * + col1 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1700
5841
868

query I rowsort
SELECT ALL + 91 * + col0 + col1 * - 58 AS col1 FROM tab2 AS cor0
----
-1161
3676
6203

query I rowsort
SELECT - cor0.col1 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - + ( + col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + + col1 * col2 - cor0.col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL - col0 * tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL col1 * ( - col2 * tab0.col0 + col2 ) FROM tab0
----
-3298
-65274
-656656

query I rowsort
SELECT ALL col2 + 83 FROM tab0 AS cor0
----
116
165
84

query I rowsort
SELECT - cor0.col1 + 65 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 23c1a7e84c9253c10cb68f6df7921f99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT col1 + + 86 AS col0 FROM tab0
----
172
177
183

query I rowsort
SELECT ALL + 97 - - 93 FROM tab0
----
190
190
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 9 ) col1 FROM tab2 cor0
----
-9
-9
-9

query I rowsort
SELECT col0 + 50 * col0 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT ALL + 82 + col1 AS col0 FROM tab2
----
113
141
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT cor0.col0 * + 32 AS col0 FROM tab0 AS cor0
----
1120
2848
768

query I rowsort
SELECT DISTINCT - cor0.col1 + 86 AS col0 FROM tab2 AS cor0
----
27
55
69

query I rowsort
SELECT + 87 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT - col0 + 49 * + col2 * - col2 FROM tab1
----
-142887
-159265
-451664

query I rowsort
SELECT DISTINCT 73 + - col1 + tab0.col2 * + tab0.col2 FROM tab0
----
-23
1076
6706

query I rowsort
SELECT ALL - 38 * - col2 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT col2 + col0 * + 80 AS col1 FROM tab2 AS cor0
----
587
6266
6358

query I rowsort
SELECT ALL + 35 * col0 * - 20 FROM tab1 AS cor0
----
-2100
-44800
-56000

query I rowsort
SELECT col0 * col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - + ( col1 ) * - col2 + 94 FROM tab2 AS cor0
----
1628
740
931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 * col1 col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL + 39 + + col2 FROM tab2
----
65
66
77

query I rowsort
SELECT + col2 - - col1 AS col1 FROM tab0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3591
SELECT ALL CAST( col1 AS SIGNED ) + + col2 AS col0 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL CAST ( col1 AS INTEGER ) + + col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT 0 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT ALL - col2 * col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - col2 * col0 / + col2 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort
SELECT col0 * col2 + CAST ( 6 AS REAL ) FROM tab0 AS cor0
----
41
7304
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * - ( col0 ) col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 53 * col0 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT ( + col0 ) + - col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 * - col0 col1 FROM tab0
----
-1424
-384
-560

query I rowsort
SELECT + - cor0.col1 + ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 62 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3602
SELECT DISTINCT - tab1.col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - tab1.col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 34 * col0 AS col0 FROM tab0
----
1190
3026
816

query I rowsort
SELECT + 80 * + col2 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT ( - tab0.col2 ) * - col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + tab0.col0 * - col0 AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + - col2 + col0 * - col1 AS col1 FROM tab0 cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 31 col2 FROM tab2 AS cor0
----
-1178
-806
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3609
SELECT - - col2 * CAST( 42 AS SIGNED ) + col2 FROM tab2 cor0
----
1118
1161
1634

skipif mysql # not compatible
query I rowsort label-3609
SELECT - - col2 * CAST ( 42 AS INTEGER ) + col2 FROM tab2 cor0
----
1118
1161
1634

query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 * col0 FROM tab2 cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT + col2 DIV cor0.col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3611
SELECT + col2 / cor0.col1 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 * - cor0.col0 col1 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT - ( + col2 ) - col1 * 25 FROM tab2 AS cor0
----
-1501
-463
-802

onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT ALL 27 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL 27 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3615
SELECT - - 99 DIV - col2 + + 75 FROM tab0 AS cor0
----
-24
72
74

skipif mysql # not compatible
query I rowsort label-3615
SELECT - - 99 / - col2 + + 75 FROM tab0 AS cor0
----
-24
72
74

query I rowsort
SELECT + 39 * + col1 + + col0 FROM tab0 AS cor0
----
3378
3638
3818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * - col0 col1 FROM tab2 cor0
----
-490
-5460
-5530

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3618
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col0 * + 92 + + col1 FROM tab1 AS cor0
----
302
5898
7373

query I rowsort
SELECT ALL cor0.col0 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col2 - - col1 * col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + + 3 + - col0 FROM tab1 cor0
----
-61
-77
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT ALL + - 81 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + - 81 / cor0.col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * + col2 col1 FROM tab1 cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT ALL + - 5 + col1 + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
82
87
93

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + - 5 + col1 + col0 / col0 AS col1 FROM tab0 AS cor0
----
82
87
93

query I rowsort
SELECT DISTINCT col2 + col2 * - 38 AS col0 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT DISTINCT col2 * tab0.col0 + col2 * col0 FROM tab0
----
14596
1584
70

query I rowsort
SELECT + col0 * col1 - 10 FROM tab2 AS cor0
----
1333
207
4592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3629
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3629
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * col0 + + col2 AS col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT - col1 * - ( - col1 ) * col1 AS col0 FROM tab0
----
-636056
-753571
-912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3632
SELECT DISTINCT + col1 - + CAST( col0 AS SIGNED ) col1 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + col1 - + CAST ( col0 AS INTEGER ) col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT - cor0.col0 - - ( - col0 ) FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - col1 * 26 + col1 - - col2 FROM tab1 AS cor0
----
-193
-229
-596

query I rowsort
SELECT + col0 + 55 * 90 + + col0 FROM tab2 AS cor0
----
4964
5106
5108

query I rowsort
SELECT + col0 + ( 92 + - col1 ) FROM tab1
----
146
159
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL + cor0.col2 * + ( ( col1 ) ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + col0 * - 51 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT DISTINCT + col0 * 81 FROM tab2 cor0
----
567
6318
6399

query I rowsort
SELECT - - col2 + col0 * + 80 FROM tab0 cor0
----
1953
2801
7202

onlyif mysql # use DIV operator for integer division
query I rowsort label-3642
SELECT col2 DIV - ( col1 ) AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3642
SELECT col2 / - ( col1 ) AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ALL - 73 + - 3 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 30b3ee36c95bb84d1f6a640c4d41cf15

query I rowsort
SELECT ALL + - col1 * col0 * col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - col1 + - col1 * col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT + + col0 + col2 * + col2 FROM tab0 cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + cor0.col2 * + col2 * + 57 col2 FROM tab0 cor0
----
383301
62106
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3648
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT + 40 DIV - col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT + 40 / - col0 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3650
SELECT ALL col2 DIV col2 + - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL col2 / col2 + - col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + col2 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT DISTINCT - + 90 DIV + col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - + 90 / + col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT ALL + - col0 * 84 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-23
-30
-82

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + - col0 * 84 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-23
-30
-82

query I rowsort
SELECT col2 + tab1.col1 * + col1 AS col2 FROM tab1
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3655
SELECT ALL - col1 DIV cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - col1 / cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
16

query I rowsort
SELECT DISTINCT - - 66 AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL - 53 * col1 AS col0 FROM tab1 AS cor0
----
-1378
-530
-689

onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT + - 7 DIV col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT + - 7 / col2 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT ALL col2 * - col0 + - 16 * col0 DIV + 6 FROM tab2 AS cor0
----
-207
-2236
-3212

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL col2 * - col0 + - 16 * col0 / + 6 FROM tab2 AS cor0
----
-207
-2236
-3212

query I rowsort
SELECT ALL cor0.col2 + - col0 * col0 + col1 AS col1 FROM tab2 AS cor0
----
-5999
-6186
9

query I rowsort
SELECT DISTINCT + col0 * - 95 + - col2 AS col2 FROM tab2 cor0
----
-692
-7436
-7543

query I rowsort
SELECT ALL - col0 + 69 * col1 FROM tab0 AS cor0
----
5910
6190
6658

onlyif mysql # use DIV operator for integer division
query I rowsort label-3664
SELECT ALL + col1 DIV - col0 col1 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL + col1 / - col0 col1 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + ( - cor0.col1 ) col2 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 59 * + col0 FROM tab0
----
1416
2065
5251

query I rowsort
SELECT DISTINCT + col0 + - 94 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
-193992
-319095
-761217

query I rowsort
SELECT DISTINCT + + ( tab0.col0 ) * tab0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3670
SELECT col1 * col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT col1 * col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3671
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3671
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col1 col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL + 77 * + col2 AS col2 FROM tab2 AS cor0
----
2002
2079
2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + - col1 col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 + 34 col0 FROM tab2 AS cor0
----
1478
710
763

onlyif mysql # use DIV operator for integer division
query I rowsort label-3676
SELECT - cor0.col2 + - col2 DIV - 62 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3676
SELECT - cor0.col2 + - col2 / - 62 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT ALL + col0 * col1 DIV - col1 + cor0.col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + col0 * col1 / - col1 + cor0.col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT DISTINCT col1 DIV 46 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT col1 / 46 FROM tab2 cor0
----
0
1

query I rowsort
SELECT ALL + col1 * - 48 AS col1 FROM tab2 AS cor0
----
-1488
-2832
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT + col1 DIV ( - col2 * - col2 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3680
SELECT + col1 / ( - col2 * - col2 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT - col1 DIV col0 + + col1 AS col0 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-3681
SELECT - col1 / col0 + + col1 AS col0 FROM tab0
----
83
90
95

query I rowsort
SELECT col2 - col1 AS col1 FROM tab1 WHERE NOT NULL = col2
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT col0 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT DISTINCT col1 DIV col2 - col2 FROM tab0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT col1 / col2 - col2 FROM tab0
----
-31
-81
96

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col2 + col0 * tab2.col0 FROM tab2
----
22
6058
6203

query I rowsort
SELECT ALL col2 + - col2 * - col1 + - tab2.col1 FROM tab2
----
1501
667
833

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col2 + col0 * col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT ALL 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-3689
SELECT ALL col0 / tab0.col2 col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab2 WHERE NOT - col2 - + col0 >= NULL
----

query I rowsort
SELECT + col2 * - tab1.col2 * col0 + col1 * col0 AS col2 FROM tab1
----
-207296
-736240
-8670

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + tab1.col2 + tab1.col1 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - + col0 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * tab0.col2 * - col1 - + col2 * + col0 AS col1 FROM tab0
----
-244860
-686340
-9444

query I rowsort
SELECT - tab0.col0 - col1 * - col0 FROM tab0
----
2040
3360
8010

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 + col2 * col0 ) <= col1 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col1 + col2 * - col1 <= ( NULL )
----

query I rowsort
SELECT tab2.col0 * - col2 * - col0 + + col0 * tab2.col2 * - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE col1 NOT IN ( col1 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - tab0.col1 - col0 col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT + col1 * - col0 * - col0 FROM tab1
----
234
40960
83200

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * - col2 + col0 ) NOT IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 + + col2 ) IN ( + col2 * + col0 )
----

query I rowsort
SELECT - col0 * col1 * - col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + cor0.col2 * - cor0.col2 + col1 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT + - 82 AS col0 FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3710
SELECT col0 + col0 DIV 37 - + col2 FROM tab0 AS cor0
----
-9
34
9

skipif mysql # not compatible
query I rowsort label-3710
SELECT col0 + col0 / 37 - + col2 FROM tab0 AS cor0
----
-9
34
9

query I rowsort
SELECT - 70 * + col2 * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
39964
87440
98283

query I rowsort
SELECT + 40 FROM tab1, tab0 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL 15 * + col1 AS col2 FROM tab2
----
255
465
885

onlyif mysql # use DIV operator for integer division
query I rowsort label-3714
SELECT - col1 DIV + tab0.col2 AS col1 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3714
SELECT - col1 / + tab0.col2 AS col1 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT 26 + col2 FROM tab1
----
122
80
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT tab0.col2 DIV - col0 col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3716
SELECT tab0.col2 / - col0 col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - col2 * col0 * 72 FROM tab1 AS cor0
----
11664
262656
552960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT col1 * + 57 + col0 AS col0 FROM tab2 cor0
----
1048
1774
3441

query I rowsort
SELECT ALL cor0.col0 + ( + 13 ) * cor0.col2 * + 6 FROM tab2 AS cor0
----
2106
2113
3043

query I rowsort
SELECT DISTINCT - 46 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-46

query I rowsort
SELECT cor0.col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + - 51 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT 22 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT 60 + col1 AS col1 FROM tab0 AS cor0
----
146
151
157

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3728
SELECT + col0 * col1 + col2 * CAST( NULL AS DECIMAL ) / + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT + col0 * col1 + col2 * CAST ( NULL AS REAL ) / + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - + 46 * + col0 AS col1 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT DISTINCT 31 * - col0 + col0 FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT ALL 26 * + col2 FROM tab1 AS cor0
----
1404
1482
2496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT DISTINCT 53 + col0 DIV + col1 col1 FROM tab1 AS cor0
----
53
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT 53 + col0 / + col1 col1 FROM tab1 AS cor0
----
53
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col1 + + col0 col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT + col1 * + col1 + + col1 FROM tab1 cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - 80 + col0 FROM tab1 cor0
----
-16
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 3 - cor0.col1 * + col2 col0 FROM tab0 AS cor0
----
-100
-2841
-7465

query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + + col2 * + col1 + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 * col2 col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT + 37 * - col2 * col0 AS col0 FROM tab2
----
-111074
-6993
-75036

query I rowsort
SELECT - - col2 + - col2 * - cor0.col2 FROM tab0 cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 col1 FROM tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 21 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * + col0 col2 FROM tab2
----
399
4446
4503

query I rowsort
SELECT ALL + col1 * 52 FROM tab2
----
1612
3068
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT ( col1 + col2 ) DIV col1 AS col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-3748
SELECT ( col1 + col2 ) / col1 AS col1 FROM tab1
----
3
6
8

query I rowsort
SELECT 96 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + 33 * col1 FROM tab2
----
1023
1947
561

query I rowsort
SELECT ( + 31 ) AS col0 FROM tab0 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 - + col2 col0 FROM tab1
----
-1
-4
-43

query I rowsort
SELECT cor0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col1 * + col1 + col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT col1 + col2 - + col2 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 * + col0 + - col2 + col0 col2 FROM tab0
----
1259
567
7928

query I rowsort
SELECT ALL col1 + - col1 AS col1 FROM tab2 WHERE NOT NULL IN ( col0 + + col0 * tab2.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT DISTINCT tab1.col1 DIV - col0 AS col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT tab1.col1 / - col0 AS col0 FROM tab1
----
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3760
SELECT + col0 DIV col0 + - col1 + - col0 AS col0 FROM tab2
----
-136
-37
-95

skipif mysql # not compatible
query I rowsort label-3760
SELECT + col0 / col0 + - col1 + - col0 AS col0 FROM tab2
----
-136
-37
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT ALL - col0 DIV tab0.col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - col0 / tab0.col0 AS col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3763
SELECT DISTINCT col0 DIV - col2 + - col2 * + col2 * - col2 + + tab0.col0 * + col1 AS col2 FROM tab0
----
3361
38001
559466

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT col0 / - col2 + - col2 * + col2 * - col2 + + tab0.col0 * + col1 AS col2 FROM tab0
----
3361
38001
559466

onlyif mysql # use DIV operator for integer division
query I rowsort label-3764
SELECT ALL col2 DIV - col1 - - col1 * col0 col0 FROM tab2 AS cor0
----
1341
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL col2 / - col1 - - col1 * col0 col0 FROM tab2 AS cor0
----
1341
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3765
SELECT DISTINCT + tab1.col2 DIV + col2 + col0 AS col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT + tab1.col2 / + col2 + col0 AS col2 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL + col1 * cor0.col2 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL col0 + col2 * - col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT + col0 + - col0 * col2 AS col2 FROM tab0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * - col2 col1 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL col1 + tab1.col1 * col2 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT + tab1.col0 + cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 8bd72de8d7a75bcbd2619bca60945947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab2.col2 col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - col0 * + col2 * + col1 FROM tab2
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * col1 col1 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + cor0.col1 * - cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - + col0 * + col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - + col2 * + col1 * col1 AS col1 FROM tab0 cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3781
SELECT DISTINCT + col1 + + col0 DIV col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT + col1 + + col0 / col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT - col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT 15 + - cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 23890fb138101a5f68f77cf58d0af4bf

query I rowsort
SELECT + col2 * 14 + col0 FROM tab0 AS cor0
----
1237
486
49

query I rowsort
SELECT col0 * ( + ( col2 ) ) AS col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + col2 * - 77 FROM tab0
----
-2541
-6314
-77

query I rowsort
SELECT ALL 0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3789
SELECT DISTINCT - - 68 + 96 * - col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - - 68 + 96 * - col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - cor1.col2 * tab1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 00c1773daca8bb01543211c1e358f2df

query I rowsort
SELECT - + ( + col0 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT cor0.col1 * + col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 75 ) * + col0 + - cor0.col0 col2 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT DISTINCT ( col2 * - col0 ) AS col1 FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3797
SELECT ALL - - 5 + cor0.col0 * CAST( col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1328
158189
237163

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - - 5 + cor0.col0 * CAST ( col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1328
158189
237163

query I rowsort
SELECT DISTINCT - 58 * - cor0.col1 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT ALL - - col0 + - 77 * 39 FROM tab1 cor0
----
-2923
-2939
-3000

query I rowsort
SELECT DISTINCT - col1 + 27 * + col2 FROM tab2 AS cor0
----
1009
643
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT ALL + col2 + col0 DIV + ( + cor0.col1 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + col2 + col0 / + ( + cor0.col1 ) FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 40 * col1 * - col1 col1 FROM tab2 AS cor0
----
-11522
-139214
-38413

query I rowsort
SELECT col1 + cor0.col2 * + 8 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1270
-29174
-61427

query I rowsort
SELECT ALL + col2 * + 98 AS col0 FROM tab1 cor0
----
5292
5586
9408

query I rowsort
SELECT + col0 + 85 * - ( + col1 ) FROM tab0 AS cor0
----
-7286
-7646
-8210

query I rowsort
SELECT DISTINCT col0 + 14 FROM tab2 AS cor0
----
21
92
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - cor0.col0 * - cor0.col0 col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - col1 - col2 AS col1 FROM tab1
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 21 col0 FROM tab0 cor0
----
-12
-61
20

query I rowsort
SELECT + col0 * 24 + col1 - - col1 AS col0 FROM tab0 AS cor0
----
1034
2318
748

query I rowsort
SELECT + + col1 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col2 + - cor0.col0 * ( + col1 ) AS col2 FROM tab0 cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT - 54 DIV - col1 + col2 * - col0 FROM tab1 AS cor0
----
-160
-3643
-7676

skipif mysql # not compatible
query I rowsort label-3813
SELECT - 54 / - col1 + col2 * - col0 FROM tab1 AS cor0
----
-160
-3643
-7676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT ALL + + cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + + cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL - col0 * col0 + col1 + - 85 * - col0 FROM tab2 AS cor0
----
491
577
605

query I rowsort
SELECT - 19 * col0 * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-145933
-3104
-69322

query I rowsort
SELECT 50 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL col2 + + tab2.col2 * col0 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - - cor0.col1 * - col1 FROM tab2 cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col1 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
96

query I rowsort
SELECT + - ( ( - col0 ) ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT col0 * cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT 80 * col0 - col0 FROM tab2
----
553
6162
6241

query I rowsort
SELECT - cor0.col2 - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT - 90 - + col0 AS col0 FROM tab1 AS cor0
----
-154
-170
-93

query I rowsort
SELECT DISTINCT + + 9 - + cor0.col2 * 12 FROM tab2 AS cor0
----
-303
-315
-447

query I rowsort
SELECT ALL - - ( col0 ) * 56 AS col0 FROM tab0 AS cor0
----
1344
1960
4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT DISTINCT col0 - - col0 DIV + 87 AS col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT col0 - - col0 / + 87 AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + 78 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT ALL + ( col2 ) * + 2 * + col1 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * + col0 + - 90 AS col0 FROM tab1 cor0
----
-12
550
950

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + - col1 + col2 + + col2 * ( col1 + 60 ) FROM tab0 AS cor0
----
12373
4765
61

query I rowsort
SELECT cor0.col0 * cor0.col0 - + 87 FROM tab1 AS cor0
----
-78
4009
6313

query I rowsort
SELECT - - ( + col1 ) * - 11 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT - + col0 * - cor0.col2 - cor0.col1 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL + + col1 * col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 * col2 FROM tab1
----
208000
737360
8751

query I rowsort
SELECT - col1 + + ( 89 ) * col0 AS col0 FROM tab0 AS cor0
----
2050
3018
7830

query I rowsort
SELECT - - cor0.col0 + - col1 + + col0 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT DISTINCT + 20 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
29
4116
6420

query I rowsort
SELECT DISTINCT - col0 * 52 * + col1 FROM tab1 cor0
----
-33280
-4056
-54080

query I rowsort
SELECT + + col1 * - 31 FROM tab0 AS cor0
----
-2666
-2821
-3007

onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT ALL tab0.col1 DIV cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ffd25e6e53bc08a371a5cb655f1c6ee

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL tab0.col1 / cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ffd25e6e53bc08a371a5cb655f1c6ee

query I rowsort
SELECT DISTINCT + ( 36 ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL + col1 * col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - ( col2 ) * + cor0.col2 + ( - col1 ) FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL - - ( col2 ) + - cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + 67 AS col1 FROM tab2 AS cor0
----
145
146
74

query I rowsort
SELECT ALL + 12 FROM tab0
----
12
12
12

query I rowsort
SELECT ALL 69 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT + ( 23 ) + cor0.col2 FROM tab2 AS cor0
----
49
50
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT ALL + 35 DIV col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + 35 / col1 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT ALL + + CAST( + col1 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL + + CAST ( + col1 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col1 * + col1 * col0 - - ( + col2 ) * + col0 FROM tab2 AS cor0
----
-19829
-269490
-6538

query I rowsort
SELECT DISTINCT + cor0.col0 * 83 - - cor0.col2 FROM tab0 cor0
----
2025
2906
7469

query I rowsort
SELECT ALL - cor0.col0 * + ( cor0.col1 + col2 ) AS col1 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 AS col1 FROM tab1 cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT + CAST( 6 AS SIGNED ) + cor0.col2 DIV + 30 FROM tab2 AS cor0
----
6
6
7

skipif mysql # not compatible
query I rowsort label-3860
SELECT + CAST ( 6 AS INTEGER ) + cor0.col2 / + 30 FROM tab2 AS cor0
----
6
6
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3861
SELECT - col1 + cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3861
SELECT - col1 + cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col0 + + tab0.col0 * col2 FROM tab0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3863
SELECT CAST( NULL AS SIGNED ) * - tab2.col1 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT CAST ( NULL AS INTEGER ) * - tab2.col1 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3864
SELECT CAST( NULL AS DECIMAL ) + + tab0.col0 * tab0.col2 * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT CAST ( NULL AS REAL ) + + tab0.col0 * tab0.col2 * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 + 92 * 11 - col0 * - 62 FROM tab2 AS cor0
----
1419
5822
5872

query I rowsort
SELECT - cor0.col1 * + 95 - + col0 AS col0 FROM tab2 AS cor0
----
-1694
-2952
-5683

query I rowsort
SELECT DISTINCT col2 - col1 * + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - col0 + ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT ALL col1 * col0 + + col2 DIV + cor0.col2 + col0 * cor0.col1 FROM tab1 AS cor0
----
1281
157
2081

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL col1 * col0 + + col2 / + cor0.col2 + col0 * cor0.col1 FROM tab1 AS cor0
----
1281
157
2081

query I rowsort
SELECT 73 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT ALL + col1 - ( col0 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col0 + - col1 * 8 FROM tab1 AS cor0
----
-16
-205
-24

query I rowsort
SELECT ALL ( - col2 ) - - tab1.col2 * + tab1.col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT 39 - col2 AS col1 FROM tab1
----
-15
-18
-57

query I rowsort
SELECT ALL ( + 37 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT DISTINCT - - col0 DIV col2 + ( - col2 + - col1 ) AS col0 FROM tab1 AS cor0
----
-109
-66
-80

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - - col0 / col2 + ( - col2 + - col1 ) AS col0 FROM tab1 AS cor0
----
-109
-66
-80

query I rowsort
SELECT DISTINCT - - col0 * + 2 + cor0.col1 * col1 FROM tab2 AS cor0
----
3637
447
975

query I rowsort
SELECT col2 + 28 * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-17863
-2130
-29024

query I rowsort
SELECT - - 96 FROM tab0, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + col0 * col0 + - 12 AS col1 FROM tab1 AS cor0
----
-3
4084
6388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 - + 49 col0 FROM tab0 AS cor0
----
-7347
-84
-841

query I rowsort
SELECT DISTINCT 69 + + cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
102
151
70

query I rowsort
SELECT ALL - ( - tab2.col0 ) + + col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT col0 + tab0.col2 * - col2 AS col2 FROM tab0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT + 85 DIV - col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT + 85 / - col2 AS col2 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + 24 * 1 col2 FROM tab1
----
102
1064
664

query I rowsort
SELECT ALL - 63 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col0 * + col2 col2 FROM tab0
----
-297
34
574

query I rowsort
SELECT + 0 + - col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT DISTINCT col0 DIV - col1 + 5 * + col1 FROM tab1 AS cor0
----
130
44
59

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT col0 / - col1 + 5 * + col1 FROM tab1 AS cor0
----
130
44
59

query I rowsort
SELECT DISTINCT - - 23 * - col1 + cor0.col2 FROM tab0 AS cor0
----
-1945
-2011
-2230

query I rowsort
SELECT cor0.col2 + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2, tab1 cor0
----
NULL

query I rowsort
SELECT + 67 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT tab0.col2 + 93 AS col2 FROM tab0
----
126
175
94

query I rowsort
SELECT DISTINCT col2 * + 84 + + col1 FROM tab1 AS cor0
----
4562
4798
8077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col2 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - + 72 * - 64 FROM tab1 cor0
----
4608
4608
4608

query I rowsort
SELECT + - col1 * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - ( + 36 ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL + - col1 + - col2 * cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
114059
5072
52669

query I rowsort
SELECT DISTINCT - col0 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * col1 col2 FROM tab2 cor0
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3904
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 + + col2 / + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 + + col2 / + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col1 * - col2 * - col2 AS col2 FROM tab0 AS cor0
----
194
611975
93740

query I rowsort
SELECT ALL - col0 * + col1 - col1 * - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
633992
745472
909278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab0
----
69
69
69

query I rowsort
SELECT DISTINCT + ( - 61 ) FROM tab2
----
-61

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab2
----
51

query I rowsort
SELECT - ( - 53 ) FROM tab0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col2 col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 9 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col2 * + col1 col2 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT - + 39 + cor0.col0 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
-7337
-74
-831

query I rowsort
SELECT ALL - - col0 + + col0 * - 91 AS col2 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT 50 * - col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT DISTINCT + 60 FROM tab1, tab2, tab1 AS cor0
----
60

query I rowsort
SELECT ( ( - tab2.col0 ) * - 78 ) FROM tab2
----
546
6084
6162

query I rowsort
SELECT ALL - - col1 + ( - 16 ) AS col1 FROM tab0 AS cor0
----
70
75
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT cor0.col2 + cor0.col0 * cor0.col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-3920
SELECT cor0.col2 + cor0.col0 * cor0.col0 / + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col2 * ( col0 ) + - col1 * - col2 FROM tab2 AS cor0
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT + - col1 + - ( cor0.col2 ) DIV + col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-3922
SELECT + - col1 + - ( cor0.col2 ) / + col1 FROM tab1 AS cor0
----
-15
-20
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3923
SELECT - + col2 * CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT - + col2 * CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col1 * ( + col1 ) AS col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT + col1 + - 89 * 54 FROM tab2 AS cor0
----
-4747
-4775
-4789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col2 * - col1 col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT cor0.col2 + ( col1 ) + col2 * - ( col1 ) FROM tab1 cor0
----
-1139
-1324
-503

query I rowsort
SELECT tab1.col1 * - 96 FROM tab1
----
-1248
-2496
-960

query I rowsort
SELECT - + col0 + ( + col2 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT cor1.col1 FROM tab0, tab2 cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT col1 * - tab0.col1 * col0 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT + col2 * 66 AS col1 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col0 * - 25 AS col1 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT + cor0.col2 * 36 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT DISTINCT + - col2 * col0 - + cor0.col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT + - col1 * col1 * 33 AS col1 FROM tab0 AS cor0
----
-244068
-273273
-310497

query I rowsort
SELECT ALL + - col1 + 33 AS col1 FROM tab1 AS cor0
----
20
23
7

query I rowsort
SELECT + col0 * + col1 - ( col1 * col1 ) FROM tab2
----
-744
1054
1121

query I rowsort
SELECT tab1.col0 * - col1 + col1 * - tab1.col0 AS col1 FROM tab1
----
-1280
-156
-2080

query I rowsort
SELECT ALL col1 + col1 * + 23 FROM tab0
----
2064
2184
2328

query I rowsort
SELECT DISTINCT + 18 + col0 * + 84 FROM tab2
----
606
6570
6654

query I rowsort
SELECT col0 * col0 - ( - col2 ) AS col2 FROM tab2
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + + col1 + + col1 * + ( col0 ) FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + - col0 * 33 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-11036
-2856
-4550

query I rowsort
SELECT - 12 * - 93 FROM tab0
----
1116
1116
1116

query I rowsort
SELECT - ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT - + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * col0 * - 50 AS col1 FROM tab2 AS cor0
----
-2450
-304200
-312050

query I rowsort
SELECT DISTINCT - col2 * col0 + 86 FROM tab0
----
-706
-7212
51

query I rowsort
SELECT ALL - 45 + col0 AS col1 FROM tab1
----
-42
19
35

query I rowsort
SELECT 40 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-113520
-298480
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT DISTINCT - + ( col0 ) + 82 AS col2 FROM tab1 AS cor0
----
18
2
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2

query I rowsort
SELECT + + 13 * col0 + ( - col1 ) FROM tab2 AS cor0
----
1010
60
955

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3959
SELECT - + col1 + cor0.col2 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT - + col1 + cor0.col2 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT - col2 * col1 DIV - ( - ( col2 ) ) + col0 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-3960
SELECT - col2 * col1 / - ( - ( col2 ) ) + col0 FROM tab1
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3961
SELECT DISTINCT ( 58 ) * cor1.col2 + + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT ( 58 ) * cor1.col2 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT DISTINCT + + col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT + 43 * col2 FROM tab0 cor0
----
1419
3526
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT DISTINCT - + col0 DIV - col1 + + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT - + col0 / - col1 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - 22 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
-12540
-27456
-30888

onlyif mysql # use DIV operator for integer division
query I rowsort label-3966
SELECT ALL - col0 DIV + cor0.col1 + - ( col1 ) * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - col0 / + cor0.col1 + - ( col1 ) * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 53 * col2 + - 24 * ( col0 * - col1 + + 81 ) FROM tab2 cor0
----
109882
32302
4695

query I rowsort
SELECT DISTINCT + col2 + col2 * 10 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT DISTINCT + - col0 * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 46 * col2 + col1 + - col0 * col1 FROM tab2 AS cor0
----
-1428
-3074
-5739

query I rowsort
SELECT - + 5 + + col1 AS col0 FROM tab2 AS cor0
----
12
26
54

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * + col0 * + CAST ( - 44 AS REAL ) AS col0 FROM tab2 cor0
----
-202488
-59092
-9548

query I rowsort
SELECT DISTINCT + - 47 AS col0 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT + ( col0 ) + col2 * + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - col1 + ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + col1 + col2 * - 73 FROM tab1 AS cor0
----
-3916
-4151
-6995

query I rowsort
SELECT ALL + col1 + - col2 * - col2 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + col2 * + col1 col0 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT - col0 * - col1 * - col1 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3980
SELECT CAST( + cor1.col2 AS SIGNED ) * + cor0.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9

skipif mysql # not compatible
query I rowsort label-3980
SELECT CAST ( + cor1.col2 AS INTEGER ) * + cor0.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9

query I rowsort
SELECT ALL 11 * - col0 + col2 AS col1 FROM tab0
----
-231
-384
-897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3983
SELECT ( + 4 ) + + col0 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT ( + 4 ) + + col0 * - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * + col2 * - col0 + - 20 AS col0 FROM tab1 AS cor0
----
-36500
-4232
-99860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + col1 * ( 34 ) * + col2 FROM tab2 AS cor0
----
21981
28489
52215

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + col1 * ( 34 ) * + col2 FROM tab2 AS cor0
----
21981
28489
52215

query I rowsort
SELECT - - 11 - col2 FROM tab1 AS cor0
----
-43
-46
-85

query I rowsort
SELECT ALL + 62 * col1 FROM tab2 AS cor0
----
1054
1922
3658

query I rowsort
SELECT ALL + - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT ALL - + col2 * col0 - cor0.col1 DIV col1 FROM tab2 AS cor0
----
-190
-2029
-3003

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - + col2 * col0 - cor0.col1 / col1 FROM tab2 AS cor0
----
-190
-2029
-3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3991
SELECT DISTINCT 92 / - col0 + cor0.col1 * + CAST( NULL AS SIGNED ) * 86 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT 92 / - col0 + cor0.col1 * + CAST ( NULL AS INTEGER ) * 86 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab1
----
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3993
SELECT CAST( NULL AS DECIMAL ) + - 61 * col2 + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT CAST ( NULL AS REAL ) + - 61 * col2 + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col1 * col1 - col2 FROM tab2 cor0
----
-205405
-29818
-4951

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 10 * col2 col2 FROM tab0 AS cor0
----
-10
-330
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-3996
SELECT DISTINCT + 76 + + col1 DIV 76 AS col1 FROM tab2 cor0
----
76

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT + 76 + + col1 / 76 AS col1 FROM tab2 cor0
----
76

query I rowsort
SELECT - col2 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT + 66 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT DISTINCT - col2 + + col1 + col2 * col1 FROM tab0
----
193
2891
7471

query I rowsort
SELECT 45 * col1 * + col1 + ( 19 * + col1 ) AS col0 FROM tab1
----
30914
4690
7852

onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT + ( + col1 ) DIV + col2 + tab1.col1 DIV + 43 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT + ( + col1 ) / + col2 + tab1.col1 / + 43 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
-3
-64
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) IN ( tab1.col2 * - col1 + - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col0 + col1 * col2 * + col1 FROM tab0
----
244092
679131
9444

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col2 * - tab1.col0 )
----

query I rowsort
SELECT ALL col1 + tab0.col2 * + col1 AS col2 FROM tab0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT - col2 * col1 * 32 FROM tab1 AS cor0
----
-18240
-39936
-44928

query I rowsort
SELECT ALL + cor0.col0 * + ( 77 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 780f5ba541769c8f3ef3c8c584a78ef8

query III rowsort
SELECT * FROM tab0 WHERE col2 / col0 = col1 * - col0
----

query I rowsort
SELECT col0 * + col1 * col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 * - col2 AND NULL
----

query I rowsort
SELECT - col2 - + col0 * col0 AS col2 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT + col1 * - col2 + - col1 * col2 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL + col2 + col1 * cor0.col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL col1 + + col2 + col1 FROM tab2
----
144
72
89

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab0.col1 col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + col1 * col2 / col2 AS col0 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 + col2 FROM tab2
----
205405
29818
4951

onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT DISTINCT - tab2.col2 DIV - tab2.col1 + col0 DIV col0 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT - tab2.col2 / - tab2.col1 + col0 / col0 FROM tab2
----
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4024
SELECT + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4024
SELECT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - ( + 43 ) + + cor0.col0 AS col1 FROM tab1 cor0
----
-40
21
37

query I rowsort
SELECT 21 FROM tab2, tab1 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT + CAST( NULL AS SIGNED ) * col1 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT + CAST ( NULL AS INTEGER ) * col1 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - - 93 AS col0 FROM tab0
----
117
128
182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4029
SELECT - CAST( - col2 AS SIGNED ) col0 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4029
SELECT - CAST ( - col2 AS INTEGER ) col0 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 + col2 col1 FROM tab1 cor0
----
-4
-7
35

query I rowsort
SELECT ALL + 96 + + col1 * col0 FROM tab0
----
2160
3491
8195

query I rowsort
SELECT ALL - ( - col0 ) * col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + col2 * col0 * col1 + + ( - col0 ) * col2 * - 88 AS col1 FROM tab1 cor0
----
18468
357504
775680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4034
SELECT 35 DIV + col0 AS col1 FROM tab1
----
0
0
11

skipif mysql # not compatible
query I rowsort label-4034
SELECT 35 / + col0 AS col1 FROM tab1
----
0
0
11

query I rowsort
SELECT - - col2 * col0 + col1 * cor0.col0 AS col0 FROM tab0 cor0
----
15397
2856
3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col0 + - col1 ) col2 FROM tab2 cor0
----
-17
141
97

query I rowsort
SELECT + + col0 * + col0 - - col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + col0 * - ( col0 ) + + cor0.col1 * + 74 * - 81 AS col2 FROM tab1 AS cor0
----
-155853
-64036
-84322

onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT + - col0 DIV col2 + + col2 * + cor0.col2 + - 24 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-175104
-84304
-972

skipif mysql # not compatible
query I rowsort label-4039
SELECT + - col0 / col2 + + col2 * + cor0.col2 + - 24 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-175104
-84304
-972

query I rowsort
SELECT + col1 + ( col1 * col2 ) + col2 FROM tab1 cor0
----
1357
1484
637

query I rowsort
SELECT - col0 + col0 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - + col1 + + col2 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL + ( 94 ) + col1 AS col1 FROM tab1 AS cor0
----
104
107
120

query I rowsort
SELECT ALL 90 + + tab2.col1 AS col2 FROM tab2
----
107
121
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( + col2 * + col0 ) + col0 * col2 col0 FROM tab1
----
15440
327
7360

query I rowsort
SELECT + 50 + 43 * - col1 * - cor0.col2 FROM tab0 AS cor0
----
122084
320916
4221

query I rowsort
SELECT - col0 + cor0.col2 * + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
213
3641
7696

query I rowsort
SELECT - ( col2 ) * col1 * + col1 AS col0 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT + col0 * - cor0.col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + - col1 col0 FROM tab0 AS cor0
----
-77
-82
-88

query I rowsort
SELECT DISTINCT + - 12 + + col2 FROM tab2 AS cor0
----
14
15
26

query I rowsort
SELECT + ( ( col2 ) ) * col2 * col1 AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT ( + 37 ) * + tab2.col0 + + col1 + - col0 FROM tab2
----
283
2861
2867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 - + col1 col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT tab1.col0 + col0 * - col2 * col1 AS col0 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT DISTINCT + 97 + + col1 * - tab1.col2 FROM tab1
----
-1151
-1307
-473

query I rowsort
SELECT DISTINCT 41 + - 98 FROM tab2
----
-57

query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 + - col0 * - col2 FROM tab1
----
0

query I rowsort
SELECT - cor0.col1 - - 2 * col2 FROM tab1 AS cor0
----
104
179
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4060
SELECT DISTINCT + - col1 DIV - 82 + + 31 * - col2 AS col1 FROM tab0 AS cor0
----
-1022
-2541
-30

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT + - col1 / - 82 + + 31 * - col2 AS col1 FROM tab0 AS cor0
----
-1022
-2541
-30

query I rowsort
SELECT ALL - col0 * + ( col0 ) * cor0.col1 - col2 FROM tab2 AS cor0
----
-106135
-1546
-358982

query I rowsort
SELECT - col0 * - col0 + + 87 AS col1 FROM tab1 AS cor0
----
4183
6487
96

query I rowsort
SELECT + - col2 - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + col2 * + ( 14 ) + + col1 AS col1 FROM tab2 AS cor0
----
409
423
549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - col2 * + ( - col0 ) + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + - col0 * + col0 * col0 FROM tab0 AS cor0
----
-15888
-46270
-713068

onlyif mysql # use DIV operator for integer division
query I rowsort label-4068
SELECT DISTINCT col2 + ( 24 + + col2 ) DIV col0 FROM tab2 AS cor0
----
26
34
38

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT col2 + ( 24 + + col2 ) / col0 FROM tab2 AS cor0
----
26
34
38

query I rowsort
SELECT ALL + col1 * - ( col0 + col2 ) AS col1 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT ALL - col2 + cor0.col1 * - col1 AS col2 FROM tab1 cor0
----
-157
-265
-730

query I rowsort
SELECT ALL col1 * + 37 - col0 * col1 * - col0 FROM tab2
----
106726
2666
361139

onlyif mysql # use DIV operator for integer division
query I rowsort label-4072
SELECT ALL col1 * tab0.col2 DIV 82 - + col1 FROM tab0
----
-52
-96
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL col1 * tab0.col2 / 82 - + col1 FROM tab0
----
-52
-96
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT - + col1 * cor0.col1 DIV + 63 + col0 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
1076
18891
649391

skipif mysql # not compatible
query I rowsort label-4073
SELECT - + col1 * cor0.col1 / + 63 + col0 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
1076
18891
649391

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4074
SELECT - CAST( NULL AS SIGNED ) + + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4074
SELECT - CAST ( NULL AS INTEGER ) + + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT col2 DIV 71 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4075
SELECT col2 / 71 AS col0 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col2 * col2 col2 FROM tab0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT DISTINCT tab0.col0 DIV col2 - col0 DIV tab0.col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT tab0.col0 / col2 - col0 / tab0.col1 FROM tab0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT ALL - col0 * + tab2.col1 + + col0 DIV + col1 + col2 AS col1 FROM tab2
----
-1301
-190
-4575

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - col0 * + tab2.col1 + + col0 / + col1 + col2 AS col1 FROM tab2
----
-1301
-190
-4575

query I rowsort
SELECT col2 * col0 + - col2 + - col2 AS col0 FROM tab0
----
33
7134
726

query I rowsort
SELECT col1 + tab1.col0 - col2 AS col2 FROM tab1
----
-25
-3
17

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col1 AS col1 FROM tab0
----
-706
-7207
62

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= ( col1 * - col2 + - col0 ) AND NOT NULL NOT IN ( col0 + - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT + col0 + col2 DIV - col2 AS col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4083
SELECT + col0 + col2 / - col2 AS col2 FROM tab0
----
23
34
88

query I rowsort
SELECT col0 * - col0 * + col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + tab0.col2 * col2 * - tab0.col2 + + col2 FROM tab0
----
-35904
-551286
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT DISTINCT - col1 * - col2 + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT - col1 * - col2 + col0 / - cor0.col0 FROM tab0 AS cor0
----
2837
7461
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT col2 * - col1 + col0 DIV + col1 col1 FROM tab2 cor0
----
-1533
-642
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4087
SELECT col2 * - col1 + col0 / + col1 col1 FROM tab2 cor0
----
-1533
-642
-837

query I rowsort
SELECT cor0.col0 * col0 + - col1 * cor0.col2 FROM tab2 cor0
----
-788
4550
5595

query I rowsort
SELECT ALL col0 * col2 + + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col2 + cor0.col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT - - col1 * col2 + col0 * - col1 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT DISTINCT col1 + cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-4093
SELECT ALL - col2 * col2 DIV col0 AS col2 FROM tab0
----
-45
-75
0

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - col2 * col2 / col0 AS col2 FROM tab0
----
-45
-75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + col2 col2 FROM tab1
----
128
86
89

query I rowsort
SELECT col1 * - col1 * + col2 AS col2 FROM tab2 cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT ALL - ( - col1 ) DIV col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - ( - col1 ) / col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT 1 * - col1 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col2 * - col1 + col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-4100
SELECT DISTINCT 56 DIV col2 FROM tab0
----
0
1
56

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT 56 / col2 FROM tab0
----
0
1
56

query I rowsort
SELECT DISTINCT + - 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

query I rowsort
SELECT + + 94 + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7cada3662d7d6ab022e26625f2d9ba4

query I rowsort
SELECT ALL 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT + 67 * cor0.col2 AS col0 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + 10 + + col2 FROM tab0 cor0
----
11
43
92

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4108
SELECT col0 + CAST( 3 AS SIGNED ) * col0 FROM tab0 AS cor0
----
140
356
96

skipif mysql # not compatible
query I rowsort label-4108
SELECT col0 + CAST ( 3 AS INTEGER ) * col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT col2 * cor0.col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 75 - col0 AS col1 FROM tab2 cor0
----
-153
-154
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT ALL col0 + 88 DIV col1 FROM tab0 cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL col0 + 88 / col1 FROM tab0 cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT - col0 * + col0 DIV col0 + col2 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-4112
SELECT - col0 * + col0 / col0 + col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4113
SELECT ALL + + CAST( col2 AS SIGNED ) + + col1 * + col0 * ( - col2 ) FROM tab2 AS cor0
----
-119626
-50996
-5832

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + + CAST ( col2 AS INTEGER ) + + col1 * + col0 * ( - col2 ) FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT DISTINCT - + 12 * cor0.col0 - - cor0.col0 FROM tab0 AS cor0
----
-264
-385
-979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + 52 AS col0 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT + col2 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-4118
SELECT col2 + cor0.col2 DIV + col1 + + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-4118
SELECT col2 + cor0.col2 / + col1 + + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col2 + cor0.col0 * 7 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
14481
23766
56775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4120
SELECT DISTINCT - ( ( + col0 ) ) + CAST( col0 * - col1 AS SIGNED ) FROM tab2
----
-1422
-224
-4680

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - ( ( + col0 ) ) + CAST ( col0 * - col1 AS INTEGER ) FROM tab2
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT ALL - col0 + col1 DIV + col1 + col2 col2 FROM tab2
----
-40
-51
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - col0 + col1 / + col1 + col2 col2 FROM tab2
----
-40
-51
21

query I rowsort
SELECT + ( + 4 ) FROM tab0
----
4
4
4

query I rowsort
SELECT DISTINCT 91 * 95 + + col0 FROM tab1
----
8648
8709
8725

query I rowsort
SELECT - 92 * - 11 FROM tab0
----
1012
1012
1012

onlyif mysql # use DIV operator for integer division
query I rowsort label-4125
SELECT 17 DIV 78 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4125
SELECT 17 / 78 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - - 3 + cor0.col2 FROM tab0 AS cor0
----
36
4
85

query I rowsort
SELECT - - cor0.col0 - + cor0.col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4128
SELECT ALL - - ( cor0.col1 ) * + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - - ( cor0.col1 ) * + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 67 + + col2 AS col1 FROM tab1 AS cor0
----
121
124
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 85 + + col1 * col2 + - 62 col0 FROM tab2 AS cor0
----
2029
3410
6487

query I rowsort
SELECT + 4 * + tab0.col2 FROM tab0
----
132
328
4

query I rowsort
SELECT ALL 12 * col2 + + col2 * 14 - - col0 AS col0 FROM tab1
----
1407
1546
2576

query I rowsort
SELECT DISTINCT col2 * col1 + + 43 - - 29 FROM tab2
----
1606
718
909

query I rowsort
SELECT DISTINCT col2 * + col2 * + tab0.col2 + 77 * col2 - + tab0.col2 FROM tab0
----
38445
557600
77

query I rowsort
SELECT - 76 + col0 + col0 AS col0 FROM tab2
----
-62
80
82

query I rowsort
SELECT - 41 + col1 FROM tab2 cor0
----
-10
-24
18

query I rowsort
SELECT ALL + tab1.col2 * + tab1.col2 AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT 77 + - tab0.col0 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to fd9c41ba7c67701f8cf3c7a1461d5a6e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 8 col2 FROM tab1 AS cor0
----
-18
-2
-5

query I rowsort
SELECT - 30 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT DISTINCT 38 FROM tab0, tab2 cor0
----
38

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) AS col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4143
SELECT CAST( NULL AS DECIMAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT CAST ( NULL AS REAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col1 FROM tab1, tab2 cor0, tab0, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT ( + cor0.col0 ) + + cor0.col1 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 + + 61 * - tab0.col2 FROM tab0
----
-2037
-5091
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT + col0 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4148
SELECT + col0 / - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * - 85 AS col1 FROM tab1
----
-1105
-2210
-850

query I rowsort
SELECT col2 + 67 FROM tab0
----
100
149
68

query I rowsort
SELECT ALL + col0 + col1 - - 73 FROM tab1
----
102
147
166

query I rowsort
SELECT + tab0.col2 + - ( - col1 ) - - col0 AS col0 FROM tab0
----
133
143
262

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * + CAST ( - 63 AS REAL ) AS col0 FROM tab1 cor0
----
-189
-4032
-5040

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT - col2 * - 78 - 14 DIV - col2 AS col1 FROM tab1 AS cor0
----
4212
4446
7488

skipif mysql # not compatible
query I rowsort label-4155
SELECT - col2 * - 78 - 14 / - col2 AS col1 FROM tab1 AS cor0
----
4212
4446
7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * cor0.col1 col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL - ( - 71 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT - 19 + + col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
150
657
81

query I rowsort
SELECT DISTINCT - 1 * - col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + 79 * col2 + col0 FROM tab0 AS cor0
----
114
2631
6567

query I rowsort
SELECT ALL 7 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
-1183
-4732
-700

onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT ALL + CAST( - 81 AS SIGNED ) + + col1 DIV ( col0 ) FROM tab1 AS cor0
----
-73
-81
-81

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + CAST ( - 81 AS INTEGER ) + + col1 / ( col0 ) FROM tab1 AS cor0
----
-73
-81
-81

query I rowsort
SELECT 19 * col0 FROM tab2 cor0
----
133
1482
1501

query I rowsort
SELECT ( + col0 ) * - col0 + - ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - col0 * - 23 * + col0 + col2 FROM tab1 AS cor0
----
147296
261
94265

query I rowsort
SELECT 14 * + ( col0 + - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-28
-868
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4167
SELECT DISTINCT CAST( 40 AS SIGNED ) * col1 * - cor0.col0 + - 18 AS col2 FROM tab0 AS cor0
----
-135818
-323978
-82578

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT CAST ( 40 AS INTEGER ) * col1 * - cor0.col0 + - 18 AS col2 FROM tab0 AS cor0
----
-135818
-323978
-82578

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4168
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4168
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 12 * + col1 AS col0 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT ALL cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - 38 + - col0 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-100
-14
-57

query I rowsort
SELECT ALL - - 88 * - col2 AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT - + col0 * cor0.col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + col0 * col0 + col0 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * ( + col2 ) col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT col2 * col1 + 66 + col0 AS col0 FROM tab2 AS cor0
----
1678
791
910

query I rowsort
SELECT ALL + col1 * 97 - col1 FROM tab0 AS cor0
----
8256
8736
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4179
SELECT DISTINCT col2 DIV ( col1 ) + + cor0.col2 col2 FROM tab1 AS cor0
----
103
56
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT col2 / ( col1 ) + + cor0.col2 col2 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT ALL + cor0.col0 + ( - 0 ) * - cor0.col0 + cor0.col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT ALL - col0 + - CAST( - 94 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
5
59
70

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - col0 + - CAST ( - 94 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
5
59
70

query I rowsort
SELECT ALL - + col1 + ( col2 + - col2 ) * 30 * col0 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4183
SELECT DISTINCT + - cor0.col0 * - CAST( NULL AS DECIMAL ) * - 53 + - col2 + 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-4183
SELECT DISTINCT + - cor0.col0 * - CAST ( NULL AS REAL ) * - 53 + - col2 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 34 * tab2.col1 FROM tab2
----
1054
2006
578

query I rowsort
SELECT ALL col1 + 2 AS col1 FROM tab1 AS cor0
----
12
15
28

query I rowsort
SELECT cor0.col2 * + 97 AS col1 FROM tab1 AS cor0
----
5238
5529
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT ALL + col0 + cor0.col2 DIV - col0 + - col2 FROM tab2 AS cor0
----
-23
41
52

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + col0 + cor0.col2 / - col0 + - col2 FROM tab2 AS cor0
----
-23
41
52

query I rowsort
SELECT ALL - col1 * + tab0.col0 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 + - col1 * ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - cor0.col0 col2 FROM tab1 cor0
----
-4096
-6400
-9

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT col1 DIV col0 + ( col2 ) * col0 * + col2 AS col2 FROM tab2
----
114076
5107
52728

skipif mysql # not compatible
query I rowsort label-4192
SELECT col1 / col0 + ( col2 ) * col0 * + col2 AS col2 FROM tab2
----
114076
5107
52728

query I rowsort
SELECT ALL - 68 FROM tab0 cor0
----
-68
-68
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4194
SELECT + ( col1 ) * CAST( - col2 AS SIGNED ) * col1 + col2 AS col2 FROM tab1
----
-16128
-36450
-5643

skipif mysql # not compatible
query I rowsort label-4194
SELECT + ( col1 ) * CAST ( - col2 AS INTEGER ) * col1 + col2 AS col2 FROM tab1
----
-16128
-36450
-5643

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4195
SELECT + 98 + - col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT + 98 + - col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - tab1.col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - + 97 * cor0.col0 FROM tab2 AS cor0
----
-679
-7566
-7663

query I rowsort
SELECT ALL ( + cor0.col2 ) + + cor0.col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col0 * - col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT 17 + + col1 FROM tab2 AS cor0
----
34
48
76

query I rowsort
SELECT DISTINCT - ( - col1 ) + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col2 ) col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ( - 64 ) * col2 * col0 + col1 FROM tab0 AS cor0
----
-2143
-466981
-50602

query I rowsort
SELECT - ( - col1 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + 22 + col2 * col0 AS col1 FROM tab0 AS cor0
----
57
7320
814

query I rowsort
SELECT - - ( + col1 ) * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * 16 AS col2 FROM tab1
----
1024
1280
48

query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
56

query I rowsort
SELECT - col1 + + ( col2 ) FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT tab1.col2 * 41 + + col2 * tab1.col0 FROM tab1
----
11616
2376
5985

onlyif mysql # use DIV operator for integer division
query I rowsort label-4212
SELECT DISTINCT col0 + ( - 35 ) DIV col0 FROM tab1
----
-8
64
80

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT col0 + ( - 35 ) / col0 FROM tab1
----
-8
64
80

query I rowsort
SELECT ALL - ( - col2 * col1 + col1 ) FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT col1 * 80 FROM tab1
----
1040
2080
800

query I rowsort
SELECT col0 * + col2 + 91 * + col2 AS col2 FROM tab2
----
2646
4394
6460

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4216
SELECT + CAST( 42 AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif mysql # not compatible
query I rowsort label-4216
SELECT + CAST ( 42 AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT - - 68 + col0 AS col1 FROM tab2 AS cor0
----
146
147
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT DISTINCT + col2 + col1 DIV cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + col2 + col1 / cor0.col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT + col1 * + col0 - col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
2061
3393
8098

skipif mysql # not compatible
query I rowsort label-4219
SELECT + col1 * + col0 - col1 / + col0 AS col2 FROM tab0 AS cor0
----
2061
3393
8098

query I rowsort
SELECT + + cor0.col2 * - col2 + - cor0.col1 FROM tab2 AS cor0
----
-1461
-735
-760

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

query I rowsort
SELECT - col1 * 42 + col0 FROM tab2 AS cor0
----
-1295
-2400
-635

query I rowsort
SELECT + col1 * 23 - col0 FROM tab2
----
1279
312
706

query I rowsort
SELECT cor0.col2 * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4225
SELECT col2 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-4225
SELECT col2 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT col1 * ( + col1 + col0 ) DIV - 3 FROM tab1 AS cor0
----
-246
-251
-403

skipif mysql # not compatible
query I rowsort label-4226
SELECT col1 * ( + col1 + col0 ) / - 3 FROM tab1 AS cor0
----
-246
-251
-403

query I rowsort
SELECT ALL 15 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + - col2 + - 35 * + col2 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT + col2 + col2 - col1 * - 57 AS col0 FROM tab0 AS cor0
----
4968
5351
5531

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4230
SELECT + CAST( NULL AS SIGNED ) + col1 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT + CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4231
SELECT DISTINCT cor0.col2 DIV + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT cor0.col2 / + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
2
5
7

query I rowsort
SELECT col0 + + col1 - - col0 AS col1 FROM tab2 AS cor0
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT - col1 + + col1 DIV col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4233
SELECT - col1 + + col1 / col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL + 69 AS col0 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT - ( + 44 ) AS col2 FROM tab1
----
-44
-44
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT DISTINCT - col0 + + col0 DIV col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - col0 + + col0 / col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + ( - col2 ) * 77 + ( col2 ) FROM tab1 AS cor0
----
-4104
-4332
-7296

query I rowsort
SELECT ALL + ( - cor0.col0 ) * - 75 + + col2 AS col1 FROM tab0 AS cor0
----
1833
2626
6757

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT + 16 + col2 + - ( ( col1 ) + + col1 ) AS col0 FROM tab0
----
-123
-177
-84

query I rowsort
SELECT DISTINCT col1 - col1 * col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT col1 + tab1.col1 + col0 AS col1 FROM tab1
----
106
55
84

query I rowsort
SELECT - tab0.col0 + col2 * col2 + + col0 FROM tab0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4245
SELECT DISTINCT col2 + + col1 * - CAST( col2 AS SIGNED ) FROM tab1
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT col2 + + col1 * - CAST ( col2 AS INTEGER ) FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT ALL + - col1 + - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + - col1 + - cor0.col1 / col2 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT ALL - - 17 AS col1 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + - cor0.col0 * - col1 * col2 + col1 AS col0 FROM tab1 AS cor0
----
36490
4238
99853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4249
SELECT DISTINCT col1 + col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT col1 + col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - tab0.col0 * + col2 + 8 + + col1 * col2 FROM tab0
----
172
2054
70

query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + - cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4253
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4254
SELECT col1 * CAST( + ( col1 ) AS SIGNED ) + 19 FROM tab2
----
308
3500
980

skipif mysql # not compatible
query I rowsort label-4254
SELECT col1 * CAST ( + ( col1 ) AS INTEGER ) + 19 FROM tab2
----
308
3500
980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT ALL col1 * + tab2.col1 + 72 * col0 * CAST( 46 AS SIGNED ) AS col1 FROM tab2
----
24145
261817
261937

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL col1 * + tab2.col1 + 72 * col0 * CAST ( 46 AS INTEGER ) AS col1 FROM tab2
----
24145
261817
261937

query I rowsort
SELECT + 93 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col1 - 98 FROM tab2 AS cor0
----
-119
-65
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT DISTINCT + + ( + cor0.col1 ) * col2 - + CAST( ( col0 ) AS SIGNED ) DIV + 55 FROM tab0 AS cor0
----
2838
7461
97

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT + + ( + cor0.col1 ) * col2 - + CAST ( ( col0 ) AS INTEGER ) / + 55 FROM tab0 AS cor0
----
2838
7461
97

query I rowsort
SELECT DISTINCT + - 46 * - col0 AS col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT ALL 93 AS col2 FROM tab2 cor0
----
93
93
93

query I rowsort
SELECT ALL + 5 * + col0 AS col0 FROM tab2 cor0
----
35
390
395

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT ALL - col2 + col1 + - cor0.col2 DIV - col1 FROM tab2 AS cor0
----
-19
33
4

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - col2 + col1 + - cor0.col2 / - col1 FROM tab2 AS cor0
----
-19
33
4

query I rowsort
SELECT DISTINCT - 14 + + col0 * - col0 * - ( col1 + - col0 ) AS col1 FROM tab0 AS cor0
----
15828
35698
75936

query I rowsort
SELECT ALL + - cor0.col2 + 98 FROM tab2 AS cor0
----
60
71
72

query I rowsort
SELECT col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * - 38 col2 FROM tab0 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 + - cor0.col0 * col0 col2 FROM tab1 AS cor0
----
-4084
-6388
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4269
SELECT - CAST( col0 + col2 AS SIGNED ) * 62 AS col1 FROM tab2
----
-2108
-6448
-7254

skipif mysql # not compatible
query I rowsort label-4269
SELECT - CAST ( col0 + col2 AS INTEGER ) * 62 AS col1 FROM tab2
----
-2108
-6448
-7254

query I rowsort
SELECT + ( tab1.col2 ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab0, tab1 cor0
----
-33

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL + col2 * + col2 + - col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL - ( + 15 ) * + col0 + + 78 + + cor0.col0 FROM tab0 AS cor0
----
-1168
-258
-412

query I rowsort
SELECT 21 * - 74 * - col1 AS col0 FROM tab0 AS cor0
----
133644
141414
150738

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
28
47
83

query I rowsort
SELECT ( - 56 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1456
-560
-728

query I rowsort
SELECT 23 + col2 * ( - col0 ) FROM tab2 AS cor0
----
-166
-2005
-2979

query I rowsort
SELECT - col1 + col1 * 32 * - col2 AS col0 FROM tab2 AS cor0
----
-20689
-26815
-49147

query I rowsort
SELECT ALL + col1 * col0 + ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT + ( - col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT ALL + col1 + + cor0.col1 DIV - 87 - + col2 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + col1 + + cor0.col1 / - 87 - + col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col0 * cor0.col2 * - 38 AS col1 FROM tab2 AS cor0
----
-114076
-7182
-77064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + cor0.col2 * 45 * - col2 col1 FROM tab1 AS cor0
----
-131207
-146192
-414707

onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT ALL - 8 DIV + tab2.col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL - 8 / + tab2.col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT - ( - 21 ) FROM tab2
----
21
21
21

query I rowsort
SELECT ALL + - col2 * 64 FROM tab1 AS cor0
----
-3456
-3648
-6144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + ( + ( + col1 ) ) + 53 col2 FROM tab1 AS cor0
----
1301
1457
623

query I rowsort
SELECT DISTINCT + - col2 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL col1 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col1 + 22 AS col0 FROM tab0 cor0
----
108
113
119

query I rowsort
SELECT - + cor0.col2 + ( col0 ) FROM tab1 cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4293
SELECT DISTINCT - col0 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - col0 / + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - cor0.col1 * - 75 * col0 FROM tab0 AS cor0
----
-154800
-254625
-607425

query I rowsort
SELECT ALL + col1 * - ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + ( - cor0.col0 ) col1 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT ALL + cor0.col1 + 3 DIV + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + cor0.col1 + 3 / + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - cor0.col1 + col0 * + cor0.col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT cor0.col0 * - 46 * 63 + + col0 * col2 FROM tab1 AS cor0
----
-181824
-224160
-8532

query I rowsort
SELECT ALL + - col0 * - col2 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 * + 16 col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
304

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - cor0.col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + - cor0.col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + + col1 * col1 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT + cor0.col2 - + col1 * 23 AS col1 FROM tab0 AS cor0
----
-1945
-2011
-2230

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT - + col1 DIV col0 + - col0 - - 87 FROM tab1 AS cor0
----
23
7
76

skipif mysql # not compatible
query I rowsort label-4307
SELECT - + col1 / col0 + - col0 - - 87 FROM tab1 AS cor0
----
23
7
76

query I rowsort
SELECT col0 * col2 * + col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + col1 * - 15 FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT + 51 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT 86 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 52 ) col2 FROM tab0
----
-52
-52
-52

query I rowsort
SELECT ( - tab1.col2 * col0 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - 43 * + col2 + col2 FROM tab2
----
-1092
-1134
-1596

query I rowsort
SELECT ( - col0 * - col0 ) FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL ( + col2 ) + col2 FROM tab2 cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col1 ) col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + ( - col1 + col0 ) * - col1 FROM tab2
----
-1054
-1121
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 - + col0 col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT col2 + col1 * tab1.col1 FROM tab1
----
157
265
730

query I rowsort
SELECT + col1 + col1 * - tab0.col1 AS col0 FROM tab0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT + tab1.col2 * col0 + col0 DIV - col2 FROM tab1
----
162
3647
7680

skipif mysql # not compatible
query I rowsort label-4323
SELECT + tab1.col2 * col0 + col0 / - col2 FROM tab1
----
162
3647
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4324
SELECT col0 DIV - col1 + - 81 FROM tab2
----
-81
-82
-85

skipif mysql # not compatible
query I rowsort label-4324
SELECT col0 / - col1 + - 81 FROM tab2
----
-81
-82
-85

query I rowsort
SELECT DISTINCT - ( + col1 ) + - 19 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-3622
-38591
-57055

query I rowsort
SELECT col0 * 54 AS col1 FROM tab2
----
378
4212
4266

query I rowsort
SELECT ALL col2 * - col2 * col1 AS col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - 2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ( 90 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - col2 * 87 FROM tab0
----
-2871
-7134
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT - - col2 + + col1 DIV + col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4331
SELECT - - col2 + + col1 / + col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - 12 + col0 * col2 AS col1 FROM tab2 AS cor0
----
177
2016
2990

query I rowsort
SELECT + col2 * - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-4334
SELECT - col2 + col1 * col1 DIV col2 FROM tab0 cor0
----
18
191
9408

skipif mysql # not compatible
query I rowsort label-4334
SELECT - col2 + col1 * col1 / col2 FROM tab0 cor0
----
18
191
9408

query I rowsort
SELECT + 87 * col2 + + col0 + + col2 AS col2 FROM tab2 AS cor0
----
2366
2383
3423

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4336
SELECT CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-4336
SELECT CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 90 * ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-2340
-2430
-3420

onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT ALL - + 72 + - col1 DIV col1 FROM tab2 cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - + 72 + - col1 / col1 FROM tab2 cor0
----
-73
-73
-73

query I rowsort
SELECT + col2 + col2 * - col2 FROM tab1 cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col2 * 49 * - col0 FROM tab2 AS cor0
----
-144096
-9072
-97344

query I rowsort
SELECT DISTINCT + col2 * - col0 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-4342
SELECT ALL col2 DIV - ( + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL col2 / - ( + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * col1 + 26 FROM tab0 AS cor0
----
2090
3421
8125

query I rowsort
SELECT DISTINCT + col2 * 86 * + 45 AS col0 FROM tab0 cor0
----
127710
317340
3870

onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT DISTINCT - col1 DIV 76 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - col1 / 76 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT DISTINCT cor0.col1 DIV tab1.col1 FROM tab1, tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT cor0.col1 / tab1.col1 FROM tab1, tab1 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab1 cor0
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4349
SELECT ALL + col2 + + 42 DIV - 95 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + col2 + + 42 / - 95 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col1 * + 1 * + col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT + 49 * tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT DISTINCT - - col1 + - col2 * ( + col0 ) FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - cor0.col2 * - col0 + - ( col1 ) - col0 AS col2 FROM tab1 cor0
----
133
3574
7587

query I rowsort
SELECT + + col0 + + col0 * + 96 AS col0 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT 49 + + col2 AS col0 FROM tab0 AS cor0
----
131
50
82

query I rowsort
SELECT DISTINCT - 70 * - col2 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
2107
4003
6422

query I rowsort
SELECT DISTINCT - 98 + col2 * + 35 FROM tab0 AS cor0
----
-63
1057
2772

query I rowsort
SELECT DISTINCT - col2 + + col2 + tab0.col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 + - 77 * col1 FROM tab2
----
-1292
-2356
-4484

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT - col0 DIV - 89 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4360
SELECT - col0 / - 89 FROM tab0
----
0
0
1

query I rowsort
SELECT + col1 * 41 AS col1 FROM tab0
----
3526
3731
3977

query I rowsort
SELECT ALL ( - col1 ) - + tab0.col0 AS col2 FROM tab0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4363
SELECT - 71 * col0 * CAST( 11 AS SIGNED ) + col2 + tab2.col2 FROM tab2
----
-5413
-60866
-61623

skipif mysql # not compatible
query I rowsort label-4363
SELECT - 71 * col0 * CAST ( 11 AS INTEGER ) + col2 + tab2.col2 FROM tab2
----
-5413
-60866
-61623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + col1 col0 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT + 25 + - col1 * col2 FROM tab2 AS cor0
----
-1509
-621
-812

query I rowsort
SELECT ALL + - 45 * col2 AS col1 FROM tab0 cor0
----
-1485
-3690
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 35 col1 FROM tab1 AS cor0
----
35

query I rowsort
SELECT - col0 * col0 * col0 + + col1 FROM tab0 AS cor0
----
-13738
-42778
-704878

query I rowsort
SELECT - + 76 + col0 AS col0 FROM tab2 AS cor0
----
-69
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 12 * col0 * 41 col1 FROM tab1 AS cor0
----
1476
31488
39360

onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT ALL col0 + col1 DIV 1 AS col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL col0 + col1 / 1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 74 + - col2 FROM tab0 AS cor0
----
-107
-156
-75

query I rowsort
SELECT col1 * col1 + col0 * col1 * + tab0.col2 + + ( + col0 ) FROM tab0
----
12839
672488
75532

query I rowsort
SELECT ALL 13 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT - col1 * col1 + - ( - col1 + col1 ) * tab2.col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + 36 * col1 + col1 * col0 * - col0 + - col0 * col0 FROM tab1
----
-44696
-89132
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT + col2 DIV cor0.col0 + - 20 + col2 AS col1 FROM tab1 AS cor0
----
37
52
77

skipif mysql # not compatible
query I rowsort label-4377
SELECT + col2 / cor0.col0 + - 20 + col2 AS col1 FROM tab1 AS cor0
----
37
52
77

query I rowsort
SELECT - 70 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 89ff5230e23ab3602a9d24024ac62c91

query I rowsort
SELECT - - 4 * col2 + col1 AS col0 FROM tab1 AS cor0
----
238
242
397

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT + col0 * col2 - - col0 DIV + col2 FROM tab1 AS cor0
----
162
3649
7680

skipif mysql # not compatible
query I rowsort label-4380
SELECT + col0 * col2 - - col0 / + col2 FROM tab1 AS cor0
----
162
3649
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT ALL - col2 + col0 DIV 91 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - col2 + col0 / 91 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT + col0 DIV - col0 + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4382
SELECT + col0 / - col0 + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT DISTINCT col2 * + 20 FROM tab2 AS cor0
----
520
540
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4384
SELECT DISTINCT + col2 DIV - CAST( + col1 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + col2 / - CAST ( + col1 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-19
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 * - 74 col1 FROM tab2 AS cor0
----
-113516
-47804
-61938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + 65 * 38 + col2 col0 FROM tab0 cor0
----
2506
2527
2641

query I rowsort
SELECT + col2 + + 18 * 48 FROM tab2 AS cor0
----
890
891
902

query I rowsort
SELECT col0 + + 32 FROM tab1 AS cor0
----
112
35
96

query I rowsort
SELECT ALL - - col1 + + 40 AS col1 FROM tab2 AS cor0
----
57
71
99

query I rowsort
SELECT + - col2 * - 48 AS col2 FROM tab1 cor0
----
2592
2736
4608

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) * col0 AS col2 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT - - col1 + col1 AS col1 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT ALL - + col1 + + col1 * col2 DIV - 18 FROM tab2 cor0
----
-144
-52
-77

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - + col1 + + col1 * col2 / - 18 FROM tab2 cor0
----
-144
-52
-77

query I rowsort
SELECT DISTINCT ( 85 ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - cor0.col1 * ( col0 + col2 ) FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT - col2 * 98 FROM tab1 AS cor0
----
-5292
-5586
-9408

query I rowsort
SELECT DISTINCT col1 + 10 * - col1 AS col0 FROM tab1 AS cor0
----
-117
-234
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4399
SELECT + 23 + - 76 DIV col1 FROM tab1 AS cor0
----
16
18
21

skipif mysql # not compatible
query I rowsort label-4399
SELECT + 23 + - 76 / col1 FROM tab1 AS cor0
----
16
18
21

query I rowsort
SELECT ALL - ( - cor0.col2 ) * - col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT 93 + + col2 FROM tab1 cor0
----
147
150
189

query I rowsort
SELECT DISTINCT - 62 * 2 + - col0 * 77 + cor0.col0 * - col1 * + col1 FROM tab0 AS cor0
----
-179476
-332134
-743986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 20 * 1 col1 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL - + col1 + + cor0.col2 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4405
SELECT DISTINCT - 69 + col2 DIV + col2 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - 69 + col2 / + col2 FROM tab1 AS cor0
----
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4406
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 + + col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * + col1 + + 89 col0 FROM tab0 cor0
----
-2749
-7373
-8

query I rowsort
SELECT 74 * - 6 FROM tab2, tab0 AS cor0
----
9 values hashing to bb916be185f9db938c15298d10a46ca4

query I rowsort
SELECT ALL - 69 * col2 FROM tab2 cor0
----
-1794
-1863
-2622

query I rowsort
SELECT ALL + - ( + col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 90 * + col2 col2 FROM tab2 AS cor0
----
2340
2430
3420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 - col1 col2 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4413
SELECT ALL - + col0 + col0 DIV + col0 AS col1 FROM tab1 cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - + col0 + col0 / + col0 AS col1 FROM tab1 cor0
----
-2
-63
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT DISTINCT CAST( - col1 * + col1 AS SIGNED ) AS col2 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT CAST ( - col1 * + col1 AS INTEGER ) AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 25 * col2 AS col0 FROM tab2
----
650
675
950

query I rowsort
SELECT 65 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT ( - col2 ) * + col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - - 29 + + col0 FROM tab2 AS cor0
----
107
108
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4419
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 89 AS col0 FROM tab0 AS cor0
----
0
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab1.col0 col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - ( + col0 ) + col1 * - 91 AS col0 FROM tab2 AS cor0
----
-1626
-2828
-5447

query I rowsort
SELECT ALL 99 + + tab2.col0 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to e3971a26b18b049f8b19b6f9d30b901d

query I rowsort
SELECT - 82 + - col0 AS col1 FROM tab2 AS cor0
----
-160
-161
-89

query I rowsort
SELECT cor0.col0 + col2 + ( col1 ) * + 86 AS col0 FROM tab1 cor0
----
1294
2293
981

query I rowsort
SELECT + + col2 * + col1 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + 44 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + col2 * 47 AS col0 FROM tab2
----
1222
1269
1786

query I rowsort
SELECT - - col0 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - cor0.col1 * 48 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT + 79 * 0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT DISTINCT + col2 * col2 + col0 DIV col2 FROM tab1 AS cor0
----
2916
3250
9216

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + col2 * col2 + col0 / col2 FROM tab1 AS cor0
----
2916
3250
9216

query I rowsort
SELECT DISTINCT - 24 + - cor0.col0 + + col2 * + ( + col0 ) FROM tab2 AS cor0
----
158
1926
2899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4434
SELECT - CAST( NULL AS DECIMAL ) + 19 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT - CAST ( NULL AS REAL ) + 19 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + - col2 * col0 + cor0.col1 * + 20 FROM tab0 cor0
----
-5567
1870
904

query I rowsort
SELECT col1 + col2 * col1 * + col2 FROM tab1 cor0
----
119821
32500
75842

query I rowsort
SELECT 95 * col1 + col1 + + 72 FROM tab0 AS cor0
----
8328
8808
9384

query I rowsort
SELECT ALL - col0 * + cor0.col1 + + col0 * 94 FROM tab1 AS cor0
----
204
5376
6480

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + - cor0.col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL col0 + ( col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 * col2 * col0 col0 FROM tab2
----
15876
170352
252168

query I rowsort
SELECT - col2 + col2 * col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ( + col1 * - col0 ) FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4444
SELECT DISTINCT + col2 + - col2 + + col0 DIV col1 col2 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + col2 + - col2 + + col0 / col1 col2 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT tab0.col0 DIV col0 - + col1 col0 FROM tab0
----
-85
-90
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4445
SELECT tab0.col0 / col0 - + col1 col0 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT + cor0.col1 * ( + cor0.col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT 35 + - 53 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL + tab1.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT tab2.col2 + + tab2.col0 * tab2.col2 * col1 AS col0 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT col0 * + 10 - + col1 * col2 * - 29 FROM tab1
----
17170
36992
40746

query I rowsort
SELECT ALL - col0 * col1 - + col2 FROM tab1
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-4452
SELECT - col2 * 6 + + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-197
-492
-6

skipif mysql # not compatible
query I rowsort label-4452
SELECT - col2 * 6 + + col2 / + col0 AS col2 FROM tab0 AS cor0
----
-197
-492
-6

query I rowsort
SELECT DISTINCT 35 * tab1.col1 FROM tab1
----
350
455
910

query I rowsort
SELECT - 88 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT + tab2.col1 + col0 DIV col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-4455
SELECT + tab2.col1 + col0 / col1 FROM tab2
----
21
31
60

query I rowsort
SELECT ALL 42 + + col2 * tab2.col1 * - col1 AS col2 FROM tab2
----
-10940
-25905
-90464

onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT ALL + + 83 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + + 83 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 93 + col0 * col2 FROM tab0 AS cor0
----
-58
699
7205

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT - col2 DIV col1 + 77 FROM tab2 AS cor0
----
75
77
77

skipif mysql # not compatible
query I rowsort label-4459
SELECT - col2 / col1 + 77 FROM tab2 AS cor0
----
75
77
77

query I rowsort
SELECT ALL col2 * + col2 * 44 AS col1 FROM tab0 AS cor0
----
295856
44
47916

query I rowsort
SELECT 82 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1968
2870
7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-4462
SELECT - col0 + col2 DIV cor0.col0 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-4462
SELECT - col0 + col2 / cor0.col0 FROM tab1 AS cor0
----
-64
-79
15

query I rowsort
SELECT ALL + + cor0.col0 * + col0 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4464
SELECT - col2 DIV + col0 - - col2 * + 67 FROM tab0 AS cor0
----
2210
5494
67

skipif mysql # not compatible
query I rowsort label-4464
SELECT - col2 / + col0 - - col2 * + 67 FROM tab0 AS cor0
----
2210
5494
67

query I rowsort
SELECT DISTINCT 56 * col2 + - col0 FROM tab1 AS cor0
----
3021
3128
5296

query I rowsort
SELECT ALL + + col0 * - col2 + + 74 AS col0 FROM tab0 AS cor0
----
-718
-7224
39

query I rowsort
SELECT ALL + + col0 * - 62 AS col2 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT + 70 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT DISTINCT cor0.col0 * 81 FROM tab0 AS cor0
----
1944
2835
7209

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4470
SELECT - CAST( NULL AS SIGNED ) * + col1 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT - CAST ( NULL AS INTEGER ) * + col1 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 23 * col2 FROM tab2 cor0
----
-598
-621
-874

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT 77 DIV tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT 77 / tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + 2 * - col2 + - col1 FROM tab2 AS cor0
----
-111
-85
-93

query I rowsort
SELECT DISTINCT - - 53 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
344
4108
4149

onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT 69 + 2 DIV tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif mysql # not compatible
query I rowsort label-4475
SELECT 69 + 2 / tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT ALL - 77 + cor0.col0 + + 52 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3b202344844d385030ca34883ee5e6ae

query I rowsort
SELECT ALL + col1 + - 68 - - col0 FROM tab2
----
-30
28
69

query I rowsort
SELECT + + col1 + col1 * + ( 49 ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
14178
170628
47120

query I rowsort
SELECT ALL + - cor0.col1 + + col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT - - 49 * col0 * - ( - col0 * + col0 ) - - col1 AS col0 FROM tab2 AS cor0
----
16838
23253107
24158928

query I rowsort
SELECT 15 + col1 + tab1.col2 FROM tab1
----
124
82
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT ALL + col1 DIV + tab2.col1 + + col2 - - tab2.col2 * - col2 FROM tab2
----
-1405
-649
-701

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + col1 / + tab2.col1 + + col2 - - tab2.col2 * - col2 FROM tab2
----
-1405
-649
-701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + col2 + col2 col2 FROM tab1
----
160
166
244

query I rowsort
SELECT 30 - col2 FROM tab1 AS cor0
----
-24
-27
-66

query I rowsort
SELECT - 95 - col0 * ( cor0.col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
-233567
-581
-614495

query I rowsort
SELECT - 37 FROM tab2, tab0 cor0, tab0, tab2 AS cor1
----
81 values hashing to a283a98d14c34636d74b0e0b57633585

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab0, tab1, tab1 AS cor0
----
66

query I rowsort
SELECT ( + col2 ) * 97 FROM tab1
----
5238
5529
9312

query I rowsort
SELECT DISTINCT - col1 * tab0.col0 + col1 AS col2 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4491
SELECT tab1.col0 * col0 DIV - ( + ( + col1 ) ) + + col2 FROM tab1
----
-352
-396
54

skipif mysql # not compatible
query I rowsort label-4491
SELECT tab1.col0 * col0 / - ( + ( + col1 ) ) + + col2 FROM tab1
----
-352
-396
54

query I rowsort
SELECT + 75 * - col1 AS col1 FROM tab1
----
-1950
-750
-975

query I rowsort
SELECT DISTINCT tab0.col0 + + col1 AS col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT 91 DIV col1 - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-48
-51
-89

skipif mysql # not compatible
query I rowsort label-4494
SELECT 91 / col1 - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-48
-51
-89

query I rowsort
SELECT DISTINCT + - col0 * col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT DISTINCT + - cor0.col2 * - col1 - + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + - cor0.col2 * - col1 - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT ALL - col1 * CAST( 90 * + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26010
-313290
-86490

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - col1 * CAST ( 90 * + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26010
-313290
-86490

query I rowsort
SELECT ALL - ( col2 ) + col1 - col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 95 + + 51 FROM tab1 AS cor0
----
146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4500
SELECT DISTINCT CAST( - col1 AS SIGNED ) + - col1 + + CAST( NULL AS SIGNED ) * - col0 * + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + - col1 + + CAST ( NULL AS INTEGER ) * - col0 * + col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + ( col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + 61 * - cor0.col0 FROM tab2 AS cor0
----
-427
-4758
-4819

query I rowsort
SELECT ( col2 ) * + col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL cor0.col2 + - 97 * - col1 AS col0 FROM tab2 AS cor0
----
1687
3034
5749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT DISTINCT - - col1 * - col0 * col2 + + ( 1 ) DIV col2 - col0 AS col1 FROM tab0 AS cor0
----
-3429
-664207
-68136

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - - col1 * - col0 * col2 + + ( 1 ) / col2 - col0 AS col1 FROM tab0 AS cor0
----
-3429
-664207
-68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col0 * + col2 col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - 7 AS col0 FROM tab2
----
-7
-7
-7

query I rowsort
SELECT ALL - - col2 - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT DISTINCT - 73 DIV col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - 73 / col2 AS col1 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT 68 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT - 35 FROM tab0, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT - cor0.col0 * - col2 * 20 AS col2 FROM tab0 AS cor0
----
145960
15840
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 14 col2 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT + cor0.col1 * + 80 + col1 AS col1 FROM tab0 AS cor0
----
6966
7371
7857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4518
SELECT + cor0.col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT + cor0.col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 98 ) + - col0 FROM tab0
----
-122
-133
-187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( cor0.col1 ) + + 43 * + col2 col1 FROM tab2 AS cor0
----
1223
1236
1668

query I rowsort
SELECT + - cor0.col1 - ( col1 ) FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + ( 17 ) + col2 FROM tab2 AS cor0
----
43
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + + 65 + - col2 col2 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT + ( col0 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT 25 + - ( - col1 ) - col0 * + col1 FROM tab1 AS cor0
----
-1002
-27
-605

query I rowsort
SELECT DISTINCT - 74 * col1 AS col1 FROM tab2 cor0
----
-1258
-2294
-4366

query I rowsort
SELECT + + cor0.col0 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + ( col0 ) * + 2 + col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - ( - ( + cor1.col0 ) ) + 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b411c821ed2fc35e5d2a3533ad05627e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT ALL col1 + col1 + - CAST( col0 AS SIGNED ) * col0 AS col0 FROM tab2
----
-5966
-6207
13

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL col1 + col1 + - CAST ( col0 AS INTEGER ) * col0 AS col0 FROM tab2
----
-5966
-6207
13

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 + + 98 FROM tab1 AS cor0
----
1138
176
738

query I rowsort
SELECT DISTINCT col2 + col1 * col1 * + ( + col0 * col1 ) FROM tab1 AS cor0
----
175856
52782
64057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 + + ( - col0 ) col1 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4534
SELECT - col2 - - col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT - col2 - - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4535
SELECT + - 68 DIV col0 FROM tab1 AS cor0
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT + - 68 / col0 FROM tab1 AS cor0
----
-1
-22
0

query I rowsort
SELECT DISTINCT + + col2 * - col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4537
SELECT + + ( col0 ) DIV 4 AS col1 FROM tab1 AS cor0
----
0
16
20

skipif mysql # not compatible
query I rowsort label-4537
SELECT + + ( col0 ) / 4 AS col1 FROM tab1 AS cor0
----
0
16
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-4538
SELECT - col0 - col0 DIV + 69 FROM tab1 AS cor0
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-4538
SELECT - col0 - col0 / + 69 FROM tab1 AS cor0
----
-3
-64
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4539
SELECT DISTINCT + col1 * 31 DIV col1 col0 FROM tab2 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + col1 * 31 / col1 col0 FROM tab2 AS cor0
----
31

query I rowsort
SELECT DISTINCT - 6 * cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT ALL cor0.col2 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT + col1 DIV - col1 + cor0.col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4542
SELECT + col1 / - col1 + cor0.col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT DISTINCT + col0 * col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT - tab0.col1 - + tab0.col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT + cor0.col2 * - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

onlyif mysql # use DIV operator for integer division
query I rowsort label-4547
SELECT - - CAST( - col1 AS SIGNED ) DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4547
SELECT - - CAST ( - col1 AS INTEGER ) / - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 43 + col0 col1 FROM tab0 AS cor0
----
132
67
78

query I rowsort
SELECT + col2 + col0 - - col1 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
11099
25981
90610

query I rowsort
SELECT - col1 * col1 - - col0 FROM tab1
----
-36
-673
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4551
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4552
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4552
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT ALL col2 - - ( col0 ) DIV tab2.col1 AS col2 FROM tab2
----
27
27
42

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL col2 - - ( col0 ) / tab2.col1 AS col2 FROM tab2
----
27
27
42

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-4556
SELECT col0 * col2 + cor0.col2 DIV + cor0.col1 + col0 FROM tab2 AS cor0
----
196
2106
3083

skipif mysql # not compatible
query I rowsort label-4556
SELECT col0 * col2 + cor0.col2 / + cor0.col1 + col0 FROM tab2 AS cor0
----
196
2106
3083

query I rowsort
SELECT DISTINCT + col0 * + ( + col2 ) * col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4559
SELECT DISTINCT cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 + - 63 AS col0 FROM tab2 AS cor0
----
-141
-142
-70

query I rowsort
SELECT ALL 77 + 42 FROM tab1 AS cor0
----
119
119
119

query I rowsort
SELECT ALL - 91 + + col0 * col2 FROM tab0 AS cor0
----
-56
701
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4563
SELECT DISTINCT - cor0.col2 * - 35 + - col1 * + CAST( col1 AS SIGNED ) - + col0 col1 FROM tab2 cor0
----
-23
-2649
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - cor0.col2 * - 35 + - col1 * + CAST ( col1 AS INTEGER ) - + col0 col1 FROM tab2 cor0
----
-23
-2649
962

query I rowsort
SELECT ALL ( + col2 * + col0 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT col0 * ( col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - ( - 12 ) AS col2 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col2 FROM tab2, tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 - ( + col0 ) col1 FROM tab1 AS cor0
----
-18
-34
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4570
SELECT - - col2 * col1 * - cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT - - col2 * col1 * - cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * ( - col1 ) - 72 AS col1 FROM tab2 cor0
----
-1606
-718
-909

query I rowsort
SELECT - col1 + - cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 5 + + col1 col1 FROM tab1 AS cor0
----
21
5
8

query I rowsort
SELECT + + 9 AS col0 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT + - col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT + - col1 / + col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT + col1 + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + col2 + 37 AS col2 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT ALL col0 * - ( - 14 ) FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT - col0 * + 0 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col2 - + 33 AS col2 FROM tab0 cor0
----
-32
0
49

query I rowsort
SELECT ALL + cor0.col1 * + 26 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT ALL col1 * col0 - col1 * - cor0.col1 AS col0 FROM tab2 cor0
----
1178
1632
8083

query I rowsort
SELECT DISTINCT + col2 * 72 AS col2 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT + cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col0 * - ( cor0.col2 + - col0 ) AS col0 FROM tab0 AS cor0
----
-216
1190
623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4587
SELECT + col2 * CAST( - col1 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-4587
SELECT + col2 * CAST ( - col1 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - - col2 * 80 AS col1 FROM tab0 AS cor0
----
2640
6560
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4589
SELECT - CAST( NULL AS SIGNED ) * 73 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT - CAST ( NULL AS INTEGER ) * 73 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - col0 ) + - col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4591
SELECT DISTINCT + col0 * col1 DIV tab2.col1 col1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + col0 * col1 / tab2.col1 col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - - 14 + col2 FROM tab0 cor0
----
15
47
96

query I rowsort
SELECT ALL - - ( col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 + + col0 * + 97 col1 FROM tab2 AS cor0
----
732
7619
7716

query I rowsort
SELECT ALL ( + col1 ) + ( col1 ) * + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL - - ( + col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( - 46 ) + col0 FROM tab2
----
-39
32
33

query I rowsort
SELECT tab0.col1 * - 21 FROM tab0
----
-1806
-1911
-2037

query I rowsort
SELECT 49 - col2 * + col1 FROM tab0
----
-2789
-48
-7413

query I rowsort
SELECT 57 + + col2 + + tab1.col1 AS col0 FROM tab1
----
124
137
166

query I rowsort
SELECT DISTINCT col1 * - 45 + + col2 FROM tab0
----
-3837
-4013
-4364

query I rowsort
SELECT col2 * col1 + ( ( col2 ) ) FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col2 * + col2 * 0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * - col2 * col0 + col1 * - col2 * + col1 FROM tab0 AS cor0
----
-12804
-1343160
-312180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4605
SELECT ALL + 34 - - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + 34 - - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 37 * col2 AS col1 FROM tab1 cor0
----
1998
2109
3552

query I rowsort
SELECT DISTINCT + col2 * col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + 32 + - cor0.col0 FROM tab1 AS cor0
----
-32
-48
29

query I rowsort
SELECT - 72 * + col0 + cor0.col0 * - ( - col2 ) FROM tab1 AS cor0
----
-54
-960
1920

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) * col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - ( - 49 ) + + col2 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
114125
5152
52777

query I rowsort
SELECT DISTINCT 51 + + cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
129
130
58

query I rowsort
SELECT 73 * - col0 - - col0 FROM tab1 AS cor0
----
-216
-4608
-5760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4614
SELECT ALL - CAST( + col0 AS SIGNED ) * col2 * 1 FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - CAST ( + col0 AS INTEGER ) * col2 * 1 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 82 col2 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT 87 * + col1 AS col0 FROM tab2 AS cor0
----
1479
2697
5133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4617
SELECT DISTINCT col0 * col2 + + tab1.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT col0 * col2 + + tab1.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4618
SELECT + CAST( NULL AS DECIMAL ) * 91 - col2 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + CAST ( NULL AS REAL ) * 91 - col2 * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col2 + col1 * - tab0.col1 * + col1 AS col1 FROM tab0
----
-636089
-753653
-912674

query I rowsort
SELECT - 53 * col2 FROM tab2
----
-1378
-1431
-2014

query I rowsort
SELECT - col0 + col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - col0 + ( 37 ) * + col2 AS col1 FROM tab2 AS cor0
----
1327
884
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT DISTINCT - 71 * col1 * ( + tab0.col2 ) FROM tab0
----
-201498
-529802
-6887

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab0, tab0 AS cor0, tab2
----
-1
-33
-82

query I rowsort
SELECT + tab1.col2 * + ( col1 ) FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - + col2 col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT - - col2 * 93 AS col2 FROM tab2 cor0
----
2418
2511
3534

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL - 0 * col1 + + col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + col0 * - ( + col2 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 42 + ( - col2 ) FROM tab1
----
-12
-15
-54

query I rowsort
SELECT DISTINCT col0 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4636
SELECT ALL + CAST( NULL AS SIGNED ) * 42 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL + CAST ( NULL AS INTEGER ) * 42 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + + 56 AS col0 FROM tab1 AS cor0
----
-1
-40
2

query I rowsort
SELECT ALL - ( + col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 54 ) - - col0 col0 FROM tab1 AS cor0
----
118
134
57

query I rowsort
SELECT DISTINCT - cor1.col1 * + ( 37 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1147
-2183
-629

query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab2, tab1 AS cor0
----
-28

query I rowsort
SELECT ALL cor0.col1 - - 95 * cor0.col2 FROM tab1 AS cor0
----
5156
5425
9133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 27 * - col2 + col0 col1 FROM tab2 AS cor0
----
1105
736
780

skipif mysql # not compatible
query I rowsort
SELECT ( + col0 ) * + cor0.col1 * CAST ( col0 AS REAL ) - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2682
37711
73984

query I rowsort
SELECT ALL - - 37 + cor0.col2 + col2 * - col2 FROM tab1 AS cor0
----
-2825
-3155
-9083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4646
SELECT CAST( - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4646
SELECT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4647
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( + 55 ) * col2 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
2996
3145
5293

query I rowsort
SELECT - 5 + col2 * col0 AS col2 FROM tab2 cor0
----
184
2023
2997

query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - + col2 * cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT 41 * + 16 + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
649
651
654

skipif mysql # not compatible
query I rowsort label-4652
SELECT 41 * + 16 + col2 / - col1 AS col2 FROM tab1 AS cor0
----
649
651
654

query I rowsort
SELECT DISTINCT - + col0 * + ( col1 ) + col1 + + 54 AS col0 FROM tab2 AS cor0
----
-1272
-132
-4489

query I rowsort
SELECT ALL - 94 + 95 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4655
SELECT + CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4655
SELECT + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL col0 + + col2 * + col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT 76 + col0 AS col2 FROM tab0 AS cor0
----
100
111
165

query I rowsort
SELECT ALL + + cor0.col2 + ( cor0.col2 ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - col1 + - 69 * + 47 FROM tab1 AS cor0
----
-3253
-3256
-3269

query I rowsort
SELECT ALL + + cor0.col2 * - col2 - col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT col0 + + 50 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT + col0 * + 24 AS col0 FROM tab0 cor0
----
2136
576
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4663
SELECT ALL + - col1 + - 48 DIV - col2 AS col2 FROM tab0 AS cor0
----
-49
-85
-91

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + - col1 + - 48 / - col2 AS col2 FROM tab0 AS cor0
----
-49
-85
-91

query I rowsort
SELECT DISTINCT - cor0.col2 * 37 AS col1 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT ALL 66 * col0 * - col1 FROM tab0
----
-136224
-224070
-534534

query I rowsort
SELECT + + 96 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 6bef8087cd9f2d6405f56e239741e903

query I rowsort
SELECT DISTINCT + + 71 AS col0 FROM tab1 AS cor0
----
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4668
SELECT - col2 + + cor0.col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT - col2 + + cor0.col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 + col1 * + col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT - + 45 DIV col0 col2 FROM tab0 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4670
SELECT - + 45 / col0 col2 FROM tab0 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) + + 30 * col1 col1 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT ALL + cor0.col2 + col1 + col2 * - col0 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT - col0 - + 64 AS col0 FROM tab2
----
-142
-143
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4674
SELECT CAST( NULL AS SIGNED ) * - 13 + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT CAST ( NULL AS INTEGER ) * - 13 + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col0 - tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c22e7a33a1d8d55a5f7224b3cf03e3bc

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL - + ( col2 ) * - col1 + cor0.col1 + - col0 FROM tab1 AS cor0
----
1181
1427
516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 + - cor0.col1 col1 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT 0 * + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * + 71 AS col1 FROM tab1
----
3834
4047
6816

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 AS col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab2, tab0 AS cor0
----
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT ALL CAST( col2 AS SIGNED ) * col1 * + ( - col1 ) FROM tab0
----
-244068
-679042
-9409

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL CAST ( col2 AS INTEGER ) * col1 * + ( - col1 ) FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL ( - col0 ) * tab0.col0 AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + tab2.col0 + cor1.col2 * 88 FROM tab2, tab1, tab2 cor0, tab2 cor1
----
81 values hashing to e53b388923c7855d8aab76e432146187

query I rowsort
SELECT + 45 * col2 + col1 AS col0 FROM tab1
----
2456
2575
4333

onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT - 18 + col0 * col2 DIV + ( 15 ) AS col0 FROM tab2
----
-6
117
182

skipif mysql # not compatible
query I rowsort label-4689
SELECT - 18 + col0 * col2 / + ( 15 ) AS col0 FROM tab2
----
-6
117
182

query I rowsort
SELECT 20 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 * + cor0.col0 col1 FROM tab0 AS cor0
----
-2352
-3430
-8722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4692
SELECT DISTINCT + col2 * 97 * cor0.col0 + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT + col2 * 97 * cor0.col0 + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT DISTINCT + col2 DIV - col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + col2 / - col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT - 8 * - cor0.col0 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT + ( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col2 + 60 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
1387
2004
5331

query I rowsort
SELECT DISTINCT + 92 * col0 AS col2 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT + 54 + col2 * tab1.col2 * - col1 FROM tab1
----
-119754
-32436
-75762

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad

query I rowsort
SELECT + col2 * col1 * - col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT + - CAST( NULL AS SIGNED ) + + col2 * + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT + - CAST ( NULL AS INTEGER ) + + col2 * + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 91 * 52 FROM tab0 AS cor0
----
4732
4732
4732

query I rowsort
SELECT ALL + 98 * - 44 + + col2 AS col0 FROM tab2 AS cor0
----
-4274
-4285
-4286

onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT - 24 DIV 79 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT - 24 / 79 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4705
SELECT col0 + - cor0.col0 DIV cor0.col2 FROM tab1 AS cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-4705
SELECT col0 + - cor0.col0 / cor0.col2 FROM tab1 AS cor0
----
3
63
80

query I rowsort
SELECT ALL cor0.col2 + 38 FROM tab2, tab1 cor0
----
9 values hashing to 5111694fae19213d38c768d8b6f956d9

query I rowsort
SELECT + 39 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT ALL col1 * - 73 AS col2 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT col2 * - 35 * - col1 + - col0 - 45 FROM tab0 cor0
----
261036
3315
99261

query I rowsort
SELECT + + col0 * - ( - ( - col1 ) ) + - ( - col2 ) - col1 FROM tab0 AS cor0
----
-2117
-3491
-8108

query I rowsort
SELECT - - 85 * + col1 AS col0 FROM tab0 cor0
----
7310
7735
8245

query I rowsort
SELECT + - ( - 97 ) * col1 + 11 FROM tab2 AS cor0
----
1660
3018
5734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 + col1 col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4715
SELECT - CAST( col0 AS SIGNED ) * col0 + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

skipif mysql # not compatible
query I rowsort label-4715
SELECT - CAST ( col0 AS INTEGER ) * col0 + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT tab0.col1 + col0 * - col1 + + tab0.col2 * 30 * - col2 FROM tab0
----
-209728
-3328
-34648

onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT - col2 DIV - ( + col1 ) + col1 + tab2.col0 FROM tab2
----
137
38
98

skipif mysql # not compatible
query I rowsort label-4717
SELECT - col2 / - ( + col1 ) + col1 + tab2.col0 FROM tab2
----
137
38
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( col1 ) col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT col2 * col1 DIV + col1 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4719
SELECT col2 * col1 / + col1 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + tab0.col1 * col0 + col0 + col0 AS col2 FROM tab0
----
2112
3465
8277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 * col2 + - col1 * col2 col1 FROM tab1
----
-17472
-37908
-6270

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT col0 + + col1 + + tab1.col2 FROM tab1
----
131
189
83

query I rowsort
SELECT col0 * + col2 * + col0 AS col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL + col1 + col2 * - col2 / col1 - + cor0.col1 AS col0 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NOT NULL BETWEEN tab1.col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 + - col1 col1 FROM tab2 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col0 * col1 + + col0 * col2 FROM tab1
----
240
4288
8720

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * col1 + - col1 * col0 IN ( - col1 + + col1 * - col0 )
----
35
97
1

query I rowsort
SELECT DISTINCT - col1 * tab2.col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 + - col2 )
----

query I rowsort
SELECT ALL + tab1.col2 * tab1.col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL ) <> ( + col2 / col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT col2 DIV col1 - + tab1.col2 * tab1.col0 FROM tab1
----
-160
-3643
-7673

skipif mysql # not compatible
query I rowsort label-4734
SELECT col2 / col1 - + tab1.col2 * tab1.col0 FROM tab1
----
-160
-3643
-7673

query I rowsort
SELECT + col2 * - tab0.col1 + - col2 * - col0 FROM tab0
----
-164
-2046
-62

query I rowsort
SELECT col2 * col2 FROM tab2 WHERE NOT NULL < + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT + col2 DIV col1 - col2 FROM tab1
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-4737
SELECT + col2 / col1 - col2 FROM tab1
----
-52
-52
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT col2 DIV col1 + + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4738
SELECT col2 / col1 + + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col1 + col2 * col0 * + col0 FROM tab1 AS cor0
----
233482
512
614413

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND col1 * col0
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT col1 = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT DISTINCT - col0 DIV ( col1 ) FROM tab1 cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - col0 / ( col1 ) FROM tab1 cor0
----
-6
0

query I rowsort
SELECT ALL + col0 + 79 AS col2 FROM tab2 AS cor0
----
157
158
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * - col1 - - cor0.col1 col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-4745
SELECT DISTINCT + cor0.col1 DIV col1 + 30 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + cor0.col1 / col1 + 30 FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL cor0.col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + + col2 * 34 * + col1 FROM tab2 AS cor0
----
21964
28458
52156

query I rowsort
SELECT DISTINCT - 61 * + tab2.col1 FROM tab2, tab1 cor0, tab2 cor1
----
-1037
-1891
-3599

onlyif mysql # use DIV operator for integer division
query I rowsort label-4749
SELECT col1 DIV - col0 - col2 * + col1 FROM tab2
----
-1534
-646
-841

skipif mysql # not compatible
query I rowsort label-4749
SELECT col1 / - col0 - col2 * + col1 FROM tab2
----
-1534
-646
-841

query I rowsort
SELECT - ( tab1.col1 * + col0 ) + 97 AS col0 FROM tab1
----
-543
-943
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4751
SELECT DISTINCT - CAST( cor0.col2 AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 cor1
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT - CAST ( cor0.col2 AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 cor1
----
-1
-33
-82

query I rowsort
SELECT + col2 * col2 + - 52 * + col1 AS col2 FROM tab2
----
-2392
-883
560

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT + col2 + ( + tab2.col1 ) * tab2.col1 AS col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT col2 + 54 * - ( + col2 ) FROM tab2 cor0
----
-1378
-1431
-2014

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + + cor0.col0 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT ALL col0 * col2 DIV col2 - - col2 * tab0.col2 FROM tab0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL col0 * col2 / col2 - - col2 * tab0.col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT - col0 * - col2 + - col0 FROM tab0 WHERE + col0 < ( NULL )
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE - col1 NOT BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT col0 * col1 - - col0 * col0 * col0 FROM tab1
----
105
262784
513040

query I rowsort
SELECT DISTINCT - tab1.col0 * - col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL col2 + + col0 - + col0 AS col1 FROM tab2
----
26
27
38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col1 + col1 * col2 )
----

query I rowsort
SELECT tab1.col0 * + col0 * col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT col1 + tab2.col2 - col0 FROM tab2
----
-24
51
7

query I rowsort
SELECT + col1 * - tab1.col2 * + col2 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT - - 26 + + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
35
4122
6426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * col0 + col2 col1 FROM tab0
----
177537
329316
737091

query I rowsort
SELECT + 84 + + col2 * - ( + col1 ) AS col0 FROM tab2
----
-1450
-562
-753

query I rowsort
SELECT ALL 43 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + 87 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8ca7861657245b119c7ce2b8cb1688b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4772
SELECT ALL - 69 * col1 DIV 57 AS col0 FROM tab1 AS cor0
----
-12
-15
-31

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - 69 * col1 / 57 AS col0 FROM tab1 AS cor0
----
-12
-15
-31

query I rowsort
SELECT - + col1 + + col0 * col2 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - 0 * col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - cor0.col0 * col1 * col2 + col1 + col1 AS col1 FROM tab0 AS cor0
----
3589
664300
68284

query I rowsort
SELECT - col1 * + 89 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT ALL col0 + - 79 FROM tab0 AS cor0
----
-44
-55
10

query I rowsort
SELECT - + col0 + + ( col1 ) * col1 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL col0 + - col1 * col1 * + col2 AS col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT - - col2 + 91 * col0 FROM tab0 AS cor0
----
2217
3186
8181

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col2 * + 13 + 46 FROM tab1 AS cor0
----
1294
748
787

query I rowsort
SELECT col1 * 27 * + cor0.col2 FROM tab2 AS cor0
----
17442
22599
41418

query I rowsort
SELECT DISTINCT - 28 + col0 FROM tab2 AS cor0
----
-21
50
51

query I rowsort
SELECT ALL + + 82 - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-18
-594
-87

query I rowsort
SELECT + 13 * 2 + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
61
7324
818

query I rowsort
SELECT DISTINCT + 54 + 54 FROM tab0, tab1 AS cor0
----
108

query I rowsort
SELECT + col0 * ( ( + col2 ) ) * tab2.col0 + col2 AS col0 FROM tab2
----
1350
158210
237196

query I rowsort
SELECT + - 15 * 38 FROM tab0, tab0 AS cor0
----
9 values hashing to 86d4831f8dedb817774142618c8ac5d0

query I rowsort
SELECT + - 41 * - col2 AS col0 FROM tab2 AS cor0
----
1066
1107
1558

onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT DISTINCT - 14 DIV col0 + + ( + col2 ) * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - 14 / col0 + + ( + col2 ) * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - + 4 * col0 AS col0 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT - 60 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT + 90 * - col0 AS col2 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT 46 * + 29 + tab2.col0 * 3 AS col2 FROM tab2
----
1355
1568
1571

query I rowsort
SELECT DISTINCT - col1 * col1 * - 57 + 5 + col1 FROM tab0
----
421663
472113
536415

query I rowsort
SELECT DISTINCT col0 + + col2 + + ( tab0.col0 + col2 ) FROM tab0
----
114
342
72

query I rowsort
SELECT + ( + col1 ) * - tab2.col2 * 84 + tab2.col0 * + col1 FROM tab2
----
-124254
-52921
-70091

query I rowsort
SELECT DISTINCT 58 + - col0 AS col0 FROM tab0
----
-31
23
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT ALL + cor0.col1 DIV col0 + col2 col0 FROM tab0 cor0
----
3
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + cor0.col1 / col0 + col2 col0 FROM tab0 cor0
----
3
36
83

query I rowsort
SELECT + cor0.col2 + col1 * col2 * + 29 FROM tab2 AS cor0
----
18772
24300
44512

query I rowsort
SELECT DISTINCT + col1 + col1 * cor0.col2 * - col2 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT DISTINCT 92 + col2 FROM tab1
----
146
149
188

query I rowsort
SELECT col0 * - col1 * + 7 AS col1 FROM tab2
----
-1519
-32214
-9401

query I rowsort
SELECT - 42 * + col2 AS col0 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT DISTINCT - col1 * col2 * col2 AS col1 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT + col2 + + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-4807
SELECT + col2 + + col0 / col1 AS col2 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT - + col0 + + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col0 AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + col1 + col2 * col1 + col1 AS col1 FROM tab1 AS cor0
----
1274
1456
590

query I rowsort
SELECT + col1 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + ( + col1 ) col2 FROM tab0
----
85
90
96

query I rowsort
SELECT DISTINCT col1 * + 71 FROM tab2
----
1207
2201
4189

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( ( + col1 ) AS REAL ) * col2 + col1 AS col0 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL + - cor0.col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT ( - col2 ) DIV + col0 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4816
SELECT ( - col2 ) / + col0 FROM tab2 cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4817
SELECT ALL + ( + col2 ) DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + ( + col2 ) / col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL ( + col2 ) * col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - 39 + + col1 * col0 * - cor0.col0 + col1 * col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-115469
-56732
18537

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT ALL - col2 * col1 DIV col1 + col1 * cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
131
2829
7469

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL - col2 * col1 / col1 + col1 * cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
131
2829
7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * col1 col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL ( - col1 ) + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + 91 + - col1 FROM tab1 AS cor0
----
65
78
81

query I rowsort
SELECT ALL - + 24 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
-1293
-1304
-2224

query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) + col2 - col1 AS col2 FROM tab2
----
1364
213
4569

onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT + col1 * 14 + col1 * tab0.col2 + + col2 DIV col0 AS col0 FROM tab0
----
1455
4043
8736

skipif mysql # not compatible
query I rowsort label-4826
SELECT + col1 * 14 + col1 * tab0.col2 + + col2 / col0 AS col0 FROM tab0
----
1455
4043
8736

query I rowsort
SELECT - tab2.col2 + 86 + col2 AS col2 FROM tab2
----
86
86
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4828
SELECT + col2 + col1 * col0 DIV col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4828
SELECT + col2 + col1 * col0 / col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT - + 28 + - col0 AS col2 FROM tab0 cor0
----
-117
-52
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4831
SELECT ALL ( + col2 ) + + CAST( NULL AS SIGNED ) - 25 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL ( + col2 ) + + CAST ( NULL AS INTEGER ) - 25 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col0 * + cor0.col2 FROM tab2 cor0
----
406
4345
6630

query I rowsort
SELECT ALL 53 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT ALL + 84 DIV - col0 AS col1 FROM tab2
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL + 84 / - col0 AS col1 FROM tab2
----
-1
-1
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + - col1 col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4836
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + col2 * 98 FROM tab1
----
5289
5522
9328

query I rowsort
SELECT + cor0.col2 + 33 FROM tab2 AS cor0
----
59
60
71

query I rowsort
SELECT + - col2 + + 18 AS col0 FROM tab1 AS cor0
----
-36
-39
-78

query I rowsort
SELECT + col1 + 74 FROM tab2 AS cor0
----
105
133
91

query I rowsort
SELECT ( 75 ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-525
-5850
-5925

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab1, tab2 AS cor0
----
50

query I rowsort
SELECT ALL + col2 + 26 AS col2 FROM tab1 AS cor0
----
122
80
83

query I rowsort
SELECT DISTINCT ( - col2 ) - - col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + col2 * - col1 * + col0 + - cor0.col0 AS col0 FROM tab2 cor0
----
-119730
-51113
-5866

query I rowsort
SELECT ALL + cor1.col2 - cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT 31 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT - - 83 + - col0 * col0 FROM tab0 AS cor0
----
-1142
-493
-7838

query I rowsort
SELECT ALL + - 2 + col0 * - col1 FROM tab0 AS cor0
----
-2066
-3397
-8101

query I rowsort
SELECT ALL 27 + cor0.col0 FROM tab0 AS cor0
----
116
51
62

query I rowsort
SELECT DISTINCT + ( - 19 ) + + col0 FROM tab1 AS cor0
----
-16
45
61

query I rowsort
SELECT + 11 + col0 * - col0 FROM tab1 AS cor0
----
-4085
-6389
2

query I rowsort
SELECT ALL - 25 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
61
66
72

query I rowsort
SELECT DISTINCT + col1 * + col0 + 41 * - 59 FROM tab1 AS cor0
----
-1379
-1779
-2341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * + 79 col0 FROM tab1 AS cor0
----
-1027
-2054
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT - 87 DIV + cor0.col1 + 51 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 87 / + cor0.col1 + 51 / col0 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * col0 + CAST ( + 4 AS REAL ) AS col2 FROM tab1 cor0
----
-4092
-5
-6396

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT DISTINCT col2 DIV - 83 + col2 AS col1 FROM tab1
----
54
57
95

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT col2 / - 83 + col2 AS col1 FROM tab1
----
54
57
95

query I rowsort
SELECT 95 * tab0.col2 + tab0.col0 * col0 AS col0 FROM tab0
----
1320
15711
3711

query I rowsort
SELECT 29 * col2 * - tab1.col1 + - ( + col2 ) * + tab1.col2 FROM tab1
----
-19779
-43632
-45408

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT DISTINCT + 80 DIV - col1 + + tab2.col1 FROM tab2
----
13
29
58

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + 80 / - col1 + + tab2.col1 FROM tab2
----
13
29
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + col1 col2 FROM tab0
----
101
90
95

query I rowsort
SELECT + ( col0 ) - tab0.col1 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col2 + col1 col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + col0 * - ( col1 + col0 ) AS col0 FROM tab1 cor0
----
-4736
-7440
-87

query I rowsort
SELECT DISTINCT - + col0 * + 29 AS col2 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT DISTINCT + + col0 * 23 * cor0.col1 FROM tab0 AS cor0
----
186277
47472
78085

query I rowsort
SELECT - ( col0 ) * col2 AS col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT - col1 DIV 41 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT - col1 / 41 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - cor0.col1 + - 52 * - col1 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT ALL cor0.col0 + + 15 FROM tab1, tab0 AS cor0
----
9 values hashing to 92bd1b84eff45bee265b432e74f8dc37

query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

skipif mysql # not compatible
query I rowsort
SELECT - col2 - CAST ( + 8 AS REAL ) AS col2 FROM tab0
----
-41
-9
-90

query I rowsort
SELECT - - col2 + + ( - col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + + 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4877
SELECT DISTINCT - col2 * + col2 + + CAST( - 37 + + col1 AS SIGNED ) FROM tab1
----
-2927
-3276
-9240

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - col2 * + col2 + + CAST ( - 37 + + col1 AS INTEGER ) FROM tab1
----
-2927
-3276
-9240

query I rowsort
SELECT ALL + + col0 * - col1 + - ( 29 ) * - col1 FROM tab1 AS cor0
----
-350
-663
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4879
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4880
SELECT ALL + col2 + + CAST( - col2 + - col0 * 21 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1344
-1680
-63

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + col2 + + CAST ( - col2 + - col0 * 21 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1344
-1680
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT DISTINCT + col0 * cor0.col1 DIV ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT + col0 * cor0.col1 / ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT + - col0 + ( col2 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-4882
SELECT + - col0 + ( col2 ) / + col0 AS col2 FROM tab2 AS cor0
----
-4
-78
-79

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da

onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT - - col0 + - col1 DIV - col2 col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4884
SELECT - - col0 + - col1 / - col2 col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col0 + ( - col0 ) * - col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + 40 + + col0 + col0 FROM tab2
----
196
198
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4887
SELECT - col2 * CAST( + ( + col0 ) AS SIGNED ) + col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT - col2 * CAST ( + ( + col0 ) AS INTEGER ) + col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4888
SELECT - - CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4888
SELECT - - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 13 - - col2 FROM tab1 cor0
----
109
67
70

query I rowsort
SELECT ALL + col0 + + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + 55 FROM tab0 cor0
----
55

query I rowsort
SELECT - - col2 + col0 - col1 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL - ( col1 ) + col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( col1 ) * - col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col1 * 88 AS col0 FROM tab0 AS cor0
----
-7568
-8008
-8536

query I rowsort
SELECT DISTINCT - ( + 24 ) * - col0 AS col0 FROM tab2 cor0
----
168
1872
1896

query I rowsort
SELECT DISTINCT ( col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + + 68 * col1 AS col2 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT - 63 + 4 * + col1 FROM tab1 AS cor0
----
-11
-23
41

query I rowsort
SELECT ALL - 35 * ( + col1 ) FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT DISTINCT ( col2 ) * col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - - col1 * col1 + col0 AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + 95 * cor0.col1 * col2 FROM tab1 cor0
----
118560
133380
54150

query I rowsort
SELECT DISTINCT 17 * 85 AS col0 FROM tab1 AS cor0
----
1445

query I rowsort
SELECT - - ( + cor0.col2 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT - 51 DIV col2 - 25 * col0 FROM tab1 AS cor0
----
-1600
-2000
-75

skipif mysql # not compatible
query I rowsort label-4906
SELECT - 51 / col2 - 25 * col0 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT DISTINCT + + 49 * - cor0.col2 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT - - col0 + col0 - col2 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT ALL - + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4910
SELECT + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 60 ) * + col2 + 10 * col0 * tab0.col1 AS col2 FROM tab0
----
22620
34010
85910

query I rowsort
SELECT - ( - col1 ) + col1 FROM tab0 cor0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4913
SELECT + col2 * col2 + CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT + col2 * col2 + CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT col2 DIV - col1 + col1 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-4914
SELECT col2 / - col1 + col1 FROM tab1 AS cor0
----
24
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * + cor0.col1 col0 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT - 57 + col0 - - ( col1 ) * + cor0.col0 FROM tab0 AS cor0
----
2031
3373
8131

query I rowsort
SELECT - 20 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-19
13
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT cor0.col0 DIV + 78 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4918
SELECT cor0.col0 / + 78 FROM tab1 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4919
SELECT 97 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4919
SELECT 97 / - col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL 16 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT 24 * 7 FROM tab1
----
168

query I rowsort
SELECT ALL ( ( - col2 ) ) AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 26 AS REAL ) FROM tab0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 35 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 65ff43ee83630770cf6c264c937b14d7

query I rowsort
SELECT - + ( ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 22 * + tab2.col1 AS col2 FROM tab2
----
1298
374
682

query I rowsort
SELECT ALL + + ( col0 ) + col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + cor1.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + + col1 * 83 FROM tab1 cor0
----
1079
2158
830

query I rowsort
SELECT 56 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4932
SELECT + 86 * - col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT + 86 * - col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col0 + + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col2 FROM tab2
----
84
84
84

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 + ( col1 + col1 ) FROM tab0
----
-620
-7116
159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4937
SELECT ALL + CAST( NULL AS SIGNED ) * ( - col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - col2 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT ALL col1 - tab2.col2 DIV col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL col1 - tab2.col2 / col1 FROM tab2
----
15
31
59

query I rowsort
SELECT - 8 * - ( col1 ) * + ( col0 + tab2.col1 * + 61 ) FROM tab2
----
151776
1735544
470704

query I rowsort
SELECT - - cor0.col1 * - col2 + 74 FROM tab1 AS cor0
----
-1174
-1330
-496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT + + col0 * col1 + ( 56 ) DIV - col0 FROM tab1 AS cor0
----
1040
60
640

skipif mysql # not compatible
query I rowsort label-4941
SELECT + + col0 * col1 + ( 56 ) / - col0 FROM tab1 AS cor0
----
1040
60
640

query I rowsort
SELECT + - 39 - + cor0.col1 * - col2 FROM tab1 AS cor0
----
1209
1365
531

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4943
SELECT ALL col2 * col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL col2 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4944
SELECT DISTINCT cor0.col1 - - col1 DIV + 19 FROM tab2 AS cor0
----
17
32
62

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT cor0.col1 - - col1 / + 19 FROM tab2 AS cor0
----
17
32
62

query I rowsort
SELECT - - ( + col1 ) + 26 AS col0 FROM tab2 AS cor0
----
43
57
85

query I rowsort
SELECT + col0 + cor0.col1 * col0 * cor0.col1 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT ( - col2 ) + - 14 AS col2 FROM tab2 cor0
----
-40
-41
-52

query I rowsort
SELECT + col2 * - col0 * col0 AS col2 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col1 * col0 col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - 75 * + 43 * + cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d46a52e68fd28cfe90bc9932c95db7e0

query I rowsort
SELECT col0 + - col0 + + 16 FROM tab2
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT DISTINCT + 21 + - col0 DIV - ( col1 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + 21 + - col0 / - ( col1 ) FROM tab0
----
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT - col0 + col0 DIV 49 AS col1 FROM tab0
----
-24
-35
-88

skipif mysql # not compatible
query I rowsort label-4953
SELECT - col0 + col0 / 49 AS col1 FROM tab0
----
-24
-35
-88

query I rowsort
SELECT ALL - col1 - col2 * - ( - col2 ) FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + col0 + - tab2.col0 FROM tab2
----
0

query I rowsort
SELECT - col0 + - col2 * + col0 + col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 70 + tab2.col0 FROM tab2
----
-63
8
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT + col0 / col1 + + col1 * col2 - - col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT + col0 / col1 + + col1 * col2 - - col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4959
SELECT ALL + col0 DIV - col1 col0 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + col0 / - col1 col0 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT col0 * 87 FROM tab1 cor0
----
261
5568
6960

query I rowsort
SELECT ALL - + cor0.col0 * + col2 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + 72 AS col1 FROM tab1 AS cor0
----
136
152
75

query I rowsort
SELECT ALL col2 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col2 * - ( 88 ) FROM tab1 AS cor0
----
4752
5016
8448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4966
SELECT DISTINCT - cor0.col2 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - cor0.col2 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - cor0.col0 + cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col2 * 76 + col0 FROM tab1 AS cor0
----
4107
4396
7376

onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT DISTINCT + cor0.col0 * 64 DIV - col2 + + col0 FROM tab0 AS cor0
----
-22
-2205
20

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + cor0.col0 * 64 / - col2 + + col0 FROM tab0 AS cor0
----
-22
-2205
20

query I rowsort
SELECT ALL col0 + 97 - col0 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - col0 + - ( - 51 ) - + col1 FROM tab2 AS cor0
----
-45
-86
13

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT - col2 DIV cor0.col0 + + col0 FROM tab0 cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-4973
SELECT - col2 / cor0.col0 + + col0 FROM tab0 cor0
----
23
35
89

query I rowsort
SELECT col0 + 43 * + col1 * col0 FROM tab1 AS cor0
----
27584
3357
44800

query I rowsort
SELECT - + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 95 * - tab2.col2 * + col1 FROM tab2
----
-145730
-61370
-79515

query I rowsort
SELECT + + ( + cor0.col1 ) + col1 * + col0 * 27 FROM tab0 AS cor0
----
218764
55814
91762

query I rowsort
SELECT ALL + 80 * - 53 + + col1 FROM tab0 AS cor0
----
-4143
-4149
-4154

query I rowsort
SELECT ALL + - 60 * col1 FROM tab1 AS cor0
----
-1560
-600
-780

onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT DISTINCT 15 DIV col0 AS col0 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT 15 / col0 AS col0 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL - 30 + 27 FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT DISTINCT - col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT - col2 / + col0 AS col0 FROM tab0 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT 43 DIV 74 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT 43 / 74 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT - - 33 + col2 AS col2 FROM tab2 AS cor0
----
59
60
71

query I rowsort
SELECT + 19 - col1 FROM tab1 AS cor0
----
-7
6
9

query I rowsort
SELECT ALL - col1 + col1 - 46 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT ( - 29 + - col1 ) FROM tab2
----
-46
-60
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4989
SELECT ALL tab1.col1 DIV - col0 - + ( - tab1.col2 * + col0 ) col2 FROM tab1
----
154
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL tab1.col1 / - col0 - + ( - tab1.col2 * + col0 ) col2 FROM tab1
----
154
3648
7680

query I rowsort
SELECT DISTINCT - col0 * col1 - + col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - + col1 + + col0 * col0 AS col2 FROM tab0 cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT - col2 + + 72 FROM tab1
----
-24
15
18

query I rowsort
SELECT DISTINCT + col2 + ( + tab1.col2 ) AS col1 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4994
SELECT col0 DIV - ( + col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4994
SELECT col0 / - ( + col0 ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 15 * + 16 AS col0 FROM tab2, tab2 AS cor0
----
240

onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT ALL - ( - col2 ) DIV + col1 col2 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - ( - col2 ) / + col1 col2 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT + 23 DIV + 82 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4997
SELECT + 23 / + 82 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT ALL + col2 DIV + 85 + + col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + col2 / + 85 + + col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 + + ( col0 + col2 ) col1 FROM tab2 AS cor0
----
133
203
216

query I rowsort
SELECT DISTINCT + col0 + col1 * col1 * 87 FROM tab0 AS cor0
----
643476
720536
818618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5001
SELECT CAST( + col0 AS SIGNED ) + col2 AS col2 FROM tab2 cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-5001
SELECT CAST ( + col0 AS INTEGER ) + col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL + - 41 + + col1 + col0 FROM tab0 AS cor0
----
139
69
91

query I rowsort
SELECT 35 * + ( col0 ) FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT ALL + col2 + 51 * + col2 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT DISTINCT 2 * + col1 AS col0 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT 24 * - 14 + - col1 FROM tab0 AS cor0
----
-422
-427
-433

query I rowsort
SELECT ALL - + ( - col2 ) * col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT DISTINCT + ( + 47 ) DIV col0 FROM tab2 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + ( + 47 ) / col0 FROM tab2 AS cor0
----
0
6

query I rowsort
SELECT ALL - - col1 + + col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT + + col0 * col1 + - col2 DIV + col2 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-5010
SELECT + + col0 * col1 + - col2 / + col2 FROM tab1 AS cor0
----
1039
639
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT ALL 63 + 90 DIV col2 FROM tab0 AS cor0
----
153
64
65

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL 63 + 90 / col2 FROM tab0 AS cor0
----
153
64
65

query I rowsort
SELECT DISTINCT - + ( + ( - col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - - 46 * - col2 AS col0 FROM tab0 cor0
----
-1518
-3772
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 + col2 * - 48 col0 FROM tab1 AS cor0
----
-2647
-2791
-4663

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT DISTINCT + col1 * 82 DIV 58 + col1 AS col0 FROM tab1 AS cor0
----
24
31
62

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT + col1 * 82 / 58 + col1 AS col0 FROM tab1 AS cor0
----
24
31
62

query I rowsort
SELECT ALL col0 * - 52 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT DISTINCT - col2 * + ( - col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT DISTINCT + col1 * col1 * 9 + col0 DIV 40 AS col0 FROM tab1 AS cor0
----
1523
6084
901

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + col1 * col1 * 9 + col0 / 40 AS col0 FROM tab1 AS cor0
----
1523
6084
901

query I rowsort
SELECT DISTINCT ( cor0.col1 ) - + cor0.col2 * + 87 FROM tab0, tab0 AS cor0, tab1 cor1
----
-2785
-7043
10

query I rowsort
SELECT ALL - col1 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT ALL + col2 * cor0.col2 + + col2 DIV - col1 FROM tab2 AS cor0
----
1442
676
729

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + col2 * cor0.col2 + + col2 / - col1 FROM tab2 AS cor0
----
1442
676
729

query I rowsort
SELECT cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + + cor0.col1 * 2 - - col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL - cor0.col2 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + 69 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
69

query I rowsort
SELECT + 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + - cor0.col2 * - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT + col2 * ( 57 + col1 ) DIV + col1 FROM tab0 AS cor0
----
1
133
54

skipif mysql # not compatible
query I rowsort label-5028
SELECT + col2 * ( 57 + col1 ) / + col1 FROM tab0 AS cor0
----
1
133
54

query I rowsort
SELECT + + col0 + 54 AS col0 FROM tab0 AS cor0
----
143
78
89

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) + + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT col0 * 90 - col0 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT - + ( 28 ) + col2 AS col2 FROM tab1 cor0
----
26
29
68

query I rowsort
SELECT - col2 * - col1 - - col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col1 * + col2 col2 FROM tab2 cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5037
SELECT - cor0.col1 * + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5037
SELECT - cor0.col1 * + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col1 * + 68 FROM tab0 AS cor0
----
5848
6188
6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT + - cor0.col2 * col1 DIV cor0.col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5039
SELECT + - cor0.col2 * col1 / cor0.col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 82 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5041
SELECT col2 + col0 DIV col0 FROM tab2 cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5041
SELECT col2 + col0 / col0 FROM tab2 cor0
----
27
28
39

query I rowsort
SELECT ALL col2 * col2 * tab0.col0 + - tab0.col2 + - col0 * col1 FROM tab0
----
-3361
24039
590255

onlyif mysql # use DIV operator for integer division
query I rowsort label-5043
SELECT col0 + - col1 DIV - col2 + col2 FROM tab0
----
133
172
59

skipif mysql # not compatible
query I rowsort label-5043
SELECT col0 + - col1 / - col2 + col2 FROM tab0
----
133
172
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 + col2 col0 FROM tab0
----
133
143
262

query I rowsort
SELECT + + cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5047
SELECT - col0 DIV col2 - col2 col1 FROM tab0 AS cor0
----
-33
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5047
SELECT - col0 / col2 - col2 col1 FROM tab0 AS cor0
----
-33
-36
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 / col0 ) NOT BETWEEN NULL AND - col2 OR + col2 + - cor0.col2 <= + col2 * - col2 / - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - col0 * + col0 IN ( - cor0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col0 FROM tab2 AS cor0
----
-41
-52
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col0 IN ( - col1 * + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT + + col1 * col2 + - cor0.col0 FROM tab2 AS cor0
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * - col1 col2 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT ALL col0 * col1 DIV + col0 col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL col0 * col1 / + col0 col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - col1 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - - col1 + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL - col2 * col0 * col1 - + col1 AS col0 FROM tab2
----
-119711
-51051
-5890

query I rowsort
SELECT ALL col1 + tab0.col2 - col2 * - col2 FROM tab0
----
1208
6897
99

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + col2
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / col0 IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT DISTINCT + + ( col2 ) * - 16 * + col2 + col1 * 81 DIV - col2 AS col2 FROM tab0 AS cor0
----
-107673
-17635
-7873

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + + ( col2 ) * - 16 * + col2 + col1 * 81 / - col2 AS col2 FROM tab0 AS cor0
----
-107673
-17635
-7873

query I rowsort
SELECT ALL col1 + col1 + 74 AS col2 FROM tab1 AS cor0
----
100
126
94

query I rowsort
SELECT ALL 46 + - cor0.col0 FROM tab0 AS cor0
----
-43
11
22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 IN ( col1 )
----

query I rowsort
SELECT DISTINCT tab0.col1 - + col2 * col2 * col1 FROM tab0
----
-611793
-93568
0

query I rowsort
SELECT DISTINCT tab2.col1 / - col1 + col1 FROM tab2 WHERE NULL IN ( + col2 + - col1 )
----

query I rowsort
SELECT col1 + + col0 * + col2 + - col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT ( + col2 ) BETWEEN NULL AND col2 + + col0 + - col2 * col0 * col0
----
17
31
59

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1 WHERE ( - col1 ) NOT IN ( col2 + col1 )
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT + 51 * + col2 FROM tab0
----
1683
4182
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5072
SELECT DISTINCT + col1 + col0 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
196
229
271

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT + col1 + col0 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT col2 * col2 DIV + 82 FROM tab1
----
112
35
39

skipif mysql # not compatible
query I rowsort label-5073
SELECT col2 * col2 / + 82 FROM tab1
----
112
35
39

query I rowsort
SELECT DISTINCT + 86 * col0 * 49 + 81 * + tab1.col0 FROM tab1
----
12885
274880
343600

query I rowsort
SELECT 62 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT + 10 + col2 * - CAST( col1 + col2 AS SIGNED ) AS col2 FROM tab2
----
-1556
-2080
-2200

skipif mysql # not compatible
query I rowsort label-5076
SELECT + 10 + col2 * - CAST ( col1 + col2 AS INTEGER ) AS col2 FROM tab2
----
-1556
-2080
-2200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col1 * ( col2 ) + - col2 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col1 + cor0.col2 * col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT - col2 - + col2 * - ( - col1 ) FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 + + 26 AS col0 FROM tab2 AS cor0
----
-1317
-191
-4576

query I rowsort
SELECT col0 * + col1 * col0 + + col0 + col0 AS col0 FROM tab0
----
118895
49584
720989

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 )
----

query I rowsort
SELECT DISTINCT + col0 * - tab0.col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col2 * col2 + - col2 * col0 FROM tab0
----
-34
-574
297

query I rowsort
SELECT - col0 * tab1.col2 + tab1.col0 - + tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - tab2.col1 + tab2.col0 * tab2.col1 * col2 FROM tab2
----
119593
51017
5828

query I rowsort
SELECT DISTINCT tab0.col2 + col1 FROM tab0 WHERE - col2 IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( + tab2.col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT + col1 - - col1 DIV - col0 AS col2 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-5090
SELECT + col1 - - col1 / - col0 AS col2 FROM tab2
----
17
27
59

query I rowsort
SELECT ALL + col0 + + tab1.col1 FROM tab1 WHERE NOT NULL IN ( - col0 * col1 * col0 )
----

query I rowsort
SELECT DISTINCT col1 - tab0.col1 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + + tab2.col2 * col0 col1 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + - col0 * col2 col1 FROM tab1
----
-216
-3705
-7776

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 IN ( + col2 / col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5097
SELECT ALL - + col1 DIV col0 + - col1 AS col1 FROM tab0 cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - + col1 / col0 + - col1 AS col1 FROM tab0 cor0
----
-89
-92
-99

query I rowsort
SELECT ALL + ( - cor0.col0 ) + 0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5099
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) - col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) - col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT + - cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT + col2 DIV + col2 - ( - col2 ) * + col2 FROM tab0 AS cor0
----
1090
2
6725

skipif mysql # not compatible
query I rowsort label-5102
SELECT + col2 / + col2 - ( - col2 ) * + col2 FROM tab0 AS cor0
----
1090
2
6725

query I rowsort
SELECT cor0.col2 + 41 + col1 AS col2 FROM tab2 AS cor0
----
126
96
99

query I rowsort
SELECT - col1 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + - cor0.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT ( + tab2.col1 + - ( - 75 ) ) * col2 AS col2 FROM tab2
----
2862
3484
3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col1 FROM tab1
----
82
82
82

query I rowsort
SELECT + col2 + - 94 * + cor0.col1 * - col2 + 16 FROM tab1 cor0
----
117424
132046
53653

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5109
SELECT CAST( col0 AS SIGNED ) + + col2 col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5109
SELECT CAST ( col0 AS INTEGER ) + + col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - - col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * col0 col2 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT DISTINCT 73 + + 63 * - col0 + - ( col0 ) * - col0 FROM tab1 AS cor0
----
-107
137
1433

query I rowsort
SELECT DISTINCT - col2 * col1 + col0 * + col0 AS col0 FROM tab0 cor0
----
-2262
1128
459

query I rowsort
SELECT ALL 47 * col0 AS col1 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT - col0 + + 21 AS col1 FROM tab2 AS cor0
----
-57
-58
14

query I rowsort
SELECT col0 + + ( - col2 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT - col2 * col1 * - col2 AS col0 FROM tab1
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + tab1.col1 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5120
SELECT DISTINCT - col0 + 51 + - 41 * col2 * CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
-27743
-29845
-59232

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - col0 + 51 + - 41 * col2 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
-27743
-29845
-59232

query I rowsort
SELECT ALL - ( 59 ) FROM tab1
----
-59
-59
-59

query I rowsort
SELECT DISTINCT 5 * + 86 FROM tab1 AS cor0
----
430

query I rowsort
SELECT DISTINCT ( 55 ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT ALL - col2 * + 24 + - col1 * + 92 AS col0 FROM tab1 AS cor0
----
-2288
-3500
-3688

onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT - 41 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT - 41 / col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + 41 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - tab2.col0 + - tab2.col2 AS col0 FROM tab2, tab0, tab0 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL 57 * col1 + col1 FROM tab0 AS cor0
----
4988
5278
5626

onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT + ( col0 ) + - col2 DIV + col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-5130
SELECT + ( col0 ) + - col2 / + col1 FROM tab2 AS cor0
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 83 col0 FROM tab1
----
249
5312
6640

query I rowsort
SELECT - ( col1 ) + col1 * - col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + 38 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT - 80 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-80

query I rowsort
SELECT + tab0.col1 * col2 * - col2 AS col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + 33 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL col2 * 65 AS col0 FROM tab2
----
1690
1755
2470

query I rowsort
SELECT + - col0 + + 15 FROM tab1 AS cor0
----
-49
-65
12

query I rowsort
SELECT col2 + 98 * + col1 FROM tab1 AS cor0
----
1037
1370
2602

query I rowsort
SELECT col1 * 28 + + 20 * + col2 AS col2 FROM tab1 AS cor0
----
1420
1808
2284

query I rowsort
SELECT DISTINCT - - col2 + + ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 + col1 - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - cor0.col0 * + 52 - 33 FROM tab2 AS cor0
----
-397
-4089
-4141

query I rowsort
SELECT - - col2 * 63 + col0 FROM tab2 AS cor0
----
1708
1716
2473

query I rowsort
SELECT - - col2 * col1 * + col1 + col1 * col0 AS col2 FROM tab1 cor0
----
17264
36582
6340

query I rowsort
SELECT - 78 + 91 AS col2 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT + cor0.col1 + + 79 * + col0 FROM tab0 AS cor0
----
1982
2862
7122

query I rowsort
SELECT + col2 * + 44 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab1, tab1 AS cor0
----
41

query I rowsort
SELECT + - cor0.col0 + + 65 FROM tab2 cor0
----
-13
-14
58

query I rowsort
SELECT - + 71 * col1 + col2 * + 59 FROM tab1 AS cor0
----
1340
2653
4741

query I rowsort
SELECT + - ( + col2 ) - col0 * - cor0.col2 AS col1 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT + - ( - 96 ) AS col2 FROM tab2 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col2 AS REAL ) - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * col1 - - col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col2 - + col1 * + ( - col2 ) col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT ALL + - 96 * - cor0.col1 FROM tab2 AS cor0
----
1632
2976
5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * col0 col1 FROM tab2 AS cor0
----
630
7020
7110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5159
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 58 + col2 AS col2 FROM tab2
----
84
85
96

query I rowsort
SELECT ALL col0 * col1 + col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + col1 * cor0.col2 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5163
SELECT DISTINCT col0 - - col0 DIV ( - col1 + 4 ) AS col2 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT col0 - - col0 / ( - col1 + 4 ) AS col2 FROM tab0 AS cor0
----
24
35
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT ALL + cor0.col1 + + 50 DIV - 43 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + cor0.col1 + + 50 / - 43 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT cor0.col2 * + 29 AS col1 FROM tab1 cor0
----
1566
1653
2784

query I rowsort
SELECT + col2 + cor0.col2 * + 2 AS col1 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT DISTINCT - + col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - ( + col0 ) * 54 * + col1 AS col0 FROM tab2
----
-11718
-248508
-72522

query I rowsort
SELECT + + col2 * 50 FROM tab1 AS cor0
----
2700
2850
4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT DISTINCT - col2 + + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - col2 + + col2 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - - col2 + ( + 57 ) FROM tab0 AS cor0
----
139
58
90

query I rowsort
SELECT ALL - col2 * - 47 * col0 FROM tab1 AS cor0
----
171456
360960
7614

query I rowsort
SELECT ALL + - 12 * col2 FROM tab1 AS cor0
----
-1152
-648
-684

query I rowsort
SELECT + + 88 * ( col1 ) FROM tab0 AS cor0
----
7568
8008
8536

onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT ALL col2 DIV - tab0.col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL col2 / - tab0.col0 FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT cor0.col0 + + ( col1 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5176
SELECT cor0.col0 + + ( col1 ) / + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT ALL + 91 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT ALL 67 AS col0 FROM tab2
----
67
67
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5179
SELECT ALL - CAST( 10 AS SIGNED ) AS col1 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL - CAST ( 10 AS INTEGER ) AS col1 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT + col0 * - col0 + 99 FROM tab2 AS cor0
----
-5985
-6142
50

query I rowsort
SELECT ALL + cor0.col1 + - col0 AS col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT - 89 + cor0.col0 FROM tab2 AS cor0
----
-10
-11
-82

query I rowsort
SELECT DISTINCT - 94 + + col0 AS col1 FROM tab0 AS cor0
----
-5
-59
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT DISTINCT + + 30 * + cor0.col0 + col1 - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
2386
2398
240

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + + 30 * + cor0.col0 + col1 - col0 / + col0 AS col2 FROM tab2 AS cor0
----
2386
2398
240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5185
SELECT CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT ( col1 * + tab0.col1 ) + + col1 AS col2 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT ALL - col1 * col2 + col1 * 20 FROM tab0
----
-1118
-5642
1843

onlyif mysql # use DIV operator for integer division
query I rowsort label-5188
SELECT DISTINCT - tab1.col2 DIV 39 FROM tab1, tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - tab1.col2 / 39 FROM tab1, tab1 AS cor0
----
-1
-2

query I rowsort
SELECT - - col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 8 + + col1 FROM tab0 AS cor0
----
78
83
89

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 + + col1 * ( 49 ) + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
11839
4789
5039

query I rowsort
SELECT ALL - + col2 * - cor0.col0 + + cor0.col0 AS col2 FROM tab0 cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5194
SELECT ALL + 64 * - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL + 64 * - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - - cor0.col1 + + col0 * 26 + - col0 FROM tab2 AS cor0
----
1992
2009
206

query I rowsort
SELECT 19 * + col2 FROM tab0
----
1558
19
627

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col2 AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - + 51 AS col1 FROM tab1 cor0
----
-51
-51
-51

query I rowsort
SELECT ALL - 29 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1, tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - col2 - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab2, tab0 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 * col0 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab2 AS cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * col1 col0 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT DISTINCT - 39 * col1 - col2 AS col1 FROM tab2 AS cor0
----
-1236
-2327
-701

query I rowsort
SELECT DISTINCT - - 98 * - col2 FROM tab0 AS cor0
----
-3234
-8036
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL - - col2 * - 74 + - 17 FROM tab2 AS cor0
----
-1941
-2015
-2829

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5213
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT + col0 * col0 DIV 51 FROM tab1 AS cor0
----
0
125
80

skipif mysql # not compatible
query I rowsort label-5214
SELECT + col0 * col0 / 51 FROM tab1 AS cor0
----
0
125
80

query I rowsort
SELECT - col0 * - col2 + col1 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT + + col0 + - col0 DIV + 55 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-5216
SELECT + + col0 + - col0 / + 55 FROM tab2 AS cor0
----
7
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT DISTINCT + - col1 + cor0.col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + - col1 + cor0.col0 / + col0 AS col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT + col2 * + ( 3 + + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
100
2937
7708

query I rowsort
SELECT ALL + 51 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL col2 + col0 - col2 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + cor0.col0 * ( col0 ) FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT cor0.col0 * ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT DISTINCT + cor0.col0 DIV cor0.col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + cor0.col0 / cor0.col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT + col1 * 62 FROM tab1 cor0
----
1612
620
806

query I rowsort
SELECT - 97 AS col2 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to a85708f93e08f0a017b33cd7912642fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT cor0.col0 * 55 DIV - col2 AS col0 FROM tab1 AS cor0
----
-3
-45
-61

skipif mysql # not compatible
query I rowsort label-5226
SELECT cor0.col0 * 55 / - col2 AS col0 FROM tab1 AS cor0
----
-3
-45
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 + - 85 col0 FROM tab1
----
-11
-56
8

query I rowsort
SELECT ALL - col2 * - col0 + ( col2 ) * 67 + + tab2.col1 FROM tab2
----
2029
3829
5565

query I rowsort
SELECT col0 - + col1 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT - ( col0 ) * + col2 * - col1 + - 63 FROM tab2 cor0
----
119589
50971
5796

query I rowsort
SELECT - - cor0.col2 + 78 * - col0 * + col0 + 29 * - col2 AS col0 FROM tab0 AS cor0
----
-45852
-620134
-95578

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + cor0.col1 AS REAL ) + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + + 75 * col2 + cor0.col0 * 82 FROM tab1 AS cor0
----
13760
4296
9523

query I rowsort
SELECT col0 * col1 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL 17 * tab0.col0 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 85e83dc0912af453993daa516a9492cc

query I rowsort
SELECT 27 + - col1 + col2 AS col2 FROM tab2 cor0
----
-6
23
48

query I rowsort
SELECT - 19 * col1 FROM tab1
----
-190
-247
-494

query I rowsort
SELECT ALL - ( 60 + - col2 ) * - 42 FROM tab0
----
-924
1134
2478

query I rowsort
SELECT 18 + + col0 FROM tab0 AS cor0
----
107
42
53

query I rowsort
SELECT - 59 * col0 AS col2 FROM tab0
----
-1416
-2065
-5251

query I rowsort
SELECT DISTINCT 85 * - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-255
-5440
-6800

query I rowsort
SELECT - col1 * col0 - 12 FROM tab1 cor0
----
-1052
-652
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5244
SELECT DISTINCT + + col0 DIV col1 - - col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT + + col0 / col1 - - col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - - col1 + - col2 * + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col2 * ( col0 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col0 + 31 * + ( + col2 * col2 ) AS col0 FROM tab0 AS cor0
----
208533
33783
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT col0 + 48 DIV col1 col0 FROM tab2 AS cor0
----
78
8
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5248
SELECT col0 + 48 / col1 col0 FROM tab2 AS cor0
----
78
8
81

query I rowsort
SELECT col0 - col2 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT + col0 - col1 * + 24 AS col2 FROM tab0 AS cor0
----
-2040
-2095
-2293

query I rowsort
SELECT DISTINCT - 20 + col2 + + col2 FROM tab0 AS cor0
----
-18
144
46

query I rowsort
SELECT ALL - cor0.col2 * col1 * - 28 + 51 * + col2 AS col2 FROM tab1 cor0
----
18867
39840
42066

query I rowsort
SELECT - + 99 * - col0 FROM tab1 AS cor0
----
297
6336
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 * + col1 + col0 col1 FROM tab2 AS cor0
----
100
130
255

query I rowsort
SELECT DISTINCT 60 * - col0 + + 23 * col0 FROM tab1 cor0
----
-111
-2368
-2960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5256
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col0 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * + col0 + col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT 48 + + col1 FROM tab1
----
58
61
74

query I rowsort
SELECT 96 * col0 AS col0 FROM tab0 cor0
----
2304
3360
8544

query I rowsort
SELECT ALL - - ( + cor0.col2 ) + col2 AS col0 FROM tab2 cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5261
SELECT col2 * - col0 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-5261
SELECT col2 * - col0 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT col2 * ( ( tab1.col2 ) ) AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT col1 * 82 FROM tab0
----
7052
7462
7954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5264
SELECT ALL tab0.col0 + CAST( + 49 AS SIGNED ) AS col2 FROM tab0
----
138
73
84

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL tab0.col0 + CAST ( + 49 AS INTEGER ) AS col2 FROM tab0
----
138
73
84

query I rowsort
SELECT - - 10 * - cor0.col2 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
0
288
864

query I rowsort
SELECT + 29 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT + - 16 + ( col2 ) DIV - col2 col0 FROM tab0 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5267
SELECT + - 16 + ( col2 ) / - col2 col0 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT - 27 * 83 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 1f13ca06d1bf808db5155535598d2518

query I rowsort
SELECT DISTINCT + 50 * 59 AS col0 FROM tab2 AS cor0
----
2950

query I rowsort
SELECT ALL + ( - col1 ) * col0 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 col1 FROM tab1 AS cor0
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5273
SELECT DISTINCT - - col1 DIV + col0 - - col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT - - col1 / + col0 - - col1 FROM tab0 AS cor0
----
89
92
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5274
SELECT + ( - col2 ) * - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT + ( - col2 ) * - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 21 + cor0.col0 FROM tab1 AS cor0
----
-18
43
59

query I rowsort
SELECT ALL col0 * + col1 - + col2 AS col1 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT ( col0 ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 65 * col2 + - cor0.col2 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT ALL + + col1 * col2 * col2 + + col2 * - cor0.col1 FROM tab2 cor0
----
21762
23902
38350

query I rowsort
SELECT DISTINCT - ( col1 ) + - col0 * - 86 FROM tab1 AS cor0
----
232
5494
6867

query I rowsort
SELECT DISTINCT - col1 * col1 - + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col0 FROM tab1 cor0
----
-47
-47
-47

query I rowsort
SELECT ALL - ( ( - col2 ) ) * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col1 + 84 AS col0 FROM tab1 AS cor0
----
110
94
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT + CAST( NULL AS SIGNED ) * 71 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT + CAST ( NULL AS INTEGER ) * 71 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT ALL - + col0 DIV col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - + col0 / col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 + + col2 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1056
129
633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 39 * - cor0.col0 col2 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 59 + col0 FROM tab0 AS cor0
----
148
83
94

query I rowsort
SELECT DISTINCT + col2 * col0 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
105
7476
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT DISTINCT + cor0.col1 * col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT + cor0.col1 * col1 / - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5293
SELECT - + col2 + ( cor0.col0 ) DIV - col1 - ( col2 + - col0 ) * - 55 FROM tab2 AS cor0
----
-2297
-2887
1073

skipif mysql # not compatible
query I rowsort label-5293
SELECT - + col2 + ( cor0.col0 ) / - col1 - ( col2 + - col0 ) * - 55 FROM tab2 AS cor0
----
-2297
-2887
1073

query I rowsort
SELECT ALL - col2 * + ( cor0.col2 ) * - col2 + + col1 FROM tab1 AS cor0
----
157490
185203
884749

query I rowsort
SELECT + cor0.col0 + col2 * - col0 - + col1 * - cor0.col1 FROM tab1 AS cor0
----
-3484
-7431
517

query I rowsort
SELECT ALL cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT col1 * CAST( - col1 * + col0 + + ( col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-12480
-1950
-5760

skipif mysql # not compatible
query I rowsort label-5297
SELECT col1 * CAST ( - col1 * + col0 + + ( col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-12480
-1950
-5760

query I rowsort
SELECT + 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - col2 - 99 * - col1 FROM tab2 AS cor0
----
1645
3042
5815

query I rowsort
SELECT - col2 * - ( col0 ) - col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - col0 + + ( - ( + cor0.col0 ) ) * col2 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL col0 * 88 - col0 FROM tab2
----
609
6786
6873

query I rowsort
SELECT 50 * ( - col2 ) FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT DISTINCT - - col0 + 9 * + col2 AS col0 FROM tab0 AS cor0
----
321
44
827

query I rowsort
SELECT - col0 * col2 + ( - tab1.col2 ) + 46 FROM tab1
----
-170
-3659
-7730

query I rowsort
SELECT ALL - col0 + + ( col2 ) AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col2 + + ( col0 * col2 ) AS col2 FROM tab1
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + tab2.col2 * - col1 * tab2.col2 col2 FROM tab2
----
-22568
-24531
-39825

query I rowsort
SELECT + col0 + - 26 * col0 + col0 AS col0 FROM tab2
----
-168
-1872
-1896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5310
SELECT + cor0.col2 * + CAST( + col2 AS SIGNED ) + col1 col0 FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5310
SELECT + cor0.col2 * + CAST ( + col2 AS INTEGER ) + col1 col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + + ( cor0.col1 ) * - cor0.col1 * + 10 + 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a210201733bafc6fbe4c19ad97d9194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT ALL - cor0.col2 + + cor0.col0 DIV 75 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 04c48caca1a1f215352fece41e39b5af

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL - cor0.col2 + + cor0.col0 / 75 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 04c48caca1a1f215352fece41e39b5af

query I rowsort
SELECT - col2 + - cor0.col2 * + 47 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT + col0 + col0 + - cor0.col2 FROM tab1 cor0
----
-48
64
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT DISTINCT col1 + col1 DIV col2 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT col1 + col1 / col2 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT ( - ( tab1.col1 ) ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT 60 * - 56 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 46bbd7fa0fb1bf190da55c35bb465682

query I rowsort
SELECT DISTINCT 52 + col2 FROM tab1
----
106
109
148

query I rowsort
SELECT ALL col0 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col1 FROM tab1 cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5321
SELECT ALL + + col0 + ( - cor0.col1 * CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + + col0 + ( - cor0.col1 * CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 18 + + col0 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT ALL + 68 * - cor0.col0 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT 98 * - col2 FROM tab0 AS cor0
----
-3234
-8036
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT + col2 * col1 - col1 AS col0 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - 2 * + cor0.col0 * ( + ( - cor0.col0 ) ) FROM tab0 AS cor0
----
1152
15842
2450

query I rowsort
SELECT ALL ( cor0.col1 ) * - 17 AS col2 FROM tab2 AS cor0
----
-1003
-289
-527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col1 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT + + col0 + + col2 * 31 FROM tab2 AS cor0
----
1257
844
884

query I rowsort
SELECT - ( + col0 ) + - 86 FROM tab2 AS cor0
----
-164
-165
-93

query I rowsort
SELECT + 8 * cor0.col1 * - col1 + + 13 FROM tab0 cor0
----
-59155
-66235
-75259

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
80

query I rowsort
SELECT DISTINCT 77 + - tab0.col0 + 19 AS col0 FROM tab0, tab2, tab2 AS cor0
----
61
7
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + 76 * + col1 * + col0 col1 FROM tab0 cor0
----
158928
261415
623623

query I rowsort
SELECT + col1 * col1 - col0 AS col2 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ( col2 ) + col0 * + cor0.col1 AS col0 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-5338
SELECT - col1 DIV 30 + col1 FROM tab0 AS cor0
----
84
88
94

skipif mysql # not compatible
query I rowsort label-5338
SELECT - col1 / 30 + col1 FROM tab0 AS cor0
----
84
88
94

query I rowsort
SELECT + cor0.col0 * ( col1 ) + cor0.col0 - col2 FROM tab0 AS cor0
----
2055
3429
8106

query I rowsort
SELECT cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - - col1 * col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - + col0 + - cor0.col1 AS col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT - + col2 + + 45 FROM tab2 AS cor0
----
18
19
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT - + col1 * + 76 * 97 - - col2 DIV col1 FROM tab1 AS cor0
----
-191670
-73715
-95829

skipif mysql # not compatible
query I rowsort label-5344
SELECT - + col1 * + 76 * 97 - - col2 / col1 FROM tab1 AS cor0
----
-191670
-73715
-95829

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5345
SELECT col2 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5345
SELECT col2 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + col0 + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col1 * + col2 + ( col2 * cor0.col1 ) + - 47 * - cor0.col2 AS col2 FROM tab1 cor0
----
3819
5346
7008

query I rowsort
SELECT + cor0.col1 - - col2 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - + 62 + 62 * + col1 FROM tab1 AS cor0
----
1550
558
744

query I rowsort
SELECT - + col1 * col1 * + col2 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 62 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - 10 + + 18 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT 18 * - cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
11628
15066
27612

query I rowsort
SELECT - 65 + col2 AS col2 FROM tab2 AS cor0
----
-27
-38
-39

query I rowsort
SELECT DISTINCT + col2 + + 56 AS col1 FROM tab1 cor0
----
110
113
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT ALL col2 DIV + col2 + 38 FROM tab1 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL col2 / + col2 + 38 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT + col2 * 97 + - cor0.col0 FROM tab0 AS cor0
----
3177
62
7865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + - col2 + - 80 * + col2 col1 FROM tab1 AS cor0
----
-4428
-4674
-7872

query I rowsort
SELECT - col2 * cor0.col0 * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT cor0.col1 + col1 DIV col1 + + cor0.col0 FROM tab1 cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-5361
SELECT cor0.col1 + col1 / col1 + + cor0.col0 FROM tab1 cor0
----
30
75
94

query I rowsort
SELECT - + cor0.col2 * + 1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col2 + col1 + - col1 * + col0 * col2 FROM tab1 AS cor0
----
-36413
-4132
-99731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 * + col1 col0 FROM tab0
----
5676
6006
6402

query I rowsort
SELECT + col2 + 69 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
510
5408
5489

query I rowsort
SELECT ALL - col2 + col0 * + ( cor0.col0 ) FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5367
SELECT + col1 * CAST( col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-5367
SELECT + col1 * CAST ( col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col1 * + 49 AS col1 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT DISTINCT 37 * + cor0.col2 AS col1 FROM tab0, tab0 cor0
----
1221
3034
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5371
SELECT ALL - col1 DIV - 85 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL - col1 / - 85 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab0, tab2 AS cor0
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5373
SELECT ALL - - 72 DIV + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4290cacb60f3025f5f8a013d5cea0e5

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL - - 72 / + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4290cacb60f3025f5f8a013d5cea0e5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5374
SELECT DISTINCT col1 * + col0 + - ( - col1 ) DIV + CAST( + col2 + - col0 AS SIGNED ) FROM tab0
----
2073
3393
8086

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT col1 * + col0 + - ( - col1 ) / + CAST ( + col2 + - col0 AS INTEGER ) FROM tab0
----
2073
3393
8086

query I rowsort
SELECT ALL - col0 * - col0 + - 26 * col2 FROM tab0
----
-282
1199
5789

query I rowsort
SELECT col1 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + col0 * 40 * - col0 AS col0 FROM tab2 AS cor0
----
-1960
-243360
-249640

query I rowsort
SELECT ALL cor0.col0 + col0 * col1 AS col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + + col2 * col1 + ( col0 ) FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + + ( + col2 ) * - ( - col0 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 62 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT DISTINCT + col1 * + col2 * CAST( NULL AS SIGNED ) + col0 + tab0.col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT + col1 * + col2 * CAST ( NULL AS INTEGER ) + col0 + tab0.col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 25 - + col1 AS col2 FROM tab0
----
-61
-66
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5384
SELECT DISTINCT - col1 + - col0 DIV - col2 FROM tab0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - col1 + - col0 / - col2 FROM tab0
----
-62
-86
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT ( col2 ) - - CAST( NULL AS SIGNED ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT ( col2 ) - - CAST ( NULL AS INTEGER ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 95 * tab2.col2 + col0 AS col1 FROM tab2
----
2548
2572
3689

query I rowsort
SELECT - col2 + cor0.col0 * 86 AS col2 FROM tab2 AS cor0
----
575
6682
6756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * col1 + + col0 * col0 col0 FROM tab2
----
-13
5966
6207

query I rowsort
SELECT DISTINCT - 26 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-26

query I rowsort
SELECT 44 * - col0 FROM tab2
----
-308
-3432
-3476

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 - + col2 * + col0 * + col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 * col0 - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - + col2 + col1 * - 49 AS col1 FROM tab0 AS cor0
----
-4247
-4541
-4754

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * - CAST ( + col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 - - 61 FROM tab1 AS cor0
----
-1187
-1343
-509

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT DISTINCT col1 * - ( col0 ) + cor0.col2 DIV col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT col1 * - ( col0 ) + cor0.col2 / col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

query I rowsort
SELECT col2 + col0 + col0 * col0 FROM tab1 AS cor0
----
4217
6576
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT + col2 + - col0 DIV - col0 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5399
SELECT + col2 + - col0 / - col0 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL - col1 + 65 FROM tab1 AS cor0
----
39
52
55

query I rowsort
SELECT ALL - cor0.col2 * col2 + + ( + col1 ) * 3 AS col0 FROM tab2 AS cor0
----
-1393
-499
-636

query I rowsort
SELECT - 97 * - 67 + col2 AS col2 FROM tab2
----
6525
6526
6537

query I rowsort
SELECT DISTINCT ( + col1 * + col2 + + col1 ) FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL 38 * 7 AS col2 FROM tab2
----
266
266
266

query I rowsort
SELECT + ( 43 ) AS col1 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT DISTINCT - col0 DIV col0 + col1 * col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT - col0 / col0 + col1 * col0 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT ALL + col2 + - col1 * cor0.col1 * + 67 FROM tab2 AS cor0
----
-19325
-233201
-64360

query I rowsort
SELECT ( col2 ) * col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col0 * + col0 + 74 + + 13 AS col1 FROM tab0 AS cor0
----
-1138
-489
-7834

query I rowsort
SELECT DISTINCT + 16 + - col2 FROM tab0 AS cor0
----
-17
-66
15

query I rowsort
SELECT ALL ( - col1 ) + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + 19 + - col1 FROM tab2 AS cor0
----
-12
-40
2

query I rowsort
SELECT ALL + cor0.col0 + + col2 * + col2 + + 71 AS col2 FROM tab0 AS cor0
----
107
1184
6884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col0 - + ( + col0 * cor0.col1 ) col2 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT + cor0.col0 * - col0 - + 39 * - 69 FROM tab0 AS cor0
----
-5230
1466
2115

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT - col1 + - col2 DIV col2 + + col2 * - col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-97
35850
551276

skipif mysql # not compatible
query I rowsort label-5417
SELECT - col1 + - col2 / col2 + + col2 * - col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-97
35850
551276

query I rowsort
SELECT ALL cor0.col0 * - col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT col0 * + col2 + - 72 AS col0 FROM tab2 AS cor0
----
117
1956
2930

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5421
SELECT 22 DIV + 65 - col2 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5421
SELECT 22 / + 65 - col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT 0 + 32 FROM tab2
----
32
32
32

query I rowsort
SELECT ALL + col2 * col1 - + 33 FROM tab1 AS cor0
----
1215
1371
537

query I rowsort
SELECT DISTINCT - + cor0.col0 + + col2 * col0 AS col1 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT 21 + - col0 FROM tab0
----
-14
-3
-68

query I rowsort
SELECT + + 57 - + col1 FROM tab2 cor0
----
-2
26
40

query I rowsort
SELECT DISTINCT + - 7 FROM tab2, tab1, tab2 cor0
----
-7

query I rowsort
SELECT + col2 * 44 FROM tab1
----
2376
2508
4224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5430
SELECT + CAST( - col2 AS SIGNED ) * col2 FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-5430
SELECT + CAST ( - col2 AS INTEGER ) * col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - tab1.col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT cor0.col1 + - ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - + col1 + 61 * col1 AS col1 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT ALL 79 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-5435
SELECT ALL 79 / + col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * + col0 * - ( ( - col0 ) ) + tab1.col1 AS col0 FROM tab1
----
-1
-262134
-511987

query I rowsort
SELECT - + col2 + + 2 * col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT DISTINCT + + col1 + 56 * col1 AS col1 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT DISTINCT - col1 + 17 * ( - col1 ) FROM tab0 AS cor0
----
-1548
-1638
-1746

query I rowsort
SELECT - - col0 * + col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - - col2 + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + col2 * ( 39 ) AS col2 FROM tab0 AS cor0
----
1287
3198
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5443
SELECT - - col0 DIV - col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT - - col0 / - col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT col1 * + col1 * + 88 FROM tab0
----
650848
728728
827992

query I rowsort
SELECT DISTINCT + + 4 AS col2 FROM tab2, tab0 AS cor0
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5446
SELECT DISTINCT + cor0.col2 DIV - 56 FROM tab1, tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT + cor0.col2 / - 56 FROM tab1, tab0 AS cor0
----
-1
0

query I rowsort
SELECT - col1 * + col0 - - col2 * + ( - 66 ) FROM tab2 AS cor0
----
-1999
-3851
-6318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5448
SELECT CAST( NULL AS SIGNED ) + col0 + col1 * - col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5448
SELECT CAST ( NULL AS INTEGER ) + col0 + col1 * - col1 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5449
SELECT ALL - - CAST( + col0 AS SIGNED ) * + cor0.col2 + 17 FROM tab2 AS cor0
----
2045
206
3019

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - - CAST ( + col0 AS INTEGER ) * + cor0.col2 + 17 FROM tab2 AS cor0
----
2045
206
3019

query I rowsort
SELECT DISTINCT - + col1 * col0 - - col1 * 49 FROM tab0 AS cor0
----
-3640
1358
2150

query I rowsort
SELECT + 52 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d

query I rowsort
SELECT ALL - 36 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-62
-63
-74

query I rowsort
SELECT + col1 * cor0.col2 + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5454
SELECT + 34 DIV + col2 FROM tab0 AS cor0
----
0
1
34

skipif mysql # not compatible
query I rowsort label-5454
SELECT + 34 / + col2 FROM tab0 AS cor0
----
0
1
34

query I rowsort
SELECT cor0.col2 * 62 + cor0.col2 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT + - col0 + 34 * + 72 FROM tab2 AS cor0
----
2369
2370
2441

query I rowsort
SELECT ALL - col0 * - col1 + col1 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL - col0 + + col0 * + 25 FROM tab2
----
168
1872
1896

query I rowsort
SELECT ALL - + col1 + col0 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL - 13 - + col2 FROM tab0 AS cor0
----
-14
-46
-95

query I rowsort
SELECT 64 * col0 - cor0.col1 AS col0 FROM tab2 AS cor0
----
417
4933
5039

onlyif mysql # use DIV operator for integer division
query I rowsort label-5462
SELECT - col1 * + 57 + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-4902
-5186
-5494

skipif mysql # not compatible
query I rowsort label-5462
SELECT - col1 * + 57 + col0 / col2 AS col2 FROM tab0 AS cor0
----
-4902
-5186
-5494

query I rowsort
SELECT - col0 + ( col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + ( + col0 ) * - cor0.col2 + - ( - 18 ) AS col1 FROM tab1 cor0
----
-36462
-4194
-99822

onlyif mysql # use DIV operator for integer division
query I rowsort label-5465
SELECT ALL - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - col1 / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 + 21 FROM tab0 AS cor0
----
103
22
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT DISTINCT + col2 DIV + ( col0 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT + col2 / + ( col0 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL - cor0.col0 - ( col0 ) AS col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT DISTINCT - col0 + + 73 DIV - col0 FROM tab0 AS cor0
----
-27
-37
-89

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - col0 + + 73 / - col0 FROM tab0 AS cor0
----
-27
-37
-89

query I rowsort
SELECT + cor0.col1 + 46 FROM tab0 cor0
----
132
137
143

query I rowsort
SELECT DISTINCT - + cor0.col1 + + col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT col0 + - 79 FROM tab1 AS cor0
----
-15
-76
1

query I rowsort
SELECT ALL cor0.col0 * col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col0 * + col2 - col2 * col0 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT + + col1 + ( + 0 ) AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5476
SELECT + + cor0.col0 / CAST( NULL AS SIGNED ) + + col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT + + cor0.col0 / CAST ( NULL AS INTEGER ) + + col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 36 AS col1 FROM tab1 AS cor0
----
132
90
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT + + col0 * 87 + 22 DIV col0 + col2 FROM tab0 cor0
----
2121
3046
7825

skipif mysql # not compatible
query I rowsort label-5478
SELECT + + col0 * 87 + 22 / col0 + col2 FROM tab0 cor0
----
2121
3046
7825

query I rowsort
SELECT cor0.col1 + + ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - col1 * - cor0.col0 + - 84 + col2 FROM tab1 AS cor0
----
1052
48
613

query I rowsort
SELECT ALL + col2 * 22 AS col1 FROM tab1 cor0
----
1188
1254
2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT ALL - cor0.col0 DIV - 96 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - cor0.col0 / - 96 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( 46 ) * - col2 AS col0 FROM tab1 AS cor0
----
-2484
-2622
-4416

onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT DISTINCT + col0 DIV 11 FROM tab2 cor0
----
0
7

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT + col0 / 11 FROM tab2 cor0
----
0
7

query I rowsort
SELECT ALL - col2 * 10 AS col1 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT ALL - - ( col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + ( + 31 ) * col0 - - col1 FROM tab1 AS cor0
----
-1974
-2467
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5488
SELECT ALL + CAST( + col1 AS SIGNED ) - + col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + CAST ( + col1 AS INTEGER ) - + col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - ( - col2 ) * col1 - + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + - cor0.col2 - col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT ( col2 ) / col2 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT ( col2 ) / col2 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab1
----
-90

query I rowsort
SELECT + col0 * + ( col1 ) - - col2 * tab1.col1 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT DISTINCT - - 2 + col2 FROM tab2 AS cor0
----
28
29
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-5495
SELECT - col0 + - col0 DIV 79 FROM tab0 AS cor0
----
-24
-35
-90

skipif mysql # not compatible
query I rowsort label-5495
SELECT - col0 + - col0 / 79 FROM tab0 AS cor0
----
-24
-35
-90

query I rowsort
SELECT - 85 * + col0 AS col2 FROM tab2 AS cor0
----
-595
-6630
-6715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5497
SELECT - + col2 * col2 + + CAST( cor0.col0 AS SIGNED ) FROM tab2 cor0
----
-1365
-598
-722

skipif mysql # not compatible
query I rowsort label-5497
SELECT - + col2 * col2 + + CAST ( cor0.col0 AS INTEGER ) FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL + + col0 * - col2 * col2 FROM tab0 cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + col0 col1 FROM tab2
----
149
150
78

query I rowsort
SELECT DISTINCT - + ( - 14 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * tab2.col0 col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT DISTINCT + col1 * col0 + + col1 DIV + col0 AS col0 FROM tab1
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT + col1 * col0 + + col1 / + col0 AS col0 FROM tab1
----
1040
640
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT ALL - tab0.col2 * col0 + col2 + col2 DIV + col1 FROM tab0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - tab0.col2 * col0 + col2 + col2 / + col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL - tab2.col2 * - col1 * - col2 AS col0 FROM tab2
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col1 FROM tab1
----
-23
-23
-23

query I rowsort
SELECT DISTINCT 1 FROM tab0, tab1, tab0 cor0
----
1

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-5509
SELECT DISTINCT col1 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT col1 / cor0.col0 AS col2 FROM tab1 AS cor0
----
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT DISTINCT - 75 * - col0 DIV col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT - 75 * - col0 / col0 FROM tab2 cor0
----
75

query I rowsort
SELECT DISTINCT + 57 * col2 FROM tab1 cor0
----
3078
3249
5472

query I rowsort
SELECT cor1.col1 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + 30 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT - 83 FROM tab2, tab0 cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5515
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5516
SELECT + + CAST( NULL AS DECIMAL ) * + col1 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT + + CAST ( NULL AS REAL ) * + col1 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 46 + - 36 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1142
-2906
10

query I rowsort
SELECT + col0 * col1 + + 10 * + col1 FROM tab0
----
2924
4365
9009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - 59 * - col2 * cor0.col1 FROM tab0 AS cor0
----
167442
440258
5723

query I rowsort
SELECT + - col1 + + col0 * + 1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 * col0 AS col1 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT ALL + cor0.col1 * 33 FROM tab0, tab2 AS cor0
----
9 values hashing to ca1c3aac59acee4d5db2847dddc1b912

query I rowsort
SELECT - col0 * 73 FROM tab2 cor0
----
-511
-5694
-5767

query I rowsort
SELECT DISTINCT + 11 * 23 FROM tab1, tab2 AS cor0
----
253

query I rowsort
SELECT ALL + cor0.col2 + + 49 AS col0 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT 26 * + col1 AS col1 FROM tab1
----
260
338
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5528
SELECT ALL col2 * - CAST( - col1 AS SIGNED ) FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL col2 * - CAST ( - col1 AS INTEGER ) FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT + col1 + col2 DIV col1 FROM tab2 cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-5529
SELECT + col1 + col2 / col1 FROM tab2 cor0
----
19
31
59

query I rowsort
SELECT DISTINCT + 48 + 82 AS col1 FROM tab2, tab1, tab2 AS cor0
----
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - tab1.col2 * - tab1.col0 col0 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT - 12 * 8 FROM tab1
----
-96
-96
-96

query I rowsort
SELECT cor0.col2 * + tab2.col0 FROM tab2, tab1, tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT col2 * - cor0.col1 + 16 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5534
SELECT col2 * - cor0.col1 + 16 / - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + ( - col1 ) * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - ( ( col2 ) ) * + ( - col1 ) * - col0 + 87 FROM tab2 AS cor0
----
-119565
-50947
-5772

query I rowsort
SELECT col1 * - col1 + + col1 * col2 * col0 FROM tab1 AS cor0
----
3536
36380
99671

onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT DISTINCT - 36 DIV col0 + + col0 * + col0 FROM tab0 AS cor0
----
1224
575
7921

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - 36 / col0 + + col0 * + col0 FROM tab0 AS cor0
----
1224
575
7921

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab2, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 84 + tab2.col1 + + col0 FROM tab2
----
122
180
221

query I rowsort
SELECT DISTINCT + 97 + 76 * col2 AS col0 FROM tab1 AS cor0
----
4201
4429
7393

query I rowsort
SELECT col1 + cor0.col1 * col0 - col2 * + col0 AS col2 FROM tab0 cor0
----
1358
3457
892

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + cor0.col0 * - col2 + + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col0 AS REAL ) * col0 * - col2 + 39 * - col2 * + 6 AS col2 FROM tab0 AS cor0
----
-1459
-26730
-668710

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5546
SELECT CAST( NULL AS SIGNED ) / 93 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT CAST ( NULL AS INTEGER ) / 93 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5547
SELECT + + CAST( NULL AS SIGNED ) / col2 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT + + CAST ( NULL AS INTEGER ) / col2 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - 96 AS col0 FROM tab1 AS cor0
----
288
6144
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5549
SELECT + - CAST( 7 AS SIGNED ) * - col1 FROM tab0 cor0
----
602
637
679

skipif mysql # not compatible
query I rowsort label-5549
SELECT + - CAST ( 7 AS INTEGER ) * - col1 FROM tab0 cor0
----
602
637
679

query I rowsort
SELECT ALL + cor0.col1 * col0 + col0 * + 25 * + col0 FROM tab0 AS cor0
----
16464
206124
34020

query I rowsort
SELECT DISTINCT + ( - col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5552
SELECT ALL - + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5553
SELECT + col2 - tab0.col0 DIV - col0 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5553
SELECT + col2 - tab0.col0 / - col0 AS col0 FROM tab0
----
2
34
83

query I rowsort
SELECT DISTINCT - 66 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

query I rowsort
SELECT + col1 * col1 + 76 FROM tab1 AS cor0
----
176
245
752

query I rowsort
SELECT DISTINCT + col2 + + col2 * cor0.col1 + col0 * col0 FROM tab0 AS cor0
----
1323
15465
3447

query I rowsort
SELECT + 66 * - cor0.col1 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT - + col1 * - col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + col1 + 50 FROM tab2 AS cor0
----
-9
19
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5560
SELECT ALL col0 * - CAST( + col1 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL col0 * - CAST ( + col1 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5561
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) + - col2 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) + - col2 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5562
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * col0 + + 47 FROM tab1 cor0
----
-31
-593
-993

query I rowsort
SELECT ALL col0 * cor0.col2 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT cor2.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ALL - col1 * - 62 AS col0 FROM tab1 cor0
----
1612
620
806

query I rowsort
SELECT ALL + cor0.col2 + col1 * - ( - col1 * col0 + col1 ) AS col2 FROM tab2 AS cor0
----
22580
268063
5793

onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT DISTINCT - col2 DIV + ( 68 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT - col2 / + ( 68 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col2 + 4 + 83 * col1 AS col0 FROM tab1 AS cor0
----
1179
2216
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT ALL + + cor0.col1 DIV col1 + 82 * col0 * + col2 - col0 AS col0 FROM tab0 AS cor0
----
2836
598348
64921

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + + cor0.col1 / col1 + 82 * col0 * + col2 - col0 AS col0 FROM tab0 AS cor0
----
2836
598348
64921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT ALL - cor0.col2 - col2 DIV + cor0.col0 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - cor0.col2 - col2 / + cor0.col0 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT ALL + col1 * - col1 * 55 FROM tab0 AS cor0
----
-406780
-455455
-517495

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5574
SELECT + CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5574
SELECT + CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 11 * + col0 * col2 col0 FROM tab2 AS cor0
----
-2048
-22249
-33005

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5578
SELECT CAST( + col1 AS SIGNED ) + tab1.col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-5578
SELECT CAST ( + col1 AS INTEGER ) + tab1.col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + + 28 FROM tab1, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT - CAST( - col2 * + col2 AS SIGNED ) + 5 + + col2 AS col2 FROM tab1
----
2975
3311
9317

skipif mysql # not compatible
query I rowsort label-5580
SELECT - CAST ( - col2 * + col2 AS INTEGER ) + 5 + + col2 AS col2 FROM tab1
----
2975
3311
9317

query I rowsort
SELECT DISTINCT col2 - 7 FROM tab1
----
47
50
89

query I rowsort
SELECT DISTINCT - tab1.col0 + - col0 + col1 AS col0 FROM tab1
----
-118
-147
20

query I rowsort
SELECT col2 + col0 * col0 * - col1 FROM tab1
----
-180
-40903
-83104

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
54
57
96

query I rowsort
SELECT ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - + col0 * - 16 AS col1 FROM tab0 AS cor0
----
1424
384
560

query I rowsort
SELECT ALL 14 + col1 * col2 FROM tab1 AS cor0
----
1262
1418
584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT DISTINCT - col1 * col2 DIV cor0.col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - col1 * col2 / cor0.col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + cor0.col0 * - 81 + - col0 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT ALL - 86 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5591
SELECT CAST( NULL AS SIGNED ) * + 41 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5591
SELECT CAST ( NULL AS INTEGER ) * + 41 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - ( + 63 ) AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5593
SELECT ALL + col0 DIV - 56 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + col0 / - 56 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col2 + + col0 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1482
-605
-857

query I rowsort
SELECT DISTINCT - tab1.col2 * + ( - 61 ) FROM tab1
----
3294
3477
5856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 14 - + col2 col1 FROM tab1 AS cor0
----
1248
702
741

query I rowsort
SELECT DISTINCT col0 * col1 * ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5598
SELECT + CAST( NULL AS DECIMAL ) + + 60 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT + CAST ( NULL AS REAL ) + + 60 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 13 * col0 + - col1 FROM tab2 cor0
----
-1044
-1073
-122

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5600
SELECT + CAST( NULL AS SIGNED ) * + 96 + col1 * 36 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT + CAST ( NULL AS INTEGER ) * + 96 + col1 * 36 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) * col1 + + cor0.col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - 99 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1442
-316
-4701

query I rowsort
SELECT - ( 30 ) * - col0 + 21 FROM tab0 AS cor0
----
1071
2691
741

query I rowsort
SELECT DISTINCT - tab1.col2 + - 9 AS col2 FROM tab1
----
-105
-63
-66

query I rowsort
SELECT col1 * 11 * 38 AS col0 FROM tab0
----
35948
38038
40546

query I rowsort
SELECT + ( - col0 ) + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + ( cor0.col0 ) * - cor0.col0 * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + cor1.col0 FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * col2 * 8 col1 FROM tab2 AS cor0
----
1512
16224
24016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5610
SELECT CAST( + 35 AS SIGNED ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1330
-910
-945

skipif mysql # not compatible
query I rowsort label-5610
SELECT CAST ( + 35 AS INTEGER ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT - col0 * - 46 * + col2 FROM tab2 AS cor0
----
138092
8694
93288

query I rowsort
SELECT col2 * - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT 52 * col2 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT ALL 43 + + col1 FROM tab0
----
129
134
140

query I rowsort
SELECT - 33 - + tab0.col0 AS col1 FROM tab0
----
-122
-57
-68

query I rowsort
SELECT + ( + 15 ) AS col0 FROM tab1
----
15
15
15

query I rowsort
SELECT DISTINCT - 89 * col0 + + col0 AS col1 FROM tab0
----
-2112
-3080
-7832

query I rowsort
SELECT ALL 39 + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b8bfbf30c842116d4cc107054e5f865

query I rowsort
SELECT DISTINCT col1 + - col0 + 9 FROM tab1 cor0
----
-45
-58
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5621
SELECT DISTINCT - col2 DIV tab0.col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT - col2 / tab0.col2 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab2.col0 ) col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + col1 * - col2 * ( - 56 + + col1 * + col1 ) FROM tab2
----
-150518
-5253950
-757485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 * col1 col0 FROM tab2
----
-1343
-2449
-4661

query I rowsort
SELECT tab1.col0 * 69 FROM tab1
----
207
4416
5520

query I rowsort
SELECT - col1 * 73 AS col0 FROM tab1
----
-1898
-730
-949

query I rowsort
SELECT + col0 + col1 * + 4 FROM tab2 cor0
----
131
147
314

query I rowsort
SELECT col0 + col0 * - col0 - - col0 AS col1 FROM tab2 AS cor0
----
-35
-5928
-6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT + col1 DIV ( + 60 ) + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5629
SELECT + col1 / ( + 60 ) + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - col1 + col2 * ( col2 + col0 ) AS col1 FROM tab2 cor0
----
2645
4429
887

query I rowsort
SELECT col1 + 96 * - col2 - - col1 AS col1 FROM tab0 AS cor0
----
-2996
-7690
98

query I rowsort
SELECT + + col1 - 92 FROM tab1 AS cor0
----
-66
-79
-82

query I rowsort
SELECT + + 88 AS col2 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT ALL - ( - col1 ) + - 9 * - col2 FROM tab0 cor0
----
106
383
829

query I rowsort
SELECT DISTINCT - 74 + col1 * col2 * + col2 AS col2 FROM tab2
----
22525
24474
39810

query I rowsort
SELECT DISTINCT + 38 * + col0 + - col1 * + col2 FROM tab1 AS cor0
----
-1290
1792
1862

query I rowsort
SELECT ALL 56 + + col2 - col0 FROM tab0 AS cor0
----
22
49
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col0 ) * - col2 * col1 + + col1 col1 FROM tab1 cor0
----
36490
4238
99853

query I rowsort
SELECT + col1 * + col2 + col2 * - col0 FROM tab0
----
164
2046
62

query I rowsort
SELECT ALL - 22 AS col0 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT ALL - 75 + col2 + col1 AS col0 FROM tab0 AS cor0
----
23
44
98

query I rowsort
SELECT ALL + col2 + col1 * col1 AS col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ( 36 ) + - col0 * - col2 AS col0 FROM tab1 cor0
----
198
3684
7716

query I rowsort
SELECT DISTINCT - + col0 * col2 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5645
SELECT CAST( NULL AS SIGNED ) + + 35 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT CAST ( NULL AS INTEGER ) + + 35 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col1 ) * - col0 + - 98 + col2 FROM tab1 cor0
----
-1042
-122
-681

query I rowsort
SELECT DISTINCT + + col0 + + col1 * + cor0.col2 * - col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT col0 + tab1.col1 * - col1 + col0 FROM tab1
----
-670
-9
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5649
SELECT col1 + + CAST( col2 AS SIGNED ) + col1 * 24 * col1 AS col2 FROM tab2
----
23122
6991
83629

skipif mysql # not compatible
query I rowsort label-5649
SELECT col1 + + CAST ( col2 AS INTEGER ) + col1 * 24 * col1 AS col2 FROM tab2
----
23122
6991
83629

query I rowsort
SELECT col1 + - 12 + 6 FROM tab2
----
11
25
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5651
SELECT - col1 DIV - tab1.col2 + col1 * tab1.col2 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5651
SELECT - col1 / - tab1.col2 + col1 * tab1.col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - col1 + + col1 * - col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT ALL + - 83 * - 46 AS col1 FROM tab2 AS cor0
----
3818
3818
3818

query I rowsort
SELECT DISTINCT col0 * + col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - ( - col0 ) + col2 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2121
3431
8270

onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT + + col2 DIV col0 + col1 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-5656
SELECT + + col2 / col0 + col1 FROM tab0 AS cor0
----
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - cor0.col0 ) col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + 45 * col1 * col0 FROM tab0 AS cor0
----
152775
364455
92880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5659
SELECT CAST( NULL AS DECIMAL ) * cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT CAST ( NULL AS REAL ) * cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - 51 FROM tab0
----
-18
-50
31

query I rowsort
SELECT ALL - col0 + ( - col2 * ( col2 ) ) + col0 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5662
SELECT DISTINCT + + col2 * 38 DIV - col1 + + cor0.col2 col1 FROM tab2 AS cor0
----
-46
-6
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + + col2 * 38 / - col1 + + cor0.col2 col1 FROM tab2 AS cor0
----
-46
-6
10

query I rowsort
SELECT DISTINCT col0 * - 18 AS col2 FROM tab0
----
-1602
-432
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 9 col1 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + + col2 col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT + - 64 * col1 + - ( - col1 ) * - col1 + col0 * + col1 FROM tab1 AS cor0
----
-100
-2262
39

query I rowsort
SELECT ALL + col1 * col0 + - col0 AS col1 FROM tab2
----
1264
210
4524

query I rowsort
SELECT col1 * + 1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - + col1 * 62 + col1 AS col0 FROM tab1 AS cor0
----
-1586
-610
-793

query I rowsort
SELECT + + col1 * 28 + cor0.col2 FROM tab1 AS cor0
----
337
460
782

query I rowsort
SELECT ALL - - col1 - + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + 25 + - col2 FROM tab0 AS cor0
----
-2307
-633
-876

query I rowsort
SELECT DISTINCT - col0 * ( 50 ) FROM tab1 AS cor0
----
-150
-3200
-4000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 81 col1 FROM tab0 AS cor0
----
-10
-16
-5

query I rowsort
SELECT ALL col1 * + col0 + + 28 FROM tab1 cor0
----
106
1068
668

query I rowsort
SELECT DISTINCT - col2 + + 83 * 39 AS col0 FROM tab2 AS cor0
----
3199
3210
3211

query I rowsort
SELECT - col1 * - col1 * - col1 + col2 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-1417689
-704168
-916068

query I rowsort
SELECT DISTINCT + - col1 * col1 * + col2 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + + col0 * + cor0.col2 + + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
15360
324
7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5681
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col1 + 37 AS col1 FROM tab1 AS cor0
----
47
50
63

query I rowsort
SELECT DISTINCT col1 + + col2 + cor0.col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
2113
247
3057

query I rowsort
SELECT DISTINCT - - cor0.col2 - ( col0 ) FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT + + cor0.col2 - - col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5686
SELECT + + cor0.col2 - - col0 / - col0 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + ( + col1 ) * col2 ) + + col1 col2 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT ALL - col0 + - ( 17 ) AS col0 FROM tab0
----
-106
-41
-52

query I rowsort
SELECT DISTINCT col0 + - 56 * col2 AS col2 FROM tab0
----
-1824
-21
-4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 95 + cor0.col1 ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 247b471b99cee168d1898fcd7d13d143

query I rowsort
SELECT col0 * col2 * - 14 AS col0 FROM tab0 AS cor0
----
-102172
-11088
-490

query I rowsort
SELECT col0 + 96 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT - col2 * - col1 * col2 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT cor0.col0 * + 63 + - 18 + cor0.col0 FROM tab0 AS cor0
----
1518
2222
5678

query I rowsort
SELECT DISTINCT - 57 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
-57

query I rowsort
SELECT - col2 * col1 + 48 AS col1 FROM tab0 AS cor0
----
-2790
-49
-7414

query I rowsort
SELECT + col1 * col1 * - 41 + + col2 + col0 FROM tab1 AS cor0
----
-27659
-3979
-6753

query I rowsort
SELECT ALL + 83 AS col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6

query I rowsort
SELECT ALL + ( - 37 ) AS col0 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT col0 * + cor0.col0 DIV cor0.col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5700
SELECT col0 * + cor0.col0 / cor0.col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT - 46 DIV col0 AS col0 FROM tab2
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT - 46 / col0 AS col0 FROM tab2
----
-6
0
0

query I rowsort
SELECT + 28 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT + col1 DIV - col0 + + col0 - + 39 AS col1 FROM tab0 AS cor0
----
-18
-6
49

skipif mysql # not compatible
query I rowsort label-5703
SELECT + col1 / - col0 + + col0 - + 39 AS col1 FROM tab0 AS cor0
----
-18
-6
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5704
SELECT - col1 / cor0.col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT - col1 / cor0.col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 92 * cor0.col0 - + ( + ( + col2 ) ) FROM tab1 AS cor0
----
-330
-5945
-7456

query I rowsort
SELECT DISTINCT + tab2.col1 - - col1 * tab2.col0 AS col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - - 83 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * col2 col2 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5709
SELECT ALL col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * col0 + 98 FROM tab2 AS cor0
----
-5986
-6143
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 + + col0 + + 58 col2 FROM tab1
----
132
151
87

query I rowsort
SELECT ALL + col0 + - 11 + 65 AS col2 FROM tab2
----
132
133
61

query I rowsort
SELECT DISTINCT + col1 + - 98 * + col1 AS col2 FROM tab2
----
-1649
-3007
-5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT col2 DIV - ( - col0 ) + col0 * - 10 FROM tab1 cor0
----
-12
-640
-799

skipif mysql # not compatible
query I rowsort label-5714
SELECT col2 / - ( - col0 ) + col0 * - 10 FROM tab1 cor0
----
-12
-640
-799

query I rowsort
SELECT DISTINCT col1 + - ( + col1 ) FROM tab0 cor0
----
0

query I rowsort
SELECT col1 * - 95 AS col1 FROM tab0 AS cor0
----
-8170
-8645
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 62 col2 FROM tab2 AS cor0
----
1612
1674
2356

onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT - 12 DIV col2 + + col1 * 19 FROM tab1
----
190
247
494

skipif mysql # not compatible
query I rowsort label-5718
SELECT - 12 / col2 + + col1 * 19 FROM tab1
----
190
247
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 * col1 col2 FROM tab0 AS cor0
----
1978
2093
2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-5720
SELECT DISTINCT + 74 - 16 * col0 DIV + 49 FROM tab2 AS cor0
----
49
72

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT + 74 - 16 * col0 / + 49 FROM tab2 AS cor0
----
49
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT DISTINCT + col2 DIV - col2 + col2 + 77 FROM tab0 AS cor0
----
109
158
77

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT + col2 / - col2 + col2 + 77 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT + ( + 93 ) AS col1 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5723
SELECT ALL + col0 * + col2 - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
159
3584
7600

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL + col0 * + col2 - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5724
SELECT ALL + col0 DIV + col2 + ( + col0 ) DIV col0 FROM tab0 AS cor0
----
1
2
36

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + col0 / + col2 + ( + col0 ) / col0 FROM tab0 AS cor0
----
1
2
36

query I rowsort
SELECT ( + col2 ) * + ( col0 ) AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col0 * + col2 * + ( + col2 ) + col0 AS col1 FROM tab1 AS cor0
----
208000
737360
8751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + cor0.col1 col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL 94 - - col1 FROM tab2 AS cor0
----
111
125
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - cor0.col1 - + tab2.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 04c578e24c115d15b64a712464c2e13d

query I rowsort
SELECT ALL - 5 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT ALL - 10 * + col0 * - col0 AS col0 FROM tab1
----
40960
64000
90

query I rowsort
SELECT ALL ( - col0 + + col0 ) FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5734
SELECT DISTINCT CAST( + col0 AS SIGNED ) col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT CAST ( + col0 AS INTEGER ) col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT + col1 DIV col0 + + col2 DIV tab0.col0 FROM tab0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-5736
SELECT + col1 / col0 + + col2 / tab0.col0 FROM tab0
----
1
2
4

query I rowsort
SELECT DISTINCT - - cor0.col1 * + col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 * - col1 + - cor0.col1 + col0 * - col2 FROM tab2 AS cor0
----
-4362
-437
-6689

query I rowsort
SELECT ALL + col2 * + col1 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT ALL + col0 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT DISTINCT + col1 DIV + col0 + + col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + col1 / + col0 + + col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT ALL - + col2 - col2 * - col0 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5744
SELECT col0 * col2 DIV col1 - - col1 * - col0 AS col2 FROM tab1
----
-276
-450
-72

skipif mysql # not compatible
query I rowsort label-5744
SELECT col0 * col2 / col1 - - col1 * - col0 AS col2 FROM tab1
----
-276
-450
-72

query I rowsort
SELECT DISTINCT tab0.col1 * col0 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT tab0.col1 * - col0 + col1 AS col1 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT DISTINCT - + 96 DIV + col1 FROM tab2 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT - + 96 / + col1 FROM tab2 AS cor0
----
-1
-3
-5

query I rowsort
SELECT ALL col1 * cor0.col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + + 37 * - col0 FROM tab2 cor0
----
-259
-2886
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5750
SELECT DISTINCT + col2 DIV cor0.col0 + + col2 + cor0.col0 * col1 FROM tab2 AS cor0
----
1381
247
4628

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + col2 / cor0.col0 + + col2 + cor0.col0 * col1 FROM tab2 AS cor0
----
1381
247
4628

query I rowsort
SELECT 41 * + col1 + col0 FROM tab0 AS cor0
----
3550
3820
4012

query I rowsort
SELECT - col1 + col1 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + + col0 * - col2 + - col2 * + col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1260
-19800
-656820

query I rowsort
SELECT DISTINCT 50 FROM tab0 cor0
----
50

query I rowsort
SELECT - 53 * - 37 FROM tab2
----
1961
1961
1961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5756
SELECT CAST( NULL AS DECIMAL ) + + col0 * tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT CAST ( NULL AS REAL ) + + col0 * tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - col2 * + col1 AS col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT - + 69 + + col2 + col2 FROM tab0 AS cor0
----
-3
-67
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT ALL + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col0 * cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - 67 * 70 AS col0 FROM tab1
----
-4690

onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT - tab2.col0 DIV tab2.col1 + - cor0.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 6045fa65dff4a28cb9fa7bdc0447f6f3

skipif mysql # not compatible
query I rowsort label-5762
SELECT - tab2.col0 / tab2.col1 + - cor0.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 6045fa65dff4a28cb9fa7bdc0447f6f3

query I rowsort
SELECT + col0 + + cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT ( - col2 + - col1 ) FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT col0 - + col1 DIV - tab2.col0 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5765
SELECT col0 - + col1 / - tab2.col0 FROM tab2
----
11
78
79

query I rowsort
SELECT ALL - 6 + col0 FROM tab0
----
18
29
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT - col1 * col1 * col0 + tab0.col1 * + col0 + col2 DIV col0 col2 FROM tab0
----
-175439
-325920
-728910

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5767
SELECT - col1 * col1 * col0 + tab0.col1 * + col0 + col2 / col0 col2 FROM tab0
----
-175439
-325920
-728910

query I rowsort
SELECT ALL tab1.col0 * + col2 + col1 - tab1.col2 AS col1 FROM tab1
----
134
3601
7597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col2 * col1 * + col1 AS col2 FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col1 FROM tab2 WHERE NOT + col0 + col0 - col2 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT DISTINCT + col1 * col1 DIV col2 AS col0 FROM tab0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + col1 * col1 / col2 AS col0 FROM tab0
----
100
224
9409

query III rowsort
SELECT * FROM tab0 WHERE col1 * + col1 - + col0 > col2 * col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT tab1.col0 DIV + col2 col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5774
SELECT tab1.col0 / + col2 col2 FROM tab1
----
0
0
1

query I rowsort
SELECT + col1 * + col2 * - col2 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT col1 * - col1 + + tab1.col2 AS col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ALL + tab1.col1 * - col0 * col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab2 WHERE col0 + + col2 NOT IN ( - col2 )
----
55
58
85

query I rowsort
SELECT + tab1.col0 - + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 * + tab0.col0 * col2 AS col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col2 * col0 - - col2 * col0 FROM tab2
----
378
4056
6004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT ALL + col1 - col2 DIV + col0 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + col1 - col2 / + col0 FROM tab0
----
85
91
97

query I rowsort
SELECT + col2 * col2 + col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT + col2 + - col1 * - col2 AS col2 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT tab1.col0 * - tab1.col2 - col2 * col2 DIV col1 FROM tab1
----
-274
-3972
-8388

skipif mysql # not compatible
query I rowsort label-5786
SELECT tab1.col0 * - tab1.col2 - col2 * col2 / col1 FROM tab1
----
-274
-3972
-8388

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / - col0 > ( NULL )
----

query I rowsort
SELECT + col2 * + col0 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT col1 * col2 + col1 * col1 AS col2 FROM tab0
----
10234
15743
9506

query I rowsort
SELECT ALL col1 + - col0 + + col2 AS col0 FROM tab0 WHERE - col2 + col2 * + col2 - col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = col1 + col1 * - col1 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL - col2 + - col2 * col0 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - col1 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL - - col2 - - col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <> col0 + col2 / col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * col1 - col2 * - col1 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT col1 * + tab0.col1 + col2 * col1 AS col0 FROM tab0
----
10234
15743
9506

query I rowsort
SELECT DISTINCT col0 * - col0 + col0 AS col2 FROM tab2
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT col1 DIV + col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-5801
SELECT col1 / + col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2841
7463
99

query I rowsort
SELECT - tab0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT - col2 * col1 DIV - col0 + col2 col0 FROM tab0 AS cor0
----
151
165
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5803
SELECT - col2 * col1 / - col0 + col2 col0 FROM tab0 AS cor0
----
151
165
3

query I rowsort
SELECT + 13 + + 87 - col2 FROM tab1 cor0
----
4
43
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT col2 * col1 + + col0 DIV - 9 FROM tab0 AS cor0
----
2836
7453
94

skipif mysql # not compatible
query I rowsort label-5805
SELECT col2 * col1 + + col0 / - 9 FROM tab0 AS cor0
----
2836
7453
94

query I rowsort
SELECT - + col0 + 71 FROM tab2 AS cor0
----
-7
-8
64

query I rowsort
SELECT + col0 * - ( tab0.col0 ) + col2 * + ( col1 ) * - col2 + - col2 * - col1 * col0 FROM tab0
----
-26118
2073
44313

query I rowsort
SELECT + + col2 * + 12 + - col1 + + col1 * - ( cor0.col2 ) AS col1 FROM tab1 cor0
----
-109
-782
104

onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT + col2 DIV + 37 - col0 FROM tab2 AS cor0
----
-7
-78
-78

skipif mysql # not compatible
query I rowsort label-5809
SELECT + col2 / + 37 - col0 FROM tab2 AS cor0
----
-7
-78
-78

query I rowsort
SELECT - col1 + - col2 * col1 * col1 FROM tab0 AS cor0
----
-244154
-679133
-9506

query I rowsort
SELECT ALL - - col1 * + cor0.col2 + col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT tab2.col2 * - 96 FROM tab2
----
-2496
-2592
-3648

query I rowsort
SELECT 79 * 27 FROM tab0
----
2133
2133
2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * col0 col0 FROM tab0
----
264
385
979

query I rowsort
SELECT + 41 * col2 + col2 AS col1 FROM tab1
----
2268
2394
4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT DISTINCT col2 DIV 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT col2 / 85 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT + 91 DIV 65 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5817
SELECT + 91 / 65 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT ALL - 29 DIV 41 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL - 29 / 41 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL ( 41 * cor0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to c15533fb6957e815e6e8a2e0338907a5

query I rowsort
SELECT - - col1 * + 16 AS col0 FROM tab2 cor0
----
272
496
944

query I rowsort
SELECT + cor0.col1 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT col0 * - 7 AS col2 FROM tab0 AS cor0
----
-168
-245
-623

query I rowsort
SELECT ALL + col2 * + 29 AS col2 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT ALL + col0 + 6 AS col0 FROM tab0 AS cor0
----
30
41
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT + col1 DIV ( col2 ) + - tab1.col0 * tab1.col1 AS col0 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-5825
SELECT + col1 / ( col2 ) + - tab1.col0 * tab1.col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT tab2.col2 * - col1 + - ( tab2.col2 ) * - col1 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT + CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT + CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5828
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 / col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 / col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 90 * 48 AS col2 FROM tab0 AS cor0
----
4320
4320
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5830
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5831
SELECT CAST( NULL AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT - + ( col0 ) + - col0 DIV - col1 AS col2 FROM tab2 cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-5832
SELECT - + ( col0 ) + - col0 / - col1 AS col2 FROM tab2 cor0
----
-7
-75
-77

query I rowsort
SELECT 46 * + col2 FROM tab0
----
1518
3772
46

query I rowsort
SELECT tab0.col1 * col2 * - col1 - 99 AS col1 FROM tab0
----
-244167
-679141
-9508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + + col1 + ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - + col1 * + col1 * - cor0.col0 AS col0 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT cor0.col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - + col2 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT col2 + ( 48 ) * + col1 * col0 FROM tab0 AS cor0
----
162961
388834
99105

query I rowsort
SELECT DISTINCT col2 + - ( 83 ) * col0 FROM tab1 AS cor0
----
-195
-5255
-6544

query I rowsort
SELECT DISTINCT + col1 * - col0 * + cor0.col1 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT + col1 * 69 AS col1 FROM tab2 AS cor0
----
1173
2139
4071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5845
SELECT ( col0 ) - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT ( col0 ) - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT DISTINCT + col2 + col0 DIV - 5 col2 FROM tab0 cor0
----
-6
29
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + col2 + col0 / - 5 col2 FROM tab0 cor0
----
-6
29
65

query I rowsort
SELECT ALL - col0 + col2 * - 20 AS col0 FROM tab0 AS cor0
----
-1729
-55
-684

query I rowsort
SELECT DISTINCT - 7 * col1 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT ALL - - col2 * 86 + ( - col0 ) AS col1 FROM tab2 cor0
----
2158
2315
3189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 + 3 col1 FROM tab0 AS cor0
----
1092
4
6727

query I rowsort
SELECT + col2 + - col2 * col1 * col1 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT + tab1.col2 * - 41 AS col0 FROM tab1
----
-2214
-2337
-3936

query I rowsort
SELECT ALL - col1 * ( col0 * + col2 ) AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 + + 36 + - col0 FROM tab1
----
29
52
87

query I rowsort
SELECT - col0 * + ( tab0.col2 ) AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 33 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + cor0.col0 col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5858
SELECT ALL + CAST( NULL AS SIGNED ) / - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL + CAST ( NULL AS INTEGER ) / - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5859
SELECT - CAST( NULL AS SIGNED ) + 10 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5859
SELECT - CAST ( NULL AS INTEGER ) + 10 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - cor1.col2 + + cor0.col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to bab603c128469ce0f2f5055f599e7b06

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT DISTINCT + + CAST( - ( col2 ) AS SIGNED ) + + 42 DIV + col1 AS col1 FROM tab2 cor0
----
-26
-36

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT + + CAST ( - ( col2 ) AS INTEGER ) + + 42 / + col1 AS col1 FROM tab2 cor0
----
-26
-36

query I rowsort
SELECT ALL - ( cor0.col1 ) + + col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + 28 + + col1 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT DISTINCT - + col2 + col0 * + col0 AS col2 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT ALL 12 + 6 AS col0 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT ALL + - col2 * + col0 + 36 AS col1 FROM tab0 AS cor0
----
-7262
-756
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 * col2 + - cor0.col1 col2 FROM tab2 cor0
----
1292
158125
237141

query I rowsort
SELECT DISTINCT + col0 + col1 * + ( - col1 + + col2 ) AS col2 FROM tab1 AS cor0
----
1159
534
731

query I rowsort
SELECT - col2 - + cor0.col2 * col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT - 73 * + col2 FROM tab2 AS cor0
----
-1898
-1971
-2774

query I rowsort
SELECT DISTINCT + - col0 * col0 + + ( col1 ) * col2 AS col0 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT ALL - col2 * col1 + + ( + ( + col0 ) ) FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT - cor0.col1 + + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + - col0 * cor0.col1 + + cor0.col1 * col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT + 83 - cor0.col0 * 26 AS col1 FROM tab1 AS cor0
----
-1581
-1997
5

query I rowsort
SELECT ALL - 29 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1711
-493
-899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5877
SELECT - CAST( NULL AS DECIMAL ) * col0 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT - CAST ( NULL AS REAL ) * col0 + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 26 + col2 * + ( - 94 ) AS col1 FROM tab2 AS cor0
----
-2418
-2512
-3546

query I rowsort
SELECT DISTINCT + col0 * + col1 + - 70 AS col2 FROM tab1 AS cor0
----
570
8
970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 42 - - 75 col0 FROM tab2 AS cor0
----
3351
3393
369

query I rowsort
SELECT + col2 - + 21 FROM tab2 AS cor0
----
17
5
6

query I rowsort
SELECT - - col0 + - 67 AS col0 FROM tab0 AS cor0
----
-32
-43
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5883
SELECT col0 DIV + col0 + - col2 * ( col2 ) DIV + ( + col0 ) + col1 FROM tab0
----
17
42
98

skipif mysql # not compatible
query I rowsort label-5883
SELECT col0 / + col0 + - col2 * ( col2 ) / + ( + col0 ) + col1 FROM tab0
----
17
42
98

query I rowsort
SELECT - col0 + + ( col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT 18 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT + - col2 * col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT - CAST( col1 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5887
SELECT - CAST ( col1 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT ALL col1 + tab2.col0 * + col1 + col1 DIV ( col0 ) AS col1 FROM tab2
----
1360
252
4661

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL col1 + tab2.col0 * + col1 + col1 / ( col0 ) AS col1 FROM tab2
----
1360
252
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5889
SELECT DISTINCT cor0.col0 DIV cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT cor0.col0 / cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + col0 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + 46 + - ( + col2 ) FROM tab2 AS cor0
----
19
20
8

query I rowsort
SELECT 96 * + col0 + - col0 AS col2 FROM tab1 AS cor0
----
285
6080
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5893
SELECT DISTINCT + col1 DIV col2 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT + col1 / col2 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 47 - - 50 * col1 FROM tab0 cor0
----
4347
4597
4897

query I rowsort
SELECT ALL + 88 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + 33 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT - 16 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

query I rowsort
SELECT 84 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT col1 * + ( - col1 ) - col0 * + ( 95 * col2 ) AS col1 FROM tab0
----
-12734
-701591
-82636

query I rowsort
SELECT + 25 + - col1 - + cor0.col1 FROM tab1 AS cor0
----
-1
-27
5

query I rowsort
SELECT col2 * - 42 AS col0 FROM tab0 cor0
----
-1386
-3444
-42

query I rowsort
SELECT ( - 37 ) + col2 AS col2 FROM tab2 AS cor0
----
-10
-11
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - - 1 * - ( col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col0 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT - - ( - col2 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5907
SELECT - - ( - col2 ) / - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5908
SELECT DISTINCT col0 DIV - col2 col0 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT col0 / - col2 col0 FROM tab1
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5909
SELECT - col2 + + col0 DIV + 5 AS col1 FROM tab2 AS cor0
----
-11
-23
-26

skipif mysql # not compatible
query I rowsort label-5909
SELECT - col2 + + col0 / + 5 AS col1 FROM tab2 AS cor0
----
-11
-23
-26

query I rowsort
SELECT cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + - col1 col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + col1 + - cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT + 80 + cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5de38f286beb4222178f4b0c29d3b514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * - col0 col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL 4 * col2 AS col2 FROM tab0
----
132
328
4

query I rowsort
SELECT DISTINCT col1 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col0 * - col0 + + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL + cor0.col0 * ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col0 * col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + + col1 * cor0.col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-5923
SELECT + col0 DIV + col1 + - 59 FROM tab2 AS cor0
----
-55
-58
-59

skipif mysql # not compatible
query I rowsort label-5923
SELECT + col0 / + col1 + - 59 FROM tab2 AS cor0
----
-55
-58
-59

query I rowsort
SELECT DISTINCT col0 + - 98 FROM tab2 AS cor0
----
-19
-20
-91

query I rowsort
SELECT + - col1 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 - - cor0.col0 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL col1 * + 80 FROM tab1
----
1040
2080
800

query I rowsort
SELECT DISTINCT + - col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col0 + + 54 AS col2 FROM tab2 cor0
----
132
133
61

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5931
SELECT ALL CAST( - ( - col2 ) AS SIGNED ) + + col2 - col1 FROM tab0 AS cor0
----
-20
-95
73

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL CAST ( - ( - col2 ) AS INTEGER ) + + col2 - col1 FROM tab0 AS cor0
----
-20
-95
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT ALL + col2 * col0 + - col2 - - col0 DIV col2 FROM tab0 AS cor0
----
69
7217
759

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL + col2 * col0 + - col2 - - col0 / col2 FROM tab0 AS cor0
----
69
7217
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col0 * col0 col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - tab0.col0 + - tab0.col0 AS col0 FROM tab0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5935
SELECT DISTINCT tab1.col0 * col0 + - CAST( col2 AS SIGNED ) FROM tab1
----
-45
4039
6304

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT tab1.col0 * col0 + - CAST ( col2 AS INTEGER ) FROM tab1
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + + 5 col2 FROM tab1 cor0
----
167
3653
7685

query I rowsort
SELECT + col1 + - col2 * + col0 * 95 FROM tab1 AS cor0
----
-15364
-346550
-729587

onlyif mysql # use DIV operator for integer division
query I rowsort label-5938
SELECT col0 * col1 + cor0.col2 DIV - col2 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-5938
SELECT col0 * col1 + cor0.col2 / - col2 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT + 95 + col2 * + col2 FROM tab0 AS cor0
----
1184
6819
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5940
SELECT DISTINCT + - col0 + + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT + - col0 + + col0 / col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT + col0 - 15 FROM tab2
----
-8
63
64

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( col0 AS REAL ) FROM tab0 cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT ALL - CAST( NULL AS SIGNED ) + 55 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - CAST ( NULL AS INTEGER ) + 55 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - ( - 86 ) AS col1 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT ( col0 ) DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5945
SELECT ( col0 ) / cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1

query I rowsort
SELECT col0 + - col2 * tab2.col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + 21 AS col2 FROM tab0, tab2 AS cor0
----
21

query I rowsort
SELECT ALL 67 + - col1 FROM tab0
----
-19
-24
-30

query I rowsort
SELECT + col1 + - col2 * col0 + ( + ( col1 ) ) * - 35 * - col0 AS col0 FROM tab2
----
159101
44020
7437

query I rowsort
SELECT DISTINCT 26 + col0 FROM tab1
----
106
29
90

query I rowsort
SELECT ALL - col1 * - tab0.col1 + + col2 AS col0 FROM tab0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT ( col0 ) * col2 DIV + tab0.col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5953
SELECT ( col0 ) * col2 / + tab0.col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + - col2 * col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - + col1 * 12 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT cor0.col0 * - col0 - + col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT - ( - col2 ) * + col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 + col1 + + tab1.col0 * + tab1.col2 AS col0 FROM tab1
----
242
3715
7789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + - col1 + + 36 * 28 col0 FROM tab0 AS cor0
----
2011
7641
912

query I rowsort
SELECT + + ( 46 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
110
126
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT DISTINCT + 40 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT + 40 / + col0 AS col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT - 93 - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-5962
SELECT - 93 - col2 / col2 AS col1 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT + col2 * col0 + col0 * + 97 AS col2 FROM tab2
----
10665
868
9594

onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT - col2 DIV col2 + + col0 DIV col1 AS col0 FROM tab1
----
-1
5
5

skipif mysql # not compatible
query I rowsort label-5964
SELECT - col2 / col2 + + col0 / col1 AS col0 FROM tab1
----
-1
5
5

query I rowsort
SELECT - cor0.col2 + 4 * - col0 AS col0 FROM tab0 AS cor0
----
-129
-141
-438

query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 * col0 + + col1 * col0 FROM tab2 AS cor0
----
115419
5320
57330

query I rowsort
SELECT ALL + col2 * - 38 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT DISTINCT - - col2 * + 25 + cor0.col2 + cor0.col1 * col1 FROM tab2 AS cor0
----
1277
1663
4157

query I rowsort
SELECT DISTINCT + col1 * ( - col1 ) + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab0.col0 + col1 col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT cor1.col2 * cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 00f153c5d80e692faff5018d8701b92d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col1 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + col2 * + 40 FROM tab0 cor0
----
1320
3280
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT ALL col2 * col2 DIV 54 AS col2 FROM tab0 AS cor0
----
0
124
20

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL col2 * col2 / 54 AS col2 FROM tab0 AS cor0
----
0
124
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT - - col0 + 85 DIV col2 AS col1 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-5975
SELECT - - col0 + 85 / col2 AS col1 FROM tab1 AS cor0
----
4
65
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5976
SELECT DISTINCT + + col2 DIV col0 col1 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT + + col2 / col0 col1 FROM tab2 AS cor0
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5977
SELECT col1 DIV 2 AS col1 FROM tab1 AS cor0
----
13
5
6

skipif mysql # not compatible
query I rowsort label-5977
SELECT col1 / 2 AS col1 FROM tab1 AS cor0
----
13
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL - cor0.col1 * + 89 AS col1 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT - 93 * + 53 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4e645d1308c438537bcf38650c80ec21

query I rowsort
SELECT ALL - 56 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT - col0 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + ( ( - col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5984
SELECT CAST( + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5984
SELECT CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col0 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col1 * cor0.col0 + - col1 * ( + col2 + - col1 ) FROM tab2 AS cor0
----
341
6549
986

query I rowsort
SELECT DISTINCT tab2.col1 AS col1 FROM tab2, tab0, tab1 AS cor0
----
17
31
59

query I rowsort
SELECT + 23 * - ( col1 + col1 ) FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT DISTINCT + 89 * cor0.col2 FROM tab0 cor0
----
2937
7298
89

query I rowsort
SELECT ALL 83 * + col1 AS col0 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT - 34 * col2 + + col2 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT ALL - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * col1 col2 FROM tab2 AS cor0
----
177
51
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + ( - col1 ) + + ( 41 ) FROM tab2 AS cor0
----
-18
10
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5997
SELECT DISTINCT 22 DIV + col1 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT 22 / + col1 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT + col2 * cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - + ( + col2 ) + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + 0 * - col0 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL tab0.col2 + + tab0.col0 AS col1 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * - 64 col1 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT - - col2 * + col1 + + cor0.col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT + - ( col2 ) + + 95 * + ( + col1 ) * cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
127509
20561
437138

query I rowsort
SELECT DISTINCT ( 23 ) AS col2 FROM tab1
----
23

query I rowsort
SELECT 65 + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6da0c3b5113a791f92a051c50ee38f97

query I rowsort
SELECT 67 * tab0.col1 - + col2 AS col1 FROM tab0
----
5729
6015
6498

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT - col0 * cor0.col1 DIV - cor0.col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6008
SELECT - col0 * cor0.col1 / - cor0.col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT 77 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT 77 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + col0 + - col2 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT - 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT + col2 + - col1 * - cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT - col0 * ( + col1 ) - - col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + 6 col1 FROM tab1 AS cor0
----
16
19
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT ALL col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col2 * - 53 FROM tab0 AS cor0
----
-1749
-4346
-53

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072

query I rowsort
SELECT - + ( + col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - ( cor0.col0 ) + col1 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
7300
854
97

query I rowsort
SELECT ALL cor1.col2 + + 69 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 765d2fe2a46e1e4f275518010a2391b0

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - ( col1 ) * - col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT col0 * - 60 * + col0 + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-245703
-383904
-486

query I rowsort
SELECT - - 24 + - col0 * col2 FROM tab2 AS cor0
----
-165
-2004
-2978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * - col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 77 + 21 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT - - 92 + - 31 AS col0 FROM tab1 AS cor0
----
61

query I rowsort
SELECT ALL + + ( col0 ) * col2 + col0 * col2 * + col0 + col1 FROM tab1 cor0
----
237130
622093
674

query I rowsort
SELECT 6 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-72
-73

query I rowsort
SELECT DISTINCT + - col0 + col1 * col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT 49 AS col1 FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 * + col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + 59 + col2 * col1 * + col1 + - 88 * col0 AS col1 FROM tab0
----
242015
6388
671269

query I rowsort
SELECT - ( 97 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6035
SELECT DISTINCT cor0.col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT cor0.col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL - col2 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + - col2 * ( cor0.col2 * col0 ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT cor0.col1 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6039
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col0 FROM tab2, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT ALL - CAST( 17 AS SIGNED ) * - col2 + 90 * + col0 FROM tab1 AS cor0
----
1188
6729
8832

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - CAST ( 17 AS INTEGER ) * - col2 + 90 * + col0 FROM tab1 AS cor0
----
1188
6729
8832

query I rowsort
SELECT col0 * + tab2.col2 * - col2 AS col0 FROM tab2
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * - 54 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 13d0c50ea6e80eb807c2f9e93c2aa9a1

query I rowsort
SELECT ALL ( + cor0.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col2 * tab1.col1 * col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL + col1 - - col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT DISTINCT - col1 * - ( + col2 ) * + col0 + - 2 - + col1 DIV col1 AS col1 FROM tab2
----
119649
51031
5856

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - col1 * - ( + col2 ) * + col0 + - 2 - + col1 / col1 AS col1 FROM tab2
----
119649
51031
5856

query I rowsort
SELECT DISTINCT - + 74 * - col1 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT ALL - 44 * col0 + col0 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT 99 * - col1 + + col1 FROM tab0 cor0
----
-8428
-8918
-9506

query I rowsort
SELECT ALL - col2 * + col2 + + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col2 - col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col2 + - col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-6055
SELECT DISTINCT + col1 + col2 DIV col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT + col1 + col2 / col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT 51 - col2 AS col0 FROM tab2
----
13
24
25

query I rowsort
SELECT DISTINCT - 51 + + cor0.col0 * - col0 FROM tab1 cor0
----
-4147
-60
-6451

query I rowsort
SELECT ALL - col1 * + 38 * cor0.col0 - col1 AS col0 FROM tab2 AS cor0
----
-174935
-51051
-8277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * + col1 col0 FROM tab1 AS cor0
----
1482
570
741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( + col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 + + 32 * + tab1.col1 FROM tab1
----
377
512
886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6062
SELECT CAST( NULL AS SIGNED ) + + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT CAST ( NULL AS INTEGER ) + + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col1 * col1 + col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT DISTINCT col0 * 79 AS col1 FROM tab0
----
1896
2765
7031

query I rowsort
SELECT col0 + + 69 AS col2 FROM tab2
----
147
148
76

query I rowsort
SELECT col0 * + 86 AS col2 FROM tab2
----
602
6708
6794

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) = NULL AND ( - col2 + + col2 / - tab0.col2 ) >= NULL ) AND NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT 74 + col0 AS col2 FROM tab0
----
109
163
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT - 23 + col1 DIV tab2.col1 AS col0 FROM tab2
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-6069
SELECT - 23 + col1 / tab2.col1 AS col0 FROM tab2
----
-22
-22
-22

query I rowsort
SELECT - ( ( - col2 ) ) * + col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL cor0.col2 * col1 * + col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + ( - col0 * - col0 ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - 53 * col0 * + tab2.col2 FROM tab2
----
-10017
-107484
-159106

query I rowsort
SELECT ALL - col0 * - col0 + - col2 + col1 FROM tab1
----
-19
4049
6317

query I rowsort
SELECT + col1 * + col0 * - col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 + col2 )
----

query I rowsort
SELECT - col2 * - col1 + col2 + col2 FROM tab0 cor0
----
2904
7626
99

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( col2 ) > + col0
----
86

query I rowsort
SELECT ALL - col0 * col0 * col0 FROM tab2
----
-343
-474552
-493039

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) <> ( NULL )
----

query I rowsort
SELECT ALL col2 * tab0.col0 * col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL col2 + tab1.col2 FROM tab1 WHERE NOT NULL > - col0 * col0
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + col0 NOT IN ( col2 * - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT DISTINCT col0 * col2 DIV col2 + col1 * col0 * + col1 FROM tab0
----
177528
329350
737098

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT col0 * col2 / col2 + col1 * col0 * + col1 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT col0 * + col1 + + col1 * + col1 * + col1 + col1 AS col0 FROM tab0
----
638206
761761
916165

query I rowsort
SELECT col1 * tab0.col1 + - col0 + col2 FROM tab0
----
7405
8274
9375

query I rowsort
SELECT ALL tab0.col1 + + col2 + - tab0.col0 * col2 * col2 FROM tab0
----
-26017
-598263
63

query I rowsort
SELECT DISTINCT col0 * col1 * col0 + + col1 * + col1 AS col0 FROM tab1
----
41060
83369
910

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 * - col1 + col1 FROM tab0 cor0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL + - col1 - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + + col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + col0 + col2 * - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2910
-3121
-9056

onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT - - col1 DIV + col1 + col2 AS col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-6093
SELECT - - col1 / + col1 + col2 AS col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - col0 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + col0 * ( - col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col1 + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col1 * - 27 AS col1 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT - col1 + - 58 * - col0 AS col2 FROM tab1 AS cor0
----
148
3702
4627

query I rowsort
SELECT ALL - col1 + - col1 * + col0 AS col0 FROM tab2 cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6100
SELECT DISTINCT col0 DIV - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT col0 / - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL - col1 * + 82 + - col0 FROM tab2 AS cor0
----
-1473
-2549
-4916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6102
SELECT DISTINCT - CAST( 31 AS SIGNED ) * col1 AS col2 FROM tab2 cor0
----
-1829
-527
-961

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT - CAST ( 31 AS INTEGER ) * col1 AS col2 FROM tab2 cor0
----
-1829
-527
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT ALL - + ( col2 ) DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - + ( col2 ) / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 97 * 77 AS col2 FROM tab0 AS cor0
----
-7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-6105
SELECT DISTINCT cor0.col0 + + 87 DIV + col0 AS col1 FROM tab1 cor0
----
32
65
81

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT cor0.col0 + + 87 / + col0 AS col1 FROM tab1 cor0
----
32
65
81

query I rowsort
SELECT - tab0.col2 + 40 * - 94 FROM tab0
----
-3761
-3793
-3842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL + tab0.col1 + col1 * + col1 AS col0 FROM tab0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT - col1 + col2 DIV - 71 FROM tab0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-6109
SELECT - col1 + col2 / - 71 FROM tab0
----
-86
-92
-97

query I rowsort
SELECT ALL + 11 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT ALL col0 + 3 FROM tab2
----
10
81
82

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + 12 FROM tab0, tab1 AS cor0
----
12

query I rowsort
SELECT - - 91 + + col2 AS col1 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT DISTINCT - col0 * col0 + 76 FROM tab1 AS cor0
----
-4020
-6324
67

query I rowsort
SELECT ALL col1 * ( - col1 ) AS col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6117
SELECT - 32 * col1 * - col1 + col2 - - cor0.col0 * - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6117
SELECT - 32 * col1 * - col1 + col2 - - cor0.col0 * - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + + col0 * - col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT col2 - col1 * CAST( + 95 * col2 AS SIGNED ) FROM tab2 AS cor0
----
-145704
-61332
-79488

skipif mysql # not compatible
query I rowsort label-6119
SELECT col2 - col1 * CAST ( + 95 * col2 AS INTEGER ) FROM tab2 AS cor0
----
-145704
-61332
-79488

query I rowsort
SELECT - ( col0 + col2 ) FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL col1 * - ( - col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL 56 * col0 * - col1 FROM tab2
----
-12152
-257712
-75208

query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL 98 AS col2 FROM tab2
----
98
98
98

query I rowsort
SELECT 66 + col0 FROM tab2 AS cor0
----
144
145
73

query I rowsort
SELECT - cor0.col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT tab2.col1 * col2 + + col0 + col1 FROM tab2
----
1671
742
875

query I rowsort
SELECT DISTINCT col2 - col1 * 44 AS col2 FROM tab0
----
-3751
-3922
-4267

query I rowsort
SELECT ALL + col1 * - col2 + col1 - - col0 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT ALL - col1 * 57 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT - cor0.col2 + - 72 AS col2 FROM tab2 AS cor0
----
-110
-98
-99

query I rowsort
SELECT ALL - col1 * 14 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT DISTINCT - col1 + ( ( col0 ) ) * col0 * - col0 AS col2 FROM tab2 AS cor0
----
-374
-474611
-493056

query I rowsort
SELECT 44 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT col1 * col2 DIV - col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6135
SELECT col1 * col2 / - col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - col1 + + col0 * col0 * col2 AS col1 FROM tab2
----
1292
158125
237141

query I rowsort
SELECT ALL + - cor0.col1 * ( - cor0.col2 ) + col2 * col1 AS col2 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT col1 * - tab1.col0 + tab1.col1 + + col1 FROM tab1
----
-1014
-26
-620

query I rowsort
SELECT ALL + col0 * - col2 + col0 * col2 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - 1 FROM tab0, tab0 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL col1 + - ( - col2 ) FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT ALL - col1 DIV cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - col1 / cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + cor0.col0 * - ( - col2 ) + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col1 + + cor0.col2 * 87 FROM tab1 AS cor0
----
4724
4969
8365

query I rowsort
SELECT ALL - - col0 + - 5 * col1 FROM tab0 AS cor0
----
-366
-406
-450

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT - col0 DIV + col2 - col0 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-6146
SELECT - col0 / + col2 - col0 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT DISTINCT + + col1 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT + col0 DIV col1 + cor0.col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-6148
SELECT + col0 / col1 + cor0.col2 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ALL + - col2 * - 43 * - cor0.col1 FROM tab1 AS cor0
----
-24510
-53664
-60372

query I rowsort
SELECT + col1 * - col0 * col0 + - col0 FROM tab1 AS cor0
----
-237
-41024
-83280

query I rowsort
SELECT - - cor0.col0 * 73 + 15 + col1 AS col0 FROM tab1 AS cor0
----
260
4697
5868

onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT - 69 DIV col1 col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6152
SELECT - 69 / col1 col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT ALL - cor0.col0 + 6 FROM tab2 AS cor0
----
-1
-72
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT 15 + + 15 DIV + col0 AS col0 FROM tab0 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-6154
SELECT 15 + + 15 / + col0 AS col0 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6156
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + cor0.col0 + cor0.col2 * - col0 * col0 FROM tab0 AS cor0
----
-18432
-641601
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + cor0.col0 + cor0.col2 * - col0 * col0 FROM tab0 AS cor0
----
-18432
-641601
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6157
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-6157
SELECT + CAST ( col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * - 30 col0 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT DISTINCT 69 + - col0 AS col0 FROM tab0 AS cor0
----
-20
34
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6160
SELECT DISTINCT - col1 + col2 * CAST( ( + col2 ) + col1 * col0 AS SIGNED ) FROM tab1 AS cor0
----
109043
39719
7102

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT - col1 + col2 * CAST ( ( + col2 ) + col1 * col0 AS INTEGER ) FROM tab1 AS cor0
----
109043
39719
7102

onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT DISTINCT + cor0.col1 * + col2 * 99 + col2 DIV col0 FROM tab1 AS cor0
----
123553
139014
56430

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT + cor0.col1 * + col2 * 99 + col2 / col0 FROM tab1 AS cor0
----
123553
139014
56430

query I rowsort
SELECT + cor0.col0 + - cor0.col0 * + ( 82 ) AS col1 FROM tab1 AS cor0
----
-243
-5184
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col2 FROM tab0
----
-88
-88
-88

query I rowsort
SELECT - 67 AS col0 FROM tab0 cor0
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT ALL - + cor0.col1 - cor0.col0 DIV col0 col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - + cor0.col1 - cor0.col0 / col0 col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL col0 + - col0 * col0 * col0 FROM tab1 cor0
----
-24
-262080
-511920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + 61 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1586
610
793

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 29 * col0 AS REAL ) FROM tab0
----
1015
2581
696

onlyif mysql # use DIV operator for integer division
query I rowsort label-6169
SELECT DISTINCT col2 DIV - 21 FROM tab1
----
-2
-4

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT col2 / - 21 FROM tab1
----
-2
-4

query I rowsort
SELECT col0 * 60 FROM tab1
----
180
3840
4800

query I rowsort
SELECT DISTINCT - + ( col2 ) + col2 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6172
SELECT ALL + CAST( - col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + CAST ( - col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - ( + ( - col1 ) ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL 61 + + 22 * + col0 + + col1 * - 42 FROM tab0 AS cor0
----
-1803
-3023
-3243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 39 col2 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT ALL - + col0 * col2 * - cor0.col2 + + ( ( col0 ) ) FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT - - ( + col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 98 + col2 AS col0 FROM tab0 AS cor0
----
131
180
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 col2 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT ALL + col0 - ( col2 ) * 87 FROM tab1 AS cor0
----
-4695
-4895
-8272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6181
SELECT ALL + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 8 * 87 FROM tab2 AS cor0
----
696

query I rowsort
SELECT DISTINCT - 57 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT ALL - col0 + + col0 DIV cor0.col2 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - col0 + + col0 / cor0.col2 FROM tab0 AS cor0
----
-24
-88
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 + - col2 col1 FROM tab0 AS cor0
----
-13
36
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6186
SELECT DISTINCT + 10 DIV + col0 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT + 10 / + col0 FROM tab1 AS cor0
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6187
SELECT + - 86 * col1 DIV - col0 FROM tab2 AS cor0
----
18
380
65

skipif mysql # not compatible
query I rowsort label-6187
SELECT + - 86 * col1 / - col0 FROM tab2 AS cor0
----
18
380
65

query I rowsort
SELECT 77 + - col2 FROM tab1
----
-19
20
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT DISTINCT - + col1 DIV 12 - col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
-191
-2032
-3003

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT - + col1 / 12 - col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
-191
-2032
-3003

query I rowsort
SELECT - col0 - + 21 FROM tab1 AS cor0
----
-101
-24
-85

query I rowsort
SELECT ALL - - col0 * + 21 * cor0.col2 - col2 FROM tab1 AS cor0
----
161184
3348
76551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6193
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + 76 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + 76 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT col2 DIV + CAST( 93 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6194
SELECT col2 / + CAST ( 93 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 * ( col2 ) * col0 + - col1 * + 96 AS col2 FROM tab2 AS cor0
----
-115708
-58392
-8079

query I rowsort
SELECT ALL + col2 - 22 AS col0 FROM tab2 AS cor0
----
16
4
5

query I rowsort
SELECT + col0 * + 11 - cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
1515
2392
914

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6198
SELECT CAST( NULL AS SIGNED ) * col0 + - col2 * + col1 * cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT CAST ( NULL AS INTEGER ) * col0 + - col2 * + col1 * cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 + tab2.col1 * col0 FROM tab2
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6200
SELECT ALL + - CAST( NULL AS SIGNED ) + - col2 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col2 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 50 * - col2 + col1 FROM tab2 AS cor0
----
1359
1381
1917

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT DISTINCT - - CAST( col1 AS SIGNED ) * + col0 AS col2 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) * + col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - col2 + 12 AS col1 FROM tab2 AS cor0
----
-14
-15
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6204
SELECT ALL + cor0.col0 * 65 + - col0 * + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + cor0.col0 * 65 + - col0 * + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - ( - 41 ) FROM tab1
----
137
95
98

query I rowsort
SELECT DISTINCT ( - 35 ) FROM tab0, tab2 AS cor0
----
-35

query I rowsort
SELECT DISTINCT col0 * col2 * + 67 + col1 AS col2 FROM tab1
----
10880
244426
514573

query I rowsort
SELECT ALL tab0.col1 + ( - col2 ) AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - col2 + - ( + 28 + col1 ) AS col1 FROM tab1
----
-108
-137
-95

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * 58 * col2 AS col2 FROM tab0 AS cor0
----
389992
58
63162

query I rowsort
SELECT - col1 * + col0 - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1280
-156
-2080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + + ( - col1 + col1 ) * + 96 * 33 col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col0 + + 42 * + 5 * + tab0.col0 AS col2 FROM tab0
----
18779
5064
7385

query I rowsort
SELECT - col0 * + col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL - tab0.col2 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT col1 + tab1.col0 * - tab1.col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT + 14 * + col2 AS col2 FROM tab2
----
364
378
532

query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT col2 * 10 FROM tab1
----
540
570
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 93 col0 FROM tab2
----
2418
2511
3534

query I rowsort
SELECT tab2.col0 * + 68 FROM tab2
----
476
5304
5372

query I rowsort
SELECT DISTINCT col0 * + 58 FROM tab0
----
1392
2030
5162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT ALL ( cor0.col1 ) DIV col0 + + 70 * - col1 - col1 * + col0 col2 FROM tab0 AS cor0
----
-10183
-14468
-8081

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL ( cor0.col1 ) / col0 + + 70 * - col1 - col1 * + col0 col2 FROM tab0 AS cor0
----
-10183
-14468
-8081

onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT DISTINCT - col1 DIV - 68 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - col1 / - 68 + col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + tab1.col2 col1 FROM tab1
----
2970
3135
5280

query I rowsort
SELECT DISTINCT ( + col1 * tab1.col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL 70 * - col2 FROM tab2
----
-1820
-1890
-2660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT 48 + col2 DIV + col0 AS col2 FROM tab1
----
48
49
66

skipif mysql # not compatible
query I rowsort label-6230
SELECT 48 + col2 / + col0 AS col2 FROM tab1
----
48
49
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT + col1 DIV + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6231
SELECT + col1 / + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + 41 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + - col2 * - ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6234
SELECT - col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6234
SELECT - col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6235
SELECT col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6236
SELECT - - col1 * - CAST( NULL AS SIGNED ) / + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT - - col1 * - CAST ( NULL AS INTEGER ) / + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * 62 + - 20 AS col0 FROM tab0 AS cor0
----
5312
5622
5994

query I rowsort
SELECT + col1 * ( + 84 ) * - col0 FROM tab1 AS cor0
----
-53760
-6552
-87360

query I rowsort
SELECT ALL + col2 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - 79 col1 FROM tab1 AS cor0
----
-22
-25
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - ( col2 ) col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT - col0 * + 23 FROM tab0 AS cor0
----
-2047
-552
-805

query I rowsort
SELECT DISTINCT - 48 * + 90 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-4320

query I rowsort
SELECT + col2 * + col2 - 49 * - col0 FROM tab2 AS cor0
----
1072
4498
5315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * + col2 - - 48 col2 FROM tab2 cor0
----
74
75
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6246
SELECT DISTINCT cor0.col0 * - CAST( 88 AS SIGNED ) + + col2 + - col1 FROM tab2 AS cor0
----
-620
-6897
-6931

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT cor0.col0 * - CAST ( 88 AS INTEGER ) + + col2 + - col1 FROM tab2 AS cor0
----
-620
-6897
-6931

query I rowsort
SELECT ALL col1 + - 54 AS col1 FROM tab0 AS cor0
----
32
37
43

query I rowsort
SELECT col2 + - ( col2 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col2 * 58 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-12054
-2706
-93

query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab1
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * col0 col1 FROM tab2
----
532
5928
6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6252
SELECT DISTINCT col0 * col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT col0 * col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT DISTINCT - 82 DIV - tab2.col0 FROM tab2
----
1
11

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT - 82 / - tab2.col0 FROM tab2
----
1
11

query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 99 * - ( col1 ) col0 FROM tab2 AS cor0
----
1721
3096
5867

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * 85 * cor0.col0 AS col2 FROM tab0 AS cor0
----
3010
620419
67344

query I rowsort
SELECT ALL 2 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT - col2 + + col2 * col2 + col1 AS col0 FROM tab2
----
1423
709
733

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT + tab2.col1 DIV - col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6260
SELECT + tab2.col1 / - col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col0 * + col2 + col2 * + col0 + - col2 AS col0 FROM tab1
----
15264
270
7239

onlyif mysql # use DIV operator for integer division
query I rowsort label-6262
SELECT - col0 DIV - col1 col1 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6262
SELECT - col0 / - col1 col1 FROM tab2
----
0
1
4

query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab2 WHERE NULL IN ( col0 + col1 * tab2.col1 )
----

query I rowsort
SELECT DISTINCT col2 - col1 * col1 * col1 AS col0 FROM tab2
----
-205353
-29764
-4875

query I rowsort
SELECT - col2 + + tab1.col2 * + col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col0 FROM tab1, tab0 cor0, tab0 cor1, tab2, tab0 AS cor2
----
243 values hashing to 1c735de9402673b354647705c869fc12

query I rowsort
SELECT DISTINCT + col1 * - col2 - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN ( - col1 * + col0 + + col0 ) AND - col2 / - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 - - col2 * + col0 col2 FROM tab2 WHERE NULL BETWEEN + col1 + - col2 AND NULL
----

query I rowsort
SELECT ALL - col0 - - tab1.col2 * + col0 AS col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT - - 49 + col0 * + 79 AS col0 FROM tab1 cor0
----
286
5105
6369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col2 FROM tab1 AS cor0
----
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT + - col0 + - cor0.col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-6275
SELECT + - col0 + - cor0.col0 / col1 AS col1 FROM tab2 AS cor0
----
-7
-79
-83

query I rowsort
SELECT ALL - ( - cor0.col0 ) * 39 FROM tab1 AS cor0
----
117
2496
3120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT DISTINCT - col2 + col1 DIV ( col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT - col2 + col1 / ( col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col0 * 43 AS col0 FROM tab2
----
-301
-3354
-3397

query I rowsort
SELECT - ( + col2 * + ( col2 ) ) - col0 * + tab1.col2 AS col0 FROM tab1
----
-16896
-3078
-6897

query I rowsort
SELECT DISTINCT - col1 * + col0 * ( col0 * col1 ) FROM tab2
----
-1803649
-21178404
-47089

query I rowsort
SELECT ALL 68 * - col0 * col1 + col1 AS col1 FROM tab0 cor0
----
-140266
-230763
-550641

query I rowsort
SELECT cor0.col2 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 - col2 col2 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col0 + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT + cor0.col2 + cor0.col0 * 65 FROM tab0 AS cor0
----
1593
2276
5867

query I rowsort
SELECT + 5 * + col2 AS col0 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT ALL + - col1 + + col0 AS col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + - 3 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * col2 col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL ( - 63 ) AS col0 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT cor0.col2 + - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 575ac18e0b29e1bbd52f40fd9bc485ec

query I rowsort
SELECT 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT tab1.col0 + + 22 AS col2 FROM tab1
----
102
25
86

query I rowsort
SELECT - cor0.col1 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ( - 22 ) + + col2 FROM tab2 AS cor0
----
16
4
5

query I rowsort
SELECT DISTINCT ( col1 ) * col2 * 95 AS col1 FROM tab2
----
145730
61370
79515

query I rowsort
SELECT ALL 31 + col0 AS col0 FROM tab0 AS cor0
----
120
55
66

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab2, tab0 AS cor0
----
-84

query I rowsort
SELECT ( + col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT 75 * + tab1.col2 * - ( 87 ) AS col2 FROM tab1, tab2, tab1 AS cor0
----
-352350
-371925
-626400

query I rowsort
SELECT ALL - 45 + col1 + col2 AS col1 FROM tab1
----
22
35
64

query I rowsort
SELECT + - cor0.col0 + - col1 FROM tab0 cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col2 col0 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6306
SELECT DISTINCT - 78 + + col2 * + 54 + col1 DIV + col2 FROM tab0
----
1706
4351
73

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - 78 + + col2 * + 54 + col1 / + col2 FROM tab0
----
1706
4351
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + 83 + col1 + - 63 * - 97 FROM tab1
----
6204
6207
6220

query I rowsort
SELECT 8 + col1 + col1 FROM tab2
----
126
42
70

query I rowsort
SELECT ALL - + col1 * + col2 * - 48 AS col2 FROM tab2 AS cor0
----
31008
40176
73632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 * 88 col1 FROM tab2 AS cor0
----
-127072
-59488
-64152

query I rowsort
SELECT - col0 * ( col1 ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - cor0.col1 * cor0.col2 col0 FROM tab2 cor0
----
-1292
-1674
-3068

query I rowsort
SELECT DISTINCT - col0 - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - col0 * + ( - col1 * col2 ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-6316
SELECT + - col2 DIV 91 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT + - col2 / 91 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 + col2 * 37 FROM tab0 AS cor0
----
1307
134
3125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab0, tab1 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 - col1 * 55 col1 FROM tab2 cor0
----
-1581
-2542
-4779

query I rowsort
SELECT ALL ( - col0 ) * + col1 + + col2 * col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT + col0 + col1 * col1 AS col0 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT + 72 DIV col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 72 / col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 * 94 AS col1 FROM tab2 AS cor0
----
126242
20398
432588

query I rowsort
SELECT - + ( + col2 ) + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + + ( - col0 ) * - col2 + - ( col0 * + col0 ) - col0 * - col1 AS col0 FROM tab1 AS cor0
----
192
231
2320

query I rowsort
SELECT ALL + 18 + + col1 * 90 FROM tab1 AS cor0
----
1188
2358
918

query I rowsort
SELECT + - ( col1 ) + ( + col2 ) + col0 * - col0 FROM tab2 cor0
----
-53
-6117
-6220

query I rowsort
SELECT DISTINCT + 0 + - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL + - col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col1 + col0 + + col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col1 * ( ( + col0 ) ) + - 69 - - col0 AS col0 FROM tab1 AS cor0
----
1051
12
635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6332
SELECT - col1 * - CAST( - 35 AS SIGNED ) FROM tab0 cor0
----
-3010
-3185
-3395

skipif mysql # not compatible
query I rowsort label-6332
SELECT - col1 * - CAST ( - 35 AS INTEGER ) FROM tab0 cor0
----
-3010
-3185
-3395

query I rowsort
SELECT + col0 + 14 FROM tab1 AS cor0
----
17
78
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT - col1 * col2 + - col2 DIV + col1 AS col0 FROM tab2 cor0
----
-1534
-648
-837

skipif mysql # not compatible
query I rowsort label-6334
SELECT - col1 * col2 + - col2 / + col1 AS col0 FROM tab2 cor0
----
-1534
-648
-837

query I rowsort
SELECT + + col0 - - col2 * col1 * + col0 AS col2 FROM tab1 AS cor0
----
36544
4215
99920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 col1 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT - col0 + - 75 * col2 AS col2 FROM tab1
----
-4053
-4339
-7280

query I rowsort
SELECT + col0 * - 40 * col2 FROM tab0 AS cor0
----
-1400
-291920
-31680

query I rowsort
SELECT + 30 * col2 FROM tab1 AS cor0
----
1620
1710
2880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6340
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor2.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 2df272448a67587d4635afedff278dcc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 27 + - col1 col0 FROM tab2
----
1009
643
698

query I rowsort
SELECT ALL + col1 - + 54 FROM tab1
----
-28
-41
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT ALL + - cor0.col2 * 38 DIV + col2 FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL + - cor0.col2 * 38 / + col2 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT cor2.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col1 * col1 + 48 * + cor0.col2 col2 FROM tab1 AS cor0
----
-3664
-8912
564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - cor0.col1 col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT - tab1.col0 DIV col1 - tab1.col2 * 75 AS col2 FROM tab1
----
-4050
-4281
-7206

skipif mysql # not compatible
query I rowsort label-6349
SELECT - tab1.col0 / col1 - tab1.col2 * 75 AS col2 FROM tab1
----
-4050
-4281
-7206

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4

query I rowsort
SELECT col1 + col0 * 23 * + col2 FROM tab0 AS cor0
----
167945
18302
902

query I rowsort
SELECT - 93 * col2 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT + col0 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + col1 * ( ( - col0 ) ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * + col2 * - 33 FROM tab0 AS cor0
----
-1155
-240834
-26136

query I rowsort
SELECT + + col0 * - 41 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT ALL 77 * - col0 FROM tab1
----
-231
-4928
-6160

query I rowsort
SELECT DISTINCT + - col2 * ( 15 ) AS col0 FROM tab2 AS cor0
----
-390
-405
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6359
SELECT + - col2 DIV - ( - col2 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6359
SELECT + - col2 / - ( - col2 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 + 89 AS col0 FROM tab1 AS cor0
----
-7
32
35

query I rowsort
SELECT ALL - - cor0.col1 * - col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT col2 * 86 + + col1 FROM tab0 AS cor0
----
183
2924
7143

query I rowsort
SELECT + + col2 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + col1 * ( 60 ) AS col1 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT col1 * ( ( col0 ) ) + + tab0.col0 AS col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + 16 + - tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1a51756a0e5f5e3b7b9cdcf3e2a52337

onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT DISTINCT - cor0.col0 + - 28 DIV - col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT - cor0.col0 + - 28 / - col0 FROM tab0 AS cor0
----
-23
-35
-89

query I rowsort
SELECT ALL + col2 * col0 + - col1 FROM tab0 cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT DISTINCT - - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT - - col2 / col2 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6370
SELECT ALL + col1 + col2 DIV + 25 AS col0 FROM tab1 AS cor0
----
12
16
28

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL + col1 + col2 / + 25 AS col0 FROM tab1 AS cor0
----
12
16
28

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + 62 * 74 + col2 FROM tab0 AS cor0
----
4589
4621
4670

query I rowsort
SELECT DISTINCT cor0.col2 * - 74 AS col1 FROM tab1 cor0
----
-3996
-4218
-7104

query I rowsort
SELECT ALL + col2 * 75 AS col1 FROM tab1 AS cor0
----
4050
4275
7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6375
SELECT ALL - CAST( ( - col1 ) AS SIGNED ) + - 17 FROM tab1 AS cor0
----
-4
-7
9

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - CAST ( ( - col1 ) AS INTEGER ) + - 17 FROM tab1 AS cor0
----
-4
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT DISTINCT - 67 DIV + col0 + col0 AS col1 FROM tab1 AS cor0
----
-19
63
80

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT - 67 / + col0 + col0 AS col1 FROM tab1 AS cor0
----
-19
63
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT col0 DIV - tab0.col1 + col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6377
SELECT col0 / - tab0.col1 + col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT - + 0 * - col1 - + col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - + cor0.col1 * - col1 + 37 - col2 FROM tab0 AS cor0
----
7400
8236
9445

query I rowsort
SELECT - 64 * col1 + col0 AS col0 FROM tab0 AS cor0
----
-5480
-5735
-6173

query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT - cor0.col2 - col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT 53 + - cor0.col2 + + 75 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fb46293f99fe3bf2609da6f2d3b5d917

query I rowsort
SELECT 20 * 89 AS col2 FROM tab2
----
1780
1780
1780

query I rowsort
SELECT ALL 30 * col0 * - col2 FROM tab1
----
-109440
-230400
-4860

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab0 cor0
----
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT 0 DIV - col0 + ( + cor0.col2 ) AS col0 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6387
SELECT 0 / - col0 + ( + cor0.col2 ) AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - ( 53 ) * col2 FROM tab2
----
-1378
-1431
-2014

query I rowsort
SELECT + 59 * col1 - + 82 FROM tab2
----
1747
3399
921

query I rowsort
SELECT ALL - + 93 AS col2 FROM tab0 AS cor0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * - 16 col2 FROM tab2 AS cor0
----
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col2 ) col2 FROM tab0 cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6393
SELECT - - CAST( + col0 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-6393
SELECT - - CAST ( + col0 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + ( + 77 ) + - col2 * - col0 FROM tab1 AS cor0
----
239
3725
7757

query I rowsort
SELECT ( + 13 ) AS col2 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT ALL + col1 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL 20 * + 42 + col0 FROM tab2 AS cor0
----
847
918
919

query I rowsort
SELECT DISTINCT + 85 * + 12 - - col1 AS col0 FROM tab2 cor0
----
1037
1051
1079

query I rowsort
SELECT ALL col0 * 67 AS col2 FROM tab2
----
469
5226
5293

query I rowsort
SELECT - col0 + + ( 92 ) AS col1 FROM tab2
----
13
14
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col0 FROM tab0, tab2 AS cor0
----
74

query I rowsort
SELECT + - col0 + col2 * col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT - 9 * ( col2 ) FROM tab2
----
-234
-243
-342

query I rowsort
SELECT DISTINCT - col2 + ( - col1 + - col1 ) * - tab1.col0 FROM tab1
----
102
1223
1984

query I rowsort
SELECT - + cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT ALL + col2 + + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + col2 + + col1 / - col1 AS col1 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT col0 * + col2 - - col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + 50 * col0 FROM tab0
----
1200
1750
4450

query I rowsort
SELECT col0 * - col2 * - 53 - - 63 AS col1 FROM tab1
----
193407
407103
8649

query I rowsort
SELECT ALL + 46 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * 91 col2 FROM tab1
----
4917
5251
8816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6412
SELECT ALL + 41 * tab1.col0 DIV ( - 98 ) AS col0 FROM tab1
----
-1
-26
-33

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + 41 * tab1.col0 / ( - 98 ) AS col0 FROM tab1
----
-1
-26
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 82 col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT ALL - - col0 * - cor0.col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col0 + 89 FROM tab2 AS cor0
----
167
168
96

query I rowsort
SELECT ALL - col0 + - col1 * col0 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT ALL - col2 DIV + CAST( col0 AS SIGNED ) FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - col2 / + CAST ( col0 AS INTEGER ) FROM tab1
----
-1
-18
0

query I rowsort
SELECT + + cor0.col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + col1 * - ( 88 ) FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT ALL + 55 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT + cor0.col2 DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6422
SELECT + cor0.col2 / col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + ( + 33 ) * col1 - tab0.col0 * ( - col0 ) AS col1 FROM tab0
----
10924
3414
4426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 * - col2 col0 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT ALL + + 28 + + col2 FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT 9 * - col0 AS col1 FROM tab1
----
-27
-576
-720

query I rowsort
SELECT ALL - ( cor0.col2 ) + + cor0.col2 - - cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col2 + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6429
SELECT + col2 + CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6429
SELECT + col2 + CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + - col0 + - ( col0 ) FROM tab0 cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6431
SELECT - col1 DIV 20 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT - col1 / 20 AS col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT + col0 DIV + ( col2 ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6432
SELECT + col0 / + ( col2 ) AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col0 * col1 + - col0 + - cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-16109
-2664
-4655

query I rowsort
SELECT col0 * col1 * - tab1.col2 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT tab0.col1 + - col2 + col2 * + col1 AS col1 FROM tab0
----
193
2891
7471

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6437
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - 43 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2322
2451
4128

query I rowsort
SELECT DISTINCT - 39 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-39

query I rowsort
SELECT DISTINCT - col2 * + col2 + 28 * 6 AS col2 FROM tab1 cor0
----
-2748
-3081
-9048

query I rowsort
SELECT col2 + cor0.col2 * ( - col2 ) FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT 8 * - col0 AS col1 FROM tab2
----
-56
-624
-632

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT + 29 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT ( col2 * - col1 ) + + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT 49 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT DISTINCT 37 FROM tab0, tab1 cor0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT ALL col0 * 68 DIV col0 AS col1 FROM tab0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL col0 * 68 / col0 AS col1 FROM tab0
----
68
68
68

query I rowsort
SELECT ALL + col1 + + 22 * + col2 FROM tab2 AS cor0
----
625
631
853

onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT DISTINCT - + cor0.col2 DIV 44 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT - + cor0.col2 / 44 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6451
SELECT ALL col0 * CAST( - 8 AS SIGNED ) AS col2 FROM tab2
----
-56
-624
-632

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL col0 * CAST ( - 8 AS INTEGER ) AS col2 FROM tab2
----
-56
-624
-632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT DISTINCT col2 - + col2 DIV - 62 AS col1 FROM tab1
----
54
57
97

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT col2 - + col2 / - 62 AS col1 FROM tab1
----
54
57
97

query I rowsort
SELECT ALL + tab2.col0 - + ( col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 - - ( 4 ) * col2 FROM tab2
----
139
163
169

query I rowsort
SELECT + col1 * + ( - col0 ) - col1 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + - cor0.col0 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-40
14
25

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab2, tab0 AS cor0
----
16

query I rowsort
SELECT 55 * + 9 AS col0 FROM tab2 AS cor0
----
495
495
495

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT + CAST( NULL AS SIGNED ) + + 6 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT + CAST ( NULL AS INTEGER ) + + 6 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 18 * + col0 AS col0 FROM tab2
----
-126
-1404
-1422

onlyif mysql # use DIV operator for integer division
query I rowsort label-6462
SELECT + col0 DIV - ( + col2 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT + col0 / - ( + col2 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT col2 DIV col0 + col2 AS col0 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-6464
SELECT col2 / col0 + col2 AS col0 FROM tab2 AS cor0
----
26
30
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6465
SELECT + col1 * + col2 + + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT + col1 * + col2 + + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 57 * col0 + + col0 * + ( + 74 ) AS col0 FROM tab2 AS cor0
----
10218
10349
917

onlyif mysql # use DIV operator for integer division
query I rowsort label-6467
SELECT tab2.col0 DIV tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c

skipif mysql # not compatible
query I rowsort label-6467
SELECT tab2.col0 / tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6468
SELECT + 17 DIV 53 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6468
SELECT + 17 / 53 FROM tab0
----
0
0
0

query I rowsort
SELECT 40 + + ( + col2 + + 81 ) * tab2.col0 FROM tab2
----
796
8386
9441

query I rowsort
SELECT + 64 * 96 * - col2 AS col2 FROM tab1
----
-331776
-350208
-589824

query I rowsort
SELECT 84 * col2 * col1 AS col0 FROM tab0
----
238392
626808
8148

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6472
SELECT - ( 48 ) * - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT - ( 48 ) * - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + + cor0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8

query I rowsort
SELECT DISTINCT - 14 + col1 AS col1 FROM tab1 AS cor0
----
-1
-4
12

query I rowsort
SELECT - 50 - - col0 FROM tab0 AS cor0
----
-15
-26
39

query I rowsort
SELECT DISTINCT - 67 + + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
13

query I rowsort
SELECT DISTINCT - + 75 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-42
-74
7

query I rowsort
SELECT DISTINCT col0 * - col1 + col1 * + ( col2 ) AS col0 FROM tab1
----
-70
1326
208

query I rowsort
SELECT - col2 - 10 * - col2 AS col1 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + + col2 * col2 * - col0 + 15 FROM tab0 AS cor0
----
-20
-26121
-598421

query I rowsort
SELECT + 95 + - cor0.col2 * col2 * col1 FROM tab1 AS cor0
----
-119713
-32395
-75721

query I rowsort
SELECT - col1 + col1 * - ( - col2 ) + + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 13 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT + col2 + + col0 * ( - 10 + - col1 ) FROM tab0 AS cor0
----
-2271
-3744
-8907

query I rowsort
SELECT ALL - 11 + + col2 FROM tab1 cor0
----
43
46
85

query I rowsort
SELECT ALL 76 * col1 + col0 + col1 FROM tab0 AS cor0
----
6646
7096
7504

query I rowsort
SELECT - 95 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 + - cor0.col0 * 2 FROM tab1 AS cor0
----
-28
670
9

query I rowsort
SELECT DISTINCT 39 + col2 AS col1 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT col1 * - col2 + col2 + + col2 * col2 FROM tab2 AS cor0
----
-81
-832
836

query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 35 + + tab0.col2 * - col1 FROM tab0
----
-2803
-62
-7427

query I rowsort
SELECT - - 67 * col2 AS col2 FROM tab0 AS cor0
----
2211
5494
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6496
SELECT ALL + col1 + col1 * + CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL + col1 + col1 * + CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL 11 * cor0.col0 AS col2 FROM tab1 AS cor0
----
33
704
880

onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT DISTINCT - cor0.col2 + + col1 DIV + col1 + - 92 * col2 FROM tab1 AS cor0
----
-5021
-5300
-8927

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT - cor0.col2 + + col1 / + col1 + - 92 * col2 FROM tab1 AS cor0
----
-5021
-5300
-8927

query I rowsort
SELECT ALL col1 + 6 FROM tab0 AS cor0
----
103
92
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 7781e11d4a9fc844b7b93d320748f7c1

query I rowsort
SELECT ALL - - col2 * + 37 + 56 * cor0.col0 FROM tab0 AS cor0
----
1997
2565
8018

query I rowsort
SELECT DISTINCT col0 + + 70 * + col1 AS col2 FROM tab0 AS cor0
----
6044
6459
6825

query I rowsort
SELECT 87 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT ALL - + col2 * 47 + - col1 * + col1 FROM tab1 AS cor0
----
-2779
-3214
-4681

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 - + CAST ( col0 AS REAL ) * col2 * - ( + 15 + - col0 ) AS col2 FROM tab2 AS cor0
----
-127686
-192049
1519

query I rowsort
SELECT ALL - col2 + ( - 40 ) * col2 AS col1 FROM tab0 AS cor0
----
-1353
-3362
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6507
SELECT ALL + + col2 * + col1 + + col1 DIV - cor0.col2 FROM tab0 AS cor0
----
0
2836
7461

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL + + col2 * + col1 + + col1 / - cor0.col2 FROM tab0 AS cor0
----
0
2836
7461

query I rowsort
SELECT DISTINCT - - cor0.col1 - col0 AS col1 FROM tab0 cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col1 * cor0.col0 col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 * + col0 col1 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT + 21 * 90 FROM tab0 cor0
----
1890
1890
1890

query I rowsort
SELECT ALL + col2 * ( col1 ) + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + + ( - col0 ) * + col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + - 12 + 20 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT - tab2.col1 + 50 AS col2 FROM tab2
----
-9
19
33

query I rowsort
SELECT DISTINCT - 72 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-72

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 FROM tab2 cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6518
SELECT ALL - col1 + + CAST( cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL - col1 + + CAST ( cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT DISTINCT col1 DIV 79 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT col1 / 79 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT + col1 DIV - 11 AS col2 FROM tab0 AS cor0
----
-7
-8
-8

skipif mysql # not compatible
query I rowsort label-6520
SELECT + col1 / - 11 AS col2 FROM tab0 AS cor0
----
-7
-8
-8

query I rowsort
SELECT ALL + + 79 AS col1 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT col2 * col0 + col0 AS col1 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT col2 + 18 AS col0 FROM tab0
----
100
19
51

query I rowsort
SELECT - ( ( - col2 ) ) * 2 AS col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6525
SELECT + + col2 + + 93 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
34
83

skipif mysql # not compatible
query I rowsort label-6525
SELECT + + col2 + + 93 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + col2 + col0 col1 FROM tab1 AS cor0
----
-21
-519
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + col1 col0 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT ALL - col1 + col1 * ( + col1 ) FROM tab1 AS cor0
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT DISTINCT + - col2 * + col2 + + col1 DIV - cor0.col1 FROM tab0 AS cor0
----
-1090
-2
-6725

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT + - col2 * + col2 + + col1 / - cor0.col1 FROM tab0 AS cor0
----
-1090
-2
-6725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * + 32 col0 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT DISTINCT - - col0 + - col0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + 17 * col1 + - ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-106
-141
-439

query I rowsort
SELECT - + col2 * cor0.col0 + + cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
-1352
-1558
540

query I rowsort
SELECT ALL - 38 + 24 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT ALL + tab0.col1 * - 49 + col2 FROM tab0
----
-4181
-4377
-4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT DISTINCT - 68 DIV cor0.col2 + - col0 FROM tab0 AS cor0
----
-103
-26
-89

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT - 68 / cor0.col2 + - col0 FROM tab0 AS cor0
----
-103
-26
-89

query I rowsort
SELECT ALL cor0.col2 + + col1 - col0 AS col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT 10 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT - col2 DIV + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6539
SELECT - col2 / + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT col2 * 57 * - col0 + + col1 FROM tab0 AS cor0
----
-1898
-415895
-45058

onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT - col1 DIV 66 + 95 AS col0 FROM tab2 cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-6541
SELECT - col1 / 66 + 95 AS col0 FROM tab2 cor0
----
95
95
95

query I rowsort
SELECT - col2 * ( 5 ) AS col1 FROM tab0
----
-165
-410
-5

query I rowsort
SELECT - + col1 + col1 * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT 83 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + - col2 FROM tab1
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + - col2 FROM tab1
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6546
SELECT ALL col1 DIV + col2 AS col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL col1 / + col2 AS col2 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL + + ( 10 ) FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT - col2 * + 94 + col0 AS col2 FROM tab0 AS cor0
----
-3078
-59
-7619

query I rowsort
SELECT + + 9 * + col1 + ( + col0 ) * col2 FROM tab0 AS cor0
----
1566
8117
908

query I rowsort
SELECT + 28 - col2 AS col2 FROM tab0 AS cor0
----
-5
-54
27

query I rowsort
SELECT 70 * col0 + col0 AS col2 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT ALL + cor0.col2 * - 54 * cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 48682178d8cf8e8169e58555453112a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT - 20 DIV - col1 AS col2 FROM tab1 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6553
SELECT - 20 / - col1 AS col2 FROM tab1 cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 - col2 col0 FROM tab1 cor0
----
-25
-3
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT col0 + col0 DIV - col2 + - col0 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6555
SELECT col0 + col0 / - col2 + - col0 FROM tab0
----
-1
-35
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + col2 * + col0 NOT IN ( + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col0 + tab2.col2 FROM tab2 WHERE NOT col2 + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT tab2.col2 * - col1 AS col1 FROM tab2
----
-1534
-646
-837

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( - col2 * - col2 )
----

query I rowsort
SELECT DISTINCT col0 * + col0 * col2 - - col1 AS col2 FROM tab0
----
1322
19094
649613

query I rowsort
SELECT col2 * + tab2.col2 + - col0 AS col2 FROM tab2
----
1365
598
722

query I rowsort
SELECT DISTINCT col1 * col2 - col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT ALL tab0.col0 * tab0.col1 * tab0.col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT + tab2.col0 / - col1 AS col1 FROM tab2 WHERE NOT col2 + col0 NOT IN ( col0 + + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 20 col2 FROM tab2 AS cor0
----
20

query I rowsort
SELECT + + cor0.col1 * col0 * + 19 FROM tab1 AS cor0
----
12160
1482
19760

query I rowsort
SELECT DISTINCT + col0 * col2 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT DISTINCT col2 + - col1 - col0 * col1 FROM tab0
----
-2117
-3491
-8108

query I rowsort
SELECT - tab0.col2 * - col0 + col0 - col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT col2 * + col1 * col2 - col2 AS col1 FROM tab0
----
611802
93621
96

query I rowsort
SELECT ALL col1 + col2 + + col1 AS col2 FROM tab2
----
144
72
89

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( tab1.col1 * - col0 )
----

query I rowsort
SELECT ALL - 45 + + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
117
3603
7635

query I rowsort
SELECT + cor0.col1 + - cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col1 * - col0 * col2 - col0 AS col1 FROM tab1 AS cor0
----
-36544
-4215
-99920

query I rowsort
SELECT col2 - - col0 * - col0 AS col0 FROM tab2 cor0
----
-22
-6058
-6203

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > col0
----

query I rowsort
SELECT col1 * col1 + - cor0.col1 * cor0.col0 AS col0 FROM tab1 cor0
----
-540
-871
598

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT DISTINCT col1 + col2 DIV - col0 FROM tab2 AS cor0 WHERE NOT - col2 IN ( col0 * col0 )
----
17
28
59

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT col1 + col2 / - col0 FROM tab2 AS cor0 WHERE NOT - col2 IN ( col0 * col0 )
----
17
28
59

query I rowsort
SELECT ALL + cor0.col1 * col1 + col2 * col2 FROM tab0 AS cor0
----
15005
8485
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-6581
SELECT DISTINCT - col1 DIV col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - col1 / col1 FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT - col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT + col0 DIV - col2 + + col2 FROM tab0 WHERE NOT col2 IN ( - col0 )
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-6583
SELECT + col0 / - col2 + + col2 FROM tab0 WHERE NOT col2 IN ( - col0 )
----
-34
33
81

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - col1 * col1 + - col0 AS col0 FROM tab0
----
-7420
-8370
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT + col0 DIV tab1.col1 + + col2 DIV tab1.col1 FROM tab1
----
11
13
2

skipif mysql # not compatible
query I rowsort label-6586
SELECT + col0 / tab1.col1 + + col2 / tab1.col1 FROM tab1
----
11
13
2

query I rowsort
SELECT DISTINCT col2 * tab0.col1 + + col0 AS col1 FROM tab0
----
132
2862
7551

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 / - col2 ) IN ( tab0.col0 / + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IN ( col0 / col2 + tab1.col2 * + col0 )
----

query I rowsort
SELECT ALL col2 * tab2.col2 * + col2 + - col0 + - col1 FROM tab2
----
17439
19645
54776

query I rowsort
SELECT col1 * col1 * col1 AS col2 FROM tab0 WHERE NOT NULL IN ( + col0 + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT col1 DIV - col1 - - col1 AS col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6592
SELECT col1 / - col1 - - col1 AS col2 FROM tab1
----
12
25
9

query I rowsort
SELECT - col1 * - col2 + - col0 * + col2 AS col1 FROM tab0
----
164
2046
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT DISTINCT - tab2.col0 DIV + col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT - tab2.col0 / + col1 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 + + col0 - + col1 * tab1.col1 col1 FROM tab1
----
-670
-9
28

query I rowsort
SELECT col1 * - col0 * + col1 AS col2 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * - col2 - 30 col1 FROM tab2 cor0
----
-2058
-219
-3032

onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT ( col2 ) DIV + col1 - + col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6598
SELECT ( col2 ) / + col1 - + col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col1 * 15 FROM tab0 AS cor0
----
1290
1365
1455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6600
SELECT - CAST( col0 AS SIGNED ) * col0 - col1 col1 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6600
SELECT - CAST ( col0 AS INTEGER ) * col0 - col1 col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT - tab1.col1 + + tab1.col1 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col2 col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL - col2 + + col0 * - col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT - + cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT + col1 + - ( + col0 ) - - col0 DIV + ( col2 ) FROM tab0 AS cor0
----
3
62
97

skipif mysql # not compatible
query I rowsort label-6605
SELECT + col1 + - ( + col0 ) - - col0 / + ( col2 ) FROM tab0 AS cor0
----
3
62
97

query I rowsort
SELECT - cor0.col1 * cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT + 88 * - col0 * - tab1.col0 AS col0 FROM tab1
----
360448
563200
792

query I rowsort
SELECT ALL - - 81 * col1 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT 81 + + col2 FROM tab2
----
107
108
119

query I rowsort
SELECT + - col0 + ( 2 ) * - cor0.col2 AS col0 FROM tab2 cor0
----
-130
-155
-61

query I rowsort
SELECT DISTINCT + col0 * 13 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT + cor0.col1 * - 54 AS col2 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT ALL + - col2 * - col2 * col2 AS col1 FROM tab2 AS cor0
----
17576
19683
54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6614
SELECT col0 * + CAST( NULL AS SIGNED ) + tab1.col0 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT col0 * + CAST ( NULL AS INTEGER ) + tab1.col0 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + ( col1 ) AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - col0 * 8 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - cor0.col1 * + 25 AS col2 FROM tab0 AS cor0
----
-2150
-2275
-2425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT DISTINCT - col0 * CAST( 55 AS SIGNED ) AS col1 FROM tab2 cor0
----
-385
-4290
-4345

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT - col0 * CAST ( 55 AS INTEGER ) AS col1 FROM tab2 cor0
----
-385
-4290
-4345

onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT ALL col1 + + ( - col1 ) DIV - col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL col1 + + ( - col1 ) / - col0 FROM tab2 AS cor0
----
17
35
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT ALL + + cor0.col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL + + cor0.col2 / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 + ( col0 ) * + col1 * ( col2 ) FROM tab0 AS cor0
----
3492
664209
68198

onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT col1 DIV + 92 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT col1 / + 92 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 55 * col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
406866
455546
517592

query I rowsort
SELECT ALL + col2 * + 39 FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT ALL + - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - ( tab1.col0 ) + col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT DISTINCT col0 * col2 DIV col1 AS col1 FROM tab0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT col0 * col2 / col1 AS col1 FROM tab0
----
0
80
9

query I rowsort
SELECT ALL + ( col2 ) * + 34 AS col1 FROM tab1 cor0
----
1836
1938
3264

onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT - + 69 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-6630
SELECT - + 69 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT col2 * - col2 + - col1 + cor0.col0 FROM tab2 AS cor0
----
-1382
-657
-753

query I rowsort
SELECT 21 * + col2 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT - 58 + - col2 + col0 * cor0.col2 FROM tab2 AS cor0
----
104
1944
2906

query I rowsort
SELECT + - 65 + + cor0.col1 * 68 AS col0 FROM tab0 AS cor0
----
5783
6123
6531

query I rowsort
SELECT ALL col1 * - col0 + + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - + col0 * 20 * - col1 - col0 * 88 FROM tab0 AS cor0
----
154148
39168
64820

query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col2 + - col0 * + col0 * - col1 AS col2 FROM tab0 AS cor0
----
118826
49569
720893

query I rowsort
SELECT ALL - + col2 - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + cor0.col2 * - col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col1 * - col2 - + 1 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

query I rowsort
SELECT - col0 * + 87 FROM tab0 cor0
----
-2088
-3045
-7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 54 * - col1 col2 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT ALL + + col2 * col2 + - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT + - col1 - - col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - cor0.col1 * - col2 * + col2 + + col1 AS col1 FROM tab1 cor0
----
119821
32500
75842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 76 col1 FROM tab0 AS cor0
----
-13
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6648
SELECT DISTINCT + + col2 * + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + + col2 * + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 1 * 78 FROM tab2 cor0
----
78
78
78

query I rowsort
SELECT - + 41 - 60 FROM tab1 AS cor0
----
-101
-101
-101

query I rowsort
SELECT ALL 26 AS col2 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT + + col1 + + 52 AS col0 FROM tab0 AS cor0
----
138
143
149

query I rowsort
SELECT col0 + - 46 AS col0 FROM tab2 cor0
----
-39
32
33

query I rowsort
SELECT + - 10 * col1 FROM tab2 cor0
----
-170
-310
-590

query I rowsort
SELECT - + 9 + - col0 AS col0 FROM tab1 AS cor0
----
-12
-73
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6656
SELECT + CAST( col1 AS SIGNED ) + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

skipif mysql # not compatible
query I rowsort label-6656
SELECT + CAST ( col1 AS INTEGER ) + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT + col1 - cor0.col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col0 * col2 - + col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-6659
SELECT - col1 DIV - col0 + - cor0.col0 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-6659
SELECT - col1 / - col0 + - cor0.col0 FROM tab1 AS cor0
----
-64
-80
5

query I rowsort
SELECT ALL - + 27 AS col1 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT - - ( 30 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + col0 * 30 AS col1 FROM tab1
----
1920
2400
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 + + cor0.col0 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 94a2d96e9cdaa2dec928ac762592b2c9

query I rowsort
SELECT ALL col2 + 84 FROM tab0
----
117
166
85

query I rowsort
SELECT ALL + col2 + + 51 * col0 AS col2 FROM tab0 AS cor0
----
1257
1786
4621

query I rowsort
SELECT DISTINCT col1 - col0 * ( col0 ) FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT ALL + - 61 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a6799136764c758e8333be2775356203

query I rowsort
SELECT - cor0.col0 * col1 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - - col2 * + col0 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT - - col0 + + col2 * + col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( cor0.col0 * + col1 ) col2 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + col0 + col0 * 10 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT DISTINCT col2 + - 87 AS col0 FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT - col2 - - ( - col1 ) * col1 * - col2 FROM tab0 AS cor0
----
244035
678960
9408

query I rowsort
SELECT ALL - - col2 + 54 * cor0.col2 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT - + col1 + - cor0.col2 FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT col1 DIV 91 - + col1 * - CAST( col0 + - col0 AS SIGNED ) DIV ( col0 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6677
SELECT col1 / 91 - + col1 * - CAST ( col0 + - col0 AS INTEGER ) / ( col0 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * - col1 + col2 * 79 AS col0 FROM tab1
----
5073
5670
8832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6679
SELECT ALL - CAST( - col1 AS SIGNED ) * - col1 - col2 AS col2 FROM tab1 AS cor0
----
-157
-265
-730

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - CAST ( - col1 AS INTEGER ) * - col1 - col2 AS col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT + 28 + ( + col2 ) * 75 + col2 FROM tab1 AS cor0
----
4132
4360
7324

query I rowsort
SELECT ALL - ( col2 ) + col0 FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - + col1 + - col0 * ( - col0 ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
11
5947
6145

query I rowsort
SELECT ALL - 71 + + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT + col1 * + cor0.col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT - + 14 + col2 FROM tab1 AS cor0
----
40
43
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 * col2 col1 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT ( 48 ) AS col2 FROM tab0
----
48
48
48

query I rowsort
SELECT DISTINCT - col0 * + col0 + 59 * - col2 AS col1 FROM tab2 AS cor0
----
-1642
-7618
-8483

onlyif mysql # use DIV operator for integer division
query I rowsort label-6690
SELECT ALL + col1 + + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + col1 + + col0 / + col2 AS col1 FROM tab1 AS cor0
----
11
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6691
SELECT DISTINCT col0 * col0 + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT col0 * col0 + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 50 - col0 * - ( + 50 ) * - col2 FROM tab0 AS cor0
----
-1700
-364850
-39550

query I rowsort
SELECT - 81 * col2 AS col1 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT ALL + col1 * cor0.col2 * col1 + - col1 * + col0 * ( col0 + col0 ) AS col0 FROM tab0 AS cor0
----
-228241
-762580
144996

query I rowsort
SELECT - col0 * - col1 * + col1 AS col0 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT col1 + col2 * ( col0 + col1 ) DIV + ( - col0 * - col1 ) FROM tab0
----
87
92
97

skipif mysql # not compatible
query I rowsort label-6696
SELECT col1 + col2 * ( col0 + col1 ) / + ( - col0 * - col1 ) FROM tab0
----
87
92
97

query I rowsort
SELECT ALL - tab1.col1 * cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bd3a01f5788d5b65679da995dbe27636

query I rowsort
SELECT - 47 + col0 FROM tab2 cor0
----
-40
31
32

query I rowsort
SELECT DISTINCT - 4 + - col1 FROM tab2 AS cor0
----
-21
-35
-63

query I rowsort
SELECT ALL col1 - + col1 * - col2 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT - + 78 * - 36 * + cor0.col2 + + col2 FROM tab0 AS cor0
----
230338
2809
92697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT 56 DIV + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
4
64
80

skipif mysql # not compatible
query I rowsort label-6702
SELECT 56 / + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
4
64
80

query I rowsort
SELECT DISTINCT + + col1 * - 26 FROM tab0 AS cor0
----
-2236
-2366
-2522

query I rowsort
SELECT DISTINCT + 7 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7389
-8274
-9402

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6705
SELECT ALL + CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 97 * + ( + col0 ) FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT DISTINCT + - 40 * col0 + + col1 + - col0 FROM tab2 AS cor0
----
-256
-3139
-3222

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6708
SELECT DISTINCT + col2 + CAST( + 61 AS SIGNED ) FROM tab1
----
115
118
157

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT + col2 + CAST ( + 61 AS INTEGER ) FROM tab1
----
115
118
157

query I rowsort
SELECT ALL col2 + col0 * + col0 AS col1 FROM tab0
----
1226
609
8003

query I rowsort
SELECT 83 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT col0 * - ( - col2 ) * col2 + - col1 AS col1 FROM tab2
----
114059
5072
52669

query I rowsort
SELECT ALL col1 + col1 + tab2.col0 * + col1 AS col2 FROM tab2
----
1377
279
4720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT ALL - col0 + CAST( col0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL - col0 + CAST ( col0 AS INTEGER ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col0 - + cor1.col1 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
-106
-13
-16
-29
-74
-77
-90
-93

query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + + ( - col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( 60 AS REAL ) AS col1 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT 6 * cor0.col1 AS col1 FROM tab0 AS cor0
----
516
546
582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6719
SELECT - 46 + + col2 * col0 * CAST( + 8 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
234
58338
6290

skipif mysql # not compatible
query I rowsort label-6719
SELECT - 46 + + col2 * col0 * CAST ( + 8 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
234
58338
6290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6720
SELECT ALL - CAST( + cor0.col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - CAST ( + cor0.col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - + col2 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-6722
SELECT + cor0.col0 * col2 + + col2 DIV + ( col1 ) AS col2 FROM tab2 cor0
----
189
2028
3004

skipif mysql # not compatible
query I rowsort label-6722
SELECT + cor0.col0 * col2 + + col2 / + ( col1 ) AS col2 FROM tab2 cor0
----
189
2028
3004

query I rowsort
SELECT + + col0 * col1 + - ( col1 ) FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - + col2 * col2 * col1 - - col2 AS col0 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT + cor0.col2 * cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT 24 * col2 + + cor0.col2 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT - col1 + col0 * 89 * col2 AS col1 FROM tab2 AS cor0
----
16790
180433
267161

query I rowsort
SELECT + 95 + - col1 * - tab0.col2 AS col2 FROM tab0
----
192
2933
7557

query I rowsort
SELECT 62 * ( - tab1.col0 * + col1 ) + + col2 * col2 * - col2 AS col0 FROM tab1
----
-162300
-224873
-949216

query I rowsort
SELECT ALL - ( + col2 ) * + col2 AS col2 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6731
SELECT col2 + col0 DIV col2 AS col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-6731
SELECT col2 + col0 / col2 AS col2 FROM tab1
----
54
58
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6732
SELECT DISTINCT col0 DIV + col1 + 66 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT col0 / + col1 + 66 FROM tab0 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6733
SELECT ALL + + cor0.col2 DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + + cor0.col2 / col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 - ( col1 + col2 ) col1 FROM tab2 AS cor0
----
1449
591
779

query I rowsort
SELECT - - 91 + + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
3007
3340
9307

query I rowsort
SELECT + - col1 * cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col1 * col2 * tab1.col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT - + 42 * + col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT col2 * - col1 + + col2 FROM tab0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + col1 col1 FROM tab2
----
-17
-31
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT - - col2 DIV 96 - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6741
SELECT - - col2 / 96 - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + - col2 + col0 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + + col2 + cor0.col1 * - col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT - col2 * 41 * + 7 + + col1 - ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-155
-23354
-9361

query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT - tab1.col1 * + ( + col2 ) DIV col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6746
SELECT - tab1.col1 * + ( + col2 ) / col2 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 36 col2 FROM tab1 AS cor0
----
100
116
39

query I rowsort
SELECT DISTINCT - col1 * + ( - ( cor0.col1 ) ) + + 0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6749
SELECT ALL + col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + col1 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT - col0 DIV + col1 + 87 AS col1 FROM tab1 AS cor0
----
81
81
87

skipif mysql # not compatible
query I rowsort label-6750
SELECT - col0 / + col1 + 87 AS col1 FROM tab1 AS cor0
----
81
81
87

query I rowsort
SELECT + col0 + + col1 + col2 AS col0 FROM tab0 AS cor0
----
133
143
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6753
SELECT - CAST( NULL AS SIGNED ) * - 3 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT - CAST ( NULL AS INTEGER ) * - 3 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 72 AS col0 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + col1 + - 10 - col2 AS col1 FROM tab2 AS cor0
----
-31
-6
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6756
SELECT DISTINCT - + col2 DIV cor0.col2 AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT - + col2 / cor0.col2 AS col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT DISTINCT + - 70 + + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2846
3179
9146

query I rowsort
SELECT DISTINCT 34 + col2 * col1 FROM tab1 AS cor0
----
1282
1438
604

query I rowsort
SELECT ALL - + cor0.col0 * - col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + - col2 + col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT + col2 + ( 39 ) FROM tab2
----
65
66
77

query I rowsort
SELECT col1 + - 68 FROM tab0
----
18
23
29

query I rowsort
SELECT ALL col1 - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT - - ( col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 + + ( + col0 ) col2 FROM tab2 AS cor0
----
-29
42
43

query I rowsort
SELECT DISTINCT + + col0 * col2 * col0 - 89 FROM tab0 AS cor0
----
1136
18919
649433

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL 88 + + col2 AS col0 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT - + 87 * col0 AS col2 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT DISTINCT + + cor0.col1 - + 74 AS col1 FROM tab1 AS cor0
----
-48
-61
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 90 + col2 col0 FROM tab0 cor0
----
-57
-8
-89

query I rowsort
SELECT ALL - 20 + + 87 * col1 FROM tab1 cor0
----
1111
2242
850

query I rowsort
SELECT + col1 + ( col0 ) * - col0 FROM tab0
----
-1128
-490
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 80 ) + - tab1.col2 * col0 col1 FROM tab1
----
-3568
-7600
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 + - col0 * col1 col1 FROM tab0 AS cor0
----
-2121
-3452
-8156

query I rowsort
SELECT - col2 + col1 + ( + 46 ) * col1 AS col2 FROM tab0 cor0
----
4009
4195
4558

query I rowsort
SELECT - col0 - col1 * 22 AS col0 FROM tab0
----
-1916
-2091
-2169

query I rowsort
SELECT - + cor1.col2 + 6 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a6752ecdd161db1c342eb05426e5aecd

query I rowsort
SELECT ALL + col0 * tab2.col2 + col2 + col0 AS col2 FROM tab2
----
2132
223
3119

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6780
SELECT col0 - CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT col0 - CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 98 AS col2 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT ALL col2 + ( + col0 ) AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + col0 * ( + 59 * + col0 ) FROM tab0 AS cor0
----
33984
467339
72275

query I rowsort
SELECT col1 + 93 AS col1 FROM tab1 AS cor0
----
103
106
119

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT ALL col2 * + 70 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT ALL + 55 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) + col1 * - col1 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT + - col0 + ( cor0.col0 * col0 ) AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - cor0.col1 * 77 + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-1309
-2387
-4543

query I rowsort
SELECT ALL + cor0.col0 + - col2 * - 83 + cor0.col1 FROM tab2 cor0
----
2279
2295
3250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col1 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col0 + + ( - 27 ) FROM tab2 AS cor0
----
-20
51
52

query I rowsort
SELECT 52 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 + + col2 col2 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT + col1 + 41 + - col1 * + col1 FROM tab0 AS cor0
----
-7269
-8149
-9271

onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT - col0 + 77 DIV + ( - col1 ) col0 FROM tab2 AS cor0
----
-79
-83
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6797
SELECT - col0 + 77 / + ( - col1 ) col0 FROM tab2 AS cor0
----
-79
-83
-9

query I rowsort
SELECT - - cor0.col0 + 28 + + 88 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2164
3143
7949

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT DISTINCT - ( ( col2 ) ) + col2 DIV 12 FROM tab1 AS cor0
----
-50
-53
-88

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - ( ( col2 ) ) + col2 / 12 FROM tab1 AS cor0
----
-50
-53
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 + + 32 col0 FROM tab2 AS cor0
----
112

query I rowsort
SELECT - ( + 72 ) AS col2 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT 9 + 9 AS col1 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT + + 3 AS col0 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - col2 + + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL + - col1 * col0 * - col2 + 93 * - col0 FROM tab1 AS cor0
----
30528
3933
92400

query I rowsort
SELECT ALL - 39 + + col1 AS col2 FROM tab2 cor0
----
-22
-8
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT col2 + - col2 + 12 DIV col1 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6807
SELECT col2 + - col2 + 12 / col1 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT - 29 * col2 * - 39 AS col0 FROM tab2
----
29406
30537
42978

onlyif mysql # use DIV operator for integer division
query I rowsort label-6809
SELECT ALL - ( - col1 ) + - col0 DIV - tab0.col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL - ( - col1 ) + - col0 / - tab0.col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT + col1 + - col0 + - tab2.col2 * tab2.col0 DIV + col1 col1 FROM tab2
----
-238
-53
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6810
SELECT + col1 + - col0 + - tab2.col2 * tab2.col0 / + col1 col1 FROM tab2
----
-238
-53
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT - 29 * + col2 + col2 * col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-1329
-1454
-2076

skipif mysql # not compatible
query I rowsort label-6811
SELECT - 29 * + col2 + col2 * col2 / col1 AS col2 FROM tab1 AS cor0
----
-1329
-1454
-2076

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6812
SELECT ALL - cor0.col0 * cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - cor0.col0 * cor0.col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 + - ( cor0.col1 ) * - cor0.col2 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col2 - - col1 * + col0 * col1 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT - - ( col1 ) * col0 - - col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col1 + - col2 * + 60 AS col2 FROM tab1
----
-3214
-3410
-5747

query I rowsort
SELECT ALL col1 * + col0 + - col2 * col2 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT DISTINCT - col0 * col1 + + 0 * col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col2 + - col1 * - col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT DISTINCT tab1.col1 + tab1.col0 DIV + CAST( col1 + col1 * - ( + ( col2 ) ) AS SIGNED ) AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT tab1.col1 + tab1.col0 / + CAST ( col1 + col1 * - ( + ( col2 ) ) AS INTEGER ) AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 * col2 + col0 AS col0 FROM tab2
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 - 28 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 71 + + col0 col1 FROM tab1 AS cor0
----
135
151
74

query I rowsort
SELECT - cor0.col2 + 99 FROM tab2 AS cor0
----
61
72
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6826
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 47 + col1 AS col2 FROM tab0 AS cor0
----
133
138
144

onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT + ( 35 ) DIV col1 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6828
SELECT + ( 35 ) / col1 AS col0 FROM tab2
----
0
1
2

query I rowsort
SELECT col0 * ( col0 * col1 ) FROM tab1
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6830
SELECT - CAST( - col1 * + col0 AS SIGNED ) AS col1 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6830
SELECT - CAST ( - col1 * + col0 AS INTEGER ) AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT 35 FROM tab2, tab2 AS cor0
----
35

query I rowsort
SELECT + 74 + col2 AS col2 FROM tab2 AS cor0
----
100
101
112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6833
SELECT - col1 DIV col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6833
SELECT - col1 / col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 * - col0 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ( + col0 ) + col1 + col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT ( + col2 ) * tab2.col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL ( - col2 ) + - tab1.col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL + 31 + - col1 FROM tab1
----
18
21
5

query I rowsort
SELECT + col2 * - ( 31 ) + - col2 FROM tab0 AS cor0
----
-1056
-2624
-32

query I rowsort
SELECT + col2 * col0 + ( + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
16896
3078
6897

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT ALL cor0.col1 DIV + cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL cor0.col1 / + cor0.col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col2 + + 90 + - 30 FROM tab0 AS cor0
----
142
61
93

query I rowsort
SELECT - col1 + - 31 * 0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - cor0.col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - - col2 + 2 AS col2 FROM tab0 cor0
----
3
35
84

query I rowsort
SELECT DISTINCT + 10 * col2 AS col0 FROM tab0
----
10
330
820

query I rowsort
SELECT ALL 84 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT - tab0.col2 * - tab0.col0 + col1 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT col1 + + col0 * - col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + col1 * + tab0.col0 AS col0 FROM tab0
----
2064
3395
8099

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf

query I rowsort
SELECT DISTINCT col1 * ( ( col1 ) ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col2 * - col0 - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( ( col0 ) ) col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + 39 * + col1 FROM tab2 AS cor0
----
1178
2242
646

onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT ALL + col2 + + col2 DIV + col0 col2 FROM tab0 cor0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL + col2 + + col2 / + col0 col2 FROM tab0 cor0
----
1
34
82

query I rowsort
SELECT DISTINCT - cor0.col2 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 + + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - + col2 + + col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + tab2.col1 + col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT col2 * + col1 + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL col0 - col2 FROM tab2 WHERE col1 / col0 <= NULL
----

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
-3
-64
-80

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - col2 * + col2 * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * col2 col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - 47 + + col1 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT - 17 * col2 + col2 * col2 * col2 FROM tab1 AS cor0
----
156546
184224
883104

query I rowsort
SELECT + + col0 * cor0.col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT col2 * - col2 * - col0 + col0 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT ALL col2 + - col1 * - col0 + + col0 AS col1 FROM tab0
----
2121
3431
8270

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6873
SELECT DISTINCT + 31 + - col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1475
707
760

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT + 31 + - col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1475
707
760

query I rowsort
SELECT - cor0.col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6875
SELECT ALL col1 + - col1 + ( - col2 ) DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL col1 + - col1 + ( - col2 ) / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 87 + + col1 AS col2 FROM tab1 AS cor0
----
100
113
97

query I rowsort
SELECT + - 85 + - col1 AS col1 FROM tab0 AS cor0
----
-171
-176
-182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT DISTINCT - - col2 + + col0 * CAST( + col2 + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-391
1376
207

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - - col2 + + col0 * CAST ( + col2 + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-391
1376
207

query I rowsort
SELECT DISTINCT - 34 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-21
-24
-8

query I rowsort
SELECT ALL - 79 FROM tab2 cor0
----
-79
-79
-79

query I rowsort
SELECT - ( - col1 ) * - ( col2 * col1 ) FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * - cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - col2 * - col2 + 19 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2843
-3173
-9101

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col1 AS REAL ) * col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 38 * - cor0.col1 FROM tab0 AS cor0
----
3268
3458
3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT DISTINCT col2 * col0 + cor0.col0 DIV - 86 + col2 * 18 AS col0 FROM tab1 AS cor0
----
1134
4674
9408

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT col2 * col0 + cor0.col0 / - 86 + col2 * 18 AS col0 FROM tab1 AS cor0
----
1134
4674
9408

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL ( - cor0.col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + cor0.col1 + + col0 * 70 AS col1 FROM tab1 AS cor0
----
236
4490
5613

query I rowsort
SELECT ALL - col2 * - col2 + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
1512
2679
7968

query I rowsort
SELECT + + ( col2 ) * col2 * - col1 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + col0 * col1 + col1 + cor0.col0 FROM tab1 AS cor0
----
107
1133
714

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6893
SELECT DISTINCT cor2.col2 / CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT cor2.col2 / CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT ALL col2 DIV 97 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL col2 / 97 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col1 * + cor0.col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT - col2 * col0 + - col0 * col0 FROM tab0
----
-1260
-1368
-15219

query I rowsort
SELECT 5 - - col0 FROM tab2
----
12
83
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT - 95 DIV 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

skipif mysql # not compatible
query I rowsort label-6898
SELECT - 95 / 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - - ( + col0 ) * col1 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ( + cor0.col1 ) - 73 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3c554a43184e17e67888e6a3415606e2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT ALL + - 82 DIV col0 FROM tab1 cor0
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + - 82 / col0 FROM tab1 cor0
----
-1
-1
-27

query I rowsort
SELECT - 98 - col1 * - col1 FROM tab0 AS cor0
----
7298
8183
9311

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6905
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT - CAST ( NULL AS REAL ) / - col0 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6906
SELECT DISTINCT - col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + tab1.col1 * col2 col1 FROM tab1
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6908
SELECT ALL CAST( NULL AS SIGNED ) + col0 * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL CAST ( NULL AS INTEGER ) + col0 * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 5 ) * tab1.col0 + col1 * - ( + col1 ) - col0 FROM tab1
----
-664
151
156

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6910
SELECT + CAST( NULL AS SIGNED ) * col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT + CAST ( NULL AS INTEGER ) * col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 16 + - col2 FROM tab2
----
-10
-11
-22

query I rowsort
SELECT col2 + - ( col1 ) AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT - ( ( - col0 ) ) * ( col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - 92 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT + col1 + col2 * + tab2.col0 AS col1 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + col1 * col2 + col1 col1 FROM tab2
----
1675
745
950

query I rowsort
SELECT - - 30 * + 62 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to e826c3d8ecbe5f03cde2e2eabb092ceb

query I rowsort
SELECT col2 * 67 FROM tab2
----
1742
1809
2546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6919
SELECT CAST( NULL AS SIGNED ) + + col2 + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT CAST ( NULL AS INTEGER ) + + col2 + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - 69 * col1 + 76 FROM tab1 AS cor0
----
-1718
-614
-821

query I rowsort
SELECT - col0 + + col1 * - ( + 27 + + col1 ) AS col0 FROM tab1 cor0
----
-1381
-434
-600

query I rowsort
SELECT - 17 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT + - col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6926
SELECT + - 74 DIV - cor0.col0 FROM tab1 AS cor0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-6926
SELECT + - 74 / - cor0.col0 FROM tab1 AS cor0
----
0
1
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT - 80 DIV + col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6927
SELECT - 80 / + col0 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6928
SELECT ALL + - col0 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL + - col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6929
SELECT ALL - col0 + + col1 DIV + col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - col0 + + col1 / + col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT DISTINCT - cor0.col0 - col1 AS col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + - col2 + - 5 AS col0 FROM tab2 AS cor0
----
-31
-32
-43

query I rowsort
SELECT ALL - col2 * 95 AS col1 FROM tab1 AS cor0
----
-5130
-5415
-9120

query I rowsort
SELECT ALL + col1 * col0 + + cor0.col1 * col2 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
-25723
-85826
-9560

query I rowsort
SELECT - - 95 * - col2 - - col0 AS col0 FROM tab2 AS cor0
----
-2392
-2558
-3531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 * 14 col0 FROM tab2 AS cor0
----
-1106
-1106
-1106

query I rowsort
SELECT ALL + - col1 + 11 FROM tab2 AS cor0
----
-20
-48
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6937
SELECT 21 + col0 - - col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-41
109
43

skipif mysql # not compatible
query I rowsort label-6937
SELECT 21 + col0 - - col1 / - col2 AS col1 FROM tab0 AS cor0
----
-41
109
43

query I rowsort
SELECT ALL + ( 20 ) * col2 AS col1 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT - col2 - - ( - 73 * col1 ) AS col0 FROM tab2
----
-1279
-2290
-4333

query I rowsort
SELECT col1 * col1 + col0 * col1 + + 77 AS col2 FROM tab0
----
12881
16457
9537

onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT + col2 DIV + col1 + + col2 * tab2.col1 + 53 AS col1 FROM tab2
----
1587
701
890

skipif mysql # not compatible
query I rowsort label-6941
SELECT + col2 / + col1 + + col2 * tab2.col1 + 53 AS col1 FROM tab2
----
1587
701
890

query I rowsort
SELECT DISTINCT col0 - col2 * col1 AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - - col1 + + cor0.col2 - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) * cor0.col0 * - col0 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - 1 + col0 * col1 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
118859
49559
720899

onlyif mysql # use DIV operator for integer division
query I rowsort label-6946
SELECT - - 85 * + col0 + - cor0.col2 DIV ( + 87 * - col1 ) FROM tab0 AS cor0
----
2040
2975
7565

skipif mysql # not compatible
query I rowsort label-6946
SELECT - - 85 * + col0 + - cor0.col2 / ( + 87 * - col1 ) FROM tab0 AS cor0
----
2040
2975
7565

onlyif mysql # use DIV operator for integer division
query I rowsort label-6947
SELECT col0 + col0 DIV - col2 - - col2 AS col2 FROM tab1 cor0
----
120
176
57

skipif mysql # not compatible
query I rowsort label-6947
SELECT col0 + col0 / - col2 - - col2 AS col2 FROM tab1 cor0
----
120
176
57

query I rowsort
SELECT ALL + 3 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to ca4c79a162f92454e0544707b897521a

query I rowsort
SELECT + - col2 + + ( cor0.col0 ) * col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col1 + cor0.col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1066
130
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + 79 col2 FROM tab0 AS cor0
----
1896
2765
7031

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38

query I rowsort
SELECT + ( + cor0.col2 ) * - cor0.col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col0 * + 33 AS col0 FROM tab0
----
1155
2937
792

query I rowsort
SELECT ALL - + 49 * tab1.col0 AS col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to ed517240cd5a644f54854c8ee7ce440f

query I rowsort
SELECT tab2.col2 - - 17 AS col2 FROM tab2
----
43
44
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT 34 * + 72 + col0 DIV col1 AS col1 FROM tab1
----
2448
2454
2454

skipif mysql # not compatible
query I rowsort label-6958
SELECT 34 * + 72 + col0 / col1 AS col1 FROM tab1
----
2448
2454
2454

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - ( + tab2.col1 ) * - col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 7 - + col1 AS col0 FROM tab0 AS cor0
----
-104
-93
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6962
SELECT - ( col1 ) * - col1 + + 96 DIV - col1 FROM tab1 AS cor0
----
162
673
91

skipif mysql # not compatible
query I rowsort label-6962
SELECT - ( col1 ) * - col1 + + 96 / - col1 FROM tab1 AS cor0
----
162
673
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col1 + ( col0 ) col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - 15 + - col1 AS col2 FROM tab0
----
-101
-106
-112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT DISTINCT + 78 * col0 DIV + col0 AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + 78 * col0 / + col0 AS col2 FROM tab1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * + cor1.col2 + cor0.col1 col1 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 69547a722a44cbca8e68e8650f1feb47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6967
SELECT ALL + CAST( NULL AS SIGNED ) * 75 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL + CAST ( NULL AS INTEGER ) * 75 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - cor0.col2 * - 67 AS col0 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT DISTINCT 49 * col2 AS col1 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT DISTINCT + 73 * 7 + col1 * - col0 FROM tab2 AS cor0
----
-4091
-832
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col1 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT ALL - ( col2 ) + + col2 * ( col2 ) FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT + ( - 68 ) * + col0 * - 97 + col0 FROM tab2 AS cor0
----
46179
514566
521163

query I rowsort
SELECT + - ( + col2 ) + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - - col2 + + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + + ( - cor0.col1 * - col1 ) col0 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT 92 + col0 AS col1 FROM tab0 AS cor0
----
116
127
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT ALL 36 + col0 * + 0 DIV + col0 FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL 36 + col0 * + 0 / + col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT - ( - col0 ) * 32 + col0 AS col2 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT 88 * cor0.col1 * ( col1 ) FROM tab2 AS cor0
----
25432
306328
84568

query I rowsort
SELECT DISTINCT col0 * 14 FROM tab2
----
1092
1106
98

query I rowsort
SELECT DISTINCT 21 * + 12 AS col2 FROM tab0
----
252

query I rowsort
SELECT ALL + 69 + col2 AS col2 FROM tab1
----
123
126
165

query I rowsort
SELECT ALL 73 * col0 FROM tab1
----
219
4672
5840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col0 col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + 14 - - col0 FROM tab2 AS cor0
----
21
92
93

query I rowsort
SELECT - + col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 - - tab0.col0 * + ( + 25 * col1 ) FROM tab0
----
202386
51576
84840

query I rowsort
SELECT ALL + ( 35 ) + col0 * 98 + + col1 AS col0 FROM tab0
----
2473
3562
8848

query I rowsort
SELECT ALL ( - col1 * - col0 ) + + tab2.col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + ( - col1 ) + - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + 69 * col2 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT - col2 * - col2 * col2 + - 23 FROM tab0 AS cor0
----
-22
35914
551345

onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT ALL - 81 * col0 + + 89 DIV col0 col0 FROM tab0 AS cor0
----
-1941
-2833
-7208

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL - 81 * col0 + + 89 / col0 col0 FROM tab0 AS cor0
----
-1941
-2833
-7208

query I rowsort
SELECT DISTINCT 99 + - cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
106
48
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT ALL + 27 * col2 - cor0.col1 DIV col0 FROM tab1 AS cor0
----
1450
1539
2592

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + 27 * col2 - cor0.col1 / col0 FROM tab1 AS cor0
----
1450
1539
2592

query I rowsort
SELECT - + ( - col1 ) + + 98 FROM tab1 AS cor0
----
108
111
124

query I rowsort
SELECT DISTINCT col2 + - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL 58 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT - - 10 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1258
1414
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col0 col2 FROM tab1 cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT - + col1 + col1 * - col2 + 3 DIV col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif mysql # not compatible
query I rowsort label-7002
SELECT - + col1 + col1 * - col2 + 3 / col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - col0 * 47 + + col0 AS col2 FROM tab1
----
-138
-2944
-3680

query I rowsort
SELECT ALL col0 * col0 * col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL + + col1 + + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - col0 * - col2 + 30 AS col1 FROM tab0 AS cor0
----
65
7328
822

query I rowsort
SELECT - + 29 * col0 AS col0 FROM tab2 AS cor0
----
-203
-2262
-2291

query I rowsort
SELECT + + cor0.col2 * - 92 AS col2 FROM tab0 AS cor0
----
-3036
-7544
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT - + cor0.col2 DIV + col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7009
SELECT - + cor0.col2 / + col2 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7010
SELECT col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * - col0 + col1 * col2 + + ( col1 ) FROM tab2 AS cor0
----
1057
3621
3665

query I rowsort
SELECT DISTINCT col1 + col1 * col1 AS col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT + tab2.col0 * + ( col0 ) + + col0 AS col2 FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7014
SELECT - col0 DIV + 24 FROM tab0 cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-7014
SELECT - col0 / + 24 FROM tab0 cor0
----
-1
-1
-3

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + - col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
-3009
-680
651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7016
SELECT - col1 * CAST( + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7016
SELECT - col1 * CAST ( + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col1 + ( ( + col0 ) ) AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL + - col0 + 31 - col1 FROM tab2 AS cor0
----
-106
-65
-7

query I rowsort
SELECT ALL - col1 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT col2 DIV - 10 col2 FROM tab2 AS cor0
----
-2
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7020
SELECT col2 / - 10 col2 FROM tab2 AS cor0
----
-2
-2
-3

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2772
-7298
-95

query I rowsort
SELECT ALL + col2 * - ( + 8 ) FROM tab1 cor0
----
-432
-456
-768

query I rowsort
SELECT DISTINCT col1 + - col0 * + 6 AS col0 FROM tab0 AS cor0
----
-113
-443
-58

query I rowsort
SELECT ALL + col1 * 39 + col1 * - col0 + col2 FROM tab0 AS cor0
----
-4468
1323
389

onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT DISTINCT + 35 DIV col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + 35 / col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - + 4 + col1 * cor0.col0 FROM tab1 AS cor0
----
1036
636
74

query I rowsort
SELECT ALL + 83 * - col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT + tab2.col2 * 48 FROM tab2
----
1248
1296
1824

query I rowsort
SELECT DISTINCT + 46 FROM tab0, tab2 AS cor0, tab0 cor1
----
46

query I rowsort
SELECT - col1 + - 45 FROM tab2
----
-104
-62
-76

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7032
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7032
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col0 + 99 FROM tab0
----
123
134
188

query I rowsort
SELECT ALL - - col0 + + ( - col2 + - col1 ) AS col2 FROM tab0 AS cor0
----
-63
-84
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT DISTINCT - - cor0.col2 DIV + 4 AS col1 FROM tab1 AS cor0
----
13
14
24

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT - - cor0.col2 / + 4 AS col1 FROM tab1 AS cor0
----
13
14
24

query I rowsort
SELECT - + col1 * 58 AS col1 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT ALL + - col0 * col1 + col0 AS col2 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + - 82 * - 18 + col1 AS col0 FROM tab0 AS cor0
----
1562
1567
1573

query I rowsort
SELECT DISTINCT - col1 + col1 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + 51 - col0 * col2 AS col0 FROM tab2 AS cor0
----
-138
-1977
-2951

query I rowsort
SELECT DISTINCT - + 28 * col2 * col2 AS col1 FROM tab2 AS cor0
----
-18928
-20412
-40432

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT - - col0 - col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-7042
SELECT - - col0 - col1 / + col0 AS col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( - col2 AS REAL ) * col1 FROM tab2
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 6 * col1 col0 FROM tab2
----
181
193
432

query I rowsort
SELECT - col1 + - 62 FROM tab0
----
-148
-153
-159

query I rowsort
SELECT 59 * col2 + + col2 FROM tab0
----
1980
4920
60

query I rowsort
SELECT + 31 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - 96 + col2 FROM tab1 AS cor0
----
-39
-42
0

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 * - col0 AS col0 FROM tab2 AS cor0
----
-1292
-158125
-237141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7050
SELECT CAST( NULL AS SIGNED ) + + 58 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7050
SELECT CAST ( NULL AS INTEGER ) + + 58 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 90 * col1 col0 FROM tab2 AS cor0
----
-120870
-19530
-414180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7052
SELECT ALL col2 * col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL col2 * col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT ALL + col2 * col1 + - col2 DIV col1 FROM tab1 cor0
----
1241
1402
565

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL + col2 * col1 + - col2 / col1 FROM tab1 cor0
----
1241
1402
565

query I rowsort
SELECT DISTINCT col1 + + ( col2 ) AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + col2 + ( - col0 + col0 ) * cor0.col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 8 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT DISTINCT - 8 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
-8

query I rowsort
SELECT - ( - cor0.col0 ) FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * col2 col2 FROM tab1
----
4212
4446
7488

query I rowsort
SELECT - cor0.col2 + - cor1.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 41d5a9bd2085c265bfcaf0f8facfa543

query I rowsort
SELECT ALL 2 * + tab2.col2 AS col1 FROM tab2
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * cor0.col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col1 + - col0 * - col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT 78 * col1 * - ( 9 ) FROM tab1 AS cor0
----
-18252
-7020
-9126

query I rowsort
SELECT DISTINCT 99 * 34 * cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
23562
262548
265914

query I rowsort
SELECT DISTINCT - tab1.col0 + - col0 + - 89 FROM tab1
----
-217
-249
-95

query I rowsort
SELECT + 58 * - 78 FROM tab1, tab1 AS cor0
----
9 values hashing to 0207d9b620a0053935143a149eda698b

query I rowsort
SELECT ALL - col0 + ( tab0.col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + 23 * cor0.col1 + col1 * + col0 FROM tab0 AS cor0
----
10281
4066
5661

query I rowsort
SELECT ALL - col0 + cor0.col2 * + cor0.col1 AS col1 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - col1 * + ( 79 ) FROM tab2
----
-1343
-2449
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT DISTINCT - col1 DIV ( + col0 ) FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT - col1 / ( + col0 ) FROM tab2
----
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT col2 * + col0 DIV col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7073
SELECT col2 * + col0 / col0 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT col1 DIV CAST( col0 AS SIGNED ) + col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-7074
SELECT col1 / CAST ( col0 AS INTEGER ) + col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT ALL - + ( col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( + ( col0 ) ) * + col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * col0 col1 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT + 38 * 50 FROM tab1 AS cor0
----
1900
1900
1900

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT DISTINCT + CAST( + col0 AS SIGNED ) DIV + col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) / + col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + - col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7081
SELECT ALL + + CAST( NULL AS SIGNED ) * 77 - + col0 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + + CAST ( NULL AS INTEGER ) * 77 - + col0 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 49 + col0 AS col1 FROM tab0 cor0
----
138
73
84

query I rowsort
SELECT - col2 - - 33 * + col0 FROM tab0 AS cor0
----
1154
2855
759

query I rowsort
SELECT - ( col2 ) * col0 * col2 + col2 FROM tab1 AS cor0
----
-207879
-737184
-8694

query I rowsort
SELECT ALL - tab2.col2 * ( - col1 * col2 ) - - tab2.col1 FROM tab2
----
22630
24565
39943

query I rowsort
SELECT ALL + tab0.col2 * - col0 * - col2 - col0 AS col1 FROM tab0
----
0
26112
598347

query I rowsort
SELECT + + col2 * + col2 - + col2 * cor0.col1 * - col0 FROM tab0 AS cor0
----
3396
670842
69201

onlyif mysql # use DIV operator for integer division
query I rowsort label-7088
SELECT col0 DIV + col1 + 22 + + col1 * col1 DIV col2 AS col0 FROM tab1 AS cor0
----
29
29
34

skipif mysql # not compatible
query I rowsort label-7088
SELECT col0 / + col1 + 22 + + col1 * col1 / col2 AS col0 FROM tab1 AS cor0
----
29
29
34

query I rowsort
SELECT - - ( cor0.col2 ) AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - + col2 + col2 * + col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - 87 * + col1 * + col1 FROM tab0 AS cor0
----
-643452
-720447
-818583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col2 + - col2 col0 FROM tab1 cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL + 71 * col0 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT 94 - + col1 AS col1 FROM tab0 cor0
----
-3
3
8

query I rowsort
SELECT ALL cor0.col2 * + col2 + - 95 FROM tab2 cor0
----
1349
581
634

query I rowsort
SELECT DISTINCT - col1 * + 25 AS col0 FROM tab2
----
-1475
-425
-775

query I rowsort
SELECT + + col0 + - 69 FROM tab2 AS cor0
----
-62
10
9

query I rowsort
SELECT col1 + - ( col2 ) * - col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT - 20 * col2 + - col2 AS col2 FROM tab2
----
-546
-567
-798

query I rowsort
SELECT DISTINCT - col2 * - col2 * + 20 FROM tab0
----
134480
20
21780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 - + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + 1 * - col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT DISTINCT - 74 - col2 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
-71
-74

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - 74 - col2 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-71
-74

query I rowsort
SELECT - cor0.col1 * ( + col0 ) - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT ( + 67 ) + col0 * - 92 AS col2 FROM tab0 AS cor0
----
-2141
-3153
-8121

query I rowsort
SELECT ALL - 28 * - col1 AS col2 FROM tab2 AS cor0
----
1652
476
868

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to 29937e0f604055b7324ce0c354a5e778

query I rowsort
SELECT ( - cor0.col2 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - col0 + - col2 * + 75 + + 11 FROM tab0
----
-2488
-6228
-99

query I rowsort
SELECT ALL tab0.col2 - - tab0.col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - ( col0 ) - col2 AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT + + col0 + col1 - col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7115
SELECT DISTINCT col2 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT col2 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col2 * + col2 + + col1 + + col0 FROM tab2 AS cor0
----
1540
767
813

query I rowsort
SELECT - + tab0.col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT tab2.col0 + 10 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a7f9858d7adcd26c9f98d68301f7ff86

query I rowsort
SELECT ALL + col2 * tab1.col0 * ( + ( col2 ) * col1 ) AS col2 FROM tab1
----
2079360
227448
9584640

query I rowsort
SELECT - col2 * col1 + + tab0.col2 + col0 FROM tab0
----
-2781
-61
-7291

query I rowsort
SELECT + col0 + + tab1.col1 + + 34 AS col0 FROM tab1
----
108
127
63

query I rowsort
SELECT ALL - ( - col1 ) - - ( - col0 ) * col2 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT + col2 * 87 FROM tab1
----
4698
4959
8352

query I rowsort
SELECT - col1 * col2 + 15 FROM tab0 AS cor0
----
-2823
-7447
-82

query I rowsort
SELECT DISTINCT + + col1 * col1 - col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL + 69 FROM tab1, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL 36 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab0 cor3
----
243 values hashing to f3516e4f0cd257678cfc181cd438fd01

query I rowsort
SELECT + col2 * 54 + col1 - + col2 AS col2 FROM tab2 cor0
----
1437
1462
2031

query I rowsort
SELECT ALL - col2 * - 45 FROM tab1 cor0
----
2430
2565
4320

query I rowsort
SELECT cor0.col1 + ( - col0 ) - - col2 AS col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ALL + - col1 + cor0.col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT ALL - col1 DIV col1 col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - col1 / col1 col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 * col0 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT ALL + - col0 + + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT + 58 + - cor0.col2 FROM tab1 AS cor0
----
-38
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7138
SELECT ALL + ( col2 ) * + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + ( col2 ) * + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 99 * - cor0.col0 + col0 + + col2 AS col0 FROM tab0 AS cor0
----
2433
3501
8982

query I rowsort
SELECT DISTINCT cor1.col2 + + 77 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
110
159
78

query I rowsort
SELECT 71 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7142
SELECT ALL 18 + - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL 18 + - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab1 cor0
----
70

query I rowsort
SELECT DISTINCT - ( cor1.col0 ) FROM tab0, tab1 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - - 37 + - col2 * 46 * 33 AS col2 FROM tab1 AS cor0
----
-145691
-81935
-86489

onlyif mysql # use DIV operator for integer division
query I rowsort label-7147
SELECT + ( - col1 ) DIV ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7147
SELECT + ( - col1 ) / ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT DISTINCT + - col2 DIV + cor0.col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT + - col2 / + cor0.col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT - + 68 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT ALL + col0 * col0 + 15 FROM tab0 AS cor0
----
1240
591
7936

query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 AS col0 FROM tab2 cor0
----
-343
-474552
-493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col0 FROM tab2, tab0 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL - + ( + col0 ) + + cor0.col0 * cor0.col1 * col1 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT DISTINCT + 46 - - col1 FROM tab0 cor0
----
132
137
143

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) + + cor0.col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + ( - col1 ) + - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - col0 + - 44 * - col2 FROM tab0
----
1428
3519
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7158
SELECT - CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT - CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col2 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT ( + tab1.col0 ) + + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT 31 AS col1 FROM tab1
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + cor0.col2 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + ( - col2 ) + - col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + + col0 + + col1 * col0 * + ( + 8 ) AS col0 FROM tab0 AS cor0
----
16536
27195
64881

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT DISTINCT cor0.col2 + + ( - col1 ) DIV cor0.col0 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT cor0.col2 + + ( - col1 ) / cor0.col0 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab2, tab2 AS cor0
----
22

query I rowsort
SELECT col2 * + tab0.col1 * col2 + + 83 * + ( - col1 ) FROM tab0
----
-7954
604331
86516

query I rowsort
SELECT 47 * cor0.col0 + - ( 33 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dfcfa038e9f3f78fffa8574da3294d9b

query I rowsort
SELECT + cor0.col0 + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT - cor0.col1 - - 20 FROM tab2 AS cor0
----
-11
-39
3

query I rowsort
SELECT + 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-7172
SELECT DISTINCT + col1 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + col1 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col0 * ( - 81 ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1977
-2836
-7291

query I rowsort
SELECT ALL + ( col1 ) + 24 * - col2 FROM tab2
----
-565
-617
-895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7175
SELECT cor0.col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT cor0.col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 - ( + col1 * col1 ) AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab2, tab0 AS cor0
----
56

query I rowsort
SELECT 45 * + 71 FROM tab1 AS cor0
----
3195
3195
3195

query I rowsort
SELECT - col2 + + ( col1 * + col1 ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) * + col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - col0 + + 29 AS col1 FROM tab1 AS cor0
----
-35
-51
26

query I rowsort
SELECT - - ( - col0 ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7184
SELECT DISTINCT + tab1.col1 DIV CAST( col0 + - col1 AS SIGNED ) AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT + tab1.col1 / CAST ( col0 + - col1 AS INTEGER ) AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT + col1 * + 42 FROM tab1
----
1092
420
546

query I rowsort
SELECT DISTINCT - ( - col2 * + col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + ( - col2 * - col1 + - tab1.col0 ) FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL tab0.col1 * - col2 - + col2 FROM tab0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7190
SELECT ALL - col2 - - col0 DIV - col1 FROM tab1
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL - col2 - - col0 / - col1 FROM tab1
----
-102
-54
-63

query I rowsort
SELECT ALL + col0 - - tab2.col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7192
SELECT tab2.col0 DIV tab2.col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7192
SELECT tab2.col0 / tab2.col0 AS col1 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT DISTINCT + + cor0.col1 - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + + cor0.col1 - col2 / + col2 AS col1 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7194
SELECT DISTINCT col2 + + col2 DIV col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT col2 + + col2 / col1 FROM tab2 AS cor0
----
26
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7195
SELECT col0 + col2 DIV col0 AS col1 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-7195
SELECT col0 + col2 / col0 AS col1 FROM tab1
----
21
64
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7196
SELECT ALL - 47 * col1 + col1 * - col1 DIV tab0.col1 AS col2 FROM tab0
----
-4128
-4368
-4656

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - 47 * col1 + col1 * - col1 / tab0.col1 AS col2 FROM tab0
----
-4128
-4368
-4656

query I rowsort
SELECT ALL - 56 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT + col1 * + 48 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT - cor0.col0 + cor0.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e97278a6bb7007ec367f7fc7917bd1c7

query I rowsort
SELECT 6 * col2 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT cor0.col0 + col2 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col0 FROM tab1 cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + col1 * cor0.col1 col0 FROM tab2 AS cor0
----
298
3490
970

query I rowsort
SELECT ALL + 82 * col1 - - cor0.col1 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT - + col1 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL col2 * 68 FROM tab0
----
2244
5576
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 * - col0 col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - 59 + - col2 AS col0 FROM tab1 AS cor0
----
-113
-116
-155

onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT DISTINCT + cor0.col1 DIV col2 col0 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT + cor0.col1 / col2 col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col2 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - 85 * - cor0.col1 + + col2 + - col1 AS col2 FROM tab0 AS cor0
----
7257
7726
8149

query I rowsort
SELECT cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + - col2 + - 41 FROM tab1 cor0
----
-17
542
903

onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT + - 54 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT + - 54 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - ( + 72 ) AS col0 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT 25 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT col1 * - 15 AS col2 FROM tab2
----
-255
-465
-885

query I rowsort
SELECT - tab1.col2 + 46 FROM tab1
----
-11
-50
-8

query I rowsort
SELECT ( col2 ) - - col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 60 * - col2 FROM tab0 AS cor0
----
-1980
-4920
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + col0 - col0 col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + ( col2 ) + + tab2.col0 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * col0 + - col1 * + col0 col2 FROM tab0 cor0
----
-1015
-2047
-432

query I rowsort
SELECT ALL - ( tab1.col1 ) * tab1.col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7225
SELECT + CAST( NULL AS SIGNED ) / 75 + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT + CAST ( NULL AS INTEGER ) / 75 + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - 88 * - col1 FROM tab1 AS cor0
----
56320
6864
91520

query I rowsort
SELECT + 85 * col0 AS col2 FROM tab0
----
2040
2975
7565

query I rowsort
SELECT DISTINCT + col0 * 67 * - col0 FROM tab2 AS cor0
----
-3283
-407628
-418147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + 62 col2 FROM tab1 AS cor0
----
72
75
88

query I rowsort
SELECT + col2 * - col0 + col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col1 + + 24 AS col0 FROM tab0 AS cor0
----
-62
-67
-73

query I rowsort
SELECT DISTINCT + col1 - - 37 AS col2 FROM tab0 AS cor0
----
123
128
134

query I rowsort
SELECT DISTINCT + col2 * + 25 AS col0 FROM tab2 AS cor0
----
650
675
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-7234
SELECT DISTINCT col1 DIV 2 FROM tab0 AS cor0
----
43
45
48

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT col1 / 2 FROM tab0 AS cor0
----
43
45
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + col1 + col2 * 2 FROM tab0
----
152
255
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT ALL + ( col2 ) / - CAST( NULL AS SIGNED ) + 48 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + ( col2 ) / - CAST ( NULL AS INTEGER ) + 48 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + tab2.col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT 93 - col1 * + col0 AS col2 FROM tab0
----
-1971
-3302
-8006

onlyif mysql # use DIV operator for integer division
query I rowsort label-7240
SELECT + 72 DIV - 70 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-7240
SELECT + 72 / - 70 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL - col0 * col1 * + 62 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-39690
-4862
-64493

query I rowsort
SELECT ALL col2 - - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT col1 + col2 * cor0.col2 AS col2 FROM tab0 cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7244
SELECT ALL col0 DIV - col0 + cor0.col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL col0 / - col0 + cor0.col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT ALL + cor0.col0 * + 54 + - 37 * col1 AS col2 FROM tab0 AS cor0
----
-1699
-1886
1439

onlyif mysql # use DIV operator for integer division
query I rowsort label-7246
SELECT ALL col1 * 49 + ( col2 ) DIV ( - col1 ) + - col0 * ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
1125
1350
1670

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL col1 * 49 + ( col2 ) / ( - col1 ) + - col0 * ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
1125
1350
1670

query I rowsort
SELECT DISTINCT + col2 * col1 - col0 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT DISTINCT - - col1 * col0 DIV + col1 + - col1 DIV 91 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT - - col1 * col0 / + col1 + - col1 / 91 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - cor0.col2 * 86 + - 98 FROM tab2 AS cor0
----
-2334
-2420
-3366

onlyif mysql # use DIV operator for integer division
query I rowsort label-7250
SELECT ALL + col0 + - col0 DIV + ( - col0 ) FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + col0 + - col0 / + ( - col0 ) FROM tab0 AS cor0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7251
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * col0 * + 73 FROM tab0
----
42048
578233
89425

query I rowsort
SELECT + col1 * - tab1.col2 * 13 FROM tab1
----
-16224
-18252
-7410

query I rowsort
SELECT col1 * - col0 * 14 FROM tab1
----
-1092
-14560
-8960

query I rowsort
SELECT ALL + 6 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL - - col0 + ( col2 ) * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - 56 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7258
SELECT + col2 DIV 63 + 9 FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-7258
SELECT + col2 / 63 + 9 FROM tab2
----
9
9
9

query I rowsort
SELECT - 65 * - col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT ALL + col1 + 10 FROM tab0 AS cor0
----
101
107
96

query I rowsort
SELECT - + 27 AS col0 FROM tab2 cor0
----
-27
-27
-27

query I rowsort
SELECT ALL - + 97 + + col1 AS col0 FROM tab1 AS cor0
----
-71
-84
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col2 + col0 * - ( + 15 ) col0 FROM tab0 AS cor0
----
-3198
-622
-8797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + col0 col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + ( + cor0.col2 ) * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 7 * - 8 AS col0 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT DISTINCT + - col0 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + - col0 + col2 / col1 AS col0 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT + 88 + col1 * + ( col2 + col1 ) * ( col0 ) FROM tab1 AS cor0
----
113448
42968
6328

query I rowsort
SELECT ALL - col2 + - col0 AS col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT + 78 + - col1 * 65 FROM tab1 AS cor0
----
-1612
-572
-767

query I rowsort
SELECT ALL 64 * col0 FROM tab1 AS cor0
----
192
4096
5120

query I rowsort
SELECT col2 + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT col0 * col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT cor0.col2 * col1 - 57 AS col0 FROM tab2 AS cor0
----
1477
589
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-7275
SELECT ALL - - col1 + - col2 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL - - col1 + - col2 / - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - col2 * 76 FROM tab1 AS cor0
----
4104
4332
7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + 57 col2 FROM tab1 cor0
----
-1482
-570
-741

query I rowsort
SELECT + + col2 * ( 91 ) + col0 FROM tab1 AS cor0
----
4917
5251
8816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7279
SELECT DISTINCT - + col1 + + CAST( 28 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
15
18
2

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT - + col1 + + CAST ( 28 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT ALL + col1 + - 3 AS col2 FROM tab1 AS cor0
----
10
23
7

query I rowsort
SELECT 91 + col2 AS col2 FROM tab2
----
117
118
129

query I rowsort
SELECT + + ( cor0.col1 ) + col1 * - col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + + col1 * - col0 * - col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT cor0.col2 * col0 + col2 * cor0.col0 - + cor0.col1 FROM tab2 cor0
----
347
3997
5987

query I rowsort
SELECT + + col2 + 98 * col1 + col1 * cor0.col1 FROM tab1 AS cor0
----
1137
1539
3278

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7286
SELECT DISTINCT + CAST( + 30 AS SIGNED ) - + cor0.col2 FROM tab1, tab2 AS cor0
----
-8
3
4

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT + CAST ( + 30 AS INTEGER ) - + cor0.col2 FROM tab1, tab2 AS cor0
----
-8
3
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT ALL + col1 + col0 DIV - col2 FROM tab1
----
13
26
9

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + col1 + col0 / - col2 FROM tab1
----
13
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT + col1 * 54 - - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
4645
4915
5239

skipif mysql # not compatible
query I rowsort label-7288
SELECT + col1 * 54 - - col1 / col1 AS col0 FROM tab0 AS cor0
----
4645
4915
5239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7289
SELECT ALL - cor0.col0 * CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - cor0.col0 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - - 61 * col2 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT DISTINCT ( + col2 ) + col1 + col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT - col0 * 19 AS col0 FROM tab0
----
-1691
-456
-665

query I rowsort
SELECT 40 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

query I rowsort
SELECT + ( tab0.col2 * + col1 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT 14 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL + col2 * col0 * - ( - ( col2 ) ) + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT ALL cor0.col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + ( col0 ) * ( + col0 + + col0 ) FROM tab2 cor0
----
12168
12482
98

query I rowsort
SELECT DISTINCT col2 + 94 * - tab0.col2 AS col0 FROM tab0
----
-3069
-7626
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + - cor0.col0 * - col1 * col2 col2 FROM tab2 AS cor0
----
113568
44793
5810

query I rowsort
SELECT 14 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col1 FROM tab2
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT col2 * 47 FROM tab0
----
1551
3854
47

query I rowsort
SELECT - + col0 * + 8 + col0 AS col0 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - + col2 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7308
SELECT - ( col1 ) + cor0.col0 DIV 31 FROM tab2 AS cor0
----
-15
-31
-57

skipif mysql # not compatible
query I rowsort label-7308
SELECT - ( col1 ) + cor0.col0 / 31 FROM tab2 AS cor0
----
-15
-31
-57

query I rowsort
SELECT ALL + 58 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT tab2.col0 * 24 * - col2 + - tab2.col0 AS col1 FROM tab2
----
-4543
-48750
-72127

query I rowsort
SELECT ALL col0 - 36 FROM tab2
----
-29
42
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-7312
SELECT - col1 + col0 - + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-23
53
67

skipif mysql # not compatible
query I rowsort label-7312
SELECT - col1 + col0 - + col0 / col2 AS col0 FROM tab1 AS cor0
----
-23
53
67

query I rowsort
SELECT col2 * ( 99 + col1 ) AS col0 FROM tab2
----
3510
4108
4408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7314
SELECT - CAST( + 19 AS SIGNED ) + col2 - ( + col2 ) * + col1 FROM tab2
----
-1527
-627
-829

skipif mysql # not compatible
query I rowsort label-7314
SELECT - CAST ( + 19 AS INTEGER ) + col2 - ( + col2 ) * + col1 FROM tab2
----
-1527
-627
-829

query I rowsort
SELECT + ( col1 ) + col1 * + ( - 35 * - col0 ) AS col1 FROM tab1 AS cor0
----
22410
2756
36413

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( ( col2 / - col0 ) AS REAL ) * col1 * col0 + col0 FROM tab2 AS cor0
----
658
78
79

query I rowsort
SELECT DISTINCT + col2 + 88 AS col1 FROM tab0
----
121
170
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7318
SELECT - CAST( NULL AS SIGNED ) * ( cor0.col1 * col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7318
SELECT - CAST ( NULL AS INTEGER ) * ( cor0.col1 * col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT DISTINCT cor0.col1 DIV col1 col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT cor0.col1 / col1 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col1 + + 45 * col2 FROM tab1 AS cor0
----
2456
2575
4333

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7321
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7322
SELECT + CAST( NULL AS SIGNED ) + - cor0.col1 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col1 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col0 * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 - - cor0.col0 NOT BETWEEN - col0 + col1 + col2 * + cor0.col0 AND ( - cor0.col0 + col0 + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT - tab1.col1 + col0 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col1 + + tab2.col2 AS col2 FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 * col1 col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE col2 BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( col2 / tab1.col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col1 * col1 + + col2 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 - - col2 * col2 AS col1 FROM tab1
----
2862
3192
9120

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 + tab0.col1 FROM tab0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * col1 ) = col0
----

query I rowsort
SELECT col2 + tab1.col2 FROM tab1 WHERE ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - tab0.col1 col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col1 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7338
SELECT ALL - + col2 * col1 + + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL - + col2 * col1 + + col1 / col1 AS col1 FROM tab2 AS cor0
----
-1533
-645
-836

query I rowsort
SELECT col1 + + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-7340
SELECT DISTINCT - col1 DIV - col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
37
7299
795

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - col1 / - col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
37
7299
795

onlyif mysql # use DIV operator for integer division
query I rowsort label-7341
SELECT DISTINCT col1 DIV col0 + col2 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT col1 / col0 + col2 FROM tab0 cor0
----
3
36
83

query I rowsort
SELECT DISTINCT col1 * + col0 + - col0 * + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * col2 - + col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT col2 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + col1 + cor0.col1 + col2 AS col1 FROM tab0 cor0
----
195
205
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * + col0 col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col0 - col2 * tab1.col0 AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT + col1 + - col0 + + col2 * col1 FROM tab0
----
159
2900
7464

onlyif mysql # use DIV operator for integer division
query I rowsort label-7349
SELECT ALL + col2 * + cor0.col2 + + col2 DIV col0 + col0 * - col2 FROM tab2 AS cor0
----
-1352
-1558
543

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL + col2 * + cor0.col2 + + col2 / col0 + col0 * - col2 FROM tab2 AS cor0
----
-1352
-1558
543

query I rowsort
SELECT DISTINCT + - col0 + - col2 * - col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col1 + + col1 + + col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT DISTINCT col2 * + col2 + tab1.col1 + + col1 FROM tab1
----
2968
3269
9242

query I rowsort
SELECT col0 * + tab0.col0 * - col1 AS col0 FROM tab0
----
-118825
-49536
-720811

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 + - col0 )
----

query I rowsort
SELECT DISTINCT - - col2 * col2 + col0 FROM tab0 cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-7356
SELECT - tab1.col0 + col2 * col0 + tab1.col0 * col0 DIV + col1 FROM tab1
----
159
3993
8092

skipif mysql # not compatible
query I rowsort label-7356
SELECT - tab1.col0 + col2 * col0 + tab1.col0 * col0 / + col1 FROM tab1
----
159
3993
8092

query I rowsort
SELECT DISTINCT + col2 * col2 + - col0 FROM tab2
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7358
SELECT - col1 DIV - col2 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT - col1 / - col2 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT ALL 84 + tab0.col1 * tab0.col0 * - col0 FROM tab0
----
-118741
-49452
-720727

query I rowsort
SELECT ALL 28 + - col0 FROM tab1
----
-36
-52
25

query I rowsort
SELECT + col1 * - 36 + col2 AS col2 FROM tab0 AS cor0
----
-3063
-3194
-3491

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7362
SELECT + col1 * CAST( NULL AS SIGNED ) * - col2 + cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT + col1 * CAST ( NULL AS INTEGER ) * - col2 + cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 47 AS col2 FROM tab0 AS cor0
----
-42
12
23

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col2 AS col2 FROM tab0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-7365
SELECT ALL - col0 DIV col2 + - col1 col0 FROM tab0
----
-132
-86
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - col0 / col2 + - col1 col0 FROM tab0
----
-132
-86
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab0.col2 col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - col0 * 81 FROM tab1
----
-243
-5184
-6480

query I rowsort
SELECT + + col1 * + ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col0 + + 8 * col0 AS col0 FROM tab0 AS cor0
----
216
315
801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7370
SELECT DISTINCT + - col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * 44 + + col2 AS col0 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT DISTINCT col1 - - cor0.col2 * - ( - col2 ) FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT col2 + - cor0.col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 + 23 FROM tab2 cor0
----
-36
-8
6

query I rowsort
SELECT - col1 * 49 AS col1 FROM tab1 AS cor0
----
-1274
-490
-637

query I rowsort
SELECT ALL + + col0 * ( col0 ) + + col1 - ( col2 ) * - cor0.col2 * 67 FROM tab2 AS cor0
----
103006
48923
51435

query I rowsort
SELECT - tab1.col1 * + tab1.col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL + tab0.col2 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) NOT IN ( - col0 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 + - tab2.col2 * + col1 AS col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT col0 + col2 + + col0 * col1 AS col0 FROM tab1
----
1216
135
761

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col1 NOT IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col0 + tab0.col0 * - col0 * - col2 AS col2 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT col0 - + tab0.col2 * col2 AS col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT - - col2 - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 95 + col0 - col0 FROM tab1 AS cor0
----
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7388
SELECT ALL - + col0 * - col1 - CAST( + 34 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1309
183
4568

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - + col0 * - col1 - CAST ( + 34 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1309
183
4568

onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT - - col2 * + cor0.col2 + - 70 DIV + col1 AS col2 FROM tab1 AS cor0
----
2914
3242
9211

skipif mysql # not compatible
query I rowsort label-7389
SELECT - - col2 * + cor0.col2 + - 70 / + col1 AS col2 FROM tab1 AS cor0
----
2914
3242
9211

query I rowsort
SELECT - ( col0 ) + 20 FROM tab1 AS cor0
----
-44
-60
17

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col1 + - tab1.col2 + tab1.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7392
SELECT DISTINCT - col0 + + col1 DIV cor0.col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - col0 + + col1 / cor0.col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + col0 * cor0.col0 + col2 - col1 AS col2 FROM tab2 AS cor0
----
45
6051
6262

query I rowsort
SELECT ALL + - col1 + - 78 AS col1 FROM tab0 AS cor0
----
-164
-169
-175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 75 ) + + col2 * + 13 col0 FROM tab2 AS cor0
----
413
426
569

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7396
SELECT ALL - CAST( NULL AS SIGNED ) * col1 - col2 * ( - col2 ) / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 - col2 * ( - col2 ) / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 * col0 * col0 col2 FROM tab0 AS cor0
----
-34560
-475260
-73500

query I rowsort
SELECT DISTINCT - col0 - + col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7400
SELECT - tab2.col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7400
SELECT - tab2.col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 54 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7403
SELECT - CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7403
SELECT - CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + 28 * - col0 FROM tab1 AS cor0
----
1792
2240
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT ALL 3 DIV col2 AS col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL 3 / col2 AS col0 FROM tab0
----
0
0
3

query I rowsort
SELECT + ( + col0 ) + + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - col0 * - cor0.col0 + + col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7408
SELECT cor0.col0 DIV - col0 + - ( - col0 ) * col0 FROM tab1 AS cor0
----
4095
6399
8

skipif mysql # not compatible
query I rowsort label-7408
SELECT cor0.col0 / - col0 + - ( - col0 ) * col0 FROM tab1 AS cor0
----
4095
6399
8

query I rowsort
SELECT + ( cor0.col1 ) * 1 + 25 * - cor0.col0 * - 40 FROM tab1 cor0
----
3026
64010
80013

query I rowsort
SELECT col0 * + col0 + 56 AS col2 FROM tab0 AS cor0
----
1281
632
7977

query I rowsort
SELECT DISTINCT - cor0.col2 + 59 FROM tab0 AS cor0
----
-23
26
58

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
-17
-31
-59

query I rowsort
SELECT + col0 + + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT col1 * + 9 FROM tab1
----
117
234
90

query I rowsort
SELECT DISTINCT + - col0 * ( - col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col0 + - 57 FROM tab2 cor0
----
-50
21
22

query I rowsort
SELECT + - col0 + col1 + + 69 FROM tab1 cor0
----
15
2
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7418
SELECT + + col1 * CAST( + col0 * - col0 + + col1 AS SIGNED ) FROM tab1 AS cor0
----
-40860
-83031
442

skipif mysql # not compatible
query I rowsort label-7418
SELECT + + col1 * CAST ( + col0 * - col0 + + col1 AS INTEGER ) FROM tab1 AS cor0
----
-40860
-83031
442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7419
SELECT ALL - + cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - + cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7421
SELECT ALL - col1 * ( + col2 ) DIV - col0 FROM tab0 AS cor0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - col1 * ( + col2 ) / - col0 FROM tab0 AS cor0
----
118
2
83

query I rowsort
SELECT DISTINCT + - col0 + 52 AS col2 FROM tab1 cor0
----
-12
-28
49

query I rowsort
SELECT cor0.col2 * col1 + col0 FROM tab2 cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7424
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 85 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 85 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 43 + + col1 FROM tab1 AS cor0
----
-17
-30
-33

query I rowsort
SELECT ALL + 58 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT col0 DIV + col0 - + col0 AS col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-7427
SELECT col0 / + col0 - + col0 AS col0 FROM tab2
----
-6
-77
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7428
SELECT + tab1.col1 * - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT + tab1.col1 * - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * col2 - + col0 * - 66 FROM tab1 AS cor0
----
-2400
36
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7430
SELECT - 79 - - col2 DIV cor0.col2 AS col2 FROM tab0 cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-7430
SELECT - 79 - - col2 / cor0.col2 AS col2 FROM tab0 cor0
----
-78
-78
-78

query I rowsort
SELECT + col2 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + cor0.col1 - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 49 * - col0 FROM tab0 AS cor0
----
1176
1715
4361

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7434
SELECT DISTINCT + + col0 * col1 * CAST( 21 AS SIGNED ) FROM tab2 AS cor0
----
28203
4557
96642

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT + + col0 * col1 * CAST ( 21 AS INTEGER ) FROM tab2 AS cor0
----
28203
4557
96642

query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 AS col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT + - 46 + + cor0.col1 FROM tab0 AS cor0
----
40
45
51

query I rowsort
SELECT DISTINCT - 99 + + col2 FROM tab2 AS cor0
----
-61
-72
-73

query I rowsort
SELECT ALL col1 * cor0.col2 * + col1 + + col1 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - cor0.col0 + - 64 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e43861b75746f9ca2e1cf5dd9cf10e8e

query I rowsort
SELECT - col1 + col0 * + 28 FROM tab1
----
1782
2227
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT col0 DIV - tab2.col1 + ( col1 ) * + col0 FROM tab2
----
1339
217
4601

skipif mysql # not compatible
query I rowsort label-7442
SELECT col0 / - tab2.col1 + ( col1 ) * + col0 FROM tab2
----
1339
217
4601

query I rowsort
SELECT DISTINCT tab0.col0 * + col1 - 13 AS col1 FROM tab0
----
2051
3382
8086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT DISTINCT col1 DIV + col1 + + ( tab0.col2 ) * col2 - + col0 FROM tab0
----
-33
1066
6636

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT col1 / + col1 + + ( tab0.col2 ) * col2 - + col0 FROM tab0
----
-33
1066
6636

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 - 69 * tab1.col0 FROM tab1
----
-1167
2709
3696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + - col2 - 28 * + col0 col1 FROM tab2
----
-2240
-2280
-253

query I rowsort
SELECT ALL 82 * col1 * + col2 - col0 FROM tab0
----
232692
611795
7919

query I rowsort
SELECT + 38 * + col2 + + col1 + + 84 AS col0 FROM tab0
----
1424
219
3291

query I rowsort
SELECT col0 - ( - col1 + 76 ) AS col0 FROM tab0
----
104
34
56

query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 * - cor0.col2 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7452
SELECT ALL + - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 16 + + col0 * - cor0.col0 FROM tab2 AS cor0
----
-33
-6068
-6225

query I rowsort
SELECT - 97 * - col0 AS col1 FROM tab1 AS cor0
----
291
6208
7760

query I rowsort
SELECT ALL + 62 * + col0 FROM tab0 AS cor0
----
1488
2170
5518

query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - + col1 + - col0 * - col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT 97 * + 33 FROM tab0, tab0 AS cor0
----
9 values hashing to 46c382ac902bdd21ff97adfd7222538d

query I rowsort
SELECT + tab2.col0 * + col2 * col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT tab2.col1 * + ( + 97 + - col1 ) FROM tab2
----
1360
2046
2242

query I rowsort
SELECT - 91 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT 36 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7463
SELECT DISTINCT - col1 DIV 91 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT - col1 / 91 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + cor0.col1 * + 88 AS col2 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT + + col2 * - ( col2 * + 28 ) + + col1 FROM tab1 AS cor0
----
-258035
-81622
-90962

query I rowsort
SELECT ALL + - ( 0 ) * - cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 56 * + col1 col1 FROM tab1 AS cor0
----
-1459
-624
-808

query I rowsort
SELECT ( col2 ) * col0 - - 35 FROM tab0 AS cor0
----
70
7333
827

query I rowsort
SELECT DISTINCT + ( - ( - col2 ) ) + + 30 FROM tab2 AS cor0
----
56
57
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 18 - + 78 col2 FROM tab2 AS cor0
----
-60
-60
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-7472
SELECT DISTINCT - 69 DIV 54 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - 69 / 54 AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - - col0 * - cor0.col2 + - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-34
-574
297

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7474
SELECT - 77 * - col2 / + col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT - 77 * - col2 / + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col0 * col0 + + col0 + 86 FROM tab0
----
1346
19118
649697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 - - col0 col1 FROM tab1
----
185
256
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7477
SELECT DISTINCT tab1.col2 - - CAST( NULL AS SIGNED ) * 44 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT tab1.col2 - - CAST ( NULL AS INTEGER ) * 44 AS col0 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7478
SELECT - - 86 DIV - col0 + col1 * ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-1249
-1432
-571

skipif mysql # not compatible
query I rowsort label-7478
SELECT - - 86 / - col0 + col1 * ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-1249
-1432
-571

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7479
SELECT DISTINCT + col2 * - 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-7479
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) - + col1 col1 FROM tab1
----
NULL

query I rowsort
SELECT + cor0.col0 + + 89 * - col0 AS col2 FROM tab0 AS cor0
----
-2112
-3080
-7832

query I rowsort
SELECT DISTINCT col1 + 4 + cor0.col2 AS col2 FROM tab2 cor0
----
59
62
89

query I rowsort
SELECT 73 * + col2 AS col0 FROM tab2
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT ALL - col1 DIV 10 AS col0 FROM tab0
----
-8
-9
-9

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - col1 / 10 AS col0 FROM tab0
----
-8
-9
-9

query I rowsort
SELECT + ( - 47 ) * - col2 AS col1 FROM tab1 cor0
----
2538
2679
4512

query I rowsort
SELECT + ( + col2 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) col2 FROM tab2, tab1 cor0
----
54
57
96

query I rowsort
SELECT - 52 + - col2 AS col0 FROM tab2 AS cor0
----
-78
-79
-90

query I rowsort
SELECT - col2 * - 23 FROM tab2
----
598
621
874

query I rowsort
SELECT - + col0 * col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT + - 6 - col2 FROM tab2 AS cor0
----
-32
-33
-44

query I rowsort
SELECT ( - col2 ) + ( - col1 ) * - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - - col1 * col1 * - 91 FROM tab1 cor0
----
-15379
-61516
-9100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7493
SELECT - CAST( NULL AS SIGNED ) + 99 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7493
SELECT - CAST ( NULL AS INTEGER ) + 99 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7494
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 50 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT CAST ( NULL AS REAL ) * - 50 AS col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT ALL tab2.col1 + 5 DIV col0 + - tab2.col0 col1 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL tab2.col1 + 5 / col0 + - tab2.col0 col1 FROM tab2
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7496
SELECT - col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT - col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col2 + + 17 AS col2 FROM tab2 AS cor0
----
-10
-21
-9

query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - 3 * col2 + 1 FROM tab1
----
-161
-170
-287

query I rowsort
SELECT ALL - col1 + + col0 * + col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + + col2 + ( 47 ) AS col2 FROM tab2 cor0
----
73
74
85

query I rowsort
SELECT DISTINCT + cor0.col0 * ( col2 ) + + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - col0 + 5 FROM tab1 AS cor0
----
-59
-75
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7504
SELECT + - col2 + cor0.col1 + CAST( - 23 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-19
-44
10

skipif mysql # not compatible
query I rowsort label-7504
SELECT + - col2 + cor0.col1 + CAST ( - 23 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-19
-44
10

query I rowsort
SELECT - + col0 * col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col2 + col2 * ( + 0 ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - + col0 + col2 * col1 FROM tab1 AS cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( - col0 ) ) * + ( col1 ) col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - 90 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT ALL - 77 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT ALL 79 * - col0 FROM tab0 cor0
----
-1896
-2765
-7031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7512
SELECT 20 * + col2 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT 20 * + col2 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT DISTINCT col1 DIV col2 + - col1 col0 FROM tab0 cor0
----
-84
-90
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT col1 / col2 + - col1 col0 FROM tab0 cor0
----
-84
-90
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7515
SELECT - 96 + + col0 DIV - col0 FROM tab0 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 96 + + col0 / - col0 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - cor0.col1 + col1 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 53 col1 FROM tab0
----
-20
-52
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7519
SELECT ALL + col0 * CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL + col0 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ( ( - col0 ) + + col2 ) * 38 * col2 FROM tab2
----
-51376
-59204
20520

query I rowsort
SELECT col2 * 24 - col0 * 31 FROM tab0 AS cor0
----
-1061
-791
48

query I rowsort
SELECT ALL 10 * + col2 FROM tab1
----
540
570
960

query I rowsort
SELECT - - col1 * - 95 + cor0.col0 FROM tab2 AS cor0
----
-1536
-2938
-5527

query I rowsort
SELECT cor0.col2 * - col0 + col2 * ( - col2 ) - + col1 AS col2 FROM tab2 AS cor0
----
-2763
-4463
-949

query I rowsort
SELECT ALL 58 - col2 * + col2 AS col0 FROM tab1
----
-2858
-3191
-9158

query I rowsort
SELECT - cor0.col1 * + col1 * col1 + - ( col1 ) * col0 FROM tab1 AS cor0
----
-1640
-17654
-3237

query I rowsort
SELECT ALL - + 45 AS col0 FROM tab0 cor0
----
-45
-45
-45

query I rowsort
SELECT - col1 * + col1 * col0 + - cor0.col1 FROM tab2 AS cor0
----
-22848
-271577
-6758

query I rowsort
SELECT + + col0 + cor0.col2 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL 32 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * + 92 col1 FROM tab1 AS cor0
----
-4942
-5234
-8819

onlyif mysql # use DIV operator for integer division
query I rowsort label-7532
SELECT ALL + col1 + - cor0.col0 * col2 DIV col0 FROM tab0 cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + col1 + - cor0.col0 * col2 / col0 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col1 - + 54 FROM tab0
----
-140
-145
-151

query I rowsort
SELECT ALL + - col1 + - cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - ( cor0.col2 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT + - 7 AS col0 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL col0 + - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT 57 + col1 AS col1 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT 60 * + col1 FROM tab2 cor0
----
1020
1860
3540

query I rowsort
SELECT - col0 * 7 AS col0 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT 77 + - ( col0 ) FROM tab1 cor0
----
-3
13
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7543
SELECT DISTINCT + - ( - 97 ) DIV col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT + - ( - 97 ) / col0 FROM tab0 AS cor0
----
1
2
4

query I rowsort
SELECT + 12 * 82 AS col1 FROM tab1 AS cor0
----
984
984
984

onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT DISTINCT + col1 DIV - tab2.col1 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + col1 / - tab2.col1 AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL col1 * ( + 61 ) FROM tab2
----
1037
1891
3599

query I rowsort
SELECT ALL + col0 * 38 AS col2 FROM tab2
----
266
2964
3002

query I rowsort
SELECT - - col2 * 50 - + 85 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-3635
-5660
-8195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7549
SELECT ALL - col2 - - CAST( col2 AS SIGNED ) * col0 * + col0 FROM tab0 AS cor0
----
1224
18975
649440

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - col2 - - CAST ( col2 AS INTEGER ) * col0 * + col0 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - tab0.col2 + col1 * - col2 FROM tab0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7552
SELECT DISTINCT col1 + ( - col2 ) * col0 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT col1 + ( - col2 ) * col0 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 + ( - col0 ) AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + col2 * + 33 + 43 FROM tab0 AS cor0
----
1132
2749
76

query I rowsort
SELECT DISTINCT - col2 + 72 FROM tab0 cor0
----
-10
39
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7556
SELECT + + col2 - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT + + col2 - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7557
SELECT - col2 * + CAST( - col0 + + col0 AS SIGNED ) * + 88 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT - col2 * + CAST ( - col0 + + col0 AS INTEGER ) * + 88 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7558
SELECT ALL cor0.col2 + + 77 DIV - cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL cor0.col2 + + 77 / - cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col0 + - 3 FROM tab0 cor0
----
21
32
86

query I rowsort
SELECT 34 - 51 AS col1 FROM tab2
----
-17
-17
-17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7561
SELECT CAST( + 79 AS SIGNED ) col0 FROM tab2
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7561
SELECT CAST ( + 79 AS INTEGER ) col0 FROM tab2
----
79
79
79

query I rowsort
SELECT ALL + 82 * col1 FROM tab2
----
1394
2542
4838

query I rowsort
SELECT DISTINCT - 31 * - col1 AS col2 FROM tab0
----
2666
2821
3007

query I rowsort
SELECT + col2 * + 96 + - col1 AS col2 FROM tab2 AS cor0
----
2437
2561
3631

onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT col1 DIV 5 + col0 AS col1 FROM tab0
----
107
41
54

skipif mysql # not compatible
query I rowsort label-7565
SELECT col1 / 5 + col0 AS col1 FROM tab0
----
107
41
54

query I rowsort
SELECT ALL + 94 AS col2 FROM tab2 cor0
----
94
94
94

query I rowsort
SELECT DISTINCT col0 + col1 * 19 AS col1 FROM tab0 AS cor0
----
1658
1818
1878

query I rowsort
SELECT ALL + 58 + col0 FROM tab2 AS cor0
----
136
137
65

query I rowsort
SELECT ALL - + col0 * + col0 - col0 AS col2 FROM tab0 cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - col2 * cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT - + ( cor0.col2 ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + - 4 * + cor0.col2 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT col0 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + + 67 * + col0 AS col0 FROM tab2 AS cor0
----
469
5226
5293

query I rowsort
SELECT ALL - 67 + col2 FROM tab0 AS cor0
----
-34
-66
15

query I rowsort
SELECT + + 17 * cor0.col0 AS col0 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT DISTINCT col2 - + col0 * + ( col0 ) FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - - cor0.col1 * - col1 * + 34 + - ( col1 + - col2 ) FROM tab2 AS cor0
----
-118387
-32678
-9805

query I rowsort
SELECT + - 69 * col2 * col1 FROM tab0 AS cor0
----
-195822
-514878
-6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * + col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - ( + 26 ) * + cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
-2132
-26
-858

onlyif mysql # use DIV operator for integer division
query I rowsort label-7582
SELECT col0 + col1 DIV col2 col0 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7582
SELECT col0 + col1 / col2 col0 FROM tab1 cor0
----
3
64
80

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 col1 * - ( - col2 ) * col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + col1 + ( - col1 ) * cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL 85 + + 28 AS col0 FROM tab1 AS cor0
----
113
113
113

query I rowsort
SELECT DISTINCT + + 29 * - 39 + col2 * col2 - col0 * col0 FROM tab2 AS cor0
----
-451
-5928
-6539

query I rowsort
SELECT ALL + 2 * + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - col2 + + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + 85 + col0 + col1 AS col1 FROM tab1 AS cor0
----
114
159
178

query I rowsort
SELECT DISTINCT + 4 + col0 AS col1 FROM tab1 AS cor0
----
68
7
84

query I rowsort
SELECT ALL col0 * col0 + cor0.col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - + 75 + col2 FROM tab1 AS cor0
----
-18
-21
21

query I rowsort
SELECT + col2 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - ( - col1 ) * cor0.col1 col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ( 15 ) FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT + cor0.col0 + col2 * - cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7598
SELECT + CAST( - 5 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-7598
SELECT + CAST ( - 5 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT + col2 * + col0 * + col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT 70 * - col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT 2 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110

query I rowsort
SELECT + cor1.col2 * cor0.col0 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 90f198209f8c3c30cf910256fdab1da6

query I rowsort
SELECT ALL - ( tab0.col2 ) - col1 FROM tab0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7604
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7604
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7605
SELECT col0 * col1 + tab1.col1 DIV ( + 12 ) - + col2 AS col0 FROM tab1
----
26
583
945

skipif mysql # not compatible
query I rowsort label-7605
SELECT col0 * col1 + tab1.col1 / ( + 12 ) - + col2 AS col0 FROM tab1
----
26
583
945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab1
----
79
79
79

query I rowsort
SELECT col1 * 98 AS col2 FROM tab0
----
8428
8918
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT + col0 DIV - 42 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7608
SELECT + col0 / - 42 AS col0 FROM tab0
----
-2
0
0

query I rowsort
SELECT - 70 * + col0 FROM tab1
----
-210
-4480
-5600

query I rowsort
SELECT 9 + - col2 FROM tab2
----
-17
-18
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-7611
SELECT ( - col1 ) DIV - col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7611
SELECT ( - col1 ) / - col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + - 62 + - col2 FROM tab0 AS cor0
----
-144
-63
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col2 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + + 8 + col0 AS col1 FROM tab1 AS cor0
----
11
72
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7616
SELECT - cor0.col1 DIV col1 + col1 AS col0 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7616
SELECT - cor0.col1 / col1 + col1 AS col0 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort
SELECT ALL ( + col2 ) * - CAST ( - col1 * + col1 AS REAL ) FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7618
SELECT DISTINCT + CAST( + col1 + + col2 AS SIGNED ) * - 92 AS col2 FROM tab0
----
-10948
-15916
-9016

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + CAST ( + col1 + + col2 AS INTEGER ) * - 92 AS col2 FROM tab0
----
-10948
-15916
-9016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7619
SELECT DISTINCT - col0 * - col1 - CAST( - 77 + col2 AS SIGNED ) FROM tab0 AS cor0
----
2108
3471
8094

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT - col0 * - col1 - CAST ( - 77 + col2 AS INTEGER ) FROM tab0 AS cor0
----
2108
3471
8094

query I rowsort
SELECT ( col2 ) * 77 + col2 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT ALL col1 * col0 * 54 FROM tab2 AS cor0
----
11718
248508
72522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 * + col2 * + col1 + + col0 col0 FROM tab1 AS cor0
----
20048
22467
9184

query I rowsort
SELECT 18 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT - 2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - + cor0.col0 + - ( col2 ) FROM tab1 cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT - - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7626
SELECT - - col0 / col2 AS col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7627
SELECT ALL - cor0.col1 / CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - cor0.col1 / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + 51 * + col0 FROM tab2 cor0
----
11067
234702
68493

query I rowsort
SELECT + col0 * - 0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + col1 col0 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT - col0 + col0 DIV 9 col2 FROM tab2 AS cor0
----
-7
-70
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7631
SELECT - col0 + col0 / 9 col2 FROM tab2 AS cor0
----
-7
-70
-71

query I rowsort
SELECT ALL + + cor0.col2 + - col1 * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7633
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * cor0.col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( + col1 ) + col1 - - col1 * - col1 FROM tab2 AS cor0
----
-255
-3363
-899

onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT ALL + col2 DIV 80 col2 FROM tab1 cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL + col2 / 80 col2 FROM tab1 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT DISTINCT + cor0.col2 * 89 + - cor0.col0 DIV 33 FROM tab1 AS cor0
----
4806
5072
8542

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT + cor0.col2 * 89 + - cor0.col0 / 33 FROM tab1 AS cor0
----
4806
5072
8542

query I rowsort
SELECT ALL - col1 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - - col1 * + 67 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
1796
727
967

query I rowsort
SELECT DISTINCT col1 + 89 + + col0 FROM tab0 AS cor0
----
199
221
269

query I rowsort
SELECT ALL 85 - + 70 AS col2 FROM tab0
----
15
15
15

query I rowsort
SELECT DISTINCT - + 21 AS col0 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + col0 * + col2 * col0 + - ( - col0 ) FROM tab2 cor0
----
1330
158262
237237

query I rowsort
SELECT 70 AS col1 FROM tab1 cor0
----
70
70
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7644
SELECT DISTINCT + CAST( - ( col1 ) AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + CAST ( - ( col1 ) AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - + ( col1 ) + col1 + 94 * + col0 FROM tab1 AS cor0
----
282
6016
7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 + 43 + + col1 FROM tab1 AS cor0
----
-2847
-3196
-9160

query I rowsort
SELECT + 9 + col2 FROM tab0
----
10
42
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT - col0 - + col2 DIV ( - col1 ) FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-7649
SELECT - col0 - + col2 / ( - col1 ) FROM tab1
----
-1
-59
-73

query I rowsort
SELECT ALL 17 + tab0.col1 * + 25 AS col0 FROM tab0
----
2167
2292
2442

query I rowsort
SELECT col1 * - ( - 73 ) AS col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT + col2 * + col1 + + ( + col0 ) + + 81 FROM tab0 AS cor0
----
213
2943
7632

query I rowsort
SELECT DISTINCT col2 + col2 * - 13 AS col0 FROM tab1 AS cor0
----
-1152
-648
-684

query I rowsort
SELECT ALL - col0 * + ( + col0 * - col2 ) + - 70 * 37 AS col1 FROM tab0 AS cor0
----
-1365
16418
646932

query I rowsort
SELECT ALL - cor0.col1 + 95 * col2 FROM tab1 AS cor0
----
5104
5405
9107

onlyif mysql # use DIV operator for integer division
query I rowsort label-7656
SELECT DISTINCT - col1 * 83 + 21 DIV col1 FROM tab0 cor0
----
-7138
-7553
-8051

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT - col1 * 83 + 21 / col1 FROM tab0 cor0
----
-7138
-7553
-8051

onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT + + col2 + col1 DIV col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7657
SELECT + + col2 + col1 / col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL - - col1 * col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7659
SELECT col1 * cor0.col1 DIV + col0 FROM tab2 AS cor0
----
137
3
44

skipif mysql # not compatible
query I rowsort label-7659
SELECT col1 * cor0.col1 / + col0 FROM tab2 AS cor0
----
137
3
44

query I rowsort
SELECT - col2 * + col2 + + col0 AS col2 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT col2 + - col1 * - col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE col2 + - col1 > ( col1 ) OR NULL NOT IN ( - col1 )
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col0 + col0 col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT col0 + + cor0.col0 - col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT col0 * - col0 * + col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col1 col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT 15 + col1 + col0 FROM tab1
----
108
44
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 * col1 + tab0.col2 col1 FROM tab0
----
-4181
-4377
-4752

query I rowsort
SELECT col0 + - col2 * + col2 * tab1.col1 FROM tab1
----
-119728
-32426
-75813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + col1 * + col0 col2 FROM tab2
----
10686
266
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * + col1 col2 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT col1 * - col2 + - col1 AS col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT + col0 FROM tab2 WHERE col0 >= col2 - col0 / col1
----
78
79

query I rowsort
SELECT col1 - + col0 * - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 * - col1 + tab0.col0 AND NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 - + col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT - col1 * col1 + tab2.col2 AS col1 FROM tab2
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-7679
SELECT - col1 + + tab2.col1 DIV col0 AS col2 FROM tab2
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-7679
SELECT - col1 + + tab2.col1 / col0 AS col2 FROM tab2
----
-17
-27
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col1 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + tab1.col2 * tab1.col2 col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT ALL 63 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT - col1 * - col2 + + col2 * - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7684
SELECT + col2 * col2 + - tab1.col2 DIV + col1 AS col2 FROM tab1
----
2914
3244
9209

skipif mysql # not compatible
query I rowsort label-7684
SELECT + col2 * col2 + - tab1.col2 / + col1 AS col2 FROM tab1
----
2914
3244
9209

query I rowsort
SELECT tab0.col0 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - col1 * - col1 + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT ALL col2 + + col1 + col0 FROM tab1 WHERE NOT + col0 + col2 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col2 * + col2 + col1 col2 FROM tab2
----
22630
24565
39943

query I rowsort
SELECT ALL + col2 + + col0 - + col0 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 * col1 + - col2 col2 FROM tab1 AS cor0
----
17522
2101
943

query I rowsort
SELECT + col2 * + col0 - - col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-7692
SELECT col2 - - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-7692
SELECT col2 - - col0 / - col2 AS col0 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT ALL col1 * col0 * + col2 + col2 FROM tab0
----
3396
664200
68145

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 <= - col1
----

query I rowsort
SELECT col0 * - col2 - col2 AS col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT ALL col1 + col2 - + col1 AS col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT ALL - col2 DIV col2 + - col2 - + col1 FROM tab0
----
-120
-174
-99

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - col2 / col2 + - col2 - + col1 FROM tab0
----
-120
-174
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * - col2 * + col1 col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( NULL ) IN ( col1 * - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 + col0 )
----

query I rowsort
SELECT ALL col0 + - col0 + + col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * + col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + tab0.col2 * col2 * col2 FROM tab0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-7704
SELECT col1 * col0 DIV col0 + col2 AS col1 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-7704
SELECT col1 * col0 / col0 + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - 24 * tab0.col0 AS col1 FROM tab0
----
-2136
-576
-840

query I rowsort
SELECT 19 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT 44 * + col1 - + ( + col2 + col0 ) FROM tab2
----
1330
2492
631

query I rowsort
SELECT + 23 + col2 AS col1 FROM tab0
----
105
24
56

query I rowsort
SELECT - 52 * col1 - - ( + ( + col0 ) ) AS col2 FROM tab0
----
-4448
-4643
-5009

query I rowsort
SELECT col0 + col2 * - col1 FROM tab2
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7712
SELECT col1 / CAST( NULL AS SIGNED ) - - cor0.col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT col1 / CAST ( NULL AS INTEGER ) - - cor0.col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 84 AS col0 FROM tab0 cor0
----
7224
7644
8148

query I rowsort
SELECT col0 * - ( + col2 * - col0 ) AS col0 FROM tab0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7715
SELECT DISTINCT - col1 - - CAST( col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
1128
490
7830

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT - col1 - - CAST ( col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT - col2 - ( col2 ) * + col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT + + col2 * 27 + - col2 AS col1 FROM tab0 AS cor0
----
2132
26
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col2 - - cor0.col2 * - col1 col2 FROM tab0 AS cor0
----
-14186
-3927
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7719
SELECT DISTINCT + + col1 * + CAST( + col0 AS SIGNED ) + col1 FROM tab2 cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT + + col1 * + CAST ( + col0 AS INTEGER ) + col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + cor0.col1 * - col0 + col1 * + col2 FROM tab0 AS cor0
----
-3298
-637
774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col0 + + col1 col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT col1 * + ( - col2 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + + col2 + + 49 AS col0 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT + col1 + 13 AS col2 FROM tab0 AS cor0
----
104
110
99

query I rowsort
SELECT - - 30 + col1 * + col2 FROM tab2 cor0
----
1564
676
867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7726
SELECT + CAST( - 86 AS SIGNED ) * - col1 col1 FROM tab2 AS cor0
----
1462
2666
5074

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7726
SELECT + CAST ( - 86 AS INTEGER ) * - col1 col1 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT - ( 71 ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT - ( + ( cor0.col1 ) ) + col1 + + col2 AS col0 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7729
SELECT + - col0 * col2 DIV - col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7729
SELECT + - col0 * col2 / - col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + col0 + col2 * col1 * 63 AS col1 FROM tab0 AS cor0
----
178818
470195
6146

query I rowsort
SELECT ALL 15 + col0 AS col0 FROM tab1 AS cor0
----
18
79
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7733
SELECT ALL - col0 + col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - col0 + col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT DISTINCT - - 37 DIV - col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT - - 37 / - col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 30 col2 FROM tab2 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 28 col0 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7738
SELECT - + col0 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7738
SELECT - + col0 / + col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 + + col1 * 42 AS col0 FROM tab1 AS cor0
----
1066
410
533

onlyif mysql # use DIV operator for integer division
query I rowsort label-7740
SELECT + 16 + + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
16
16
19

skipif mysql # not compatible
query I rowsort label-7740
SELECT + 16 + + col2 / + col0 AS col2 FROM tab2 AS cor0
----
16
16
19

query I rowsort
SELECT ALL + 97 + col1 * - col2 FROM tab1 AS cor0
----
-1151
-1307
-473

query I rowsort
SELECT DISTINCT - 98 * cor0.col0 FROM tab1 AS cor0
----
-294
-6272
-7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7743
SELECT DISTINCT + col0 * col0 DIV - 61 AS col0 FROM tab0 cor0
----
-129
-20
-9

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT + col0 * col0 / - 61 AS col0 FROM tab0 cor0
----
-129
-20
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7744
SELECT col1 DIV + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT col1 / + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + ( 55 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT - + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + 66 FROM tab1 AS cor0
----
76
79
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7748
SELECT CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT CAST ( NULL AS INTEGER ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 61 + - col2 * + col0 FROM tab0 AS cor0
----
-1869
2100
672

query I rowsort
SELECT cor0.col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-7751
SELECT ALL + 4 DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL + 4 / col2 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col1 col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT - 4 + - 57 FROM tab1, tab1 AS cor0
----
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7754
SELECT - 43 DIV 93 - - col2 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7754
SELECT - 43 / 93 - - col2 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - col2 + - tab0.col0 * - col0 AS col0 FROM tab0
----
1224
543
7839

query I rowsort
SELECT 4 - + col0 * + col0 FROM tab1
----
-4092
-5
-6396

query I rowsort
SELECT ALL col2 + - 85 FROM tab1
----
-28
-31
11

query I rowsort
SELECT + 17 * 3 FROM tab2
----
51
51
51

query I rowsort
SELECT + + 4 * ( col2 ) + - col0 * - 9 AS col0 FROM tab0 AS cor0
----
1129
319
348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + ( col2 ) * col1 * - col2 + col0 AS col0 FROM tab0
----
-611795
-62
-93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-7763
SELECT DISTINCT tab2.col1 * col1 DIV - col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT tab2.col1 * col1 / - col1 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7764
SELECT + - col1 * 48 + + 17 + + col1 DIV col0 col1 FROM tab0 AS cor0
----
-4108
-4350
-4637

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7764
SELECT + - col1 * 48 + + 17 + + col1 / col0 col1 FROM tab0 AS cor0
----
-4108
-4350
-4637

query I rowsort
SELECT DISTINCT col0 + + 12 FROM tab1 AS cor0
----
15
76
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 53 col0 FROM tab2 cor0
----
371
4134
4187

query I rowsort
SELECT - col0 + cor0.col1 * 58 AS col2 FROM tab0 cor0
----
4964
5189
5591

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 - CAST ( - 0 AS REAL ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col0 + ( col0 ) AS col2 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 3 + col1 col2 FROM tab0 AS cor0
----
344
364
388

onlyif mysql # use DIV operator for integer division
query I rowsort label-7771
SELECT + col1 DIV + col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-7771
SELECT + col1 / + col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT ALL + 73 + + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
108
7371
865

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7773
SELECT CAST( 81 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd

skipif mysql # not compatible
query I rowsort label-7773
SELECT CAST ( 81 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd

query I rowsort
SELECT + 31 - - col0 * + 64 AS col0 FROM tab1 AS cor0
----
223
4127
5151

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1461
-735
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 + col1 col0 FROM tab0 AS cor0
----
102
107
113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7777
SELECT DISTINCT + - col0 * col1 + + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT + - col0 * col1 + + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( col2 ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-7779
SELECT col0 DIV + col2 + - ( col0 ) col1 FROM tab1 AS cor0
----
-3
-63
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7779
SELECT col0 / + col2 + - ( col0 ) col1 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT ALL col2 * + cor0.col0 * - 35 + + col2 FROM tab0 AS cor0
----
-1224
-255348
-27687

query I rowsort
SELECT ( col0 ) * + ( col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + + ( + col0 ) * ( 83 ) FROM tab2 AS cor0
----
581
6474
6557

onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT col1 - + col0 * col2 DIV col0 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-7783
SELECT col1 - + col0 * col2 / col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + + cor0.col1 + col0 * - cor0.col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + + col2 + + cor0.col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL col0 + - tab2.col2 + col2 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT 10 * - col1 + 13 * + col2 FROM tab2
----
-252
324
41

query I rowsort
SELECT - col0 + 30 AS col2 FROM tab1 cor0
----
-34
-50
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + col2 col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT col2 * col2 + ( 81 * col1 ) FROM tab2
----
2821
3240
5455

query I rowsort
SELECT ALL + ( 19 ) + col0 AS col0 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT + 67 + + col2 + col1 AS col2 FROM tab0 cor0
----
165
186
240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7793
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * + col2 * - col0 AS col2 FROM tab0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col1 FROM tab2
----
92

query I rowsort
SELECT 17 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7797
SELECT CAST( + 77 AS SIGNED ) AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

skipif mysql # not compatible
query I rowsort label-7797
SELECT CAST ( + 77 AS INTEGER ) AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT + - col0 * - col0 - ( - 16 + + col0 ) AS col2 FROM tab1 cor0
----
22
4048
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-7799
SELECT DISTINCT - cor0.col1 DIV cor0.col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - cor0.col1 / cor0.col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + + 43 + col0 AS col0 FROM tab1 AS cor0
----
107
123
46

query I rowsort
SELECT DISTINCT + + 4 * col1 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 * ( - 69 ) AS col1 FROM tab0 AS cor0
----
-104
-2301
-5747

query I rowsort
SELECT DISTINCT - + col0 * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - ( - 23 ) AS col1 FROM tab2 AS cor0
----
-23
-23
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7806
SELECT DISTINCT ( col0 ) + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT ( col0 ) + col1 / + col2 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col2 * - col0 * 0 + + col1 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col1 + + cor0.col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL - - col0 + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - col2 * + tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - tab2.col2 - + col2 * + col2 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT ALL + 69 * + 55 * col2 AS col0 FROM tab2
----
102465
144210
98670

query I rowsort
SELECT ( + 10 ) FROM tab2
----
10
10
10

query I rowsort
SELECT ( - col2 ) + + col1 * + ( + cor0.col0 ) FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + + 33 * - cor0.col1 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT 1 + ( col1 + col0 ) AS col1 FROM tab2
----
138
39
97

query I rowsort
SELECT - col2 + - 90 FROM tab1
----
-144
-147
-186

query I rowsort
SELECT - 72 - 61 FROM tab0
----
-133
-133
-133

query I rowsort
SELECT - 63 * - col0 FROM tab1
----
189
4032
5040

query I rowsort
SELECT ALL + col2 * - cor0.col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - col2 * 8 + col1 * - col1 * - 18 FROM tab2 AS cor0
----
17082
4898
62450

query I rowsort
SELECT DISTINCT 39 * - col2 - col2 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT - - cor0.col1 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab1.col2 * col1 ) - + col0 col1 FROM tab1
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7825
SELECT col1 - CAST( col1 + - col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7825
SELECT col1 - CAST ( col1 + - col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * + col2 + + col2 col0 FROM tab1 cor0
----
-207879
-737184
-8694

query I rowsort
SELECT ALL + col2 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col0 * 67 + 0 * col1 FROM tab2 AS cor0
----
469
5226
5293

onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT + col0 + 33 DIV + col1 FROM tab2 AS cor0
----
78
8
80

skipif mysql # not compatible
query I rowsort label-7829
SELECT + col0 + 33 / + col1 FROM tab2 AS cor0
----
78
8
80

query I rowsort
SELECT ALL col1 * + col1 + col0 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT + 98 + - 71 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7832
SELECT DISTINCT col1 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT col1 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 * + col1 + - 25 FROM tab1
----
144
651
75

query I rowsort
SELECT ALL col2 - col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-7835
SELECT DISTINCT + col0 DIV + 32 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT + col0 / + 32 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT + col1 * - ( + col1 * cor0.col2 ) FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7837
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * ( + 94 * col2 ) col2 FROM tab0 AS cor0
----
-102366
-632056
-94

query I rowsort
SELECT DISTINCT col2 * col0 + - col2 AS col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT DISTINCT - 90 * col2 - col0 AS col2 FROM tab1 AS cor0
----
-4863
-5194
-8720

query I rowsort
SELECT - ( + col2 ) + col0 * - ( col0 + - col0 ) * - col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + 57 * col2 AS col1 FROM tab2 AS cor0
----
-1482
-1539
-2166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7843
SELECT ALL - - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 24 * 71 FROM tab1 AS cor0
----
-1704
-1704
-1704

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 AS cor2
----
13122 values hashing to f9065046529ccca146b44299e992d4a5

query I rowsort
SELECT DISTINCT - + ( 39 ) - - cor0.col0 AS col0 FROM tab1 AS cor0
----
-36
25
41

query I rowsort
SELECT ALL + 46 + 76 * + col2 AS col1 FROM tab1 cor0
----
4150
4378
7342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + 73 * - col0 col2 FROM tab2 AS cor0
----
-524
-5707
-5780

query I rowsort
SELECT - 60 * - col2 + - col2 AS col1 FROM tab0 cor0
----
1947
4838
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7850
SELECT + CAST( - cor0.col0 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-7850
SELECT + CAST ( - cor0.col0 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col2 * + 96 * - 5 + col1 FROM tab2
----
-12421
-12929
-18223

query I rowsort
SELECT col0 * + 42 * + 72 - col0 * col1 * 39 FROM tab0
----
-26565
-46725
-7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col2 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT + ( cor0.col1 ) + col0 * - col0 * + col1 FROM tab0 AS cor0
----
-118728
-49450
-720720

onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT ALL - col2 DIV + 45 col2 FROM tab1 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - col2 / + 45 col2 FROM tab1 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 65 * col0 + col1 FROM tab2 AS cor0
----
486
5129
5152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 + col1 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + col0 * col1 + - ( - ( + col0 ) ) FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - cor0.col1 + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + - col0 + cor0.col0 * + ( cor0.col1 + + col1 ) FROM tab1 AS cor0
----
1216
153
2000

onlyif mysql # use DIV operator for integer division
query I rowsort label-7862
SELECT + col0 DIV col2 + + col0 + - 97 FROM tab0 AS cor0
----
-27
-7
-73

skipif mysql # not compatible
query I rowsort label-7862
SELECT + col0 / col2 + + col0 + - 97 FROM tab0 AS cor0
----
-27
-7
-73

query I rowsort
SELECT 5 * col1 FROM tab1 cor0
----
130
50
65

query I rowsort
SELECT ALL - 32 + col2 AS col1 FROM tab0 AS cor0
----
-31
1
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7865
SELECT ALL col2 + col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL col2 + col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT + 36 + + col2 - + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-60
117
67

skipif mysql # not compatible
query I rowsort label-7866
SELECT + 36 + + col2 - + col1 / col2 AS col0 FROM tab0 AS cor0
----
-60
117
67

query I rowsort
SELECT + - col1 + col1 * - 53 AS col2 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT ALL - - 18 + + cor0.col0 + col0 * ( col2 ) FROM tab1 AS cor0
----
183
3730
7778

query I rowsort
SELECT DISTINCT col1 * col1 * 99 FROM tab2 AS cor0
----
28611
344619
95139

onlyif mysql # use DIV operator for integer division
query I rowsort label-7870
SELECT ALL - col0 DIV - col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL - col0 / - col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT col0 + col2 * cor0.col2 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + 89 col0 FROM tab1 AS cor0
----
143
146
185

query I rowsort
SELECT col1 + - 25 * col0 AS col1 FROM tab2 AS cor0
----
-144
-1891
-1958

onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT DISTINCT - col0 DIV + 72 col1 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT - col0 / + 72 col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7875
SELECT cor0.col0 DIV col1 - 21 FROM tab2 AS cor0
----
-17
-20
-21

skipif mysql # not compatible
query I rowsort label-7875
SELECT cor0.col0 / col1 - 21 FROM tab2 AS cor0
----
-17
-20
-21

query I rowsort
SELECT ALL 19 - + tab1.col1 * col1 AS col1 FROM tab1
----
-150
-657
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7877
SELECT DISTINCT 74 + col0 DIV col2 FROM tab1
----
74
75

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 74 + col0 / col2 FROM tab1
----
74
75

query I rowsort
SELECT ALL 19 FROM tab0, tab1, tab0 cor0, tab2 AS cor1
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823

onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT - col0 + - col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-7879
SELECT - col0 + - col2 / - col0 AS col0 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT 83 + - col1 AS col1 FROM tab0 AS cor0
----
-14
-3
-8

query I rowsort
SELECT 37 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7882
SELECT ALL col2 * - col2 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL col2 * - col2 / CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT ( - col0 ) + - col1 DIV 85 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-7883
SELECT ( - col0 ) + - col1 / 85 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7884
SELECT DISTINCT col0 DIV col1 + - 19 FROM tab1 cor0
----
-13
-19

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT col0 / col1 + - 19 FROM tab1 cor0
----
-13
-19

query I rowsort
SELECT - col2 + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT cor0.col2 * + col0 + ( + col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
7300
854
97

query I rowsort
SELECT DISTINCT - 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-39

query I rowsort
SELECT DISTINCT + col0 * col2 + - col0 AS col2 FROM tab2 cor0
----
182
1950
2923

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 62086d53b7dd9376121857c3d03027d6

query I rowsort
SELECT DISTINCT - - cor0.col2 - + col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - - cor0.col1 * 85 - col0 FROM tab1 cor0
----
1025
2207
786

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col2 - - col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + tab1.col1 * - tab1.col1 AS col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

query I rowsort
SELECT ALL + + ( ( col1 ) ) + 53 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT ALL col1 + 15 * col0 + - col0 FROM tab2 AS cor0
----
1123
1151
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 45 - col2 col0 FROM tab2 AS cor0
----
-71
-72
-83

query I rowsort
SELECT + 42 * - col2 + col2 FROM tab2 cor0
----
-1066
-1107
-1558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7900
SELECT + CAST( NULL AS SIGNED ) * 25 - - cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT + CAST ( NULL AS INTEGER ) * 25 - - cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 78 - + 12 AS col2 FROM tab1 AS cor0
----
66

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - 80 + col0 FROM tab2 AS cor0
----
-1
-2
-73

query I rowsort
SELECT + 79 - col2 FROM tab1 AS cor0
----
-17
22
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT + ( + ( col0 ) ) DIV cor0.col1 - - col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7905
SELECT + ( + ( col0 ) ) / cor0.col1 - - col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + ( 44 ) AS col1 FROM tab2
----
44

query I rowsort
SELECT - - ( - col1 ) + cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 56 + 19 * + col2 FROM tab0 cor0
----
1614
683
75

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - cor0.col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col0 + + col2 * + col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-7912
SELECT - cor0.col0 + - col1 DIV - col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7912
SELECT - cor0.col0 + - col1 / - col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + 65 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-7914
SELECT ALL + col1 DIV - col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL + col1 / - col0 AS col0 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT DISTINCT - col1 DIV tab1.col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT - col1 / tab1.col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT - 35 AS col0 FROM tab0 cor0
----
-35
-35
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7917
SELECT DISTINCT col1 DIV + 84 col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT col1 / + 84 col1 FROM tab0
----
1

query I rowsort
SELECT - ( + 1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ( col0 ) + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7920
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 85 AS col1 FROM tab2, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 85 AS col1 FROM tab2, tab2 cor0
----
NULL

query I rowsort
SELECT ALL - 27 * 36 FROM tab2
----
-972
-972
-972

query I rowsort
SELECT ALL - + 34 * - col0 AS col0 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT DISTINCT + col2 * col1 + - 84 FROM tab2 AS cor0
----
1450
562
753

query I rowsort
SELECT cor0.col2 * + 26 + + col0 + cor0.col2 AS col2 FROM tab0 cor0
----
2303
62
915

query I rowsort
SELECT - + cor0.col0 + 96 FROM tab0 AS cor0
----
61
7
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * tab2.col0 col0 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT DISTINCT col0 * tab1.col1 DIV + ( tab1.col2 + - tab1.col0 ) AS col2 FROM tab1
----
-91
1
65

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT col0 * tab1.col1 / + ( tab1.col2 + - tab1.col0 ) AS col2 FROM tab1
----
-91
1
65

query I rowsort
SELECT ALL + col2 + + 83 * + 66 FROM tab0 AS cor0
----
5479
5511
5560

query I rowsort
SELECT ALL + col2 * - 19 FROM tab2 AS cor0
----
-494
-513
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7930
SELECT + cor0.col1 DIV - ( - 63 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT + cor0.col1 / - ( - 63 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 92 + col1 AS col0 FROM tab2
----
109
123
151

query I rowsort
SELECT ALL ( + col0 * col0 + col0 ) AS col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL 51 + + col0 AS col0 FROM tab0
----
140
75
86

query I rowsort
SELECT ALL - ( - 57 ) AS col1 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT - - ( + col2 ) * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - 90 + 43 * + col1 AS col0 FROM tab2 AS cor0
----
1423
2627
821

query I rowsort
SELECT DISTINCT - col0 - col2 AS col1 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ( + col2 ) * col0 + 79 FROM tab2 AS cor0
----
2107
268
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7939
SELECT CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT CAST ( NULL AS INTEGER ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 84 * col2 + col1 AS col0 FROM tab2 AS cor0
----
2243
2299
3209

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7941
SELECT + CAST( - col0 AS SIGNED ) - cor0.col1 col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7941
SELECT + CAST ( - col0 AS INTEGER ) - cor0.col1 col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col1 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT DISTINCT + 56 FROM tab1, tab1 AS cor0
----
56

query I rowsort
SELECT ALL - - 60 + 15 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee

query I rowsort
SELECT ALL - col2 - - col0 * - col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT + tab0.col2 * - cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b7b7b59ffe8969a28b6ae005f7e79060

query I rowsort
SELECT + - 26 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 92c9dcf04a06d25c174ffa715aa22fcf

query I rowsort
SELECT ALL - 60 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT + 97 - 74 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL + col0 - + 16 FROM tab0
----
19
73
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT - - col2 + + 18 DIV col0 AS col0 FROM tab2 AS cor0
----
26
29
38

skipif mysql # not compatible
query I rowsort label-7951
SELECT - - col2 + + 18 / col0 AS col0 FROM tab2 AS cor0
----
26
29
38

query I rowsort
SELECT + ( + col2 + + col0 ) FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7953
SELECT + 49 + + col1 DIV col1 - + col1 AS col0 FROM tab1
----
24
37
40

skipif mysql # not compatible
query I rowsort label-7953
SELECT + 49 + + col1 / col1 - + col1 AS col0 FROM tab1
----
24
37
40

query I rowsort
SELECT col0 + col0 + col0 * tab0.col2 FROM tab0
----
105
7476
840

query I rowsort
SELECT DISTINCT - 44 + - col1 + + col1 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT ALL col2 * + col1 * col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - + col2 * + col0 - cor0.col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - - col2 * col0 + - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT DISTINCT ( + col0 ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT tab0.col1 + + tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + 24 + - tab2.col1 FROM tab2
----
-35
-7
7

query I rowsort
SELECT ALL col0 * + col0 + + tab0.col2 AS col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ( col0 + col2 ) * + col0 AS col0 FROM tab1
----
14080
171
7744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7964
SELECT - CAST( NULL AS SIGNED ) * 41 + col1 * + tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT - CAST ( NULL AS INTEGER ) * 41 + col1 * + tab0.col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col0 ) - + col0 * col1 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT + ( + 10 ) + tab0.col2 + + col0 FROM tab0
----
181
46
67

query I rowsort
SELECT ALL col1 + col1 * col1 AS col0 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT - 71 * + tab2.col1 * + col0 FROM tab2
----
-15407
-326742
-95353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col1 - col0 col0 FROM tab1 cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT + col2 + + col1 + col1 DIV - col0 AS col2 FROM tab1
----
109
67
72

skipif mysql # not compatible
query I rowsort label-7970
SELECT + col2 + + col1 + col1 / - col0 AS col2 FROM tab1
----
109
67
72

query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 * tab0.col1 * - col1 FROM tab0
----
170108
319906
728728

query I rowsort
SELECT ALL + col2 * col1 + col2 + col1 FROM tab0 AS cor0
----
195
2957
7635

query I rowsort
SELECT col2 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + + 80 AS col2 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + 69 + col1 FROM tab0 AS cor0
----
155
160
166

query I rowsort
SELECT DISTINCT - + col2 + + col2 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7978
SELECT ALL + + col2 + - col0 DIV - col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
115
192

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + + col2 + - col0 / - col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
115
192

query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + col1 * - 79 AS col1 FROM tab0 AS cor0
----
-6794
-7189
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 + - ( - cor0.col0 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - col1 * 56 AS col2 FROM tab2 AS cor0
----
-1736
-3304
-952

query I rowsort
SELECT - col1 * + 15 * + 59 AS col0 FROM tab0 AS cor0
----
-76110
-80535
-85845

query I rowsort
SELECT ALL - ( 71 ) * + col1 AS col0 FROM tab0 AS cor0
----
-6106
-6461
-6887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7986
SELECT CAST( NULL AS SIGNED ) + - ( cor0.col1 ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT CAST ( NULL AS INTEGER ) + - ( cor0.col1 ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT ALL col1 DIV 67 - - col0 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL col1 / 67 - - col0 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT ( - 68 ) + col1 AS col1 FROM tab0 AS cor0
----
18
23
29

query I rowsort
SELECT cor2.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 31 ) * + col0 col2 FROM tab0 cor0
----
1085
2759
744

query I rowsort
SELECT col1 * - ( col0 ) + col0 AS col1 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7993
SELECT ALL CAST( NULL AS DECIMAL ) * ( col0 ) * + col0 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL CAST ( NULL AS REAL ) * ( col0 ) * + col0 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - 92 AS col2 FROM tab2 cor0
----
644
7176
7268

query I rowsort
SELECT + col0 + - ( - 6 + - cor0.col0 ) FROM tab0 AS cor0
----
184
54
76

query I rowsort
SELECT + col2 - 55 * - cor0.col2 AS col1 FROM tab2 cor0
----
1456
1512
2128

query I rowsort
SELECT DISTINCT - - col2 * col2 + + col0 FROM tab2 cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-7998
SELECT + + col0 + + 21 DIV col1 FROM tab2 AS cor0
----
7
78
80

skipif mysql # not compatible
query I rowsort label-7998
SELECT + + col0 + + 21 / col1 FROM tab2 AS cor0
----
7
78
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 5 col1 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT col1 + - 42 - - col1 * cor0.col1 * col2 AS col0 FROM tab0 cor0
----
244112
679091
9464

query I rowsort
SELECT tab1.col0 * tab1.col0 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 8ec1e5b752a6eed5f6e85ed78b46af3c

query I rowsort
SELECT - 96 + + col2 AS col0 FROM tab2
----
-58
-69
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8003
SELECT cor0.col0 * CAST( + col1 + + cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4736
7440
87

skipif mysql # not compatible
query I rowsort label-8003
SELECT cor0.col0 * CAST ( + col1 + + cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT DISTINCT + col1 + + 47 AS col2 FROM tab1
----
57
60
73

query I rowsort
SELECT - + 67 * + col1 FROM tab0 cor0
----
-5762
-6097
-6499

query I rowsort
SELECT - ( + tab0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT col0 * 3 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT col2 + + 88 AS col1 FROM tab2
----
114
115
126

query I rowsort
SELECT ALL + 5 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col2 FROM tab1
----
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-8011
SELECT tab1.col0 + col0 DIV + col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-8011
SELECT tab1.col0 + col0 / + col1 FROM tab1
----
3
70
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8012
SELECT ALL + ( col1 ) * CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL + ( col1 ) * CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 * 94 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d4b5e645393f7dc28852f82e301b35b8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab1
----
-36

query I rowsort
SELECT DISTINCT + col1 * - col2 * 67 AS col0 FROM tab2 AS cor0
----
-102778
-43282
-56079

onlyif mysql # use DIV operator for integer division
query I rowsort label-8018
SELECT ALL + 86 DIV col1 + ( cor0.col2 ) + col1 AS col0 FROM tab2 AS cor0
----
60
60
86

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + 86 / col1 + ( cor0.col2 ) + col1 AS col0 FROM tab2 AS cor0
----
60
60
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8019
SELECT DISTINCT + col2 + col0 * CAST( NULL AS SIGNED ) * col2 col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + col2 + col0 * CAST ( NULL AS INTEGER ) * col2 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 78 AS col2 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT + 7 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL + 46 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT + 65 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + tab1.col0 * ( ( - col1 ) ) - col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT + col1 + 29 AS col0 FROM tab0
----
115
120
126

query I rowsort
SELECT - cor0.col2 + ( 32 ) FROM tab1 AS cor0
----
-22
-25
-64

query I rowsort
SELECT + 17 * + col0 AS col2 FROM tab2
----
119
1326
1343

query I rowsort
SELECT ALL + 45 * ( col0 ) FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT - ( + 90 * col2 + col1 ) FROM tab2
----
-2399
-2461
-3437

query I rowsort
SELECT 90 * 24 FROM tab0
----
2160
2160
2160

query I rowsort
SELECT + 76 * + 4 AS col1 FROM tab0
----
304
304
304

query I rowsort
SELECT - col0 + + col0 * col1 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL 36 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
1221
3034
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-8034
SELECT - cor0.col0 DIV col1 + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-8034
SELECT - cor0.col0 / col1 + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8035
SELECT + col2 + - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT + col2 + - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 13 * col1 AS col2 FROM tab1 AS cor0
----
-130
-169
-338

onlyif mysql # use DIV operator for integer division
query I rowsort label-8037
SELECT col2 DIV + col0 + - tab2.col0 AS col2 FROM tab2
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-8037
SELECT col2 / + col0 + - tab2.col0 AS col2 FROM tab2
----
-4
-78
-79

query I rowsort
SELECT ALL - tab1.col1 - + col0 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT - 25 * - col2 - col2 AS col0 FROM tab2 cor0
----
624
648
912

query I rowsort
SELECT + - cor0.col0 - + cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col2 + col1 * col1 + col2 FROM tab1
----
214
361
784

query I rowsort
SELECT ALL - ( col2 ) - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT 67 + col0 * 30 AS col1 FROM tab1
----
157
1987
2467

onlyif mysql # use DIV operator for integer division
query I rowsort label-8044
SELECT DISTINCT - + 32 - cor0.col0 DIV 28 AS col0 FROM tab2 AS cor0
----
-32
-34

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - + 32 - cor0.col0 / 28 AS col0 FROM tab2 AS cor0
----
-32
-34

query I rowsort
SELECT DISTINCT + - 14 AS col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ( col2 ) * col0 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - + ( col0 ) * - col1 + + 38 FROM tab0 cor0
----
2102
3433
8137

onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT DISTINCT 98 * col1 DIV 57 FROM tab1 AS cor0
----
17
22
44

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT 98 * col1 / 57 FROM tab1 AS cor0
----
17
22
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-8049
SELECT ALL + 88 DIV - cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 10801b3149af80a3ee50a58dd0e66a56

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + 88 / - cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 10801b3149af80a3ee50a58dd0e66a56

query I rowsort
SELECT + cor0.col2 + col0 * - col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT 82 * 53 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0027516f69134e214982ce4c5c6a5226

query I rowsort
SELECT DISTINCT 40 * col2 AS col2 FROM tab0 AS cor0
----
1320
3280
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 93 col2 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT - - 92 * col0 * col0 FROM tab2 AS cor0
----
4508
559728
574172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8055
SELECT DISTINCT + - CAST( 12 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT + - CAST ( 12 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL 11 * col1 FROM tab2 AS cor0
----
187
341
649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8057
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + 43 - + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + 43 - + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + ( + col0 ) + col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + 22 - col1 FROM tab2 AS cor0
----
-37
-9
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT col2 DIV col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-8060
SELECT col2 / col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT ALL + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - ( - cor0.col2 ) * cor0.col2 - col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL - 26 - col0 AS col0 FROM tab1 AS cor0
----
-106
-29
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 + + col1 * - cor0.col1 col0 FROM tab1 AS cor0
----
-126
-195
-702

query I rowsort
SELECT ALL col1 * 84 FROM tab2
----
1428
2604
4956

query I rowsort
SELECT - cor0.col2 * tab2.col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to f79f8a61ba262bc98fabbc6ce3ba7f1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT 90 DIV + ( col0 ) AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8067
SELECT 90 / + ( col0 ) AS col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 91 * 11 AS col2 FROM tab0 AS cor0
----
-1001
-1001
-1001

onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT + cor0.col2 + cor0.col2 * col1 DIV + col2 FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-8070
SELECT + cor0.col2 + cor0.col2 * col1 / + col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + 95 * cor0.col1 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT DISTINCT - + 7 AS col2 FROM tab0 AS cor0
----
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8073
SELECT ALL + - col0 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + - col0 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + 17 ) - + col0 AS col2 FROM tab2
----
-61
-62
10

query I rowsort
SELECT 57 * + 64 FROM tab0
----
3648
3648
3648

query I rowsort
SELECT + col0 * - col1 + col1 * 39 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-12012
-1548
291

query I rowsort
SELECT DISTINCT - - tab0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8078
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8079
SELECT DISTINCT - col0 DIV - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT - col0 / - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT ALL + col1 * + col2 + - 42 * col2 FROM tab0 cor0
----
1452
4018
55

query I rowsort
SELECT ALL - col0 * col2 * col2 + + 43 * col0 AS col1 FROM tab2
----
-110679
-4802
-49374

query I rowsort
SELECT DISTINCT + col1 * col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - - col0 * + ( col1 ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 + 20 * + col2 AS col0 FROM tab0 AS cor0
----
1729
55
684

query I rowsort
SELECT ALL - cor0.col1 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + 62 + - col2 * - 78 FROM tab0
----
140
2636
6458

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT ALL 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # use DIV operator for integer division
query I rowsort label-8089
SELECT cor0.col1 DIV 44 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8089
SELECT cor0.col1 / 44 AS col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ALL + + col0 * - ( + ( col0 ) ) FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col1 * - 64 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT DISTINCT + col1 * 0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8094
SELECT DISTINCT - col1 + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - col1 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col1 + cor0.col2 col2 FROM tab2 AS cor0
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + col0 col1 FROM tab2 AS cor0
----
111
112
40

query I rowsort
SELECT + + 96 * + col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT + col2 * col0 + col1 * col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT + + col1 + + col1 * - cor0.col0 AS col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - - tab2.col0 AS col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
7
78
79

query I rowsort
SELECT - col0 + cor0.col2 * 70 FROM tab1 AS cor0
----
3777
3926
6640

query I rowsort
SELECT - col2 * col0 * col2 + - col1 + col2 AS col2 FROM tab1 AS cor0
----
-207889
-737197
-8720

query I rowsort
SELECT 77 * + 96 AS col1 FROM tab0 AS cor0
----
7392
7392
7392

query I rowsort
SELECT col2 * 2 + + col2 * ( + ( - cor0.col0 ) ) AS col0 FROM tab0 AS cor0
----
-33
-7134
-726

query I rowsort
SELECT DISTINCT col1 * ( col0 + - col2 ) AS col1 FROM tab1 AS cor0
----
-1326
-208
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 56 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT col2 + col0 + cor0.col0 * + col0 * 14 AS col2 FROM tab1 AS cor0
----
183
57465
89776

query I rowsort
SELECT + ( - 26 ) + + col1 FROM tab1 AS cor0
----
-13
-16
0

query I rowsort
SELECT - + 13 + + 7 + col2 * col2 FROM tab1 AS cor0
----
2910
3243
9210

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2, tab0 cor0, tab0 cor1
----
49

query I rowsort
SELECT + col1 + col1 * col2 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col0 * - col1 * 50 AS col0 FROM tab1 AS cor0
----
-32000
-3900
-52000

query I rowsort
SELECT - + 46 AS col0 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ( tab0.col2 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - cor0.col0 * + col0 + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT - col1 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT DISTINCT - col2 DIV - col0 + col1 AS col2 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT - col2 / - col0 + col1 AS col2 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab2, tab0 AS cor0
----
71

query I rowsort
SELECT col0 + - cor0.col2 + col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT + col2 DIV col0 + - col1 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-8121
SELECT + col2 / col0 + - col1 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT + tab2.col0 * 72 * col0 FROM tab2
----
3528
438048
449352

query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + tab1.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT DISTINCT col2 * - col2 - col1 * + ( - col1 ) * + col2 FROM tab2
----
25218
89830
9538

query I rowsort
SELECT ALL 18 + + col2 AS col2 FROM tab0
----
100
19
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT ( cor0.col0 ) + col1 DIV ( - col1 * + col1 ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8127
SELECT ( cor0.col0 ) + col1 / ( - col1 * + col1 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ( - col1 + col2 ) * ( col2 ) FROM tab0
----
-1749
-738
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8129
SELECT ALL cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8130
SELECT DISTINCT col1 + CAST( - col2 AS SIGNED ) * - col1 col0 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT col1 + CAST ( - col2 AS INTEGER ) * - col1 col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - col0 + + 37 FROM tab1
----
-27
-43
34

query I rowsort
SELECT DISTINCT - col2 + 31 AS col1 FROM tab1
----
-23
-26
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8134
SELECT - col1 + - col1 + col0 DIV - col2 FROM tab0
----
-172
-183
-229

skipif mysql # not compatible
query I rowsort label-8134
SELECT - col1 + - col1 + col0 / - col2 FROM tab0
----
-172
-183
-229

query I rowsort
SELECT DISTINCT col0 * 68 * col1 - - col2 * col2 FROM tab1
----
46769
79936
8220

query I rowsort
SELECT + col2 + col2 * col0 * col1 FROM tab2
----
119678
51072
5886

onlyif mysql # use DIV operator for integer division
query I rowsort label-8137
SELECT DISTINCT + + col0 DIV cor0.col2 + col0 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT + + col0 / cor0.col2 + col0 FROM tab0 AS cor0
----
24
70
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8138
SELECT DISTINCT - col2 DIV - cor0.col1 + - 61 AS col2 FROM tab2 AS cor0
----
-59
-61

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT - col2 / - cor0.col1 + - 61 AS col2 FROM tab2 AS cor0
----
-59
-61

query I rowsort
SELECT ALL col0 * + 29 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
2490
610
918

query I rowsort
SELECT + col2 - - 55 FROM tab0 AS cor0
----
137
56
88

query I rowsort
SELECT ALL + col1 + + col1 * col1 FROM tab1
----
110
182
702

query I rowsort
SELECT + col2 + + 60 FROM tab0
----
142
61
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8143
SELECT DISTINCT - CAST( ( col2 ) AS SIGNED ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT - CAST ( ( col2 ) AS INTEGER ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 0 + tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col1 + - 31 * - col0 FROM tab1 AS cor0
----
1974
2467
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-8146
SELECT ALL + col2 + tab2.col0 DIV + tab2.col0 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + col2 + tab2.col0 / + tab2.col0 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT - 93 FROM tab1, tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT 93 * + col2 AS col1 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT 0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - - 59 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + - cor0.col0 + cor0.col2 * col0 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 * col1 ) col2 FROM tab2
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8153
SELECT CAST( col2 + + col1 * + col1 AS SIGNED ) AS col2 FROM tab1
----
157
265
730

skipif mysql # not compatible
query I rowsort label-8153
SELECT CAST ( col2 + + col1 * + col1 AS INTEGER ) AS col2 FROM tab1
----
157
265
730

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 * - col2 col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT - 22 + - cor0.col2 * col1 * - col1 AS col1 FROM tab1 cor0
----
16202
36482
5678

query I rowsort
SELECT + + 71 + col0 * col0 AS col2 FROM tab2 AS cor0
----
120
6155
6312

query I rowsort
SELECT - + col0 * col0 + 74 * + col0 + col2 * cor0.col1 * + col1 AS col2 FROM tab0 cor0
----
10774
245268
677707

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - ( - col2 + + col1 ) * col1 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT ALL + - col0 * - col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + ( col1 ) * col1 * col1 AS col2 FROM tab0 AS cor0
----
636056
753571
912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8163
SELECT - cor0.col1 + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-8163
SELECT - cor0.col1 + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + - col2 + + col1 * - 59 FROM tab1 AS cor0
----
-1588
-647
-863

onlyif mysql # use DIV operator for integer division
query I rowsort label-8165
SELECT DISTINCT - col2 DIV - col0 col2 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - col2 / - col0 col2 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT + cor0.col2 * - ( col0 + - cor0.col1 ) FROM tab2 AS cor0
----
-2356
-494
648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + + col2 - col2 * + col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col0 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col2 * col1 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - 13 + col1 AS col2 FROM tab1
----
-3
0
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-8172
SELECT col2 DIV col1 + 49 AS col0 FROM tab0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-8172
SELECT col2 / col1 + 49 AS col0 FROM tab0
----
49
49
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-8173
SELECT col0 + - col0 DIV col2 AS col1 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-8173
SELECT col0 + - col0 / col2 AS col1 FROM tab0
----
0
24
88

query I rowsort
SELECT + 57 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 0 + + col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - + col0 + - cor0.col2 AS col2 FROM tab2 cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + ( - col0 ) * cor0.col0 + 5 col2 FROM tab0 cor0
----
-1123
-485
-7825

query I rowsort
SELECT + 60 + - 20 * + col0 AS col0 FROM tab1 AS cor0
----
-1220
-1540
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8179
SELECT DISTINCT - - CAST( col1 AS SIGNED ) * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + 60 * col1 AS col2 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT + col0 * + 73 AS col0 FROM tab1 AS cor0
----
219
4672
5840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8182
SELECT ALL - - CAST( col2 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - - CAST ( col2 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col0 + - col1 - col2 FROM tab1
----
-29
-3
-77

query I rowsort
SELECT DISTINCT col0 + col1 - - 12 * + col2 AS col0 FROM tab1
----
1245
677
758

query I rowsort
SELECT - ( col0 ) + col0 * col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ( + cor0.col0 ) * - cor0.col1 + 4 FROM tab1 AS cor0
----
-1036
-636
-74

query I rowsort
SELECT ALL - ( + col0 ) + + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col1 + col1 * + col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT 12 * cor0.col2 - + col1 AS col1 FROM tab2 AS cor0
----
253
293
439

query I rowsort
SELECT DISTINCT - col1 + + col2 * + col2 + col2 FROM tab2 AS cor0
----
1465
643
725

query I rowsort
SELECT + 61 * col2 + 87 + 86 FROM tab0 AS cor0
----
2186
234
5175

query I rowsort
SELECT DISTINCT col1 * col1 * col0 + + col1 + 90 * col0 FROM tab1
----
12170
20733
2324

query I rowsort
SELECT ALL - ( + tab0.col0 ) * tab0.col0 + + ( col1 ) + col2 * + col2 FROM tab0
----
-1106
-1127
599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col0 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT ALL + 87 * + 53 FROM tab2 AS cor0
----
4611
4611
4611

query I rowsort
SELECT 98 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-8197
SELECT + col2 DIV - 67 + 8 * tab2.col2 FROM tab2
----
208
216
304

skipif mysql # not compatible
query I rowsort label-8197
SELECT + col2 / - 67 + 8 * tab2.col2 FROM tab2
----
208
216
304

query I rowsort
SELECT - cor0.col0 * 98 FROM tab0 AS cor0
----
-2352
-3430
-8722

query I rowsort
SELECT ALL col2 - + col2 * cor0.col1 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col1 * - 79 * cor0.col1 FROM tab2 AS cor0
----
-22831
-274999
-75919

query I rowsort
SELECT DISTINCT - 3 * col0 + col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 * + col2 * - 18 AS col0 FROM tab0 AS cor0
----
-120941
-19516
79

query I rowsort
SELECT DISTINCT - ( col2 ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + ( + col0 ) + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - + ( 74 ) + cor0.col2 FROM tab0 AS cor0
----
-41
-73
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8206
SELECT + - CAST( + col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT + - CAST ( + col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 60 + 55 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + col1 * + 44 + + col0 AS col0 FROM tab2 AS cor0
----
1371
2674
827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8209
SELECT DISTINCT - ( + cor0.col1 ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT - ( + cor0.col1 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + ( cor0.col2 ) + 69 * + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-44103
-5328
-71664

query I rowsort
SELECT ALL - + col2 + + cor0.col0 - ( - col1 + col0 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + - col2 - col0 * - col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-8213
SELECT - 66 DIV - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8213
SELECT - 66 / - col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + 41 * + col1 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT DISTINCT - 94 + - cor0.col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1538
-770
-823

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8216
SELECT 45 * - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT 45 * - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 94 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT + + col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL + 71 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT 0 + - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT col1 * 1 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8224
SELECT + col0 * CAST( + col0 AS SIGNED ) * col2 + CAST( 58 AS SIGNED ) * + col0 col2 FROM tab0 AS cor0
----
20400
3255
654684

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8224
SELECT + col0 * CAST ( + col0 AS INTEGER ) * col2 + CAST ( 58 AS INTEGER ) * + col0 col2 FROM tab0 AS cor0
----
20400
3255
654684

query I rowsort
SELECT col2 + 22 * 35 AS col1 FROM tab1 AS cor0
----
824
827
866

query I rowsort
SELECT - col2 * - 23 + col0 AS col1 FROM tab0 cor0
----
1975
58
783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8227
SELECT + - col1 + CAST( NULL AS DECIMAL ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT + - col1 + CAST ( NULL AS REAL ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + col0 + - 73 AS col1 FROM tab0 AS cor0
----
-38
-49
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 0 * + cor0.col1 * - cor0.col2 col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + col0 * + 60 - col0 FROM tab2 AS cor0
----
413
4602
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-8233
SELECT DISTINCT - col0 + + col0 DIV - col0 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-8233
SELECT DISTINCT - col0 + + col0 / - col0 col1 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8234
SELECT + + CAST( - 2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-19
-33
-61

skipif mysql # not compatible
query I rowsort label-8234
SELECT + + CAST ( - 2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-19
-33
-61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8235
SELECT DISTINCT tab0.col2 * - CAST( col2 + col0 AS SIGNED ) AS col1 FROM tab0
----
-14022
-1881
-36

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT tab0.col2 * - CAST ( col2 + col0 AS INTEGER ) AS col1 FROM tab0
----
-14022
-1881
-36

query I rowsort
SELECT ALL + 25 * col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT + cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2

query I rowsort
SELECT 6 * + tab0.col2 AS col0 FROM tab0
----
198
492
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT ALL + col0 DIV col2 + - 37 AS col2 FROM tab1
----
-36
-37
-37

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + col0 / col2 + - 37 AS col2 FROM tab1
----
-36
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col1 * + cor0.col2 col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - 82 + cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 52cd922621b733415ce901a8aac2b843

query I rowsort
SELECT DISTINCT ( col0 + tab2.col0 ) FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8244
SELECT 67 DIV col2 FROM tab0
----
0
2
67

skipif mysql # not compatible
query I rowsort label-8244
SELECT 67 / col2 FROM tab0
----
0
2
67

query I rowsort
SELECT ( 39 ) + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1304
-178
-4563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL ( - ( col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL 38 AS col0 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8249
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8250
SELECT ALL CAST( NULL AS SIGNED ) * - 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL CAST ( NULL AS INTEGER ) * - 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 36 ) FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT - cor0.col0 * col2 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col2 ) col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + 70 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT DISTINCT + + ( ( + col0 ) ) * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 * - 99 + col0 + col1 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
25261
3240
82862

query I rowsort
SELECT ALL + col0 * - col0 + col1 FROM tab2 cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL col2 + 68 FROM tab2 AS cor0
----
106
94
95

query I rowsort
SELECT 96 + - col1 FROM tab2
----
37
65
79

query I rowsort
SELECT + ( col0 ) - - col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - - cor0.col0 - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - 17 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT DISTINCT - col2 + + 85 FROM tab1 AS cor0
----
-11
28
31

query I rowsort
SELECT - col0 * + ( + 48 ) FROM tab1 cor0
----
-144
-3072
-3840

query I rowsort
SELECT cor0.col2 * ( col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * 47 * col1 col1 FROM tab1 AS cor0
----
31772
4700
7943

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8267
SELECT DISTINCT + 88 * - col2 * + CAST( col0 AS SIGNED ) + col1 - + col1 * + col2 AS col2 FROM tab2
----
-17438
-179939
-264805

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT + 88 * - col2 * + CAST ( col0 AS INTEGER ) + col1 - + col1 * + col2 AS col2 FROM tab2
----
-17438
-179939
-264805

query I rowsort
SELECT DISTINCT - ( col0 * - col1 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT col1 * + 19 - col2 FROM tab1
----
133
151
440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 98 * + col2 + col0 col1 FROM tab0
----
3465
715293
77640

query I rowsort
SELECT - col2 + ( 22 * col1 ) FROM tab0
----
1859
1920
2133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8272
SELECT DISTINCT col2 * CAST( - 74 AS SIGNED ) + col1 AS col0 FROM tab1
----
-3970
-4208
-7091

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT col2 * CAST ( - 74 AS INTEGER ) + col1 AS col0 FROM tab1
----
-3970
-4208
-7091

query I rowsort
SELECT col1 * + ( + 93 ) * col1 AS col2 FROM tab2
----
26877
323733
89373

query I rowsort
SELECT + + cor0.col2 * cor0.col2 + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 89e1535f1444ed656f4cc7af3358c698

query I rowsort
SELECT - col0 - 41 AS col0 FROM tab2
----
-119
-120
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-8276
SELECT DISTINCT + col0 DIV ( ( cor0.col0 ) ) + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + col0 / ( ( cor0.col0 ) ) + col0 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8277
SELECT ALL CAST( 44 AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL CAST ( 44 AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

query I rowsort
SELECT DISTINCT + col0 * col2 + col0 * col1 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT + 67 * - col2 FROM tab0 AS cor0
----
-2211
-5494
-67

query I rowsort
SELECT DISTINCT ( col1 + col1 ) * col2 FROM tab1
----
1140
2496
2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-8283
SELECT DISTINCT - tab1.col2 DIV - col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT - tab1.col2 / - col1 AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab1, tab0 AS cor0
----
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8285
SELECT + 94 * + col0 + + tab2.col0 * tab2.col2 DIV - tab2.col0 FROM tab2
----
631
7306
7388

skipif mysql # not compatible
query I rowsort label-8285
SELECT + 94 * + col0 + + tab2.col0 * tab2.col2 / - tab2.col0 FROM tab2
----
631
7306
7388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + cor0.col0 col2 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col1 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT ALL + col2 * tab1.col2 + col2 AS col0 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT 15 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col2 + - ( + col1 ) FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT + + col2 - + col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - + 40 * + col1 FROM tab2 AS cor0
----
-1240
-2360
-680

query I rowsort
SELECT DISTINCT + 58 * + col2 + col1 FROM tab1 AS cor0
----
3158
3316
5581

query I rowsort
SELECT ALL - 43 AS col1 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-8296
SELECT DISTINCT 53 DIV col0 col1 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT 53 / col0 col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT + col2 * ( + col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + cor0.col2 * 9 AS col2 FROM tab0 AS cor0
----
297
738
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8299
SELECT ALL - - col0 * + 34 - 68 * col2 DIV col2 col1 FROM tab0 cor0
----
1122
2958
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL - - col0 * + 34 - 68 * col2 / col2 col1 FROM tab0 cor0
----
1122
2958
748

query I rowsort
SELECT ALL - col0 + + 14 FROM tab1 AS cor0
----
-50
-66
11

query I rowsort
SELECT DISTINCT - col2 * + col2 + - cor0.col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT col2 - + cor0.col1 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - - col1 * col0 + cor0.col1 * col2 FROM tab1 AS cor0
----
1210
1482
2288

skipif mysql # not compatible
query I rowsort
SELECT - col0 * + CAST ( col1 * col1 AS REAL ) + - col0 FROM tab0 AS cor0
----
-177528
-329350
-737098

query I rowsort
SELECT ALL col1 * 51 + - col0 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
4338
4463
4877

query I rowsort
SELECT col2 + col1 + + tab2.col1 AS col0 FROM tab2
----
144
72
89

query I rowsort
SELECT ALL - tab0.col0 * col2 + col0 - + col2 FROM tab0
----
-1
-7291
-801

query I rowsort
SELECT DISTINCT + 1 - col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT - 69 + - col2 FROM tab2
----
-107
-95
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + - col1 col2 FROM tab2
----
-13
15
29

query I rowsort
SELECT ALL col0 + 54 AS col2 FROM tab0 AS cor0
----
143
78
89

query I rowsort
SELECT + cor0.col2 + cor0.col1 * + col1 * col1 - - col1 FROM tab1 AS cor0
----
1067
17656
2306

query I rowsort
SELECT 78 + tab2.col0 - ( + col1 ) * + col2 AS col0 FROM tab2
----
-1378
-489
-752

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8315
SELECT + - col2 * - col1 * CAST( + 25 AS SIGNED ) FROM tab0 AS cor0
----
186550
2425
70950

skipif mysql # not compatible
query I rowsort label-8315
SELECT + - col2 * - col1 * CAST ( + 25 AS INTEGER ) FROM tab0 AS cor0
----
186550
2425
70950

onlyif mysql # use DIV operator for integer division
query I rowsort label-8316
SELECT DISTINCT 19 DIV col2 + col2 FROM tab0
----
20
33
82

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT 19 / col2 + col2 FROM tab0
----
20
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8317
SELECT - + 38 + - col1 * - CAST( 60 AS SIGNED ) FROM tab1 AS cor0
----
1522
562
742

skipif mysql # not compatible
query I rowsort label-8317
SELECT - + 38 + - col1 * - CAST ( 60 AS INTEGER ) FROM tab1 AS cor0
----
1522
562
742

query I rowsort
SELECT DISTINCT - 68 * col0 FROM tab1
----
-204
-4352
-5440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8319
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8319
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8320
SELECT + 99 DIV + ( - cor0.col2 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8320
SELECT + 99 / + ( - cor0.col2 ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT - - CAST( - 71 AS SIGNED ) FROM tab1 cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-8321
SELECT - - CAST ( - 71 AS INTEGER ) FROM tab1 cor0
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT - - 92 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
92

skipif mysql # not compatible
query I rowsort label-8322
SELECT - - 92 / col2 AS col1 FROM tab0 AS cor0
----
1
2
92

query I rowsort
SELECT ( 67 ) AS col2 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT + 12 + 10 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT + cor0.col1 + + col0 AS col2 FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 + col1 col1 FROM tab1 AS cor0
----
-45
-58
-61

query I rowsort
SELECT ALL + - ( col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - ( + col0 ) col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8329
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col2 * + col0 + col1 FROM tab2 cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + col2 * col1 col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + 77 FROM tab0
----
77
77
77

query I rowsort
SELECT + tab2.col1 * - col0 + tab2.col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT - ( - 96 ) + + tab0.col0 * - col1 * col1 FROM tab0
----
-177408
-329219
-736913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8335
SELECT + CAST( NULL AS DECIMAL ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8335
SELECT + CAST ( NULL AS REAL ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 11 * col0 AS col2 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT + col0 * col1 * 48 FROM tab2
----
10416
220896
64464

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8338
SELECT DISTINCT 90 * col2 + - col1 * col1 - tab1.col1 / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT 90 * col2 + - col1 * col1 - tab1.col1 / CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT tab0.col2 * col0 + + 10 DIV - col0 + col1 col2 FROM tab0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8339
SELECT tab0.col2 * col0 + + 10 / - col0 + col1 col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL - col2 * - col1 - 65 FROM tab0 AS cor0
----
2773
32
7397

query I rowsort
SELECT + - ( + col0 ) - + col1 FROM tab2 cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 col1 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8343
SELECT col0 * col2 + + 40 / ( + col1 * - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT col0 * col2 + + 40 / ( + col1 * - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8344
SELECT col1 * col1 + + CAST( NULL AS SIGNED ) * 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT col1 * col1 + + CAST ( NULL AS INTEGER ) * 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 12 * col1 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT - + 7 - cor0.col2 FROM tab1 AS cor0
----
-103
-61
-64

query I rowsort
SELECT ALL - + col0 * cor0.col2 - - col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT - col0 * + col0 + - cor0.col0 DIV 5 AS col0 FROM tab0 cor0
----
-1232
-580
-7938

skipif mysql # not compatible
query I rowsort label-8349
SELECT - col0 * + col0 + - cor0.col0 / 5 AS col0 FROM tab0 cor0
----
-1232
-580
-7938

query I rowsort
SELECT col0 + col1 * 65 FROM tab0 AS cor0
----
5614
6004
6340

onlyif mysql # use DIV operator for integer division
query I rowsort label-8351
SELECT DISTINCT col0 DIV col2 AS col1 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT col0 / col2 AS col1 FROM tab1 cor0
----
0
1

query I rowsort
SELECT DISTINCT + - 90 + + col2 FROM tab0 AS cor0
----
-57
-8
-89

query I rowsort
SELECT DISTINCT col1 * + 54 + col2 AS col2 FROM tab0
----
4677
4996
5239

query I rowsort
SELECT + col2 * - 5 FROM tab1 cor0
----
-270
-285
-480

query I rowsort
SELECT - col0 + col0 + 78 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8356
SELECT cor0.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT cor0.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 22 - 65 FROM tab0 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * - col2 col2 FROM tab0 AS cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 55 * cor0.col1 - col0 * col2 * - 59 col1 FROM tab2 AS cor0
----
116407
176183
9446

query I rowsort
SELECT DISTINCT col2 + ( 43 ) + + col0 AS col2 FROM tab0
----
100
214
79

query I rowsort
SELECT - - cor0.col1 + 87 FROM tab0 AS cor0
----
173
178
184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8362
SELECT - col1 + - CAST( NULL AS SIGNED ) * - 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT - col1 + - CAST ( NULL AS INTEGER ) * - 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - tab1.col2 col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT col1 * + col2 * + 5 + col2 FROM tab1
----
2907
6336
7074

query I rowsort
SELECT DISTINCT - col1 + - col1 + - 40 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
218
3002
3126

onlyif mysql # use DIV operator for integer division
query I rowsort label-8366
SELECT ALL col2 DIV + col0 - + col1 * col2 FROM tab1 AS cor0
----
-1247
-1386
-570

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL col2 / + col0 - + col1 * col2 FROM tab1 AS cor0
----
-1247
-1386
-570

skipif mysql # not compatible
query I rowsort
SELECT - - col2 + CAST ( col1 AS REAL ) * + col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + 67 * col2 col0 FROM tab2 cor0
----
1716
1782
2508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( 58 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT ALL - 64 + - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-1025
-353
-3545

query I rowsort
SELECT + - 48 * 0 * + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8373
SELECT - CAST( NULL AS SIGNED ) + + cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT - CAST ( NULL AS INTEGER ) + + cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 22 * - col0 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab1, tab0 AS cor0
----
-71

query I rowsort
SELECT ALL 81 + - col0 FROM tab2 AS cor0
----
2
3
74

query I rowsort
SELECT ALL + - col0 * - 71 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2450
-518069
-56208

query I rowsort
SELECT tab1.col2 - + 91 AS col2 FROM tab1
----
-34
-37
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * ( + col1 * - col1 ) col0 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8380
SELECT - - col1 * col0 + CAST( + cor0.col2 AS SIGNED ) FROM tab1 cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-8380
SELECT - - col1 * col0 + CAST ( + cor0.col2 AS INTEGER ) FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT - cor0.col0 * - col0 + 68 * col1 - col0 FROM tab1 AS cor0
----
1774
4712
7204

query I rowsort
SELECT ALL + - col1 + col0 * - ( 17 ) + col1 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT - - ( col2 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - - 40 * + col0 + col2 AS col0 FROM tab0 cor0
----
1401
3642
993

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8385
SELECT CAST( cor1.col0 AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif mysql # not compatible
query I rowsort label-8385
SELECT CAST ( cor1.col0 AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT 98 * - col2 AS col1 FROM tab2
----
-2548
-2646
-3724

query I rowsort
SELECT col2 + col0 + + 15 * tab1.col2 FROM tab1
----
1616
867
976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8388
SELECT DISTINCT + - col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT + - col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - - col0 col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8390
SELECT ALL col0 DIV 39 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL col0 / 39 FROM tab1 AS cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8391
SELECT - 7 * - col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT - 7 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) * col0 + ( col0 * 78 ) FROM tab2
----
12168
12403
595

query I rowsort
SELECT ALL + + 68 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 - col0 FROM tab0
----
-71
-7469
-849

query I rowsort
SELECT - col1 * - col0 - col2 AS col0 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + col0 + + 71 * col1 * col2 FROM tab0 cor0
----
201522
529891
6922

query I rowsort
SELECT - col2 * + ( + 75 * col2 ) AS col1 FROM tab2 cor0
----
-108300
-50700
-54675

query I rowsort
SELECT - col1 * col1 - 79 FROM tab0 AS cor0
----
-7475
-8360
-9488

query I rowsort
SELECT ALL + col1 + - ( col2 ) * - col2 + - ( col1 ) FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8400
SELECT ALL col0 DIV col2 + col2 AS col1 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL col0 / col2 + col2 AS col1 FROM tab1
----
54
58
96

query I rowsort
SELECT DISTINCT 92 * cor0.col0 FROM tab1, tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT ALL col0 + 42 AS col1 FROM tab0
----
131
66
77

query I rowsort
SELECT col1 * + 42 FROM tab1
----
1092
420
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-8404
SELECT ALL col2 DIV + 14 + 5 AS col0 FROM tab0
----
10
5
7

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL col2 / + 14 + 5 AS col0 FROM tab0
----
10
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col0 col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 * col0 + - 85 FROM tab0
----
1979
3310
8014

query I rowsort
SELECT + col2 * 34 AS col1 FROM tab1
----
1836
1938
3264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8408
SELECT ALL - col0 * CAST( - col1 AS SIGNED ) + + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - col0 * CAST ( - col1 AS INTEGER ) + + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col1 + + 73 FROM tab1 cor0
----
83
86
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 - - ( + col1 ) * col0 col2 FROM tab1
----
1136
174
736

query I rowsort
SELECT DISTINCT 20 + ( + col0 ) FROM tab2 AS cor0
----
27
98
99

query I rowsort
SELECT ( - col0 ) * + col2 * - 32 + + col0 * - tab1.col1 AS col2 FROM tab1
----
116096
244720
5106

query I rowsort
SELECT 7 + - 1 FROM tab2
----
6
6
6

query I rowsort
SELECT DISTINCT ( - col2 * col1 ) AS col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8415
SELECT DISTINCT 44 * + col1 + - col2 DIV - 84 FROM tab0 AS cor0
----
3784
4004
4268

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT 44 * + col1 + - col2 / - 84 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT 93 AS col0 FROM tab2 cor0
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT ALL - + cor0.col2 DIV col0 col1 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - + cor0.col2 / col0 col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL + cor0.col0 * + col0 + + 74 AS col0 FROM tab2 AS cor0
----
123
6158
6315

query I rowsort
SELECT DISTINCT + + ( - col1 ) * col0 - 40 AS col0 FROM tab0 AS cor0
----
-2104
-3435
-8139

query I rowsort
SELECT DISTINCT 25 + col0 AS col1 FROM tab0 AS cor0
----
114
49
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8421
SELECT ALL + - col1 * - cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + - col1 * - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * + col0 col2 FROM tab0 AS cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * col0 + cor0.col0 col2 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT ALL - col0 - + col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL 95 + + col1 * ( col2 ) FROM tab0 AS cor0
----
192
2933
7557

query I rowsort
SELECT col1 + cor0.col2 * + ( col2 * - col1 ) FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT ALL + + col0 * - cor0.col1 - + col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-8428
SELECT + col2 + + col2 DIV - cor0.col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-8428
SELECT + col2 + + col2 / - cor0.col0 FROM tab2 AS cor0
----
24
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8429
SELECT - col1 * col0 DIV - col1 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8429
SELECT - col1 * col0 / - col1 AS col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8430
SELECT - cor0.col0 * col1 + col2 DIV - col1 FROM tab2 AS cor0
----
-1345
-217
-4602

skipif mysql # not compatible
query I rowsort label-8430
SELECT - cor0.col0 * col1 + col2 / - col1 FROM tab2 AS cor0
----
-1345
-217
-4602

query I rowsort
SELECT - cor0.col2 * + col1 - - col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8432
SELECT - - col1 + - col2 DIV col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-8432
SELECT - - col1 + - col2 / col2 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8433
SELECT 57 DIV col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8433
SELECT 57 / col0 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col0 FROM tab1 AS cor0
----
71

query I rowsort
SELECT + - 77 FROM tab1 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL + 14 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col2 FROM tab0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8438
SELECT CAST( NULL AS SIGNED ) + - 35 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT CAST ( NULL AS INTEGER ) + - 35 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - col1 ) * - col2 + - col0 col1 FROM tab0
----
244044
678953
9374

query I rowsort
SELECT + 60 + - col1 AS col1 FROM tab2 cor0
----
1
29
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-8441
SELECT ALL - 59 DIV - col2 col0 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - 59 / - col2 col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - 62 + col0 FROM tab2 AS cor0
----
-55
16
17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IN ( - tab1.col0 + + col1 )
----

query I rowsort
SELECT - col0 * col0 * + col0 + - col2 AS col2 FROM tab1 WHERE NOT NULL <= ( col1 * - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8445
SELECT col2 + col0 DIV - tab2.col1 + + col2 FROM tab2
----
51
54
72

skipif mysql # not compatible
query I rowsort label-8445
SELECT col2 + col0 / - tab2.col1 + + col2 FROM tab2
----
51
54
72

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0 / tab1.col0 + - col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8447
SELECT ALL - col0 + + col1 DIV col0 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL - col0 + + col1 / col0 FROM tab2
----
-3
-78
-79

query I rowsort
SELECT ALL tab1.col2 + col0 - col1 AS col1 FROM tab1 WHERE col1 NOT IN ( col0 * - col2 )
----
111
163
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - tab0.col2 + col2 * + col2 col1 FROM tab0
----
1142
6733
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - tab2.col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT + col2 * col2 AS col0 FROM tab0 WHERE + col1 * col1 * - col2 BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT col2 + col0 * + col0 * - col0 FROM tab1
----
-262087
-511904
27

query I rowsort
SELECT - - col2 * col0 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - + col1 + + col1 * col1 FROM tab2 AS cor0
----
272
3422
930

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( tab2.col2 )
----

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab0 AS cor0 WHERE ( NULL ) <= - col0
----

query I rowsort
SELECT + col2 * + col1 + - col1 + + col0 FROM tab0
----
2776
35
7460

query I rowsort
SELECT - 87 + - col1 + col1 * + 98 FROM tab1
----
1174
2435
883

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8460
SELECT DISTINCT - 61 DIV + 73 + - col2 - - ( col1 + col2 ) * 61 FROM tab2
----
3317
3511
5159

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT - 61 / + 73 + - col2 - - ( col1 + col2 ) * 61 FROM tab2
----
3317
3511
5159

query I rowsort
SELECT ALL - col0 - + 20 * + col0 AS col0 FROM tab1
----
-1344
-1680
-63

query I rowsort
SELECT - col2 + 60 * col0 AS col2 FROM tab2
----
393
4654
4702

query I rowsort
SELECT + col2 + + 36 + + col1 * + 94 FROM tab1
----
1033
1354
2534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8464
SELECT ALL - 77 * cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - 77 * cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 28 + col1 * - col2 * 85 + - col2 FROM tab1 cor0
----
-106148
-119366
-48479

query I rowsort
SELECT ALL - 63 * col0 + + col1 FROM tab1 AS cor0
----
-163
-4022
-5027

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col2 * col0 + - 70 + col2 * - 5 col2 FROM tab2 AS cor0
----
119452
50774
5654

query I rowsort
SELECT DISTINCT 68 + - col2 FROM tab1 cor0
----
-28
11
14

query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8470
SELECT - col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT - col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 65 + col2 AS col1 FROM tab2 AS cor0
----
103
91
92

query I rowsort
SELECT DISTINCT col0 * 47 + 2 FROM tab2 AS cor0
----
331
3668
3715

query I rowsort
SELECT DISTINCT + 81 * + 9 + - col2 FROM tab1 AS cor0
----
633
672
675

query I rowsort
SELECT + ( - ( col1 ) ) * col1 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8475
SELECT DISTINCT + - col2 DIV cor0.col2 - - col2 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT + - col2 / cor0.col2 - - col2 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL - - 49 * - 39 + - col2 FROM tab2 AS cor0
----
-1937
-1938
-1949

query I rowsort
SELECT + + 65 + + 24 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 83 FROM tab2 cor0
----
83

query I rowsort
SELECT - - ( col2 ) * col2 * col0 FROM tab0 cor0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT ALL 95 DIV 32 - col2 DIV ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-3
-5
0

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL 95 / 32 - col2 / ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-3
-5
0

query I rowsort
SELECT ALL - cor0.col1 + 94 * col0 FROM tab2 AS cor0
----
627
7273
7409

query I rowsort
SELECT - - ( 72 ) * col0 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT DISTINCT + col2 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-8485
SELECT ALL - + 26 * + col2 DIV col2 FROM tab0 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL - + 26 * + col2 / col2 FROM tab0 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - + col0 * - 30 AS col0 FROM tab1 AS cor0
----
1920
2400
90

query I rowsort
SELECT DISTINCT + ( 34 ) FROM tab0 AS cor0
----
34

query I rowsort
SELECT DISTINCT + 0 + - 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + ( + 58 ) * - col0 * cor0.col2 FROM tab2 AS cor0
----
-10962
-117624
-174116

onlyif mysql # use DIV operator for integer division
query I rowsort label-8491
SELECT DISTINCT + col2 DIV 33 AS col0 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT + col2 / 33 AS col0 FROM tab2 cor0
----
0
1

query I rowsort
SELECT ALL - - col1 * + col2 * col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL + col1 * + 53 AS col2 FROM tab1 AS cor0
----
1378
530
689

query I rowsort
SELECT - col2 * ( - col0 ) + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - cor0.col1 + - cor0.col2 + + col1 * cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
13411
1948
6333

query I rowsort
SELECT - 78 * 86 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to deb6959d7aa929409bcdf6b3203db485

query I rowsort
SELECT DISTINCT + tab0.col2 + + 96 AS col1 FROM tab0, tab1 AS cor0
----
129
178
97

query I rowsort
SELECT ALL + 9 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT ALL - col2 * 4 FROM tab0
----
-132
-328
-4

query I rowsort
SELECT DISTINCT 39 * - 37 FROM tab0, tab1 AS cor0
----
-1443

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8503
SELECT DISTINCT + - col1 / - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT + - col1 / - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT + - col2 DIV + 31 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8504
SELECT + - col2 / + 31 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col1 * 66 FROM tab0
----
5676
6006
6402

query I rowsort
SELECT col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 35 + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 070cbf3845ecf132d38e340eaf7d30e2

query I rowsort
SELECT - col0 * - col1 + - ( - col0 ) FROM tab1
----
1120
704
81

query I rowsort
SELECT + + col0 * col0 + - 87 FROM tab2 cor0
----
-38
5997
6154

query I rowsort
SELECT ALL 83 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT + - col2 + - 86 AS col2 FROM tab1 AS cor0
----
-140
-143
-182

query I rowsort
SELECT DISTINCT ( + tab2.col2 * + col1 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + + col0 - 32 FROM tab1 AS cor0
----
-29
32
48

query I rowsort
SELECT - + 40 * col1 * col1 AS col1 FROM tab1 AS cor0
----
-27040
-4000
-6760

query I rowsort
SELECT + col1 * - ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - col1 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - col2 * col0 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + col2 + + col2 * - col2 AS col2 FROM tab0
----
-1056
-6642
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8519
SELECT DISTINCT CAST( col2 AS SIGNED ) * col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0, tab1 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - 1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 97 * col0 + 34 AS col0 FROM tab2
----
713
7600
7697

query I rowsort
SELECT ALL + col1 + col1 * + cor0.col0 AS col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT - ( tab0.col0 ) * + tab0.col1 * + ( col0 ) FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + col1 * + col2 * 83 AS col2 FROM tab0 AS cor0
----
235554
619346
8051

query I rowsort
SELECT DISTINCT - + 61 * - col0 + - 3 FROM tab2 AS cor0
----
424
4755
4816

query I rowsort
SELECT 70 * - col1 AS col1 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT + 13 * cor0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 9c914214daa0ee760e7814a28dd64c98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT ALL + ( col1 ) + col2 DIV + col2 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + ( col1 ) + col2 / + col2 FROM tab1 cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 * col1 col2 FROM tab1 AS cor0
----
-1118
-430
-559

query I rowsort
SELECT DISTINCT - + ( - col0 ) * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 + col0 - - cor0.col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL col1 * 20 FROM tab2 cor0
----
1180
340
620

onlyif mysql # use DIV operator for integer division
query I rowsort label-8535
SELECT ALL + col2 DIV ( + 50 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + col2 / ( + 50 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col0 * - col2 * + 90 + - col2 FROM tab0 AS cor0
----
-3151
-656902
-71313

query I rowsort
SELECT ALL - col2 * + 53 - col1 FROM tab2 AS cor0
----
-1437
-1462
-2031

onlyif mysql # use DIV operator for integer division
query I rowsort label-8538
SELECT ALL + col1 DIV - 16 + - ( col0 ) FROM tab0 AS cor0
----
-29
-41
-94

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL + col1 / - 16 + - ( col0 ) FROM tab0 AS cor0
----
-29
-41
-94

query I rowsort
SELECT DISTINCT + col2 * 56 - 77 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
11445
2751
3696

query I rowsort
SELECT ALL - 0 * - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 43 * + col1 FROM tab0
----
-3698
-3913
-4171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 + - col2 col0 FROM tab1 AS cor0
----
-19
20
23

query I rowsort
SELECT ALL 28 * - col1 AS col2 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT - + col1 * col0 - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - 53 + 70 AS col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT 33 + + ( + col0 * - col1 ) FROM tab2 AS cor0
----
-1310
-184
-4569

query I rowsort
SELECT + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col0 - - col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT cor0.col0 + - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3

query I rowsort
SELECT + - 5 * col0 * - cor0.col2 FROM tab1 AS cor0
----
18240
38400
810

query I rowsort
SELECT ( col2 ) - cor0.col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8552
SELECT - - col1 + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-8552
SELECT - - col1 + - col1 / col0 AS col1 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT - + col1 + 76 * - col0 FROM tab2 AS cor0
----
-563
-5987
-6021

onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT - + col2 + ( col1 ) DIV col1 AS col0 FROM tab1 cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-8554
SELECT - + col2 + ( col1 ) / col1 AS col0 FROM tab1 cor0
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT ALL + cor0.col2 * col1 + ( - col2 ) * cor0.col2 DIV 8 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
1043
176
228

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + cor0.col2 * col1 + ( - col2 ) * cor0.col2 / 8 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
1043
176
228

query I rowsort
SELECT + col1 * 10 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT ALL cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 85 col0 FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT ALL - - col2 + 66 AS col2 FROM tab1 AS cor0
----
120
123
162

query I rowsort
SELECT DISTINCT - - cor0.col2 * 63 FROM tab2 cor0
----
1638
1701
2394

onlyif mysql # use DIV operator for integer division
query I rowsort label-8561
SELECT col0 DIV - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8561
SELECT col0 / - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - - col1 + 10 * - 11 FROM tab2 AS cor0
----
-51
-79
-93

query I rowsort
SELECT ALL - + col0 * + col1 + - cor0.col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + col0 + + col0 * ( col0 * + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT - col2 * - col1 + - 48 FROM tab1 cor0
----
1200
1356
522

onlyif mysql # use DIV operator for integer division
query I rowsort label-8566
SELECT DISTINCT + col1 + col1 DIV col0 + col1 FROM tab2
----
118
34
66

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + col1 + col1 / col0 + col1 FROM tab2
----
118
34
66

query I rowsort
SELECT DISTINCT - col2 + - 0 * 8 + - col1 AS col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT + col2 * col1 - + col2 * col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 73 * cor0.col1 + col1 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT DISTINCT + cor0.col0 - + ( cor0.col1 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-2
-62

query I rowsort
SELECT + - 58 + + 36 * - col0 FROM tab1 AS cor0
----
-166
-2362
-2938

query I rowsort
SELECT ALL - 50 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT col0 * + 83 AS col1 FROM tab2
----
581
6474
6557

query I rowsort
SELECT - 54 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT ALL + col1 + + col2 * col0 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-8578
SELECT ALL col0 * + col2 DIV col2 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL col0 * + col2 / col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + + 68 * - col2 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT + tab2.col0 * 51 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ccc3a14ecb39f25d1c0eb4d30fb3b898

onlyif mysql # use DIV operator for integer division
query I rowsort label-8581
SELECT ALL - ( col1 ) DIV col2 + col0 AS col2 FROM tab0 cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - ( col1 ) / col2 + col0 AS col2 FROM tab0 cor0
----
-62
22
88

query I rowsort
SELECT DISTINCT + + ( col2 ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + + col0 col2 FROM tab2 AS cor0
----
127
128
56

query I rowsort
SELECT 29 * + col0 AS col2 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 81 col0 FROM tab0 AS cor0
----
10
16
5

query I rowsort
SELECT ALL + col1 + - col1 * 90 + + cor0.col1 FROM tab0 AS cor0
----
-7568
-8008
-8536

query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT + col1 * - cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + + col0 * + col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL ( ( + cor0.col0 ) ) * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - 98 * - col0 AS col1 FROM tab2 cor0
----
686
7644
7742

query I rowsort
SELECT DISTINCT - col0 * 86 AS col1 FROM tab0 AS cor0
----
-2064
-3010
-7654

onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT DISTINCT - col1 DIV - 78 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT - col1 / - 78 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8595
SELECT DISTINCT + 99 DIV col0 FROM tab2 AS cor0
----
1
14

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + 99 / col0 FROM tab2 AS cor0
----
1
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT 51 * cor0.col0 DIV col0 col2 FROM tab2 AS cor0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8596
SELECT 51 * cor0.col0 / col0 col2 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT + col0 DIV 91 + cor0.col2 - - 82 col1 FROM tab0 AS cor0
----
115
164
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8597
SELECT + col0 / 91 + cor0.col2 - - 82 col1 FROM tab0 AS cor0
----
115
164
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 78 ) + + cor0.col2 col1 FROM tab1 AS cor0
----
132
135
174

query I rowsort
SELECT + - 38 * cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
-1406
-962
-999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8600
SELECT ALL + ( col0 ) + CAST( col2 * col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + ( col0 ) + CAST ( col2 * col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * + col1 + - col2 col0 FROM tab2 AS cor0
----
-1143
-2150
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8602
SELECT DISTINCT + + ( col1 ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT + + ( col1 ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8603
SELECT 49 DIV col1 + - cor0.col2 FROM tab2 AS cor0
----
-26
-26
-36

skipif mysql # not compatible
query I rowsort label-8603
SELECT 49 / col1 + - cor0.col2 FROM tab2 AS cor0
----
-26
-26
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT + 99 DIV col0 + col2 * - col1 * col1 FROM tab0 AS cor0
----
-244064
-679041
-9407

skipif mysql # not compatible
query I rowsort label-8604
SELECT + 99 / col0 + col2 * - col1 * col1 FROM tab0 AS cor0
----
-244064
-679041
-9407

query I rowsort
SELECT - - col2 * - col1 + + col1 * col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8606
SELECT ALL - CAST( NULL AS SIGNED ) + col2 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 98 * + 73 + - col1 + ( col2 ) * - col2 FROM tab0
----
-13969
-7252
-8329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 42 col1 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + + 68 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da

query I rowsort
SELECT ALL ( + col2 ) * - tab2.col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 82 * col1 FROM tab0
----
-7052
-7462
-7954

query I rowsort
SELECT + ( 24 ) FROM tab1
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col0 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8614
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 20 * + tab0.col2 AS col1 FROM tab0
----
1640
20
660

query I rowsort
SELECT DISTINCT - 59 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT ALL col1 + tab0.col1 DIV - col0 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL col1 + tab0.col1 / - col0 FROM tab0
----
83
90
95

query I rowsort
SELECT DISTINCT - col1 * + col2 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 + col2 + - col1 FROM tab0 AS cor0
----
-1321
-629
-7930

query I rowsort
SELECT - 76 - - col2 * 72 FROM tab0 AS cor0
----
-4
2300
5828

query I rowsort
SELECT DISTINCT 73 * col0 FROM tab2
----
511
5694
5767

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 - + 90 FROM tab1 cor0
----
-3006
-3339
-9306

query I rowsort
SELECT - - col1 * - 90 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT ALL + col1 + + ( col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col2 + + 29 + + cor0.col0 AS col0 FROM tab1 cor0
----
150
205
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-8626
SELECT - + cor0.col2 * col1 + 17 DIV + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-80

skipif mysql # not compatible
query I rowsort label-8626
SELECT - + cor0.col2 * col1 + 17 / + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-80

query I rowsort
SELECT - col2 + cor0.col2 * - 72 AS col2 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT - col1 * - 64 + + 37 FROM tab1 AS cor0
----
1701
677
869

query I rowsort
SELECT + + col2 * - col2 + - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL - col0 + 86 FROM tab0
----
-3
51
62

query I rowsort
SELECT - col2 - - ( col1 ) * col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT + col1 * ( + 65 * - col0 + - col2 * - col0 ) FROM tab0
----
-217280
-66048
137683

query I rowsort
SELECT + col0 * 56 * col2 FROM tab0 AS cor0
----
1960
408688
44352

query I rowsort
SELECT DISTINCT 23 * col1 FROM tab0 AS cor0
----
1978
2093
2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-8635
SELECT DISTINCT col2 DIV + col1 + col2 * 83 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
235554
619346
8051

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT col2 / + col1 + col2 * 83 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
235554
619346
8051

query I rowsort
SELECT DISTINCT + + col2 + + 58 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT ALL + cor0.col2 * col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - + ( 84 ) * - col1 AS col0 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT ALL - + cor0.col1 + - col2 AS col1 FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8640
SELECT ALL - col0 DIV 83 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - col0 / 83 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col2 * - col2 + - cor0.col2 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8642
SELECT CAST( - 86 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

skipif mysql # not compatible
query I rowsort label-8642
SELECT CAST ( - 86 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8643
SELECT DISTINCT col0 * col0 * + col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT col0 * col0 * + col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 30 + 48 * col0 FROM tab1 AS cor0
----
174
3102
3870

onlyif mysql # use DIV operator for integer division
query I rowsort label-8645
SELECT ALL + ( + col1 ) + col0 DIV cor0.col0 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL + ( + col1 ) + col0 / cor0.col0 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT + col1 * - cor0.col1 * + col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col0 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + col1 * + col2 * - ( - col0 ) FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL ( - cor0.col2 ) + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + cor0.col2 * - cor0.col1 + - col1 AS col1 FROM tab1 cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT + col2 + - col0 DIV - 11 AS col2 FROM tab2 cor0
----
27
33
45

skipif mysql # not compatible
query I rowsort label-8652
SELECT + col2 + - col0 / - 11 AS col2 FROM tab2 cor0
----
27
33
45

query I rowsort
SELECT - + 42 * col1 AS col1 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT DISTINCT - 64 * - col1 * 73 AS col1 FROM tab1 AS cor0
----
121472
46720
60736

query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab2, tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col1 + + 36 AS col0 FROM tab0 AS cor0
----
-50
-55
-61

query I rowsort
SELECT ALL - + cor0.col1 * - col1 + - col0 * + col2 FROM tab1 cor0
----
-3548
-7511
514

query I rowsort
SELECT cor1.col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + - col1 + - col1 * + col1 FROM tab0 cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + cor0.col1 * col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * - col2 * + col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT + + col2 * col0 * 74 AS col1 FROM tab1 AS cor0
----
11988
269952
568320

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 + 38 AS col0 FROM tab1 AS cor0
----
-26
-42
35

query I rowsort
SELECT DISTINCT + + col1 * col2 + 39 AS col0 FROM tab2 AS cor0
----
1573
685
876

query I rowsort
SELECT DISTINCT + cor0.col0 * + 19 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT DISTINCT - + col0 + + 38 * + cor0.col2 * - cor0.col0 + col2 AS col2 FROM tab2 cor0
----
-114117
-7162
-77116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 - 21 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 46aa67bd7039f66bd66650c2beb4e634

query I rowsort
SELECT 54 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT + tab1.col2 * col1 + + col2 * col0 * + col2 AS col1 FROM tab1
----
10152
208506
738528

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 BETWEEN NULL AND + col1 + + col0
----

query I rowsort
SELECT col1 * + col1 + - col2 AS col1 FROM tab1
----
43
622
73

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8676
SELECT DISTINCT col1 DIV col2 col2 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT col1 / col2 col2 FROM tab0
----
1
2
97

query I rowsort
SELECT col1 * + col1 * + col0 AS col2 FROM tab1 WHERE NOT ( NULL ) <> col1
----

query I rowsort
SELECT tab0.col0 * col1 - col0 FROM tab0 WHERE NOT ( NULL ) IN ( col0 * - col2 )
----

query I rowsort
SELECT + col2 + col0 - + col1 AS col1 FROM tab1
----
111
163
31

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( + col0 * col1 + + col2 )
----

query I rowsort
SELECT DISTINCT col0 + col1 - col2 FROM tab0
----
131
77
98

query I rowsort
SELECT col1 + + col2 + - col2 FROM tab0
----
86
91
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 IN ( - col2 + col1 )
----

query I rowsort
SELECT ALL - tab2.col0 * + col0 * + col2 + - col2 FROM tab2
----
-1350
-158210
-237196

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 ALL - col0 * tab1.col0 + - col0 FROM tab1
----
-12
-4160
-6480

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col1 - + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8688
SELECT - col2 * - col1 * + col1 + - tab1.col2 DIV tab1.col1 AS col0 FROM tab1
----
16217
36502
5695

skipif mysql # not compatible
query I rowsort label-8688
SELECT - col2 * - col1 * + col1 + - tab1.col2 / tab1.col1 AS col0 FROM tab1
----
16217
36502
5695

query I rowsort
SELECT DISTINCT + col2 * + col0 * col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + cor0.col2 * col0 + ( + ( cor0.col0 ) ) FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT ( col2 * col1 ) + 51 * - 0 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8692
SELECT ALL + ( col0 ) DIV col0 + - 48 FROM tab2
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + ( col0 ) / col0 + - 48 FROM tab2
----
-47
-47
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8693
SELECT ALL - ( + 45 ) + + tab1.col0 * CAST( 6 AS SIGNED ) * col0 + - col1 FROM tab1
----
-17
24521
38342

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL - ( + 45 ) + + tab1.col0 * CAST ( 6 AS INTEGER ) * col0 + - col1 FROM tab1
----
-17
24521
38342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 + - ( col0 ) * col1 + col1 col0 FROM tab1
----
-17
-595
-992

query I rowsort
SELECT col1 * 69 + tab0.col0 AS col1 FROM tab0
----
5958
6368
6728

query I rowsort
SELECT + + ( - 60 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT 21 * - col1 * col1 FROM tab2 AS cor0
----
-20181
-6069
-73101

query I rowsort
SELECT ALL - 68 + col2 AS col1 FROM tab2 AS cor0
----
-30
-41
-42

query I rowsort
SELECT - cor0.col0 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + - 80 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-80

query I rowsort
SELECT ALL - col1 + 79 FROM tab2
----
20
48
62

query I rowsort
SELECT ALL col1 * 25 + + col1 * + col0 FROM tab0 AS cor0
----
10374
4214
5820

query I rowsort
SELECT - cor0.col1 * 20 FROM tab2 AS cor0
----
-1180
-340
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - ( - ( + col0 ) ) * col1 * + col0 col0 FROM tab1 AS cor0
----
231
40896
83120

query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + col2 * + ( + col0 ) col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col0 - 86 FROM tab2 AS cor0
----
-164
-165
-93

query I rowsort
SELECT DISTINCT + col1 + - 71 FROM tab2 AS cor0
----
-12
-40
-54

query I rowsort
SELECT - 4 * + 15 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + - col2 * col2 + cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8711
SELECT ALL + CAST( NULL AS SIGNED ) * + ( + col2 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( + col2 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8712
SELECT cor0.col2 - + col0 DIV + col1 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-8712
SELECT cor0.col2 - + col0 / + col1 FROM tab2 AS cor0
----
25
27
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8713
SELECT col0 + + col1 DIV + col2 - + col2 FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-8713
SELECT col0 + + col1 / + col2 - + col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - - col2 * col0 - col0 * col1 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT ALL - - 28 + - col2 FROM tab0 cor0
----
-5
-54
27

query I rowsort
SELECT ALL - col1 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT col2 * col1 - + col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT col2 + col2 * col2 * + col2 FROM tab0 AS cor0
----
2
35970
551450

query I rowsort
SELECT col2 + cor0.col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT 73 * - col2 * + col1 AS col2 FROM tab2
----
-111982
-47158
-61101

query I rowsort
SELECT ALL - 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT + 53 + 16 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - ( + col0 ) * + col0 + - col2 - + col0 FROM tab2 AS cor0
----
-6188
-6358
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8727
SELECT - - 25 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8727
SELECT - - 25 / col0 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8728
SELECT - CAST( NULL AS SIGNED ) * - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8729
SELECT 88 * + col0 DIV - col0 AS col0 FROM tab2
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-8729
SELECT 88 * + col0 / - col0 AS col0 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT DISTINCT col1 * col2 + - col1 - + col1 FROM tab1
----
1222
1352
550

query I rowsort
SELECT DISTINCT + tab1.col2 * col2 * col0 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-8732
SELECT tab1.col1 + col2 DIV col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-8732
SELECT tab1.col1 + col2 / col1 FROM tab1
----
15
20
28

query I rowsort
SELECT ALL + col1 * tab0.col0 * tab0.col0 FROM tab0
----
118825
49536
720811

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 + col1 ) NOT IN ( + col1 - col2 * + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL + col2 * tab2.col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col0 * col1 + col2 + col1 FROM tab0
----
-1945
-3297
-7926

query I rowsort
SELECT ALL - col0 * col2 * col1 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 * col2 + col2 FROM tab1 AS cor0
----
-157410
-185136
-884640

query I rowsort
SELECT col2 + col1 + + col2 * + col2 FROM tab1 cor0 WHERE col1 + - col2 IN ( + col2 + cor0.col1 * col2 * - col0 )
----

query I rowsort
SELECT ALL - col2 * + col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + cor0.col1 + col0 - - col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL + tab2.col2 + col2 * col1 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT col0 + tab1.col1 * + tab1.col2 AS col1 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT + - cor0.col0 DIV - cor0.col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8744
SELECT + - cor0.col0 / - cor0.col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT ALL - - col0 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + - cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + cor0.col2 + col0 * col2 * + col2 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
113468
4293
51220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - cor0.col0 col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL - col1 + + ( tab2.col1 ) * - col2 FROM tab2
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-8750
SELECT ALL col2 + - tab0.col1 * + col1 + col2 DIV col2 AS col0 FROM tab0
----
-7362
-8198
-9407

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL col2 + - tab0.col1 * + col1 + col2 / col2 AS col0 FROM tab0
----
-7362
-8198
-9407

query I rowsort
SELECT + - cor0.col0 + - 44 AS col2 FROM tab1 AS cor0
----
-108
-124
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 + 20 col0 FROM tab2
----
37
51
79

query I rowsort
SELECT DISTINCT 55 * col1 AS col2 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT ALL + col1 * - 62 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT ( - col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col2 + 51 AS col1 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT ALL + - col2 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - 60 + 77 * col2 AS col2 FROM tab1 cor0
----
4098
4329
7332

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - col2 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - - cor0.col2 * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 + + col1 col1 FROM tab1 AS cor0
----
30
33
46

query I rowsort
SELECT + - cor0.col0 * col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL col1 + + 46 AS col2 FROM tab0
----
132
137
143

query I rowsort
SELECT + 96 + 86 FROM tab0, tab2 AS cor0
----
9 values hashing to d9a63473249310eee3104d48de5e5a07

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 95 * - col0 col2 FROM tab1
----
282
6016
7520

query I rowsort
SELECT ALL + ( + 16 ) + - cor0.col1 FROM tab1 AS cor0
----
-10
3
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT DISTINCT + ( - col2 ) + col1 DIV - col2 col2 FROM tab0 AS cor0
----
-35
-83
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT + ( - col2 ) + col1 / - col2 col2 FROM tab0 AS cor0
----
-35
-83
-98

query I rowsort
SELECT + ( col2 ) + - col2 * + ( + col2 ) FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + 77 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
2061
2110
2943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * 81 + col0 * ( col0 ) col1 FROM tab2 cor0
----
13293
13450
7258

query I rowsort
SELECT ALL - 63 * + col1 - col0 FROM tab0 AS cor0
----
-5442
-5822
-6146

onlyif mysql # use DIV operator for integer division
query I rowsort label-8773
SELECT DISTINCT + + col2 DIV + col1 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT + + col2 / + col1 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 71 + - col2 AS col1 FROM tab0 AS cor0
----
-11
38
70

query I rowsort
SELECT DISTINCT - ( col2 ) * - 8 * col1 FROM tab2 AS cor0
----
12272
5168
6696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - ( 62 ) col1 FROM tab2 AS cor0
----
1054
1922
3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col0 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT - - col0 * + col0 + 4 FROM tab2 AS cor0
----
53
6088
6245

query I rowsort
SELECT DISTINCT - col2 * + col0 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) * col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-8781
SELECT DISTINCT + col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT + col0 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 - ( + cor0.col2 ) * col0 col1 FROM tab2 AS cor0
----
-2080
-243
-3078

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT - col1 / + col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT - col1 / + col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( cor0.col1 ) + col0 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - ( + col2 ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8788
SELECT DISTINCT - + ( + col0 ) DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT - + ( + col0 ) / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL - + cor0.col2 + + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - 69 FROM tab1, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ALL col2 - + col0 * + 47 FROM tab2
----
-302
-3640
-3675

query I rowsort
SELECT - col1 + + 64 * cor0.col0 AS col1 FROM tab2 AS cor0
----
417
4933
5039

query I rowsort
SELECT DISTINCT - col2 * - ( ( cor0.col2 ) ) - + col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT col2 + - col0 - + 17 FROM tab1
----
-1
-24
34

query I rowsort
SELECT - ( + tab2.col2 ) * 61 + - col0 FROM tab2
----
-1654
-1664
-2397

query I rowsort
SELECT + col0 * - 49 + + col1 - + col0 AS col2 FROM tab1 AS cor0
----
-124
-3190
-3987

query I rowsort
SELECT DISTINCT - cor0.col2 + 8 FROM tab0, tab1 AS cor0
----
-46
-49
-88

query I rowsort
SELECT col0 * - ( col2 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 25 FROM tab1, tab0 cor0, tab0 AS cor1
----
25

query I rowsort
SELECT - 30 * + col2 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT ALL + + 48 + col1 + col1 FROM tab2 AS cor0
----
110
166
82

query I rowsort
SELECT - col0 * + 41 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT + 11 - col2 * + col1 FROM tab1 AS cor0
----
-1237
-1393
-559

query I rowsort
SELECT - col0 + ( 40 ) * + col0 AS col0 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT DISTINCT - 81 * 69 AS col1 FROM tab2 cor0
----
-5589

query I rowsort
SELECT ALL col2 + cor0.col0 * - col0 AS col2 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL + + col2 * + col2 - - col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT tab2.col1 * - 34 FROM tab2
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 * 53 FROM tab0
----
1272
1855
4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-8811
SELECT DISTINCT + 52 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT + 52 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - 1 * col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - 54 * + col1 AS col2 FROM tab2 AS cor0
----
-1674
-3186
-918

query I rowsort
SELECT ALL 9 + cor0.col1 FROM tab0 AS cor0
----
100
106
95

query I rowsort
SELECT - ( + col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + 30 AS col2 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - 49 * - col1 AS col2 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT - col0 + - 83 FROM tab1 AS cor0
----
-147
-163
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - cor0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - ( + tab2.col0 * - tab2.col2 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT - + 18 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT + col2 + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + col0 + + ( - col1 ) FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL 95 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT ALL cor0.col0 * + 64 + + 60 * - col1 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
445382
502647
566877

query I rowsort
SELECT 3 * - col1 - - 45 AS col2 FROM tab0
----
-213
-228
-246

query I rowsort
SELECT DISTINCT - col1 - tab2.col1 AS col2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT - col1 + - col2 + + col0 AS col0 FROM tab1
----
-29
-3
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT col0 + ( - tab2.col0 ) * col2 DIV - ( - tab2.col0 * col0 ) col1 FROM tab2
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8829
SELECT col0 + ( - tab2.col0 ) * col2 / - ( - tab2.col0 * col0 ) col1 FROM tab2
----
4
78
79

query I rowsort
SELECT + col1 * tab2.col1 - col1 AS col2 FROM tab2
----
272
3422
930

query I rowsort
SELECT ALL - cor0.col1 + ( col1 ) * col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + col0 * + col2 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT col1 * + 95 + - 75 FROM tab2 cor0
----
1540
2870
5530

query I rowsort
SELECT + col1 + - 6 * - 31 FROM tab1 AS cor0
----
196
199
212

query I rowsort
SELECT + + col1 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + + col2 + - col0 * + col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL - 71 * - col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT + + col2 + col1 * - ( col1 ) * col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8839
SELECT ALL - 68 * ( - col0 ) + - CAST( + col2 AS SIGNED ) + col2 AS col0 FROM tab2
----
476
5304
5372

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - 68 * ( - col0 ) + - CAST ( + col2 AS INTEGER ) + col2 AS col0 FROM tab2
----
476
5304
5372

query I rowsort
SELECT ALL col2 + - tab2.col1 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT + 27 FROM tab2, tab1, tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT col0 * - col2 + - 96 * - 47 FROM tab2
----
1510
2484
4323

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT + - cor0.col0 * col1 - + 81 AS col0 FROM tab0 AS cor0
----
-2145
-3476
-8180

query I rowsort
SELECT col2 * + col2 - col0 FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT ALL + col2 * + 46 AS col0 FROM tab0
----
1518
3772
46

query I rowsort
SELECT DISTINCT - - col2 * + ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT tab0.col2 + ( + col2 ) FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8850
SELECT ALL + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + + 8 FROM tab2 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * 94 col0 FROM tab0 AS cor0
----
9212

query I rowsort
SELECT ALL col0 + col0 + col1 FROM tab0 cor0
----
134
167
269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8855
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 * col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 * col2 AS col0 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8856
SELECT DISTINCT CAST( NULL AS SIGNED ) * 18 + cor0.col1 + - ( col2 ) * - cor0.col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 18 + cor0.col1 + - ( col2 ) * - cor0.col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 15 + ( cor0.col1 ) + - col2 * col2 FROM tab0 AS cor0
----
-6618
-988
111

query I rowsort
SELECT - + 97 AS col1 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - + col1 + 92 AS col0 FROM tab2 AS cor0
----
33
61
75

query I rowsort
SELECT ALL - - col2 + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + 44 * + col0 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT ALL col0 + 9 FROM tab0 cor0
----
33
44
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8864
SELECT DISTINCT tab1.col1 * col0 DIV - col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT tab1.col1 * col0 / - col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + 95 * 64 AS col2 FROM tab1 AS cor0
----
6080

query I rowsort
SELECT - 94 + - col2 * - 57 FROM tab0 AS cor0
----
-37
1787
4580

query I rowsort
SELECT + col2 * col2 + + col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT - tab2.col1 * - col2 + - col2 FROM tab2
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col1 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8870
SELECT ALL - col0 * CAST( + ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL - col0 * CAST ( + ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + col2 * - ( + ( - col2 ) ) + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT col0 + 52 * - col2 AS col2 FROM tab0 AS cor0
----
-1692
-17
-4175

query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 AS col2 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 + + 49 col0 FROM tab2 AS cor0
----
153
166
83

query I rowsort
SELECT DISTINCT - col1 - 15 AS col0 FROM tab0 AS cor0
----
-101
-106
-112

query I rowsort
SELECT ALL + col1 + col1 + ( col1 ) AS col1 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT col2 * ( - col0 ) + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT cor0.col2 + - col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 * 81 * - cor0.col1 AS col0 FROM tab1 cor0
----
-13689
-54756
-8100

query I rowsort
SELECT + col2 + ( + col0 + col2 ) AS col0 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT col0 + tab2.col1 + ( col2 + col1 ) FROM tab2
----
151
222
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT - - col1 * - ( - ( col1 ) ) FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 * + col2 col1 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT - col2 * 12 AS col2 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT - + ( col0 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col2 + - ( - col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL - + cor0.col0 + - ( + 77 ) AS col0 FROM tab0 cor0
----
-101
-112
-166

query I rowsort
SELECT DISTINCT + + col0 * + ( cor0.col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col1 + 32 AS col2 FROM tab0 AS cor0
----
118
123
129

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + col0 * col1 - col0 AS col1 FROM tab2
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8893
SELECT col2 DIV col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8893
SELECT col2 / col1 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8894
SELECT + col1 DIV ( + 6 * col0 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8894
SELECT + col1 / ( + 6 * col0 ) FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf

onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT cor0.col0 DIV ( 42 ) FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8896
SELECT cor0.col0 / ( 42 ) FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8897
SELECT ALL + 52 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + 52 / - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 15 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + + 50 + 74 * + col0 FROM tab1 AS cor0
----
272
4786
5970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8900
SELECT - - col1 + col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT - - col1 + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8902
SELECT DISTINCT - 21 + col1 DIV 29 FROM tab2 AS cor0
----
-19
-20
-21

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT - 21 + col1 / 29 FROM tab2 AS cor0
----
-19
-20
-21

query I rowsort
SELECT - col2 * + col1 + - 23 FROM tab1 AS cor0
----
-1271
-1427
-593

query I rowsort
SELECT - + 65 AS col2 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + - 4 * col0 FROM tab2 AS cor0
----
-28
-312
-316

query I rowsort
SELECT + - col2 + + cor0.col1 AS col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ( col2 ) + - 97 AS col1 FROM tab2 cor0
----
-59
-70
-71

query I rowsort
SELECT col1 * col0 + - col0 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT ALL + 84 + - col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
84
84
88

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + 84 + - col1 / - col0 AS col1 FROM tab2 AS cor0
----
84
84
88

query I rowsort
SELECT DISTINCT - 87 + cor0.col0 FROM tab1 AS cor0
----
-23
-7
-84

query I rowsort
SELECT DISTINCT cor0.col2 - + cor0.col2 * + col0 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - ( col2 + col2 ) col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT DISTINCT + col0 + 63 DIV - col0 AS col0 FROM tab1 cor0
----
-18
64
80

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + col0 + 63 / - col0 AS col0 FROM tab1 cor0
----
-18
64
80

query I rowsort
SELECT 53 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL 1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT 22 - - col1 * col0 FROM tab1
----
100
1062
662

query I rowsort
SELECT - cor0.col2 - - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 60 - - col0 * - col2 AS col1 FROM tab1 cor0
----
-222
-3708
-7740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8920
SELECT col0 * + CAST( + 74 AS SIGNED ) AS col0 FROM tab1
----
222
4736
5920

skipif mysql # not compatible
query I rowsort label-8920
SELECT col0 * + CAST ( + 74 AS INTEGER ) AS col0 FROM tab1
----
222
4736
5920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 * - 34 col1 FROM tab1 AS cor0
----
1904

query I rowsort
SELECT DISTINCT - 55 + col2 FROM tab1 AS cor0
----
-1
2
41

query I rowsort
SELECT - col1 - + cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT col1 * - col2 - col2 * ( col2 ) AS col0 FROM tab0
----
-14186
-3927
-98

query I rowsort
SELECT - col2 * col1 * tab0.col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL - ( + cor0.col1 ) * - col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col1 * col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT 3 * - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-158
-202
-358

query I rowsort
SELECT 41 * col2 AS col2 FROM tab2
----
1066
1107
1558

query I rowsort
SELECT DISTINCT - col1 * + col1 + col0 * 51 FROM tab0
----
-3742
-6172
-7624

onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT ALL col0 DIV - col1 + col0 AS col2 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL col0 / - col1 + col0 AS col2 FROM tab1
----
3
58
74

query I rowsort
SELECT + 85 - 52 AS col1 FROM tab1
----
33
33
33

query I rowsort
SELECT + 39 + col0 * col0 + col2 AS col1 FROM tab2
----
115
6149
6318

query I rowsort
SELECT - col0 * - col2 + col0 + ( - col1 ) FROM tab1
----
139
3702
7747

query I rowsort
SELECT DISTINCT col1 + 19 FROM tab0 AS cor0
----
105
110
116

query I rowsort
SELECT ALL + col2 - - 95 * col2 * - cor0.col2 FROM tab2 AS cor0
----
-137142
-64194
-69228

query I rowsort
SELECT DISTINCT + + col2 + ( 21 ) * col0 + - col2 FROM tab1 AS cor0
----
1344
1680
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT ALL col1 DIV + 79 - - 37 FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL col1 / + 79 - - 37 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT + + col0 + 57 AS col1 FROM tab2 AS cor0
----
135
136
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 * ( col2 + tab1.col1 ) col1 FROM tab1
----
-1321
-2026
-613

query I rowsort
SELECT DISTINCT + col0 * + col2 - col2 * col1 FROM tab2
----
-648
2356
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-8942
SELECT + col0 + col1 DIV + 56 + col1 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-8942
SELECT + col0 + col1 / + 56 + col1 FROM tab0
----
111
133
181

query I rowsort
SELECT col1 + col0 + col2 FROM tab1
----
131
189
83

query I rowsort
SELECT ( + 65 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - + ( ( col1 ) ) * - 75 + + col1 * - col1 FROM tab1 cor0
----
1274
650
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * + col1 col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col2 + 31 * + col2 FROM tab1
----
1728
1824
3072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8948
SELECT DISTINCT CAST( - 10 AS SIGNED ) col0 FROM tab1, tab1 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT CAST ( - 10 AS INTEGER ) col0 FROM tab1, tab1 AS cor0
----
-10

query I rowsort
SELECT DISTINCT cor0.col2 + 77 AS col0 FROM tab0, tab2, tab0 cor0
----
110
159
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8950
SELECT - col0 DIV col0 + - col1 + - col0 * + ( tab1.col0 ) AS col2 FROM tab1
----
-36
-4107
-6414

skipif mysql # not compatible
query I rowsort label-8950
SELECT - col0 / col0 + - col1 + - col0 * + ( tab1.col0 ) AS col2 FROM tab1
----
-36
-4107
-6414

query I rowsort
SELECT DISTINCT tab0.col1 * + col1 + + col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT 90 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT - cor0.col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT - cor0.col0 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + - col0 + + col1 * - 71 + 4 FROM tab2 AS cor0
----
-1282
-2204
-4263

query I rowsort
SELECT DISTINCT tab1.col2 * + col1 + - col0 + + col0 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8956
SELECT ALL col2 + + col0 DIV ( col1 * col1 ) AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL col2 + + col0 / ( col1 * col1 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - 23 + + col0 FROM tab0 cor0
----
1
12
66

query I rowsort
SELECT 54 * 64 AS col0 FROM tab2
----
3456
3456
3456

query I rowsort
SELECT DISTINCT 39 + + col0 + col1 * - col1 FROM tab1
----
-50
-634
3

query I rowsort
SELECT DISTINCT + 43 + tab2.col0 FROM tab2
----
121
122
50

query I rowsort
SELECT + 6 + col2 FROM tab2
----
32
33
44

query I rowsort
SELECT ALL + col2 + col0 * col1 AS col1 FROM tab0 cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 + col0 * col1 * col2 col2 FROM tab0 AS cor0
----
3327
664050
68044

onlyif mysql # use DIV operator for integer division
query I rowsort label-8964
SELECT ALL - + col2 * cor0.col2 + + col1 DIV 79 AS col0 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - + col2 * cor0.col2 + + col1 / 79 AS col0 FROM tab0 AS cor0
----
-1088
-6723
0

query I rowsort
SELECT DISTINCT + + 95 * + col2 FROM tab0 cor0
----
3135
7790
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 * + tab2.col1 col1 FROM tab2
----
-1178
-2242
-646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + col2 col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - 10 * tab2.col1 AS col0 FROM tab2
----
-170
-310
-590

onlyif mysql # use DIV operator for integer division
query I rowsort label-8969
SELECT ALL tab0.col1 DIV - col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL tab0.col1 / - col1 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ( col0 ) * - col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ( col1 * col1 + - col1 ) AS col0 FROM tab2
----
272
3422
930

query I rowsort
SELECT ( col2 + 34 ) FROM tab1
----
130
88
91

query I rowsort
SELECT DISTINCT col2 + + 67 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT col2 * ( col1 ) AS col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - ( - tab1.col2 * + col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT + cor0.col2 * - cor0.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab1 cor1
----
27 values hashing to b0121644d0817627bc8036c50f8e780d

onlyif mysql # use DIV operator for integer division
query I rowsort label-8978
SELECT 12 * tab1.col2 DIV col0 AS col2 FROM tab1
----
10
14
216

skipif mysql # not compatible
query I rowsort label-8978
SELECT 12 * tab1.col2 / col0 AS col2 FROM tab1
----
10
14
216

onlyif mysql # use DIV operator for integer division
query I rowsort label-8979
SELECT - 36 DIV ( + col1 ) + + col1 col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8979
SELECT - 36 / ( + col1 ) + + col1 col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 + col2 * col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT + - col0 * - col0 - col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT - - col2 + + col1 * col2 * - col0 FROM tab1 cor0
----
-36423
-4158
-99744

query I rowsort
SELECT + + col0 * 22 + + col1 FROM tab0 AS cor0
----
2049
614
867

query I rowsort
SELECT DISTINCT - 91 - + 66 * + col0 AS col2 FROM tab2 AS cor0
----
-5239
-5305
-553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col1 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + 43 * cor0.col0 - - cor0.col2 FROM tab2 cor0
----
328
3380
3435

query I rowsort
SELECT DISTINCT + + col2 - 4 FROM tab2 AS cor0
----
22
23
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 + col2 col2 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 + - col2 col2 FROM tab2 AS cor0
----
-56
-57
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT ALL + 92 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + 92 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - ( col0 + - col2 ) * + col1 AS col0 FROM tab1
----
-70
1326
208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8992
SELECT - - CAST( + ( + col2 ) AS SIGNED ) * 86 + - 68 + - col0 col2 FROM tab2 AS cor0
----
2090
2247
3121

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8992
SELECT - - CAST ( + ( + col2 ) AS INTEGER ) * 86 + - 68 + - col0 col2 FROM tab2 AS cor0
----
2090
2247
3121

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + + col1 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( col1 ) * + col1 col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT - col0 * col2 * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - 13 + + ( col1 ) + - ( + col0 ) * col1 FROM tab2 AS cor0
----
-1339
-199
-4556

query I rowsort
SELECT + col0 * 8 * col2 FROM tab2
----
1512
16224
24016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8998
SELECT DISTINCT + col0 / + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT + col0 / + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8999
SELECT DISTINCT - col2 DIV 26 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT - col2 / 26 AS col2 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9000
SELECT DISTINCT + + CAST( 39 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT + + CAST ( 39 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab2, tab1 AS cor0
----
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT + ( col1 ) DIV col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9002
SELECT + ( col1 ) / col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT + col1 * col1 * - col2 + - col1 AS col1 FROM tab2
----
-10999
-25978
-90565

query I rowsort
SELECT - ( col2 ) - + col2 FROM tab0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT - 61 DIV 4 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif mysql # not compatible
query I rowsort label-9005
SELECT - 61 / 4 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT - col0 * - 88 FROM tab1
----
264
5632
7040

query I rowsort
SELECT DISTINCT tab1.col2 * + 1 + + 3 + col0 FROM tab1
----
124
179
60

query I rowsort
SELECT + col1 + - ( cor0.col1 ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
34

query I rowsort
SELECT col2 * ( col0 + col2 ) AS col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT + col0 * + 60 - col0 FROM tab2 AS cor0
----
413
4602
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9012
SELECT + + col0 * col1 + + col0 DIV col0 col1 FROM tab2 cor0
----
1344
218
4603

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9012
SELECT + + col0 * col1 + + col0 / col0 col1 FROM tab2 cor0
----
1344
218
4603

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT - col2 * CAST( - col2 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633

skipif mysql # not compatible
query I rowsort label-9015
SELECT - col2 * CAST ( - col2 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT - cor0.col2 + ( col0 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + cor0.col1 - 2 AS col0 FROM tab2 AS cor0
----
15
29
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT ALL - - col0 DIV + 53 + 88 + - col1 FROM tab1 AS cor0
----
62
76
79

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - - col0 / + 53 + 88 + - col1 FROM tab1 AS cor0
----
62
76
79

query I rowsort
SELECT + ( 4 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL + col1 + + 80 FROM tab2
----
111
139
97

query I rowsort
SELECT ALL col0 * + cor0.col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + - col1 * + 51 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT + ( - 38 ) FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT - 12 * - col2 AS col0 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT 62 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9026
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT - CAST ( NULL AS REAL ) * col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( 45 ) FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT col0 * 87 + col0 + cor0.col0 * - col2 FROM tab1 cor0
----
-640
102
1984

query I rowsort
SELECT ALL + ( 13 ) FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT - 1 * - col1 + cor0.col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT col0 - - col2 * col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL 17 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL - 26 * 53 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 760ee585258d1145adfca5da0d084bc5

query I rowsort
SELECT ALL + ( col0 ) + + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT - col0 + cor0.col2 * + 60 AS col2 FROM tab1 cor0
----
3237
3356
5680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9036
SELECT ALL + + col2 + + col0 DIV - ( col0 ) AS col2 FROM tab1 cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + + col2 + + col0 / - ( col0 ) AS col2 FROM tab1 cor0
----
53
56
95

query I rowsort
SELECT DISTINCT + col2 + + ( 8 ) AS col2 FROM tab1 AS cor0
----
104
62
65

query I rowsort
SELECT ALL - col1 * - col1 + 68 AS col2 FROM tab2 AS cor0
----
1029
3549
357

query I rowsort
SELECT ALL + + col0 * + col0 * - col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT - col1 * + 39 - - col2 AS col0 FROM tab1 AS cor0
----
-333
-411
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( + 94 ) col1 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT ALL - - col2 + - col0 + - 17 FROM tab2 cor0
----
-58
-69
3

query I rowsort
SELECT - col1 + + col1 * cor0.col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT col2 * 45 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT DISTINCT + + col2 * col0 * - cor0.col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - + col2 * + ( col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL - + col0 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-9049
SELECT DISTINCT + cor0.col1 + - cor0.col0 DIV ( - 18 + col1 ) FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + cor0.col1 + - cor0.col0 / ( - 18 + col1 ) FROM tab0 AS cor0
----
86
90
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9050
SELECT col1 + - cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT col1 + - cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 + + col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT DISTINCT + ( + cor0.col2 ) DIV 12 + - col0 AS col1 FROM tab0 AS cor0
----
-22
-35
-83

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT + ( + cor0.col2 ) / 12 + - col0 AS col1 FROM tab0 AS cor0
----
-22
-35
-83

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL ( cor0.col2 ) * - 83 FROM tab0 AS cor0
----
-2739
-6806
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9056
SELECT ALL - col0 + CAST( NULL AS SIGNED ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * + 13 AS col2 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT DISTINCT + col1 + - col1 * 81 FROM tab0 AS cor0
----
-6880
-7280
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9059
SELECT DISTINCT + col2 + col0 DIV - 36 FROM tab2 cor0
----
24
27
36

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT + col2 + col0 / - 36 FROM tab2 cor0
----
24
27
36

query I rowsort
SELECT DISTINCT - - col2 * ( col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + cor0.col2 * + col0 * - ( + col2 ) + col1 + + 32 FROM tab1 AS cor0
----
-207894
-737235
-8690

query I rowsort
SELECT - 74 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 14 * - col2 col2 FROM tab0 cor0
----
-21
1059
438

onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT ALL - - 97 + col2 DIV - col2 FROM tab1 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - - 97 + col2 / - col2 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor2.col0 * cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
9 values hashing to 57e2211bee3367d2ee32fcbeb11f2fcd

query I rowsort
SELECT 60 * 6 FROM tab2
----
360
360
360

query I rowsort
SELECT - 33 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT + + col1 + col2 * col2 AS col1 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + + ( + col0 ) - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - + ( + 17 ) - - col0 AS col1 FROM tab2 AS cor0
----
-10
61
62

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab1 cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac

query I rowsort
SELECT DISTINCT + ( col1 ) + col2 - 44 FROM tab1 AS cor0
----
23
36
65

query I rowsort
SELECT ( col0 ) + + col2 * ( 64 ) AS col0 FROM tab1 cor0
----
3459
3712
6224

query I rowsort
SELECT ALL 67 AS col1 FROM tab2 cor0
----
67
67
67

query I rowsort
SELECT ALL - + 61 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

query I rowsort
SELECT - + col1 * col1 + col0 AS col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT + 50 + col0 AS col2 FROM tab2 AS cor0
----
128
129
57

query I rowsort
SELECT ALL + - col0 - + col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + col1 * - 33 AS col2 FROM tab0
----
-2838
-3003
-3201

query I rowsort
SELECT + - col2 * col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ( + tab0.col0 ) * + col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - ( + cor0.col2 ) * col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 14 col1 FROM tab2
----
40
41
52

query I rowsort
SELECT col0 * - col2 * col2 + col1 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT + col1 + 85 * + col0 FROM tab2
----
626
6689
6732

query I rowsort
SELECT col2 + + 55 AS col0 FROM tab0
----
137
56
88

query I rowsort
SELECT DISTINCT 4 * - tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
-12
-256
-320

query I rowsort
SELECT - - ( col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-9090
SELECT ALL - tab2.col0 * ( col1 ) DIV - col0 col1 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - tab2.col0 * ( col1 ) / - col0 col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab1, tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT 85 * + col1 DIV - col1 AS col2 FROM tab1 cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-9093
SELECT 85 * + col1 / - col1 AS col2 FROM tab1 cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9094
SELECT + - col2 + col1 * col2 DIV 60 AS col2 FROM tab0 AS cor0
----
0
14
42

skipif mysql # not compatible
query I rowsort label-9094
SELECT + - col2 + col1 * col2 / 60 AS col2 FROM tab0 AS cor0
----
0
14
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-9095
SELECT + - col2 DIV + col1 + col1 - col2 FROM tab1 AS cor0
----
-30
-52
-90

skipif mysql # not compatible
query I rowsort label-9095
SELECT + - col2 / + col1 + col1 - col2 FROM tab1 AS cor0
----
-30
-52
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9096
SELECT + CAST( col2 AS SIGNED ) * col1 + + col2 * + col0 - col0 FROM tab0 cor0
----
14671
3606
97

skipif mysql # not compatible
query I rowsort label-9096
SELECT + CAST ( col2 AS INTEGER ) * col1 + + col2 * + col0 - col0 FROM tab0 cor0
----
14671
3606
97

query I rowsort
SELECT - - col1 * col2 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
22626
24586
39910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col0 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

query I rowsort
SELECT DISTINCT col1 * tab1.col2 + - 52 + col2 * 86 AS col0 FROM tab1
----
5420
5996
9452

query I rowsort
SELECT + col1 + col2 + 14 AS col1 FROM tab2
----
69
72
99

query I rowsort
SELECT - tab0.col1 + 85 * 91 * + col0 FROM tab0
----
185554
270628
688324

query I rowsort
SELECT + col0 + col2 + col0 * + col0 * 51 FROM tab0
----
29433
404142
62511

query I rowsort
SELECT DISTINCT + tab1.col0 - + tab1.col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT col1 - - 2 FROM tab0
----
88
93
99

query I rowsort
SELECT tab2.col2 * - 26 + - col0 - - tab2.col2 AS col1 FROM tab2
----
-1029
-682
-728

query I rowsort
SELECT DISTINCT col0 + - 52 FROM tab1
----
-49
12
28

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE + cor0.col1 > ( tab1.col1 )
----
18 values hashing to 5d3298758abc149b7bf810f4ca4a9a4f

query I rowsort
SELECT - - 24 + 78 * + col0 * + cor0.col1 FROM tab0 AS cor0
----
161016
264834
631746

query I rowsort
SELECT DISTINCT + 77 * 96 AS col1 FROM tab0 AS cor0
----
7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 37 col0 FROM tab1 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + 21 col0 FROM tab0 AS cor0
----
-14
-3
-68

query I rowsort
SELECT col1 * ( col1 ) AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL + + col0 * ( - col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - + 4 + 48 + - col0 * + 22 * col1 AS col2 FROM tab2 AS cor0
----
-101200
-29502
-4730

query I rowsort
SELECT ALL - ( 34 ) FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9116
SELECT DISTINCT - CAST( + cor0.col0 AS SIGNED ) DIV - cor0.col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT - CAST ( + cor0.col0 AS INTEGER ) / - cor0.col2 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col0 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) + col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 * col1 * + ( col2 ) + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 * col1 * + ( col2 ) + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 82 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1473
2549
4916

query I rowsort
SELECT - 78 * - col0 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT + + col1 + col2 * + 23 FROM tab1 AS cor0
----
1268
1321
2221

query I rowsort
SELECT 30 * col0 + col0 FROM tab1 cor0
----
1984
2480
93

query I rowsort
SELECT + col0 + col2 * ( 47 ) FROM tab2 AS cor0
----
1276
1300
1865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 88 * + col0 col0 FROM tab2 cor0
----
616
6864
6952

query I rowsort
SELECT col1 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + - col0 * - col0 - + col2 AS col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + col0 - col1 * - col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + col0 * col1 + + col1 + - col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( - cor0.col1 ) col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL 20 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT ALL - col2 * col0 - - col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9133
SELECT cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + cor0.col2 * col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT ALL + col2 - - col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col1 * + 76 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT ALL + col2 + - 68 * col0 AS col1 FROM tab2 AS cor0
----
-449
-5278
-5334

query I rowsort
SELECT DISTINCT + + col0 * + 22 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT ALL - + col1 + col0 * - col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + cor0.col2 + - 81 * - col0 FROM tab0 cor0
----
1977
2836
7291

query I rowsort
SELECT ALL - 86 AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT + col2 + 49 * - col2 AS col2 FROM tab2
----
-1248
-1296
-1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9143
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + + col1 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + + col1 * - col0 FROM tab2
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab1, tab2 AS cor0
----
96

query I rowsort
SELECT cor0.col0 * 6 + - cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
1435
720
8455

query I rowsort
SELECT - + col1 + + 15 AS col0 FROM tab1 AS cor0
----
-11
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9148
SELECT col0 DIV ( 16 * - tab0.col0 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9148
SELECT col0 / ( 16 * - tab0.col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT 29 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT ( - tab1.col1 ) * - 39 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bb790270e532ac3c3e5adf5b4097c5c6

query I rowsort
SELECT ALL + col0 + col0 * 61 AS col0 FROM tab1 cor0
----
186
3968
4960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 83 col2 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT col1 + + cor0.col0 * col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + cor0.col0 * cor0.col0 * 84 FROM tab2 AS cor0
----
4116
511056
524244

onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT ALL col1 DIV + col0 AS col1 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL col1 / + col0 AS col1 FROM tab0 cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT + col2 DIV col2 + + tab1.col2 * 71 FROM tab1
----
3835
4048
6817

skipif mysql # not compatible
query I rowsort label-9156
SELECT + col2 / col2 + + tab1.col2 * 71 FROM tab1
----
3835
4048
6817

query I rowsort
SELECT - + ( - col1 ) + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT tab2.col0 * - ( + 79 * - tab2.col1 ) + - col1 AS col0 FROM tab2
----
106080
17112
363499

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9159
SELECT - col2 * + ( 67 ) + + col0 * + CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT - col2 * + ( 67 ) + + col0 * + CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col0 * cor0.col0 + col1 * ( col2 ) + + cor0.col1 FROM tab0 AS cor0
----
16748
43069
712522

query I rowsort
SELECT ALL - col2 + - 14 + 38 AS col1 FROM tab0
----
-58
-9
23

query I rowsort
SELECT 70 - cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 24dfba18645312c485b6b3fc5bcb59ed

query I rowsort
SELECT ALL - col1 * 32 AS col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

onlyif mysql # use DIV operator for integer division
query I rowsort label-9164
SELECT DISTINCT + 3 DIV 86 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT + 3 / 86 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 10 FROM tab2, tab0, tab1 AS cor0
----
10

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-9167
SELECT DISTINCT - ( 84 ) DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT - ( 84 ) / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( col1 ) + + col0 * 73 * + col1 FROM tab2
----
15872
336005
98056

query I rowsort
SELECT + col0 * col2 + - 43 + - col1 FROM tab0
----
-105
663
7164

query I rowsort
SELECT DISTINCT 62 + col0 AS col2 FROM tab2
----
140
141
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-9171
SELECT ALL - 20 * col1 + col0 DIV + 74 FROM tab0 AS cor0
----
-1720
-1819
-1940

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - 20 * col1 + col0 / + 74 FROM tab0 AS cor0
----
-1720
-1819
-1940

query I rowsort
SELECT ALL 55 + + col2 * + col2 FROM tab0 AS cor0
----
1144
56
6779

query I rowsort
SELECT DISTINCT col2 * + col2 + + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + col0 * col0 - + col0 * - col2 FROM tab2 AS cor0
----
238
8112
9243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col2 * - 73 col1 FROM tab0 AS cor0
----
-108
-2433
-6075

query I rowsort
SELECT ALL + cor0.col1 * + 54 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT DISTINCT - - col2 + col0 AS col1 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9178
SELECT ALL + - col1 DIV col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL + - col1 / col2 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT + - col0 * - col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT col2 + - 2 AS col1 FROM tab0 cor0
----
-1
31
80

query I rowsort
SELECT ALL + + col1 + - col0 * 72 AS col1 FROM tab2 AS cor0
----
-473
-5557
-5671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 * + cor0.col0 + + 43 col2 FROM tab2 cor0
----
6127
6284
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9183
SELECT ALL - col1 DIV - col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - col1 / - col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
89
92
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9184
SELECT tab0.col1 DIV + col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9184
SELECT tab0.col1 / + col2 FROM tab0
----
1
2
97

query I rowsort
SELECT - 69 * - tab2.col1 FROM tab2
----
1173
2139
4071

query I rowsort
SELECT ALL 62 - + col2 * + col0 AS col0 FROM tab2
----
-127
-1966
-2940

query I rowsort
SELECT DISTINCT + 40 - + col1 FROM tab1
----
14
27
30

query I rowsort
SELECT DISTINCT col1 * col0 + col1 * col1 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT - cor0.col0 * col1 + - ( + col2 + 16 ) AS col2 FROM tab1 AS cor0
----
-1152
-148
-713

query I rowsort
SELECT - col0 * + 97 + col1 AS col2 FROM tab2 AS cor0
----
-648
-7507
-7646

query I rowsort
SELECT col0 * - ( + cor0.col1 ) * + col2 + + 45 * col0 AS col2 FROM tab0 AS cor0
----
-1820
-660113
-67032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9192
SELECT + + col2 - + CAST( NULL AS SIGNED ) * 36 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT + + col2 - + CAST ( NULL AS INTEGER ) * 36 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + 56 + + col1 * cor0.col0 * ( + 60 * - col1 ) FROM tab2 AS cor0
----
-1368908
-16287776
-401884

onlyif mysql # use DIV operator for integer division
query I rowsort label-9194
SELECT col1 * col0 DIV - col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-9194
SELECT col1 * col0 / - col1 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT DISTINCT 62 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
62

query I rowsort
SELECT - - col2 * + col1 - - col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + + ( ( - col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + - col2 - 14 AS col0 FROM tab2 AS cor0
----
-40
-41
-52

query I rowsort
SELECT ALL + + 79 + 97 + - col0 AS col0 FROM tab2 AS cor0
----
169
97
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( - col0 ) col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9202
SELECT ALL col1 + - col1 DIV - col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL col1 + - col1 / - col2 FROM tab1
----
10
13
26

query I rowsort
SELECT 97 * - col0 * + col0 - + ( - 56 ) * cor0.col1 FROM tab2 AS cor0
----
-3017
-586844
-604425

onlyif mysql # use DIV operator for integer division
query I rowsort label-9204
SELECT col1 * col0 DIV 30 FROM tab2
----
153
44
7

skipif mysql # not compatible
query I rowsort label-9204
SELECT col1 * col0 / 30 FROM tab2
----
153
44
7

query I rowsort
SELECT 18 * cor0.col0 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT + col2 * col1 * cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + col1 + - cor0.col1 * - ( cor0.col1 ) FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-9208
SELECT ALL col0 DIV + col1 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL col0 / + col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( cor0.col1 ) * col1 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL - 46 + col2 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
1202
1358
524

query I rowsort
SELECT ALL + ( + col2 ) * 94 FROM tab2 cor0
----
2444
2538
3572

query I rowsort
SELECT - - col1 * col2 * + col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + - 37 * col2 AS col1 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT ( - tab0.col1 ) * col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9215
SELECT CAST( 10 AS SIGNED ) col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9215
SELECT CAST ( 10 AS INTEGER ) col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-9216
SELECT ALL - col0 DIV + col1 AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL - col0 / + col1 AS col2 FROM tab1
----
-6
-6
0

query I rowsort
SELECT DISTINCT + 43 FROM tab2, tab1 AS cor0
----
43

query I rowsort
SELECT - 63 - - col2 AS col2 FROM tab1 AS cor0
----
-6
-9
33

query I rowsort
SELECT - - col0 - - col1 AS col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9220
SELECT + col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT + col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 22 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2938
3271
9238

query I rowsort
SELECT ALL + col2 + - cor0.col0 AS col0 FROM tab2 cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9223
SELECT DISTINCT col2 + + col1 * CAST( col0 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT col2 + + col1 * CAST ( col0 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9224
SELECT - col1 * + col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT - col1 * + col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col1 col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col2 + col2 * + col1 AS col1 FROM tab1 cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-9227
SELECT + ( + cor0.col0 ) DIV 91 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9227
SELECT + ( + cor0.col0 ) / 91 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9228
SELECT + col1 * - CAST( NULL AS DECIMAL ) / - col2 + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT + col1 * - CAST ( NULL AS REAL ) / - col2 + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9229
SELECT + col0 * CAST( 71 AS SIGNED ) + col1 AS col0 FROM tab0 cor0
----
1790
2582
6410

skipif mysql # not compatible
query I rowsort label-9229
SELECT + col0 * CAST ( 71 AS INTEGER ) + col1 AS col0 FROM tab0 cor0
----
1790
2582
6410

query I rowsort
SELECT DISTINCT + + 99 + + 1 * col2 AS col2 FROM tab0 cor0
----
100
132
181

query I rowsort
SELECT DISTINCT + col0 * - col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + 47 * 71 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 30de997331745939c1c557c832736e0b

query I rowsort
SELECT ALL 9 * ( + col2 ) + col0 * + 12 * col1 FROM tab1 AS cor0
----
13344
1422
8193

onlyif mysql # use DIV operator for integer division
query I rowsort label-9234
SELECT DISTINCT ( cor0.col0 ) - cor0.col2 DIV col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT ( cor0.col0 ) - cor0.col2 / col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * + 59 + + col2 col0 FROM tab0 cor0
----
4426
4458
4507

query I rowsort
SELECT 15 + col1 FROM tab2 AS cor0
----
32
46
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + + 39 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
-3321
-3467
-3782

query I rowsort
SELECT DISTINCT + - 87 AS col1 FROM tab2 cor0
----
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9240
SELECT DISTINCT - - 82 DIV - 18 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - - 82 / - 18 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT ALL ( + 54 ) FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + 58 * + col0 + cor0.col0 FROM tab0 cor0
----
1416
2065
5251

query I rowsort
SELECT ALL 13 - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1235
-1391
-557

query I rowsort
SELECT DISTINCT + + 50 * + col0 AS col2 FROM tab1 AS cor0
----
150
3200
4000

onlyif mysql # use DIV operator for integer division
query I rowsort label-9245
SELECT ALL - 60 DIV - 59 col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - 60 / - 59 col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 59 * + cor0.col2 FROM tab2 AS cor0
----
1534
1593
2242

query I rowsort
SELECT + ( + 29 ) * col1 + 79 AS col2 FROM tab1
----
369
456
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-9248
SELECT + col1 + - col2 DIV - col0 col2 FROM tab2
----
17
34
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9248
SELECT + col1 + - col2 / - col0 col2 FROM tab2
----
17
34
59

query I rowsort
SELECT DISTINCT + - col1 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL - - col0 * + ( + col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 7 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT ALL + col0 + ( + cor0.col0 * - col0 ) FROM tab1 AS cor0
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT ALL 12 + col1 DIV - 69 - 3 FROM tab0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL 12 + col1 / - 69 - 3 FROM tab0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT + col0 + ( tab1.col0 + col1 ) DIV + 30 AS col1 FROM tab1
----
3
66
83

skipif mysql # not compatible
query I rowsort label-9255
SELECT + col0 + ( tab1.col0 + col1 ) / + 30 AS col1 FROM tab1
----
3
66
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 - col1 * + tab1.col1 col0 FROM tab1
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - 86 col0 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT - col0 + + col0 - 28 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + 60 * + col2 AS col0 FROM tab1 AS cor0
----
3240
3420
5760

query I rowsort
SELECT ALL + col0 * col2 * + 89 FROM tab2 AS cor0
----
16821
180492
267178

query I rowsort
SELECT DISTINCT + - 67 AS col0 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT - + col1 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 + + ( col2 ) * + tab0.col2 FROM tab0
----
14186
3927
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 81 AS REAL ) + + col1 col2 FROM tab0
----
167
172
178

query I rowsort
SELECT + ( - col0 * - tab1.col0 ) + 62 * - 9 * - col0 FROM tab1
----
1683
39808
51040

onlyif mysql # use DIV operator for integer division
query I rowsort label-9266
SELECT + 69 DIV + col0 - col2 AS col1 FROM tab2 AS cor0
----
-18
-26
-38

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 69 / + col0 - col2 AS col1 FROM tab2 AS cor0
----
-18
-26
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9267
SELECT + col2 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT + col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col1 ) * + col1 - ( col1 ) * ( col1 ) FROM tab2 AS cor0
----
-1922
-578
-6962

onlyif mysql # use DIV operator for integer division
query I rowsort label-9269
SELECT - 71 DIV col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9269
SELECT - 71 / col2 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + ( col1 ) * tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9271
SELECT tab1.col1 + + CAST( + col1 + col2 AS SIGNED ) AS col2 FROM tab1
----
106
122
77

skipif mysql # not compatible
query I rowsort label-9271
SELECT tab1.col1 + + CAST ( + col1 + col2 AS INTEGER ) AS col2 FROM tab1
----
106
122
77

query I rowsort
SELECT col0 * col2 + col0 * col0 FROM tab2
----
238
8112
9243

query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9274
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * col0 + ( 0 ) FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * col0 + ( 0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT 56 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT + 96 * col2 * - col1 FROM tab1 AS cor0
----
-119808
-134784
-54720

query I rowsort
SELECT DISTINCT + + 92 * 49 FROM tab1 AS cor0
----
4508

query I rowsort
SELECT - + ( cor0.col0 ) * col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - - col0 + + col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 - + col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + col1 * cor0.col1 + col2 FROM tab1 AS cor0
----
-2186
-3092
-8951

query I rowsort
SELECT col1 * + col2 - col2 AS col1 FROM tab0
----
2805
7380
96

query I rowsort
SELECT - - ( + col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + ( + 14 ) FROM tab1
----
14
14
14

query I rowsort
SELECT ALL - 99 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT - - 94 * - col2 * cor0.col0 FROM tab1 cor0
----
-15228
-342912
-721920

query I rowsort
SELECT ALL - col0 + + col2 - col2 * - col2 FROM tab2
----
1403
624
749

onlyif mysql # use DIV operator for integer division
query I rowsort label-9289
SELECT 98 + - col1 - + tab0.col2 DIV + col1 AS col0 FROM tab0
----
1
12
7

skipif mysql # not compatible
query I rowsort label-9289
SELECT 98 + - col1 - + tab0.col2 / + col1 AS col0 FROM tab0
----
1
12
7

query I rowsort
SELECT DISTINCT col0 * + col1 - tab0.col1 AS col2 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + col0 + - col2 - - ( + 64 + - col1 ) * + col0 AS col0 FROM tab2
----
211
3754
442

query I rowsort
SELECT - 26 AS col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

onlyif mysql # use DIV operator for integer division
query I rowsort label-9293
SELECT - cor0.col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9293
SELECT - cor0.col0 / + col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - cor0.col2 + - cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT ALL + col2 DIV ( - col0 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL + col2 / ( - col0 ) FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9296
SELECT + col2 DIV ( - cor0.col0 ) FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-9296
SELECT + col2 / ( - cor0.col0 ) FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( 7 * - col1 ) col2 FROM tab0 AS cor0
----
-51772
-57967
-65863

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT 89 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT col2 * 78 AS col2 FROM tab1
----
4212
4446
7488

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * - ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - + col1 * cor0.col0 * col1 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - - col2 * + 76 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT col0 - 63 * + col1 AS col2 FROM tab2 AS cor0
----
-1946
-3639
-992

query I rowsort
SELECT ALL + col1 + ( + col0 ) FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9307
SELECT DISTINCT col1 * col0 DIV - col0 + col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT col1 * col0 / - col0 + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col0 - - col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - 7 FROM tab1, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT + col0 * - tab0.col2 + - 54 * col1 * + ( - col1 ) AS col2 FROM tab0
----
398592
439876
508051

query I rowsort
SELECT - col0 * + 55 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT - + col2 + col2 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * cor0.col1 AS col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col0 + - col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-9315
SELECT + col2 + + col0 DIV 89 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9315
SELECT + col2 + + col0 / 89 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col2 * - ( + tab0.col1 ) * 75 + - 87 * col1 FROM tab0
----
-15714
-220332
-567567

query I rowsort
SELECT ( col0 ) * col2 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT col1 * ( + col0 ) * 3 FROM tab2
----
13806
4029
651

query I rowsort
SELECT DISTINCT tab2.col2 * col2 + col0 AS col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT col1 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-9321
SELECT col0 + col0 DIV - 68 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-9321
SELECT col0 + col0 / - 68 FROM tab2
----
7
77
78

query I rowsort
SELECT DISTINCT 33 * col1 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT + - cor0.col0 + cor0.col2 * + col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col1 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-9325
SELECT ALL - ( - col2 ) DIV + ( + col2 ) col1 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL - ( - col2 ) / + ( + col2 ) col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col0 * - col1 + + col1 * col2 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ( col0 ) + + col1 * + 29 * - col0 AS col2 FROM tab2 AS cor0
----
-133380
-38868
-6286

query I rowsort
SELECT ALL col2 + col0 * + col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT 7 + + tab2.col0 AS col1 FROM tab2
----
14
85
86

query I rowsort
SELECT ALL + 59 * col2 + col1 AS col1 FROM tab0
----
156
2033
4929

query I rowsort
SELECT + tab2.col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL + cor0.col1 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + 20 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT - col1 * - 74 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT ALL + col0 + + 65 * - ( - col0 ) FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT ALL + col0 * col2 + + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL - - cor0.col1 * + col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9339
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + col1 + - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col2 + + col2 * - col0 + ( col0 ) FROM tab2
----
-155
-1924
-2885

query I rowsort
SELECT DISTINCT - + col0 + 92 FROM tab1 AS cor0
----
12
28
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 71 col2 FROM tab1 cor0
----
-1846
-710
-923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9344
SELECT + - col0 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-9344
SELECT + - col0 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + + 88 * - col2 + + col0 FROM tab1 AS cor0
----
-4749
-4952
-8368

query I rowsort
SELECT - + col1 * col2 - - col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + - ( col1 ) - col2 * + 25 FROM tab1 AS cor0
----
-1376
-1435
-2413

query I rowsort
SELECT DISTINCT - - col0 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe

query I rowsort
SELECT DISTINCT + 52 + ( col0 ) * col2 FROM tab0 AS cor0
----
7350
844
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT + col0 DIV 48 + col1 * - 78 FROM tab2 AS cor0
----
-1325
-2418
-4601

skipif mysql # not compatible
query I rowsort label-9351
SELECT + col0 / 48 + col1 * - 78 FROM tab2 AS cor0
----
-1325
-2418
-4601

onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT ALL - col1 DIV col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - col1 / col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT ALL + - 96 * + 23 FROM tab1 AS cor0
----
-2208
-2208
-2208

query I rowsort
SELECT DISTINCT + - col1 * + col1 + col0 * + col1 + col0 * col1 * ( - col1 ) FROM tab2 AS cor0
----
-21777
-270397
-7471

query I rowsort
SELECT DISTINCT + col1 * 65 AS col1 FROM tab0 AS cor0
----
5590
5915
6305

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * - col1 + col2 * - CAST ( + col2 AS REAL ) + col2 FROM tab0 AS cor0
----
-14741
-3120
-3395

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( + col2 AS REAL ) AS col1 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT 47 + col2 DIV cor0.col1 FROM tab2 AS cor0
----
47
47
49

skipif mysql # not compatible
query I rowsort label-9358
SELECT 47 + col2 / cor0.col1 FROM tab2 AS cor0
----
47
47
49

query I rowsort
SELECT ( + col2 ) - - col2 * - 97 * - 23 FROM tab1 AS cor0
----
120528
127224
214272

query I rowsort
SELECT ALL + - col0 + + col2 + + col1 FROM tab0 AS cor0
----
63
84
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9361
SELECT DISTINCT + 28 DIV 69 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT + 28 / 69 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + + 86 + - col0 FROM tab2 AS cor0
----
7
79
8

query I rowsort
SELECT ALL - - 26 * col2 - - col2 FROM tab2 cor0
----
1026
702
729

query I rowsort
SELECT ALL + + col2 * - 53 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT + col2 * + col2 - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-847
2816
2907

query I rowsort
SELECT col0 + + col2 * col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + 23 AS col0 FROM tab1 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col0 * - col0 * col2 + col1 FROM tab0
----
-1128
-18922
-649431

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( + col0 ) NOT IN ( tab1.col2 - col1 )
----
3
64
80

query I rowsort
SELECT col2 + col1 * col0 + col2 AS col2 FROM tab2 WHERE NOT NULL >= col1 * col2 + col2 + col0
----

query I rowsort
SELECT - col1 + + col0 * col0 + col2 AS col1 FROM tab1
----
37
4143
6483

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) > - col0 + - col1
----

query I rowsort
SELECT tab1.col0 + + tab1.col0 * col2 * col0 + tab1.col0 FROM tab1
----
233600
492
614560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 - col0 col0 FROM tab1 AS cor0
----
-19
-3
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 32 col1 FROM tab1, tab2 cor0
----
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-9377
SELECT DISTINCT - col0 - - col2 DIV - col1 FROM tab2
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT - col0 - - col2 / - col1 FROM tab2
----
-7
-78
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col2 * - col2 * tab1.col1 AS col0 FROM tab1
----
-119808
-32490
-75816

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN - col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9382
SELECT ALL col1 DIV - col1 + + col1 AS col2 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL col1 / - col1 + + col1 AS col2 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT col0 * cor0.col2 * col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL - col2 * - col0 * col0 + - col1 + col1 * col1 FROM tab1
----
1136
233562
614556

onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT - col2 DIV + col1 + col0 AS col2 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9385
SELECT - col2 / + col1 + col0 AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL col0 FROM tab1 WHERE col0 NOT IN ( - col2 )
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9387
SELECT + col0 + + col1 DIV + col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9387
SELECT + col0 + + col1 / + col1 FROM tab1
----
4
65
81

query I rowsort
SELECT + tab1.col0 + col0 - col0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT 47 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT + col1 + col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL + 80 + cor2.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab1 AS cor3
----
243 values hashing to 7f31f564f0149bcb21377dffae09628a

query I rowsort
SELECT ( - col1 * - col1 ) FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col1 FROM tab0, tab2, tab1 AS cor0
----
92

query I rowsort
SELECT + 88 * + col2 AS col1 FROM tab2
----
2288
2376
3344

query I rowsort
SELECT ALL + - 22 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT ALL col0 * + cor0.col1 + - col2 * + col2 FROM tab1 AS cor0
----
-2609
-2838
-8176

onlyif mysql # use DIV operator for integer division
query I rowsort label-9397
SELECT DISTINCT + 93 DIV col1 AS col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + 93 / col1 AS col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT + cor0.col1 * + col2 - - col1 FROM tab1 cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-9399
SELECT ( col0 ) DIV - col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9399
SELECT ( col0 ) / - col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT col1 * - col0 + col2 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1061
-1466
-3491

query I rowsort
SELECT col1 * col2 + - 96 + + col2 FROM tab0 AS cor0
----
2
2775
7448

query I rowsort
SELECT + - col1 * col1 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-9403
SELECT cor0.col2 DIV + ( cor0.col0 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to dd2a1e9fc863524e3326dbd164233e1f

skipif mysql # not compatible
query I rowsort label-9403
SELECT cor0.col2 / + ( cor0.col0 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to dd2a1e9fc863524e3326dbd164233e1f

query I rowsort
SELECT col0 + - col1 + col0 * col2 AS col2 FROM tab1 AS cor0
----
139
3702
7747

query I rowsort
SELECT col1 + col2 + - col0 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT - + col2 + 50 * + 19 * + col2 + - 44 FROM tab0 AS cor0
----
31273
77774
905

query I rowsort
SELECT + - cor0.col2 + col0 * + col2 AS col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT + + 90 * 18 FROM tab0 cor0
----
1620
1620
1620

query I rowsort
SELECT col0 + 6 * - col2 FROM tab0 AS cor0
----
-174
-403
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-9410
SELECT ALL - cor0.col2 + - cor0.col2 + + cor0.col0 * - col0 DIV col0 FROM tab0 AS cor0
----
-253
-37
-90

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL - cor0.col2 + - cor0.col2 + + cor0.col0 * - col0 / col0 FROM tab0 AS cor0
----
-253
-37
-90

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab2 cor0
----
24

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab1, tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT - ( - 93 ) + + col0 * - col2 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-2985
-6339
1335

query I rowsort
SELECT DISTINCT + 47 * + col2 AS col0 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL + col2 + 18 * col1 FROM tab0 AS cor0
----
1581
1720
1747

query I rowsort
SELECT ALL ( + col0 ) * col0 - - cor0.col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - 20 * - cor0.col2 * col2 + + col2 AS col2 FROM tab2 cor0
----
13546
14607
28918

query I rowsort
SELECT DISTINCT 35 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1283
1439
605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9419
SELECT DISTINCT - CAST( - ( col2 ) * col1 AS SIGNED ) AS col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT - CAST ( - ( col2 ) * col1 AS INTEGER ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - 72 + - col1 * col1 FROM tab0 AS cor0
----
-7324
-8209
-9337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - 94 + - col0 AS col1 FROM tab0 AS cor0
----
-118
-129
-183

query I rowsort
SELECT ALL col0 - col2 * - col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + - 62 AS col1 FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT + 28 + col0 AS col1 FROM tab1
----
108
31
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9426
SELECT ALL col1 DIV 19 + + col0 * col0 * tab0.col1 FROM tab0
----
118830
49540
720815

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL col1 / 19 + + col0 * col0 * tab0.col1 FROM tab0
----
118830
49540
720815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * col1 col0 FROM tab2
----
1156
2108
4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT DISTINCT 73 DIV - col0 + col1 FROM tab1
----
13
2
9

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT 73 / - col0 + col1 FROM tab1
----
13
2
9

query I rowsort
SELECT DISTINCT 15 + tab2.col2 AS col2 FROM tab2
----
41
42
53

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 * + col1 AS REAL ) AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + - col0 * + col0 - 55 FROM tab1 AS cor0
----
-4151
-64
-6455

onlyif mysql # use DIV operator for integer division
query I rowsort label-9432
SELECT ALL + - col1 DIV - 31 FROM tab0 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL + - col1 / - 31 FROM tab0 AS cor0
----
2
2
3

query I rowsort
SELECT col0 * 20 - + 35 FROM tab2 AS cor0
----
105
1525
1545

query I rowsort
SELECT DISTINCT - + cor0.col0 + - 95 AS col0 FROM tab1 AS cor0
----
-159
-175
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9435
SELECT ALL - col0 * CAST( - 81 * - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2835
-591138
-64152

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL - col0 * CAST ( - 81 * - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2835
-591138
-64152

query I rowsort
SELECT + col0 + 22 AS col0 FROM tab2 cor0
----
100
101
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-9437
SELECT - + col1 + - col2 DIV ( col2 * col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9437
SELECT - + col1 + - col2 / ( col2 * col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col2 * ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - 44 * col0 AS col1 FROM tab1
----
-132
-2816
-3520

query I rowsort
SELECT ALL col0 + - ( col0 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - - col1 * col2 - col1 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
-16172
-430
-949

query I rowsort
SELECT + cor0.col2 * col2 + + ( cor0.col2 ) FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-9443
SELECT + col1 * + 1 + ( col2 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-9443
SELECT + col1 * + 1 + ( col2 ) / - col1 AS col0 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT col2 * 3 AS col0 FROM tab2 AS cor0
----
114
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9445
SELECT DISTINCT + col1 - - col1 DIV + col0 AS col2 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT + col1 - - col1 / + col0 AS col2 FROM tab0
----
89
92
99

query I rowsort
SELECT ALL col0 + col2 - - col1 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9447
SELECT - col0 + + col2 * tab2.col1 DIV col0 - col1 FROM tab2
----
-118
-88
81

skipif mysql # not compatible
query I rowsort label-9447
SELECT - col0 + + col2 * tab2.col1 / col0 - col1 FROM tab2
----
-118
-88
81

query I rowsort
SELECT + col2 + col2 * tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - col0 * col1 - col1 AS col2 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT - + cor0.col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + cor0.col0 + - col2 * cor0.col1 * col0 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT - cor0.col1 + - col1 * col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - col2 + - col1 + + col2 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT ALL col2 + col1 DIV col2 AS col1 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL col2 + col1 / col2 AS col1 FROM tab0
----
35
83
98

query I rowsort
SELECT ALL col0 * - col0 + col0 AS col1 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - col2 + - col2 * col2 + col1 * col1 FROM tab2
----
-1193
205
2779

query I rowsort
SELECT col0 + - col2 + col2 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT + col1 + + col1 + col0 * + col2 FROM tab1
----
214
3668
7706

onlyif mysql # use DIV operator for integer division
query I rowsort label-9459
SELECT col0 * + col0 + col2 DIV col1 FROM tab2
----
49
6084
6243

skipif mysql # not compatible
query I rowsort label-9459
SELECT col0 * + col0 + col2 / col1 FROM tab2
----
49
6084
6243

query I rowsort
SELECT DISTINCT col0 * col0 + - col1 * tab0.col1 FROM tab0
----
-360
-6820
-8184

query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) <> tab0.col2 + + cor0.col2
----

query I rowsort
SELECT + col2 * col1 + - col0 + col1 AS col1 FROM tab2 AS cor0
----
1515
584
861

query III rowsort
SELECT * FROM tab0 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT + col2 + + tab1.col2 + - col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - tab0.col2 / col2 AS col2 FROM tab0 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT - col2 * + col1 * + cor0.col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - + cor0.col0 + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - 37 * - col1 + + cor0.col1 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT ALL - - 40 * - col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

onlyif mysql # use DIV operator for integer division
query I rowsort label-9470
SELECT DISTINCT + 59 DIV + cor0.col0 - col1 FROM tab2 AS cor0
----
-17
-23
-59

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT + 59 / + cor0.col0 - col1 FROM tab2 AS cor0
----
-17
-23
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - col2 * col2 + col0 * col1 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT DISTINCT + - col0 * + col2 + - col2 FROM tab1 cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-9474
SELECT + + col2 DIV col1 - col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-9474
SELECT + + col2 / col1 - col1 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1395
3526
5152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 * - col0 col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT ALL col2 DIV - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL col2 / - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9478
SELECT CAST( NULL AS SIGNED ) * - 93 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9478
SELECT CAST ( NULL AS INTEGER ) * - 93 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( col1 ) col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + 15 FROM tab1, tab1 cor0
----
15

query I rowsort
SELECT + - col2 * ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 22 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT DISTINCT + ( + 92 ) * + col2 FROM tab1 cor0
----
4968
5244
8832

query I rowsort
SELECT ALL 15 AS col0 FROM tab1 AS cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * col2 * col1 col1 FROM tab1
----
-110916
-45030
-98592

query I rowsort
SELECT DISTINCT ( - 10 ) + col2 * cor0.col1 FROM tab1 cor0
----
1238
1394
560

query I rowsort
SELECT + + 4 + 19 AS col0 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-9488
SELECT DISTINCT - ( 93 ) * col1 DIV ( - col2 * col0 ) FROM tab1 AS cor0
----
0
14

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - ( 93 ) * col1 / ( - col2 * col0 ) FROM tab1 AS cor0
----
0
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-9489
SELECT - col0 - + col1 DIV col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-9489
SELECT - col0 - + col1 / col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT ALL - ( 56 ) AS col1 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + col1 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT + 51 * col2 AS col2 FROM tab1 cor0
----
2754
2907
4896

query I rowsort
SELECT + - 3 + - col0 * + col0 FROM tab1 AS cor0
----
-12
-4099
-6403

query I rowsort
SELECT DISTINCT + + 28 * col0 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT ALL 89 + col0 + cor0.col0 * col1 FROM tab0 AS cor0
----
2177
3519
8277

query I rowsort
SELECT - - 35 AS col2 FROM tab1 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9499
SELECT - - col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT - - col1 / - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9501
SELECT col2 + - col1 * - CAST( col0 + - cor0.col1 * - 65 AS SIGNED ) FROM tab1 AS cor0
----
12121
44072
7197

skipif mysql # not compatible
query I rowsort label-9501
SELECT col2 + - col1 * - CAST ( col0 + - cor0.col1 * - 65 AS INTEGER ) FROM tab1 AS cor0
----
12121
44072
7197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - ( + 59 ) col1 FROM tab2 AS cor0
----
1284
158
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-9503
SELECT ALL + col2 DIV col1 - + cor0.col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL + col2 / col1 - + cor0.col1 FROM tab1 AS cor0
----
-24
-5
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT + + ( col2 ) DIV - 10 + - col0 FROM tab0 cor0
----
-27
-35
-97

skipif mysql # not compatible
query I rowsort label-9504
SELECT + + ( col2 ) / - 10 + - col0 FROM tab0 cor0
----
-27
-35
-97

query I rowsort
SELECT DISTINCT + col0 + col1 + col0 AS col2 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT + ( + cor0.col2 ) + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - 62 + col0 * col1 FROM tab2 AS cor0
----
1281
155
4540

query I rowsort
SELECT DISTINCT - col0 + col1 * ( col2 ) FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9509
SELECT + col1 * + col0 + CAST( col0 + col2 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-7120
2135
696

skipif mysql # not compatible
query I rowsort label-9509
SELECT + col1 * + col0 + CAST ( col0 + col2 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-7120
2135
696

query I rowsort
SELECT DISTINCT - - 83 * col2 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT DISTINCT col0 * + col2 + col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col2 * col2 - 57 FROM tab1 AS cor0
----
-2973
-3306
-9273

query I rowsort
SELECT 18 + - col2 * - col0 FROM tab0 cor0
----
53
7316
810

query I rowsort
SELECT - cor0.col2 * col2 - + 35 FROM tab2 AS cor0
----
-1479
-711
-764

query I rowsort
SELECT ALL col0 * cor0.col0 + - col1 FROM tab0 cor0
----
1128
490
7830

query I rowsort
SELECT col2 * + col2 + - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT col0 + - 18 FROM tab1 AS cor0
----
-15
46
62

query I rowsort
SELECT - 79 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 7afc0dfcd65d937c1cf3f6d78a7fd244

query I rowsort
SELECT ALL - - cor0.col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col0 - - col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT col0 * col0 * + col2 FROM tab2
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 * col1 col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + 74 * tab0.col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
2442
6068
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # use DIV operator for integer division
query I rowsort label-9526
SELECT - + col0 + - cor0.col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-9526
SELECT - + col0 + - cor0.col2 / col0 AS col1 FROM tab0 AS cor0
----
-25
-35
-89

query I rowsort
SELECT ALL + col0 - 6 AS col2 FROM tab1
----
-3
58
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-9528
SELECT + col1 DIV col1 + tab2.col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-9528
SELECT + col1 / col1 + tab2.col2 FROM tab2
----
27
28
39

query I rowsort
SELECT - col2 + 15 * 13 * + col2 AS col0 FROM tab0 AS cor0
----
15908
194
6402

query I rowsort
SELECT DISTINCT - col0 * - 36 * - col2 + + col2 FROM tab2 AS cor0
----
-108034
-6777
-72982

query I rowsort
SELECT + - col2 * ( 90 ) AS col1 FROM tab2 AS cor0
----
-2340
-2430
-3420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 col1 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb

query I rowsort
SELECT - cor1.col0 + 75 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f17a7a4f957089dfff0a554f21529fc5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT DISTINCT col2 * tab0.col0 DIV - col1 AS col0 FROM tab0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT col2 * tab0.col0 / - col1 AS col0 FROM tab0
----
-80
-9
0

query I rowsort
SELECT ALL + 14 + - col2 AS col2 FROM tab2 AS cor0
----
-12
-13
-24

query I rowsort
SELECT + - 35 * - 70 FROM tab0 AS cor0
----
2450
2450
2450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col0 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * - 48 col0 FROM tab2 cor0
----
-2400
-2400
-2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col1 ) col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 11 * + col2 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + 37 * cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 15e612af7bdbfa7ecd8ca17d6127a720

query I rowsort
SELECT + 52 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d

query I rowsort
SELECT ( 25 ) AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT 18 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
18

query I rowsort
SELECT DISTINCT col1 + col0 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
196
229
271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col2 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT 99 AS col2 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT - 42 * + col2 FROM tab1 cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL - - col2 * cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 95 + + col1 * - col2 col0 FROM tab0 AS cor0
----
-192
-2933
-7557

query I rowsort
SELECT ALL + + cor0.col0 * - ( + cor0.col1 ) - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9554
SELECT ALL col1 + + 81 DIV col2 FROM tab0 AS cor0
----
178
88
91

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL col1 + + 81 / col2 FROM tab0 AS cor0
----
178
88
91

query I rowsort
SELECT + + col2 * 87 + 98 AS col0 FROM tab2 AS cor0
----
2360
2447
3404

onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT + + col1 - cor0.col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-9556
SELECT + + col1 - cor0.col1 / + col0 AS col0 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT + col2 * col1 + col2 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT DISTINCT - col1 DIV + col2 + ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT - col1 / + col2 + ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9560
SELECT DISTINCT + + col0 * - CAST( 44 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
-186
-2873
-3616

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + + col0 * - CAST ( 44 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
-186
-2873
-3616

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9561
SELECT + col0 + + CAST( NULL AS SIGNED ) / 79 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT + col0 + + CAST ( NULL AS INTEGER ) / 79 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 65 FROM tab2, tab0, tab0 AS cor0
----
-65

query I rowsort
SELECT ALL col2 + - 44 AS col1 FROM tab0 AS cor0
----
-11
-43
38

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + + col0 * 3 - 45 FROM tab0 AS cor0
----
222
27
60

query I rowsort
SELECT 18 + + 68 FROM tab1, tab1 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + 66 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - col0 + + ( col2 * col0 ) + + col1 AS col2 FROM tab0
----
7300
854
97

query I rowsort
SELECT ALL - col1 + col2 * col0 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT + tab0.col1 + - 82 AS col2 FROM tab0
----
15
4
9

query I rowsort
SELECT + ( - col2 ) - col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9573
SELECT DISTINCT col1 + CAST( 63 + - col1 AS SIGNED ) * + tab2.col2 AS col0 FROM tab2
----
163
1765
895

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT col1 + CAST ( 63 + - col1 AS INTEGER ) * + tab2.col2 AS col0 FROM tab2
----
163
1765
895

onlyif mysql # use DIV operator for integer division
query I rowsort label-9574
SELECT - tab1.col2 + - 72 DIV + col1 FROM tab1
----
-101
-56
-64

skipif mysql # not compatible
query I rowsort label-9574
SELECT - tab1.col2 + - 72 / + col1 FROM tab1
----
-101
-56
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-9575
SELECT - col1 DIV 94 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT - col1 / 94 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL + 30 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1564
676
867

onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT ALL col0 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL col0 / col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + ( col1 ) + - col0 * col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - - 6 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
17028
44772
582

query I rowsort
SELECT ALL ( - ( col1 ) * col1 ) + ( + col0 + col2 ) AS col0 FROM tab2
----
-172
-3377
-927

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT ALL - col1 * + col0 + col1 + + CAST( col0 AS SIGNED ) col0 FROM tab0
----
-1954
-3263
-7919

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - col1 * + col0 + col1 + + CAST ( col0 AS INTEGER ) col0 FROM tab0
----
-1954
-3263
-7919

query I rowsort
SELECT 74 * + 3 FROM tab2
----
222
222
222

query I rowsort
SELECT - + ( - 83 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9584
SELECT DISTINCT + tab2.col1 / CAST( NULL AS DECIMAL ) col2 FROM tab2, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + tab2.col1 / CAST ( NULL AS REAL ) col2 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT + 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL + cor0.col1 * col2 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col0 + - col0 * - ( + col1 * col2 + - col1 ) FROM tab2 AS cor0
----
115128
49770
5649

onlyif mysql # use DIV operator for integer division
query I rowsort label-9588
SELECT ALL + 7 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + 7 / col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + + 74 * cor0.col0 + col0 col1 FROM tab0 AS cor0
----
1897
2722
6772

query I rowsort
SELECT + col0 * col2 + col2 AS col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT + - ( + 65 ) FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT col2 + col2 * + 96 AS col1 FROM tab0
----
3201
7954
97

query I rowsort
SELECT + tab1.col1 * 64 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1abf44d879b2498907c60cd9ced45806

query I rowsort
SELECT ALL + col0 * + 9 FROM tab0
----
216
315
801

query I rowsort
SELECT ALL - col1 * ( - cor0.col2 ) - ( + col0 ) FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col2 * - col1 - - cor0.col1 * - 88 AS col2 FROM tab1 AS cor0
----
-1450
-2392
-3692

query I rowsort
SELECT ALL - col0 + + col0 * ( col2 ) FROM tab1
----
159
3584
7600

query I rowsort
SELECT tab1.col2 + + col0 * ( - tab1.col0 ) * - col1 FROM tab1
----
288
41017
83296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9600
SELECT DISTINCT - col1 + col0 * + CAST( NULL AS SIGNED ) * + ( col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT DISTINCT - col1 + col0 * + CAST ( NULL AS INTEGER ) * + ( col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - + col2 + + col1 + 73 * + 72 AS col0 FROM tab2 AS cor0
----
5235
5260
5289

onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT ALL col0 DIV + col1 + + col0 DIV + col1 FROM tab2 AS cor0
----
0
2
8

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL col0 / + col1 + + col0 / + col1 FROM tab2 AS cor0
----
0
2
8

query I rowsort
SELECT ALL + col1 * - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL - cor0.col0 + ( + 86 ) FROM tab1 AS cor0
----
22
6
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9606
SELECT + tab2.col1 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9606
SELECT + tab2.col1 / - col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - + col1 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 39 col2 FROM tab1
----
117
2496
3120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9610
SELECT ALL CAST( NULL AS SIGNED ) * 53 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL CAST ( NULL AS INTEGER ) * 53 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT tab0.col1 * 28 AS col1 FROM tab0
----
2408
2548
2716

query I rowsort
SELECT - - col1 + col1 + col2 AS col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT - cor0.col2 * + col2 - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT + cor0.col2 * 89 FROM tab1, tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT - 48 + + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-14
56
69

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT tab0.col1 * + col2 - col0 AS col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT - 51 + col2 FROM tab0 cor0
----
-18
-50
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9619
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) * 75 FROM tab2
----
525
5850
5925

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) * 75 FROM tab2
----
525
5850
5925

query I rowsort
SELECT ALL col0 - 36 FROM tab0 AS cor0
----
-1
-12
53

query I rowsort
SELECT - col0 + - col2 * - ( col1 ) FROM tab0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col1 * - 62 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT DISTINCT + col2 - + col0 * 81 AS col1 FROM tab1 cor0
----
-189
-5127
-6384

query I rowsort
SELECT ( + ( col0 ) * - col0 ) + + 56 FROM tab2
----
-6028
-6185
7

query I rowsort
SELECT DISTINCT - tab0.col0 * col0 * col1 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + cor0.col0 + 46 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to c42ab777b9d2d7219f1bdfec42068dd6

query I rowsort
SELECT - ( - 41 ) - col0 FROM tab1
----
-23
-39
38

query I rowsort
SELECT DISTINCT - tab0.col2 + col2 + + col0 AS col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT DISTINCT col1 DIV + col2 + + col2 * + 41 + + col2 AS col2 FROM tab1
----
2268
2394
4032

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT col1 / + col2 + + col2 * + 41 + + col2 AS col2 FROM tab1
----
2268
2394
4032

query I rowsort
SELECT + 71 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * + ( col2 + col0 ) col2 FROM tab2
----
231
8034
9164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * + col2 + col0 col2 FROM tab1
----
219
292
464

query I rowsort
SELECT DISTINCT col2 + col0 * + tab1.col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT - 70 + col1 + + col2 * 34 FROM tab2
----
1239
873
879

onlyif mysql # use DIV operator for integer division
query I rowsort label-9636
SELECT + col0 DIV col0 - + CAST( + ( col2 ) * cor0.col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-9636
SELECT + col0 / col0 - + CAST ( + ( col2 ) * cor0.col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1533
-645
-836

query I rowsort
SELECT ALL + ( - 75 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT ALL + + cor0.col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 66 + col1 - - col0 FROM tab2 cor0
----
-28
30
71

query I rowsort
SELECT ALL col1 - + cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT 59 * col0 - col1 AS col2 FROM tab0 cor0
----
1330
1968
5160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( - tab1.col0 ) + + col2 * + 84 col1 FROM tab1
----
1140
384
4374

query I rowsort
SELECT col1 - - ( - 42 ) AS col2 FROM tab0
----
44
49
55

query I rowsort
SELECT DISTINCT + col2 * + 2 + col2 AS col1 FROM tab0 AS cor0
----
246
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col2 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT col0 * + 50 * col0 FROM tab1 AS cor0
----
204800
320000
450

query I rowsort
SELECT ALL - cor0.col1 * - 47 FROM tab2 cor0
----
1457
2773
799

query I rowsort
SELECT + 76 * col2 AS col0 FROM tab1 AS cor0
----
4104
4332
7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT DISTINCT + 84 DIV col0 AS col1 FROM tab2 AS cor0
----
1
12

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + 84 / col0 AS col1 FROM tab2 AS cor0
----
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col0 ) * - col0 + ( - col1 * + cor0.col1 ) col1 FROM tab2 AS cor0
----
-912
2603
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-9651
SELECT + 36 DIV cor0.col1 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9651
SELECT + 36 / cor0.col1 FROM tab1 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT col2 * col2 * ( col2 ) AS col0 FROM tab2
----
17576
19683
54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-9653
SELECT ALL - - 96 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
32

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - - 96 / col0 AS col0 FROM tab1 AS cor0
----
1
1
32

query I rowsort
SELECT ( col2 ) + col0 * col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + - ( + col2 ) * + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9656
SELECT CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 24 + col1 + col1 AS col1 FROM tab2 AS cor0
----
142
58
86

query I rowsort
SELECT + - col2 + + 7 FROM tab1 AS cor0
----
-47
-50
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9659
SELECT DISTINCT - - 50 + - ( + col0 ) DIV - 31 FROM tab2 AS cor0
----
50
52

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT - - 50 + - ( + col0 ) / - 31 FROM tab2 AS cor0
----
50
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9660
SELECT ALL + 47 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + 47 / col0 AS col0 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9661
SELECT ALL col2 + - col2 + 71 DIV col0 AS col0 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL col2 + - col2 + 71 / col0 AS col0 FROM tab0 AS cor0
----
0
2
2

query I rowsort
SELECT DISTINCT + + col1 * col1 + ( + 72 ) * + col0 FROM tab1 cor0
----
4708
5929
892

query I rowsort
SELECT ALL 85 * + ( + col1 ) FROM tab1
----
1105
2210
850

onlyif mysql # use DIV operator for integer division
query I rowsort label-9664
SELECT ALL 29 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL 29 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 * - col2 + col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT col1 + + 80 AS col0 FROM tab0 cor0
----
166
171
177

query I rowsort
SELECT ALL col0 * + col2 * + col0 - + col2 * - col0 AS col2 FROM tab0 AS cor0
----
1260
19800
656820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT DISTINCT cor0.col1 / - CAST( NULL AS SIGNED ) + + col2 * - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT cor0.col1 / - CAST ( NULL AS INTEGER ) + + col2 * - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + 81 AS col2 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT - col0 + col0 * col0 * - col0 FROM tab1 AS cor0
----
-262208
-30
-512080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * 10 - + col2 * - col1 col1 FROM tab2
----
16874
7106
9207

query I rowsort
SELECT - col0 + col1 - - 54 FROM tab0
----
116
116
56

query I rowsort
SELECT 38 + + col2 AS col2 FROM tab1
----
134
92
95

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 - cor0.col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9675
SELECT DISTINCT - col1 * + CAST( - cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - col1 * + CAST ( - cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + 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-9677
SELECT ALL col0 + + col0 DIV - cor0.col2 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL col0 + + col0 / - cor0.col2 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT DISTINCT - col2 * - 94 - cor0.col2 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT ALL - - 67 + + cor0.col2 * cor0.col0 * 73 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05d32aabc42c6c729e48ef0774232462

query I rowsort
SELECT DISTINCT 68 + + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
146
147
75

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 7eb416b97f0ed263f6364cf59aa64c2b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + + col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + col1 + + 75 * 63 * col1 FROM tab2 AS cor0
----
146506
278834
80342

onlyif mysql # use DIV operator for integer division
query I rowsort label-9684
SELECT DISTINCT - col0 DIV col0 - + col1 * - col1 FROM tab1 AS cor0
----
168
675
99

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT - col0 / col0 - + col1 * - col1 FROM tab1 AS cor0
----
168
675
99

query I rowsort
SELECT ( - tab2.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-9686
SELECT col0 DIV + col1 + tab0.col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9686
SELECT col0 / + col1 + tab0.col1 AS col1 FROM tab0
----
86
91
97

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT + cor0.col1 + col1 * cor0.col1 * - col1 FROM tab2 cor0
----
-205320
-29760
-4896

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( col0 * col2 * col2 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9690
SELECT - col2 DIV col0 + - col2 AS col2 FROM tab0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-9690
SELECT - col2 / col0 + - col2 AS col2 FROM tab0
----
-1
-34
-82

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 + col2 ) NOT BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT DISTINCT col0 * col0 * + tab2.col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT col2 * - tab2.col0 * col0 AS col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL + col2 * col1 - + col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT - col2 * - col2 FROM tab1 WHERE NOT - col1 < col1
----

query I rowsort
SELECT ALL col0 * + col1 - + tab2.col0 FROM tab2 WHERE NULL BETWEEN + col2 * col0 AND NULL
----

query I rowsort
SELECT - col0 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE ( NULL ) IN ( - tab2.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9699
SELECT col1 * col0 DIV + tab0.col1 + - col2 FROM tab0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-9699
SELECT col1 * col0 / + tab0.col1 + - col2 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9700
SELECT col2 DIV col1 + col2 AS col1 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-9700
SELECT col2 / col1 + col2 AS col1 FROM tab1
----
103
56
62

query I rowsort
SELECT DISTINCT + - col1 * + col1 * col2 AS col1 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL col1 + + col0 AS col1 FROM tab1 WHERE NOT - col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT 43 * col2 FROM tab2
----
1118
1161
1634

query I rowsort
SELECT DISTINCT + + col1 * 88 FROM tab0 cor0
----
7568
8008
8536

query I rowsort
SELECT - + cor0.col2 + + ( + ( + col2 ) ) * 22 AS col1 FROM tab2 cor0
----
546
567
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-9706
SELECT ALL - + col1 DIV ( 79 * col1 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - + col1 / ( 79 * col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col1 + 44 FROM tab2 AS cor0
----
-15
13
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col1 FROM tab1, tab0, tab0 AS cor0
----
2

query I rowsort
SELECT ALL - 13 AS col0 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT - tab0.col0 - col1 * - 53 AS col2 FROM tab0
----
4534
4734
5106

query I rowsort
SELECT - cor0.col2 * col0 * 38 FROM tab0 AS cor0
----
-1330
-277324
-30096

query I rowsort
SELECT ALL + col2 - - tab1.col2 * - tab1.col0 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT tab0.col2 * + col0 + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT - tab2.col1 - tab2.col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 - + tab1.col1 FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9717
SELECT ALL col0 * - tab0.col1 + - col1 DIV + col2 FROM tab0
----
-2066
-3492
-8100

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL col0 * - tab0.col1 + - col1 / + col2 FROM tab0
----
-2066
-3492
-8100

query III rowsort
SELECT * FROM tab1 WHERE - col0 * col2 <> ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col2 * col0 * + col0 AS col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT col1 + col1 + col0 AS col2 FROM tab0
----
196
229
271

query I rowsort
SELECT ALL tab0.col0 * - col0 AS col1 FROM tab0
----
-1225
-576
-7921

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col0 + col2 + col1 * col2 <= ( tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col2 + col1 + - tab0.col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9724
SELECT - col0 * + col0 + + col2 DIV col1 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-9724
SELECT - col0 * + col0 + + col2 / col1 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT ALL + tab1.col0 DIV - col0 + - col2 + col1 FROM tab1 WHERE + col0 * + col2 + - col1 * + col2 NOT IN ( col0 + col0 )
----
-29
-48
-84

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + tab1.col0 / - col0 + - col2 + col1 FROM tab1 WHERE + col0 * + col2 + - col1 * + col2 NOT IN ( col0 + col0 )
----
-29
-48
-84

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab1 WHERE NOT + col1 * col2 * col0 + col2 <> NULL
----

query I rowsort
SELECT col0 * col1 FROM tab2 WHERE NULL = ( NULL )
----

query I rowsort
SELECT tab0.col0 + - col1 + - tab0.col0 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - col2 * - col0 + tab0.col0 * col1 FROM tab0
----
15397
2856
3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + col0 col1 FROM tab0 AS cor0
----
31
42
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9731
SELECT DISTINCT - col1 * - col2 DIV col2 + col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT - col1 * - col2 / col2 + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - + col0 * col0 + 62 FROM tab2 AS cor0
----
-6022
-6179
13

query I rowsort
SELECT ALL + col2 - 58 FROM tab0 AS cor0
----
-25
-57
24

query I rowsort
SELECT ALL col1 + - 17 AS col2 FROM tab1 AS cor0
----
-4
-7
9

query I rowsort
SELECT ALL col2 * - col1 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + col0 + - 48 FROM tab1 AS cor0
----
-45
16
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-9737
SELECT ALL + col0 * 23 * + cor0.col1 + col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
105846
30889
4988

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL + col0 * 23 * + cor0.col1 + col2 / - col0 AS col0 FROM tab2 AS cor0
----
105846
30889
4988

query I rowsort
SELECT DISTINCT col0 + + 24 + ( col0 ) * col0 * - col0 FROM tab1 AS cor0
----
-262056
-511896
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT DISTINCT + col2 DIV 29 + ( col0 ) - - col2 * + col0 FROM tab0 cor0
----
70
7389
817

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT + col2 / 29 + ( col0 ) - - col2 * + col0 FROM tab0 cor0
----
70
7389
817

query I rowsort
SELECT DISTINCT col2 + - 62 * col1 FROM tab2 cor0
----
-1016
-1895
-3632

query I rowsort
SELECT ALL + col0 + col1 + - cor0.col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + col1 * + ( + col1 ) + + col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT - col1 * - col0 + + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + col1 * cor0.col1 * - 5 AS col2 FROM tab1 AS cor0
----
-3380
-500
-845

query I rowsort
SELECT ( + col0 ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 3 + - col0 * cor0.col2 * - col0 FROM tab0 AS cor0
----
1228
19011
649525

query I rowsort
SELECT col2 * - col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col0 AS REAL ) + - col0 * - 97 FROM tab1
----
294
6272
7840

query I rowsort
SELECT ALL - col2 + 65 * col1 * + col1 AS col1 FROM tab1
----
10889
43886
6443

query I rowsort
SELECT cor0.col0 + + 3 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7561416954a2bc3f5285b9bec6d525be

onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT ALL + ( + col0 ) DIV CAST( + col2 AS SIGNED ) + - col2 FROM tab0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL + ( + col0 ) / CAST ( + col2 AS INTEGER ) + - col2 FROM tab0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - ( col1 ) + - CAST ( - col2 * col0 AS REAL ) FROM tab0
----
-62
706
7207

query I rowsort
SELECT 18 + - col2 FROM tab1
----
-36
-39
-78

query I rowsort
SELECT - 91 + + col2 FROM tab2
----
-53
-64
-65

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + col0 * + col1 + + 35 AS col0 FROM tab1 AS cor0
----
1075
113
675

query I rowsort
SELECT ALL + col2 + col1 * col1 + tab0.col2 AS col1 FROM tab0
----
7462
8445
9411

onlyif mysql # use DIV operator for integer division
query I rowsort label-9759
SELECT + col2 DIV col1 + + col0 + col1 FROM tab1 AS cor0
----
100
31
79

skipif mysql # not compatible
query I rowsort label-9759
SELECT + col2 / col1 + + col0 + col1 FROM tab1 AS cor0
----
100
31
79

query I rowsort
SELECT ( - tab2.col2 + + col2 ) * col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 64 + tab0.col1 * - col1 + col1 AS col2 FROM tab0
----
-7246
-8126
-9248

onlyif mysql # use DIV operator for integer division
query I rowsort label-9762
SELECT DISTINCT + col0 + + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT + col0 + + col1 / col2 AS col1 FROM tab0 AS cor0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 + col2 col1 FROM tab1
----
101
104
143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9764
SELECT CAST( NULL AS SIGNED ) * + 35 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT CAST ( NULL AS INTEGER ) * + 35 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 39 * 79 + - tab2.col0 AS col1 FROM tab2
----
3002
3003
3074

query I rowsort
SELECT + col0 + - col0 + + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + ( 31 ) * + col1 AS col1 FROM tab0
----
2666
2821
3007

query I rowsort
SELECT + tab1.col1 + - 29 + col2 * col2 * tab1.col2 FROM tab1
----
157461
185174
884720

onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT DISTINCT col1 * tab0.col2 + col1 * col1 + - col2 * col1 DIV - col0 FROM tab0
----
10352
15826
9508

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT col1 * tab0.col2 + col1 * col1 + - col2 * col1 / - col0 FROM tab0
----
10352
15826
9508

onlyif mysql # use DIV operator for integer division
query I rowsort label-9770
SELECT ( + col1 ) DIV tab0.col2 AS col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9770
SELECT ( + col1 ) / tab0.col2 AS col2 FROM tab0
----
1
2
97

query I rowsort
SELECT - 35 + + col2 * col2 + + col2 * - col1 FROM tab2
----
-143
-893
763

onlyif mysql # use DIV operator for integer division
query I rowsort label-9772
SELECT col2 DIV col1 + tab1.col2 * - col0 AS col0 FROM tab1
----
-160
-3643
-7673

skipif mysql # not compatible
query I rowsort label-9772
SELECT col2 / col1 + tab1.col2 * - col0 AS col0 FROM tab1
----
-160
-3643
-7673

query I rowsort
SELECT + + col2 + 10 * col2 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT DISTINCT col0 + col1 * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-106018
-1512
-358878

onlyif mysql # use DIV operator for integer division
query I rowsort label-9775
SELECT - col2 DIV + 78 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9775
SELECT - col2 / + 78 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + 62 AS col0 FROM tab2
----
121
79
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9777
SELECT cor0.col2 DIV + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-9777
SELECT cor0.col2 / + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT ALL - 1 * col0 + col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-9779
SELECT + 30 DIV cor0.col2 FROM tab0 AS cor0
----
0
0
30

skipif mysql # not compatible
query I rowsort label-9779
SELECT + 30 / cor0.col2 FROM tab0 AS cor0
----
0
0
30

query I rowsort
SELECT ALL + cor0.col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT col2 + - col2 + + cor0.col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT ALL - 72 DIV col1 + col2 FROM tab2 AS cor0
----
25
25
34

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - 72 / col1 + col2 FROM tab2 AS cor0
----
25
25
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9783
SELECT - - cor0.col0 DIV + col0 + col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-9783
SELECT - - cor0.col0 / + col0 + col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT + 90 * col2 + - col1 + col1 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT ALL cor0.col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-9787
SELECT DISTINCT - 85 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT - 85 / + cor0.col1 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT ALL + - col2 + col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 38 + cor0.col1 + - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1437
-591
-768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 44 col0 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - 90 * - 92 FROM tab0
----
8280
8280
8280

query I rowsort
SELECT - 34 - + col1 FROM tab1
----
-44
-47
-60

query I rowsort
SELECT ALL col0 + col0 * + tab1.col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT + col1 + col0 + col0 AS col1 FROM tab2 cor0
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * 87 col2 FROM tab1
----
5568
5568
5568

query I rowsort
SELECT ALL - 1 FROM tab2, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - cor0.col1 * - col0 * col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT 66 FROM tab1 cor0
----
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9799
SELECT + + col2 * - col1 + - CAST( - col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-6887
-7618
-886

skipif mysql # not compatible
query I rowsort label-9799
SELECT + + col2 * - col1 + - CAST ( - col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-6887
-7618
-886

onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT ALL + 63 * + col0 + 84 - + tab1.col0 DIV col2 col0 FROM tab1
----
273
4115
5124

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + 63 * + col0 + 84 - + tab1.col0 / col2 col0 FROM tab1
----
273
4115
5124

query I rowsort
SELECT - + ( + col2 ) + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col2 * + 47 AS col0 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT ALL + + col1 * cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + col2 * + 59 - + col1 FROM tab2 AS cor0
----
1475
1562
2225

query I rowsort
SELECT DISTINCT + col1 * - 86 FROM tab0 cor0
----
-7396
-7826
-8342

onlyif mysql # use DIV operator for integer division
query I rowsort label-9806
SELECT - + col2 DIV col1 + col1 * cor0.col2 * - 82 FROM tab1 AS cor0
----
-102343
-115130
-46745

skipif mysql # not compatible
query I rowsort label-9806
SELECT - + col2 / col1 + col1 * cor0.col2 * - 82 FROM tab1 AS cor0
----
-102343
-115130
-46745

query I rowsort
SELECT ALL - + col0 * 79 + + col0 + + col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9808
SELECT ALL col1 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL col1 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 16 AS col1 FROM tab1 AS cor0
----
38
41
80

query I rowsort
SELECT + - col2 * - 85 + col1 * + col2 FROM tab2 AS cor0
----
3132
3744
3876

query I rowsort
SELECT DISTINCT - 68 * col0 + - ( + col1 * - col2 ) AS col1 FROM tab1
----
-3782
-4192
1200

query I rowsort
SELECT - col2 * - col1 + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - 41 + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 94a2d96e9cdaa2dec928ac762592b2c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT DISTINCT - col0 + cor0.col0 DIV col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - col0 + cor0.col0 / col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - - 28 + col1 * col0 AS col0 FROM tab1 cor0
----
106
1068
668

query I rowsort
SELECT - ( col2 ) + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 col0 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT - col0 * + col0 * - col0 FROM tab0 AS cor0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * 52 + - col0 col2 FROM tab0 AS cor0
----
3187
3241
3252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * + 13 col1 FROM tab1 AS cor0
----
1209
1209
1209

query I rowsort
SELECT + + ( col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + cor0.col2 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + col0 + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - 73 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT - 68 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * tab2.col1 col2 FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 7d59f2610048ca4bb61970e264e5d1ed

query I rowsort
SELECT col1 * col0 + + 75 AS col1 FROM tab1 AS cor0
----
1115
153
715

query I rowsort
SELECT + 41 * + col0 AS col1 FROM tab2
----
287
3198
3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-9829
SELECT ALL col0 DIV + ( ( + col0 ) ) + - col2 * + col0 * - col2 FROM tab0
----
26137
36
598437

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL col0 / + ( ( + col0 ) ) + - col2 * + col0 * - col2 FROM tab0
----
26137
36
598437

onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT + col1 - col2 DIV + col0 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-9830
SELECT + col1 - col2 / + col0 FROM tab1
----
10
12
8

query I rowsort
SELECT tab0.col0 * + col0 + + col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT + 62 * 14 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 93cff70e6e65a0f9ac2f08901db0e12b

query I rowsort
SELECT + - col0 * + 14 * - 4 AS col2 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT - 95 * 48 FROM tab0, tab1 AS cor0
----
9 values hashing to ad13495e617b565eba847f04b1ed65fa

query I rowsort
SELECT col0 + 68 * - col1 AS col1 FROM tab0 AS cor0
----
-5824
-6099
-6561

query I rowsort
SELECT col1 * - col1 + - 7 * - ( + col1 ) AS col0 FROM tab1 cor0
----
-30
-494
-78

query I rowsort
SELECT - col1 + cor0.col0 * col2 + + 45 FROM tab2 AS cor0
----
2014
203
3030

onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT DISTINCT + col2 DIV col0 + - 53 * - col2 AS col2 FROM tab0 AS cor0
----
1750
4346
53

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT + col2 / col0 + - 53 * - col2 AS col2 FROM tab0 AS cor0
----
1750
4346
53

query I rowsort
SELECT DISTINCT - + col1 * + col1 * col0 + col1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-22542
-268037
-5766

query I rowsort
SELECT ALL - col0 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT - 49 + col1 FROM tab0 AS cor0
----
37
42
48

query I rowsort
SELECT DISTINCT + + col1 + - cor0.col2 * ( col2 ) * + col0 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT - - 68 * col1 + 86 * - col2 + col2 FROM tab2 AS cor0
----
-187
-2074
1802

query I rowsort
SELECT DISTINCT - - col1 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + col1 * cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + cor0.col2 * 53 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) * - col1 + - col2 FROM tab2 cor0
----
10944
25920
90480

onlyif mysql # use DIV operator for integer division
query I rowsort label-9849
SELECT + + col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9849
SELECT + + col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT - 33 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT ALL + col1 * - col1 * - col2 + - ( col1 ) * 58 * + col0 + col1 FROM tab1
----
-31410
-44083
32006

query I rowsort
SELECT DISTINCT - 25 + col0 - col2 AS col2 FROM tab1 AS cor0
----
-18
-41
-76

query I rowsort
SELECT DISTINCT - ( col2 ) + col2 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9854
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col2 * - col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col2 * - col2 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9855
SELECT + - CAST( NULL AS SIGNED ) * col0 - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT + - CAST ( NULL AS INTEGER ) * col0 - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) * - cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 * col0 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - 61 - col2 FROM tab0
----
-143
-62
-94

query I rowsort
SELECT - 30 + col1 + col2 FROM tab1
----
37
50
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + col1 DIV 6 FROM tab2
----
12
81
87

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + col1 / 6 FROM tab2
----
12
81
87

query I rowsort
SELECT DISTINCT - 52 * col1 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT ALL + col1 * - col2 + + col2 * col2 FROM tab1 cor0
----
1512
2679
7968

query I rowsort
SELECT + col1 * 6 AS col1 FROM tab1
----
156
60
78

query I rowsort
SELECT DISTINCT col1 + + tab0.col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT tab1.col0 + ( + tab1.col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT col2 * ( col2 * - ( + col2 ) ) FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT 41 + 97 FROM tab2
----
138

query I rowsort
SELECT DISTINCT - 56 * + 61 AS col1 FROM tab2, tab2 AS cor0
----
-3416

query I rowsort
SELECT 83 + col0 - col0 AS col1 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9870
SELECT 83 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
2
83

skipif mysql # not compatible
query I rowsort label-9870
SELECT 83 / + col2 AS col2 FROM tab0 AS cor0
----
1
2
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9871
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT ALL + col1 DIV - col1 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + col1 / - col1 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab2, tab1, tab0 AS cor0
----
-12

query I rowsort
SELECT + 31 * col0 AS col0 FROM tab2
----
217
2418
2449

onlyif mysql # use DIV operator for integer division
query I rowsort label-9875
SELECT col1 + ( col2 ) DIV tab2.col0 AS col2 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-9875
SELECT col1 + ( col2 ) / tab2.col0 AS col2 FROM tab2
----
17
34
59

query I rowsort
SELECT ALL + col2 * 7 * - col0 FROM tab1 AS cor0
----
-1134
-25536
-53760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9877
SELECT cor0.col2 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-9877
SELECT cor0.col2 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + col1 * - 14 AS col2 FROM tab0
----
-1204
-1274
-1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-9879
SELECT - - ( 70 ) + + col2 DIV - col2 - + col2 FROM tab0 AS cor0
----
-13
36
68

skipif mysql # not compatible
query I rowsort label-9879
SELECT - - ( 70 ) + + col2 / - col2 - + col2 FROM tab0 AS cor0
----
-13
36
68

query I rowsort
SELECT ALL + - 92 + + cor0.col2 FROM tab2 AS cor0
----
-54
-65
-66

query I rowsort
SELECT DISTINCT ( col2 ) + - cor0.col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col0 * 64 AS col2 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT ALL - col0 * cor0.col0 + col2 * + 14 FROM tab1 AS cor0
----
-3298
-5056
747

query I rowsort
SELECT DISTINCT + ( + 7 ) * col0 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT - col1 * + 95 AS col1 FROM tab2 AS cor0
----
-1615
-2945
-5605

onlyif mysql # use DIV operator for integer division
query I rowsort label-9886
SELECT ALL + + col1 * 93 + col1 DIV + 18 AS col2 FROM tab0 AS cor0
----
8002
8468
9026

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + + col1 * 93 + col1 / + 18 AS col2 FROM tab0 AS cor0
----
8002
8468
9026

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9887
SELECT + - CAST( NULL AS SIGNED ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT + - CAST ( NULL AS INTEGER ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 99 - 69 * - col2 AS col0 FROM tab2 AS cor0
----
1893
1962
2721

query I rowsort
SELECT DISTINCT 73 * + col0 AS col2 FROM tab2 AS cor0
----
511
5694
5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 56 ) * - col0 col0 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT ALL - + col2 * col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT + - 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT + + cor0.col0 * + col1 + - col2 AS col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT + 42 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT tab2.col2 * - col2 AS col2 FROM tab2
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9896
SELECT + + ( + 98 ) * col0 - CAST( NULL AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT + + ( + 98 ) * col0 - CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 9 ) AS col0 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9898
SELECT col2 * + col1 + CAST( cor0.col2 AS SIGNED ) * + col1 + - 12 AS col2 FROM tab1 AS cor0
----
1128
2484
2796

skipif mysql # not compatible
query I rowsort label-9898
SELECT col2 * + col1 + CAST ( cor0.col2 AS INTEGER ) * + col1 + - 12 AS col2 FROM tab1 AS cor0
----
1128
2484
2796

query I rowsort
SELECT - ( + col0 ) + 4 AS col0 FROM tab1 AS cor0
----
-60
-76
1

query I rowsort
SELECT + cor0.col0 * cor0.col2 + - col2 * - 15 FROM tab0 AS cor0
----
1287
50
8528

query I rowsort
SELECT ( - col0 ) * - 16 AS col2 FROM tab0
----
1424
384
560

query I rowsort
SELECT col1 + + col2 * ( col2 ) * - col0 + + col1 FROM tab0
----
-25964
-598254
159

query I rowsort
SELECT + col2 * col0 + ( col2 * + col2 ) FROM tab2
----
2704
4446
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-9904
SELECT DISTINCT 94 + col0 * col0 DIV col2 + col1 * + 83 AS col1 FROM tab0
----
7249
7743
9370

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT 94 + col0 * col0 / col2 + col1 * + 83 AS col1 FROM tab0
----
7249
7743
9370

query I rowsort
SELECT DISTINCT - col1 * col0 + 79 AS col0 FROM tab1
----
-561
-961
1

query I rowsort
SELECT DISTINCT - - 41 FROM tab0 AS cor0
----
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9907
SELECT - col1 + CAST( - col2 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif mysql # not compatible
query I rowsort label-9907
SELECT - col1 + CAST ( - col2 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - + col1 * + 48 FROM tab0 AS cor0
----
-4128
-4368
-4656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9909
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col0 + 89 + col1 FROM tab0 AS cor0
----
221
7478
967

query I rowsort
SELECT - col0 + - ( col1 ) + + col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT cor0.col2 * 28 AS col0 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT - col0 + cor0.col2 + 88 * col1 FROM tab0 AS cor0
----
7577
8001
8502

onlyif mysql # use DIV operator for integer division
query I rowsort label-9914
SELECT DISTINCT + col2 DIV col1 + 70 + + col0 AS col2 FROM tab0
----
105
159
94

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT + col2 / col1 + 70 + + col0 AS col2 FROM tab0
----
105
159
94

query I rowsort
SELECT ALL + cor0.col1 + 89 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT ALL - col1 * 11 + col1 FROM tab2 cor0
----
-170
-310
-590

query I rowsort
SELECT DISTINCT + col2 + 4 * 81 AS col1 FROM tab2 AS cor0
----
350
351
362

query I rowsort
SELECT - 6 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT - ( col2 ) + cor0.col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - 66 * - col2 AS col2 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT + ( + 11 ) FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT ALL + - 66 * - col0 + - col0 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT ALL 87 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT DISTINCT + - col1 + 87 FROM tab2 cor0
----
28
56
70

query I rowsort
SELECT ALL - col1 * cor0.col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - ( 23 ) * + col2 FROM tab2
----
-598
-621
-874

query I rowsort
SELECT - ( col0 ) * - col0 - col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT DISTINCT col2 + 47 + + col0 FROM tab0
----
104
218
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 + - 63 * col0 col2 FROM tab2 AS cor0
----
-358
-4831
-4894

query I rowsort
SELECT + col0 * - 4 FROM tab1 AS cor0
----
-12
-256
-320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9932
SELECT ALL CAST( 69 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL CAST ( 69 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9933
SELECT + col1 DIV 6 FROM tab0
----
14
15
16

skipif mysql # not compatible
query I rowsort label-9933
SELECT + col1 / 6 FROM tab0
----
14
15
16

query I rowsort
SELECT + col2 * col1 + + ( col1 + - 89 * - col2 ) AS col1 FROM tab1
----
5653
6236
9805

query I rowsort
SELECT + col1 + col2 - ( col0 ) * ( + 97 * col1 ) FROM tab0
----
-200089
-329217
-785430

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM tab0
----
17

query I rowsort
SELECT DISTINCT - ( 59 ) * col1 AS col0 FROM tab1 cor0
----
-1534
-590
-767

onlyif mysql # use DIV operator for integer division
query I rowsort label-9938
SELECT ALL col0 + col1 DIV + col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL col0 + col1 / + col0 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ( 83 ) + - col0 + - col0 FROM tab2
----
-73
-75
69

query I rowsort
SELECT DISTINCT - 84 * cor0.col2 + - col2 * + 69 AS col0 FROM tab0 AS cor0
----
-12546
-153
-5049

query I rowsort
SELECT ALL + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col1 * 33 + + cor0.col0 FROM tab2 AS cor0
----
-1016
-1869
-482

query I rowsort
SELECT ALL ( 34 ) + - col0 FROM tab1 AS cor0
----
-30
-46
31

query I rowsort
SELECT DISTINCT - cor0.col2 - + col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ( col2 ) + - col2 * 21 FROM tab1 AS cor0
----
-1080
-1140
-1920

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - + 70 FROM tab2 AS cor0
----
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9948
SELECT CAST( 94 AS SIGNED ) * cor0.col0 * col2 + + 93 AS col2 FROM tab1 AS cor0
----
15321
343005
722013

skipif mysql # not compatible
query I rowsort label-9948
SELECT CAST ( 94 AS INTEGER ) * cor0.col0 * col2 + + 93 AS col2 FROM tab1 AS cor0
----
15321
343005
722013

query I rowsort
SELECT + + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col1 col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT + col0 DIV 89 + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9951
SELECT + col0 / 89 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col2 + + col0 * - tab1.col2 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT 40 * + col0 AS col1 FROM tab0 AS cor0
----
1400
3560
960

query I rowsort
SELECT ALL - 34 + + col1 FROM tab1 AS cor0
----
-21
-24
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9955
SELECT - cor0.col0 + - col2 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9955
SELECT - cor0.col0 + - col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9956
SELECT DISTINCT + col0 DIV - col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + col0 / - col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 * + 90 AS col2 FROM tab0 AS cor0
----
-3150
-656820
-71280

query I rowsort
SELECT - col1 + - 20 - - col0 FROM tab0 AS cor0
----
-22
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + 78 col2 FROM tab1 AS cor0
----
104
88
91

query I rowsort
SELECT - - col2 + col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
53

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 * + col0 FROM tab2 AS cor0
----
343
474552
493039

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col0 + - CAST ( col2 AS REAL ) FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - - col2 * 48 + + col1 + col0 * 59 AS col0 FROM tab0 AS cor0
----
2210
3086
9278

onlyif mysql # use DIV operator for integer division
query I rowsort label-9965
SELECT cor0.col1 + ( cor0.col2 ) DIV col1 AS col2 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-9965
SELECT cor0.col1 + ( cor0.col2 ) / col1 AS col2 FROM tab1 AS cor0
----
15
20
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-9966
SELECT col0 + col1 DIV col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9966
SELECT col0 + col1 / col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - col2 * col2 + 60 FROM tab2 AS cor0
----
-1384
-616
-669

query I rowsort
SELECT DISTINCT - - col0 + ( + col2 ) FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9969
SELECT + col2 DIV 97 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9969
SELECT + col2 / 97 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 30 + 35 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT ALL col2 + - 61 FROM tab0
----
-28
-60
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9973
SELECT DISTINCT + CAST( 68 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT + CAST ( 68 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
68

query I rowsort
SELECT ALL + col1 * - cor0.col2 + + ( - col2 * + col0 ) AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 69 + + col1 col0 FROM tab2 AS cor0
----
-10
-38
-52

query I rowsort
SELECT DISTINCT + - col2 + col2 + ( + col1 + cor0.col1 ) FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT ALL 89 + col1 FROM tab1
----
102
115
99

query I rowsort
SELECT ( col0 + + col2 * 71 ) AS col1 FROM tab1
----
3837
4111
6896

query I rowsort
SELECT ALL col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 * col0 + 74 + + col2 * col2 FROM tab0 AS cor0
----
118900
50699
727609

query I rowsort
SELECT DISTINCT 38 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
38

query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + ( + cor0.col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT ALL - col2 DIV col0 + col0 col1 FROM tab2 AS cor0
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - col2 / col0 + col0 col1 FROM tab2 AS cor0
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * cor0.col0 + - cor0.col0 col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT 0 * + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9988
SELECT DISTINCT col0 DIV col0 + 92 * col0 AS col1 FROM tab1 AS cor0
----
277
5889
7361

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT col0 / col0 + 92 * col0 AS col1 FROM tab1 AS cor0
----
277
5889
7361

onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT DISTINCT - col0 DIV + col2 + - col0 FROM tab0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - col0 / + col2 + - col0 FROM tab0
----
-24
-70
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ( + col0 ) * col0 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-9992
SELECT ALL 1 DIV - col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL 1 / - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 28 + col2 * + col0 FROM tab0
----
63
7326
820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT ALL col2 + + col1 * + CAST( NULL AS SIGNED ) + - 62 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL col2 + + col1 * + CAST ( NULL AS INTEGER ) + - 62 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * - ( 19 ) AS col2 FROM tab2
----
-133
-1482
-1501

onlyif mysql # use DIV operator for integer division
query I rowsort label-9996
SELECT + cor0.col1 DIV + 98 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9996
SELECT + cor0.col1 / + 98 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col0 + 61 - - col2 AS col2 FROM tab1 cor0
----
118
182
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT - col1 DIV 54 col0 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9999
SELECT - col1 / 54 col0 FROM tab2
----
-1
0
0