sqllogictest
Artifact Content
Not logged in

Artifact fe94811bdd85538221aaf12feaaedba3fbdeb1cc:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + col2 + - ( col1 * col1 ) AS col0 FROM tab2 AS cor0
----
-172
-3377
-927

query I rowsort
SELECT ALL col2 * + ( 29 ) + + col0 AS col1 FROM tab2 AS cor0
----
1181
790
832

query I rowsort
SELECT cor0.col2 * - 86 + - cor0.col1 * col1 * col2 AS col0 FROM tab2 AS cor0
----
-14250
-28269
-92742

query I rowsort
SELECT DISTINCT - + col2 * + 56 + 65 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2905
-3070
-5215

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

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

query I rowsort
SELECT DISTINCT - + col0 * ( + 82 + + col1 ) FROM tab0 AS cor0
----
-15397
-4032
-6265

query I rowsort
SELECT + cor0.col0 * + col1 * - 68 AS col2 FROM tab1 AS cor0
----
-43520
-5304
-70720

query I rowsort
SELECT + cor0.col0 + - 62 * col2 FROM tab1 AS cor0
----
-3345
-3470
-5872

query I rowsort
SELECT ALL col2 * + 80 + col2 + col2 AS col0 FROM tab1 cor0
----
4428
4674
7872

query I rowsort
SELECT + col0 * + 37 * col0 FROM tab2 AS cor0
----
1813
225108
230917

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-13
SELECT - - ( + 62 ) DIV col1 + 11 FROM tab0 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-13
SELECT - - ( + 62 ) / col1 + 11 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT + ( + col0 ) * - col2 - + 44 AS col1 FROM tab2 AS cor0
----
-2072
-233
-3046

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

query I rowsort
SELECT + 28 - col0 FROM tab1 AS cor0
----
-36
-52
25

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

query I rowsort
SELECT col2 - 96 AS col1 FROM tab2 AS cor0
----
-58
-69
-70

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-20
SELECT - + col1 DIV + col0 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
33
7297
789

skipif mysql # not compatible
query I rowsort label-20
SELECT - + col1 / + col0 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
33
7297
789

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

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

query I rowsort
SELECT ALL - 66 * col1 * 79 AS col2 FROM tab0 AS cor0
----
-448404
-474474
-505758

query I rowsort
SELECT DISTINCT 80 + tab1.col0 FROM tab1
----
144
160
83

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

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

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

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

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - cor0.col2 / col1 + - col1 FROM tab2 AS cor0
----
-19
-31
-59

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col2 * col2 - col2 AS col0 FROM tab2
----
1406
650
702

query I rowsort
SELECT + col2 * + col2 + col0 * col1 * + col0 FROM tab1
----
3150
44209
92416

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT col2 DIV col1 + col2 AS col2 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-35
SELECT col2 / col1 + col2 AS col2 FROM tab2 AS cor0
----
26
27
40

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-38
SELECT - col0 + + col0 DIV col2 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-38
SELECT - col0 + + col0 / col2 FROM tab1 AS cor0
----
-3
-63
-80

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-42
SELECT ALL col0 * col2 + - col1 DIV col1 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL col0 * col2 + - col1 / col1 FROM tab2
----
188
2027
3001

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( - col2 * - col0 + + col1 * + col0 )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 BETWEEN NULL AND - col1
----

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

query I rowsort
SELECT DISTINCT - - col1 * col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - - 13 - - col0 * col2 FROM tab1 cor0
----
175
3661
7693

query I rowsort
SELECT ALL - + col1 * col2 * - 46 AS col1 FROM tab1 AS cor0
----
26220
57408
64584

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN NULL AND col0
----

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * + col0 col0 FROM tab0 AS cor0
----
1872
2730
6942

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 + tab2.col1 col0 FROM tab2
----
11
111
58

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

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

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

query I rowsort
SELECT + col0 * col2 + col1 + col1 * + col2 FROM tab0 AS cor0
----
14851
229
3716

query III rowsort
SELECT * FROM tab2 WHERE - col0 = ( NULL )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-67
SELECT ALL - col1 + col2 / + tab1.col2 col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col2 * col0 + + col1 * - col1 >= + col1 + - col1
----
54

query I rowsort
SELECT ALL col1 + + col2 - col0 FROM tab0
----
63
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 - col2 * col1 col0 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT tab1.col2 * + col2 * tab1.col0 + col0 + tab1.col1 AS col1 FROM tab1
----
208010
737373
8777

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

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

query I rowsort
SELECT DISTINCT - col2 * - col0 * col1 AS col1 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - col2 > NULL
----

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

query I rowsort
SELECT col1 * - col2 + + tab0.col1 * + col1 * - col0 FROM tab0
----
-180342
-329412
-744471

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-81
SELECT DISTINCT - + col0 * - col1 - - ( - 23 ) * col0 DIV 86 FROM tab1 AS cor0
----
1019
623
78

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT - + col0 * - col1 - - ( - 23 ) * col0 / 86 FROM tab1 AS cor0
----
1019
623
78

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

query I rowsort
SELECT - 93 * + cor0.col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT DISTINCT + 52 + - col1 * ( col0 ) - + col1 AS col2 FROM tab0 AS cor0
----
-2098
-3440
-8138

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

query I rowsort
SELECT - - 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + tab2.col1 * 18 + + col1 * col1 col2 FROM tab2
----
1708
3597
6571

query I rowsort
SELECT DISTINCT 37 * - col2 * col0 + col2 * - col2 FROM tab0
----
-1296
-276750
-30393

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-90
SELECT ALL - 59 * cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL - 59 * cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col0 + + cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
12
15
28
72
75
88

query I rowsort
SELECT DISTINCT + col1 * 73 * col1 FROM tab1 AS cor0
----
12337
49348
7300

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-96

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 17 + 30 AS col2 FROM tab1
----
13
13
13

query I rowsort
SELECT 47 + - col1 FROM tab0
----
-39
-44
-50

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

query I rowsort
SELECT ALL - 24 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT tab0.col0 * + ( cor1.col0 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 90419a192c361a642cd324efcc88b14d

onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT DISTINCT 25 DIV - 11 AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT 25 / - 11 AS col1 FROM tab0
----
-2

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + col0 + + ( col2 ) FROM tab2 AS cor0
----
-1226
-183
-4498

query I rowsort
SELECT ALL + col1 - 70 AS col1 FROM tab1 AS cor0
----
-44
-57
-60

query I rowsort
SELECT ALL col1 * 5 * col0 AS col0 FROM tab0
----
10320
16975
40495

query I rowsort
SELECT - 22 + col1 FROM tab1
----
-12
-9
4

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

query I rowsort
SELECT 61 * - col2 + ( col1 ) AS col2 FROM tab1
----
-3268
-3467
-5843

query I rowsort
SELECT + 60 * - col1 AS col0 FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT - 23 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to c8c4f0bd925413f7f95df1d166aef9dd

query I rowsort
SELECT - - 83 + col0 * - 80 AS col1 FROM tab0 AS cor0
----
-1837
-2717
-7037

onlyif mysql # use DIV operator for integer division
query I rowsort label-110
SELECT + 69 * col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
15
320
91

skipif mysql # not compatible
query I rowsort label-110
SELECT + 69 * col0 / + col1 AS col1 FROM tab2 AS cor0
----
15
320
91

query I rowsort
SELECT ALL - col2 * + 28 AS col0 FROM tab0
----
-2296
-28
-924

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

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

query I rowsort
SELECT col1 * col2 + 91 * - col0 AS col0 FROM tab1 AS cor0
----
-5254
-6032
1131

query I rowsort
SELECT col0 + - 91 * 60 * + col1 FROM tab0 AS cor0
----
-469536
-496771
-529585

query I rowsort
SELECT - col0 * - 39 + 70 FROM tab2 AS cor0
----
3112
3151
343

query I rowsort
SELECT + - 51 * 74 FROM tab0 AS cor0
----
-3774
-3774
-3774

query I rowsort
SELECT + col0 * + 67 AS col2 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT - 69 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT - 70 * - col0 AS col2 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT + 80 * col2 AS col0 FROM tab2 cor0
----
2080
2160
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 * col0 + ( col0 ) col1 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT + col0 * 54 FROM tab2
----
378
4212
4266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 22 + + col1 * cor0.col2 * cor0.col2 col0 FROM tab2 cor0
----
23281
24922
41182

onlyif mysql # use DIV operator for integer division
query I rowsort label-124
SELECT - CAST( + col0 AS SIGNED ) + + col2 * ( col1 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-33
-6
94

skipif mysql # not compatible
query I rowsort label-124
SELECT - CAST ( + col0 AS INTEGER ) + + col2 * ( col1 ) / col0 AS col1 FROM tab0 AS cor0
----
-33
-6
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 21 + col2 col1 FROM tab1 AS cor0
----
-1287
-1584
-9

query I rowsort
SELECT + - col0 * + col0 * col1 + col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT DISTINCT col0 - - 48 * col2 * + col1 AS col0 FROM tab1 AS cor0
----
27424
59984
67395

query I rowsort
SELECT DISTINCT cor0.col2 * + 46 FROM tab2 cor0
----
1196
1242
1748

query I rowsort
SELECT col0 * + ( 75 ) FROM tab1 cor0
----
225
4800
6000

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

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

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

query I rowsort
SELECT ( + col2 ) * col2 + 5 AS col1 FROM tab1 cor0
----
2921
3254
9221

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

query I rowsort
SELECT DISTINCT - - ( 36 ) * + col1 AS col0 FROM tab0 cor0
----
3096
3276
3492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * 26 + col1 * col2 + + col1 col1 FROM tab1 AS cor0
----
-1235
-902
26

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 24 AS REAL ) + - cor0.col0 FROM tab2 AS cor0
----
-102
-103
-31

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

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

query I rowsort
SELECT ALL 17 * col2 + + col0 * + col2 FROM tab1 AS cor0
----
1080
4617
9312

query I rowsort
SELECT DISTINCT + + 60 * col2 - col2 * 13 FROM tab1 AS cor0
----
2538
2679
4512

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

query I rowsort
SELECT ALL ( 31 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

query I rowsort
SELECT DISTINCT - col0 + col1 * + 81 AS col0 FROM tab1 AS cor0
----
2103
746
973

query I rowsort
SELECT + - col2 * col0 + col2 - + ( + col2 ) * + col1 * col0 AS col0 FROM tab1 AS cor0
----
-107424
-40071
-4320

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-148
SELECT DISTINCT + col0 DIV tab1.col2 - - col1 * + col2 AS col1 FROM tab1
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + col0 / tab1.col2 - - col1 * + col2 AS col1 FROM tab1
----
1248
1404
571

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
71

query I rowsort
SELECT - ( col1 ) + - 74 FROM tab0
----
-160
-165
-171

query I rowsort
SELECT + cor0.col0 * 20 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9d8d92dcd14b9378f7a19c04acef3137

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

query I rowsort
SELECT ALL + col0 * + tab2.col2 + ( - 89 * + col2 ) + 10 AS col2 FROM tab2
----
-2204
-276
-370

query I rowsort
SELECT ALL col0 * + col2 + - col2 + - 50 AS col0 FROM tab0
----
-16
709
7166

query I rowsort
SELECT - col2 + + cor0.col0 * 66 FROM tab2 AS cor0
----
435
5122
5176

query I rowsort
SELECT col1 * 60 FROM tab2 AS cor0
----
1020
1860
3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 + col0 col0 FROM tab1
----
19
80
96

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

skipif mysql # not compatible
query I rowsort label-158
SELECT - col1 / cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
-35
-83
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-159
SELECT DISTINCT + col0 DIV - 95 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + col0 / - 95 FROM tab2 cor0
----
0

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

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

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

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

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

query I rowsort
SELECT ALL + + col1 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - cor0.col0 + + 87 * - col0 AS col0 FROM tab2 AS cor0
----
-616
-6864
-6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL + + 38 DIV + col0 + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2928
3249
9216

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + + 38 / + col0 + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2928
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-167
SELECT ALL + - ( col2 ) DIV col2 + + 33 AS col2 FROM tab1 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL + - ( col2 ) / col2 + + 33 AS col2 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-168
SELECT + - 96 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-168
SELECT + - 96 / col1 AS col0 FROM tab2 AS cor0
----
-1
-3
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * 86 + col2 * - cor0.col0 col0 FROM tab2 AS cor0
----
-1540
2477
3046

query I rowsort
SELECT DISTINCT - 49 + col2 AS col1 FROM tab2 AS cor0
----
-11
-22
-23

query I rowsort
SELECT DISTINCT 69 * col0 + + col0 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT ALL col1 + cor0.col0 + cor0.col1 FROM tab2 cor0
----
113
196
69

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

query I rowsort
SELECT DISTINCT 84 * + cor0.col1 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT 39 + cor0.col0 * col1 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
106153
1589
359054

query I rowsort
SELECT DISTINCT + 90 + col1 AS col2 FROM tab1 AS cor0
----
100
103
116

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

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

query I rowsort
SELECT ALL + 10 * + tab0.col2 + + col0 - + 68 FROM tab0
----
-23
286
841

query I rowsort
SELECT + 21 * + cor0.col1 + 25 AS col1 FROM tab0 AS cor0
----
1831
1936
2062

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

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL - - col1 / col2 + - col1 AS col0 FROM tab0 AS cor0
----
-84
-90
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT - - cor0.col2 DIV + col0 + 73 FROM tab2 AS cor0
----
73
73
76

skipif mysql # not compatible
query I rowsort label-182
SELECT - - cor0.col2 / + col0 + 73 FROM tab2 AS cor0
----
73
73
76

query I rowsort
SELECT ALL 83 * col2 + - col0 * col1 - - col2 AS col0 FROM tab2 cor0
----
-2418
1849
2051

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

query I rowsort
SELECT DISTINCT - col1 - 77 * col2 FROM tab2 cor0
----
-2061
-2110
-2943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - ( - col2 ) col0 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT DISTINCT + col0 DIV - ( 28 ) AS col1 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT + col0 / - ( 28 ) AS col1 FROM tab2 AS cor0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + col0 * - 64 col1 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT DISTINCT + + col1 * col1 * - 7 AS col2 FROM tab0 AS cor0
----
-51772
-57967
-65863

query I rowsort
SELECT ALL - col2 + + col0 * col1 * cor0.col0 FROM tab1 AS cor0
----
180
40903
83104

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 - col0 * col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT ALL - cor0.col0 DIV + 59 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - cor0.col0 / + 59 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT 67 + 4 AS col2 FROM tab2 cor0
----
71
71
71

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT cor0.col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col1 * - 7 AS col2 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT DISTINCT - 23 * + col0 * ( col2 ) + + col0 FROM tab1 AS cor0
----
-176560
-3723
-83840

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

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

query I rowsort
SELECT ALL 50 * col0 * - col0 FROM tab2 AS cor0
----
-2450
-304200
-312050

query I rowsort
SELECT col1 * col1 * - 31 AS col0 FROM tab1
----
-20956
-3100
-5239

query I rowsort
SELECT ( - col0 + col1 ) * col2 FROM tab2
----
-2356
-494
648

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

query I rowsort
SELECT DISTINCT - 56 - col0 FROM tab1 cor0
----
-120
-136
-59

query I rowsort
SELECT - 66 * col1 + col1 * 46 + col1 AS col1 FROM tab0 AS cor0
----
-1634
-1729
-1843

query I rowsort
SELECT - col1 + 89 FROM tab0 AS cor0
----
-2
-8
3

query I rowsort
SELECT ALL + 61 + col0 FROM tab1
----
125
141
64

query I rowsort
SELECT + col2 + col2 * 7 FROM tab0
----
264
656
8

query I rowsort
SELECT ALL col2 + - col2 * ( col2 ) * col0 AS col0 FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT ALL ( 21 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT col0 + ( 29 ) * col0 * 63 AS col2 FROM tab1 cor0
----
116992
146240
5484

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

query I rowsort
SELECT + ( + 36 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-219
SELECT ALL - CAST( col2 AS SIGNED ) + - col2 FROM tab1 cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - CAST ( col2 AS INTEGER ) + - col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT 64 * 18 FROM tab1, tab0 AS cor0
----
9 values hashing to c0fbd589ffb6a23b3d06a4e6e8db2139

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-222
SELECT ALL col0 + + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL col0 + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL 36 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT 6 FROM tab1, tab0, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

query I rowsort
SELECT col2 + + 18 FROM tab0
----
100
19
51

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

query I rowsort
SELECT ( col0 ) + col1 + + 23 FROM tab0
----
133
155
203

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT + col0 * col1 + col0 - ( col0 + + col1 ) DIV col1 FROM tab2 cor0
----
1417
223
4678

skipif mysql # not compatible
query I rowsort label-229
SELECT + col0 * col1 + col0 - ( col0 + + col1 ) / col1 FROM tab2 cor0
----
1417
223
4678

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

skipif mysql # not compatible
query I rowsort label-230
SELECT - CAST ( + col2 + col0 AS INTEGER ) FROM tab2
----
-104
-117
-34

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

query I rowsort
SELECT 96 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

query I rowsort
SELECT - 63 - col0 AS col1 FROM tab0 AS cor0
----
-152
-87
-98

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

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

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

query I rowsort
SELECT DISTINCT + 77 + - col2 FROM tab1
----
-19
20
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-238
SELECT ALL + ( 12 ) DIV col1 + col2 * - tab2.col1 * - col1 FROM tab2
----
10982
25947
90506

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + ( 12 ) / col1 + col2 * - tab2.col1 * - col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ( col0 ) - + tab0.col1 * - col2 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL + 4 + - col2 FROM tab1
----
-50
-53
-92

query I rowsort
SELECT - - ( + 91 ) * col0 + ( + ( col0 ) ) * cor0.col2 FROM tab0 AS cor0
----
15397
2976
3220

onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT + + 5 DIV col0 - col2 * + col2 FROM tab1 AS cor0
----
-2915
-3249
-9216

skipif mysql # not compatible
query I rowsort label-242
SELECT + + 5 / col0 - col2 * + col2 FROM tab1 AS cor0
----
-2915
-3249
-9216

query I rowsort
SELECT DISTINCT 53 * + 7 + - col0 FROM tab0 AS cor0
----
282
336
347

query I rowsort
SELECT DISTINCT col2 * + col2 * col0 + 19 FROM tab2 AS cor0
----
114095
5122
52747

onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT DISTINCT col2 DIV + col0 + ( - 16 ) AS col1 FROM tab1 cor0
----
-15
-16
2

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT col2 / + col0 + ( - 16 ) AS col1 FROM tab1 cor0
----
-15
-16
2

query I rowsort
SELECT + col2 * - col1 + 54 AS col1 FROM tab1 AS cor0
----
-1194
-1350
-516

query I rowsort
SELECT ALL ( + col2 ) * col1 + 89 * - cor0.col0 FROM tab2 AS cor0
----
-5408
-6385
214

onlyif mysql # use DIV operator for integer division
query I rowsort label-248
SELECT ALL col1 + + col1 DIV - ( + 76 ) AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL col1 + + col1 / - ( + 76 ) AS col1 FROM tab0 AS cor0
----
85
90
96

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

query I rowsort
SELECT ALL + col1 * col0 + - 56 + + col1 AS col2 FROM tab1 AS cor0
----
48
594
997

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-252
SELECT ALL - - col1 * col2 + 22 * - cor0.col2 + - col2 DIV col0 col1 FROM tab2 AS cor0
----
-190
240
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - - col1 * col2 + 22 * - cor0.col2 + - col2 / col0 col1 FROM tab2 AS cor0
----
-190
240
962

query I rowsort
SELECT DISTINCT col2 + col2 * ( 2 * col0 + + 8 ) FROM tab2 AS cor0
----
4290
621
6346

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

query I rowsort
SELECT - col0 * 10 - col0 * col1 * 17 FROM tab2
----
-23621
-3759
-79014

query I rowsort
SELECT + col0 - 60 AS col1 FROM tab1
----
-57
20
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col0 + 35 * 69 * col2 col0 FROM tab0 AS cor0
----
205328
2450
80487

onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT ALL - 50 * col0 DIV ( ( + col1 ) ) + + col1 * + col1 * cor0.col2 FROM tab2 AS cor0
----
10750
25936
90440

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL - 50 * col0 / ( ( + col1 ) ) + + col1 * + col1 * cor0.col2 FROM tab2 AS cor0
----
10750
25936
90440

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

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

query I rowsort
SELECT col2 - + 84 * col1 AS col1 FROM tab0 AS cor0
----
-7191
-7562
-8147

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

query I rowsort
SELECT - - col2 * 55 * col2 + - cor0.col0 FROM tab0 AS cor0
----
20
369731
59871

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

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

query I rowsort
SELECT ALL + col0 * + 53 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT DISTINCT col0 * 16 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT + col0 * + 91 AS col0 FROM tab2 AS cor0
----
637
7098
7189

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

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

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

query I rowsort
SELECT col1 + - 86 * - col2 AS col1 FROM tab2 AS cor0
----
2295
2353
3285

query I rowsort
SELECT ALL + ( + 84 ) FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-273
SELECT DISTINCT 36 * col0 + + col1 DIV ( + col0 ) AS col0 FROM tab1 AS cor0
----
116
2304
2880

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT 36 * col0 + + col1 / ( + col0 ) AS col0 FROM tab1 AS cor0
----
116
2304
2880

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-276
SELECT ALL col2 - - 34 DIV + ( col0 + col2 ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL col2 - - 34 / + ( col0 + col2 ) FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-277
SELECT + col0 DIV - col0 + col0 + - 15 AS col2 FROM tab0 AS cor0
----
19
73
8

skipif mysql # not compatible
query I rowsort label-277
SELECT + col0 / - col0 + col0 + - 15 AS col2 FROM tab0 AS cor0
----
19
73
8

query I rowsort
SELECT ALL - ( + 91 ) FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL - 99 * 48 + + col2 AS col1 FROM tab0 AS cor0
----
-4670
-4719
-4751

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

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

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

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

query I rowsort
SELECT + - 97 * + 47 - col1 AS col0 FROM tab0 AS cor0
----
-4645
-4650
-4656

query I rowsort
SELECT 3 - 72 FROM tab1 AS cor0
----
-69
-69
-69

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-286
SELECT col0 + 84 DIV col0 AS col0 FROM tab0
----
27
37
89

skipif mysql # not compatible
query I rowsort label-286
SELECT col0 + 84 / col0 AS col0 FROM tab0
----
27
37
89

query I rowsort
SELECT DISTINCT - col0 * ( col0 * + col0 ) - col2 FROM tab1
----
-262201
-512096
-81

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

query I rowsort
SELECT DISTINCT + 67 + col2 * col1 AS col2 FROM tab2
----
1601
713
904

query I rowsort
SELECT DISTINCT ( 74 * col2 ) + + col1 FROM tab1
----
4022
4228
7117

query I rowsort
SELECT ALL - 13 + - 20 AS col0 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT - ( - 90 ) + col2 FROM tab0 AS cor0
----
123
172
91

query I rowsort
SELECT DISTINCT + 69 * + 59 + col0 + 65 FROM tab0 AS cor0
----
4160
4171
4225

query I rowsort
SELECT - 11 - + col0 * col1 AS col1 FROM tab0 AS cor0
----
-2075
-3406
-8110

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

query I rowsort
SELECT - tab0.col2 * tab0.col1 * - col1 FROM tab0
----
244068
679042
9409

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

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

query I rowsort
SELECT ALL - 60 * + cor0.col0 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT + 55 - - col2 FROM tab0
----
137
56
88

query I rowsort
SELECT ALL + + col1 * ( - 42 ) * - col1 AS col2 FROM tab1 cor0
----
28392
4200
7098

query I rowsort
SELECT + col1 + + col1 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-127
-1910
-2968

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 24 col2 FROM tab2 AS cor0
----
-624
-648
-912

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

query I rowsort
SELECT + col2 + - 22 * - col2 FROM tab0
----
1886
23
759

query I rowsort
SELECT - col1 + col0 * col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT col2 + col2 DIV col1 AS col0 FROM tab2 cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-307
SELECT col2 + col2 / col1 AS col0 FROM tab2 cor0
----
26
27
40

query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) * col0 FROM tab0 AS cor0
----
1260
600
8010

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

query I rowsort
SELECT - - col1 + + ( 96 ) * - col1 FROM tab1 cor0
----
-1235
-2470
-950

query I rowsort
SELECT 18 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

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

query I rowsort
SELECT ALL + 9 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

query I rowsort
SELECT - col0 * - 59 FROM tab2 AS cor0
----
413
4602
4661

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

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

query I rowsort
SELECT DISTINCT - col2 * 65 AS col0 FROM tab2
----
-1690
-1755
-2470

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 + - col0 + - col2 ) >= col2 + col0 * - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-322
SELECT col2 - tab2.col2 DIV col0 AS col2 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-322
SELECT col2 - tab2.col2 / col0 AS col2 FROM tab2
----
24
26
38

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

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

query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 * + col2 * col1 AS col0 FROM tab0
----
-3492
-619983
-95718

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-328
SELECT ALL col2 DIV tab0.col1 + tab0.col1 + + col0 AS col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL col2 / tab0.col1 + tab0.col1 + + col0 AS col0 FROM tab0
----
110
132
180

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 + col2 + + col1 * + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ( - col1 + ( col2 ) ) AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + - 63 * col1 - + 45 AS col2 FROM tab0 AS cor0
----
-5463
-5778
-6156

query I rowsort
SELECT + - 50 * + cor0.col1 FROM tab2 AS cor0
----
-1550
-2950
-850

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

skipif mysql # not compatible
query I rowsort
SELECT - 14 * - tab1.col2 * + CAST ( - 99 AS REAL ) + - col1 FROM tab1
----
-133069
-74870
-79012

query I rowsort
SELECT - - col2 * col1 + + col1 * - col1 * - col1 FROM tab1 AS cor0
----
1570
18980
3445

query I rowsort
SELECT - 58 * - cor0.col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 667eea39aa587e9df76b394baee152c4

query I rowsort
SELECT + col1 + col0 * col0 * - col1 AS col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT - 60 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

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

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

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

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

query I rowsort
SELECT + col1 + 88 AS col2 FROM tab0 AS cor0
----
174
179
185

query I rowsort
SELECT DISTINCT - col1 + + ( 89 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
2255
2372
3365

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

query I rowsort
SELECT ALL - + col1 + ( + col2 ) * col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - col0 * cor0.col1 + - 60 AS col1 FROM tab0 AS cor0
----
-2124
-3455
-8159

query I rowsort
SELECT DISTINCT - col0 + 61 FROM tab2 cor0
----
-17
-18
54

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

query I rowsort
SELECT + - col0 * 5 AS col2 FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT + 27 * - col2 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT ALL - col0 * col1 + 2 * - 7 AS col1 FROM tab2 AS cor0
----
-1357
-231
-4616

query I rowsort
SELECT + 76 + + col2 AS col2 FROM tab2 AS cor0
----
102
103
114

query I rowsort
SELECT - - 93 * col0 AS col2 FROM tab2 cor0
----
651
7254
7347

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

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

query I rowsort
SELECT ALL 55 * col1 + cor0.col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1894
3937
5273

query I rowsort
SELECT ALL 96 - + col0 AS col1 FROM tab1
----
16
32
93

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + - col2 * col2 - + col1 * - col1 FROM tab1 AS cor0
----
-2240
-3149
-9047

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

query I rowsort
SELECT - col0 * cor0.col1 + - col2 + col2 * - col0 FROM tab0 AS cor0
----
-15479
-2889
-3431

query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL + col2 * + col2 * col1 - + col1 * col1 * - col0 FROM tab1
----
133328
38890
77844

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

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

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

query I rowsort
SELECT + col2 * + col2 + - col2 + - col0 AS col1 FROM tab1 AS cor0
----
2859
3128
9040

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 * col1 + cor0.col2 FROM tab1 cor0
----
-180
-40903
-83104

query I rowsort
SELECT - - col0 + cor0.col2 - - col0 * - col0 FROM tab0 cor0
----
-1189
-519
-7750

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

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

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

query I rowsort
SELECT ALL 69 * + 3 FROM tab1
----
207
207
207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-380
SELECT - CAST( + 1 AS SIGNED ) + + col0 AS col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-380
SELECT - CAST ( + 1 AS INTEGER ) + + col0 AS col0 FROM tab2
----
6
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT ALL + 84 DIV - 35 AS col1 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL + 84 / - 35 AS col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT cor0.col2 * + 95 * + col2 FROM tab0 AS cor0
----
103455
638780
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-383
SELECT + ( - ( - col2 ) ) * col2 + + col2 + + col1 DIV + cor0.col1 FROM tab1 cor0
----
2971
3307
9313

skipif mysql # not compatible
query I rowsort label-383
SELECT + ( - ( - col2 ) ) * col2 + + col2 + + col1 / + cor0.col1 FROM tab1 cor0
----
2971
3307
9313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 74 ) + col1 * col1 col2 FROM tab0
----
7470
8355
9483

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

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

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

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

query I rowsort
SELECT ALL + + 10 * col0 + col2 FROM tab1 AS cor0
----
697
84
896

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

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

query I rowsort
SELECT + + 46 * col2 AS col1 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT ALL col1 * + col0 + + col1 * col1 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT + 95 + col2 FROM tab0 AS cor0
----
128
177
96

query I rowsort
SELECT DISTINCT - col1 + - col1 * + col2 * col1 FROM tab0 AS cor0
----
-244154
-679133
-9506

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

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

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

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

query I rowsort
SELECT col0 + - cor0.col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + col1 / - col0 + - col2 * col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col2 FROM tab1 AS cor0 WHERE col0 + col2 * col0 NOT IN ( - col0 )
----
121
176
57

query I rowsort
SELECT ALL - col1 * + col1 - col2 * + col2 FROM tab2 cor0
----
-1690
-1733
-4157

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col0 AND - col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT - col0 * col0 + col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1093
-466
-7741

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

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

query I rowsort
SELECT + col0 / col1 + tab0.col0 AS col0 FROM tab0 WHERE + col1 = ( NULL )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN col0 AND col2 - col2
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-410
SELECT DISTINCT - col0 DIV - tab1.col2 - + col0 DIV + col1 AS col1 FROM tab1
----
-5
-6
0

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT - col0 / - tab1.col2 - + col0 / + col1 AS col1 FROM tab1
----
-5
-6
0

query I rowsort
SELECT + col2 + + col0 * - col0 FROM tab0
----
-1224
-543
-7839

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT DISTINCT - col0 + col1 DIV - col2 + col2 AS col0 FROM tab1
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - col0 + col1 / - col2 + col2 AS col0 FROM tab1
----
-7
16
51

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

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

query I rowsort
SELECT ALL - col1 * + col2 * col2 + col1 * + col2 AS col1 FROM tab1
----
-118560
-31920
-74412

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

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

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

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

query I rowsort
SELECT ( col2 ) + col2 * + 19 AS col1 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT DISTINCT 19 * ( + col1 ) AS col1 FROM tab0 cor0
----
1634
1729
1843

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

query I rowsort
SELECT DISTINCT + col1 + col1 + - col2 FROM tab0
----
100
139
193

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

skipif mysql # not compatible
query I rowsort label-434
SELECT - CAST ( - col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + ( - col1 ) + - 81 AS col0 FROM tab2 AS cor0
----
-112
-140
-98

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

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

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

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

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

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

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

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

query I rowsort
SELECT cor0.col0 + 29 AS col2 FROM tab1 cor0
----
109
32
93

query I rowsort
SELECT ( cor0.col1 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT col2 * col2 * + col2 FROM tab1
----
157464
185193
884736

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

skipif mysql # not compatible
query I rowsort label-446
SELECT - col1 * + CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 * 8 * - col0 AS col0 FROM tab2
----
-1512
-16224
-24016

onlyif mysql # use DIV operator for integer division
query I rowsort label-448
SELECT ALL - col0 DIV - 35 + + col1 FROM tab0
----
86
93
98

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - col0 / - 35 + + col1 FROM tab0
----
86
93
98

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

query I rowsort
SELECT cor0.col0 + + 72 * - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0d967814e98747dbc02aa8f5d0c991dd

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

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

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

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL - + col0 / - col0 AS col0 FROM tab0 cor0
----
1
1
1

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

query I rowsort
SELECT - col1 * 4 * - col2 AS col1 FROM tab0 AS cor0
----
11352
29848
388

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

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

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

query I rowsort
SELECT 61 * tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 944e13e700bbfbae37ac7d673c29b224

query I rowsort
SELECT 27 + col1 + col2 * 9 AS col2 FROM tab2
----
301
320
386

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-460
SELECT DISTINCT CAST( col1 AS SIGNED ) * - col1 - - ( 2 ) FROM tab2
----
-287
-3479
-959

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 - - ( 2 ) FROM tab2
----
-287
-3479
-959

query I rowsort
SELECT DISTINCT 7 * + col1 - + tab2.col1 FROM tab2
----
102
186
354

query I rowsort
SELECT ALL - 24 + - ( col0 ) FROM tab0 AS cor0
----
-113
-48
-59

query I rowsort
SELECT ALL - 76 * col2 * - col2 FROM tab0 AS cor0
----
511024
76
82764

query I rowsort
SELECT - 59 + col0 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
17
6051
6220

query I rowsort
SELECT - ( + cor0.col1 ) * + col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

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

query I rowsort
SELECT ALL + ( 21 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

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

query I rowsort
SELECT cor0.col0 * - col1 * cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
-119626
-50996
-5832

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

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

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

query I rowsort
SELECT + - col1 * 58 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT - 96 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

query I rowsort
SELECT ALL + - ( + col1 ) + cor0.col0 * - 24 FROM tab2 AS cor0
----
-1913
-1931
-199

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-476
SELECT col2 + col0 + - CAST( 77 AS SIGNED ) AS col0 FROM tab1
----
-20
44
99

skipif mysql # not compatible
query I rowsort label-476
SELECT col2 + col0 + - CAST ( 77 AS INTEGER ) AS col0 FROM tab1
----
-20
44
99

query I rowsort
SELECT DISTINCT + 58 * - col2 AS col2 FROM tab2
----
-1508
-1566
-2204

query I rowsort
SELECT + col0 - + col2 * 3 FROM tab1
----
-107
-159
-208

query I rowsort
SELECT col2 + - col0 + tab0.col1 AS col2 FROM tab0
----
63
84
95

query I rowsort
SELECT ( - col0 ) + - 99 - - col0 AS col2 FROM tab2
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT 17 * + 80 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c0a31d240083341b61789ac6fbd52909

query I rowsort
SELECT DISTINCT - 6 * - col2 AS col1 FROM tab0
----
198
492
6

query I rowsort
SELECT ALL - 33 * col0 AS col0 FROM tab2
----
-231
-2574
-2607

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

query I rowsort
SELECT col1 * ( + ( col2 ) * - col0 + col1 ) FROM tab1
----
-3536
-36380
-99671

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

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

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

query I rowsort
SELECT col2 * + ( + ( col2 ) * + 89 ) FROM tab1
----
259524
289161
820224

query I rowsort
SELECT 45 + 85 FROM tab2 cor0
----
130
130
130

query I rowsort
SELECT DISTINCT - 81 * - 63 AS col2 FROM tab1 AS cor0
----
5103

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

query I rowsort
SELECT ALL 20 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT + tab0.col2 + 11 FROM tab0, tab2 AS cor0
----
12
44
93

query I rowsort
SELECT ALL - col1 + + 92 FROM tab0
----
-5
1
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-496
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 81 + + col0 * cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
151
7468
897

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( + col0 AS REAL ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 * - 28 FROM tab2 AS cor0
----
1652
476
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-500
SELECT + - 25 + + 60 DIV - col2 col1 FROM tab1 AS cor0
----
-25
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-500
SELECT + - 25 + + 60 / - col2 col1 FROM tab1 AS cor0
----
-25
-26
-26

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

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

query I rowsort
SELECT - ( col0 + tab2.col1 ) * - col2 AS col2 FROM tab2
----
1026
3562
3648

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT ALL + 97 - - col1 DIV col0 FROM tab2 AS cor0
----
101
97
97

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL + 97 - - col1 / col0 FROM tab2 AS cor0
----
101
97
97

query I rowsort
SELECT + + col1 + + 60 * + col2 AS col0 FROM tab1 AS cor0
----
3266
3430
5773

query I rowsort
SELECT DISTINCT 7 AS col2 FROM tab2 AS cor0
----
7

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

query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab0
----
70

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

query I rowsort
SELECT - ( + 74 ) + - col0 AS col1 FROM tab1 AS cor0
----
-138
-154
-77

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

query I rowsort
SELECT 92 * - col0 AS col1 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT ALL + 14 * + col1 + 43 * 10 AS col2 FROM tab2 AS cor0
----
1256
668
864

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-520
SELECT - col2 + - col0 * + col0 DIV - col0 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-520
SELECT - col2 + - col0 * + col0 / - col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + col1 * + 84 + - ( + col0 ) + + ( ( + col1 ) ) * + col2 * + col2 FROM tab2 cor0
----
19988
23041
34850

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-523
SELECT ALL - - col2 DIV 51 + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - - col2 / 51 + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

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

skipif mysql # not compatible
query I rowsort label-524
SELECT - + cor0.col1 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96

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

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL col1 * CAST ( + col1 AS INTEGER ) - col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-528
SELECT ALL + col2 DIV - col0 + + col0 AS col2 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + col2 / - col0 + + col0 AS col2 FROM tab1 AS cor0
----
-15
64
79

query I rowsort
SELECT DISTINCT - ( - 6 ) FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
6

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

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

query I rowsort
SELECT col1 * 19 - - col0 * col1 FROM tab1 cor0
----
1287
572
830

query I rowsort
SELECT ALL - col0 + - 53 FROM tab1 AS cor0
----
-117
-133
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT + + col2 + 67 DIV cor0.col0 FROM tab2 AS cor0
----
26
36
38

skipif mysql # not compatible
query I rowsort label-533
SELECT + + col2 + 67 / cor0.col0 FROM tab2 AS cor0
----
26
36
38

query I rowsort
SELECT DISTINCT - col1 + + 65 FROM tab1 AS cor0
----
39
52
55

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

query I rowsort
SELECT - col2 - - 30 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1102
754
783

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 - 64 FROM tab0 AS cor0
----
22
27
33

query I rowsort
SELECT DISTINCT - + col2 - - 6 FROM tab2 AS cor0
----
-20
-21
-32

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

query I rowsort
SELECT ALL - 25 * ( - col0 * col2 ) + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
4759
50804
75167

query I rowsort
SELECT ALL + - col1 * - 67 AS col1 FROM tab2 AS cor0
----
1139
2077
3953

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

query I rowsort
SELECT - col1 + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-40
-55
45

query I rowsort
SELECT DISTINCT ( col0 ) + - col2 + 17 * 41 FROM tab0 AS cor0
----
688
704
731

query I rowsort
SELECT + 96 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

query I rowsort
SELECT DISTINCT - col1 + col2 * 67 * col2 AS col2 FROM tab0
----
-30
450417
72877

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-551
SELECT - cor0.col2 * + CAST( NULL AS DECIMAL ) - + 31 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-551
SELECT - cor0.col2 * + CAST ( NULL AS REAL ) - + 31 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT - + col2 + + col0 * + col0 - col2 AS col1 FROM tab1 cor0
----
-99
3982
6208

onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT col1 * + col2 * - col2 + - col1 DIV + col1 + col2 * - col2 col0 FROM tab2 AS cor0
----
-23329
-25993
-40561

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-554
SELECT col1 * + col2 * - col2 + - col1 / + col1 + col2 * - col2 col0 FROM tab2 AS cor0
----
-23329
-25993
-40561

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

query I rowsort
SELECT - - col2 * 84 FROM tab2 AS cor0
----
2184
2268
3192

query I rowsort
SELECT ( col1 + 20 ) * - col1 FROM tab1
----
-1196
-300
-429

query I rowsort
SELECT ALL + 48 * - col0 + + 76 * - 49 FROM tab0
----
-4876
-5404
-7996

query I rowsort
SELECT col0 + - 33 FROM tab1 AS cor0
----
-30
31
47

query I rowsort
SELECT DISTINCT 32 + col1 FROM tab0 AS cor0
----
118
123
129

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

query I rowsort
SELECT DISTINCT + - 20 + - col1 FROM tab1 cor0
----
-30
-33
-46

query I rowsort
SELECT + 16 * cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
1274
1302
139

query I rowsort
SELECT DISTINCT - ( col0 ) + col2 * - col1 * - col0 FROM tab1 cor0
----
36416
4209
99760

query I rowsort
SELECT DISTINCT + 19 * 1 AS col1 FROM tab2 AS cor0
----
19

query I rowsort
SELECT 69 * col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
104
2301
5747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + - col2 * + col1 col1 FROM tab0 AS cor0
----
-2805
-7380
-96

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

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

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

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

query I rowsort
SELECT DISTINCT - 13 + + col2 FROM tab1 AS cor0
----
41
44
83

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

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

query I rowsort
SELECT - 26 * + col2 FROM tab2 AS cor0
----
-676
-702
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT DISTINCT cor0.col0 * col1 DIV 68 - col2 AS col2 FROM tab2 AS cor0
----
-19
-24
41

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT cor0.col0 * col1 / 68 - col2 AS col2 FROM tab2 AS cor0
----
-19
-24
41

query I rowsort
SELECT DISTINCT 83 + col1 * col2 * col0 FROM tab1 AS cor0
----
36563
4295
99923

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + - col2 * + col2 col2 FROM tab0 cor0
----
-1051
-6686
37

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

query I rowsort
SELECT ALL + ( + col0 ) * col0 - col0 * - col1 AS col1 FROM tab2 AS cor0
----
10686
266
7584

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 * + 86 * col2 AS col2 FROM tab0 AS cor0
----
244068
641732
8342

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

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

query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - 40 + + col1 FROM tab1
----
-14
-27
-30

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

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

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

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

query I rowsort
SELECT cor0.col1 * - col1 * - col2 + - 84 AS col0 FROM tab1 AS cor0
----
16140
36420
5616

onlyif mysql # use DIV operator for integer division
query I rowsort label-591
SELECT DISTINCT col0 DIV 2 AS col0 FROM tab0
----
12
17
44

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT col0 / 2 AS col0 FROM tab0
----
12
17
44

query I rowsort
SELECT - col2 * col0 * col2 + - col2 FROM tab1 AS cor0
----
-207993
-737376
-8802

query I rowsort
SELECT DISTINCT - cor0.col1 + + 4 FROM tab1 AS cor0
----
-22
-6
-9

query I rowsort
SELECT ALL + - col2 * - 53 + + col2 - col0 AS col1 FROM tab2 AS cor0
----
1326
1451
1973

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

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

query I rowsort
SELECT col1 * 18 + col0 FROM tab1 AS cor0
----
244
314
471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( + col1 * col1 ) col0 FROM tab1 AS cor0
----
-110
-182
-702

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-601
SELECT + col0 / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 56 * col0 FROM tab1 AS cor0
----
-168
-3584
-4480

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

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

query I rowsort
SELECT ALL - + 75 * + 48 AS col0 FROM tab2 AS cor0
----
-3600
-3600
-3600

onlyif mysql # use DIV operator for integer division
query I rowsort label-605
SELECT + 61 DIV col1 AS col0 FROM tab1 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-605
SELECT + 61 / col1 AS col0 FROM tab1 AS cor0
----
2
4
6

query I rowsort
SELECT ALL + col2 + + col1 * 70 FROM tab2 AS cor0
----
1228
2197
4156

query I rowsort
SELECT + + 52 * + col1 + ( + cor0.col2 ) FROM tab0 cor0
----
4505
4814
5045

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

query I rowsort
SELECT ALL - - 74 * - col1 - 5 AS col2 FROM tab0 AS cor0
----
-6369
-6739
-7183

query I rowsort
SELECT ALL + 16 + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1359
233
4618

query I rowsort
SELECT 54 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT 16 * 60 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 44a577a2fcbc165428994cff634e0932

query I rowsort
SELECT - cor0.col0 * col1 + 51 AS col0 FROM tab0 AS cor0
----
-2013
-3344
-8048

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

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

query I rowsort
SELECT ALL cor0.col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + col0 - col1 * + 25 AS col1 FROM tab0 AS cor0
----
-2126
-2186
-2390

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

query I rowsort
SELECT + col1 * - col0 - 83 FROM tab0 AS cor0
----
-2147
-3478
-8182

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

query I rowsort
SELECT + 8 - col0 FROM tab1
----
-56
-72
5

query I rowsort
SELECT + 39 * col0 + 82 FROM tab1
----
199
2578
3202

query I rowsort
SELECT col2 * col2 + + ( ( + tab0.col2 ) ) FROM tab0
----
1122
2
6806

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

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

query I rowsort
SELECT DISTINCT - col2 + col0 + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2055
3429
8106

query I rowsort
SELECT + - col1 * + col1 + - col0 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-1171
-1553
-8005

query I rowsort
SELECT DISTINCT + col2 + 38 FROM tab1 cor0
----
134
92
95

query I rowsort
SELECT ALL col0 + + col0 * ( col0 ) FROM tab0
----
1260
600
8010

query I rowsort
SELECT 28 * + cor0.col1 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT ALL - col2 * - col1 + col1 * col1 AS col1 FROM tab0
----
10234
15743
9506

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-632
SELECT ALL + + col2 DIV + 5 AS col0 FROM tab2 AS cor0
----
5
5
7

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL + + col2 / + 5 AS col0 FROM tab2 AS cor0
----
5
5
7

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

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

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

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

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

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

query I rowsort
SELECT ALL 65 + 80 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 184dd874efc91366378cfe8644e8c122

query I rowsort
SELECT DISTINCT 96 + 89 FROM tab2, tab1 AS cor0
----
185

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

query I rowsort
SELECT - col2 * - 50 + - col1 AS col0 FROM tab2 cor0
----
1241
1319
1883

onlyif mysql # use DIV operator for integer division
query I rowsort label-642
SELECT + col0 + col0 DIV + col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
100
138
38

skipif mysql # not compatible
query I rowsort label-642
SELECT + col0 + col0 / + col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
100
138
38

query I rowsort
SELECT ALL - + cor0.col1 * 51 AS col1 FROM tab0 AS cor0
----
-4386
-4641
-4947

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col2 * 53 AS col2 FROM tab1 AS cor0
----
-2862
-3021
-5088

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

skipif mysql # not compatible
query I rowsort label-647
SELECT + CAST ( + col2 AS INTEGER ) + col0 AS col0 FROM tab2
----
104
117
34

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

query I rowsort
SELECT DISTINCT - col0 * 23 FROM tab1
----
-1472
-1840
-69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col0 + cor0.col2 col0 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT + 38 * col0 - 26 AS col0 FROM tab1 AS cor0
----
2406
3014
88

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

query I rowsort
SELECT 66 - + col1 FROM tab2 AS cor0
----
35
49
7

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

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

query I rowsort
SELECT 51 * col1 AS col0 FROM tab1 cor0
----
1326
510
663

query I rowsort
SELECT col2 * + ( + col1 ) + - col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT col2 + - ( 67 ) AS col2 FROM tab1
----
-10
-13
29

query I rowsort
SELECT ALL + col0 * 71 + 87 FROM tab0 AS cor0
----
1791
2572
6406

query I rowsort
SELECT ALL - 52 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # use DIV operator for integer division
query I rowsort label-661
SELECT ALL col0 * col0 DIV - tab0.col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL col0 * col0 / - tab0.col0 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-662
SELECT - CAST( col2 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-662
SELECT - CAST ( col2 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - - col0 * - 72 FROM tab1 AS cor0
----
-216
-4608
-5760

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

query I rowsort
SELECT + 10 + + col2 * - col0 FROM tab0 AS cor0
----
-25
-7288
-782

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

query I rowsort
SELECT - - 58 * col1 FROM tab2 AS cor0
----
1798
3422
986

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

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

query I rowsort
SELECT ALL + 87 AS col2 FROM tab2
----
87
87
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-670
SELECT ALL - col0 * col2 * + CAST( - col1 + - col2 AS SIGNED ) FROM tab0
----
1262554
3430
94248

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL - col0 * col2 * + CAST ( - col1 + - col2 AS INTEGER ) FROM tab0
----
1262554
3430
94248

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 57 + + col0 col0 FROM tab0 AS cor0
----
146
81
92

query I rowsort
SELECT - cor0.col2 * cor0.col1 * + ( - cor0.col0 ) + - cor0.col2 AS col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT DISTINCT + + 6 + + col2 * 83 AS col2 FROM tab0 AS cor0
----
2745
6812
89

query I rowsort
SELECT ALL - col1 * - col2 * 14 + 89 * col0 + + col1 FROM tab0 AS cor0
----
112480
41954
4570

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

query I rowsort
SELECT + col0 * col0 + col0 + - col0 * + col1 FROM tab1 AS cor0
----
-66
3520
5440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + 67 * col0 col1 FROM tab2 cor0
----
462
5148
5214

query I rowsort
SELECT + 6 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to b406364371011938300d901d81088d18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + 29 * col1 col2 FROM tab1 AS cor0
----
233
281
700

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

skipif mysql # not compatible
query I rowsort label-683
SELECT - CAST ( NULL AS INTEGER ) + 24 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + + col2 col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT + col2 + + ( + col2 ) DIV col1 AS col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-685
SELECT + col2 + + ( + col2 ) / col1 AS col2 FROM tab1
----
103
56
62

query I rowsort
SELECT + col0 + ( + 2 * + col0 ) + - col2 FROM tab0 AS cor0
----
104
185
39

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

query I rowsort
SELECT - col2 + + ( - 25 ) AS col1 FROM tab2 AS cor0
----
-51
-52
-63

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

query I rowsort
SELECT DISTINCT 86 * col0 + + col2 + col2 AS col2 FROM tab0 cor0
----
2130
3012
7818

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * + col1 - col0 col0 FROM tab1
----
16144
36501
5636

query I rowsort
SELECT DISTINCT + 88 * + cor0.col1 FROM tab1, tab0 AS cor0
----
7568
8008
8536

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

query I rowsort
SELECT ( - tab0.col1 ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

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

query I rowsort
SELECT + col0 + - col0 * 61 + 42 * col2 FROM tab0 cor0
----
-1896
-2058
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-699
SELECT + - 3 DIV + col1 + + col0 * + col2 + col2 DIV - col0 FROM tab2 cor0
----
186
2028
3002

skipif mysql # not compatible
query I rowsort label-699
SELECT + - 3 / + col1 + + col0 * + col2 + col2 / - col0 FROM tab2 cor0
----
186
2028
3002

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

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

query I rowsort
SELECT 47 * col1 AS col2 FROM tab1
----
1222
470
611

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT ALL 86 DIV + 40 + tab1.col0 FROM tab1
----
5
66
82

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 86 / + 40 + tab1.col0 FROM tab1
----
5
66
82

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

query I rowsort
SELECT 50 + cor0.col1 AS col1 FROM tab0 AS cor0
----
136
141
147

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col2 AS INTEGER ) * col2 + CAST ( 56 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1033
-6668
55

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

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

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

query I rowsort
SELECT ALL - 44 * - col1 * + col2 + - col0 FROM tab1 AS cor0
----
25016
54832
61773

query I rowsort
SELECT ALL - 70 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

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

query I rowsort
SELECT 13 + - col1 * col2 FROM tab1
----
-1235
-1391
-557

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

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

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

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

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

query I rowsort
SELECT ALL - + ( col1 ) + - 76 FROM tab0 AS cor0
----
-162
-167
-173

query I rowsort
SELECT col1 + + col1 * + 17 AS col0 FROM tab2 AS cor0
----
1062
306
558

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

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

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

query I rowsort
SELECT + col2 + + 16 + col2 FROM tab2
----
68
70
92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 89 col2 FROM tab0
----
-2937
-7298
-89

query I rowsort
SELECT - tab0.col0 * - col0 + 25 * - col2 + - col0 FROM tab0
----
-273
1165
5782

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

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

query I rowsort
SELECT ALL + col2 * + 74 + - col0 AS col0 FROM tab1 cor0
----
3993
4154
7024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * + cor0.col2 * cor0.col2 + 27 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 53442d51a1e77afa4f0d19b7c3b4d884

query I rowsort
SELECT ALL + + col2 * - 2 * col2 AS col2 FROM tab0 AS cor0
----
-13448
-2
-2178

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * + 87 AS col2 FROM tab1 AS cor0
----
261
5568
6960

query I rowsort
SELECT - 17 * 24 + col0 FROM tab1 cor0
----
-328
-344
-405

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

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

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

query I rowsort
SELECT DISTINCT ( + ( col2 ) ) * - col2 + - 53 * col2 * - col1 + + 5 FROM tab1 AS cor0
----
26966
56933
71501

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

query I rowsort
SELECT + col1 * - 10 FROM tab0
----
-860
-910
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 + col1 col0 FROM tab0 AS cor0
----
107
112
118

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

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

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

query I rowsort
SELECT + ( col2 ) * + col2 + + ( col0 * - col2 + - col1 ) AS col1 FROM tab1 AS cor0
----
-409
1523
2728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 34 ) * col0 + - col2 col0 FROM tab2 AS cor0
----
211
2626
2648

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + col1 col0 FROM tab2 AS cor0
----
109
67
81

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

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

query I rowsort
SELECT ( 1 ) * col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL ( - tab1.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

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

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

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - tab1.col0 * + tab1.col2 * - col0 AS col2 FROM tab1
----
233536
489
614480

query I rowsort
SELECT ALL 97 * + col2 + col0 FROM tab2
----
2600
2626
3765

query I rowsort
SELECT + col2 * col0 + 76 FROM tab1 AS cor0
----
238
3724
7756

query I rowsort
SELECT - + ( + cor0.col2 ) * + 86 + col1 AS col1 FROM tab0 AS cor0
----
-2752
-6961
11

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT DISTINCT + 42 DIV + 94 + col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + 42 / + 94 + col1 FROM tab2
----
17
31
59

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

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

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

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

query I rowsort
SELECT ALL - + col1 * - 48 - ( col2 ) AS col0 FROM tab1 AS cor0
----
1194
423
528

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

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

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

query I rowsort
SELECT DISTINCT col2 * ( col0 ) + cor0.col2 * + 22 * - col2 AS col1 FROM tab0 AS cor0
----
-140630
-23166
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT ALL - col0 DIV ( 70 ) + - col2 - - 24 AS col1 FROM tab1 AS cor0
----
-30
-33
-73

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL - col0 / ( 70 ) + - col2 - - 24 AS col1 FROM tab1 AS cor0
----
-30
-33
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT ALL 39 DIV col0 FROM tab1
----
0
0
13

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL 39 / col0 FROM tab1
----
0
0
13

query I rowsort
SELECT DISTINCT - - col2 * 45 AS col1 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT col0 * - 73 * 29 FROM tab2 AS cor0
----
-14819
-165126
-167243

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

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

query I rowsort
SELECT - - col2 + + 85 * col0 FROM tab2 AS cor0
----
622
6656
6753

query I rowsort
SELECT ALL - col0 * 74 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT + col2 * + 30 * - col1 AS col2 FROM tab1 cor0
----
-17100
-37440
-42120

query I rowsort
SELECT ALL + + col2 + 40 AS col0 FROM tab1 AS cor0
----
136
94
97

query I rowsort
SELECT + col0 * - col0 + 5 FROM tab1 AS cor0
----
-4
-4091
-6395

query I rowsort
SELECT - col2 * col0 * 31 + col0 AS col0 FROM tab1 AS cor0
----
-113024
-238000
-5019

query I rowsort
SELECT DISTINCT + 23 * + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1472
1840
69

query I rowsort
SELECT ALL - col2 - - 88 * col2 AS col1 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT + + 3 + - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1222
-573
-7918

query I rowsort
SELECT ALL - 53 + - col0 FROM tab2 AS cor0
----
-131
-132
-60

query I rowsort
SELECT DISTINCT + 56 + - col1 AS col0 FROM tab0 AS cor0
----
-30
-35
-41

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-787
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-787
SELECT CAST ( NULL AS REAL ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT DISTINCT 97 + - 44 FROM tab0
----
53

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT + col1 + + cor0.col1 DIV + col0 + col2 col1 FROM tab2 AS cor0
----
55
62
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + - col0 + - cor0.col0 col1 FROM tab0 AS cor0
----
7348
8103
9339

query I rowsort
SELECT - + 15 - - col2 * - ( 81 + + col0 ) AS col2 FROM tab0 AS cor0
----
-131
-13955
-3480

query I rowsort
SELECT tab1.col1 + 46 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1f0997b6d8b59a8b2d1402ab52d08b77

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

query I rowsort
SELECT + 60 + col2 * + col0 + + ( 66 ) FROM tab0
----
161
7424
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT + 49 * + col2 + ( - 95 ) DIV col0 + - col1 FROM tab2 cor0
----
1214
1279
1844

skipif mysql # not compatible
query I rowsort label-797
SELECT + 49 * + col2 + ( - 95 ) / col0 + - col1 FROM tab2 cor0
----
1214
1279
1844

query I rowsort
SELECT col2 + - col0 + - 91 FROM tab0 AS cor0
----
-125
-82
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-799
SELECT - col1 DIV col0 - + col2 * - col1 AS col2 FROM tab0 AS cor0
----
2835
7461
95

skipif mysql # not compatible
query I rowsort label-799
SELECT - col1 / col0 - + col2 * - col1 AS col2 FROM tab0 AS cor0
----
2835
7461
95

query I rowsort
SELECT 82 + - col0 FROM tab0 AS cor0
----
-7
47
58

query I rowsort
SELECT + 46 - - col2 FROM tab2 cor0
----
72
73
84

query I rowsort
SELECT - col0 + + col1 - col0 AS col2 FROM tab2
----
-141
-97
17

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

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

query I rowsort
SELECT 90 * - col2 AS col2 FROM tab2
----
-2340
-2430
-3420

query I rowsort
SELECT DISTINCT 60 + - tab2.col0 - col2 * - 7 FROM tab2
----
164
242
247

query I rowsort
SELECT DISTINCT col1 * tab0.col2 * ( col2 ) - + col1 AS col1 FROM tab0
----
0
611793
93568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 56 + - col2 col0 FROM tab2 AS cor0
----
1430
1485
2090

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

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col2 * 50 AS col0 FROM tab1 AS cor0
----
2700
2850
4800

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

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

query I rowsort
SELECT DISTINCT cor0.col2 + col1 * 9 FROM tab1 cor0
----
147
213
288

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + + col0 * + col0 FROM tab2 AS cor0
----
1010
6530
9565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + 52 col2 FROM tab1 AS cor0
----
156
3328
4160

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

query I rowsort
SELECT tab1.col0 + 68 FROM tab1
----
132
148
71

query I rowsort
SELECT + col1 - 21 AS col0 FROM tab1
----
-11
-8
5

query I rowsort
SELECT ALL + 49 + col2 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT ALL + 74 * - col1 * col1 AS col1 FROM tab0 cor0
----
-547304
-612794
-696266

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

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

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

query I rowsort
SELECT - 15 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 * 32 AS col1 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + col0 * + col0 * - col0 FROM tab0 AS cor0
----
-33466
-6428
-696688

query I rowsort
SELECT ALL + - 58 + + col1 AS col2 FROM tab2 AS cor0
----
-27
-41
1

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

query I rowsort
SELECT - ( 18 ) AS col2 FROM tab2 AS cor0
----
-18
-18
-18

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

query I rowsort
SELECT ALL + + 75 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT - 60 + col2 * - col2 FROM tab0 AS cor0
----
-1149
-61
-6784

onlyif mysql # use DIV operator for integer division
query I rowsort label-835
SELECT + col2 * 54 DIV + col0 + col2 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-6584
-929
97

skipif mysql # not compatible
query I rowsort label-835
SELECT + col2 * 54 / + col0 + col2 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-6584
-929
97

query I rowsort
SELECT DISTINCT - col2 - + col2 * tab1.col1 * col0 FROM tab1
----
-36537
-4266
-99936

query I rowsort
SELECT DISTINCT - 33 FROM tab1, tab2 cor0
----
-33

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT DISTINCT + 21 DIV + col0 FROM tab1 AS cor0
----
0
7

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + 21 / + col0 FROM tab1 AS cor0
----
0
7

query I rowsort
SELECT - col2 + + 49 AS col2 FROM tab2 AS cor0
----
11
22
23

query I rowsort
SELECT DISTINCT - col0 * col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT 31 + + col2 AS col2 FROM tab1
----
127
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col1 FROM tab0, tab1 cor0, tab2, tab1 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

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

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

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL ( - col2 ) * col0 / col2 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col0 * + col1 * col1 AS col2 FROM tab2 cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-852
SELECT ALL tab1.col2 * - col0 DIV col0 AS col0 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL tab1.col2 * - col0 / col0 AS col0 FROM tab1
----
-54
-57
-96

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-855
SELECT 64 DIV 94 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-855
SELECT 64 / 94 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-858
SELECT DISTINCT cor0.col2 DIV + 5 AS col2 FROM tab0 cor0
----
0
16
6

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT cor0.col2 / + 5 AS col2 FROM tab0 cor0
----
0
16
6

query I rowsort
SELECT + col2 + col0 * 79 * + col1 AS col0 FROM tab2 cor0
----
106135
17170
363584

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

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
-63

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

query I rowsort
SELECT - ( cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT 59 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

query I rowsort
SELECT DISTINCT - col0 * - col0 + 53 FROM tab0 AS cor0
----
1278
629
7974

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-868
SELECT ALL - cor0.col1 / - ( col1 ) col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col0 + 2 AS col0 FROM tab1 AS cor0
----
-1
-62
-78

query I rowsort
SELECT - 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL - + col2 + 94 * col2 AS col0 FROM tab2 AS cor0
----
2418
2511
3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT - col1 DIV 41 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-872
SELECT - col1 / 41 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT ( - 97 ) * - col0 AS col1 FROM tab2 AS cor0
----
679
7566
7663

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

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

query I rowsort
SELECT DISTINCT ( 32 ) + - cor0.col0 FROM tab0, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
-46
-47
25

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

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

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

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

query I rowsort
SELECT ALL + col2 * col0 + 98 * col0 AS col1 FROM tab2 AS cor0
----
10744
875
9672

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

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

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab2
----
10

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

query I rowsort
SELECT DISTINCT cor0.col1 + - col0 + + 86 FROM tab2 AS cor0
----
110
24
67

query I rowsort
SELECT + 88 + - col0 * 69 + + col2 FROM tab1 AS cor0
----
-4271
-5336
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT ALL col2 * + cor0.col2 + 68 * - col2 DIV - cor0.col2 AS col1 FROM tab1 cor0
----
2984
3317
9284

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL col2 * + cor0.col2 + 68 * - col2 / - cor0.col2 AS col1 FROM tab1 cor0
----
2984
3317
9284

query I rowsort
SELECT + col1 * 99 FROM tab2 cor0
----
1683
3069
5841

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

query I rowsort
SELECT ALL - 72 FROM tab2, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL - col2 + - col2 * col1 * - 1 - + tab0.col1 AS col2 FROM tab0
----
-1
2719
7289

query I rowsort
SELECT + col1 * col1 * + col1 + - ( 65 ) FROM tab1 AS cor0
----
17511
2132
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-893
SELECT - ( 96 ) DIV col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-893
SELECT - ( 96 ) / col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
53
56
95

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT + - 87 + cor0.col0 DIV + ( col1 ) + - cor0.col2 FROM tab1 cor0
----
-138
-141
-177

skipif mysql # not compatible
query I rowsort label-895
SELECT + - 87 + cor0.col0 / + ( col1 ) + - cor0.col2 FROM tab1 cor0
----
-138
-141
-177

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

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

query I rowsort
SELECT 24 * col2 FROM tab1
----
1296
1368
2304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 * + col2 + - col1 ) col0 FROM tab2
----
-1593
-663
-868

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

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

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

query I rowsort
SELECT DISTINCT 53 * col1 FROM tab0
----
4558
4823
5141

query I rowsort
SELECT ALL + col2 * 89 + - col1 AS col0 FROM tab0
----
-8
2851
7207

query I rowsort
SELECT DISTINCT 77 FROM tab2, tab2 AS cor0
----
77

query I rowsort
SELECT + col2 * + 27 AS col0 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT ALL - cor0.col1 * col0 * + col1 - col1 AS col2 FROM tab0 AS cor0
----
-177590
-329412
-737100

query I rowsort
SELECT DISTINCT - - ( + col1 ) FROM tab0 cor0
----
86
91
97

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

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

query I rowsort
SELECT ALL + col2 * 96 AS col0 FROM tab1 AS cor0
----
5184
5472
9216

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

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

query I rowsort
SELECT DISTINCT + + col2 * - col0 * col0 + - col1 FROM tab1 AS cor0
----
-233482
-512
-614413

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

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

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

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

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

query I rowsort
SELECT col0 - col2 * 42 FROM tab1
----
-2265
-2330
-3952

query I rowsort
SELECT ALL 35 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

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

query I rowsort
SELECT tab1.col1 - 41 AS col2 FROM tab1
----
-15
-28
-31

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

query I rowsort
SELECT + - 67 * + cor0.col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 * - ( col0 * - cor0.col1 ) col1 FROM tab2 AS cor0
----
-25517
-4123
-87438

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

query I rowsort
SELECT - - ( ( col1 ) ) - 90 AS col0 FROM tab1 AS cor0
----
-64
-77
-80

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

query I rowsort
SELECT 47 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

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

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

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

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

query I rowsort
SELECT + 25 FROM tab1, tab1 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT - col0 * ( col1 + + col0 ) AS col0 FROM tab0
----
-16020
-2640
-4620

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + 12 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
108
49152
76800

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-939
SELECT ALL + col2 + CAST( col1 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-251
-3455
-934

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL + col2 + CAST ( col1 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-251
-3455
-934

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

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

query I rowsort
SELECT ALL + col0 + col1 * ( 70 ) * col0 FROM tab1 AS cor0
----
44864
5463
72880

query I rowsort
SELECT DISTINCT col2 + + col0 + ( + col2 ) * + cor0.col0 FROM tab2 AS cor0
----
2132
223
3119

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 84 + col0 + col0 * + col2 col0 FROM tab0 AS cor0
----
154
7471
900

query I rowsort
SELECT DISTINCT 32 + cor0.col1 FROM tab0 AS cor0
----
118
123
129

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 + - col1 * cor0.col0 * + 22 FROM tab0 AS cor0
----
-178260
-45441
-74691

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + col1 * + cor0.col0 * 9 - - col1 AS col0 FROM tab2 AS cor0
----
12121
2015
41536

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

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

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

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

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

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

query I rowsort
SELECT 21 * 88 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 3cab8dc3be452a065bad543f16d6f764

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * - ( - 62 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
1488
2170
5518

query I rowsort
SELECT DISTINCT ( 45 * col0 ) FROM tab0
----
1080
1575
4005

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 49 AS col1 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT + - 71 + 27 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - col2 + + 32 AS col0 FROM tab2
----
-6
5
6

query I rowsort
SELECT ALL - + 12 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT 70 * tab0.col2 FROM tab0
----
2310
5740
70

query I rowsort
SELECT ALL - 45 + + 3 * + col1 FROM tab0 cor0
----
213
228
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 54 * - col1 col2 FROM tab2 AS cor0
----
1674
3186
918

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

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

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

query I rowsort
SELECT ALL col2 * + col2 + tab2.col1 + tab2.col1 FROM tab2
----
1478
791
794

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

query I rowsort
SELECT col0 + + cor0.col0 * 63 FROM tab1 AS cor0
----
192
4096
5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT ALL - col1 DIV - ( - 81 * - col2 ) + ( + 83 + + col0 ) AS col2 FROM tab0 AS cor0
----
107
119
172

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - col1 / - ( - 81 * - col2 ) + ( + 83 + + col0 ) AS col2 FROM tab0 AS cor0
----
107
119
172

query I rowsort
SELECT ALL + col0 * - ( 48 ) + - col2 AS col1 FROM tab2 AS cor0
----
-363
-3770
-3830

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

query I rowsort
SELECT + - col0 + 70 AS col0 FROM tab1 AS cor0
----
-10
6
67

query I rowsort
SELECT + col2 + + 29 FROM tab2 cor0
----
55
56
67

query I rowsort
SELECT + - col1 * 45 + col2 AS col2 FROM tab1 AS cor0
----
-1116
-393
-489

query I rowsort
SELECT + col1 + + 94 AS col2 FROM tab0 AS cor0
----
180
185
191

onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT DISTINCT + ( + 57 ) DIV + col1 + col1 AS col1 FROM tab2 AS cor0
----
20
32
59

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT + ( + 57 ) / + col1 + col1 AS col1 FROM tab2 AS cor0
----
20
32
59

query I rowsort
SELECT ALL col0 + 64 AS col2 FROM tab0 AS cor0
----
153
88
99

query I rowsort
SELECT - col2 * 25 FROM tab0 cor0
----
-2050
-25
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-985
SELECT DISTINCT + - CAST( cor0.col0 AS SIGNED ) + col0 * - ( - col1 + - col2 ) * - ( 38 ) AS col2 FROM tab2 AS cor0
----
-15435
-165189
-252018

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT + - CAST ( cor0.col0 AS INTEGER ) + col0 * - ( - col1 + - col2 ) * - ( 38 ) AS col2 FROM tab2 AS cor0
----
-15435
-165189
-252018

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

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

query I rowsort
SELECT DISTINCT - col0 + + 32 FROM tab0
----
-3
-57
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-989
SELECT - 29 DIV 84 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-989
SELECT - 29 / 84 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 11 * - ( col0 ) + col1 FROM tab1 AS cor0
----
-694
-7
-867

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-992
SELECT + - CAST( ( - col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-992
SELECT + - CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59

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

query I rowsort
SELECT ALL tab2.col1 * 61 FROM tab2, tab1 AS cor0
----
9 values hashing to 0a1bcafa8a31ea774636888486510ed4

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

query I rowsort
SELECT - col2 + + tab1.col2 - - 46 AS col2 FROM tab1
----
46
46
46

query I rowsort
SELECT col2 + 99 AS col0 FROM tab2
----
125
126
137

query I rowsort
SELECT DISTINCT col0 * + tab0.col0 - + 3 AS col1 FROM tab0
----
1222
573
7918

query I rowsort
SELECT - col2 * + 2 + ( cor0.col2 * col2 ) + - col2 FROM tab0 AS cor0
----
-2
6478
990

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

query I rowsort
SELECT - col0 + + 52 * + col2 FROM tab1 cor0
----
2805
2900
4912

onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT cor0.col2 - col0 DIV cor0.col1 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-1002
SELECT cor0.col2 - col0 / cor0.col1 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 26 FROM tab0, tab2 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col1 * - col0 - + col1 col0 FROM tab1 AS cor0
----
-13533
-2054
-6410

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

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

query I rowsort
SELECT 13 + - col0 AS col1 FROM tab1 AS cor0
----
-51
-67
10

query I rowsort
SELECT - 43 * + col0 FROM tab2 AS cor0
----
-301
-3354
-3397

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

query I rowsort
SELECT - ( + col2 ) * col1 * + 90 AS col0 FROM tab1 AS cor0
----
-112320
-126360
-51300

query I rowsort
SELECT ( + 23 ) AS col2 FROM tab0
----
23
23
23

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + - 80 col1 FROM tab0 AS cor0
----
1984
3315
8019

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT DISTINCT 65 DIV col1 FROM tab1 AS cor0
----
2
5
6

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT 65 / col1 FROM tab1 AS cor0
----
2
5
6

query I rowsort
SELECT + 61 * col2 + + cor0.col0 FROM tab0 AS cor0
----
2037
5091
96

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + 43 * col2 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT - 80 + + col2 * 71 AS col2 FROM tab1 cor0
----
3754
3967
6736

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1021
SELECT col2 DIV - 4 col0 FROM tab0 AS cor0
----
-20
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1021
SELECT col2 / - 4 col0 FROM tab0 AS cor0
----
-20
-8
0

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

query I rowsort
SELECT ALL - - cor0.col0 * 99 FROM tab2 AS cor0
----
693
7722
7821

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

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

query I rowsort
SELECT DISTINCT - col0 * + 10 AS col2 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT ALL col1 * 96 * col2 + - col2 + - 75 FROM tab1 AS cor0
----
119637
134655
54588

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

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

query I rowsort
SELECT DISTINCT + 11 * + col0 + - col1 AS col2 FROM tab1 AS cor0
----
694
7
867

query I rowsort
SELECT DISTINCT - - ( 94 ) AS col0 FROM tab2 AS cor0
----
94

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

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

query I rowsort
SELECT ALL + col2 * - ( + 4 + col1 ) FROM tab0
----
-101
-2970
-7790

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

query I rowsort
SELECT DISTINCT col1 + col2 - + col2 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT 29 + + 88 FROM tab1
----
117

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

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

query I rowsort
SELECT col1 + - 12 * col2 AS col2 FROM tab1
----
-1139
-622
-674

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 DISTINCT col1 * ( - col0 ) * + col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL 31 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT DISTINCT col1 * - 17 FROM tab0
----
-1462
-1547
-1649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1042
SELECT ALL - col1 + - CAST( + 89 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-175
-180
-186

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - col1 + - CAST ( + 89 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-175
-180
-186

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT cor0.col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 58 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

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

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

query I rowsort
SELECT DISTINCT + + 48 * col0 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT ALL - 63 + col0 - + col2 FROM tab0 AS cor0
----
-29
-56
-72

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1052
SELECT + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

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

query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 40 * - col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT + 25 * ( col2 + cor0.col1 * 76 ) AS col0 FROM tab0 AS cor0
----
164225
174950
184325

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 85 * col1 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT - + col0 * - cor0.col0 - - ( - 67 ) AS col0 FROM tab1 AS cor0
----
-58
4029
6333

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

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

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - 7 / col2 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col1 + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT DISTINCT + col2 + + col2 * + ( + 80 ) AS col2 FROM tab0
----
2673
6642
81

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * + col1 - 26 AS col1 FROM tab1 AS cor0
----
-126
-195
-702

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + + 74 * - 12 FROM tab1 AS cor0
----
-726
2760
6792

query I rowsort
SELECT + col2 * 46 * 72 FROM tab0 AS cor0
----
109296
271584
3312

query I rowsort
SELECT col1 * + cor0.col2 + 67 FROM tab2 AS cor0
----
1601
713
904

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

query I rowsort
SELECT + col0 * + 63 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT ALL + 72 * 80 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d7f8837e8c04f70161546847f3f955aa

query I rowsort
SELECT DISTINCT + + col1 * 6 AS col2 FROM tab2 AS cor0
----
102
186
354

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT + col0 + - col2 DIV - col0 + + col2 * - 65 FROM tab1 AS cor0
----
-3489
-3641
-6159

skipif mysql # not compatible
query I rowsort label-1079
SELECT + col0 + - col2 / - col0 + + col2 * - 65 FROM tab1 AS cor0
----
-3489
-3641
-6159

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

query I rowsort
SELECT ALL col0 * + 95 + - col1 * col0 AS col0 FROM tab2 cor0
----
2808
448
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT DISTINCT + col2 DIV tab0.col2 + CAST( - col2 AS SIGNED ) * col1 AS col0 FROM tab0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT + col2 / tab0.col2 + CAST ( - col2 AS INTEGER ) * col1 AS col0 FROM tab0
----
-2837
-7461
-96

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

query I rowsort
SELECT - + col2 - - 5 * 95 FROM tab0 AS cor0
----
393
442
474

query I rowsort
SELECT col1 - - 68 FROM tab0 AS cor0
----
154
159
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 40 col2 FROM tab2 AS cor0
----
-19
23
9

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

query I rowsort
SELECT ALL 50 * ( tab0.col1 ) * + col0 AS col0 FROM tab0
----
103200
169750
404950

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

query I rowsort
SELECT ALL - + ( - col0 ) * - 76 + cor0.col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT - col2 + - col2 * + 99 FROM tab2 AS cor0
----
-2600
-2700
-3800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT 11 DIV col2 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1092
SELECT 11 / col2 col0 FROM tab1
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1094
SELECT DISTINCT - tab1.col1 DIV - col0 + col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - tab1.col1 / - col0 + col2 FROM tab1
----
57
62
96

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

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

query I rowsort
SELECT - 55 * col2 AS col0 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT ALL col2 * col2 + - col1 * col2 FROM tab1
----
1512
2679
7968

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

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

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

query I rowsort
SELECT ALL + col0 + tab2.col2 AS col2 FROM tab2 WHERE - col2 NOT BETWEEN ( col0 ) AND ( - col2 )
----
104
117
34

query I rowsort
SELECT 95 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT + 86 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) > col0
----

query I rowsort
SELECT - col2 * - col1 + col1 * - tab2.col2 FROM tab2
----
0
0
0

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

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

query III rowsort
SELECT * FROM tab0 WHERE tab0.col2 BETWEEN ( NULL ) AND NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1113
SELECT ALL - col1 DIV col0 + - col2 * col0 FROM tab1
----
-170
-3648
-7680

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - col1 / col0 + - col2 * col0 FROM tab1
----
-170
-3648
-7680

query I rowsort
SELECT DISTINCT tab2.col0 * - col0 * tab2.col2 AS col0 FROM tab2
----
-1323
-158184
-237158

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + - col0 < col0 / - col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * + col2 * + col1 col0 FROM tab0
----
3430
664207
68136

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

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

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE ( NULL ) IN ( col2 - col0 / col0 )
----

query I rowsort
SELECT DISTINCT + tab1.col2 - col1 * col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - col1 * + col2 * tab0.col2 FROM tab0 WHERE NOT col0 * col0 IN ( - col1 / + col1 )
----
-611884
-93654
-97

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

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

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

query I rowsort
SELECT ALL 96 + - tab1.col1 AS col2 FROM tab1
----
70
83
86

query I rowsort
SELECT ALL 71 + + col2 * col2 + - ( col0 * col1 ) FROM tab1
----
2680
2909
8247

query I rowsort
SELECT ALL col0 * ( tab0.col0 ) + + 35 AS col2 FROM tab0
----
1260
611
7956

onlyif mysql # use DIV operator for integer division
query I rowsort label-1130
SELECT DISTINCT + 62 DIV + col0 + col2 AS col1 FROM tab2 AS cor0
----
26
35
38

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT + 62 / + col0 + col2 AS col1 FROM tab2 AS cor0
----
26
35
38

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

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

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

query I rowsort
SELECT 6 + - col1 * col2 FROM tab2 AS cor0
----
-1528
-640
-831

query I rowsort
SELECT - col2 + - 31 FROM tab1 AS cor0
----
-127
-85
-88

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

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

query I rowsort
SELECT ALL - col0 * col0 + - col1 + + 70 AS col1 FROM tab2 cor0
----
-10
-6073
-6188

query I rowsort
SELECT ALL - 84 + - col2 FROM tab0 AS cor0
----
-117
-166
-85

query I rowsort
SELECT DISTINCT + + 53 + col1 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT cor0.col1 + cor0.col1 * + ( - 51 + col2 ) AS col0 FROM tab2 AS cor0
----
-1416
-204
-713

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

query I rowsort
SELECT + 32 - - 19 AS col0 FROM tab2
----
51
51
51

query I rowsort
SELECT + col0 * + col1 + - col2 * 38 FROM tab2 cor0
----
-101
-809
3614

query I rowsort
SELECT - 15 * col2 + + col0 * col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
1175
57
6602

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

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

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

query I rowsort
SELECT + col1 + - 55 FROM tab0 cor0
----
31
36
42

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

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

query I rowsort
SELECT DISTINCT col0 * - col0 + + 43 * col2 FROM tab0 AS cor0
----
-1182
-4395
843

onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT DISTINCT - - col2 + 85 DIV col2 AS col2 FROM tab0 AS cor0
----
35
83
86

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - - col2 + 85 / col2 AS col2 FROM tab0 AS cor0
----
35
83
86

query I rowsort
SELECT col1 - 87 AS col1 FROM tab1 AS cor0
----
-61
-74
-77

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + - CAST ( 50 * col0 AS REAL ) AS col0 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT - + col1 * + 99 + 13 AS col1 FROM tab0 AS cor0
----
-8501
-8996
-9590

query I rowsort
SELECT col0 * 29 - cor0.col0 FROM tab0 AS cor0
----
2492
672
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 - - col1 col1 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT col0 DIV 11 FROM tab2
----
0
7
7

skipif mysql # not compatible
query I rowsort label-1157
SELECT col0 / 11 FROM tab2
----
0
7
7

query I rowsort
SELECT DISTINCT + + 90 - 42 AS col2 FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col2 + col1 * - ( - col0 * - 73 ) AS col1 FROM tab0 cor0
----
-151761
-247836
-597951

query I rowsort
SELECT ALL col0 * - col2 - 28 FROM tab0
----
-63
-7326
-820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1161
SELECT ALL + col2 * + CAST( 59 AS SIGNED ) - - col1 AS col2 FROM tab1
----
3212
3373
5677

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + col2 * + CAST ( 59 AS INTEGER ) - - col1 AS col2 FROM tab1
----
3212
3373
5677

onlyif mysql # use DIV operator for integer division
query I rowsort label-1162
SELECT DISTINCT CAST( ( + col0 ) AS SIGNED ) * tab0.col1 + col0 DIV col1 AS col2 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT CAST ( ( + col0 ) AS INTEGER ) * tab0.col1 + col0 / col1 AS col2 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * - 10 + - col0 col1 FROM tab1
----
-683
-744
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 col0 FROM tab2
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1165
SELECT + 73 DIV col1 + - col2 + col1 AS col0 FROM tab1
----
-26
-40
-78

skipif mysql # not compatible
query I rowsort label-1165
SELECT + 73 / col1 + - col2 + col1 AS col0 FROM tab1
----
-26
-40
-78

query I rowsort
SELECT - 76 * + cor0.col0 + col1 + + col2 * col0 FROM tab0 AS cor0
----
-2528
-946
625

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

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

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL - CAST ( NULL AS REAL ) + col2 + tab2.col0 / col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 27 AS col1 FROM tab0
----
27
27
27

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

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

query I rowsort
SELECT DISTINCT - 89 * cor0.col1 FROM tab0 AS cor0
----
-7654
-8099
-8633

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT DISTINCT + ( - col0 ) + - col2 * col0 DIV col2 FROM tab0 AS cor0
----
-178
-48
-70

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT + ( - col0 ) + - col2 * col0 / col2 FROM tab0 AS cor0
----
-178
-48
-70

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL - - cor0.col1 / - col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col2 * 21 AS col1 FROM tab2 AS cor0
----
546
567
798

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1186
SELECT cor0.col1 + 11 DIV col0 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1186
SELECT cor0.col1 + 11 / col0 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - ( 63 ) * col0 + col2 FROM tab0 AS cor0
----
-1479
-2204
-5525

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

query I rowsort
SELECT DISTINCT 8 * col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT DISTINCT - - 43 * - 15 AS col0 FROM tab0 cor0
----
-645

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT + 93 + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7489
8374
9502

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

query I rowsort
SELECT - 28 * - col1 + col0 FROM tab2 AS cor0
----
1730
555
875

query I rowsort
SELECT - 41 * col0 + cor0.col1 * col2 + + col0 * - cor0.col0 FROM tab1 AS cor0
----
-6150
-8432
1272

query I rowsort
SELECT col2 + - 7 * tab2.col1 - + col1 * + col2 FROM tab2
----
-1027
-1921
-727

query I rowsort
SELECT ALL + col1 + col0 - - ( col2 ) FROM tab1
----
131
189
83

query I rowsort
SELECT - col1 * - cor0.col1 + col1 + col2 * + col1 FROM tab2 cor0
----
1829
5074
952

query I rowsort
SELECT ALL + + 80 * - col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

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

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

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

query I rowsort
SELECT cor0.col1 + col0 - + col0 FROM tab1 AS cor0
----
10
13
26

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

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

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

query I rowsort
SELECT col2 * + col1 + - col0 - + cor0.col1 FROM tab1 AS cor0
----
1155
1375
496

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT ALL - tab1.col2 + - col0 + + col2 DIV + col0 FROM tab1
----
-121
-175
-39

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL - tab1.col2 + - col0 + + col2 / + col0 FROM tab1
----
-121
-175
-39

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + tab0.col1 col1 FROM tab0
----
119
173
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 IN ( + col1 ) OR NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

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

query I rowsort
SELECT + tab0.col2 - tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 92ef426526338653e88acd4aba639c47

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1216
SELECT - - cor0.col1 + - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-21
33
4

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

query I rowsort
SELECT cor0.col0 + 25 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
2139
60
849

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

skipif mysql # not compatible
query I rowsort label-1218
SELECT + - col0 * - CAST ( 84 AS INTEGER ) FROM tab1 AS cor0
----
252
5376
6720

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

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

query I rowsort
SELECT + - col0 * + col0 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1226
-14645
-1665

query I rowsort
SELECT DISTINCT - col2 + - col2 * 72 * + col1 AS col2 FROM tab0 AS cor0
----
-204369
-537346
-6985

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT ALL + col2 DIV - col0 + col2 * col1 * + col0 FROM tab2 AS cor0
----
119652
51034
5856

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL + col2 / - col0 + col2 * col1 * + col0 FROM tab2 AS cor0
----
119652
51034
5856

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT + - col1 + CAST ( col1 + col2 AS INTEGER ) * - cor0.col2 AS col0 FROM tab0 cor0
----
-14277
-195
-4013

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

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

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

query I rowsort
SELECT ALL + col0 * col0 * + col0 AS col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT - cor0.col2 + - 68 * 89 FROM tab2 AS cor0
----
-6078
-6079
-6090

query I rowsort
SELECT col1 + 90 FROM tab2 AS cor0
----
107
121
149

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 + + col2 * col0 col0 FROM tab2 AS cor0
----
2075
236
3049

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

query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT - 13 AS col2 FROM tab0 cor0
----
-13
-13
-13

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

query I rowsort
SELECT ALL + 67 + col1 FROM tab1 AS cor0
----
77
80
93

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

query I rowsort
SELECT 44 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT 33 / col2 AS col2 FROM tab1
----
0
0
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1244
SELECT + col0 + col2 DIV - 32 col0 FROM tab2 AS cor0
----
7
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1244
SELECT + col0 + col2 / - 32 col0 FROM tab2 AS cor0
----
7
78
78

query I rowsort
SELECT DISTINCT 50 - - col0 AS col2 FROM tab0
----
139
74
85

query I rowsort
SELECT col0 * - col1 * + col2 + - col2 * - col2 + col0 FROM tab2
----
-118898
-49511
-5123

query I rowsort
SELECT - col0 + - tab2.col2 + - 57 FROM tab2
----
-161
-174
-91

query I rowsort
SELECT + 42 + col1 AS col0 FROM tab2
----
101
59
73

query I rowsort
SELECT ALL col1 * - 49 + col1 AS col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-1250
SELECT - tab2.col2 DIV col1 AS col2 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT - tab2.col2 / col1 AS col2 FROM tab2
----
-2
0
0

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

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

query I rowsort
SELECT - col1 - 4 FROM tab2
----
-21
-35
-63

query I rowsort
SELECT col0 + ( 97 ) AS col2 FROM tab0 AS cor0
----
121
132
186

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

skipif mysql # not compatible
query I rowsort label-1255
SELECT + cor0.col1 / col0 + cor0.col2 FROM tab1 AS cor0
----
57
62
96

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

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

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

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

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

query I rowsort
SELECT 52 * - cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 76171c9b19f267521c183d98cd130edb

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

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

query I rowsort
SELECT DISTINCT - ( + 55 ) * - cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
1705
3245
935

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

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

query I rowsort
SELECT ALL + 9 * - col2 FROM tab1
----
-486
-513
-864

query I rowsort
SELECT - 36 + + col1 * + cor0.col1 FROM tab0 cor0
----
7360
8245
9373

query I rowsort
SELECT ALL + + 16 * cor0.col0 AS col2 FROM tab1 cor0
----
1024
1280
48

query I rowsort
SELECT ALL - - 43 * + col2 - 42 AS col0 FROM tab1 AS cor0
----
2280
2409
4086

query I rowsort
SELECT DISTINCT + - 4 AS col2 FROM tab2 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * col0 col2 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT ALL + - 62 * - col1 * 81 AS col0 FROM tab1 AS cor0
----
130572
50220
65286

query I rowsort
SELECT DISTINCT + 39 * col0 AS col1 FROM tab0 AS cor0
----
1365
3471
936

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

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

query I rowsort
SELECT - 75 * - col2 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT ALL col2 * col1 + - 90 FROM tab1
----
1158
1314
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT + - col0 + col2 DIV col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - col0 + col2 / col2 FROM tab0 AS cor0
----
-23
-34
-88

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

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

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT - 12 + - cor0.col0 / - col2 FROM tab0 cor0
----
-11
-12
23

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

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

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

query I rowsort
SELECT - col2 * col0 + col2 - + ( ( col0 ) ) * col1 * col1 FROM tab0 AS cor0
----
-178263
-329349
-744225

onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT - col2 DIV + ( col1 ) + col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-1282
SELECT - col2 / + ( col1 ) + col0 FROM tab2 AS cor0
----
7
77
78

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

query I rowsort
SELECT DISTINCT col1 * + col1 + + cor0.col0 * - 72 AS col1 FROM tab0 AS cor0
----
1873
5668
6889

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

query I rowsort
SELECT + - cor0.col0 * - 54 + col1 AS col2 FROM tab0 AS cor0
----
1382
1987
4897

query I rowsort
SELECT - 91 - col0 * + col2 FROM tab2 AS cor0
----
-2119
-280
-3093

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1289
SELECT - + 86 * col2 DIV + col1 + col0 FROM tab0 AS cor0
----
-9
12
35

skipif mysql # not compatible
query I rowsort label-1289
SELECT - + 86 * col2 / + col1 + col0 FROM tab0 AS cor0
----
-9
12
35

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

query I rowsort
SELECT - + 33 * - cor0.col0 + 73 * 38 * - col1 FROM tab0 AS cor0
----
-237772
-249497
-267923

query I rowsort
SELECT ALL + 98 + + col0 * col2 AS col0 FROM tab2
----
2126
287
3100

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 71 - col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

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

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

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

query I rowsort
SELECT - 61 + - 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 77c3d2047f1ee5e234978774b15ce98a

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

query I rowsort
SELECT DISTINCT + 74 * + 80 AS col0 FROM tab0, tab0 AS cor0
----
5920

query I rowsort
SELECT ALL col1 * col0 + 13 AS col0 FROM tab2 AS cor0
----
1356
230
4615

query I rowsort
SELECT DISTINCT - col2 * ( + col0 * + col0 ) AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL + cor0.col1 * ( col0 ) + col0 + 91 * + col1 FROM tab1 AS cor0
----
1614
2303
2447

query I rowsort
SELECT DISTINCT + col1 - - 66 AS col2 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT DISTINCT + cor0.col0 + 3 FROM tab1 AS cor0
----
6
67
83

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * col1 col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

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

query I rowsort
SELECT - 79 + cor0.col2 FROM tab0 AS cor0
----
-46
-78
3

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

query I rowsort
SELECT 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

query I rowsort
SELECT + col1 * col2 + + 9 FROM tab0 AS cor0
----
106
2847
7471

query I rowsort
SELECT + tab0.col0 * - col0 + 68 FROM tab0
----
-1157
-508
-7853

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

skipif mysql # not compatible
query I rowsort label-1320
SELECT col2 / - cor0.col2 FROM tab0 cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-1321
SELECT + cor0.col2 + col2 / - col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT + + 77 * + col1 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT ( col0 ) + ( + col1 + col2 ) FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL - col0 + col0 * - 59 FROM tab0 AS cor0
----
-1440
-2100
-5340

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1328
SELECT + col1 + + CAST( 60 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
146
151
157

skipif mysql # not compatible
query I rowsort label-1328
SELECT + col1 + + CAST ( 60 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
146
151
157

query I rowsort
SELECT ( col2 * col2 + - tab2.col2 ) FROM tab2
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT + 64 DIV + col1 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1330
SELECT + 64 / + col1 FROM tab2 AS cor0
----
1
2
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1331
SELECT - + col1 * ( cor0.col2 ) * cor0.col2 - - 43 * - cor0.col2 * CAST ( col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-127088
-153634
-30726

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

query I rowsort
SELECT + ( 28 ) + col0 FROM tab2 AS cor0
----
106
107
35

query I rowsort
SELECT DISTINCT - 35 + - col1 FROM tab2 AS cor0
----
-52
-66
-94

query I rowsort
SELECT - - 87 + - col2 FROM tab1 AS cor0
----
-9
30
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1336
SELECT - col1 + + col2 * - CAST( - 69 + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1069
275
3538

skipif mysql # not compatible
query I rowsort label-1336
SELECT - col1 + + col2 * - CAST ( - 69 + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1069
275
3538

query I rowsort
SELECT ALL + 33 * + col2 * col1 FROM tab2 AS cor0
----
21318
27621
50622

query I rowsort
SELECT DISTINCT 20 * col0 AS col0 FROM tab1 AS cor0
----
1280
1600
60

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

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

query I rowsort
SELECT col1 * 34 FROM tab0
----
2924
3094
3298

skipif mysql # not compatible
query I rowsort
SELECT - ( cor0.col1 ) / col2 + + CAST ( col0 AS REAL ) * col0 AS col0 FROM tab0 cor0
----
1128
574
7920

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

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

query I rowsort
SELECT col2 - 91 AS col2 FROM tab2 AS cor0
----
-53
-64
-65

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

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

query I rowsort
SELECT + 93 * - cor0.col1 * + col0 + - col1 FROM tab0 cor0
----
-192038
-315832
-753298

query I rowsort
SELECT 22 AS col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT ALL + 88 + - tab2.col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to ac074e3cd57a570d8216b11bf4105a81

query I rowsort
SELECT ALL + col2 * ( cor0.col2 ) + + 16 + col2 FROM tab1 AS cor0
----
2986
3322
9328

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

query I rowsort
SELECT + ( - 44 ) + + cor1.col0 FROM tab1, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 49707bc635de501fd5ddb3828543732b

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL + - 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 - col1 * + tab1.col1 col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + col1 + 27 + col0 FROM tab1
----
101
120
56

query I rowsort
SELECT - col1 + + 52 FROM tab2
----
-7
21
35

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab0
----
98

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

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

query I rowsort
SELECT DISTINCT 20 * - col2 * col0 - 5 AS col0 FROM tab2
----
-3785
-40565
-60045

query I rowsort
SELECT ALL col0 - - ( + col0 ) * + 1 AS col1 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

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

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

query I rowsort
SELECT - col2 + - 77 AS col1 FROM tab2 AS cor0
----
-103
-104
-115

query I rowsort
SELECT + - col0 * + cor0.col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT tab0.col1 * col0 * col2 + col1 AS col0 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT - col0 - + col2 * 65 FROM tab0
----
-100
-2169
-5419

query I rowsort
SELECT ALL cor0.col0 * ( - col0 ) + + cor0.col1 FROM tab2 AS cor0
----
-18
-6025
-6224

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

query I rowsort
SELECT DISTINCT + col0 * col0 + cor0.col2 + col2 FROM tab0 AS cor0
----
1227
642
8085

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

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

query I rowsort
SELECT DISTINCT 8 * + tab1.col1 AS col0 FROM tab1
----
104
208
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

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

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

skipif mysql # not compatible
query I rowsort label-1380
SELECT ( + col1 ) + + col1 / col0 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL 5 * 32 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 657a59eb2ad19b061a701df88105c303

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * - 82 col0 FROM tab0 AS cor0
----
-2682
-47
-6635

query I rowsort
SELECT + 12 * - col1 AS col1 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT DISTINCT - + 98 FROM tab0 cor0
----
-98

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

query I rowsort
SELECT + cor0.col0 + col0 * col0 * + col2 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT - + cor0.col2 * - 51 AS col1 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT + col0 * - 89 AS col2 FROM tab2 AS cor0
----
-623
-6942
-7031

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col1 + col0 col0 FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-1392
SELECT DISTINCT + col0 DIV + tab1.col1 col0 FROM tab1
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT + col0 / + tab1.col1 col0 FROM tab1
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * + col0 col1 FROM tab1
----
177
3776
4720

query I rowsort
SELECT DISTINCT cor0.col2 + tab1.col1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
9 values hashing to b8b62762005dc0d7237145d0538edb34

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

query I rowsort
SELECT 67 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1107
145
707

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

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

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

query I rowsort
SELECT ALL + col2 - + ( + col2 ) * + 59 AS col1 FROM tab0 AS cor0
----
-1914
-4756
-58

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 28 AS REAL ) FROM tab2 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + 58 + + col2 col2 FROM tab2 AS cor0
----
162
175
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1402
SELECT ALL + 88 DIV + cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL + 88 / + cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 56 * + 6 - - tab2.col0 col1 FROM tab2
----
-10409
-19746
-5633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1404
SELECT ALL CAST( + col2 AS SIGNED ) + col0 + col2 AS col1 FROM tab1 AS cor0
----
111
178
272

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL CAST ( + col2 AS INTEGER ) + col0 + col2 AS col1 FROM tab1 AS cor0
----
111
178
272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1405
SELECT DISTINCT + - CAST( col1 AS SIGNED ) + cor0.col1 * col0 AS col1 FROM tab2 cor0
----
1326
186
4543

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) + cor0.col1 * col0 AS col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT ALL - - 4 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1530
-642
-833

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1408
SELECT ALL + - cor0.col2 DIV col0 - - col0 AS col2 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + - cor0.col2 / col0 - - col0 AS col2 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT + col1 * - 5 AS col1 FROM tab0 AS cor0
----
-430
-455
-485

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

query I rowsort
SELECT + 77 + col0 FROM tab1 cor0
----
141
157
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1412
SELECT - 92 / col2 + col0 col1 FROM tab1 cor0
----
2
63
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1413
SELECT CAST( col0 AS SIGNED ) * tab0.col2 AS col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1413
SELECT CAST ( col0 AS INTEGER ) * tab0.col2 AS col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) FROM tab0
----
1
33
82

query I rowsort
SELECT ALL ( 32 ) AS col1 FROM tab0
----
32
32
32

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT + CAST ( + cor0.col0 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + col1 + - cor0.col1 * + ( - 48 ) FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT 47 * col0 + - col0 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT ALL + col1 * - col0 + + 57 AS col2 FROM tab1 AS cor0
----
-21
-583
-983

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

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT + - col1 - CAST ( + col1 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - col2 + - col2 + - ( + col2 ) * ( col1 * + col2 ) AS col0 FROM tab0 cor0
----
-612048
-93720
-99

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

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

query I rowsort
SELECT + + col0 + - col0 * + 17 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
-130467
-2725
-61942

query I rowsort
SELECT ALL + - 95 AS col0 FROM tab0 AS cor0
----
-95
-95
-95

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

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

query I rowsort
SELECT DISTINCT 80 + 93 - + col1 * + cor0.col1 * col2 FROM tab2 AS cor0
----
-10809
-25774
-90333

onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT col1 * ( col0 ) DIV - CAST( - 39 AS SIGNED ) + col1 * - CAST( - 54 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
-153200
-402741
-5151

skipif mysql # not compatible
query I rowsort label-1431
SELECT col1 * ( col0 ) / - CAST ( - 39 AS INTEGER ) + col1 * - CAST ( - 54 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
-153200
-402741
-5151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1432
SELECT - CAST( col0 AS SIGNED ) * col0 AS col2 FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-1432
SELECT - CAST ( col0 AS INTEGER ) * col0 AS col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + col1 + col2 + col0 AS col1 FROM tab2 AS cor0
----
134
163
65

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1437
SELECT ALL + col1 DIV col1 - col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL + col1 / col1 - col0 FROM tab2
----
-6
-77
-78

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT - col2 >= + col0 / col0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1439
SELECT col2 + - col0 * + col0 DIV - col0 + - col2 col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1439
SELECT col2 + - col0 * + col0 / - col0 + - col2 col0 FROM tab2
----
7
78
79

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

query I rowsort
SELECT - col2 + + col2 + col1 FROM tab0
----
86
91
97

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

query I rowsort
SELECT ALL - col1 + + col2 + col0 FROM tab1
----
111
163
31

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col0 * - col2 + + col1 FROM tab0
----
159
2132
255

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

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

query I rowsort
SELECT DISTINCT + col0 + col2 * col0 + col1 FROM tab2
----
2165
227
3098

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1449
SELECT DISTINCT col1 DIV tab2.col0 + + col2 + col1 AS col1 FROM tab2
----
55
62
85

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT col1 / tab2.col0 + + col2 + col1 AS col1 FROM tab2
----
55
62
85

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1453
SELECT ALL + tab0.col0 DIV col1 + tab0.col2 + tab0.col1 AS col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL + tab0.col0 / col1 + tab0.col2 + tab0.col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - tab2.col0 * - col0 * - tab2.col2 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT tab1.col1 DIV - col0 + + col0 col1 FROM tab1
----
-5
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1455
SELECT tab1.col1 / - col0 + + col0 col1 FROM tab1
----
-5
64
80

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

query I rowsort
SELECT tab2.col1 * col1 FROM tab2 WHERE + col0 + col2 NOT IN ( col0 + - col1 )
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1458
SELECT tab0.col1 DIV - tab0.col2 + tab0.col0 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-1458
SELECT tab0.col1 / - tab0.col2 + tab0.col0 FROM tab0
----
-62
22
88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 WHERE NOT col1 + - col1 <= ( col2 )
----

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

query I rowsort
SELECT DISTINCT tab2.col0 + + col2 + col1 * col0 AS col2 FROM tab2
----
1460
251
4706

query I rowsort
SELECT DISTINCT col2 * + col2 * tab1.col2 AS col1 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT + col1 + tab1.col0 FROM tab1 WHERE NOT ( + col2 ) BETWEEN ( NULL ) AND ( col0 + + col1 - col0 * col2 * col0 )
----
29
74
93

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 / + col1 >= - col1 * - col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( - col1 + + col0 * + col1 + col1 * col0 * col1 )
----

query I rowsort
SELECT - col1 * + tab1.col1 * - col2 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-1469
SELECT + col0 DIV tab0.col1 + 79 * col1 FROM tab0
----
6794
7189
7663

skipif mysql # not compatible
query I rowsort label-1469
SELECT + col0 / tab0.col1 + 79 * col1 FROM tab0
----
6794
7189
7663

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

query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 * + 13 AS col2 FROM tab2 cor0
----
-12493
-3757
-45253

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

query I rowsort
SELECT DISTINCT cor0.col0 * 75 * + col2 FROM tab0 AS cor0
----
2625
547350
59400

query I rowsort
SELECT ALL + col1 + + 5 FROM tab1 cor0
----
15
18
31

query I rowsort
SELECT DISTINCT + - cor0.col2 * + 29 * col1 FROM tab0 AS cor0
----
-216398
-2813
-82302

onlyif mysql # use DIV operator for integer division
query I rowsort label-1476
SELECT + + col0 * col2 DIV - 19 + - col0 + col0 AS col1 FROM tab0 AS cor0
----
-1
-384
-41

skipif mysql # not compatible
query I rowsort label-1476
SELECT + + col0 * col2 / - 19 + - col0 + col0 AS col1 FROM tab0 AS cor0
----
-1
-384
-41

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * ( 86 + col2 ) col1 FROM tab1 AS cor0
----
-14560
-420
-9152

onlyif mysql # use DIV operator for integer division
query I rowsort label-1479
SELECT DISTINCT col2 + col2 DIV col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT col2 + col2 / col1 FROM tab2 AS cor0
----
26
27
40

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT - col2 + 31 DIV + col0 FROM tab1 AS cor0
----
-44
-57
-96

skipif mysql # not compatible
query I rowsort label-1482
SELECT - col2 + 31 / + col0 FROM tab1 AS cor0
----
-44
-57
-96

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1485
SELECT ALL + - cor0.col1 * col2 + 22 DIV ( col1 ) + ( 88 ) FROM tab2 AS cor0
----
-1446
-557
-749

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + - cor0.col1 * col2 + 22 / ( col1 ) + ( 88 ) FROM tab2 AS cor0
----
-1446
-557
-749

query I rowsort
SELECT DISTINCT - ( 37 ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-37

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

query I rowsort
SELECT ALL + col2 * - col1 + col1 + col0 FROM tab0
----
-2728
-7282
35

query I rowsort
SELECT DISTINCT - col2 * col1 * 88 + - col1 * col2 AS col2 FROM tab2 cor0
----
-136526
-57494
-74493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 + + cor0.col0 col2 FROM tab0 cor0
----
147
82
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1491
SELECT + col0 DIV - col2 + - 98 FROM tab1 AS cor0
----
-98
-98
-99

skipif mysql # not compatible
query I rowsort label-1491
SELECT + col0 / - col2 + - 98 FROM tab1 AS cor0
----
-98
-98
-99

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

query I rowsort
SELECT ALL - 80 * - col0 FROM tab2 AS cor0
----
560
6240
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1494
SELECT DISTINCT + col0 * - col1 + col2 * 8 DIV col0 FROM tab2
----
-1340
-187
-4600

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT + col0 * - col1 + col2 * 8 / col0 FROM tab2
----
-1340
-187
-4600

onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT DISTINCT 74 + - col0 DIV - col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT 74 + - col0 / - col0 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 32 col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT ALL col1 + - col0 * + col0 + + col1 * + col2 * col2 FROM tab1 AS cor0
----
113421
28404
75833

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

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

query I rowsort
SELECT ALL - cor0.col1 * 68 * - 37 FROM tab2 AS cor0
----
148444
42772
77996

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + col1 * + col1 + 10 * + col2 * + col1 col0 FROM tab0
----
10397
35794
82919

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

query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab2, tab2 AS cor0
----
66

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

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

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

skipif mysql # not compatible
query I rowsort label-1506
SELECT - CAST ( - 79 AS INTEGER ) FROM tab0
----
79
79
79

query I rowsort
SELECT DISTINCT ( - tab1.col2 ) * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
3
64
80

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

skipif mysql # not compatible
query I rowsort label-1509
SELECT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + tab0.col1 * - col0 col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 + col1 + + ( + col0 ) AS col2 FROM tab1
----
138
173
32

query I rowsort
SELECT + 66 + cor0.col1 + col1 * + col0 FROM tab0 AS cor0
----
2216
3558
8256

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

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

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

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

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

query I rowsort
SELECT - col0 * - 28 + - col1 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-104
-1866
-5453

query I rowsort
SELECT col2 * 98 * - col2 + col1 AS col0 FROM tab2 cor0
----
-141495
-66189
-71411

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

skipif mysql # not compatible
query I rowsort label-1519
SELECT - col0 / - col0 + + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1520
SELECT col0 + CAST( 91 AS SIGNED ) AS col2 FROM tab2 cor0
----
169
170
98

skipif mysql # not compatible
query I rowsort label-1520
SELECT col0 + CAST ( 91 AS INTEGER ) AS col2 FROM tab2 cor0
----
169
170
98

query I rowsort
SELECT DISTINCT 79 * + col1 + - col1 FROM tab2
----
1326
2418
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 + tab0.col1 col1 FROM tab0
----
120
125
131

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT DISTINCT col1 DIV + col0 - col2 FROM tab0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT col1 / + col0 - col2 FROM tab0
----
-30
-81
1

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1528
SELECT - col0 + col2 DIV col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-1528
SELECT - col0 + col2 / col2 FROM tab0 AS cor0
----
-23
-34
-88

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

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

query I rowsort
SELECT - 51 FROM tab1 cor0
----
-51
-51
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1532
SELECT - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1532
SELECT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79

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

skipif mysql # not compatible
query I rowsort label-1533
SELECT CAST ( - 81 AS INTEGER ) FROM tab2
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab2
----
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT + cor0.col1 + + cor0.col2 DIV + col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1535
SELECT + cor0.col1 + + cor0.col2 / + col0 FROM tab1 AS cor0
----
10
14
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1536
SELECT 68 * col0 DIV col2 FROM tab0
----
2380
49
73

skipif mysql # not compatible
query I rowsort label-1536
SELECT 68 * col0 / col2 FROM tab0
----
2380
49
73

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

query I rowsort
SELECT - 22 * - col2 * col2 FROM tab1 AS cor0
----
202752
64152
71478

query I rowsort
SELECT ALL + - col1 * - col0 * col2 - ( - col1 + + 20 ) FROM tab2 AS cor0
----
119691
51031
5870

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT + col2 / cor0.col1 col1 FROM tab2 AS cor0
----
0
2

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

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

query I rowsort
SELECT DISTINCT col0 + 51 * - col0 AS col0 FROM tab0 AS cor0
----
-1200
-1750
-4450

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab1, tab1 AS cor0
----
-6

query I rowsort
SELECT - 82 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1553
SELECT ALL - 75 DIV col0 AS col2 FROM tab2 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - 75 / col0 AS col2 FROM tab2 AS cor0
----
-10
0
0

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

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

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

query I rowsort
SELECT ALL - cor0.col1 * 76 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT DISTINCT - - ( ( cor0.col2 ) ) + 14 * 54 FROM tab0 AS cor0
----
757
789
838

query I rowsort
SELECT DISTINCT 23 + 20 FROM tab1
----
43

query I rowsort
SELECT + 35 FROM tab0, tab1 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + ( 43 ) - col1 FROM tab2
----
-16
12
26

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

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

query I rowsort
SELECT 34 + - tab1.col0 * col1 AS col2 FROM tab1
----
-1006
-44
-606

onlyif mysql # use DIV operator for integer division
query I rowsort label-1564
SELECT + ( col1 ) DIV + tab0.col1 + - 93 * + col0 AS col0 FROM tab0
----
-2231
-3254
-8276

skipif mysql # not compatible
query I rowsort label-1564
SELECT + ( col1 ) / + tab0.col1 + - 93 * + col0 AS col0 FROM tab0
----
-2231
-3254
-8276

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

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

query I rowsort
SELECT 16 + + col1 AS col2 FROM tab1 AS cor0
----
26
29
42

query I rowsort
SELECT DISTINCT - ( - 93 ) * col0 * - cor0.col2 FROM tab0 AS cor0
----
-3255
-678714
-73656

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

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

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

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

query I rowsort
SELECT - 40 * col0 + - col0 FROM tab0
----
-1435
-3649
-984

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

query I rowsort
SELECT DISTINCT - col1 * col1 * 72 FROM tab2 AS cor0
----
-20808
-250632
-69192

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * cor0.col2 col1 FROM tab1 AS cor0
----
-1458
-1539
-2592

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - 44 * col2 AS col2 FROM tab1 AS cor0
----
-2376
-2508
-4224

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

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

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

query I rowsort
SELECT DISTINCT col0 + 88 FROM tab1
----
152
168
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 63 * - col2 col2 FROM tab1 AS cor0
----
-35910
-78624
-88452

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

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

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

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

query I rowsort
SELECT + 8 * 96 + + col1 + + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
788
794
820

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

skipif mysql # not compatible
query I rowsort label-1589
SELECT col0 + col1 * - col2 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT 82 + col2 * + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-113994
-5021
-52646

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT DISTINCT + + col0 DIV - 41 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT + + col0 / - 41 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT - - col0 * 15 * col0 + col2 DIV ( - col2 ) AS col1 FROM tab0 AS cor0
----
118814
18374
8639

skipif mysql # not compatible
query I rowsort label-1593
SELECT - - col0 * 15 * col0 + col2 / ( - col2 ) AS col1 FROM tab0 AS cor0
----
118814
18374
8639

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

query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab1 cor0
----
54
57
96

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

skipif mysql # not compatible
query I rowsort label-1596
SELECT + - CAST ( - cor0.col1 AS INTEGER ) + col1 / + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT - 47 * - col0 AS col1 FROM tab1 AS cor0
----
141
3008
3760

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

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

query I rowsort
SELECT - ( col1 ) + - cor0.col1 + - col2 FROM tab1 AS cor0
----
-106
-122
-77

query I rowsort
SELECT DISTINCT 63 * - ( col1 ) + cor0.col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-1601
SELECT + - col1 * - 64 + - cor0.col2 DIV + col1 col2 FROM tab0 AS cor0
----
5504
5824
6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1601
SELECT + - col1 * - 64 + - cor0.col2 / + col1 col2 FROM tab0 AS cor0
----
5504
5824
6208

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

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

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

query I rowsort
SELECT - ( 75 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT col1 - 11 FROM tab2 AS cor0
----
20
48
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT - - col1 * CAST( 66 AS SIGNED ) FROM tab0 cor0
----
5676
6006
6402

skipif mysql # not compatible
query I rowsort label-1607
SELECT - - col1 * CAST ( 66 AS INTEGER ) FROM tab0 cor0
----
5676
6006
6402

query I rowsort
SELECT - 16 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT + col2 + - 34 FROM tab2 AS cor0
----
-7
-8
4

query I rowsort
SELECT - col1 * ( + 21 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1161
-278
-644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 * col2 * + col1 + 69 * cor0.col0 col0 FROM tab2 cor0
----
-25457
-5452
-85046

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

query I rowsort
SELECT + col2 * col2 * - cor0.col1 + + col1 FROM tab2 AS cor0
----
-22568
-24531
-39825

onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT ( col2 ) DIV + col1 + 13 * 54 AS col2 FROM tab1
----
704
707
709

skipif mysql # not compatible
query I rowsort label-1614
SELECT ( col2 ) / + col1 + 13 * 54 AS col2 FROM tab1
----
704
707
709

query I rowsort
SELECT DISTINCT + col2 * 40 FROM tab2
----
1040
1080
1520

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1616
SELECT CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ( + 27 ) FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT 42 + cor0.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 947fb738ed8834f1090269d49ec37794

query I rowsort
SELECT ALL 92 * col2 AS col2 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT 62 * col0 + + col1 FROM tab2
----
465
4895
4915

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

query I rowsort
SELECT DISTINCT 87 + + col2 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT + ( + col1 ) - 74 FROM tab1 cor0
----
-48
-61
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-1626
SELECT ALL + col1 DIV col0 + col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL + col1 / col0 + col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL + 56 * + col0 - ( - col1 ) AS col1 FROM tab2 cor0
----
423
4427
4441

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * + 6 FROM tab2 AS cor0
----
155
295
85

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

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

query I rowsort
SELECT DISTINCT + 44 * - col1 FROM tab1 AS cor0
----
-1144
-440
-572

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT ALL + col2 + col0 DIV col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL + col2 + col0 / col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT - col0 * - col0 - - col2 * 40 AS col0 FROM tab2 cor0
----
1129
7124
7761

query I rowsort
SELECT ALL - 48 + - col2 * ( - col0 ) * - col2 AS col0 FROM tab0 AS cor0
----
-26184
-598484
-83

query I rowsort
SELECT - col0 - + col1 * - ( 10 ) FROM tab0 AS cor0
----
821
836
935

query I rowsort
SELECT DISTINCT - ( tab0.col1 ) * - tab0.col1 AS col2 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT + + 71 * col1 DIV cor0.col0 FROM tab0 cor0
----
196
254
72

skipif mysql # not compatible
query I rowsort label-1636
SELECT + + 71 * col1 / cor0.col0 FROM tab0 cor0
----
196
254
72

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1638
SELECT col0 - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-1638
SELECT col0 - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col2 + ( - 64 ) AS col0 FROM tab1 cor0
----
-10
-7
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT cor0.col1 * cor0.col1 DIV col1 + col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-1640
SELECT cor0.col1 * cor0.col1 / col1 + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - - col0 * + 77 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col0 * col1 FROM tab0 AS cor0
----
-1375
-3394
-975

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + + tab2.col0 + tab2.col2 * + col0 col1 FROM tab2
----
2132
223
3119

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

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

query I rowsort
SELECT + 46 * + col0 FROM tab2 AS cor0
----
322
3588
3634

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - CAST ( NULL AS INTEGER ) + 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 * col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT 53 * - col2 * col1 + col1 AS col1 FROM tab1 AS cor0
----
-30200
-66131
-74386

onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT col0 * 45 + + cor0.col2 DIV + CAST( col2 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
1167
1673
4097

skipif mysql # not compatible
query I rowsort label-1651
SELECT col0 * 45 + + cor0.col2 / + CAST ( col2 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
1167
1673
4097

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1652
SELECT + ( - col2 ) + + col0 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1652
SELECT + ( - col2 ) + + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col1 + col0 AS col1 FROM tab0 AS cor0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-1654
SELECT - col0 + col0 DIV - 68 FROM tab2 cor0
----
-7
-79
-80

skipif mysql # not compatible
query I rowsort label-1654
SELECT - col0 + col0 / - 68 FROM tab2 cor0
----
-7
-79
-80

query I rowsort
SELECT - - ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 20 + col0 AS col0 FROM tab1
----
100
23
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT col1 + 60 DIV 44 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1657
SELECT col1 + 60 / 44 AS col2 FROM tab1
----
11
14
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1658
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) + - 76 * tab0.col0 * ( - 88 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) + - 76 * tab0.col0 * ( - 88 ) FROM tab0
----
NULL

query I rowsort
SELECT col2 - - 22 FROM tab2
----
48
49
60

query I rowsort
SELECT DISTINCT col2 + - ( col0 ) AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT tab1.col2 * - 24 + col0 * col0 AS col2 FROM tab1
----
-1287
2728
4096

query I rowsort
SELECT ALL - 16 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to bfbdbe6262d4256fbee3d7f2f3b1db1b

query I rowsort
SELECT + col0 * cor0.col2 + col2 * - col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT col2 * - cor0.col2 + - col2 * - col2 * col0 FROM tab0 AS cor0
----
25047
34
591712

query I rowsort
SELECT - col2 + - 35 FROM tab2 cor0
----
-61
-62
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 72 * - col2 col0 FROM tab2 AS cor0
----
-1872
-1944
-2736

query I rowsort
SELECT - col1 * + 92 AS col0 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT DISTINCT + - col1 + + 89 FROM tab0 cor0
----
-2
-8
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1670
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1670
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col1 ) col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 * + 93 * col1 AS col2 FROM tab1 AS cor0
----
-59520
-7254
-96720

onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT DISTINCT - - 86 DIV col1 + + col0 col2 FROM tab1 AS cor0
----
6
72
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT - - 86 / col1 + + col0 col2 FROM tab1 AS cor0
----
6
72
86

query I rowsort
SELECT + col1 * 86 AS col2 FROM tab0 AS cor0
----
7396
7826
8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + 4 col1 FROM tab2 AS cor0
----
-22
-23
-34

query I rowsort
SELECT + 67 * + col2 FROM tab1 AS cor0
----
3618
3819
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT ALL + col0 + - col1 DIV - 41 AS col1 FROM tab0 cor0
----
26
37
91

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + col0 + - col1 / - 41 AS col1 FROM tab0 cor0
----
26
37
91

query I rowsort
SELECT ALL + 10 - col1 * + ( + ( - col1 ) + 72 ) AS col0 FROM tab2 AS cor0
----
-1261
-757
-925

query I rowsort
SELECT col1 * col0 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + - 7 * col1 + 81 AS col1 FROM tab0 AS cor0
----
-521
-556
-598

query I rowsort
SELECT ALL + + col0 * + cor0.col2 + 18 * + 57 * - col0 FROM tab0 AS cor0
----
-23832
-35875
-84016

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - - 22 AS col0 FROM tab0 cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT + col2 DIV col0 + col2 AS col1 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-1684
SELECT + col2 / col0 + col2 AS col1 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT ALL - + col0 * cor0.col1 * 30 AS col1 FROM tab1 AS cor0
----
-19200
-2340
-31200

query I rowsort
SELECT 47 + + cor0.col0 FROM tab0 AS cor0
----
136
71
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 66 * col1 col1 FROM tab0 AS cor0
----
5676
6006
6402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - 32 col0 FROM tab1 AS cor0
----
377
512
886

query I rowsort
SELECT + col0 * 66 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT cor0.col1 + 73 FROM tab1 AS cor0
----
83
86
99

query I rowsort
SELECT ALL col2 * 53 * + col0 + col1 FROM tab1 AS cor0
----
193354
407053
8612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1692
SELECT cor0.col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1692
SELECT cor0.col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * + 43 - + cor0.col1 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT DISTINCT cor0.col2 - + col0 * - col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT DISTINCT - col2 * 91 + col2 AS col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT ALL + + col0 * 19 * col2 FROM tab1 AS cor0
----
145920
3078
69312

query I rowsort
SELECT + col0 + + ( col1 ) * col1 * + col0 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT + + col0 * + ( + 67 ) FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT ALL + col2 + + 31 * col1 AS col1 FROM tab2 AS cor0
----
1855
565
988

query I rowsort
SELECT DISTINCT + cor0.col2 * 11 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT DISTINCT + col2 * + 6 * - col0 FROM tab0 AS cor0
----
-210
-43788
-4752

query I rowsort
SELECT ALL + cor0.col1 * col2 + ( + col0 ) AS col1 FROM tab0 cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1703
SELECT DISTINCT - + cor0.col1 * + CAST( NULL AS SIGNED ) + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - + cor0.col1 * + CAST ( NULL AS INTEGER ) + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - cor0.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT col2 DIV col2 col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1705
SELECT col2 / col2 col2 FROM tab0
----
1
1
1

query I rowsort
SELECT - - col2 + + 67 * + col0 AS col0 FROM tab0 AS cor0
----
1641
2346
6045

query I rowsort
SELECT ALL col2 * - col2 * - 38 - col2 FROM tab1
----
110754
123405
350112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT tab0.col2 + + 58 DIV 50 AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1708
SELECT tab0.col2 + + 58 / 50 AS col1 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 84 col1 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT - tab2.col1 * 12 FROM tab2
----
-204
-372
-708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1711
SELECT DISTINCT + + col0 * ( + ( col2 ) ) + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT + + col0 * ( + ( col2 ) ) + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL - col1 + + col0 * + 35 AS col2 FROM tab2 AS cor0
----
214
2671
2748

query I rowsort
SELECT + - col0 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col2 col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + col2 + + cor0.col2 * ( col2 ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - col1 + 76 FROM tab1 AS cor0
----
50
63
66

query I rowsort
SELECT 27 * - 45 FROM tab2, tab1 cor0
----
9 values hashing to 8dcc4f42ffaf6d6e76b05f04b624109a

query I rowsort
SELECT DISTINCT 79 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1719
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ( - col2 ) + - col2 FROM tab2
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT DISTINCT + 36 + 45 DIV + cor1.col0 AS col2 FROM tab0, tab0 cor0, tab0 cor1
----
36
37

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + 36 + 45 / + cor1.col0 AS col2 FROM tab0, tab0 cor0, tab0 cor1
----
36
37

query I rowsort
SELECT DISTINCT - col1 + 37 FROM tab0 cor0
----
-49
-54
-60

query I rowsort
SELECT + 36 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-1085
-2065
-595

onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT - 7 * col2 DIV ( tab0.col0 ) + + col2 FROM tab0
----
1
24
76

skipif mysql # not compatible
query I rowsort label-1724
SELECT - 7 * col2 / ( tab0.col0 ) + + col2 FROM tab0
----
1
24
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col2 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ALL - 50 + col1 * - col2 FROM tab0 AS cor0
----
-147
-2888
-7512

query I rowsort
SELECT ALL 85 + + col0 * - col0 FROM tab2 AS cor0
----
-5999
-6156
36

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 FROM tab0 cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1729
SELECT CAST( NULL AS SIGNED ) + 1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT CAST ( NULL AS INTEGER ) + 1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + col1 + col1 + + col1 * + col2 FROM tab1 AS cor0
----
1092
480
754

query I rowsort
SELECT + 15 AS col0 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT 57 * 48 FROM tab1 cor0
----
2736
2736
2736

query I rowsort
SELECT - 48 + + cor0.col0 FROM tab1 AS cor0
----
-45
16
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT - + cor0.col2 + col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-1734
SELECT - + cor0.col2 + col1 / - cor0.col1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT + col2 + col0 + - 53 FROM tab0 AS cor0
----
-17
118
4

query I rowsort
SELECT ALL ( - col1 * - col0 ) + - col1 * col2 FROM tab1
----
-1326
-208
70

query I rowsort
SELECT col0 * + ( col2 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + + col1 * - 92 FROM tab1 cor0
----
-1196
-2392
-920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT - col2 * - ( col0 ) DIV + cor0.col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1739
SELECT - col2 * - ( col0 ) / + cor0.col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 41 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + col1 + col0 * col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT + col0 + 98 FROM tab0
----
122
133
187

query I rowsort
SELECT col1 + 59 * 63 * + col0 AS col1 FROM tab1
----
11177
237898
297373

query I rowsort
SELECT DISTINCT + tab0.col2 * - tab0.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
-2838
-7462
-97

query I rowsort
SELECT - col1 + 19 AS col2 FROM tab1 AS cor0
----
-7
6
9

query I rowsort
SELECT ALL - + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1747
SELECT ALL + + col0 + CAST( NULL AS SIGNED ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + + col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 + - 61 * + col1 AS col2 FROM tab1 AS cor0
----
-1640
-667
-889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col1 col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - ( 2 ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to fbbdc69ed4bc9a68f44d1ba867b620b3

query I rowsort
SELECT ALL 30 * + 38 * - col2 AS col1 FROM tab0 AS cor0
----
-1140
-37620
-93480

query I rowsort
SELECT ( 66 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT ( 3 ) FROM tab1
----
3
3
3

query I rowsort
SELECT + ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1755
SELECT CAST( col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-1755
SELECT CAST ( col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT ALL 76 DIV + tab0.col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL 76 / + tab0.col0 FROM tab0
----
0
2
3

query I rowsort
SELECT DISTINCT 34 * + col1 FROM tab0
----
2924
3094
3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 70 + + col1 col0 FROM tab2 AS cor0
----
-11
-39
-53

query I rowsort
SELECT col0 * + 53 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT - - col0 * 15 * col2 FROM tab2 AS cor0
----
2835
30420
45030

query I rowsort
SELECT - + col1 * + 9 * + col1 FROM tab2 AS cor0
----
-2601
-31329
-8649

query I rowsort
SELECT ALL - 90 + col0 - col1 AS col2 FROM tab1
----
-113
-23
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1763
SELECT + CAST( - 59 AS SIGNED ) + col2 * - ( + col0 ) FROM tab2
----
-2087
-248
-3061

skipif mysql # not compatible
query I rowsort label-1763
SELECT + CAST ( - 59 AS INTEGER ) + col2 * - ( + col0 ) FROM tab2
----
-2087
-248
-3061

query I rowsort
SELECT DISTINCT col1 - - tab2.col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT col1 + + 52 - + col0 FROM tab0
----
114
114
54

query I rowsort
SELECT col1 * - cor0.col2 + col2 * - ( col0 * + col0 ) FROM tab2 cor0
----
-159718
-2160
-237804

query I rowsort
SELECT DISTINCT + col2 + + ( col2 ) * - tab1.col0 AS col1 FROM tab1
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1768
SELECT + - CAST( NULL AS SIGNED ) + + col0 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT + - CAST ( NULL AS INTEGER ) + + col0 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 40 ) + - col1 FROM tab1
----
14
27
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1770
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 + + 73 col0 FROM tab0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 + - col0 col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT + ( + col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col0 * col0 + - col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ALL + ( + col0 ) + + 46 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT DISTINCT - col1 + col1 - - col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT DISTINCT + col2 * + cor0.col1 + + 71 DIV 12 FROM tab1 cor0
----
1253
1409
575

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + col2 * + cor0.col1 + + 71 / 12 FROM tab1 cor0
----
1253
1409
575

query I rowsort
SELECT DISTINCT - 47 - col0 AS col2 FROM tab2 AS cor0
----
-125
-126
-54

query I rowsort
SELECT ALL - col1 + - col0 + col2 AS col2 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT DISTINCT 33 * cor0.col2 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT ALL - - col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - cor0.col2 + 52 FROM tab1 AS cor0
----
-2
-44
-5

query I rowsort
SELECT + col2 * - ( - col0 ) - col0 FROM tab2
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * col0 col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col0 * ( cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col1 * 94 FROM tab2 cor0
----
1598
2914
5546

onlyif mysql # use DIV operator for integer division
query I rowsort label-1789
SELECT ALL - - col1 DIV 55 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - - col1 / 55 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * + col0 col1 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + col2 * + col1 * - col1 - - ( col2 ) * + col1 * 39 FROM tab1 AS cor0
----
16530
18252
32448

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT DISTINCT 30 DIV - 1 + cor0.col1 FROM tab1 AS cor0
----
-17
-20
-4

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT 30 / - 1 + cor0.col1 FROM tab1 AS cor0
----
-17
-20
-4

query I rowsort
SELECT DISTINCT - 50 + + col2 AS col2 FROM tab0 cor0
----
-17
-49
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1795
SELECT CAST( - col2 AS SIGNED ) + col0 + - col1 * col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
36487
4161
99824

skipif mysql # not compatible
query I rowsort label-1795
SELECT CAST ( - col2 AS INTEGER ) + col0 + - col1 * col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
36487
4161
99824

query I rowsort
SELECT col2 + + ( + cor0.col1 * + col0 ) AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - - col0 * + col2 + col2 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - col1 * col1 col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - ( + 35 ) * col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-293
-359
-856

query I rowsort
SELECT ALL + 18 - col2 AS col2 FROM tab0 cor0
----
-15
-64
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1801
SELECT ALL - col1 + + 31 * col0 + col1 DIV - 15 col0 FROM tab0 AS cor0
----
2662
653
982

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - col1 + + 31 * col0 + col1 / - 15 col0 FROM tab0 AS cor0
----
2662
653
982

query I rowsort
SELECT ALL ( col1 ) + - col0 * ( col0 ) FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col2 + - cor0.col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1804
SELECT ALL - - CAST( NULL AS SIGNED ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - - CAST ( NULL AS INTEGER ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1805
SELECT + CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1805
SELECT + CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1806
SELECT + col0 DIV col0 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1806
SELECT + col0 / col0 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL + - ( - 71 ) * + col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT + + cor0.col0 * + 29 * col0 FROM tab1 AS cor0
----
118784
185600
261

onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT - CAST( col0 AS SIGNED ) DIV col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT - CAST ( col0 AS INTEGER ) / col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT ALL - - cor0.col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - ( 86 ) * + col1 AS col1 FROM tab2 cor0
----
-1462
-2666
-5074

query I rowsort
SELECT DISTINCT 51 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1683
4182
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1813
SELECT - - col2 + col0 - + CAST( + 98 * - cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
1101
1450
2605

skipif mysql # not compatible
query I rowsort label-1813
SELECT - - col2 + col0 - + CAST ( + 98 * - cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
1101
1450
2605

query I rowsort
SELECT - - col2 * - cor0.col2 + col1 - + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-2645
-4429
-887

query I rowsort
SELECT - 3 + - col1 + - col1 FROM tab1 AS cor0
----
-23
-29
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-1816
SELECT ALL tab0.col0 - 14 DIV tab0.col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL tab0.col0 - 14 / tab0.col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 * 27 * col2 FROM tab0 AS cor0
----
201474
2619
76626

query I rowsort
SELECT - cor0.col0 * + col0 + + 30 * col1 FROM tab0 AS cor0
----
-5191
1685
2004

query I rowsort
SELECT DISTINCT col0 * 57 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT ALL - cor0.col1 - - ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + - ( - col1 ) * col0 col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - - 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL ( cor0.col0 + + 34 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 86b492a48734f78e4721f596d8c0aa2b

query I rowsort
SELECT tab2.col0 + 59 FROM tab2
----
137
138
66

query I rowsort
SELECT ALL 41 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - col1 * 14 + - col2 FROM tab2 AS cor0
----
-276
-461
-852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1827
SELECT - col0 + CAST( 50 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-1224
-1785
-4539

skipif mysql # not compatible
query I rowsort label-1827
SELECT - col0 + CAST ( 50 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT DISTINCT col0 + 1 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT DISTINCT - col0 + + 25 FROM tab0 AS cor0
----
-10
-64
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1830
SELECT ALL - 28 * tab1.col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL - 28 * tab1.col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + cor0.col2 + + ( - cor1.col0 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2874e4b5a308db8cb58c103c3df9d308

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 * 41 AS col2 FROM tab1 cor0
----
-23370
-51168
-57564

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 * 4 * - col2 AS col2 FROM tab0 AS cor0
----
-11352
-29848
-388

query I rowsort
SELECT 78 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT col0 * + 28 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT + ( + 61 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT col2 * 74 + col1 FROM tab2 AS cor0
----
1983
2029
2829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + col2 col2 FROM tab0 AS cor0
----
139
58
90

query I rowsort
SELECT 65 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2

query I rowsort
SELECT ALL - 5 * - ( - col2 ) + col1 FROM tab2 AS cor0
----
-104
-173
-71

query I rowsort
SELECT DISTINCT + - col0 * col1 + + col0 * - 72 * col2 FROM tab1 AS cor0
----
-11742
-263296
-554000

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + col1 * + ( col2 + - col0 ) col2 FROM tab1 AS cor0
----
-60
1352
221

query I rowsort
SELECT DISTINCT + + 18 AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT - col1 + 14 FROM tab1 AS cor0
----
-12
1
4

query I rowsort
SELECT + 79 * - col2 AS col1 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT cor0.col2 + col0 * col1 + col2 FROM tab1 cor0
----
1232
186
754

query I rowsort
SELECT - 91 * col2 + col0 FROM tab1 AS cor0
----
-4911
-5123
-8656

query I rowsort
SELECT DISTINCT + 91 FROM tab2, tab1 cor0
----
91

query I rowsort
SELECT - col1 * col0 + 60 AS col0 FROM tab1 cor0
----
-18
-580
-980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col1 FROM tab2
----
61

query I rowsort
SELECT col1 + ( col0 ) * col0 * - 37 FROM tab1
----
-151542
-236787
-307

query I rowsort
SELECT ALL + + cor0.col0 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT ALL - - col0 DIV 22 + col1 AS col2 FROM tab0 AS cor0
----
87
95
98

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL - - col0 / 22 + col1 AS col2 FROM tab0 AS cor0
----
87
95
98

query I rowsort
SELECT ALL + - col0 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 86 + + col0 AS col2 FROM tab2
----
-7
-79
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1859
SELECT ALL - col1 * col2 + - CAST( NULL AS SIGNED ) + - 64 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - col1 * col2 + - CAST ( NULL AS INTEGER ) + - 64 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col0 FROM tab1
----
-83
-83
-83

query I rowsort
SELECT + col2 * 77 + + col0 * col1 * + cor0.col0 FROM tab2 AS cor0
----
109023
3598
360958

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1862
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-1862
SELECT - CAST ( + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ( + col0 ) + - col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT col0 DIV 35 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-1864
SELECT col0 / 35 FROM tab2
----
0
2
2

query I rowsort
SELECT - + col2 * cor0.col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT - + col2 + col0 DIV col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT - + col2 + col0 / col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ( + 83 ) AS col2 FROM tab0 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT + col2 - - col2 * + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
611966
93687
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1870
SELECT + cor0.col2 * ( - col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT + cor0.col2 * ( - col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 33 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT - 96 + - col1 AS col2 FROM tab1 AS cor0
----
-106
-109
-122

query I rowsort
SELECT ALL ( col2 ) * col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL - + cor0.col1 + 78 * - col1 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT + + 18 AS col0 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT DISTINCT + col2 DIV 13 col2 FROM tab1
----
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT + col2 / 13 col2 FROM tab1
----
4
7

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - + col2 * + col0 - + col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT 27 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - col1 + 73 * + col2 FROM tab2
----
1839
1940
2757

query I rowsort
SELECT ALL 82 * - col0 + col1 AS col1 FROM tab2
----
-543
-6337
-6461

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT + 42 DIV 97 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT + 42 / 97 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 60 - tab0.col0 AS col0 FROM tab0
----
-29
25
36

query I rowsort
SELECT DISTINCT - tab0.col2 + col2 + - col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 + + col0 col2 FROM tab2
----
-40
-55
45

query I rowsort
SELECT - col2 * 27 FROM tab1
----
-1458
-1539
-2592

query I rowsort
SELECT - 44 * col1 AS col0 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT + - ( col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT tab0.col2 + + col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT - - ( - 4 ) AS col2 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT DISTINCT - 57 DIV 38 + col0 * col0 FROM tab0
----
1224
575
7920

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT - 57 / 38 + col0 * col0 FROM tab0
----
1224
575
7920

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT + col0 - + col1 * + 16 AS col1 FROM tab0
----
-1352
-1367
-1517

query I rowsort
SELECT DISTINCT - + col1 + + ( 3 ) * + col0 FROM tab1 AS cor0
----
-17
182
227

query I rowsort
SELECT ALL - col1 * + ( - 91 ) FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT ALL col1 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - cor0.col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col2 * + ( + 16 * - col0 ) AS col2 FROM tab0 AS cor0
----
-116768
-12672
-560

query I rowsort
SELECT 32 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT col0 - - col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + ( tab2.col1 * + 81 ) + 4 AS col0 FROM tab2
----
1381
2515
4783

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0

query I rowsort
SELECT col1 + - 60 AS col0 FROM tab0
----
26
31
37

query I rowsort
SELECT + + cor0.col1 + + 33 AS col1 FROM tab1 AS cor0
----
43
46
59

query I rowsort
SELECT ALL - col2 * col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
1375
3394
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT cor0.col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - col2 + - col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT - col0 * - 18 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT DISTINCT + col0 + + col1 * - 95 AS col1 FROM tab1 AS cor0
----
-1155
-2467
-886

onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT DISTINCT col2 DIV 5 FROM tab2 AS cor0
----
5
7

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT col2 / 5 FROM tab2 AS cor0
----
5
7

query I rowsort
SELECT ALL + col1 * ( + col1 * - col2 ) FROM tab2
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT ALL cor0.col0 * ( col1 ) - col2 DIV + 90 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL cor0.col0 * ( col1 ) - col2 / + 90 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 * 60 AS col1 FROM tab0
----
-1980
-4920
-60

query I rowsort
SELECT ( cor0.col0 ) * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + col1 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT DISTINCT + + 68 + + col1 DIV col2 FROM tab0 AS cor0
----
165
69
70

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + + 68 + + col1 / col2 FROM tab0 AS cor0
----
165
69
70

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - ( col2 ) * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * + cor0.col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + + ( cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + - 41 + 22 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + col2 * col0 * + cor0.col1 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * col0 + cor0.col0 col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + + col1 + col1 * + cor0.col2 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT + - col0 * + col0 + + 23 AS col0 FROM tab0 AS cor0
----
-1202
-553
-7898

onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT - 99 DIV - cor0.col0 FROM tab1 cor0
----
1
1
33

skipif mysql # not compatible
query I rowsort label-1929
SELECT - 99 / - cor0.col0 FROM tab1 cor0
----
1
1
33

query I rowsort
SELECT ALL - 13 + - col1 AS col2 FROM tab2 AS cor0
----
-30
-44
-72

query I rowsort
SELECT DISTINCT + col2 * col2 * 84 AS col0 FROM tab2 AS cor0
----
121296
56784
61236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT cor0.col1 + 70 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to da8d5d6ef5c9f7ff1ab4446fff04af31

onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT + col1 + col0 DIV + 9 AS col2 FROM tab1
----
17
21
26

skipif mysql # not compatible
query I rowsort label-1934
SELECT + col1 + col0 / + 9 AS col2 FROM tab1
----
17
21
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT DISTINCT 41 DIV - col1 AS col1 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT 41 / - col1 AS col1 FROM tab2 cor0
----
-1
-2
0

query I rowsort
SELECT ALL - - 57 + col1 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
22656
24605
39941

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT - 26 DIV col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT - 26 / col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 62 AS col1 FROM tab1 AS cor0
----
62

query I rowsort
SELECT ALL - 15 + col0 AS col0 FROM tab0 AS cor0
----
20
74
9

query I rowsort
SELECT DISTINCT col1 * col1 + cor0.col1 AS col0 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2 AS cor0
----
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT - col1 DIV - ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1943
SELECT - col1 / - ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + - col0 + - 93 AS col1 FROM tab2 AS cor0
----
-100
-171
-172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1945
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 * 33 + 20 AS col1 FROM tab2 AS cor0
----
251
2594
2627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 + + 95 col0 FROM tab2 AS cor0
----
1438
312
4697

query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab0, tab0 AS cor0
----
82

query I rowsort
SELECT + tab0.col1 FROM tab0, tab1, tab2 cor0, tab2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT - ( col0 + ( - 73 ) * col0 ) FROM tab2
----
504
5616
5688

query I rowsort
SELECT col0 + cor0.col0 + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT 97 * - col1 AS col1 FROM tab1 cor0
----
-1261
-2522
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1953
SELECT ALL + col1 * col2 + ( + col2 * CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + col1 * col2 + ( + col2 * CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - col1 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + col2 * 34 AS col2 FROM tab0 AS cor0
----
1122
2788
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1956
SELECT ALL + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - ( 70 ) FROM tab0 AS cor0
----
-16
-21
-27

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 - + CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - + cor0.col0 + 60 AS col1 FROM tab0 AS cor0
----
-29
25
36

query I rowsort
SELECT col0 * ( ( col0 ) + + col1 ) AS col2 FROM tab1
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1961
SELECT ALL + ( col0 ) DIV + col2 + - 77 * + 3 col1 FROM tab0 AS cor0
----
-196
-230
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL + ( col0 ) / + col2 + - 77 * + 3 col1 FROM tab0 AS cor0
----
-196
-230
-231

query I rowsort
SELECT DISTINCT + - cor0.col0 * 57 + - col0 * - 84 - col2 * + col2 * - 77 FROM tab0 cor0
----
1022
520151
84501

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1963
SELECT col2 * + 20 + col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT col2 * + 20 + col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT - col1 DIV 61 + - col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1964
SELECT - col1 / 61 + - col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - cor0.col0 * + 98 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b05d61ab0153825f79bbbdb9c3cbe0e6

query I rowsort
SELECT - ( + 61 ) FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL - 57 - - col0 FROM tab0
----
-22
-33
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1968
SELECT + - CAST( NULL AS DECIMAL ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT + - CAST ( NULL AS REAL ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1969
SELECT ( 98 ) + col2 - + col1 * + col0 DIV + col0 FROM tab0 AS cor0
----
2
45
89

skipif mysql # not compatible
query I rowsort label-1969
SELECT ( 98 ) + col2 - + col1 * + col0 / + col0 FROM tab0 AS cor0
----
2
45
89

query I rowsort
SELECT - ( cor0.col1 ) * col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-1971
SELECT DISTINCT - ( - col2 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT - ( - col2 ) / + col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT - + 28 DIV + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
24
7
89

skipif mysql # not compatible
query I rowsort label-1972
SELECT - + 28 / + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
24
7
89

query I rowsort
SELECT - col0 * - cor0.col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT - col2 + + col2 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
105
3527
7504

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT col0 * + col2 + + col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT col1 + - ( col0 + col2 ) * col1 FROM tab2
----
-1023
-1972
-6077

onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT + 3 DIV 62 + + cor0.col0 DIV - 8 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b42ecd344a82de7f81cd5ee2dc2ee25d

skipif mysql # not compatible
query I rowsort label-1978
SELECT + 3 / 62 + + cor0.col0 / - 8 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b42ecd344a82de7f81cd5ee2dc2ee25d

query I rowsort
SELECT 62 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col0 * - 89 * col1 FROM tab0
----
-183696
-302155
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 32 ) + + cor0.col1 col2 FROM tab2 AS cor0
----
49
63
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-1983
SELECT col2 * - 34 * col1 + col0 + + col0 * + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-253530
-3228
-96444

skipif mysql # not compatible
query I rowsort label-1983
SELECT col2 * - 34 * col1 + col0 + + col0 * + col0 / col0 AS col2 FROM tab0 AS cor0
----
-253530
-3228
-96444

query I rowsort
SELECT - 23 * 81 + - col0 FROM tab2 AS cor0
----
-1870
-1941
-1942

query I rowsort
SELECT + ( 26 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-442
-806

query I rowsort
SELECT DISTINCT ( 94 ) FROM tab0, tab0 AS cor0
----
94

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0, tab2 cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT + 7 DIV - col0 AS col2 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT + 7 / - col0 AS col2 FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - - 48 + - col0 + - 34 * + ( + col1 ) AS col0 FROM tab2 cor0
----
-1013
-2036
-609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col2 + + 58 col0 FROM tab1 AS cor0
----
220
3706
7738

query I rowsort
SELECT ALL + - col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 77 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT ALL + - 29 AS col1 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1996
SELECT ( cor0.col0 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT ( cor0.col0 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT + 44 DIV col1 FROM tab1 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-1997
SELECT + 44 / col1 FROM tab1 AS cor0
----
1
3
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1998
SELECT DISTINCT - - col2 + - CAST( - 38 AS SIGNED ) * - cor0.col0 * 82 AS col1 FROM tab2 AS cor0
----
-21785
-243022
-246126

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT - - col2 + - CAST ( - 38 AS INTEGER ) * - cor0.col0 * 82 AS col1 FROM tab2 AS cor0
----
-21785
-243022
-246126

query I rowsort
SELECT ALL - col0 + - ( + col1 ) AS col1 FROM tab2 cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2000
SELECT DISTINCT - 6 DIV tab0.col2 AS col1 FROM tab0
----
-6
0

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT - 6 / tab0.col2 AS col1 FROM tab0
----
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT + col0 DIV - 37 AS col0 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT + col0 / - 37 AS col0 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT DISTINCT + - cor0.col0 * 14 * - col2 AS col2 FROM tab0 AS cor0
----
102172
11088
490

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-66

query I rowsort
SELECT ALL + col0 * - tab1.col1 AS col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2005
SELECT DISTINCT - CAST( cor0.col2 AS SIGNED ) * col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT - CAST ( cor0.col2 AS INTEGER ) * col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + col1 * col1 + - col0 + - col2 FROM tab2 AS cor0
----
172
3377
927

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2007
SELECT ALL + CAST( + col2 AS SIGNED ) + col0 col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL + CAST ( + col2 AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2008
SELECT DISTINCT + - col0 - - col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT + - col0 - - col2 / + col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ( cor0.col0 ) + + cor0.col0 * ( + 57 + - col2 ) FROM tab1 AS cor0
----
-3040
12
64

query I rowsort
SELECT ALL - col2 + col0 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT + - 31 AS col1 FROM tab1 cor0
----
-31
-31
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2012
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT 69 * + col0 AS col2 FROM tab0 cor0
----
1656
2415
6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * - col1 + col0 col1 FROM tab2 AS cor0
----
1490
2580
4975

query I rowsort
SELECT ALL - col0 + 30 FROM tab1 AS cor0
----
-34
-50
27

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col1 * - 34 FROM tab1 AS cor0
----
283
346
830

query I rowsort
SELECT - col0 * + 18 + cor0.col2 FROM tab0 AS cor0
----
-1520
-399
-629

query I rowsort
SELECT ALL 39 + + 32 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 col2 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2021
SELECT ALL col0 * - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + col0 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ( col0 ) * col2 * 53 AS col2 FROM tab2 AS cor0
----
10017
107484
159106

query I rowsort
SELECT ( col1 ) * col1 AS col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT ALL col2 + col0 DIV - col1 AS col0 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL col2 + col0 / - col1 AS col0 FROM tab2
----
25
27
34

query I rowsort
SELECT + ( 77 + + col0 ) * 90 FROM tab1
----
12690
14130
7200

query I rowsort
SELECT ALL + col2 + - 19 * col2 AS col2 FROM tab2
----
-468
-486
-684

query I rowsort
SELECT DISTINCT col0 * - col2 + + col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 82 - + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
-1122
-160
-722

query I rowsort
SELECT DISTINCT + col2 + col1 * + ( col2 ) FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + 11 + col0 AS col0 FROM tab1 AS cor0
----
14
75
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT ALL col0 * + col1 + - 61 DIV cor0.col2 FROM tab1 AS cor0
----
1040
639
77

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL col0 * + col1 + - 61 / cor0.col2 FROM tab1 AS cor0
----
1040
639
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2034
SELECT DISTINCT - + cor0.col0 * col0 + + CAST( NULL AS SIGNED ) + 12 * col2 * - 66 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - + cor0.col0 * col0 + + CAST ( NULL AS INTEGER ) + 12 * col2 * - 66 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 - col0 * - 32 FROM tab0 AS cor0
----
1119
2766
735

query I rowsort
SELECT ALL col0 + col1 + - col0 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + ( - col1 ) + - 14 FROM tab1 cor0
----
-24
-27
-40

query I rowsort
SELECT + 97 * col2 + + 24 FROM tab0 AS cor0
----
121
3225
7978

query I rowsort
SELECT ALL - col1 * - col2 + col0 * cor0.col0 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT DISTINCT + 55 FROM tab1, tab0 cor0
----
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT ALL + col1 DIV + 83 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + col1 / + 83 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( + col1 ) * col2 col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col1 + - ( col2 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - - col0 * 95 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT ALL - + col1 * ( cor0.col0 ) + col0 * - ( - col1 ) AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + + 27 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-189
-3678
-7749

query I rowsort
SELECT ALL - cor0.col2 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + ( col0 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2050
SELECT - CAST( NULL AS SIGNED ) / 33 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT - CAST ( NULL AS INTEGER ) / 33 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col1 col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col1 - + 18 * + col1 AS col2 FROM tab1
----
-170
-221
-442

query I rowsort
SELECT DISTINCT col1 * 31 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT - - col1 + + col1 + col1 * - 72 FROM tab0 AS cor0
----
-6020
-6370
-6790

query I rowsort
SELECT + - col0 * - cor0.col0 - + col0 AS col1 FROM tab2 cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT - col0 * - 60 + col2 DIV + col2 AS col1 FROM tab1 cor0
----
181
3841
4801

skipif mysql # not compatible
query I rowsort label-2056
SELECT - col0 * - 60 + col2 / + col2 AS col1 FROM tab1 cor0
----
181
3841
4801

query I rowsort
SELECT + col1 * col1 + + 14 * + col0 FROM tab2 AS cor0
----
1059
1395
4573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col2 + col2 col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT + + col2 + 76 DIV col0 FROM tab1 AS cor0
----
58
79
96

skipif mysql # not compatible
query I rowsort label-2059
SELECT + + col2 + 76 / col0 FROM tab1 AS cor0
----
58
79
96

query I rowsort
SELECT DISTINCT tab0.col1 * ( + tab0.col0 ) * col1 AS col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT col0 * + tab2.col1 + - col1 * tab2.col1 FROM tab2
----
-744
1054
1121

query I rowsort
SELECT DISTINCT - ( 20 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
-20

query I rowsort
SELECT - 11 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT ALL + col2 * + 22 FROM tab1
----
1188
1254
2112

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2, tab1 cor1
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27

query I rowsort
SELECT + - 6 - col0 FROM tab0 AS cor0
----
-30
-41
-95

query I rowsort
SELECT DISTINCT - 71 FROM tab0, tab1, tab1 cor0
----
-71

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
93

query I rowsort
SELECT - 51 * col2 + ( - col2 ) * + col2 FROM tab1 AS cor0
----
-14112
-5670
-6156

query I rowsort
SELECT + + col1 * + col1 + + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - 26 + - col2 AS col1 FROM tab1 AS cor0
----
-122
-80
-83

query I rowsort
SELECT - col0 * col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2073
SELECT + 73 DIV - cor1.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 12375de6c440a6a323ba78c31321d694

skipif mysql # not compatible
query I rowsort label-2073
SELECT + 73 / - cor1.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 12375de6c440a6a323ba78c31321d694

query I rowsort
SELECT ALL + cor0.col2 * - col1 - - ( cor0.col2 ) * - 87 AS col2 FROM tab2 AS cor0
----
-3186
-3796
-3952

query I rowsort
SELECT + 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + ( 36 ) * + col1 col2 FROM tab2 AS cor0
----
1123
2202
691

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT - tab1.col2 - tab1.col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT col0 * + 58 + col2 AS col2 FROM tab0
----
1425
2031
5244

query I rowsort
SELECT DISTINCT - col1 + - tab2.col2 AS col0 FROM tab2
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - - ( - col0 ) * - 59 col2 FROM tab1 AS cor0
----
13936
3093
7025

query I rowsort
SELECT DISTINCT - + col2 + ( col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col0 + 29 FROM tab0 AS cor0
----
-6
-60
5

query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 * - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col0 + + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - col2 + ( + 44 ) * - col2 FROM tab0 cor0
----
-1485
-3690
-45

query I rowsort
SELECT + + col2 * - cor0.col0 - - col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT ( + 67 * + col2 ) AS col1 FROM tab0
----
2211
5494
67

query I rowsort
SELECT DISTINCT ( - 91 * + tab1.col1 ) FROM tab1
----
-1183
-2366
-910

query I rowsort
SELECT ( col1 * col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT - ( 68 * - col0 ) FROM tab2
----
476
5304
5372

query I rowsort
SELECT - ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL 9 AS col1 FROM tab2 cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT ALL + 42 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL + 42 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2095
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / 75 AS col0 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / 75 AS col0 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
NULL

query I rowsort
SELECT col1 * ( + col0 ) AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - + col1 + - col0 AS col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT + - col0 + + 14 AS col1 FROM tab1 AS cor0
----
-50
-66
11

query I rowsort
SELECT ALL - col0 * + col1 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT - col2 + + cor0.col0 * - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT cor0.col0 + 16 AS col0 FROM tab1 AS cor0
----
19
80
96

query I rowsort
SELECT - col2 + - ( col2 ) * + col2 AS col2 FROM tab1 cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT + col0 + + 66 * col2 FROM tab2
----
1789
1794
2587

query I rowsort
SELECT ALL + + ( 68 ) AS col0 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL col2 * + col0 + col2 * col0 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT ALL - cor1.col1 * 47 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to cc0a7352da9da831f6a103721ff84981

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab1, tab0 AS cor0
----
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2108
SELECT - CAST( NULL AS SIGNED ) / col1 + cor0.col1 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT - CAST ( NULL AS INTEGER ) / col1 + cor0.col1 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2110
SELECT - 41 + + tab0.col1 DIV col2 FROM tab0
----
-39
-40
56

skipif mysql # not compatible
query I rowsort label-2110
SELECT - 41 + + tab0.col1 / col2 FROM tab0
----
-39
-40
56

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab0, tab0 AS cor0
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT DISTINCT col2 DIV cor0.col0 + + col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
964

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT col2 / cor0.col0 + + col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
964

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT DISTINCT 16 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT 16 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + ( + 55 ) + cor0.col0 FROM tab1 cor0
----
-52
25
9

query I rowsort
SELECT ALL 91 + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
126
7389
883

query I rowsort
SELECT col2 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT 29 + tab0.col1 * + ( + col0 ) FROM tab0
----
2093
3424
8128

query I rowsort
SELECT DISTINCT + 98 * col0 * col1 + + col1 FROM tab0
----
202358
332807
793793

query I rowsort
SELECT col0 + + col0 + + col2 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL col2 * + col1 + tab0.col0 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT + 90 + + col2 + + col0 AS col2 FROM tab2
----
124
194
207

query I rowsort
SELECT DISTINCT ( - col1 ) + col0 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT - + col1 * - col1 - 98 FROM tab0 AS cor0
----
7298
8183
9311

query I rowsort
SELECT - 77 + col2 FROM tab0 AS cor0
----
-44
-76
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT + - 42 + - cor0.col0 * cor0.col0 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
233487
498
614454

query I rowsort
SELECT - 90 + - col0 * cor0.col2 + col0 FROM tab0 AS cor0
----
-7299
-858
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT ALL + - col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL + - col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - cor0.col2 + col1 - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7343
-8272
-9313

query I rowsort
SELECT ALL + - col1 + + 84 * col0 FROM tab0 AS cor0
----
1930
2843
7385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2132
SELECT DISTINCT col2 + CAST( col1 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT col2 + CAST ( col1 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 + - col1 col1 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2134
SELECT + col1 DIV col0 + + col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-2134
SELECT + col1 / col0 + + col2 FROM tab0 AS cor0
----
3
36
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 + - 90 FROM tab1 cor0
----
-100
-103
-116

query I rowsort
SELECT col1 * + 92 AS col1 FROM tab2 AS cor0
----
1564
2852
5428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2138
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - col0 ) * col2 * + ( col2 ) FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT - tab0.col1 - col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL + ( + 6 ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT col0 + - col0 + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + + ( - col0 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - - col2 + col1 - col0 * + col2 FROM tab1 cor0
----
-3581
-7571
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + col2 + - 1 col2 FROM tab0
----
136
55
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT - + col0 DIV + 8 - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-3
1086
6713

skipif mysql # not compatible
query I rowsort label-2147
SELECT - + col0 / + 8 - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-3
1086
6713

query I rowsort
SELECT col0 * + 60 AS col1 FROM tab2
----
420
4680
4740

query I rowsort
SELECT + col0 + 48 + - col1 * col2 * - tab0.col2 FROM tab0
----
180
612021
93726

query I rowsort
SELECT DISTINCT col1 * - ( - 71 ) + col1 AS col2 FROM tab1
----
1872
720
936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2151
SELECT - + CAST( NULL AS SIGNED ) + - col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT - + CAST ( NULL AS INTEGER ) + - col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + ( col0 * - col0 ) + col0 AS col1 FROM tab0 AS cor0
----
-118790
-49512
-720722

query I rowsort
SELECT - ( 33 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT ALL col2 * col0 * col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT 88 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
105
119
147

query I rowsort
SELECT ALL + ( + tab1.col2 + - col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT + - col2 + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT ALL ( - 32 ) AS col2 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT ALL + + col2 + - col1 * - 90 FROM tab0 AS cor0
----
7773
8272
8731

query I rowsort
SELECT col1 + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT 69 + col0 AS col1 FROM tab2 cor0
----
147
148
76

query I rowsort
SELECT + 64 * - col1 AS col2 FROM tab1 AS cor0
----
-1664
-640
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2165
SELECT ALL - + ( - col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - + ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - cor0.col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT 89 * + col2 - - col0 * + col2 FROM tab2 AS cor0
----
2592
4342
6384

onlyif mysql # use DIV operator for integer division
query I rowsort label-2168
SELECT col0 DIV 33 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2168
SELECT col0 / 33 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT 50 * - cor0.col2 FROM tab1 AS cor0
----
-2700
-2850
-4800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2170
SELECT - CAST( - 69 AS SIGNED ) * col0 AS col2 FROM tab0 cor0
----
1656
2415
6141

skipif mysql # not compatible
query I rowsort label-2170
SELECT - CAST ( - 69 AS INTEGER ) * col0 AS col2 FROM tab0 cor0
----
1656
2415
6141

query I rowsort
SELECT 68 + - col2 * + col1 FROM tab1 AS cor0
----
-1180
-1336
-502

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT 82 DIV + col1 + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2172
SELECT 82 / + col1 + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col0 * col2 * - 6 + 53 FROM tab2 AS cor0
----
-1081
-12115
-17959

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - 22 * + col0 FROM tab0
----
-1958
-528
-770

query I rowsort
SELECT + tab2.col1 * + 99 AS col2 FROM tab2
----
1683
3069
5841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + + cor0.col2 col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + ( col1 ) * - col2 + col0 AS col0 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT col1 + + cor0.col1 + - ( - col1 + cor0.col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - - col0 * 6 AS col2 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT - ( col1 ) * - tab0.col0 + + col1 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - - col1 * 13 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT ALL + ( col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT ( + ( col0 ) ) DIV cor0.col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2184
SELECT ( + ( col0 ) ) / cor0.col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2185
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 + - col0 col2 FROM tab1 AS cor0
----
-136
-152
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2187
SELECT ALL + col2 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + col2 / + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + + 75 FROM tab2 AS cor0
----
101
102
113

query I rowsort
SELECT ALL - ( col2 ) * col0 * + col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - col0 * + ( cor0.col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 26 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT ALL col0 * tab0.col2 AS col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT DISTINCT tab1.col2 DIV 89 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT tab1.col2 / 89 FROM tab1
----
0
1

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3

query I rowsort
SELECT ALL + 75 * + col2 AS col0 FROM tab0 AS cor0
----
2475
6150
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * - 12 * + col0 col0 FROM tab2 AS cor0
----
-2261
-24258
-35945

query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
1232
1353
577

query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) * col2 AS col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + 64 - + col2 AS col2 FROM tab0
----
-18
31
63

query I rowsort
SELECT ALL - tab1.col2 - col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL + 81 * col0 * - ( + col0 ) + - col2 FROM tab2
----
-3996
-492830
-505559

query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab0, tab0 AS cor0
----
96

query I rowsort
SELECT + 10 FROM tab1, tab1 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT cor1.col0 + cor0.col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
9 values hashing to 17e6537ffee10dccd14f4a1f12215238

query I rowsort
SELECT col2 + col1 + 24 AS col2 FROM tab0 AS cor0
----
122
143
197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2207
SELECT - CAST( cor0.col0 AS SIGNED ) * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4734c38591591662f77999e8d1e5daf1

skipif mysql # not compatible
query I rowsort label-2207
SELECT - CAST ( cor0.col0 AS INTEGER ) * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4734c38591591662f77999e8d1e5daf1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT - tab1.col1 DIV + col1 col1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2208
SELECT - tab1.col1 / + col1 col1 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT - col2 + - col2 DIV - col0 + - col0 DIV col1 FROM tab1
----
-101
-36
-63

skipif mysql # not compatible
query I rowsort label-2209
SELECT - col2 + - col2 / - col0 + - col0 / col1 FROM tab1
----
-101
-36
-63

query I rowsort
SELECT ALL - col0 + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - col0 + cor0.col2 * col2 FROM tab2 AS cor0
----
-4797
-5408
680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT ALL - col0 DIV col2 + col2 AS col1 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - col0 / col2 + col2 AS col1 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
36
673
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * + col1 col2 FROM tab2 AS cor0
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * col2 * + col0 - col2 col2 FROM tab0
----
-1226
-19041
-649604

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - tab2.col1 * col2 * + col0 - - col0 AS col1 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT + col0 * col2 - - col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL col2 * - tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + col2 * - col0 * + col1 col1 FROM tab0 cor0
----
-3298
-65274
-656656

query I rowsort
SELECT DISTINCT + col0 + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
105
267
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT DISTINCT + cor0.col2 DIV col0 + + col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + cor0.col2 / col0 + + col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL col2 * + col2 - - col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT - col0 * - col0 + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT DISTINCT - col1 DIV - col2 + - col2 col0 FROM tab0 AS cor0
----
-31
-81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - col1 / - col2 + - col2 col0 FROM tab0 AS cor0
----
-31
-81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 col1 FROM tab2
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col1 * + col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col2 - - cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col1 * - col1 - col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + - col1 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + - col0 - + col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL - col0 + col0 * col1 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-3072
-6720
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * col0 col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT DISTINCT - + cor0.col0 * col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT - + cor0.col0 * col2 / + col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL cor0.col1 + cor0.col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT ALL - col0 DIV - col1 col1 FROM tab2 cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - col0 / - col1 col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT + ( - col0 + - 28 ) AS col1 FROM tab2
----
-106
-107
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT ALL col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + + 6 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT col2 + 99 * col1 AS col1 FROM tab0 AS cor0
----
8547
9091
9604

query I rowsort
SELECT - col0 * 72 - - col1 * + col0 FROM tab1 AS cor0
----
-138
-3968
-4720

query I rowsort
SELECT - + col1 * 21 FROM tab0 AS cor0
----
-1806
-1911
-2037

query I rowsort
SELECT DISTINCT + - col1 * col0 * col2 + + col2 FROM tab0 AS cor0
----
-3394
-664036
-68079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 * tab0.col0 - tab0.col1 AS col0 FROM tab0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT ALL - col2 - col1 DIV + col1 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - col2 - col1 / + col1 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE col1 IN ( col2 + col0 )
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col0 * - col2 IN ( + col0 )
----
3
64
80

query I rowsort
SELECT DISTINCT tab0.col1 + + tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL col1 * + tab1.col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT col2 + + col0 + - col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - col1 * - col0 * col1 FROM tab2
----
22831
271518
6727

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col0 + + col0 + + col1 ) AND col0 * col0
----

query I rowsort
SELECT - col2 * - col2 + col1 * + col1 * - col1 AS col0 FROM tab2
----
-204703
-29062
-3469

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT DISTINCT col1 * tab0.col1 + col2 + col2 DIV - col2 AS col0 FROM tab0
----
7428
8362
9409

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT col1 * tab0.col1 + col2 + col2 / - col2 AS col0 FROM tab0
----
7428
8362
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT ALL col0 + - col1 + - col1 DIV col0 FROM tab1
----
-31
54
67

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL col0 + - col1 + - col1 / col0 FROM tab1
----
-31
54
67

query I rowsort
SELECT DISTINCT - col1 - col2 * + tab0.col0 AS col2 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 + + tab1.col0 + col2 FROM tab1
----
185
256
60

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT col2 * + col1 IN ( + col1 )
----
-24
-89

query I rowsort
SELECT + col2 + + col1 + + tab2.col0 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT DISTINCT - col2 + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - cor0.col0 * - cor0.col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + tab2.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL 2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT - col2 * + 37 AS col1 FROM tab2 AS cor0
----
-1406
-962
-999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + + 74 col0 FROM tab2 AS cor0
----
1608
720
911

query I rowsort
SELECT - - col0 * + col1 * - cor0.col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + + col1 * col2 + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 34 col0 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT DISTINCT ( - 50 ) AS col2 FROM tab2
----
-50

query I rowsort
SELECT + - 96 + + 70 * - col1 AS col2 FROM tab2 AS cor0
----
-1286
-2266
-4226

query I rowsort
SELECT - ( + 22 ) + + col0 * col0 FROM tab2 AS cor0
----
27
6062
6219

onlyif mysql # use DIV operator for integer division
query I rowsort label-2277
SELECT - - ( + cor0.col2 ) + col1 * + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-2277
SELECT - - ( + cor0.col2 ) + col1 * + cor0.col0 / + col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 20 AS REAL ) * col0 FROM tab1 AS cor0
----
1280
1600
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT ALL + ( col1 ) DIV col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + ( col1 ) / col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT cor0.col1 * + 10 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT + ( tab0.col0 + tab0.col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT - - cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT - ( - col1 ) DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2283
SELECT - ( - col1 ) / - col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT - - col1 + + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-2284
SELECT - - col1 + + col2 / col0 AS col2 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT - 15 + - col0 * tab1.col2 FROM tab1
----
-177
-3663
-7695

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 + col2 + - col2 * col1 col0 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * col2 col2 FROM tab2 AS cor0
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 91 col2 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL + + 51 AS col0 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT - 26 + + col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-2291
SELECT - 26 + + col1 / - cor0.col1 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT 72 * cor0.col2 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT DISTINCT - - col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ( - col0 ) * + col1 * - col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - col0 + col1 * + tab0.col1 FROM tab0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT - - col1 DIV + col0 + + col2 DIV + col1 FROM tab2 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-2296
SELECT - - col1 / + col0 + + col2 / + col1 FROM tab2 AS cor0
----
0
2
4

query I rowsort
SELECT DISTINCT 81 + col1 AS col2 FROM tab0 AS cor0
----
167
172
178

query I rowsort
SELECT ALL + + col2 * - col0 + cor0.col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 15 - - col0 AS col2 FROM tab2 AS cor0
----
22
93
94

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT + col1 * col0 DIV + col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2301
SELECT + col1 * col0 / + col1 FROM tab1
----
3
64
80

query I rowsort
SELECT - 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT ALL + col0 * + 21 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT DISTINCT - ( tab0.col2 ) * col0 AS col2 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2305
SELECT CAST( col1 AS SIGNED ) * - col1 FROM tab1
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-2305
SELECT CAST ( col1 AS INTEGER ) * - col1 FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 * - col2 ) col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + 25 * col0 AS col2 FROM tab1
----
1600
2000
75

query I rowsort
SELECT DISTINCT - ( - col1 ) + + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT + + 98 + col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1187
6822
99

query I rowsort
SELECT - 5 * col1 FROM tab0 cor0
----
-430
-455
-485

query I rowsort
SELECT DISTINCT + ( + col0 ) - - col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + col1 - - tab2.col1 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 44 col2 FROM tab0
----
130
135
141

query I rowsort
SELECT - col1 * + ( - col0 ) * - col2 - col0 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT + 66 + 43 + col1 FROM tab2
----
126
140
168

query I rowsort
SELECT - 91 * + col0 AS col0 FROM tab2
----
-637
-7098
-7189

query I rowsort
SELECT ( + col2 ) - col0 AS col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + - col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + + ( - 3 ) * - col2 FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT DISTINCT + - 5 AS col2 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT 30 * col2 AS col1 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT ALL + ( col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT ALL col2 DIV - 87 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL col2 / - 87 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 34 * + col2 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT DISTINCT - 10 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
-10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT ALL + CAST( - 21 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
17
5
6

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL + CAST ( - 21 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
17
5
6

query I rowsort
SELECT - ( + col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col2 * - 79 FROM tab0 AS cor0
----
-2640
-6560
-80

query I rowsort
SELECT ALL + + 77 * col1 + - cor0.col1 FROM tab0 cor0
----
6536
6916
7372

query I rowsort
SELECT + + col0 * + col2 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT ALL - tab0.col1 * ( tab0.col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - 81 + + 47 FROM tab0 cor0
----
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2333
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * 88 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + - CAST ( NULL AS REAL ) * 88 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT - col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2334
SELECT - col1 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - ( + cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - + 10 AS col0 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL + 83 * + 99 FROM tab1 AS cor0
----
8217
8217
8217

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2338
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - tab0.col1 * 48 + col0 - ( col2 + - col0 ) AS col0 FROM tab0
----
-4113
-4272
-4587

query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 - 81 AS col2 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT - 80 + cor0.col0 FROM tab1 AS cor0
----
-16
-77
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT - cor0.col1 DIV ( - 43 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2342
SELECT - cor0.col1 / ( - 43 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2343
SELECT ALL + col1 * + col1 + + col2 * ( ( + tab0.col2 ) ) DIV - CAST( - 90 AS SIGNED ) AS col1 FROM tab0
----
7408
8355
9409

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL + col1 * + col1 + + col2 * ( ( + tab0.col2 ) ) / - CAST ( - 90 AS INTEGER ) AS col1 FROM tab0
----
7408
8355
9409

query I rowsort
SELECT - 91 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT ALL - - col1 * col1 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab2, tab1 AS cor0
----
21

query I rowsort
SELECT + - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + col0 * ( 95 ) AS col2 FROM tab0 AS cor0
----
2280
3325
8455

onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT - cor0.col1 * ( col1 ) DIV col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2349
SELECT - cor0.col1 * ( col1 ) / col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col0 + col2 * col1 * + col1 AS col1 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT ALL 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL + + col0 * - ( 84 ) AS col2 FROM tab0 AS cor0
----
-2016
-2940
-7476

query I rowsort
SELECT ALL ( tab1.col1 ) + + cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1b6920525e1810523fdee3171c929510

query I rowsort
SELECT ALL + + col0 + 4 * - col0 + col1 FROM tab0 AS cor0
----
-176
-8
14

query I rowsort
SELECT + 24 + col2 FROM tab0 AS cor0
----
106
25
57

query I rowsort
SELECT 52 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT DISTINCT col2 DIV + col0 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT col2 / + col0 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT cor0.col1 * + 67 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
5762
6097
6499

query I rowsort
SELECT - - 67 AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT DISTINCT tab0.col1 DIV ( col2 + col2 ) AS col2 FROM tab0
----
0
1
48

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT tab0.col1 / ( col2 + col2 ) AS col2 FROM tab0
----
0
1
48

query I rowsort
SELECT DISTINCT cor0.col0 + + 22 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
102
25
86

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col1 + col0 * 72 * col2 FROM tab1
----
11690
262666
552973

query I rowsort
SELECT ALL 24 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2365
SELECT DISTINCT ( col0 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 + col1 * col1 + - col1 FROM tab2
----
310
3448
957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col0 + col2 col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT + - 59 + col2 AS col0 FROM tab0 AS cor0
----
-26
-58
23

query I rowsort
SELECT 22 + col0 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT ALL - - 28 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT - + col0 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - cor0.col2 * col0 * col0 + 99 + col1 AS col0 FROM tab0 AS cor0
----
-1029
-18823
-649332

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT col1 * - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2373
SELECT col1 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2374
SELECT + col2 + CAST( - col0 * + col0 + + 82 AS SIGNED ) FROM tab2 cor0
----
-5976
-6121
60

skipif mysql # not compatible
query I rowsort label-2374
SELECT + col2 + CAST ( - col0 * + col0 + + 82 AS INTEGER ) FROM tab2 cor0
----
-5976
-6121
60

query I rowsort
SELECT ALL - - col1 + col0 + col0 FROM tab1 AS cor0
----
138
173
32

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * CAST ( - ( col1 ) + + ( col2 ) AS REAL ) FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT ALL + - col2 * 70 + - 16 - + col1 AS col1 FROM tab2 AS cor0
----
-1895
-1937
-2693

query I rowsort
SELECT - - cor0.col1 + ( col1 ) * col1 AS col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - col2 * col0 + 58 AS col1 FROM tab0
----
-7240
-734
23

query I rowsort
SELECT + cor0.col2 * - cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT col2 + + 18 FROM tab1 AS cor0
----
114
72
75

query I rowsort
SELECT 2 * col2 + col1 AS col0 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT + cor0.col0 + - col2 * col1 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT 41 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT ALL cor0.col2 * cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6eca0fdf700a988d88ac850bac7633ab

query I rowsort
SELECT + - tab2.col1 + tab2.col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 546a494e1798cb1c65d1510d48d04dff

query I rowsort
SELECT DISTINCT - col2 * 39 AS col0 FROM tab2 AS cor0
----
-1014
-1053
-1482

query I rowsort
SELECT DISTINCT col1 + - col1 + col1 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab0
----
22
22
22

query I rowsort
SELECT DISTINCT + col1 * + 49 FROM tab0 cor0
----
4214
4459
4753

query I rowsort
SELECT + ( col2 ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + col2 + + 34 * 62 AS col1 FROM tab1
----
2162
2165
2204

query I rowsort
SELECT 68 * - cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
-192984
-507416
-6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-2395
SELECT - col0 DIV - col1 col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2395
SELECT - col0 / - col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - ( col2 ) + cor0.col0 * - ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT + col1 DIV ( ( col2 ) ) FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2397
SELECT + col1 / ( ( col2 ) ) FROM tab0
----
1
2
97

query I rowsort
SELECT ALL col2 * + 71 * tab2.col0 FROM tab2
----
13419
143988
213142

query I rowsort
SELECT DISTINCT tab1.col1 + - 0 * - col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT 43 * - tab0.col1 * - tab0.col1 FROM tab0
----
318028
356083
404587

query I rowsort
SELECT ALL col2 * col2 - tab2.col1 FROM tab2
----
1427
617
698

query I rowsort
SELECT DISTINCT ( - 72 ) - col1 FROM tab0
----
-158
-163
-169

query I rowsort
SELECT ALL ( + 3 ) AS col2 FROM tab2
----
3
3
3

query I rowsort
SELECT ( + ( col1 ) ) + - col2 + tab2.col2 FROM tab2
----
17
31
59

query I rowsort
SELECT + col2 + col0 * + col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT col1 * - 50 FROM tab1
----
-1300
-500
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + + col0 + col1 col0 FROM tab1
----
138
157
93

query I rowsort
SELECT DISTINCT 15 + 57 FROM tab0
----
72

query I rowsort
SELECT DISTINCT + 56 + col1 AS col1 FROM tab1
----
66
69
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col1 + + cor0.col2 col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - ( cor0.col1 ) + ( - 14 ) FROM tab2 AS cor0
----
-31
-45
-73

query I rowsort
SELECT - + ( - col1 ) * + col1 + 61 AS col2 FROM tab2 AS cor0
----
1022
350
3542

query I rowsort
SELECT DISTINCT - col1 * + col1 + 29 AS col1 FROM tab0 AS cor0
----
-7367
-8252
-9380

query I rowsort
SELECT ALL col1 + col2 + + 22 FROM tab0 AS cor0
----
120
141
195

query I rowsort
SELECT cor0.col1 * + col1 + 72 FROM tab2 AS cor0
----
1033
3553
361

query I rowsort
SELECT ALL col0 * col0 * col2 - + ( - col2 ) AS col1 FROM tab1 cor0
----
233529
540
614496

query I rowsort
SELECT DISTINCT - col1 + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col1 * - col0 + + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1267
-163
-4550

query I rowsort
SELECT DISTINCT + 46 * - col2 * + ( col0 ) FROM tab1 AS cor0
----
-167808
-353280
-7452

query I rowsort
SELECT DISTINCT 88 * col2 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT ALL - + col0 + - cor0.col2 AS col2 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT DISTINCT + cor0.col1 DIV col0 + col2 + + 2 AS col1 FROM tab2 AS cor0
----
28
33
40

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + cor0.col1 / col0 + col2 + + 2 AS col1 FROM tab2 AS cor0
----
28
33
40

query I rowsort
SELECT ALL + col0 * - col0 - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2424
SELECT - - col2 * col0 + CAST( 66 AS SIGNED ) FROM tab1 AS cor0
----
228
3714
7746

skipif mysql # not compatible
query I rowsort label-2424
SELECT - - col2 * col0 + CAST ( 66 AS INTEGER ) FROM tab1 AS cor0
----
228
3714
7746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + + cor0.col1 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - 56 * col2 + + col1 * + ( col2 ) FROM tab1 AS cor0
----
3762
4428
6624

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT ALL + col1 DIV col0 - + 84 FROM tab2 AS cor0
----
-80
-84
-84

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL + col1 / col0 - + 84 FROM tab2 AS cor0
----
-80
-84
-84

query I rowsort
SELECT col1 + ( + 97 ) * col1 AS col1 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT DISTINCT - - col1 * 49 AS col2 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT DISTINCT - col1 * 40 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-343
-424
-986

query I rowsort
SELECT DISTINCT + ( + ( col0 ) ) * cor0.col1 * col0 - col2 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT ALL + col0 * + ( col1 ) + + 15 * + col2 * + col2 AS col0 FROM tab0 AS cor0
----
108959
18399
3410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2433
SELECT - - CAST( + 94 AS SIGNED ) - - col1 FROM tab2 AS cor0
----
111
125
153

skipif mysql # not compatible
query I rowsort label-2433
SELECT - - CAST ( + 94 AS INTEGER ) - - col1 FROM tab2 AS cor0
----
111
125
153

query I rowsort
SELECT ALL + col1 + 36 + cor0.col1 AS col1 FROM tab1 AS cor0
----
56
62
88

query I rowsort
SELECT DISTINCT - col2 * 16 - col2 AS col2 FROM tab2 AS cor0
----
-442
-459
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-2436
SELECT + col1 + - col1 DIV - col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2436
SELECT + col1 + - col1 / - col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + 13 + - 0 * + col2 * - ( col1 ) + + cor0.col1 * - 25 AS col2 FROM tab2 AS cor0
----
-1462
-412
-762

query I rowsort
SELECT - 94 + col1 AS col0 FROM tab2 AS cor0
----
-35
-63
-77

query I rowsort
SELECT ALL + 4 + + cor0.col2 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT DISTINCT + - 71 + - col1 FROM tab0 AS cor0
----
-157
-162
-168

query I rowsort
SELECT ALL - 72 * col1 AS col2 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT ALL + col2 * col0 + col0 * 44 FROM tab0 AS cor0
----
11214
1575
1848

query I rowsort
SELECT + - 98 * - col0 + 68 AS col0 FROM tab1 AS cor0
----
362
6340
7908

query I rowsort
SELECT - col2 * + 51 + 66 FROM tab1 AS cor0
----
-2688
-2841
-4830

query I rowsort
SELECT DISTINCT - - col1 * col0 * cor0.col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL + - col0 * col2 + col2 * col2 FROM tab1 AS cor0
----
-399
1536
2754

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col0 + - CAST ( 79 AS REAL ) * + cor0.col1 FROM tab2 AS cor0
----
-2260
-2633
1659

query I rowsort
SELECT ALL col1 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - cor0.col0 * 96 * col1 + + cor0.col2 FROM tab1 AS cor0
----
-61383
-7434
-99744

query I rowsort
SELECT - + col0 * + col2 + col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - 57 + 88 * col2 FROM tab0 cor0
----
2847
31
7159

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * - col1 col1 FROM tab2 cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT + cor0.col0 DIV 25 - - col1 * ( 49 ) col1 FROM tab1 AS cor0
----
1274
492
640

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2454
SELECT + cor0.col0 / 25 - - col1 * ( 49 ) col1 FROM tab1 AS cor0
----
1274
492
640

query I rowsort
SELECT DISTINCT + 76 * col1 AS col1 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT - - 26 + - col1 * + col2 FROM tab2 AS cor0
----
-1508
-620
-811

query I rowsort
SELECT + - col0 * cor0.col0 + - col1 * + ( + col0 ) AS col2 FROM tab0 cor0
----
-16020
-2640
-4620

query I rowsort
SELECT DISTINCT 21 * cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT ALL - + ( cor0.col2 ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL - ( - col2 * col1 ) + + 46 + - 91 * - col0 FROM tab2
----
1520
7881
8678

query I rowsort
SELECT + - col2 + + col0 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT 73 - + 13 AS col2 FROM tab1, tab0 cor0
----
60

query I rowsort
SELECT + - col1 * + col1 + 69 FROM tab2 AS cor0
----
-220
-3412
-892

query I rowsort
SELECT ALL tab2.col0 * col1 * 15 AS col0 FROM tab2
----
20145
3255
69030

query I rowsort
SELECT + 87 + + col0 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
121
191
204

query I rowsort
SELECT 92 + + cor0.col0 * + col1 + - 58 * + col0 AS col0 FROM tab1 AS cor0
----
-2980
-3508
-4

query I rowsort
SELECT ALL col2 + ( 52 ) * col0 AS col2 FROM tab0
----
1281
1821
4710

query I rowsort
SELECT DISTINCT - + 17 AS col2 FROM tab2, tab1, tab0 cor0, tab0
----
-17

query I rowsort
SELECT DISTINCT 59 FROM tab0, tab1 cor0
----
59

query I rowsort
SELECT ALL - + col1 + - col0 - col1 * + col0 FROM tab1 AS cor0
----
-107
-1133
-714

query I rowsort
SELECT col2 + - ( + col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 42 + cor0.col2 FROM tab1 cor0
----
138
96
99

query I rowsort
SELECT + - 8 * 47 + + col2 FROM tab0 cor0
----
-294
-343
-375

query I rowsort
SELECT ALL - col2 * - 62 FROM tab0 AS cor0
----
2046
5084
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 - + col0 col0 FROM tab2 AS cor0
----
-153
-154
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2476
SELECT ALL CAST( NULL AS SIGNED ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL CAST ( NULL AS INTEGER ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2477
SELECT DISTINCT - col1 * + col1 + col1 DIV + 6 AS col2 FROM tab2 AS cor0
----
-287
-3472
-956

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT - col1 * + col1 + col1 / + 6 AS col2 FROM tab2 AS cor0
----
-287
-3472
-956

query I rowsort
SELECT + - cor0.col1 * 14 + col2 FROM tab0 cor0
----
-1171
-1192
-1357

onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT + 6 + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
6
6
8

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 6 + col2 / col1 AS col0 FROM tab2 AS cor0
----
6
6
8

query I rowsort
SELECT ALL + 45 - - col2 * col2 AS col1 FROM tab0 AS cor0
----
1134
46
6769

onlyif mysql # use DIV operator for integer division
query I rowsort label-2481
SELECT ( - cor0.col0 ) DIV cor0.col0 + - 59 * - col0 FROM tab1 AS cor0
----
176
3775
4719

skipif mysql # not compatible
query I rowsort label-2481
SELECT ( - cor0.col0 ) / cor0.col0 + - 59 * - col0 FROM tab1 AS cor0
----
176
3775
4719

query I rowsort
SELECT DISTINCT col0 * - ( - col0 * ( - 55 ) ) FROM tab1 AS cor0
----
-225280
-352000
-495

onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT DISTINCT + 14 DIV cor0.col0 + col1 AS col2 FROM tab1 cor0
----
10
13
30

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + 14 / cor0.col0 + col1 AS col2 FROM tab1 cor0
----
10
13
30

query I rowsort
SELECT DISTINCT 79 * col0 + - col2 * 85 AS col2 FROM tab2 AS cor0
----
-1742
3011
3952

query I rowsort
SELECT ( col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + 60 * col1 - col0 * 22 AS col0 FROM tab2 AS cor0
----
-718
1706
1824

query I rowsort
SELECT ALL - col1 + 77 * col0 FROM tab2 AS cor0
----
508
5947
6066

query I rowsort
SELECT DISTINCT + col1 + 20 FROM tab1 cor0
----
30
33
46

skipif mysql # not compatible
query I rowsort
SELECT - 31 + col1 * + cor0.col1 * - CAST ( col0 AS REAL ) AS col0 FROM tab2 cor0
----
-22862
-271549
-6758

query I rowsort
SELECT col1 + ( col1 + + col2 ) FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT + col0 * + tab1.col2 * - 8 AS col2 FROM tab1
----
-1296
-29184
-61440

query I rowsort
SELECT + col1 * + col2 - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col0 + 60 * + 92 * col2 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
298080
314640
529920

query I rowsort
SELECT + cor0.col2 + col0 + col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT col1 + ( + col1 ) * + 56 AS col0 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + ( col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + col1 * col1 + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + col1 + cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - col2 * 43 AS col2 FROM tab1
----
-2322
-2451
-4128

query I rowsort
SELECT DISTINCT 35 FROM tab0, tab1, tab1 AS cor0, tab2
----
35

query I rowsort
SELECT ALL 10 + + 85 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT col1 * - col0 + - ( col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT - col2 * col2 * 63 AS col1 FROM tab0 AS cor0
----
-423612
-63
-68607

query I rowsort
SELECT + 68 + - col2 * - col1 - col1 FROM tab2 AS cor0
----
1543
697
874

query I rowsort
SELECT - cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT + col2 + col1 DIV col1 AS col0 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2507
SELECT + col2 + col1 / col1 AS col0 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT 37 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT DISTINCT - 30 FROM tab2, tab0 AS cor0
----
-30

query I rowsort
SELECT DISTINCT col1 * col2 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT + cor0.col0 + col1 * 19 - + col1 FROM tab2 AS cor0
----
1140
385
565

query I rowsort
SELECT - - 93 - + col2 FROM tab0 AS cor0
----
11
60
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT col1 + col0 DIV col2 - - col2 AS col2 FROM tab0 AS cor0
----
119
133
174

skipif mysql # not compatible
query I rowsort label-2513
SELECT col1 + col0 / col2 - - col2 AS col2 FROM tab0 AS cor0
----
119
133
174

query I rowsort
SELECT DISTINCT - - col1 + ( col1 ) + - col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col1 * - 74 + + col1 + col0 FROM tab1 AS cor0
----
-1895
-666
-869

query I rowsort
SELECT - col2 * col0 + col0 * col1 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col1 - col1 * + ( - ( - col2 ) ) FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL ( + col0 ) * col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + col1 * - 40 + col2 FROM tab2 AS cor0
----
-1213
-2334
-642

query I rowsort
SELECT ALL + + col0 * 80 FROM tab2 AS cor0
----
560
6240
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2522
SELECT col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + 40 AS col2 FROM tab1 AS cor0
----
104
120
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT - col1 DIV + ( ( col0 ) ) FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2524
SELECT - col1 / + ( ( col0 ) ) FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 * + col1 + + col1 col2 FROM tab1 AS cor0
----
-13507
-2002
-6390

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2527
SELECT + + col2 - + CAST( 60 AS SIGNED ) col0 FROM tab2 cor0
----
-22
-33
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2527
SELECT + + col2 - + CAST ( 60 AS INTEGER ) col0 FROM tab2 cor0
----
-22
-33
-34

query I rowsort
SELECT ALL - 14 FROM tab1
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * + 36 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d593df34466d6c036e257f6b2fb1c5a5

query I rowsort
SELECT + ( col2 ) + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT 99 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ALL cor0.col0 * col2 + - col0 AS col2 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 * - col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL ( col0 ) * - 59 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-123
-3719
-4624

query I rowsort
SELECT DISTINCT + 35 + cor0.col1 AS col1 FROM tab2 AS cor0
----
52
66
94

query I rowsort
SELECT ALL - 13 + - col1 + - col0 FROM tab1 cor0
----
-106
-42
-87

query I rowsort
SELECT col0 + + col2 + col0 AS col1 FROM tab1
----
185
256
60

query I rowsort
SELECT col2 - tab2.col1 * tab2.col2 FROM tab2
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT + col2 + - col2 DIV + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
52
54
74

skipif mysql # not compatible
query I rowsort label-2539
SELECT + col2 + - col2 / + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
52
54
74

query I rowsort
SELECT + col0 * + tab0.col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col2 * col1 + + col0 * tab2.col1 * col2 AS col0 FROM tab2
----
118118
5022
50388

query I rowsort
SELECT ALL + col1 + - col2 * - col2 AS col0 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + tab1.col2 * tab1.col1 * + col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT - col2 * + col1 + col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT col0 * tab0.col2 + col1 AS col0 FROM tab0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab2.col0 col2 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT ALL col0 DIV + col1 + + col1 * col2 + + col1 FROM tab0 cor0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL col0 / + col1 + + col1 * col2 + + col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col1 + - col1 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + col0 + - cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT - col1 + - col0 + col0 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT cor0.col2 * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT DISTINCT + 8 DIV - col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + 8 / - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - 68 * col2 * - col2 AS col2 FROM tab1 cor0
----
198288
220932
626688

query I rowsort
SELECT DISTINCT - - ( - col0 ) * + cor0.col2 + col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - - cor0.col0 * col2 * col2 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT + - col2 * + col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + ( col2 ) * - col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL col0 + col2 + cor0.col0 * col0 FROM tab0 AS cor0
----
1261
633
8092

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT DISTINCT col0 * col1 * col2 + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
119651
51033
5858

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT col0 * col1 * col2 + col0 / - col0 AS col1 FROM tab2 AS cor0
----
119651
51033
5858

query I rowsort
SELECT + col0 * col0 - - col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + col2 * + col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT col2 * col2 + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT ALL - col0 + + col2 * + col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + col1 > NULL
----

query I rowsort
SELECT ALL tab2.col2 - - col0 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + tab1.col2 + - col0 FROM tab1
----
105
112
50

query I rowsort
SELECT + tab0.col2 * col0 + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT + tab0.col0 * tab0.col0 * - col0 + + col2 AS col2 FROM tab0
----
-13791
-42874
-704887

query I rowsort
SELECT DISTINCT - col2 + - col2 - - col0 FROM tab1
----
-105
-112
-50

query I rowsort
SELECT + tab1.col1 + col0 + - col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - col0 + col0 + + tab0.col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - tab1.col2 * - col0 * col0 + + col0 - + col2 FROM tab1
----
233479
435
614384

query I rowsort
SELECT ALL col1 * tab2.col0 + col0 * col1 AS col0 FROM tab2
----
2686
434
9204

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT + col1 * col2 - + col0 AS col0 FROM tab0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT DISTINCT col2 * col1 DIV - col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT col2 * col1 / - col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT ALL + tab0.col1 DIV + col2 AS col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + tab0.col1 / + col2 AS col2 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL + cor0.col1 * + 13 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9c914214daa0ee760e7814a28dd64c98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2585
SELECT col2 DIV col0 + col2 col1 FROM tab1 AS cor0
----
57
72
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2585
SELECT col2 / col0 + col2 col1 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT col1 - col2 * - col2 * col0 FROM tab0
----
132
26222
598527

query I rowsort
SELECT ALL col2 * col0 * - col2 + col2 FROM tab1
----
-207879
-737184
-8694

onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT - col0 DIV col0 + col2 AS col1 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2588
SELECT - col0 / col0 + col2 AS col1 FROM tab2
----
25
26
37

query I rowsort
SELECT ALL tab0.col1 * - col1 * col1 + col1 AS col2 FROM tab0
----
-635970
-753480
-912576

query I rowsort
SELECT DISTINCT col1 * col1 + - col0 FROM tab1
----
36
673
89

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN col1 * + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + col2 * tab2.col0 AS col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT ALL col2 + col2 FROM tab0 WHERE NOT NULL <= ( - col1 * + col1 )
----

query I rowsort
SELECT DISTINCT - tab0.col1 * - col2 AS col2 FROM tab0
----
2838
7462
97

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT + col0 * col1 AS col2 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( col2 + col2 * tab0.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT - col1 + + col1 * col1 DIV col2 AS col1 FROM tab0
----
138
9
9312

skipif mysql # not compatible
query I rowsort label-2598
SELECT - col1 + + col1 * col1 / col2 AS col1 FROM tab0
----
138
9
9312

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN + col0 AND ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - tab1.col1 col0 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT ALL ( - tab0.col0 ) DIV tab0.col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL ( - tab0.col0 ) / tab0.col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 75 * cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-115050
-48450
-62775

query I rowsort
SELECT cor0.col0 + 39 FROM tab0 cor0
----
128
63
74

query I rowsort
SELECT + col2 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 16 * col1 + + col0 + - col1 FROM tab2
----
334
472
963

query I rowsort
SELECT + ( cor0.col0 ) * + 25 + col1 AS col1 FROM tab1 cor0
----
101
1610
2013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col1 col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 64 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * - col2 FROM tab0 cor0
----
-70
-7387
-816

query I rowsort
SELECT cor0.col2 * col0 - ( + col2 ) FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 * + col1 + col2 col0 FROM tab1 AS cor0
----
1380
567
759

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col0 + + ( col0 ) FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - 23 col2 FROM tab0 AS cor0
----
12
7275
769

onlyif mysql # use DIV operator for integer division
query I rowsort label-2615
SELECT ALL + - col2 DIV + col0 + + 55 FROM tab0 AS cor0
----
54
55
55

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + - col2 / + col0 + + 55 FROM tab0 AS cor0
----
54
55
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT + CAST( NULL AS SIGNED ) * 71 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2616
SELECT + CAST ( NULL AS INTEGER ) * 71 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 9 AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT - 79 + + 54 + - cor0.col1 FROM tab1, tab1 AS cor0
----
-35
-38
-51

query I rowsort
SELECT 88 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2620
SELECT - + col2 + - col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-2620
SELECT - + col2 + - col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT 45 + + col0 FROM tab0 AS cor0
----
134
69
80

query I rowsort
SELECT ALL - 96 - col2 AS col2 FROM tab0 cor0
----
-129
-178
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2624
SELECT - CAST( NULL AS SIGNED ) * tab0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2624
SELECT - CAST ( NULL AS INTEGER ) * tab0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 36 FROM tab1, tab1 cor0
----
36

query I rowsort
SELECT DISTINCT - cor0.col1 + - 96 FROM tab1 AS cor0
----
-106
-109
-122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 * col0 - - col2 col1 FROM tab2 AS cor0
----
-582
-6760
-6835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 27 * - ( col0 ) col1 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT - 41 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2630
SELECT ALL + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 15 + tab0.col1 AS col1 FROM tab0
----
101
106
112

query I rowsort
SELECT ( 90 ) + col2 AS col1 FROM tab0
----
123
172
91

query I rowsort
SELECT + col1 + 49 * + col1 FROM tab2 AS cor0
----
1550
2950
850

query I rowsort
SELECT ALL + + 73 * 84 FROM tab1 AS cor0
----
6132
6132
6132

query I rowsort
SELECT - - 37 AS col1 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ALL - 83 * ( cor0.col0 ) FROM tab1 AS cor0
----
-249
-5312
-6640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2637
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - 45 * col2 + col0 * - col2 FROM tab0 cor0
----
-10988
-2277
-80

query I rowsort
SELECT - - ( - cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 10 * + col2 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-3526
-5440
531

query I rowsort
SELECT + - col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + 93 FROM tab2
----
119
120
131

query I rowsort
SELECT ALL - 64 + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1470
582
773

query I rowsort
SELECT DISTINCT + + 66 AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL + - 78 + col2 * + col2 AS col0 FROM tab0 cor0
----
-77
1011
6646

query I rowsort
SELECT ALL - + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * col2 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col1 * + col1 - - col0 * col0 * col2 AS col1 FROM tab2
----
154703
236869
362

onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT col1 DIV ( 85 * - col2 ) + col0 DIV - col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
61
86
90

skipif mysql # not compatible
query I rowsort label-2649
SELECT col1 / ( 85 * - col2 ) + col0 / - col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
61
86
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2650
SELECT DISTINCT - - cor0.col1 DIV - col1 AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT - - cor0.col1 / - col1 AS col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT + - col1 * col0 + col1 * col2 FROM tab1 cor0
----
-70
1326
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - ( - cor0.col2 * + col1 + + col2 ) col2 FROM tab0 AS cor0
----
241230
671580
9312

query I rowsort
SELECT + cor0.col2 * + cor0.col2 + col2 FROM tab2 cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-2654
SELECT ALL + col2 + - 80 DIV col1 AS col0 FROM tab2 AS cor0
----
25
25
34

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL + col2 + - 80 / col1 AS col0 FROM tab2 AS cor0
----
25
25
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + + col0 col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2657
SELECT ALL - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 7 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL + 11 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT col1 * 22 AS col2 FROM tab1 AS cor0
----
220
286
572

onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT ALL - col0 DIV 8 + - ( col0 + + col0 ) FROM tab1 AS cor0
----
-136
-170
-6

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - col0 / 8 + - ( col0 + + col0 ) FROM tab1 AS cor0
----
-136
-170
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2662
SELECT ALL - ( col1 * CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - ( col1 * CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT ALL tab1.col0 + - CAST( 3 AS SIGNED ) AS col1 FROM tab1
----
0
61
77

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL tab1.col0 + - CAST ( 3 AS INTEGER ) AS col1 FROM tab1
----
0
61
77

query I rowsort
SELECT + col1 + - 31 AS col0 FROM tab2 AS cor0
----
-14
0
28

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT + col1 * 56 AS col1 FROM tab0 AS cor0
----
4816
5096
5432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2667
SELECT DISTINCT col1 * - CAST( col1 + col1 AS SIGNED ) FROM tab0 AS cor0
----
-14792
-16562
-18818

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT col1 * - CAST ( col1 + col1 AS INTEGER ) FROM tab0 AS cor0
----
-14792
-16562
-18818

query I rowsort
SELECT + - col0 * + col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + - cor0.col2 + 87 - - col1 * col0 AS col2 FROM tab0 cor0
----
2118
3481
8104

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT DISTINCT + col0 * ( + col2 ) DIV col0 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + col0 * ( + col2 ) / col0 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - + col2 * + col1 * ( col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
-119821
-32500
-75842

onlyif mysql # use DIV operator for integer division
query I rowsort label-2672
SELECT - col0 * - col0 - col2 DIV + col0 AS col0 FROM tab0 cor0
----
1225
575
7921

skipif mysql # not compatible
query I rowsort label-2672
SELECT - col0 * - col0 - col2 / + col0 AS col0 FROM tab0 cor0
----
1225
575
7921

query I rowsort
SELECT DISTINCT + col0 + - 82 FROM tab1 AS cor0
----
-18
-2
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + 51 col1 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT - + 83 + + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 0c0424dbc55e501ba56558ca6c15a93a

query I rowsort
SELECT DISTINCT + col0 + + tab2.col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL 32 + col0 + col1 AS col2 FROM tab0
----
142
164
212

query I rowsort
SELECT ALL col2 - col0 * tab0.col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-17
-31
-59

query I rowsort
SELECT ( col0 ) * col1 * - 76 AS col1 FROM tab1 AS cor0
----
-48640
-5928
-79040

query I rowsort
SELECT - col0 * - 81 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL cor0.col0 * - ( + 11 * - col1 ) AS col2 FROM tab0 cor0
----
22704
37345
89089

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2684
SELECT - col0 + CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort label-2684
SELECT - col0 + CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - col1 + ( cor0.col0 ) * col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT cor0.col2 * 88 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-3080
-642224
-69696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2687
SELECT col1 * + CAST( - col1 AS SIGNED ) - cor0.col2 FROM tab1 AS cor0
----
-157
-265
-730

skipif mysql # not compatible
query I rowsort label-2687
SELECT col1 * + CAST ( - col1 AS INTEGER ) - cor0.col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT ALL - cor0.col0 * - ( + col2 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT cor1.col1 + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1a063bfb694f348122cd0739295ca641

query I rowsort
SELECT + cor1.col1 * + 10 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9cffb0f1a0812c5b73cd3a925a52dd6f

query I rowsort
SELECT DISTINCT - ( col1 ) + - col0 * 48 FROM tab2 AS cor0
----
-367
-3803
-3809

query I rowsort
SELECT - col2 + col2 * + ( + col0 ) + + col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - ( col0 ) + tab1.col2 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT + col2 * col1 + 81 + + col1 FROM tab2
----
1674
744
949

query I rowsort
SELECT - 28 * + col0 AS col2 FROM tab2 AS cor0
----
-196
-2184
-2212

query I rowsort
SELECT ALL + - col0 * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - col0 + - col2 + - ( + col0 ) FROM tab0 AS cor0
----
-260
-71
-81

query I rowsort
SELECT - cor0.col2 * + cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

query I rowsort
SELECT ALL col0 + col1 * - col1 * col2 AS col2 FROM tab2 cor0
----
-10903
-25940
-90428

query I rowsort
SELECT DISTINCT + - col2 * col1 * 94 FROM tab2 AS cor0
----
-144196
-60724
-78678

query I rowsort
SELECT ALL + 41 + col0 FROM tab0 AS cor0
----
130
65
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT ALL + 44 + - col2 DIV - col1 col2 FROM tab2 AS cor0
----
44
44
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + 44 + - col2 / - col1 col2 FROM tab2 AS cor0
----
44
44
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2703
SELECT - CAST( NULL AS SIGNED ) * 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2703
SELECT - CAST ( NULL AS INTEGER ) * 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - cor0.col1 * col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + + cor0.col2 + + ( - col1 * - cor0.col1 ) FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT - - cor0.col2 + col1 DIV + col0 col1 FROM tab2 AS cor0
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2706
SELECT - - cor0.col2 + col1 / + col0 col1 FROM tab2 AS cor0
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 - + col1 col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - + col2 + - ( col1 ) * col2 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2710
SELECT - CAST( 33 AS SIGNED ) FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2710
SELECT - CAST ( 33 AS INTEGER ) FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT + - ( + cor0.col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col0 + + col1 * + col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL ( + tab2.col2 ) * col0 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - 32 + + col0 AS col0 FROM tab1 cor0
----
-29
32
48

query I rowsort
SELECT ( - cor0.col1 ) + + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 83 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1165
1321
487

query I rowsort
SELECT - + col1 + - col1 * - col1 AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT - - 28 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT ( col0 ) * 14 AS col2 FROM tab2 cor0
----
1092
1106
98

query I rowsort
SELECT - 19 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

onlyif mysql # use DIV operator for integer division
query I rowsort label-2721
SELECT DISTINCT + col1 DIV - 51 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT + col1 / - 51 FROM tab0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT - - CAST( NULL AS SIGNED ) * col0 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT - - CAST ( NULL AS INTEGER ) * col0 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 63 FROM tab0 AS cor0
----
-2079
-5166
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT ALL - - 46 DIV col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - - 46 / col1 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2725
SELECT ( - 87 ) + + col2 DIV col1 col0 FROM tab1 AS cor0
----
-80
-82
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2725
SELECT ( - 87 ) + + col2 / col1 col0 FROM tab1 AS cor0
----
-80
-82
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2726
SELECT + col1 * + col2 DIV - col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2726
SELECT + col1 * + col2 / - col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
92

query I rowsort
SELECT ALL - - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - tab0.col2 * + ( col2 + - col0 ) AS col1 FROM tab0
----
-297
34
574

onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT DISTINCT cor0.col2 DIV 30 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT cor0.col2 / 30 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
0
1
2

query I rowsort
SELECT ALL + ( + ( - col1 ) ) * tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2732
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + col1 * - col2 + - col0 AS col1 FROM tab2 cor0
----
-119730
-51113
-5866

query I rowsort
SELECT - cor0.col1 * + col0 + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort
SELECT col2 * + col1 * CAST ( col2 AS REAL ) FROM tab1
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - 23 col0 FROM tab0 AS cor0
----
-105
-24
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 99 col2 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT DISTINCT + col0 + + ( cor0.col1 * col1 ) FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT ALL col2 DIV - col1 - - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL col2 / - col1 - - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col0 + cor0.col0 * - 50 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT - col0 + col0 * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + tab1.col1 * col2 * 66 + col1 AS col0 FROM tab1
----
37630
82381
92690

query I rowsort
SELECT ALL col2 + - 6 FROM tab1
----
48
51
90

query I rowsort
SELECT DISTINCT + col0 + 76 * col0 * col1 AS col1 FROM tab0
----
156888
258055
615613

query I rowsort
SELECT ALL col2 + col1 * 42 AS col1 FROM tab1
----
1146
477
642

query I rowsort
SELECT DISTINCT tab1.col0 * col1 + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL + col1 + 42 * + col0 * col2 AS col0 FROM tab2
----
126101
7969
85235

query I rowsort
SELECT ALL + col1 * + cor0.col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + col1 + 60 AS col2 FROM tab0 cor0
----
146
151
157

query I rowsort
SELECT col1 + - col2 * + ( col0 * 10 + 0 ) AS col0 FROM tab0 AS cor0
----
-253
-72889
-7834

query I rowsort
SELECT - col1 + + 69 * 22 FROM tab0 AS cor0
----
1421
1427
1432

query I rowsort
SELECT DISTINCT - - col2 + - 85 * col0 FROM tab2 AS cor0
----
-568
-6604
-6677

query I rowsort
SELECT DISTINCT + cor0.col0 + - 34 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-1065
-2617
2

query I rowsort
SELECT ALL - - col0 - - 73 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT ALL + + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - 94 * - col2 + - col1 FROM tab1 AS cor0
----
5050
5348
9011

query I rowsort
SELECT DISTINCT + 91 + + 95 AS col0 FROM tab1 AS cor0
----
186

query I rowsort
SELECT + - 41 * 82 FROM tab2 AS cor0
----
-3362
-3362
-3362

query I rowsort
SELECT DISTINCT + + 56 + col0 AS col0 FROM tab0 AS cor0
----
145
80
91

query I rowsort
SELECT ALL cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2762
SELECT ALL - CAST( col1 AS SIGNED ) + col1 * cor0.col1 FROM tab2 AS cor0
----
272
3422
930

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - CAST ( col1 AS INTEGER ) + col1 * cor0.col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT - + 81 * + 11 + col0 * col2 FROM tab0 AS cor0
----
-856
-99
6407

query I rowsort
SELECT + 63 * col0 FROM tab2 AS cor0
----
441
4914
4977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 28 col2 FROM tab0
----
2408
2548
2716

query I rowsort
SELECT col1 * tab2.col1 - - col2 AS col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT tab0.col2 - - 7 AS col2 FROM tab0
----
40
8
89

query I rowsort
SELECT 48 + + col1 * - col0 * 27 AS col1 FROM tab2 AS cor0
----
-124206
-36213
-5811

query I rowsort
SELECT DISTINCT - + cor0.col1 + - 76 AS col1 FROM tab1 AS cor0
----
-102
-86
-89

query I rowsort
SELECT DISTINCT - 14 * - col0 AS col1 FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT DISTINCT - col0 * - col0 - + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT ALL + + col2 * 49 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT + 25 + cor0.col0 * + col1 * + 38 FROM tab2 AS cor0
----
174901
51059
8271

query I rowsort
SELECT + - 7 + - col2 * + cor0.col1 AS col1 FROM tab2 cor0
----
-1541
-653
-844

query I rowsort
SELECT - 40 + col1 AS col1 FROM tab1 AS cor0
----
-14
-27
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT col0 - + col1 DIV + ( col2 ) FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-2776
SELECT col0 - + col1 / + ( col2 ) FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT col0 * - col2 + col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - + col1 * col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + ( + col2 ) * col2 * - col0 - + col2 col2 FROM tab0 AS cor0
----
-23331
-591056
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-2780
SELECT DISTINCT - col2 + col2 DIV - ( ( cor0.col2 ) * + col1 ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT - col2 + col2 / - ( ( cor0.col2 ) * + col1 ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2781
SELECT ALL + 31 + - col1 DIV + col1 FROM tab2 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL + 31 + - col1 / + col1 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT + col0 + col0 * ( col1 ) - + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col0 * + col0 * - cor0.col1 + + cor0.col2 AS col0 FROM tab0 cor0
----
-118824
-49503
-720729

query I rowsort
SELECT + col0 + - cor0.col0 + - 19 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT DISTINCT - col2 + 23 DIV col0 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - col2 + 23 / col0 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT ALL col1 * col2 - + cor0.col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT col1 + tab0.col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT + - ( + 28 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2789
SELECT DISTINCT col0 - - col0 * CAST( col2 AS SIGNED ) FROM tab2
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT col0 - - col0 * CAST ( col2 AS INTEGER ) FROM tab2
----
196
2106
3081

query I rowsort
SELECT 59 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT 49 FROM tab2, tab0, tab0 AS cor0
----
49

query I rowsort
SELECT tab1.col0 + + 4 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c53b29a113bdd39b099b948a7079a449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 19 col2 FROM tab0 cor0
----
19

query I rowsort
SELECT + - ( 83 ) FROM tab1 cor0
----
-83
-83
-83

query I rowsort
SELECT - col0 + col1 * - 73 FROM tab1 cor0
----
-1029
-1901
-794

query I rowsort
SELECT + col2 * + col1 + 69 * 72 FROM tab0 AS cor0
----
12430
5065
7806

query I rowsort
SELECT - + 67 - - col1 AS col1 FROM tab2 AS cor0
----
-36
-50
-8

query I rowsort
SELECT ALL - col2 * col1 + 98 FROM tab0 AS cor0
----
-2740
-7364
1

query I rowsort
SELECT - col1 * col0 + cor0.col0 AS col2 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - col2 + col2 * + col0 AS col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT DISTINCT tab1.col2 + col0 * col1 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT + 37 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - ( tab2.col0 ) + col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT 98 * + ( - col1 ) AS col0 FROM tab1
----
-1274
-2548
-980

query I rowsort
SELECT - 72 + col2 * tab2.col1 FROM tab2
----
1462
574
765

onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT + - col0 DIV + col0 - cor0.col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2807
SELECT + - col0 / + col0 - cor0.col0 / col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 + + cor0.col0 * + col2 * col1 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT - - col2 + + ( - 29 ) * + col0 FROM tab2 AS cor0
----
-176
-2236
-2253

query I rowsort
SELECT DISTINCT - col1 * col2 * cor0.col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + cor0.col1 * col2 + 73 + col1 AS col2 FROM tab1 AS cor0
----
1334
1503
653

query I rowsort
SELECT DISTINCT - + col1 + + ( + 12 ) AS col1 FROM tab2 AS cor0
----
-19
-47
-5

query I rowsort
SELECT + + col1 + ( - 21 ) * - col0 FROM tab1 AS cor0
----
1354
1693
89

query I rowsort
SELECT ALL + col1 + - col1 * + 59 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT DISTINCT col0 * 3 * cor0.col2 + + col1 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
167
21896
2438

query I rowsort
SELECT ALL + col1 * 46 AS col1 FROM tab2 AS cor0
----
1426
2714
782

onlyif mysql # use DIV operator for integer division
query I rowsort label-2817
SELECT - col2 DIV col2 - - col1 AS col0 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2817
SELECT - col2 / col2 - - col1 AS col0 FROM tab1
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 * + col1 * tab2.col0 col0 FROM tab2
----
22793
271492
6700

query I rowsort
SELECT ALL + ( col0 ) + - 99 + 46 AS col2 FROM tab2
----
-46
25
26

query I rowsort
SELECT col2 * col0 - 42 * 1 FROM tab2
----
147
1986
2960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2821
SELECT DISTINCT col1 * - col1 + CAST( 31 AS SIGNED ) + col1 AS col1 FROM tab0
----
-7279
-8159
-9281

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT col1 * - col1 + CAST ( 31 AS INTEGER ) + col1 AS col1 FROM tab0
----
-7279
-8159
-9281

query I rowsort
SELECT - cor0.col2 + 19 * col1 FROM tab1 AS cor0
----
133
151
440

query I rowsort
SELECT + col1 * 71 AS col0 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT DISTINCT col2 * + col2 * col0 AS col2 FROM tab2
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT DISTINCT col1 * - tab0.col2 DIV col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT col1 * - tab0.col2 / col2 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT col2 DIV col0 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-2826
SELECT col2 / col0 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT DISTINCT col0 * - col1 * col2 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + 79 + + col1 AS col2 FROM tab0 AS cor0
----
165
170
176

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - 28 AS REAL ) * + cor0.col2 + + col1 + + col1 * cor0.col2 FROM tab1 AS cor0
----
2176
2942
3949

query I rowsort
SELECT + + ( + col2 ) * col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2831
SELECT - + CAST( NULL AS SIGNED ) + 38 * + col2 + + 69 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT - + CAST ( NULL AS INTEGER ) + 38 * + col2 + + 69 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 70 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT ALL + tab0.col0 DIV 82 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + tab0.col0 / 82 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL - tab2.col1 + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d924577a04b3a692cbbd2348e6f8e88f

query I rowsort
SELECT ALL 5 * col0 FROM tab2
----
35
390
395

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT + col1 + + cor0.col0 DIV col2 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-2837
SELECT + col1 + + cor0.col0 / col2 FROM tab1 AS cor0
----
11
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT + 2 DIV 86 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2838
SELECT + 2 / 86 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT - col1 * col0 - + col0 DIV - 39 FROM tab2 AS cor0
----
-1341
-217
-4600

skipif mysql # not compatible
query I rowsort label-2839
SELECT - col1 * col0 - + col0 / - 39 FROM tab2 AS cor0
----
-1341
-217
-4600

query I rowsort
SELECT ALL + cor0.col2 * col0 + ( - col1 ) FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL + col0 + col2 + - 98 FROM tab2 cor0
----
-64
19
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT DISTINCT + + col0 DIV 11 FROM tab1 AS cor0
----
0
5
7

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + + col0 / 11 FROM tab1 AS cor0
----
0
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2843
SELECT - - col2 * CAST( + col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-2843
SELECT - - col2 * CAST ( + col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - - col1 * ( 15 ) + + cor0.col2 + ( - cor0.col1 * - col2 ) AS col0 FROM tab0 AS cor0
----
1553
4161
8909

query I rowsort
SELECT + cor0.col2 * col1 + ( col2 ) FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort
SELECT + col2 + CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + - 97 + - col0 * 8 AS col0 FROM tab1 AS cor0
----
-121
-609
-737

query I rowsort
SELECT col1 * col1 + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + + 5 * col1 AS col0 FROM tab1 AS cor0
----
130
50
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * + 24 * - col1 col1 FROM tab1 AS cor0
----
-16227
-2464
-4136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col0 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + - 20 AS col1 FROM tab2 AS cor0
----
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2853
SELECT ALL 31 + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL 31 + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 61 * - col0 AS col2 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT - 64 + col2 AS col2 FROM tab0 AS cor0
----
-31
-63
18

query I rowsort
SELECT DISTINCT + 62 * col1 FROM tab2 AS cor0
----
1054
1922
3658

query I rowsort
SELECT + - 14 + + col1 * col2 FROM tab2 AS cor0
----
1520
632
823

query I rowsort
SELECT - 42 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab1 cor2
----
243 values hashing to 1a05cd60433a84253c14ff5966129ac6

query I rowsort
SELECT DISTINCT - col0 + 96 AS col2 FROM tab0 AS cor0
----
61
7
72

query I rowsort
SELECT 8 AS col1 FROM tab0
----
8
8
8

query I rowsort
SELECT ALL - - col1 * - col1 + cor0.col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL + + col2 * - col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - ( col0 ) col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - col2 + + col0 * - tab1.col1 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT + - ( + 70 ) * - col1 + 30 AS col2 FROM tab2 AS cor0
----
1220
2200
4160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - 81 col0 FROM tab0 AS cor0
----
-48
-80
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT + 61 DIV - col1 AS col0 FROM tab1 cor0
----
-2
-4
-6

skipif mysql # not compatible
query I rowsort label-2867
SELECT + 61 / - col1 AS col0 FROM tab1 cor0
----
-2
-4
-6

query I rowsort
SELECT ALL 1 + + col0 * tab2.col1 + + tab2.col2 * + col0 * - tab2.col1 FROM tab2
----
-115049
-49690
-5641

query I rowsort
SELECT - col1 * + 39 + + col0 AS col2 FROM tab2 AS cor0
----
-1202
-2223
-584

query I rowsort
SELECT DISTINCT - 8 + - 13 * col2 FROM tab0
----
-1074
-21
-437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 + 40 col2 FROM tab2
----
118
119
47

query I rowsort
SELECT DISTINCT tab0.col1 + - col0 * col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT 72 + - col1 FROM tab1
----
46
59
62

query I rowsort
SELECT ALL - col0 * col0 * + 17 FROM tab1 AS cor0
----
-108800
-153
-69632

onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT col2 DIV col0 + col0 * 21 FROM tab0 AS cor0
----
1869
505
735

skipif mysql # not compatible
query I rowsort label-2875
SELECT col2 / col0 + col0 * 21 FROM tab0 AS cor0
----
1869
505
735

query I rowsort
SELECT - 37 * - col2 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
2679
3402
4800

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 23 AS REAL ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT ALL 30 * + col0 AS col2 FROM tab1
----
1920
2400
90

query I rowsort
SELECT - col2 + + col2 * ( col2 + col1 ) AS col0 FROM tab1
----
10368
3762
4266

query I rowsort
SELECT + col0 + - col2 * col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT col1 * col0 + + col1 * - col2 FROM tab1
----
-1326
-208
70

query I rowsort
SELECT - - col1 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + ( col1 ) + - 73 FROM tab2 AS cor0
----
-14
-42
-56

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * ( col2 ) * col1 FROM tab0 AS cor0
----
611795
62
93630

query I rowsort
SELECT - cor2.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5

query I rowsort
SELECT ALL + col1 + ( - col0 ) * - col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - ( col1 ) + col1 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT + CAST( NULL AS SIGNED ) * - col1 * - col2 + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT + CAST ( NULL AS INTEGER ) * - col1 * - col2 + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col2 ) + + cor0.col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - + col2 * ( - col2 ) + - col1 * + col2 * col2 FROM tab1 AS cor0
----
-110592
-29241
-72900

query I rowsort
SELECT DISTINCT + ( 75 ) FROM tab0 cor0
----
75

query I rowsort
SELECT + 88 + 89 - + col0 * - ( ( + cor0.col0 ) ) FROM tab1 cor0
----
186
4273
6577

onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT DISTINCT + ( - col1 ) DIV col2 + 89 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
-111072
-124956
-50730

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT + ( - col1 ) / col2 + 89 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
-111072
-124956
-50730

onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT - col0 DIV - col0 + + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-2895
SELECT - col0 / - col0 + + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col0 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - - col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL col2 * + col2 * col2 + + ( - col1 ) FROM tab2 AS cor0
----
17517
19652
54855

query I rowsort
SELECT DISTINCT - - col1 + col1 - - col2 AS col1 FROM tab0 AS cor0
----
195
205
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 + + col1 col1 FROM tab0 AS cor0
----
185
190
196

query I rowsort
SELECT ( - 44 ) AS col0 FROM tab0 AS cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL cor0.col2 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + col2 + + 50 FROM tab1 AS cor0
----
104
107
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab0
----
74
74
74

query I rowsort
SELECT - 41 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

onlyif mysql # use DIV operator for integer division
query I rowsort label-2907
SELECT ALL + - col2 * + 26 + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-2131
-25
-857

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL + - col2 * + 26 + col1 / col1 AS col1 FROM tab0 AS cor0
----
-2131
-25
-857

query I rowsort
SELECT ALL - col0 * 96 + 52 FROM tab1 AS cor0
----
-236
-6092
-7628

query I rowsort
SELECT + col0 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - 97 + cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a2d11b2bd1bf2ad5eaaa249b4370d624

query I rowsort
SELECT + cor0.col1 * 98 FROM tab1 cor0
----
1274
2548
980

query I rowsort
SELECT ALL - 63 + + col1 * col1 FROM tab2 AS cor0
----
226
3418
898

query I rowsort
SELECT ALL col2 * col1 - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT DISTINCT 37 + 89 FROM tab2 AS cor0
----
126

query I rowsort
SELECT ALL - + col0 + - col1 - - cor0.col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + ( + col0 ) * + tab1.col1 + + col1 AS col2 FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2917
SELECT + 17 DIV cor0.col0 + col1 + + 33 * - col1 * col2 FROM tab2 AS cor0
----
-21301
-27588
-50563

skipif mysql # not compatible
query I rowsort label-2917
SELECT + 17 / cor0.col0 + col1 + + 33 * - col1 * col2 FROM tab2 AS cor0
----
-21301
-27588
-50563

query I rowsort
SELECT + ( - col1 ) * col0 * - 71 + 65 AS col2 FROM tab2 AS cor0
----
15472
326807
95418

onlyif mysql # use DIV operator for integer division
query I rowsort label-2919
SELECT ALL + cor0.col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + cor0.col0 / - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 33 + - col0 FROM tab1 cor0
----
-31
-47
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col2 * + col0 * col1 + col0 * col0 - cor0.col1 * ( col0 ) FROM tab2 AS cor0
----
121134
55932
5691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2923
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT ALL + CAST( + col0 AS SIGNED ) DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + CAST ( + col0 AS INTEGER ) / cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT 5 + - col1 FROM tab1 cor0
----
-21
-5
-8

query I rowsort
SELECT ALL 28 * - col0 AS col1 FROM tab2 cor0
----
-196
-2184
-2212

query I rowsort
SELECT - + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - ( col0 ) * + 90 FROM tab2 AS cor0
----
-630
-7020
-7110

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT col2 DIV - col0 + + col2 AS col2 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-2930
SELECT col2 / - col0 + + col2 AS col2 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL - col0 * col2 * 10 FROM tab0 cor0
----
-350
-72980
-7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + - 84 col2 FROM tab2 AS cor0
----
-46
-57
-58

query I rowsort
SELECT ALL - + col1 + + col0 - - 9 FROM tab2 AS cor0
----
-15
28
71

query I rowsort
SELECT ALL - 20 + 96 FROM tab1
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 + - 88 * tab0.col2 col2 FROM tab0
----
-2880
-53
-7127

onlyif mysql # use DIV operator for integer division
query I rowsort label-2937
SELECT + + col0 DIV col0 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2937
SELECT + + col0 / col0 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT + + cor0.col2 * + cor0.col1 + 55 FROM tab1 AS cor0
----
1303
1459
625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col0 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT - - col1 + - col2 * 3 FROM tab1 AS cor0
----
-136
-161
-275

query I rowsort
SELECT - col0 * cor0.col1 + 39 * col0 + col0 * 28 FROM tab2 AS cor0
----
252
3950
624

query I rowsort
SELECT 68 * - col1 FROM tab2
----
-1156
-2108
-4012

query I rowsort
SELECT DISTINCT 24 * - col1 FROM tab1
----
-240
-312
-624

query I rowsort
SELECT - ( - cor0.col1 ) + col2 - col2 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT + + cor0.col2 + cor0.col2 DIV col2 + - col1 AS col1 FROM tab1 AS cor0
----
29
48
84

skipif mysql # not compatible
query I rowsort label-2945
SELECT + + cor0.col2 + cor0.col2 / col2 + - col1 AS col1 FROM tab1 AS cor0
----
29
48
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * - col1 * + col0 col2 FROM tab2
----
14539
308334
89981

query I rowsort
SELECT ALL 60 * + 53 FROM tab1
----
3180
3180
3180

query I rowsort
SELECT ( tab1.col0 ) * col1 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2949
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - tab2.col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT - CAST ( NULL AS REAL ) * - tab2.col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 9 * - tab0.col2 * + col1 FROM tab0
----
-25542
-67158
-873

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab0, tab1, tab0 AS cor0
----
88

query I rowsort
SELECT ALL - 43 FROM tab2, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT + 48 * - col2 FROM tab0
----
-1584
-3936
-48

query I rowsort
SELECT + col1 * 48 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
1495
2910
895

query I rowsort
SELECT - + col1 + 7 * + col1 * - 3 AS col1 FROM tab1 AS cor0
----
-220
-286
-572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2956
SELECT ALL + CAST( NULL AS DECIMAL ) + - cor0.col0 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + CAST ( NULL AS REAL ) + - cor0.col0 col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2957
SELECT DISTINCT tab1.col1 + 9 DIV 57 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT tab1.col1 + 9 / 57 FROM tab1
----
10
13
26

query I rowsort
SELECT + cor0.col0 + - 4 * 59 FROM tab2 AS cor0
----
-157
-158
-229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2959
SELECT - col2 * CAST( 35 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-23660
-25515
-50540

skipif mysql # not compatible
query I rowsort label-2959
SELECT - col2 * CAST ( 35 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-23660
-25515
-50540

query I rowsort
SELECT - col0 + 11 * - col0 FROM tab1 AS cor0
----
-36
-768
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT - cor0.col2 DIV col0 + - col1 * - col1 FROM tab1 AS cor0
----
100
168
658

skipif mysql # not compatible
query I rowsort label-2961
SELECT - cor0.col2 / col0 + - col1 * - col1 FROM tab1 AS cor0
----
100
168
658

query I rowsort
SELECT - 95 + - col0 AS col0 FROM tab1 cor0
----
-159
-175
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2963
SELECT DISTINCT cor0.col2 DIV 54 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT cor0.col2 / 54 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - ( + col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT + col1 + + 35 + col1 DIV ( col2 * + col2 ) FROM tab0 AS cor0
----
121
126
229

skipif mysql # not compatible
query I rowsort label-2965
SELECT + col1 + + 35 + col1 / ( col2 * + col2 ) FROM tab0 AS cor0
----
121
126
229

query I rowsort
SELECT ALL - 38 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT - + 73 + + 25 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL - cor0.col0 + + col0 - col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + col0 + + 76 FROM tab0 AS cor0
----
-13
41
52

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2972
SELECT ALL + col2 + CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL + col2 + CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 - col1 * - col1 * + 24 FROM tab2 AS cor0
----
22875
3934
81516

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2974
SELECT ALL - col2 * + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL - col2 * + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col2 * + 62 + - 47 AS col1 FROM tab2 AS cor0
----
-1659
-1721
-2403

query I rowsort
SELECT ALL - col0 + 76 FROM tab2 AS cor0
----
-2
-3
69

query I rowsort
SELECT col0 + + 88 AS col0 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT ALL + + col2 - 13 FROM tab0 AS cor0
----
-12
20
69

query I rowsort
SELECT DISTINCT 70 * col2 AS col2 FROM tab2
----
1820
1890
2660

onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT ALL + col1 * - tab2.col0 - col0 DIV col0 AS col0 FROM tab2
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + col1 * - tab2.col0 - col0 / col0 AS col0 FROM tab2
----
-1344
-218
-4603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT + col1 + 64 FROM tab1 AS cor0
----
74
77
90

query I rowsort
SELECT DISTINCT + + col1 + + 4 AS col0 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT + col1 + col0 * 58 FROM tab0 AS cor0
----
1478
2127
5253

onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT ALL + col0 DIV col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + col0 / col1 AS col2 FROM tab1
----
0
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2986
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT tab2.col0 + + 37 FROM tab2
----
115
116
44

query I rowsort
SELECT - col1 + 32 + col1 * - col2 * col2 FROM tab0
----
-162
-611943
-93708

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * + CAST ( + col0 AS REAL ) - col0 * + CAST ( col1 + - col1 AS REAL ) * + tab2.col2 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT 97 AS col1 FROM tab2, tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT - col1 * 76 + + col0 FROM tab1 AS cor0
----
-1973
-696
-908

query I rowsort
SELECT col2 + + 28 + - col2 AS col0 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT DISTINCT + col0 * ( - 77 ) + - col1 * - tab2.col0 + + tab2.col2 DIV + col0 AS col1 FROM tab2
----
-1404
-319
-4740

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + col0 * ( - 77 ) + - col1 * - tab2.col0 + + tab2.col2 / + col0 AS col1 FROM tab2
----
-1404
-319
-4740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2994
SELECT DISTINCT - tab0.col1 + - CAST( 64 * - col2 AS SIGNED ) + 0 * - tab0.col0 FROM tab0
----
-33
2026
5157

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT - tab0.col1 + - CAST ( 64 * - col2 AS INTEGER ) + 0 * - tab0.col0 FROM tab0
----
-33
2026
5157

query I rowsort
SELECT col1 * - 89 FROM tab0
----
-7654
-8099
-8633

query I rowsort
SELECT col1 * - col1 + col1 + tab2.col1 FROM tab2
----
-255
-3363
-899

query I rowsort
SELECT - ( - col1 ) * tab2.col1 + col0 AS col1 FROM tab2
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * cor0.col2 * 19 col0 FROM tab1 AS cor0
----
-175104
-55404
-61731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2999
SELECT + - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2999
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 30 - + col0 * tab0.col2 AS col0 FROM tab0
----
-65
-7328
-822

onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT ( tab1.col0 * col0 ) + col1 DIV col1 AS col0 FROM tab1
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-3001
SELECT ( tab1.col0 * col0 ) + col1 / col1 AS col0 FROM tab1
----
10
4097
6401

query I rowsort
SELECT ALL - 18 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT + ( - 91 ) - - col1 FROM tab1
----
-65
-78
-81

query I rowsort
SELECT 67 - - col0 FROM tab0
----
102
156
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) + - col1 AS col0 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT ALL - ( col0 ) + tab2.col1 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) + - col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + 21 + col1 AS col1 FROM tab1
----
31
34
47

query I rowsort
SELECT ALL col2 * cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col0 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT - 50 * col2 + + 50 FROM tab1 AS cor0
----
-2650
-2800
-4750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 14 * col2 + - col0 * + col2 FROM tab0
----
-21
-330
-6150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 * - col2 col1 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT + 90 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
90

query I rowsort
SELECT ALL - - tab2.col1 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + + 18 FROM tab2 cor0
----
18

query I rowsort
SELECT DISTINCT + 16 * + col2 * col1 AS col2 FROM tab0
----
119392
1552
45408

onlyif mysql # use DIV operator for integer division
query I rowsort label-3020
SELECT col1 DIV - CAST( col2 AS SIGNED ) FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3020
SELECT col1 / - CAST ( col2 AS INTEGER ) FROM tab0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT + col2 + 69 + col0 * + col1 DIV + ( - col1 ) AS col2 FROM tab1
----
120
62
85

skipif mysql # not compatible
query I rowsort label-3021
SELECT + col2 + 69 + col0 * + col1 / + ( - col1 ) AS col2 FROM tab1
----
120
62
85

query I rowsort
SELECT ALL + col2 + ( col0 * - col1 ) + + col0 FROM tab2
----
-1226
-183
-4498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 3 * 37 * - col0 col0 FROM tab2
----
808
8717
8786

onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT ALL - col2 DIV col1 - - 54 FROM tab0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - col2 / col1 - - 54 FROM tab0
----
54
54
54

query I rowsort
SELECT ALL ( 89 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1157
-2314
-890

onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT + CAST( - col2 AS SIGNED ) DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT + CAST ( - col2 AS INTEGER ) / col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - + col1 + col2 * + col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + col2 + col1 * + cor0.col1 AS col2 FROM tab2 cor0
----
327
3507
988

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab2 cor1, tab1 cor2
----
3645 values hashing to 1e12915106866c102f2d9f96f9233144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3030
SELECT DISTINCT CAST( ( col2 ) * col0 AS SIGNED ) FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT CAST ( ( col2 ) * col0 AS INTEGER ) FROM tab0
----
35
7298
792

query I rowsort
SELECT - ( + col0 ) * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - ( - 2 ) * col1 - col2 AS col0 FROM tab2 AS cor0
----
-4
35
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT - + cor0.col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT - + cor0.col1 / col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL - + col0 + - col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col1 * col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - + ( - 46 ) + - col2 - - 29 * - col0 FROM tab1 AS cor0
----
-1867
-2370
-95

query I rowsort
SELECT + 30 - + col2 * col0 AS col0 FROM tab2 AS cor0
----
-159
-1998
-2972

query I rowsort
SELECT - 2 * col0 FROM tab1
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT col1 DIV + 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT col1 / + 93 FROM tab2
----
0
0
0

query I rowsort
SELECT + cor0.col2 * 70 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0ea18876fb6432465347ee9a2c6025c4

query I rowsort
SELECT + - col0 * 72 FROM tab0 cor0
----
-1728
-2520
-6408

query I rowsort
SELECT col1 * ( col0 * ( - col2 ) ) + + col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT - col2 * cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 * - col2 + col0 * cor0.col1 col2 FROM tab2 cor0
----
1594
3281
5928

query I rowsort
SELECT - ( + col1 ) + ( 63 ) AS col1 FROM tab1 cor0
----
37
50
53

query I rowsort
SELECT ALL - ( col1 ) + col0 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1506
695
705

query I rowsort
SELECT DISTINCT + + ( col0 ) * - ( - col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT tab0.col0 + + 98 * + col2 FROM tab0
----
133
3258
8125

query I rowsort
SELECT - col2 * 32 AS col1 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT DISTINCT - - 93 AS col0 FROM tab1 cor0
----
93

query I rowsort
SELECT ALL - 94 + + col2 FROM tab1 AS cor0
----
-37
-40
2

query I rowsort
SELECT col0 * ( 87 ) FROM tab2 AS cor0
----
609
6786
6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT col0 + - col0 DIV col2 FROM tab1 AS cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-3053
SELECT col0 + - col0 / col2 FROM tab1 AS cor0
----
3
63
80

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL 69 * - 95 FROM tab1, tab1 AS cor0
----
9 values hashing to c50c2d8c81d98cb46e6c3f72fef9d5ca

query I rowsort
SELECT ALL - 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT - cor0.col1 * cor0.col0 + 32 FROM tab0 cor0
----
-2032
-3363
-8067

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3058
SELECT DISTINCT - - cor0.col1 * + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT - - cor0.col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT - col1 DIV tab2.col0 AS col1 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3060
SELECT - col1 / tab2.col0 AS col1 FROM tab2
----
-4
0
0

query I rowsort
SELECT - - col0 * col1 + col1 + col0 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT DISTINCT col1 * col0 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT DISTINCT col2 + + 69 AS col1 FROM tab1 cor0
----
123
126
165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3064
SELECT col0 * CAST( NULL AS SIGNED ) * - col1 - - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3064
SELECT col0 * CAST ( NULL AS INTEGER ) * - col1 - - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 8 - col1 AS col1 FROM tab0
----
-78
-83
-89

query I rowsort
SELECT ALL tab1.col2 * + col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL cor0.col1 * tab1.col2 AS col0 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 057c756e3faeb9224a0be0f0b883f2bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col0 FROM tab2, tab1, tab0 AS cor0
----
98

query I rowsort
SELECT ALL - ( - cor1.col2 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + col1 * col0 * - ( - cor0.col0 * 97 ) + - col1 + col0 AS col1 FROM tab1 AS cor0
----
22675
3973174
8070467

onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT ALL - - col2 * 16 DIV + ( col1 ) FROM tab0 AS cor0
----
0
14
6

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - - col2 * 16 / + ( col1 ) FROM tab0 AS cor0
----
0
14
6

query I rowsort
SELECT ALL col0 * - 67 FROM tab1 cor0
----
-201
-4288
-5360

query I rowsort
SELECT col0 + + ( - col2 ) - col1 FROM tab1 AS cor0
----
-29
-3
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 WHERE + col2 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col1 + tab2.col0 )
----

query I rowsort
SELECT ALL col2 * + col0 + + col0 FROM tab0
----
70
7387
816

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col2 * + col2 + + col1 AND ( col1 + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT - col1 DIV + tab1.col0 col1 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3078
SELECT - col1 / + tab1.col0 col1 FROM tab1
----
-8
0
0

query I rowsort
SELECT ALL + col0 + - col0 * col0 AS col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT col0 + col1 * - col2 AS col2 FROM tab1 WHERE NOT - col1 = col2
----
-1168
-1401
-506

query I rowsort
SELECT col2 + col0 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - tab0.col0 + col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + col1 * - col1 + col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT + col0 * - col2 - col0 AS col0 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT col0 * + col2 + + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL - col1 * col1 + - col2 * tab1.col1 FROM tab1
----
-1417
-2080
-670

query I rowsort
SELECT - - col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col2 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + + col0 * - col1 * - col2 + - 44 AS col1 FROM tab0 AS cor0
----
3386
671372
68860

query I rowsort
SELECT cor0.col0 + + col2 * - 17 AS col2 FROM tab1 AS cor0
----
-1552
-905
-915

query I rowsort
SELECT + + 15 * - col1 + col0 AS col1 FROM tab2 cor0
----
-176
-458
-807

query I rowsort
SELECT ALL + 4 + - col2 * - 48 FROM tab2 AS cor0
----
1252
1300
1828

query I rowsort
SELECT DISTINCT 34 * - col1 AS col0 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT ALL + + cor0.col1 * + col0 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT 50 + - col0 DIV tab1.col1 AS col0 FROM tab1
----
44
44
50

skipif mysql # not compatible
query I rowsort label-3095
SELECT 50 + - col0 / tab1.col1 AS col0 FROM tab1
----
44
44
50

query I rowsort
SELECT DISTINCT + 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + col0 col0 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT DISTINCT + col0 - col1 AS col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT col1 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL - col0 * - cor0.col2 + + col2 + col1 * col2 FROM tab0 AS cor0
----
133
14842
3663

onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT ALL - + col0 DIV - col2 + ( - cor0.col0 ) col0 FROM tab1 AS cor0
----
-3
-63
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - + col0 / - col2 + ( - cor0.col0 ) col0 FROM tab1 AS cor0
----
-3
-63
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col2 - col1 col1 FROM tab2 cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT + col2 * - col1 * col1 + - col1 FROM tab0 AS cor0
----
-244154
-679133
-9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3104
SELECT DISTINCT - col2 + CAST( - col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - col2 + CAST ( - col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + - cor0.col2 + ( + col1 ) * - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - - col0 + + 99 FROM tab0 AS cor0
----
123
134
188

query I rowsort
SELECT 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-3108
SELECT col1 * - col0 DIV CAST( + col0 AS SIGNED ) + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT col1 * - col0 / CAST ( + col0 AS INTEGER ) + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab1, tab2 cor0
----
-77

query I rowsort
SELECT ALL ( - col2 ) - col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + col0 * 86 + - col0 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT ALL + cor0.col1 * col0 - - col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT + col2 + + col1 DIV col0 AS col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3113
SELECT + col2 + + col1 / col0 AS col2 FROM tab0
----
3
36
83

query I rowsort
SELECT - ( - col2 ) * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ( 54 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + ( - cor0.col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ( + col1 ) * - col0 + + ( + col0 ) FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 * - col2 * col1 col0 FROM tab0 AS cor0
----
170280
447720
5820

query I rowsort
SELECT 83 * - col0 FROM tab1
----
-249
-5312
-6640

query I rowsort
SELECT + tab2.col1 * + col1 - col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT ALL - - 34 * - cor0.col2 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT - col2 + + col2 * + col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + + col0 * col2 * col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + cor0.col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT + col2 * + 55 FROM tab0
----
1815
4510
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3126
SELECT DISTINCT - col0 * - ( col1 ) + CAST( NULL AS DECIMAL ) * 4 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - col0 * - ( col1 ) + CAST ( NULL AS REAL ) * 4 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + - tab2.col2 col0 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT col0 * - col2 + col1 * ( 46 ) AS col1 FROM tab2
----
-2220
1237
686

query I rowsort
SELECT ( - col0 * tab1.col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL col0 - ( - cor0.col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - col0 + - ( col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col2 + cor0.col0 + + col0 col0 FROM tab2 AS cor0
----
-175
-1872
-2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT cor0.col2 DIV cor0.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to dd2a1e9fc863524e3326dbd164233e1f

skipif mysql # not compatible
query I rowsort label-3134
SELECT cor0.col2 / cor0.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to dd2a1e9fc863524e3326dbd164233e1f

query I rowsort
SELECT - col1 + - col1 - col1 AS col0 FROM tab2 AS cor0
----
-177
-51
-93

query I rowsort
SELECT - - col2 * - 28 AS col2 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT + + col0 + + 35 AS col0 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT + 4 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + col1 * 76 AS col2 FROM tab0
----
6536
6916
7372

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT + + 56 * + col1 AS col0 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT - - cor0.col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 9 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT ALL col2 * col1 * col2 AS col2 FROM tab2
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 81 + - cor0.col0 col2 FROM tab2 AS cor0
----
-159
-160
-88

query I rowsort
SELECT DISTINCT + ( - 39 ) * col2 FROM tab0
----
-1287
-3198
-39

query I rowsort
SELECT 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL ( col1 ) * + col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) + - 23 * - cor0.col2 col1 FROM tab1 AS cor0
----
1216
1301
2195

query I rowsort
SELECT + 52 * - col0 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT - - cor0.col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 76 + - col2 col1 FROM tab2 AS cor0
----
505
5902
5966

query I rowsort
SELECT DISTINCT col1 * + ( cor0.col0 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT cor0.col2 * - 91 FROM tab1 AS cor0
----
-4914
-5187
-8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT DISTINCT + col2 + - col2 DIV + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + col2 + - col2 / + col2 FROM tab0 AS cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT 22 * + 71 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3408109de511330d0a1477fdf184c784

query I rowsort
SELECT + col0 * - col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT + + cor0.col1 DIV col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3159
SELECT + + cor0.col1 / col0 FROM tab1 cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * tab0.col1 col1 FROM tab0
----
1548
1638
1746

query I rowsort
SELECT 2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT col0 + 93 FROM tab2 AS cor0
----
100
171
172

query I rowsort
SELECT + 15 + col0 AS col1 FROM tab1 AS cor0
----
18
79
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3164
SELECT ALL - - CAST( + col0 AS SIGNED ) + col2 * - ( + col1 ) FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - - CAST ( + col0 AS INTEGER ) + col2 * - ( + col1 ) FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + col0 * + col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col2 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT + 60 + + col1 AS col1 FROM tab0 AS cor0
----
146
151
157

query I rowsort
SELECT + tab0.col0 + - ( tab0.col1 ) AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT 71 * ( - col2 + + col0 * ( col2 ) ) AS col0 FROM tab2 AS cor0
----
11502
142142
210444

query I rowsort
SELECT DISTINCT - + 16 FROM tab0 cor0
----
-16

query I rowsort
SELECT ALL - 75 AS col1 FROM tab2 cor0
----
-75
-75
-75

query I rowsort
SELECT + - col0 * - 57 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT DISTINCT cor0.col2 * + 76 * + cor0.col1 FROM tab0 AS cor0
----
215688
567112
7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT col0 DIV - 92 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT col0 / - 92 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + 50 ) * col0 AS col1 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT + 30 * - 96 AS col0 FROM tab0 AS cor0
----
-2880
-2880
-2880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT DISTINCT - tab1.col1 DIV tab1.col1 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - tab1.col1 / tab1.col1 AS col1 FROM tab1
----
-1

query I rowsort
SELECT - ( col1 ) * col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * - col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + ( - 43 ) AS col0 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT - CAST( + 20 AS SIGNED ) + col1 * + col1 DIV - col1 AS col1 FROM tab0
----
-106
-111
-117

skipif mysql # not compatible
query I rowsort label-3182
SELECT - CAST ( + 20 AS INTEGER ) + col1 * + col1 / - col1 AS col1 FROM tab0
----
-106
-111
-117

query I rowsort
SELECT ALL + + col1 * - 12 FROM tab1 cor0
----
-120
-156
-312

query I rowsort
SELECT ALL col0 + ( col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 * col2 * col0 AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL col0 * + tab0.col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT col1 * ( - 53 ) * col2 FROM tab0
----
-150414
-395486
-5141

query I rowsort
SELECT ALL - ( cor0.col1 ) * tab1.col2 AS col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 6d594fef5241b5a517bab6499927966c

query I rowsort
SELECT DISTINCT col2 * 43 FROM tab0
----
1419
3526
43

query I rowsort
SELECT + col0 - col1 * + col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT col0 * - ( - col1 ) + col0 * col2 AS col1 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT + col2 + + ( + 60 ) * + col2 FROM tab1
----
3294
3477
5856

query I rowsort
SELECT col0 * col1 + 96 AS col2 FROM tab1 AS cor0
----
1136
174
736

query I rowsort
SELECT + 95 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT - col0 + 85 * col2 + - col0 AS col2 FROM tab1 cor0
----
4584
4717
8000

query I rowsort
SELECT ALL col2 * 22 + - ( cor0.col2 ) FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT ALL + col2 + - col2 * col0 FROM tab1 cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col0 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - - cor0.col2 * - col1 - - col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT col1 + + ( - col0 ) * - cor0.col2 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 + CAST ( - col0 AS REAL ) + + col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3203
SELECT 56 DIV + 71 col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3203
SELECT 56 / + 71 col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT ALL 93 * + col1 AS col2 FROM tab2 AS cor0
----
1581
2883
5487

query I rowsort
SELECT DISTINCT 3 * - 91 AS col2 FROM tab1 AS cor0
----
-273

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3206
SELECT DISTINCT CAST( + 17 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-37
-40
-79

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT CAST ( + 17 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-37
-40
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3207
SELECT DISTINCT + ( + col1 ) * - col2 + CAST( col0 AS SIGNED ) * - col0 + cor0.col0 * col0 * col2 FROM tab0 AS cor0
----
-97
15594
634139

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + ( + col1 ) * - col2 + CAST ( col0 AS INTEGER ) * - col0 + cor0.col0 * col0 * col2 FROM tab0 AS cor0
----
-97
15594
634139

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL - - ( col0 ) + - col1 + col0 FROM tab1 cor0
----
-20
118
147

query I rowsort
SELECT - 30 + - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1119
-31
-6754

onlyif mysql # use DIV operator for integer division
query I rowsort label-3211
SELECT tab0.col1 DIV - col0 AS col2 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3211
SELECT tab0.col1 / - col0 AS col2 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT + 87 * tab2.col1 * 39 FROM tab2
----
105183
200187
57681

query I rowsort
SELECT col0 * + col0 * - 31 + ( col0 ) FROM tab0
----
-17832
-245462
-37940

query I rowsort
SELECT ALL ( col0 ) + tab1.col2 + ( + col0 + + col2 ) AS col0 FROM tab1
----
114
242
352

query I rowsort
SELECT col1 + col2 + ( col1 ) AS col2 FROM tab0 AS cor0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3216
SELECT ALL + col1 + col0 DIV 27 FROM tab0 AS cor0
----
86
94
98

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + col1 + col0 / 27 FROM tab0 AS cor0
----
86
94
98

query I rowsort
SELECT ALL + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - 14 + col2 AS col1 FROM tab1 AS cor0
----
40
43
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 + + col2 * 33 * + col0 + col2 * 50 col0 FROM tab0 AS cor0
----
1236
244965
27817

query I rowsort
SELECT - - 12 + + col0 * + 50 AS col0 FROM tab0 cor0
----
1212
1762
4462

query I rowsort
SELECT DISTINCT - 66 + - col2 FROM tab0 AS cor0
----
-148
-67
-99

query I rowsort
SELECT DISTINCT + 65 + col2 AS col2 FROM tab0 AS cor0
----
147
66
98

query I rowsort
SELECT + ( cor0.col2 ) * - ( 67 ) AS col0 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT DISTINCT - col1 + ( 68 ) FROM tab1 AS cor0
----
42
55
58

query I rowsort
SELECT ALL + - col0 * 77 + - col0 + + col1 FROM tab0 AS cor0
----
-1786
-2633
-6851

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * col0 - col0 FROM tab1 AS cor0
----
-233536
-489
-614480

query I rowsort
SELECT ALL cor0.col1 * - 92 + - 93 + col0 AS col0 FROM tab1 cor0
----
-1209
-2482
-949

query I rowsort
SELECT DISTINCT - cor0.col0 * 53 - col0 AS col2 FROM tab1 AS cor0
----
-162
-3456
-4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT - - col2 DIV col1 + - col2 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-3230
SELECT - - col2 / col1 + - col2 FROM tab1 AS cor0
----
-52
-52
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT ALL + cor0.col0 * + ( - col2 ) + + cor0.col0 DIV col0 FROM tab0 cor0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL + cor0.col0 * + ( - col2 ) + + cor0.col0 / col0 FROM tab0 cor0
----
-34
-7297
-791

query I rowsort
SELECT + col2 - 60 FROM tab2 AS cor0
----
-22
-33
-34

query I rowsort
SELECT + + col0 * + ( + 75 ) AS col1 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT ALL + col2 - + tab0.col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT - col0 DIV ( 5 ) - - col0 AS col1 FROM tab0 cor0
----
20
28
72

skipif mysql # not compatible
query I rowsort label-3235
SELECT - col0 / ( 5 ) - - col0 AS col1 FROM tab0 cor0
----
20
28
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-3236
SELECT DISTINCT + + col2 + + 5 DIV col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT + + col2 + + 5 / col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + 58 AS col0 FROM tab1
----
58
58
58

query I rowsort
SELECT ALL 30 * ( - col2 ) AS col2 FROM tab1
----
-1620
-1710
-2880

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to adb876f0e99f8d4fbf7b7fcf19919a21

query I rowsort
SELECT DISTINCT - + 57 + - 9 AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL + col0 * col2 + + col1 + + col1 AS col0 FROM tab1 cor0
----
214
3668
7706

query I rowsort
SELECT + ( + col1 ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - 89 * col0 AS col2 FROM tab2 AS cor0
----
-623
-6942
-7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + col2 col2 FROM tab2 AS cor0
----
-60
-71
-72

query I rowsort
SELECT 21 + col2 AS col2 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT ALL + ( - col2 * - col0 ) FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * col2 col1 FROM tab0 AS cor0
----
-10
-330
-820

query I rowsort
SELECT DISTINCT + ( col2 * col2 ) AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL - + col2 + - col1 * col2 * + col2 FROM tab1 AS cor0
----
-119904
-32547
-75870

query I rowsort
SELECT ALL - col1 * cor0.col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 32 col2 FROM tab0 AS cor0
----
121
56
67

query I rowsort
SELECT DISTINCT + col0 * - col1 - - cor0.col2 * - col0 FROM tab1 AS cor0
----
-240
-4288
-8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3254
SELECT - cor0.col0 + + cor0.col2 DIV - col1 FROM tab1 AS cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-3254
SELECT - cor0.col0 + + cor0.col2 / - col1 FROM tab1 AS cor0
----
-5
-69
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - 96 * + 98 FROM tab2 AS cor0
----
-9408
-9408
-9408

query I rowsort
SELECT + ( ( + col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - + 21 + 38 AS col1 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT + 14 * - 31 AS col0 FROM tab0 AS cor0
----
-434
-434
-434

query I rowsort
SELECT - ( col2 ) * - ( - col0 ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - tab0.col1 - col1 * + col2 AS col0 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT ALL - ( - 96 ) * col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT DISTINCT + 57 FROM tab0, tab2, tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT - ( 46 ) * col0 FROM tab1
----
-138
-2944
-3680

query I rowsort
SELECT DISTINCT ( 88 + col2 ) FROM tab2
----
114
115
126

query I rowsort
SELECT DISTINCT col1 * 99 AS col1 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT DISTINCT - cor0.col1 + 42 + 67 FROM tab0, tab1 AS cor0
----
83
96
99

query I rowsort
SELECT DISTINCT - tab2.col0 + col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - tab1.col2 * + 10 AS col1 FROM tab1
----
-540
-570
-960

query I rowsort
SELECT col2 * ( - col0 ) AS col2 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + ( + col0 ) + - cor0.col2 col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT cor0.col1 * - 64 + col2 FROM tab0 AS cor0
----
-5471
-5742
-6207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3273
SELECT + col2 + + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT + col2 + + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + ( - 66 ) * - col0 AS col2 FROM tab2 AS cor0
----
489
5174
5252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + tab0.col2 ) col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab0
----
24

query I rowsort
SELECT + 56 + 76 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69360870b63ae94631fff59de0c8f582

query I rowsort
SELECT DISTINCT ( + col1 ) + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + 31 * + col1 + - ( tab1.col1 ) FROM tab1
----
300
390
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-3280
SELECT ALL + - 46 DIV + col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + - 46 / + col1 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - + col0 - - col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + 48 * - col2 + + col1 AS col1 FROM tab0 AS cor0
----
-1498
-3845
49

query I rowsort
SELECT - col1 * col2 + - col1 * - 27 AS col0 FROM tab1 AS cor0
----
-300
-702
-897

query I rowsort
SELECT DISTINCT + col2 + - col1 * ( - col1 ) * col2 AS col1 FROM tab1 cor0
----
16320
36558
5757

query I rowsort
SELECT ALL - - col1 + + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col0 * - 55 FROM tab0 AS cor0
----
1320
1925
4895

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT col0 * col2 DIV col1 AS col0 FROM tab2 AS cor0
----
176
34
6

skipif mysql # not compatible
query I rowsort label-3287
SELECT col0 * col2 / col1 AS col0 FROM tab2 AS cor0
----
176
34
6

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 * + 55 * - col0 AS col2 FROM tab1 AS cor0
----
-35143
-4236
-57104

query I rowsort
SELECT ALL col0 + 27 AS col2 FROM tab1 cor0
----
107
30
91

query I rowsort
SELECT + col1 * + col0 + + 21 FROM tab2 AS cor0
----
1364
238
4623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - 55 col1 FROM tab2 AS cor0
----
-133
-134
-62

query I rowsort
SELECT 33 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + 73 - - col2 FROM tab2
----
100
111
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 6 * col1 col0 FROM tab2 AS cor0
----
-179
-23
-276

query I rowsort
SELECT col0 * - 78 AS col2 FROM tab0 AS cor0
----
-1872
-2730
-6942

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3296
SELECT DISTINCT + cor0.col1 + CAST( - cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT + cor0.col1 + CAST ( - cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col0 + + 87 * + col0 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT DISTINCT col1 + col0 * ( col1 ) FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - + col1 * + 14 - - col1 * col2 FROM tab1 cor0
----
1040
1066
430

query I rowsort
SELECT ALL + ( + col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col0 + 76 + col1 FROM tab2 AS cor0
----
100
14
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT + - col1 DIV + 76 - - col0 AS col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3302
SELECT + - col1 / + 76 - - col0 AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - + col2 + col1 * col0 + + col2 * col2 * col2 FROM tab2 AS cor0
----
19873
22152
56177

query I rowsort
SELECT ALL - 20 * col1 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-1975
-2512
-9118

query I rowsort
SELECT + + col2 + - col0 + + col2 AS col1 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT DISTINCT - col2 * + 48 FROM tab1 AS cor0
----
-2592
-2736
-4608

onlyif mysql # use DIV operator for integer division
query I rowsort label-3307
SELECT col0 DIV - tab1.col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT col0 / - tab1.col1 FROM tab1
----
-6
-6
0

query I rowsort
SELECT DISTINCT - col0 * 56 AS col2 FROM tab2
----
-392
-4368
-4424

query I rowsort
SELECT ALL + 22 + cor0.col0 AS col2 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT - cor0.col2 + 2 * cor0.col0 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT ( - 63 ) - cor0.col0 FROM tab1 AS cor0
----
-127
-143
-66

query I rowsort
SELECT DISTINCT + - col1 * col1 - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + 26 - col0 FROM tab1 AS cor0
----
-38
-54
23

query I rowsort
SELECT - - col1 + col0 * - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL + col2 * + cor0.col1 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort
SELECT - ( + col2 ) * col1 - CAST ( col1 * col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
-1798
-5015
-935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3317
SELECT DISTINCT - col1 * cor0.col1 + - col1 + CAST( NULL AS SIGNED ) * col0 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - col1 * cor0.col1 + - col1 + CAST ( NULL AS INTEGER ) * col0 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 66 + col0 FROM tab0 AS cor0
----
101
2202
5501

onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT col1 + - col2 DIV ( + cor0.col1 ) + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6226

skipif mysql # not compatible
query I rowsort label-3319
SELECT col1 + - col2 / ( + cor0.col1 ) + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6226

query I rowsort
SELECT + 99 * cor0.col2 FROM tab1 AS cor0
----
5346
5643
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 84 col2 FROM tab1 AS cor0
----
84

query I rowsort
SELECT 54 * tab1.col1 + - col0 * ( - col2 ) * + col2 FROM tab1
----
10152
208476
737982

query I rowsort
SELECT - col0 - - 51 AS col1 FROM tab2
----
-27
-28
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT DISTINCT - 48 DIV - col2 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2065
3443
8099

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT - 48 / - col2 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2065
3443
8099

query I rowsort
SELECT - col1 + col0 * - 9 AS col1 FROM tab0 AS cor0
----
-302
-412
-892

query I rowsort
SELECT + - ( - col0 ) + 34 - col0 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT 51 + + col0 FROM tab0 AS cor0
----
140
75
86

query I rowsort
SELECT ALL - 41 * + cor0.col2 FROM tab0 cor0
----
-1353
-3362
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT DISTINCT + col2 DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT + col2 / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT tab0.col0 + - col2 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col2 - 10 * + col1 AS col2 FROM tab0
----
-827
-828
-969

query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + col0 col1 FROM tab1 AS cor0
----
-15
-31
-92

query I rowsort
SELECT ALL ( + 96 ) FROM tab2, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3335
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - ( + tab2.col1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( + tab2.col1 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + - 85 AS col2 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab1, tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 + col2 * col0 * col1 + - 89 FROM tab1
----
2095
29991
86231

query I rowsort
SELECT ( col2 ) + + col2 * + col2 + - col1 AS col1 FROM tab2
----
1465
643
725

onlyif mysql # use DIV operator for integer division
query I rowsort label-3340
SELECT - ( col1 ) DIV - col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3340
SELECT - ( col1 ) / - col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - + 28 * + ( col2 ) * 24 FROM tab1 cor0
----
-36288
-38304
-64512

query I rowsort
SELECT ALL - - cor0.col1 * 36 + + col1 FROM tab1 AS cor0
----
370
481
962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3344
SELECT + CAST( NULL AS SIGNED ) / + 27 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT + CAST ( NULL AS INTEGER ) / + 27 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 78 * cor0.col2 FROM tab0 cor0
----
-2574
-6396
-78

query I rowsort
SELECT DISTINCT 1 * + tab0.col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT DISTINCT col2 DIV col2 col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT col2 / col2 col1 FROM tab1
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3350
SELECT + col1 + + col2 DIV col1 FROM tab2 cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-3350
SELECT + col1 + + col2 / col1 FROM tab2 cor0
----
19
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT ALL - ( + col2 ) DIV + col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - ( + col2 ) / + col2 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT - col1 + - col0 DIV - col1 FROM tab1
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-3352
SELECT - col1 + - col0 / - col1 FROM tab1
----
-26
-4
-7

query I rowsort
SELECT DISTINCT + col2 + + 87 AS col2 FROM tab0
----
120
169
88

query I rowsort
SELECT col2 + - col0 * tab1.col0 + col0 FROM tab1
----
-3975
-6224
48

query I rowsort
SELECT DISTINCT 87 + 9 * + col2 * - col0 FROM tab1
----
-1371
-32745
-69033

query I rowsort
SELECT DISTINCT - ( 60 ) FROM tab2
----
-60

query I rowsort
SELECT - 57 + - 52 FROM tab2 AS cor0
----
-109
-109
-109

query I rowsort
SELECT ALL + ( col1 ) * + col0 + + cor0.col2 + col1 FROM tab1 cor0
----
1149
158
707

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT ALL CAST( NULL AS SIGNED ) * - 60 - - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL CAST ( NULL AS INTEGER ) * - 60 - - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 57 * col0 + col2 FROM tab2 AS cor0
----
-372
-4420
-4465

query I rowsort
SELECT + 77 * tab2.col2 AS col0 FROM tab2
----
2002
2079
2926

onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT ALL + ( col2 ) DIV col1 + col0 AS col0 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + ( col2 ) / col1 + col0 AS col0 FROM tab2 AS cor0
----
7
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT DISTINCT - ( cor0.col1 ) + col2 DIV col0 col2 FROM tab0 AS cor0
----
-85
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT - ( cor0.col1 ) + col2 / col0 col2 FROM tab0 AS cor0
----
-85
-91
-97

query I rowsort
SELECT + col1 * - col1 * - col2 + col1 + + col1 FROM tab1 AS cor0
----
16250
36556
5720

query I rowsort
SELECT 24 + col0 + + col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1240
-186
-4500

query I rowsort
SELECT + + 37 * + col0 + col0 FROM tab2 cor0
----
266
2964
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT + col1 + + col1 DIV col0 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-3367
SELECT + col1 + + col1 / col0 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT DISTINCT - col0 + col0 - - col0 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 * + col0 + - col2 * + cor0.col2 * col2 col1 FROM tab1 cor0
----
-157429
-181087
-878323

query I rowsort
SELECT DISTINCT + 20 + + ( + col0 ) FROM tab2
----
27
98
99

query I rowsort
SELECT + ( + col2 ) * col0 + - col1 AS col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT + 21 + - col2 AS col2 FROM tab1
----
-33
-36
-75

query I rowsort
SELECT ALL 95 + col1 FROM tab2
----
112
126
154

query I rowsort
SELECT + ( 42 ) + col1 AS col1 FROM tab2
----
101
59
73

query I rowsort
SELECT 48 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT + ( - col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col1 + - tab2.col0 * - col2 + tab2.col0 FROM tab2
----
165
2047
3064

query I rowsort
SELECT ALL - tab2.col2 - + col2 AS col2 FROM tab2
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * col2 + col0 col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL col0 * tab2.col2 + + col0 - col2 AS col0 FROM tab2
----
169
2080
3043

query I rowsort
SELECT col0 * col0 + col0 + col2 * col0 FROM tab0
----
1295
1392
15308

query I rowsort
SELECT DISTINCT + tab0.col1 * col2 * + col2 AS col0 FROM tab0
----
611884
93654
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = ( - col0 + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( col2 + col1 )
----

query I rowsort
SELECT col2 * col0 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( + col1 )
----

query I rowsort
SELECT + col0 + cor0.col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT col0 * col1 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
-2
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col1 AND ( col0 )
----

query I rowsort
SELECT + col1 * col0 * col2 + - col1 AS col2 FROM tab1
----
36470
4186
99827

query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 AS col1 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab2.col2 + col1 col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab2 WHERE NOT + col1 IN ( - tab2.col0 - - col2 )
----
-189
-2028
-3002

query I rowsort
SELECT - cor0.col1 + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND ( col2 + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= + col0
----

query I rowsort
SELECT cor0.col2 + - col0 + + cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
-131
-2829
-7469

query I rowsort
SELECT col1 * tab2.col2 * col0 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN NULL AND col1 + col2 + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT ALL + col0 DIV col0 - - col2 AS col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + col0 / col0 - - col2 AS col1 FROM tab2
----
27
28
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3401
SELECT - col1 * + CAST( - 66 AS SIGNED ) FROM tab2
----
1122
2046
3894

skipif mysql # not compatible
query I rowsort label-3401
SELECT - col1 * + CAST ( - 66 AS INTEGER ) FROM tab2
----
1122
2046
3894

query I rowsort
SELECT ALL - col1 + ( - col2 ) + col2 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col0 + 71 + - col2 FROM tab2
----
112
123
51

query I rowsort
SELECT DISTINCT 87 + col0 FROM tab1 AS cor0
----
151
167
90

query I rowsort
SELECT ALL + 8 * 57 AS col1 FROM tab0 cor0
----
456
456
456

query I rowsort
SELECT + ( col2 ) * col0 + 86 AS col2 FROM tab2 AS cor0
----
2114
275
3088

query I rowsort
SELECT + tab0.col1 * + 61 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT col1 * + 98 + 42 * col0 FROM tab2
----
3332
4984
9058

query I rowsort
SELECT DISTINCT col0 * - 37 + + 60 FROM tab1
----
-2308
-2900
-51

query I rowsort
SELECT 65 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT col1 * - ( col1 ) * col1 AS col0 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT ALL + col0 + 88 FROM tab2
----
166
167
95

query I rowsort
SELECT ALL + + 87 * col1 AS col1 FROM tab1 AS cor0
----
1131
2262
870

onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT - col0 + + ( + cor0.col0 ) DIV - 41 FROM tab2 AS cor0
----
-7
-79
-80

skipif mysql # not compatible
query I rowsort label-3414
SELECT - col0 + + ( + cor0.col0 ) / - 41 FROM tab2 AS cor0
----
-7
-79
-80

query I rowsort
SELECT - - 33 + - 79 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + 86 * col0 AS col1 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + + 37 * col1 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT + + 36 + + col0 FROM tab0 AS cor0
----
125
60
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3420
SELECT DISTINCT CAST( 64 AS SIGNED ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT CAST ( 64 AS INTEGER ) FROM tab1
----
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3421
SELECT DISTINCT ( ( + col1 ) ) + - CAST( NULL AS SIGNED ) * ( - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT ( ( + col1 ) ) + - CAST ( NULL AS INTEGER ) * ( - col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 16 * + 64 FROM tab2 AS cor0
----
1024

onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT ALL ( 27 ) + cor0.col1 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL ( 27 ) + cor0.col1 / cor0.col1 AS col2 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL + col2 * col2 + col1 FROM tab1 cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT - col2 + + 58 DIV col2 FROM tab0 AS cor0
----
-32
-82
57

skipif mysql # not compatible
query I rowsort label-3425
SELECT - col2 + + 58 / col2 FROM tab0 AS cor0
----
-32
-82
57

query I rowsort
SELECT DISTINCT - ( col1 ) + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT + - 59 + 57 * col1 DIV - col1 + col0 FROM tab2 AS cor0
----
-109
-37
-38

skipif mysql # not compatible
query I rowsort label-3428
SELECT + - 59 + 57 * col1 / - col1 + col0 FROM tab2 AS cor0
----
-109
-37
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3429
SELECT ALL + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + 30 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1770
510
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT ALL + CAST( col2 AS SIGNED ) + col1 * 70 FROM tab1 cor0
----
1006
1874
757

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL + CAST ( col2 AS INTEGER ) + col1 * 70 FROM tab1 cor0
----
1006
1874
757

onlyif mysql # use DIV operator for integer division
query I rowsort label-3433
SELECT + + col0 DIV col0 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3433
SELECT + + col0 / col0 AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + - ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT 82 * 25 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
2050

query I rowsort
SELECT ALL col0 * - col2 + + 30 FROM tab0 AS cor0
----
-5
-7268
-762

query I rowsort
SELECT - 7 * col2 FROM tab1 AS cor0
----
-378
-399
-672

query I rowsort
SELECT DISTINCT + col0 * col2 + cor0.col1 * + cor0.col2 - + col0 * - col1 AS col2 FROM tab2 AS cor0
----
1243
4991
8164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3439
SELECT DISTINCT col2 * - col0 - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT col2 * - col0 - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3440
SELECT ALL col1 * + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL col1 * + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col0 * 8 * col0 FROM tab1 AS cor0
----
32704
51120
69

query I rowsort
SELECT col0 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col0 + - 57 FROM tab1 AS cor0
----
-121
-137
-60

query I rowsort
SELECT DISTINCT + 98 * + 88 FROM tab0, tab1 AS cor0
----
8624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + col0 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT + col1 DIV - ( - ( cor0.col1 ) * col2 ) + - col2 * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3446
SELECT + col1 / - ( - ( cor0.col1 ) * col2 ) + - col2 * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT - col0 * 45 + col1 AS col0 FROM tab0 AS cor0
----
-1478
-3914
-994

query I rowsort
SELECT DISTINCT + col1 * 54 + col2 FROM tab1 AS cor0
----
1458
597
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT ALL + col2 DIV col1 - + col0 * col1 FROM tab1 AS cor0
----
-1033
-635
-76

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL + col2 / col1 - + col0 * col1 FROM tab1 AS cor0
----
-1033
-635
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT ALL + + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 * - col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3453
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) - - 84 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) - - 84 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - cor0.col1 * + cor0.col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + - col2 + - 19 FROM tab1 cor0
----
-115
-73
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3456
SELECT ALL - col1 + + 68 DIV 66 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL - col1 + + 68 / 66 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT col1 - cor0.col0 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT + - col0 * - 20 AS col1 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT DISTINCT - - col1 * col1 + ( col0 ) FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT ALL - col2 * col0 - + col1 * - col0 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT ALL - col2 - col1 * - 23 FROM tab0 AS cor0
----
1945
2011
2230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3462
SELECT DISTINCT + col0 * + CAST( + col2 + col0 AS SIGNED ) FROM tab0 AS cor0
----
1260
1368
15219

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + col0 * + CAST ( + col2 + col0 AS INTEGER ) FROM tab0 AS cor0
----
1260
1368
15219

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3463
SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-3465
SELECT ALL col2 + + ( + col2 ) DIV + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL col2 + + ( + col2 ) / + col2 FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 45 * col2 col1 FROM tab1 AS cor0
----
-2433
-2629
-4400

query I rowsort
SELECT + 41 * + col1 - + col2 FROM tab0 AS cor0
----
3493
3649
3976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + col1 + cor0.col2 + - col0 col0 FROM tab0 AS cor0
----
7405
8274
9375

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23

query I rowsort
SELECT ALL + col0 + ( - 3 ) * - col1 AS col2 FROM tab2
----
100
130
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col1 FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT + - 87 DIV col0 AS col2 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT + - 87 / col0 AS col2 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT ALL - col2 + - col0 + 91 * cor0.col1 FROM tab0 AS cor0
----
7769
8110
8791

query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + 90 + - 22 * + col2 AS col1 FROM tab1
----
-1098
-1164
-2022

query I rowsort
SELECT ALL - 17 * - col0 AS col2 FROM tab0
----
1513
408
595

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT - col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3477
SELECT - col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL 91 + col2 FROM tab2
----
117
118
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * - col0 col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT col2 * cor0.col2 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + 34 * - cor0.col0 + 98 AS col1 FROM tab1 cor0
----
-2078
-2622
-4

query I rowsort
SELECT + - cor0.col0 * - cor0.col2 + 75 AS col1 FROM tab2 AS cor0
----
2103
264
3077

query I rowsort
SELECT ALL + col0 + - col2 * - col1 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT tab2.col2 * 16 AS col0 FROM tab2
----
416
432
608

query I rowsort
SELECT 22 * cor1.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 332cd34219f791d095aea8a894eae8c4

query I rowsort
SELECT - ( + 53 ) + - col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
-19
706
7163

query I rowsort
SELECT - 29 + col1 - col0 FROM tab1 AS cor0
----
-6
-83
-96

query I rowsort
SELECT - col1 + - 75 FROM tab1
----
-101
-85
-88

query I rowsort
SELECT + 85 * + col1 FROM tab1
----
1105
2210
850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3490
SELECT + - CAST( + 32 AS SIGNED ) + col1 col2 FROM tab0 AS cor0
----
54
59
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3490
SELECT + - CAST ( + 32 AS INTEGER ) + col1 col2 FROM tab0 AS cor0
----
54
59
65

query I rowsort
SELECT 38 + ( - cor0.col0 ) FROM tab1 AS cor0
----
-26
-42
35

query I rowsort
SELECT + + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 655f6fd9cf6e184579b05940dc91f4cb

query I rowsort
SELECT - ( cor0.col2 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3495
SELECT + CAST( 59 AS SIGNED ) * tab2.col2 * + 79 + + col0 AS col0 FROM tab2
----
121264
125854
177197

skipif mysql # not compatible
query I rowsort label-3495
SELECT + CAST ( 59 AS INTEGER ) * tab2.col2 * + 79 + + col0 AS col0 FROM tab2
----
121264
125854
177197

query I rowsort
SELECT ALL - col2 + - col2 + tab0.col2 AS col1 FROM tab0
----
-1
-33
-82

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe

query I rowsort
SELECT ( col0 ) + + col2 * 24 FROM tab2 AS cor0
----
655
702
991

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT - col0 * + col2 + + col0 DIV + col0 + col2 FROM tab1
----
-107
-3590
-7583

skipif mysql # not compatible
query I rowsort label-3499
SELECT - col0 * + col2 + + col0 / + col0 + col2 FROM tab1
----
-107
-3590
-7583

query I rowsort
SELECT + col1 * cor0.col1 + 13 - cor0.col0 AS col0 FROM tab1 AS cor0
----
102
49
686

query I rowsort
SELECT col1 * col0 + - 0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3502
SELECT DISTINCT + 35 * col1 + col2 + col0 * col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT + 35 * col1 + col2 + col0 * col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 + + col1 + - 44 AS col2 FROM tab1 AS cor0
----
-15
30
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3504
SELECT DISTINCT cor0.col1 + + col0 * - CAST( col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT cor0.col1 + + col0 * - CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT col1 + cor0.col2 DIV cor0.col2 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-3505
SELECT col1 + cor0.col2 / cor0.col2 col1 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 - col1 col0 FROM tab1
----
1235
1378
560

query I rowsort
SELECT 99 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT - + col2 + + col1 AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + - ( - cor0.col2 ) FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3511
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 * col2 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 * col2 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * + col0 + - col2 AS col1 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT + + 26 + ( col1 ) * col1 * + col0 FROM tab0 AS cor0
----
177530
329341
737035

query I rowsort
SELECT + + ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 5 * + col1 + col1 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT ALL 59 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL - ( col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - - ( - col2 ) * col2 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3519
SELECT - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3519
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-3520
SELECT DISTINCT - col2 + + ( cor0.col1 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - col2 + + ( cor0.col1 ) / + col0 AS col0 FROM tab1 AS cor0
----
-46
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3521
SELECT DISTINCT + col2 + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT + col2 + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col1 * 87 + - ( - col2 ) + 91 AS col0 FROM tab0 AS cor0
----
7606
8090
8531

onlyif mysql # use DIV operator for integer division
query I rowsort label-3523
SELECT DISTINCT + col1 DIV col0 + - col1 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT + col1 / col0 + - col1 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT ALL - - col1 * col1 DIV col0 AS col2 FROM tab2 AS cor0
----
137
3
44

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - - col1 * col1 / col0 AS col2 FROM tab2 AS cor0
----
137
3
44

query I rowsort
SELECT col2 * + ( + col2 ) AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - - col2 * - 91 FROM tab0 cor0
----
-3003
-7462
-91

query I rowsort
SELECT DISTINCT + col2 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - - col2 * - 88 + + col1 * col2 * ( 35 ) + + cor0.col0 FROM tab1 AS cor0
----
14998
35312
44391

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 - - col1 * - col2 * cor0.col2 FROM tab1 AS cor0
----
-120848
-33130
-75894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3530
SELECT ALL + col1 - CAST( NULL AS SIGNED ) / 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + col1 - CAST ( NULL AS INTEGER ) / 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col2 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT ALL - col0 - + ( col2 + + tab2.col2 ) * + col0 FROM tab2
----
-385
-4134
-6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-3534
SELECT + col2 DIV 30 FROM tab1
----
1
1
3

skipif mysql # not compatible
query I rowsort label-3534
SELECT + col2 / 30 FROM tab1
----
1
1
3

query I rowsort
SELECT DISTINCT col1 + ( col1 ) * col2 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL + - cor0.col0 * + ( - col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 * 2 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT - col0 * - 74 + + tab0.col1 AS col2 FROM tab0
----
1862
2687
6677

query I rowsort
SELECT DISTINCT col0 + + col1 * - col2 AS col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL 98 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT DISTINCT col0 * col0 + 70 AS col2 FROM tab1 AS cor0
----
4166
6470
79

query I rowsort
SELECT ALL - - 43 * - col2 + - 53 FROM tab1 AS cor0
----
-2375
-2504
-4181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + cor0.col2 * + col1 col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 * col2 * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT 37 * col0 + tab0.col1 FROM tab0
----
1392
3384
974

query I rowsort
SELECT - ( + 48 ) + + tab2.col0 * - ( col2 ) FROM tab2
----
-2076
-237
-3050

query I rowsort
SELECT + 94 + col2 AS col1 FROM tab1
----
148
151
190

query I rowsort
SELECT ALL + cor0.col2 * 85 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 8a6bbdecdd24b0062023f0f6c0cac73a

query I rowsort
SELECT + ( - 11 ) - - col2 * tab0.col0 * col1 AS col1 FROM tab0
----
3384
664107
68101

query I rowsort
SELECT + ( - 41 ) FROM tab0
----
-41
-41
-41

query I rowsort
SELECT + 50 - + 19 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT - + 19 AS col2 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL 58 + col2 * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-131
-1970
-2944

query I rowsort
SELECT DISTINCT + - ( + cor0.col1 ) * + 1 AS col1 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT + col1 DIV - col0 AS col1 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT + col1 / - col0 AS col1 FROM tab1 cor0
----
-8
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3556
SELECT - 32 + + col0 * CAST( col2 * + col1 AS SIGNED ) FROM tab1 cor0
----
36448
4180
99808

skipif mysql # not compatible
query I rowsort label-3556
SELECT - 32 + + col0 * CAST ( col2 * + col1 AS INTEGER ) FROM tab1 cor0
----
36448
4180
99808

query I rowsort
SELECT ALL ( col2 ) + ( cor0.col1 ) * cor0.col2 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL 77 * + col2 FROM tab1 cor0
----
4158
4389
7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - 87 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT - 28 + + col0 AS col0 FROM tab0
----
-4
61
7

query I rowsort
SELECT ALL + + cor0.col2 * cor0.col1 + 97 AS col1 FROM tab2 AS cor0
----
1631
743
934

query I rowsort
SELECT ALL + 0 + col1 * - 55 AS col0 FROM tab1 cor0
----
-1430
-550
-715

query I rowsort
SELECT - cor0.col1 * - ( 40 ) FROM tab0 AS cor0
----
3440
3640
3880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT 18 DIV 87 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-3565
SELECT 18 / 87 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT DISTINCT - - col0 * + 46 + - col2 FROM tab1 AS cor0
----
2887
3584
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3567
SELECT col0 + + col0 DIV - col1 AS col1 FROM tab2 cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-3567
SELECT col0 + + col0 / - col1 AS col1 FROM tab2 cor0
----
7
75
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3568
SELECT - cor0.col0 * col2 DIV - 87 FROM tab0 AS cor0
----
0
83
9

skipif mysql # not compatible
query I rowsort label-3568
SELECT - cor0.col0 * col2 / - 87 FROM tab0 AS cor0
----
0
83
9

query I rowsort
SELECT ALL + 71 AS col1 FROM tab0
----
71
71
71

query I rowsort
SELECT ALL - + ( - col1 ) - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 58 + 56 * + col1 AS col2 FROM tab1 AS cor0
----
1398
502
670

query I rowsort
SELECT ALL - - ( col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 * 19 + col0 FROM tab0 AS cor0
----
-1610
-1640
-1808

query I rowsort
SELECT + - cor1.col1 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + col1 * 35 * cor0.col2 + col1 - + col2 AS col0 FROM tab1 AS cor0
----
19903
43597
49112

query I rowsort
SELECT ALL + 26 * + col2 - + col0 AS col1 FROM tab2 AS cor0
----
598
695
909

query I rowsort
SELECT ALL - + col0 + + 43 * col1 AS col1 FROM tab2 AS cor0
----
1326
2459
652

query I rowsort
SELECT DISTINCT ( - col1 ) * cor0.col1 + col2 * ( + cor0.col2 ) + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-263
-2864
1138

query I rowsort
SELECT + cor0.col0 + + 6 AS col0 FROM tab1 AS cor0
----
70
86
9

query I rowsort
SELECT col2 + - 19 * - cor0.col0 FROM tab1 AS cor0
----
111
1273
1616

onlyif mysql # use DIV operator for integer division
query I rowsort label-3581
SELECT + - ( cor0.col2 ) * col2 + - col2 * 41 DIV col1 FROM tab2 AS cor0
----
-1535
-694
-764

skipif mysql # not compatible
query I rowsort label-3581
SELECT + - ( cor0.col2 ) * col2 + - col2 * 41 / col1 FROM tab2 AS cor0
----
-1535
-694
-764

onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT DISTINCT - 28 + + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-26
-27
69

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT - 28 + + col1 / + col2 AS col2 FROM tab0 AS cor0
----
-26
-27
69

query I rowsort
SELECT ALL - ( + 14 ) AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + - col0 + - 49 * + cor0.col2 FROM tab2 AS cor0
----
-1330
-1352
-1941

query I rowsort
SELECT + - 4 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3586
SELECT + col2 DIV - col1 + + col2 AS col0 FROM tab2 cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-3586
SELECT + col2 / - col1 + + col2 AS col0 FROM tab2 cor0
----
26
27
36

query I rowsort
SELECT DISTINCT + + col1 * col2 + 21 AS col2 FROM tab1 AS cor0
----
1269
1425
591

query I rowsort
SELECT + ( - cor0.col2 ) + - ( - ( + col0 ) ) * + col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - 76 - cor0.col2 AS col1 FROM tab2 cor0
----
-102
-103
-114

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT ALL col0 + - ( tab2.col2 ) DIV 39 AS col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL col0 + - ( tab2.col2 ) / 39 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - + col2 * 73 FROM tab2 AS cor0
----
-1898
-1971
-2774

query I rowsort
SELECT - col2 * + col1 - - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT + col0 * - ( + 4 ) FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT - col2 + ( - 18 ) * col1 FROM tab2 AS cor0
----
-1088
-344
-585

query I rowsort
SELECT col2 * + col1 + - 98 AS col1 FROM tab1 AS cor0
----
1150
1306
472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3598
SELECT + col0 * CAST( NULL AS SIGNED ) + - ( + cor0.col1 * 89 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3598
SELECT + col0 * CAST ( NULL AS INTEGER ) + - ( + cor0.col1 * 89 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 23 * 32 - + col2 AS col1 FROM tab2 AS cor0
----
-762
-763
-774

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3600
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3600
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + col2 * col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT 24 + - col2 FROM tab1 cor0
----
-30
-33
-72

query I rowsort
SELECT ALL 93 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ( - col0 ) + + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + + 89 * + col0 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT ALL 53 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab0
----
59

query I rowsort
SELECT ALL 7 * col0 AS col2 FROM tab1
----
21
448
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + 73 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d6542428bc77e2f2ee210a1049fe9f30

query I rowsort
SELECT DISTINCT - - 18 + col0 * + 59 FROM tab1 AS cor0
----
195
3794
4738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3612
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3612
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 14 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 91 col2 FROM tab1 AS cor0
----
-4914
-5187
-8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 * - cor1.col2 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-189
-2028
-3002

query I rowsort
SELECT + 50 + cor0.col2 FROM tab2 AS cor0
----
76
77
88

query I rowsort
SELECT 84 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT + ( - cor0.col2 ) * 62 AS col2 FROM tab0 AS cor0
----
-2046
-5084
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col1 FROM tab1
----
54
57
96

query I rowsort
SELECT 16 * - col1 FROM tab2 cor0
----
-272
-496
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3621
SELECT col1 DIV col0 + col2 col1 FROM tab1 AS cor0
----
57
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3621
SELECT col1 / col0 + col2 col1 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT col2 * - col2 + + col1 + 58 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
118709
197006
463109

query I rowsort
SELECT + - 32 * - col0 AS col0 FROM tab2 cor0
----
224
2496
2528

query I rowsort
SELECT ALL tab2.col1 * - col2 * col1 AS col0 FROM tab2
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) + - col0 DIV + col2 + - col2 * + col1 FROM tab0 AS cor0
----
-2752
-35
-7372

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) + - col0 / + col2 + - col2 * + col1 FROM tab0 AS cor0
----
-2752
-35
-7372

query I rowsort
SELECT DISTINCT + 27 * - col0 AS col0 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT ALL - + col1 + cor0.col2 * col2 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT ALL + col0 + col1 * 92 DIV - col0 AS col0 FROM tab1 AS cor0
----
-794
50
66

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + col0 + col1 * 92 / - col0 AS col0 FROM tab1 AS cor0
----
-794
50
66

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + + 46 AS col1 FROM tab1 AS cor0
----
208
3694
7726

query I rowsort
SELECT + - 30 * cor0.col1 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT ALL - + cor0.col1 - col1 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - - col0 + col2 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + 36 + col1 * + 67 FROM tab2 AS cor0
----
1175
2113
3989

query I rowsort
SELECT DISTINCT 96 * cor0.col1 FROM tab1, tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT + 41 + + col2 AS col0 FROM tab2
----
67
68
79

query I rowsort
SELECT 79 + col1 AS col0 FROM tab1
----
105
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - tab2.col0 col1 FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT + col2 * + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT + col2 * + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col0 * 50 * + col1 - col1 * 69 FROM tab1 cor0
----
2106
31310
51103

query I rowsort
SELECT DISTINCT col2 * ( col1 ) + col2 * col0 FROM tab1 AS cor0
----
1566
4218
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3642
SELECT DISTINCT - + cor0.col1 + CAST( NULL AS SIGNED ) + 26 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - + cor0.col1 + CAST ( NULL AS INTEGER ) + 26 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL col1 * + 35 AS col2 FROM tab0 AS cor0
----
3010
3185
3395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3645
SELECT + cor0.col1 * - CAST( col1 * col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

skipif mysql # not compatible
query I rowsort label-3645
SELECT + cor0.col1 * - CAST ( col1 * col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT - - col2 + - 89 AS col0 FROM tab1 AS cor0
----
-32
-35
7

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - col0 * ( 93 ) AS col2 FROM tab1 cor0
----
-279
-5952
-7440

onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT col2 DIV + ( - ( + col2 ) * 70 ) AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT col2 / + ( - ( + col2 ) * 70 ) AS col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 43 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 * - 15 * cor0.col0 FROM tab1 AS cor0
----
-115187
-2404
-54710

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3655
SELECT col2 DIV - CAST( - col1 * col0 AS SIGNED ) + + cor0.col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3655
SELECT col2 / - CAST ( - col1 * col0 AS INTEGER ) + + cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 * 50 + - tab0.col2 AS col2 FROM tab0
----
1617
4018
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3657
SELECT DISTINCT + col1 + CAST( col2 AS SIGNED ) * - col1 AS col0 FROM tab1
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT + col1 + CAST ( col2 AS INTEGER ) * - col1 AS col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT - + col2 + + col0 DIV + col1 AS col1 FROM tab1 cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-3658
SELECT - + col2 + + col0 / + col1 AS col1 FROM tab1 cor0
----
-51
-54
-90

query I rowsort
SELECT + - 65 * cor0.col0 FROM tab0 AS cor0
----
-1560
-2275
-5785

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT ALL col0 DIV - col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL col0 / - col0 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL + - col2 + - 54 FROM tab0 AS cor0
----
-136
-55
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + col0 * cor0.col0 * - 58 col2 FROM tab2 AS cor0
----
-2846
-352876
-361982

query I rowsort
SELECT ALL - col0 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3664
SELECT - CAST( NULL AS SIGNED ) * ( col0 * col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT - CAST ( NULL AS INTEGER ) * ( col0 * col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col1 * - col2 col1 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - - 57 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + col2 * - col2 - - col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + + col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT col0 - - col1 * + col2 AS col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3670
SELECT ALL 99 * + col2 + - CAST( - 26 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
125
3293
8144

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL 99 * + col2 + - CAST ( - 26 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
125
3293
8144

onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT DISTINCT + + 78 * cor0.col1 - - 20 * 51 DIV - col2 FROM tab0 AS cor0
----
6546
6678
7086

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + + 78 * cor0.col1 - - 20 * 51 / - col2 FROM tab0 AS cor0
----
6546
6678
7086

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT ALL 26 * col0 DIV col1 AS col2 FROM tab2 AS cor0
----
120
34
5

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL 26 * col0 / col1 AS col2 FROM tab2 AS cor0
----
120
34
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT DISTINCT col2 DIV col1 + + 70 AS col2 FROM tab2
----
70
72

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT col2 / col1 + + 70 AS col2 FROM tab2
----
70
72

query I rowsort
SELECT ALL + 89 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT ALL - + 24 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
165
2004
2978

query I rowsort
SELECT DISTINCT + col0 + - col1 * 45 AS col0 FROM tab2 AS cor0
----
-1388
-2577
-686

query I rowsort
SELECT ALL - col2 * cor0.col1 + 5 AS col0 FROM tab0 cor0
----
-2833
-7457
-92

query I rowsort
SELECT ALL - + col1 + ( + 14 * col1 ) AS col1 FROM tab0 AS cor0
----
1118
1183
1261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT DISTINCT - col2 DIV col0 + col0 AS col0 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT - col2 / col0 + col0 AS col0 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT - col0 * col0 + - col0 * - ( + tab2.col2 ) * + ( - col2 ) FROM tab2
----
-120317
-5152
-58812

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT DISTINCT col1 DIV col1 + ( + 99 ) AS col2 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT col1 / col1 + ( + 99 ) AS col2 FROM tab2
----
100

query I rowsort
SELECT + - col0 + - ( - 75 ) AS col2 FROM tab0 AS cor0
----
-14
40
51

query I rowsort
SELECT ALL - + cor0.col2 * + col0 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT CAST( 97 AS SIGNED ) col1 FROM tab2
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3685
SELECT CAST ( 97 AS INTEGER ) col1 FROM tab2
----
97
97
97

query I rowsort
SELECT + cor0.col2 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - ( col1 ) * - col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT tab2.col2 * + col0 + col1 * col2 AS col2 FROM tab2
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT + col0 DIV + col1 + col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
120
198

skipif mysql # not compatible
query I rowsort label-3689
SELECT + col0 / + col1 + col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
120
198

query I rowsort
SELECT + + col1 - + col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + tab1.col0 * + 62 FROM tab1
----
186
3968
4960

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3693
SELECT ALL + col0 + CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + col0 + CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3694
SELECT - col0 DIV + 76 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-3694
SELECT - col0 / + 76 col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + col1 + - 30 + col0 FROM tab2 AS cor0
----
107
66
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3696
SELECT + CAST( NULL AS SIGNED ) * 95 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT + CAST ( NULL AS INTEGER ) * 95 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3697
SELECT - 43 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3697
SELECT - 43 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3698
SELECT CAST( NULL AS SIGNED ) + 17 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT CAST ( NULL AS INTEGER ) + 17 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT col1 * col1 + col0 AS col2 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT cor0.col2 * col0 * col2 + col1 FROM tab1 AS cor0
----
207946
737293
8774

query I rowsort
SELECT - cor0.col0 + col0 * col1 AS col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + col1 - + col0 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - + col1 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + col1 + col2 * + col0 AS col2 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT DISTINCT col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT col2 / + col2 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 * - col2 + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col1 * + col2 + - cor0.col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT + cor0.col2 + + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

query I rowsort
SELECT DISTINCT - col2 + col2 + - col1 * + col1 FROM tab1 cor0
----
-100
-169
-676

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 - - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + + col1 + col2 col0 FROM tab1 AS cor0
----
-4029
-6291
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3715
SELECT DISTINCT - - cor0.col2 DIV cor0.col0 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - - cor0.col2 / cor0.col0 FROM tab2 cor0
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT col2 DIV - cor0.col0 + col2 * cor0.col0 - col0 AS col2 FROM tab1 cor0
----
141
3584
7599

skipif mysql # not compatible
query I rowsort label-3716
SELECT col2 / - cor0.col0 + col2 * cor0.col0 - col0 AS col2 FROM tab1 cor0
----
141
3584
7599

onlyif mysql # use DIV operator for integer division
query I rowsort label-3717
SELECT - col1 * col2 * - col2 + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-3717
SELECT - col1 * col2 * - col2 + col0 / col1 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT cor0.col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 * tab2.col2 col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL col2 - col2 * col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT col1 + col0 + col2 AS col0 FROM tab1
----
131
189
83

query I rowsort
SELECT col2 + col0 - tab1.col1 AS col2 FROM tab1
----
111
163
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT col1 * - col1 * col2 + + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-10980
-25947
-90506

skipif mysql # not compatible
query I rowsort label-3723
SELECT col1 * - col1 * col2 + + col2 / col1 AS col2 FROM tab2 AS cor0
----
-10980
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + - col0 col0 FROM tab2
----
1365
598
722

query I rowsort
SELECT - col0 + + tab1.col0 * - col0 * col2 FROM tab1
----
-233536
-489
-614480

query I rowsort
SELECT + 75 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT + 12 * col0 AS col1 FROM tab1 AS cor0
----
36
768
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + - col0 * - cor0.col2 * col0 col1 FROM tab0 cor0
----
1128
18922
649431

query I rowsort
SELECT ALL + 43 + - col0 * + ( col1 + + col2 ) AS col2 FROM tab0 AS cor0
----
-15354
-2813
-3387

query I rowsort
SELECT 6 * col1 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
540
617
635

onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT ALL - - cor0.col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - - cor0.col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col2 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - + col0 + col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-64
-71
48

query I rowsort
SELECT - - col0 * 42 AS col0 FROM tab0 AS cor0
----
1008
1470
3738

query I rowsort
SELECT ALL - col2 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - col0 + col0 * cor0.col2 FROM tab1 cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col0 FROM tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col2 + col0 + tab1.col0 AS col0 FROM tab1
----
-48
64
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT DISTINCT + col0 * col0 DIV col2 FROM tab1 AS cor0
----
0
66
71

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT + col0 * col0 / col2 FROM tab1 AS cor0
----
0
66
71

query I rowsort
SELECT ALL - ( col2 ) * + col0 + - 56 AS col1 FROM tab2 AS cor0
----
-2084
-245
-3058

query I rowsort
SELECT ALL ( + ( col2 ) ) + 50 AS col1 FROM tab0
----
132
51
83

query I rowsort
SELECT DISTINCT - col2 + - ( col2 ) AS col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col2 * - ( col1 ) * + ( ( + col1 ) ) + - 44 AS col2 FROM tab2
----
-11026
-25991
-90550

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col1 AS col0 FROM tab2
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col1 col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT + - col0 + + 73 * cor0.col0 DIV - 29 FROM tab2 AS cor0
----
-24
-274
-277

skipif mysql # not compatible
query I rowsort label-3746
SELECT + - col0 + + 73 * cor0.col0 / - 29 FROM tab2 AS cor0
----
-24
-274
-277

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - ( + col2 ) * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 * + col0 - + col0 * - col0 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT ALL + col1 * - col1 + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3751
SELECT DISTINCT cor0.col2 * - col0 * col0 - + CAST( ( col1 ) + - ( - col1 ) AS SIGNED ) * col0 col1 FROM tab0 AS cor0
----
-23136
-665720
-8015

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT cor0.col2 * - col0 * col0 - + CAST ( ( col1 ) + - ( - col1 ) AS INTEGER ) * col0 col1 FROM tab0 AS cor0
----
-23136
-665720
-8015

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 59 AS REAL ) * col1 * + col1 + + col0 FROM tab0 AS cor0
----
436388
488668
555166

query I rowsort
SELECT - ( - col2 ) * col1 + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - col2 * ( - col2 ) * col1 + ( + cor0.col1 ) FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT ALL - 51 * col0 + + col0 * col2 FROM tab1 AS cor0
----
3600
384
9

query I rowsort
SELECT + + 12 AS col0 FROM tab0 cor0
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT + - col0 * col1 + - col2 DIV cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3757
SELECT + - col0 * col1 + - col2 / cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + 40 * col1 + + 72 * col1 AS col0 FROM tab0 AS cor0
----
10192
10864
9632

query I rowsort
SELECT ALL + col1 * col0 + - ( ( - col0 ) ) * col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT - 96 + - col0 * col1 AS col0 FROM tab1 cor0
----
-1136
-174
-736

query I rowsort
SELECT - col0 + + col1 + - ( 71 ) FROM tab1 cor0
----
-125
-138
-48

query I rowsort
SELECT + 93 + - col0 FROM tab0 AS cor0
----
4
58
69

query I rowsort
SELECT DISTINCT - + col0 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 AS col2 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3765
SELECT DISTINCT + - col0 * - col1 + col2 DIV col0 + col1 FROM tab0 AS cor0
----
2151
3492
8190

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT + - col0 * - col1 + col2 / col0 + col1 FROM tab0 AS cor0
----
2151
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3766
SELECT ALL + CAST( 57 AS SIGNED ) + - col2 AS col0 FROM tab1
----
-39
0
3

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + CAST ( 57 AS INTEGER ) + - col2 AS col0 FROM tab1
----
-39
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL - col1 * - 81 + col2 * col2 + col1 * + col2 FROM tab2
----
3467
4077
6989

query I rowsort
SELECT + cor0.col1 * + tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1d94ea086ff4b04d01d3c46ff83c5c3d

query I rowsort
SELECT + col2 + + col2 * col2 AS col1 FROM tab2
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT - - cor0.col1 + - col1 DIV 6 FROM tab0 AS cor0
----
72
76
81

skipif mysql # not compatible
query I rowsort label-3771
SELECT - - cor0.col1 + - col1 / 6 FROM tab0 AS cor0
----
72
76
81

query I rowsort
SELECT ALL 65 + + col0 * - col0 + 37 FROM tab0
----
-1123
-474
-7819

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * + col2 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3774
SELECT - + cor0.col1 / + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT - + cor0.col1 / + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 75 + + col1 + 55 AS col0 FROM tab2 AS cor0
----
147
161
189

query I rowsort
SELECT col0 * col2 * + 75 AS col2 FROM tab2
----
14175
152100
225150

query I rowsort
SELECT DISTINCT col2 * col1 - 87 * - col2 FROM tab0 AS cor0
----
14596
184
5709

query I rowsort
SELECT DISTINCT cor0.col0 * col2 + 83 + - 50 * + col2 FROM tab2 cor0
----
-1078
1185
811

query I rowsort
SELECT + col2 * col1 + + 53 AS col0 FROM tab0 AS cor0
----
150
2891
7515

query I rowsort
SELECT col0 * col0 * 51 FROM tab0
----
29376
403971
62475

query I rowsort
SELECT + col1 * - col1 + col1 + col0 * - tab0.col1 AS col2 FROM tab0
----
-12707
-16289
-9374

query I rowsort
SELECT ALL + 15 * col0 FROM tab1
----
1200
45
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * + 4 col2 FROM tab0 AS cor0
----
-282
-311
-387

query I rowsort
SELECT DISTINCT 18 + tab0.col1 FROM tab0, tab1, tab0 AS cor0
----
104
109
115

onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT - 61 DIV tab0.col2 FROM tab0
----
-1
-61
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT - 61 / tab0.col2 FROM tab0
----
-1
-61
0

query I rowsort
SELECT - col1 * ( + col0 ) + col0 * + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * - 9 col2 FROM tab2 AS cor0
----
-243
-243
-243

query I rowsort
SELECT - 62 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3789
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 + - col1 * col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 + - col1 * col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT ALL + ( 8 ) - + col2 * cor0.col0 DIV - col1 FROM tab2 cor0
----
14
184
42

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + ( 8 ) - + col2 * cor0.col0 / - col1 FROM tab2 cor0
----
14
184
42

query I rowsort
SELECT ALL - col1 + - cor0.col0 * + col0 * col0 AS col0 FROM tab2 cor0
----
-374
-474611
-493056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) - col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 47 * - col0 AS col2 FROM tab1 AS cor0
----
141
3008
3760

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + - ( col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - + 85 + - col2 * - col2 FROM tab0 AS cor0
----
-84
1004
6639

query I rowsort
SELECT - col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + ( 84 ) * - cor0.col0 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT + col1 * + 78 AS col0 FROM tab1
----
1014
2028
780

query I rowsort
SELECT DISTINCT + col0 * - tab1.col0 AS col1 FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 - 28 * - col2 * + 78 col0 FROM tab0
----
179119
2215
72103

query I rowsort
SELECT + col1 + - 18 AS col2 FROM tab2 AS cor0
----
-1
13
41

query I rowsort
SELECT DISTINCT - 32 * + cor0.col0 * cor0.col2 AS col0 FROM tab0 cor0
----
-1120
-233536
-25344

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT + col0 + col1 DIV - 51 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3804
SELECT + col0 + col1 / - 51 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col0 - + col0 * 92 FROM tab0 AS cor0
----
-2184
-3185
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT DISTINCT 2 * + col1 + - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-44
-54
49

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT 2 * + col1 + - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-44
-54
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT col2 * - 75 * col0 FROM tab1
----
-12150
-273600
-576000

query I rowsort
SELECT cor1.col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + col2 * - ( cor0.col0 ) + col2 * 53 FROM tab0 AS cor0
----
-2952
18
957

query I rowsort
SELECT + col0 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + 52 AS col0 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
52

query I rowsort
SELECT - cor0.col0 * - col0 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3814
SELECT DISTINCT col1 + 55 * - tab2.col2 + col2 * CAST( - col1 + - col2 AS SIGNED ) FROM tab2
----
-3020
-3581
-4163

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT col1 + 55 * - tab2.col2 + col2 * CAST ( - col1 + - col2 AS INTEGER ) FROM tab2
----
-3020
-3581
-4163

query I rowsort
SELECT - + col0 + 90 + 11 FROM tab1 AS cor0
----
21
37
98

query I rowsort
SELECT ALL - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 * col2 + col1 + + col0 AS col0 FROM tab0 AS cor0
----
1199
133
6904

query I rowsort
SELECT 7 + - col1 FROM tab2 AS cor0
----
-10
-24
-52

query I rowsort
SELECT ALL - + 85 AS col0 FROM tab0 cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + col1 + 30 * + col1 FROM tab1 AS cor0
----
310
403
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col0 col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3822
SELECT ALL + col1 DIV + col2 - + 68 AS col1 FROM tab1
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + col1 / + col2 - + 68 AS col1 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT ALL - 5 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT ALL + - col1 + cor0.col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + 23 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
40
54
82

query I rowsort
SELECT + col0 + 2 AS col0 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT DISTINCT - - cor0.col0 * + ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + col1 + ( - col0 ) AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + - col2 - col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort
SELECT - col0 * ( ( col2 ) ) + + CAST ( 56 AS REAL ) FROM tab0 AS cor0
----
-7242
-736
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT ALL + col2 DIV cor0.col1 + ( cor0.col1 ) FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL + col2 / cor0.col1 + ( cor0.col1 ) FROM tab2 AS cor0
----
19
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + ( + cor0.col1 + col2 * - 12 ) col0 FROM tab2 AS cor0
----
-194
-262
-422

query I rowsort
SELECT DISTINCT - col2 + col1 * cor0.col0 + - cor0.col0 * col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + tab0.col2 * + col1 * + col2 - col2 * col0 AS col1 FROM tab0
----
604586
62
92862

query I rowsort
SELECT + col0 + + col0 + ( + tab2.col0 ) AS col0 FROM tab2
----
21
234
237

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT 84 DIV col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3837
SELECT 84 / col1 FROM tab2
----
1
2
4

query I rowsort
SELECT DISTINCT + 18 FROM tab1, tab0, tab2 AS cor0
----
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3839
SELECT 90 DIV tab0.col1 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3839
SELECT 90 / tab0.col1 AS col1 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3840
SELECT + col1 + cor0.col2 - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
131
189
83

skipif mysql # not compatible
query I rowsort label-3840
SELECT + col1 + cor0.col2 - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3841
SELECT - col0 * col0 DIV - col1 FROM tab1
----
0
409
492

skipif mysql # not compatible
query I rowsort label-3841
SELECT - col0 * col0 / - col1 FROM tab1
----
0
409
492

onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT ALL - col2 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - col2 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - tab1.col0 + tab1.col2 + - col0 * col0 * tab1.col1 AS col1 FROM tab1
----
-189
-44999
-89504

onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT DISTINCT + + col1 DIV col1 col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT + + col1 / col1 col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - 38 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-131
-62
-638

onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT - + ( - cor0.col0 ) DIV - 16 AS col2 FROM tab0 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-3846
SELECT - + ( - cor0.col0 ) / - 16 AS col2 FROM tab0 AS cor0
----
-1
-2
-5

query I rowsort
SELECT DISTINCT 1 + - col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT + col2 * col1 * - col0 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col1 + col1 - col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col2 + col0 * + col0 FROM tab0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-3851
SELECT ALL col0 + + tab0.col1 * - col1 + col2 DIV + tab0.col1 FROM tab0
----
-7372
-8192
-9374

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL col0 + + tab0.col1 * - col1 + col2 / + tab0.col1 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL col2 + + col1 + col2 AS col2 FROM tab1
----
124
134
205

query I rowsort
SELECT DISTINCT - col2 * col2 * - tab2.col0 AS col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT 35 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT + ( col1 * 55 ) AS col0 FROM tab2
----
1705
3245
935

query I rowsort
SELECT tab1.col1 + col0 * + tab1.col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col1 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + + col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT - - 44 + + cor0.col2 DIV 72 col0 FROM tab2 AS cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3860
SELECT - - 44 + + cor0.col2 / 72 col0 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT ALL + - 48 - col2 AS col2 FROM tab2 AS cor0
----
-74
-75
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 14 * col2 col2 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT ALL - col0 * tab1.col1 - col0 * col0 * + tab1.col2 FROM tab1
----
-234112
-564
-615440

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT col2 + tab2.col0 DIV col0 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-3865
SELECT col2 + tab2.col0 / col0 FROM tab2
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + col2 - col2 col0 FROM tab1 AS cor0 WHERE col0 * col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE NOT col0 / col1 IN ( + col0 )
----
3
64
80

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT tab0.col1 - - col2 * - col0 AS col0 FROM tab0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3870
SELECT - tab1.col2 DIV - col2 + col0 AS col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3870
SELECT - tab1.col2 / - col2 + col0 AS col1 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT col2 + col2 * tab0.col1 AS col2 FROM tab0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 + - col1 * tab1.col1 col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN col0 AND + col1
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE - col0 * + col0 NOT IN ( col1 )
----
86
91
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ALL + col2 + tab0.col1 AS col2 FROM tab0
----
119
173
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + col1 IN ( - col0 + + col0 + col1 )
----

query I rowsort
SELECT - col2 + - 80 AS col1 FROM tab0
----
-113
-162
-81

query I rowsort
SELECT ( - ( tab2.col1 ) ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab1, tab0 AS cor0
----
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3881
SELECT + - cor0.col2 * - cor0.col1 + + CAST( + 10 AS SIGNED ) * col2 FROM tab1 cor0
----
1140
1944
2208

skipif mysql # not compatible
query I rowsort label-3881
SELECT + - cor0.col2 * - cor0.col1 + + CAST ( + 10 AS INTEGER ) * col2 FROM tab1 cor0
----
1140
1944
2208

query I rowsort
SELECT + 93 + col2 AS col1 FROM tab0 cor0
----
126
175
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3883
SELECT + tab2.col2 DIV col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3883
SELECT + tab2.col2 / col0 AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT ALL col0 + ( - col0 ) * - col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT + ( 55 ) + col1 + + col0 AS col1 FROM tab2
----
151
192
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - col2 + + ( col1 ) FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - cor0.col2 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - + col2 * - 33 FROM tab1 AS cor0
----
1782
1881
3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + ( col0 ) * + cor0.col0 * - col0 col0 FROM tab2 AS cor0
----
-370
-474578
-493077

query I rowsort
SELECT DISTINCT + col0 * + ( + col0 ) AS col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT ALL + - col1 * CAST( NULL AS SIGNED ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL + - col1 * CAST ( NULL AS INTEGER ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 - col0 col0 FROM tab1
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3896
SELECT - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 * col2 * + col2 FROM tab2 AS cor0
----
-17517
-19652
-54855

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT col1 * tab1.col1 + - col0 FROM tab1
----
36
673
89

query I rowsort
SELECT 38 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2102
3433
8137

query I rowsort
SELECT DISTINCT col2 * col0 + + 47 * col1 AS col1 FROM tab1 AS cor0
----
1384
4118
8291

query I rowsort
SELECT + + col2 + - col2 + 34 FROM tab0 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col0 col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + + cor0.col2 + - 15 * 88 AS col2 FROM tab0 AS cor0
----
-1238
-1287
-1319

query I rowsort
SELECT + + col1 * + col1 + + col2 AS col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3906
SELECT ALL - + cor0.col1 * 2 DIV ( + col2 * col1 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - + cor0.col1 * 2 / ( + col2 * col1 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT DISTINCT - - col1 + col1 DIV col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT - - col1 + col1 / col0 FROM tab2 AS cor0
----
17
35
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3908
SELECT ALL + col0 * - col1 + 38 + col0 * + CAST( + col1 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-122182
-51562
-728872

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + col0 * - col1 + 38 + col0 * + CAST ( + col1 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-122182
-51562
-728872

query I rowsort
SELECT + col0 + 52 * 68 FROM tab1 AS cor0
----
3539
3600
3616

query I rowsort
SELECT DISTINCT col1 + - col1 + - col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT 24 * - col2 * - col0 - - col2 * + col1 FROM tab0 AS cor0
----
182614
21846
937

query I rowsort
SELECT - ( col2 ) + + col2 + 28 AS col1 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT + col1 * - 87 FROM tab0 AS cor0
----
-7482
-7917
-8439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 + col1 col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - cor0.col0 - 5 AS col2 FROM tab2 AS cor0
----
-12
-83
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT - ( - col0 ) DIV cor0.col1 - 82 DIV col0 FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-3920
SELECT - ( - col0 ) / cor0.col1 - 82 / col0 FROM tab0 cor0
----
-2
-3
0

query I rowsort
SELECT ALL + 90 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT + + col2 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ( col2 ) + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT ALL + 86 * + col1 + col1 DIV CAST( + col2 * col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
7396
7826
8343

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + 86 * + col1 + col1 / CAST ( + col2 * col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
7396
7826
8343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + cor0.col0 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f7ec0a15261bc91e76365477e4c3822d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - cor0.col2 col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col2 + ( tab0.col2 ) + - ( 50 ) * col1 AS col1 FROM tab0
----
-4234
-4386
-4848

onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT cor0.col0 * + col2 + col2 * - col2 + col2 * col0 DIV - col0 FROM tab2 AS cor0
----
-567
1326
1520

skipif mysql # not compatible
query I rowsort label-3928
SELECT cor0.col0 * + col2 + col2 * - col2 + col2 * col0 / - col0 FROM tab2 AS cor0
----
-567
1326
1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3929
SELECT CAST( NULL AS DECIMAL ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT CAST ( NULL AS REAL ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT 48 * cor0.col1 - - col0 FROM tab0 AS cor0
----
4152
4457
4691

query I rowsort
SELECT ALL - ( + tab2.col0 * + col0 ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + 1 FROM tab2, tab0, tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3934
SELECT col1 + col2 DIV col0 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-3934
SELECT col1 + col2 / col0 FROM tab2
----
17
34
59

query I rowsort
SELECT ALL 88 FROM tab0, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT + ( 33 ) * + col2 - + col2 FROM tab0
----
1056
2624
32

query I rowsort
SELECT ALL + 70 - col1 FROM tab1
----
44
57
60

query I rowsort
SELECT + col1 * + tab0.col0 + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 + + col1 + ( col2 ) * col0 FROM tab0 AS cor0
----
-211
131
665

query I rowsort
SELECT cor0.col1 + - col2 * 30 FROM tab2 AS cor0
----
-1123
-721
-779

query I rowsort
SELECT + col1 + + col1 * 10 FROM tab1 cor0
----
110
143
286

query I rowsort
SELECT DISTINCT col2 + - col0 * ( - col2 ) * + col0 AS col0 FROM tab2 cor0
----
1350
158210
237196

query I rowsort
SELECT - + ( col0 ) + + ( 91 ) AS col0 FROM tab2 AS cor0
----
12
13
84

query I rowsort
SELECT 10 - 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ALL - col0 - col0 * + col1 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT - ( + col2 ) + - 50 FROM tab1 AS cor0
----
-104
-107
-146

onlyif mysql # use DIV operator for integer division
query I rowsort label-3947
SELECT + col1 DIV + cor0.col2 - col0 FROM tab0 cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-3947
SELECT + col1 / + cor0.col2 - col0 FROM tab0 cor0
----
-22
-88
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT ALL col0 DIV ( + 43 * - col1 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL col0 / ( + 43 * - col1 ) FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT ALL col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3950
SELECT col2 DIV - 29 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT col2 / - 29 AS col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 * col0 + 38 + - col0 AS col0 FROM tab1 AS cor0
----
4070
44
6358

query I rowsort
SELECT DISTINCT + col1 * ( col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT + col1 * + col1 * col1 + tab0.col1 FROM tab0
----
636142
753662
912770

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-3955
SELECT ( col2 ) DIV col1 col1 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3955
SELECT ( col2 ) / col1 col1 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT col1 * col1 DIV col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3956
SELECT col1 * col1 / col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL tab2.col2 * + ( col2 ) AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL - col0 + 35 FROM tab1 AS cor0
----
-29
-45
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT ( ( cor0.col1 ) ) DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3959
SELECT ( ( cor0.col1 ) ) / - col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL - 49 * col0 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-1304
-4160
-7303

query I rowsort
SELECT DISTINCT 74 + cor0.col1 + - 78 FROM tab2, tab1 AS cor0
----
22
6
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT DISTINCT - - col2 + + ( - col1 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - - col2 + + ( - col1 ) / + col1 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL - col1 * - 5 + - 92 AS col1 FROM tab1 AS cor0
----
-27
-42
38

query I rowsort
SELECT + - cor0.col0 * col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col0 - + ( + 96 ) FROM tab1 AS cor0
----
-16
-32
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 31 col1 FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT + cor0.col2 + 7 AS col2 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT col1 + - col1 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col2 * - 56 - col1 AS col0 FROM tab1 AS cor0
----
-3050
-3202
-5389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - ( col2 ) col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + col0 * + col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - 13 * - ( col2 ) FROM tab0 AS cor0
----
1066
13
429

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3974
SELECT + CAST( - col0 AS SIGNED ) * - col0 + 33 * col1 FROM tab0 cor0
----
10924
3414
4426

skipif mysql # not compatible
query I rowsort label-3974
SELECT + CAST ( - col0 AS INTEGER ) * - col0 + 33 * col1 FROM tab0 cor0
----
10924
3414
4426

query I rowsort
SELECT - + 59 * - cor0.col1 - cor0.col0 FROM tab1 AS cor0
----
1531
526
687

query I rowsort
SELECT - col1 + - ( - col0 ) AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL - 40 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT col0 + 1 * 61 FROM tab0
----
150
85
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT DISTINCT + col0 DIV col1 + 47 FROM tab2
----
47
48
51

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + col0 / col1 + 47 FROM tab2
----
47
48
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3980
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3980
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 31 * col2 AS col1 FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT - 73 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to b6d4a8c1826477f660e7b977a0d1fdd7

query I rowsort
SELECT DISTINCT 13 * + col1 * col1 FROM tab0
----
107653
122317
96148

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab0, tab0 cor0
----
1
33
82

query I rowsort
SELECT 56 * - col0 + 60 FROM tab1
----
-108
-3524
-4420

query I rowsort
SELECT - tab0.col0 * col0 + col2 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT ( + cor0.col0 ) + ( - 94 ) AS col1 FROM tab2 AS cor0
----
-15
-16
-87

query I rowsort
SELECT ALL 95 * - col1 * + col0 AS col2 FROM tab2
----
-127585
-20615
-437190

query I rowsort
SELECT col0 * - ( - 74 * - col0 ) FROM tab0 AS cor0
----
-42624
-586154
-90650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3990
SELECT + col1 * CAST( + col1 * col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
205379
29791
4913

skipif mysql # not compatible
query I rowsort label-3990
SELECT + col1 * CAST ( + col1 * col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT - cor0.col1 * 1 DIV col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3991
SELECT - cor0.col1 * 1 / col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT ( col1 ) * col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT 55 + - col0 AS col1 FROM tab1 AS cor0
----
-25
-9
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3994
SELECT CAST( NULL AS DECIMAL ) * + col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3994
SELECT CAST ( NULL AS REAL ) * + col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 35 ) AS col1 FROM tab1
----
35
35
35

query I rowsort
SELECT - col2 * 58 AS col2 FROM tab2 AS cor0
----
-1508
-1566
-2204

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3997
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * col2 * col1 col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + - CAST ( NULL AS REAL ) * col2 * col1 col0 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT DISTINCT - 23 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - 23 / + col1 AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL 83 AS col0 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - col2 * col0 + + col0 * - col0 + - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1075
-9646
-9889

query I rowsort
SELECT DISTINCT + + 65 * - col0 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT DISTINCT + 68 * col1 FROM tab2 AS cor0
----
1156
2108
4012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 * - col2 col0 FROM tab1 AS cor0
----
-1026
-1728
-972

query I rowsort
SELECT + ( col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT tab0.col2 * + col1 * col0 + - tab0.col2 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT 89 * + col0 FROM tab2 AS cor0
----
623
6942
7031

query I rowsort
SELECT col1 * + ( 23 ) AS col2 FROM tab0
----
1978
2093
2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-4008
SELECT ALL tab0.col0 DIV - col0 - + 54 AS col2 FROM tab0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL tab0.col0 / - col0 - + 54 AS col2 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT col1 * - 3 FROM tab1
----
-30
-39
-78

query I rowsort
SELECT - - tab0.col2 * 85 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 15490118be912011bb0fa199166a034e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4011
SELECT col2 DIV + 6 FROM tab1
----
16
9
9

skipif mysql # not compatible
query I rowsort label-4011
SELECT col2 / + 6 FROM tab1
----
16
9
9

query I rowsort
SELECT col1 - col0 * 2 * col1 FROM tab1
----
-1270
-130
-2067

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT - 25 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT - 25 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col1 ) col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT + col1 DIV ( + col1 + 96 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4015
SELECT + col1 / ( + col1 + 96 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 94 + col0 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT ALL + 89 AS col2 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT + col0 * 21 FROM tab1 AS cor0
----
1344
1680
63

query I rowsort
SELECT DISTINCT col2 * 95 AS col0 FROM tab2
----
2470
2565
3610

query I rowsort
SELECT col1 * - col1 * - col1 - col2 AS col2 FROM tab1 AS cor0
----
17522
2101
943

query I rowsort
SELECT - col0 * 99 AS col2 FROM tab1
----
-297
-6336
-7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4022
SELECT col0 * 53 + col1 DIV col2 AS col1 FROM tab0 cor0
----
1274
1952
4718

skipif mysql # not compatible
query I rowsort label-4022
SELECT col0 * 53 + col1 / col2 AS col1 FROM tab0 cor0
----
1274
1952
4718

query I rowsort
SELECT - 31 * - col0 AS col0 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT ALL + 47 + + ( - col2 ) * ( - col2 ) AS col0 FROM tab0 AS cor0
----
1136
48
6771

query I rowsort
SELECT - col1 + + 63 AS col0 FROM tab2 AS cor0
----
32
4
46

query I rowsort
SELECT cor0.col0 * col1 + 6 FROM tab2 AS cor0
----
1349
223
4608

query I rowsort
SELECT - col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT + - ( cor0.col1 ) * col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT ALL + col2 * 65 DIV col2 + col2 FROM tab0 AS cor0
----
147
66
98

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL + col2 * 65 / col2 + col2 FROM tab0 AS cor0
----
147
66
98

query I rowsort
SELECT + col1 * - col1 * ( col2 ) + ( col2 ) * - col1 FROM tab0 AS cor0
----
-246906
-686504
-9506

query I rowsort
SELECT + 88 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT - 87 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT ALL - col0 * 2 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - cor0.col0 + ( - 43 ) FROM tab0 AS cor0
----
-132
-67
-78

query I rowsort
SELECT + col1 + 13 * col1 FROM tab1 AS cor0
----
140
182
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + col1 + + 13 * + col1 FROM tab2 cor0
----
204
372
708

query I rowsort
SELECT ALL + cor0.col1 * col1 + 10 - col0 AS col0 FROM tab0 AS cor0
----
7382
8202
9384

query I rowsort
SELECT DISTINCT + tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
86
91
97

query I rowsort
SELECT 72 - col2 * cor0.col0 FROM tab0 AS cor0
----
-720
-7226
37

query I rowsort
SELECT col2 - + 78 AS col1 FROM tab1 AS cor0
----
-21
-24
18

query I rowsort
SELECT DISTINCT - 34 - + col1 FROM tab0 AS cor0
----
-120
-125
-131

query I rowsort
SELECT + col2 * 3 - tab2.col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL - + cor0.col2 * 44 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1f98a562ae5c34edf8c726f9a6876dc7

query I rowsort
SELECT ALL + col1 + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + 94 * + col0 AS col2 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT - col2 + - 88 * + col0 AS col1 FROM tab2
----
-643
-6890
-6990

query I rowsort
SELECT DISTINCT + ( 63 ) FROM tab0
----
63

query I rowsort
SELECT 71 * + tab1.col1 * col2 FROM tab1
----
40470
88608
99684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4050
SELECT CAST( col0 AS SIGNED ) * - col0 AS col1 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-4050
SELECT CAST ( col0 AS INTEGER ) * - col0 AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + 31 * + col1 AS col0 FROM tab0
----
2666
2821
3007

onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT col1 DIV + col0 + col0 AS col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-4052
SELECT col1 / + col0 + col0 AS col0 FROM tab0
----
27
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab2
----
99
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT col1 + + col0 DIV CAST( - col0 * - col1 AS SIGNED ) FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4054
SELECT col1 + + col0 / CAST ( - col0 * - col1 AS INTEGER ) FROM tab2
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4055
SELECT ( + col2 * CAST( col2 AS SIGNED ) ) AS col1 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-4055
SELECT ( + col2 * CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + col0 + col1 * ( + col2 * col1 + - col2 * ( col0 ) ) FROM tab2 AS cor0
----
-29068
-39973
20095

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4057
SELECT DISTINCT + - CAST( 68 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
18
23
29

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT + - CAST ( 68 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
18
23
29

query I rowsort
SELECT + cor1.col0 FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT 32 + col1 AS col1 FROM tab0
----
118
123
129

query I rowsort
SELECT col2 + + 54 FROM tab1
----
108
111
150

query I rowsort
SELECT ALL - - 65 * col1 + col1 * + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-171914
-323010
-731094

query I rowsort
SELECT DISTINCT + col2 * - 3 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT ALL col0 * - col0 + - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - cor0.col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL 69 AS col2 FROM tab0 cor0
----
69
69
69

query I rowsort
SELECT - ( - col0 ) + col0 * 33 AS col1 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT DISTINCT - col1 + 55 FROM tab1 AS cor0
----
29
42
45

query I rowsort
SELECT ALL - cor0.col0 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + - col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 63 + col1 AS col2 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT - - 16 * + col0 FROM tab1 AS cor0
----
1024
1280
48

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * + CAST ( col0 AS REAL ) - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - col0 * + 46 FROM tab0 AS cor0
----
-1104
-1610
-4094

query I rowsort
SELECT DISTINCT - ( + cor0.col0 + tab1.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 6cc6cfb6b21f39e6779528cff3c6eb4f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT col2 DIV 48 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4076
SELECT col2 / 48 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - + col0 * + 10 * - cor0.col0 + - col2 FROM tab2 AS cor0
----
463
60814
62372

query I rowsort
SELECT col1 * cor0.col0 + + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT ALL col1 DIV 6 col0 FROM tab2 cor0
----
2
5
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL col1 / 6 col0 FROM tab2 cor0
----
2
5
9

query I rowsort
SELECT DISTINCT - col1 + + 43 * + col2 + cor0.col1 * + 51 FROM tab2 AS cor0
----
2484
2711
4068

query I rowsort
SELECT - col2 * - ( 87 ) AS col2 FROM tab0
----
2871
7134
87

query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 * - col0 AS col0 FROM tab1 cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4084
SELECT ALL col2 * col2 + - col1 DIV ( col2 ) FROM tab0 cor0
----
-96
1087
6723

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL col2 * col2 + - col1 / ( col2 ) FROM tab0 cor0
----
-96
1087
6723

query I rowsort
SELECT + + 89 + 68 * - col2 FROM tab0 cor0
----
-2155
-5487
21

query I rowsort
SELECT col2 - + 95 * col1 FROM tab0
----
-8137
-8563
-9214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col2 ) * + col0 col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col2 FROM tab0, tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * col1 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - - cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4092
SELECT DISTINCT CAST( - 64 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT CAST ( - 64 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
-64

query I rowsort
SELECT cor0.col0 * - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d6e251a4a6d3e8483c15062bde9b3abb

query I rowsort
SELECT col1 + + 0 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col0 - - col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 52 FROM tab2, tab1 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT 91 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL col1 + - col1 + + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT 72 * - col0 * col2 FROM tab1
----
-11664
-262656
-552960

query I rowsort
SELECT DISTINCT - col0 + - tab2.col0 AS col2 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + col0 * + 21 AS col0 FROM tab1 cor0
----
1344
1680
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT + - cor0.col0 DIV col0 + col1 - + col2 AS col1 FROM tab0 AS cor0
----
52
8
95

skipif mysql # not compatible
query I rowsort label-4102
SELECT + - cor0.col0 / col0 + col1 - + col2 AS col1 FROM tab0 AS cor0
----
52
8
95

query I rowsort
SELECT DISTINCT + col1 + - 14 * - 60 * cor0.col1 AS col1 FROM tab2 AS cor0
----
14297
26071
49619

query I rowsort
SELECT + col0 * + 76 FROM tab1
----
228
4864
6080

query I rowsort
SELECT + ( ( tab0.col1 ) ) + + 86 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 21ba6badc2e2d538b9d76ba7685c7aa3

query I rowsort
SELECT col2 * col1 + + col0 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 92 col0 FROM tab1 AS cor0
----
66
79
82

query I rowsort
SELECT - - col2 * + col1 - - col1 * col0 FROM tab1 cor0
----
1210
1482
2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + 45 col1 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT DISTINCT - cor0.col2 - + 20 FROM tab0 AS cor0
----
-102
-21
-53

query I rowsort
SELECT + + col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 * + ( col2 ) AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 + - 15 FROM tab0 AS cor0
----
-16
-48
-97

query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 * + cor0.col1 - col1 AS col1 FROM tab2 AS cor0
----
-119711
-51051
-5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT col1 DIV col2 - + 16 DIV - col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4115
SELECT col1 / col2 - + 16 / - col1 FROM tab0
----
1
2
97

query I rowsort
SELECT ( 40 ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + col1 * - tab1.col0 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL - col1 * + 64 FROM tab0
----
-5504
-5824
-6208

query I rowsort
SELECT DISTINCT - col1 * tab1.col2 * tab1.col1 AS col1 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT ALL ( 16 ) DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL ( 16 ) / col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT DISTINCT 89 DIV 35 + col1 * - col0 AS col0 FROM tab1
----
-1038
-638
-76

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT 89 / 35 + col1 * - col0 AS col0 FROM tab1
----
-1038
-638
-76

query I rowsort
SELECT DISTINCT 83 + - ( tab2.col1 ) + 28 FROM tab2
----
52
80
94

query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - - 42 * 55 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to a50668ebc78a9345d90a2f310ac11985

query I rowsort
SELECT + + 25 * col2 AS col1 FROM tab0 AS cor0
----
2050
25
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + 45 * - cor0.col1 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT ALL + 48 * - col0 AS col1 FROM tab2 cor0
----
-336
-3744
-3792

query I rowsort
SELECT DISTINCT + 48 * col0 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT cor1.col2 FROM tab0, tab2, tab2 AS cor0, tab1 cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT 47 * col2 * + col2 AS col0 FROM tab1
----
137052
152703
433152

query I rowsort
SELECT + 29 + - col1 FROM tab1
----
16
19
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT DISTINCT col0 DIV + tab0.col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT col0 / + tab0.col2 AS col2 FROM tab0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4134
SELECT col2 + + col1 DIV col1 AS col0 FROM tab2 cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4134
SELECT col2 + + col1 / col1 AS col0 FROM tab2 cor0
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + col1 + 71 col0 FROM tab1 cor0
----
1124
175
721

query I rowsort
SELECT DISTINCT + 11 + col0 + cor0.col1 FROM tab2 AS cor0
----
107
148
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4137
SELECT ALL + - 91 + - col2 DIV 18 FROM tab2 AS cor0
----
-92
-92
-93

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + - 91 + - col2 / 18 FROM tab2 AS cor0
----
-92
-92
-93

query I rowsort
SELECT DISTINCT + col1 + col0 * + ( - col1 + col1 * - 43 ) FROM tab2 AS cor0
----
-202429
-59075
-9517

query I rowsort
SELECT col0 + + ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - cor0.col2 * - 26 AS col1 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT ALL - + cor0.col0 + 18 + - col0 AS col0 FROM tab0 cor0
----
-160
-30
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT - col2 + - 32 DIV - ( - col2 ) col0 FROM tab0 AS cor0
----
-33
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4142
SELECT - col2 + - 32 / - ( - col2 ) col0 FROM tab0 AS cor0
----
-33
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 82 col2 FROM tab2 AS cor0
----
-23
-51
-65

query I rowsort
SELECT DISTINCT - + col2 * + 63 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT DISTINCT - - col2 + + col0 * 68 * - col2 FROM tab2 AS cor0
----
-12825
-137878
-204098

query I rowsort
SELECT col0 + + 55 FROM tab2 AS cor0
----
133
134
62

query I rowsort
SELECT ALL - cor0.col2 + cor0.col0 AS col1 FROM tab0 cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT DISTINCT + cor0.col0 DIV 66 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + cor0.col0 / 66 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col1 * - col2 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT 66 * + 78 + - col1 AS col1 FROM tab0 AS cor0
----
5051
5057
5062

query I rowsort
SELECT ALL + + col1 - - 97 FROM tab2 AS cor0
----
114
128
156

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4152
SELECT - CAST( - col1 AS SIGNED ) * col0 + ( cor0.col1 ) FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-4152
SELECT - CAST ( - col1 AS INTEGER ) * col0 + ( cor0.col1 ) FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4153
SELECT ALL + col0 + + 47 DIV - col1 AS col2 FROM tab1 AS cor0
----
2
60
77

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + col0 + + 47 / - col1 AS col2 FROM tab1 AS cor0
----
2
60
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 21 AS col0 FROM tab1 AS cor0
----
31
34
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4156
SELECT CAST( 26 AS SIGNED ) FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-4156
SELECT CAST ( 26 AS INTEGER ) FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT ALL - + ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT CAST ( NULL AS REAL ) * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 54 * - col2 + col0 FROM tab1 AS cor0
----
2919
3142
5264

onlyif mysql # use DIV operator for integer division
query I rowsort label-4160
SELECT ALL 14 DIV + cor0.col1 AS col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL 14 / + cor0.col1 AS col2 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT DISTINCT col2 + + col2 AS col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT ALL - col0 * - col2 + + col1 DIV + col1 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - col0 * - col2 + + col1 / + col1 FROM tab0 AS cor0
----
36
7299
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col0 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + ( + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + ( + col1 ) * col2 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT DISTINCT 83 + + 63 DIV + col2 AS col1 FROM tab1 cor0
----
83
84

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT 83 + + 63 / + col2 AS col1 FROM tab1 cor0
----
83
84

query I rowsort
SELECT DISTINCT 46 FROM tab0, tab1 AS cor0
----
46

query I rowsort
SELECT DISTINCT 32 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
32

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-1
-33
-82

query I rowsort
SELECT cor1.col2 + + ( + 30 ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d577b7c4b2251372cbdc2cd31a5582d7

query I rowsort
SELECT DISTINCT - tab1.col1 + col2 * col0 AS col0 FROM tab1
----
136
3638
7667

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> ( col1 * - col2 )
----

query I rowsort
SELECT tab1.col2 - col0 * - col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab1 WHERE NOT col2 + col1 <> col1 / col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT DISTINCT col2 * + tab1.col2 * col2 + + col0 DIV + col2 col2 FROM tab1
----
157464
185194
884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT col2 * + tab1.col2 * col2 + + col0 / + col2 col2 FROM tab1
----
157464
185194
884736

query I rowsort
SELECT ALL - col2 - + col0 * col0 FROM tab2
----
-6110
-6279
-76

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * col2 + - col2 NOT IN ( col0 + - col2 * + col0 - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col1 * - col1 + - col0 * - col2 FROM tab1
----
-514
3548
7511

query I rowsort
SELECT - col1 * - col0 + - col0 AS col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT tab0.col1 - - col1 AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND col1 * col0 * col1
----

query I rowsort
SELECT + tab1.col0 * + col2 + + col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col0 - + col2 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT col2 FROM tab2 WHERE col1 IN ( col2 )
----

query I rowsort
SELECT ALL col0 - + col1 * + col1 * + tab0.col1 AS col2 FROM tab0
----
-636032
-753482
-912638

query I rowsort
SELECT col1 + col2 * - col1 * + col1 FROM tab2
----
-10965
-25916
-90447

query I rowsort
SELECT + tab2.col0 FROM tab2 WHERE NULL <> - col2 * col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( - col1 * - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - col0 + col1 * + col0 AS col2 FROM tab2
----
1264
210
4524

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( + col0 ) IN ( - col1 + col2 )
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 * col0 * col0 + + col2 AS col0 FROM tab1
----
-180
-40903
-83104

onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT + col2 + + col2 * + col0 DIV + col0 FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-4193
SELECT + col2 + + col2 * + col0 / + col0 FROM tab0
----
164
2
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + col0 * - col2 NOT IN ( + col1 * col1 + - col0 * + tab1.col0 - col2 )
----

query I rowsort
SELECT ALL col2 + tab1.col0 * - tab1.col2 AS col2 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4196
SELECT ALL + col0 DIV col0 + - col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + col0 / col0 + - col0 FROM tab2
----
-6
-77
-78

query I rowsort
SELECT + cor0.col1 + - cor0.col2 - col1 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT cor0.col1 * col2 * col2 + - col1 DIV col0 - col1 AS col0 FROM tab2 cor0
----
22564
24531
39825

skipif mysql # not compatible
query I rowsort label-4198
SELECT cor0.col1 * col2 * col2 + - col1 / col0 - col1 AS col0 FROM tab2 cor0
----
22564
24531
39825

query I rowsort
SELECT ALL + - cor0.col0 * cor0.col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col2 + + col1 + col1 * col2 AS col0 FROM tab1 AS cor0 WHERE NULL <> + col1 + col2 * col0
----

query I rowsort
SELECT col0 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - col2 * + col2 - + col0 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT + cor0.col1 + + col0 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2728
-7282
35

query I rowsort
SELECT col2 + + 58 FROM tab1 cor0
----
112
115
154

query I rowsort
SELECT + + cor0.col1 * - col1 * + col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT ( + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - col2 * col0 + - col2 + 61 * - ( + col2 ) FROM tab1 AS cor0
----
-13632
-3510
-7182

query I rowsort
SELECT - ( - col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 45 AS col2 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - 20 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT ALL + col1 * tab0.col1 + tab0.col0 AS col1 FROM tab0
----
7420
8370
9444

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND - col0 - col2
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4213
SELECT cor0.col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT cor0.col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + - cor0.col2 * - CAST ( 49 AS REAL ) * + col1 + 29 FROM tab2 AS cor0
----
31683
41042
75195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col2 FROM tab1
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4216
SELECT + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4216
SELECT + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 11 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT 12 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT - ( + col0 ) + - col1 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4220
SELECT ALL - col0 + col1 * col0 DIV + col2 FROM tab0 AS cor0
----
3360
38
9

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - col0 + col1 * col0 / + col2 FROM tab0 AS cor0
----
3360
38
9

query I rowsort
SELECT ALL ( + 16 ) AS col1 FROM tab0 cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ( 31 ) FROM tab1
----
31
31
31

query I rowsort
SELECT ALL cor0.col0 + col2 * col0 + - cor0.col2 * - col0 FROM tab0 AS cor0
----
105
14685
1608

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT ALL - col2 * - cor0.col2 + col2 DIV + col1 AS col0 FROM tab1 cor0
----
2918
3254
9223

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - col2 * - cor0.col2 + col2 / + col1 AS col0 FROM tab1 cor0
----
2918
3254
9223

query I rowsort
SELECT + 29 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - ( 34 ) FROM tab1
----
-34
-34
-34

query I rowsort
SELECT ( col0 ) + + col0 AS col0 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT DISTINCT - 80 DIV - col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT - 80 / - col1 FROM tab1
----
3
6
8

query I rowsort
SELECT - - col1 * col1 + + 34 AS col0 FROM tab2 AS cor0
----
323
3515
995

query I rowsort
SELECT DISTINCT + 4 * col0 FROM tab0
----
140
356
96

query I rowsort
SELECT + 23 * + col1 FROM tab2
----
1357
391
713

query I rowsort
SELECT + - col1 + ( 53 ) * col1 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT DISTINCT ( + col2 + - col1 * 54 ) AS col0 FROM tab2
----
-1647
-3160
-880

query I rowsort
SELECT DISTINCT ( - 50 ) * cor0.col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
-1300
-1350
-1900

onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT 50 DIV - col0 AS col2 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT 50 / - col0 AS col2 FROM tab2
----
-7
0
0

query I rowsort
SELECT col0 * - 7 FROM tab0
----
-168
-245
-623

query I rowsort
SELECT DISTINCT + - 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

query I rowsort
SELECT 99 - - cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ab399b070ca2e21b0820d3fb4d3cfd38

query I rowsort
SELECT + col2 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col0 + + col2 * col2 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT ALL 42 + 74 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 7324eaa913d41ca49be16a4d4d27d988

query I rowsort
SELECT ALL - col0 + col1 + - col2 AS col0 FROM tab1
----
-111
-163
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL - + 98 + col0 AS col2 FROM tab0 AS cor0
----
-63
-74
-9

query I rowsort
SELECT - col0 * + col0 * - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
316
474526
493001

onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT ALL tab2.col0 DIV - ( col0 ) col1 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL tab2.col0 / - ( col0 ) col1 FROM tab2
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4249
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + 87 FROM tab1
----
-9
30
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4251
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 73 + + col2 FROM tab0 cor0
----
6311
6725
7082

query I rowsort
SELECT ALL 60 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4254
SELECT col2 * CAST( 84 * col2 AS SIGNED ) FROM tab1
----
244944
272916
774144

skipif mysql # not compatible
query I rowsort label-4254
SELECT col2 * CAST ( 84 * col2 AS INTEGER ) FROM tab1
----
244944
272916
774144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT ALL - CAST( ( + col1 ) AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - CAST ( ( + col1 ) AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT + - CAST( NULL AS DECIMAL ) + 59 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT + - CAST ( NULL AS REAL ) + 59 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 33 * - col1 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT ALL + ( - col2 ) * cor0.col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - ( col2 ) * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - 14 AS col1 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + col0 * 36 + cor0.col1 FROM tab0 cor0
----
1357
3295
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT ALL - - 89 DIV col0 col1 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - - 89 / col0 col1 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT - CAST( - col2 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-4263
SELECT - CAST ( - col2 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col1 + + 70 FROM tab0 AS cor0
----
156
161
167

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 * - cor0.col0 AS col0 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + 90 + + col2 + + col1 AS col2 FROM tab2 AS cor0
----
145
148
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT 10 * - 36 AS col2 FROM tab2 AS cor0
----
-360
-360
-360

query I rowsort
SELECT - + ( col0 ) + - 50 * - 65 FROM tab1 AS cor0
----
3170
3186
3247

query I rowsort
SELECT ALL - cor0.col0 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - col0 - 96 * 65 FROM tab2 AS cor0
----
-6161
-6162
-6233

onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT - col0 * + ( col2 ) * - col1 - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
36479
4211
99839

skipif mysql # not compatible
query I rowsort label-4274
SELECT - col0 * + ( col2 ) * - col1 - col1 / + col1 AS col0 FROM tab1 AS cor0
----
36479
4211
99839

query I rowsort
SELECT ALL - cor0.col2 + - ( col0 ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + col0 + - 94 FROM tab0 cor0
----
-5
-59
-70

query I rowsort
SELECT ALL - cor0.col1 * col1 + 66 + col0 * + col0 * col1 FROM tab0 AS cor0
----
109482
42206
712596

query I rowsort
SELECT ALL + ( 15 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT ALL col0 DIV col2 - col0 DIV - col1 AS col1 FROM tab1
----
0
6
7

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL col0 / col2 - col0 / - col1 AS col1 FROM tab1
----
0
6
7

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + + col2 + col2 * + col1 FROM tab1 cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT DISTINCT - + col0 DIV col1 + - 24 * + 32 * + col0 - - 92 AS col0 FROM tab2 AS cor0
----
-5284
-59813
-60584

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - + col0 / col1 + - 24 * + 32 * + col0 - - 92 AS col0 FROM tab2 AS cor0
----
-5284
-59813
-60584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4283
SELECT col1 + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT col1 + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - cor0.col2 * ( + ( col2 ) ) * + col0 col1 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT DISTINCT - col1 * - col1 - + col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL 94 + col0 * 74 AS col2 FROM tab0 AS cor0
----
1870
2684
6680

query I rowsort
SELECT ALL - - col0 * - col0 + - col2 * 91 AS col1 FROM tab1 AS cor0
----
-15136
-4923
-9283

query I rowsort
SELECT ALL + 36 + - col2 AS col2 FROM tab1
----
-18
-21
-60

query I rowsort
SELECT 41 + + col1 * col2 + col1 * col2 AS col2 FROM tab2
----
1333
1715
3109

query I rowsort
SELECT ALL - 75 + - 75 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 33a2bf548fec79d4b8e6dea93edc77dd

query I rowsort
SELECT DISTINCT + + cor0.col1 * - 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2924
-3094
-3298

query I rowsort
SELECT ALL - 36 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-2294
-2867
-82

query I rowsort
SELECT - col2 * cor0.col1 + + 10 FROM tab0 AS cor0
----
-2828
-7452
-87

query I rowsort
SELECT ALL + - 75 + col0 * - col1 FROM tab0 AS cor0
----
-2139
-3470
-8174

query I rowsort
SELECT ALL + cor0.col1 + col1 * - ( + col2 ) - + col2 AS col2 FROM tab0 AS cor0
----
-1
-2785
-7453

query I rowsort
SELECT - 99 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT + tab0.col0 + - tab0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b

query I rowsort
SELECT + 54 + 97 AS col0 FROM tab1
----
151
151
151

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col2 FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4302
SELECT DISTINCT col0 + - ( col2 ) DIV col0 FROM tab2
----
4
78
79

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT col0 + - ( col2 ) / col0 FROM tab2
----
4
78
79

query I rowsort
SELECT - ( - col0 ) * col1 * + col0 AS col2 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT col0 + 75 * - col1 FROM tab2 cor0
----
-1196
-2318
-4347

query I rowsort
SELECT ( 67 ) + col2 + col1 * - col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
119745
51139
5953

query I rowsort
SELECT DISTINCT 39 * + 48 + + col0 FROM tab0
----
1896
1907
1961

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * cor0.col1 + col0 AS col0 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - - col0 * col2 + col2 * + cor0.col1 + + col1 FROM tab1 AS cor0
----
1592
4228
8941

query I rowsort
SELECT ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - + cor0.col0 * - col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col1 + col2 + + col2 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab0, tab2 AS cor0
----
48

query I rowsort
SELECT + - 4 + col1 AS col2 FROM tab2 AS cor0
----
13
27
55

query I rowsort
SELECT ALL - + 60 AS col1 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT - 70 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - col1 * 0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT ( + col2 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4317
SELECT ( + col2 ) / + col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1, tab1 cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT - col0 * - col2 + 28 + 97 FROM tab0 AS cor0
----
160
7423
917

query I rowsort
SELECT - tab1.col2 * cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c1a4ef6aeb30ab7efaf02c815e264690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + - col0 - + col1 col1 FROM tab0 AS cor0
----
-208
-230
-278

query I rowsort
SELECT + + col1 + col2 + 51 * + 90 AS col0 FROM tab0 AS cor0
----
4688
4709
4763

query I rowsort
SELECT - col1 * col0 + - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4324
SELECT DISTINCT cor0.col1 * col1 + + col0 * col1 DIV + 61 FROM tab1 AS cor0
----
110
186
677

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT cor0.col1 * col1 + + col0 * col1 / + 61 FROM tab1 AS cor0
----
110
186
677

query I rowsort
SELECT ALL + - col0 * + 68 FROM tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT + tab2.col2 + + tab2.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 8a206af99264e378e55b667df888459e

query I rowsort
SELECT + + 94 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT - 52 * + col1 * + col1 FROM tab1 AS cor0
----
-35152
-5200
-8788

onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT ALL - tab1.col2 DIV - ( tab1.col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - tab1.col2 / - ( tab1.col2 ) FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT DISTINCT + col0 DIV - 64 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + col0 / - 64 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT + col2 - + col2 * 31 FROM tab0
----
-2460
-30
-990

query I rowsort
SELECT DISTINCT + col1 * + tab1.col2 * col1 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + col2 + cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - 79 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
1810
2668
6940

query I rowsort
SELECT 98 * + col0 + col2 FROM tab2 AS cor0
----
713
7670
7780

query I rowsort
SELECT - col0 + col1 * 76 AS col2 FROM tab0 AS cor0
----
6512
6827
7337

query I rowsort
SELECT - col2 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + col0 + col2 * + col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + col2 * + 15 + - col0 AS col0 FROM tab1 AS cor0
----
1360
791
807

query I rowsort
SELECT DISTINCT + - col0 * ( ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col2 * 76 + cor0.col2 * - 29 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT ALL 79 + col0 - - col2 * col2 FROM tab1
----
2998
3392
9375

query I rowsort
SELECT ALL - ( col0 ) - - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - - 26 AS col0 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT ( col1 ) * - cor0.col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4346
SELECT + CAST( 21 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-4346
SELECT + CAST ( 21 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4347
SELECT + CAST( NULL AS SIGNED ) * - col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT + CAST ( NULL AS INTEGER ) * - col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 30 * + col1 + + col2 * + col1 FROM tab0 AS cor0
----
-2813
258
4732

query I rowsort
SELECT DISTINCT - col2 * - 39 AS col0 FROM tab1
----
2106
2223
3744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4350
SELECT DISTINCT + col1 + col2 * - col2 - CAST( NULL AS DECIMAL ) / ( - col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + col1 + col2 * - col2 - CAST ( NULL AS REAL ) / ( - col0 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 * col1 - + col0 AS col2 FROM tab1
----
576
75
960

query I rowsort
SELECT - 51 * - col1 + + ( + col0 ) FROM tab1 cor0
----
1329
574
743

query I rowsort
SELECT - col0 * + col2 + ( + col0 ) FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + 81 + col0 FROM tab1 AS cor0
----
145
161
84

query I rowsort
SELECT col1 - - col0 * ( col1 + cor0.col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
12617
391229
73882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * ( col0 ) * cor0.col2 col1 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col1 * col2 + ( col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2
----
13122 values hashing to f6dc682244db409955826f39c792dd5c

query I rowsort
SELECT ALL 97 + col2 FROM tab1 AS cor0
----
151
154
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT DISTINCT - col0 DIV col0 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - col0 / col0 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT - - col2 - col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - 56 + col1 AS col0 FROM tab1
----
-30
-43
-46

query I rowsort
SELECT + col1 + - col0 * - ( - col0 ) FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT DISTINCT - 98 DIV - col1 + - 34 AS col0 FROM tab1
----
-25
-27
-31

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - 98 / - col1 + - 34 AS col0 FROM tab1
----
-25
-27
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL col1 + col2 * - tab2.col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT 42 + col2 + 42 FROM tab1
----
138
141
180

query I rowsort
SELECT + tab0.col2 * - col1 + col0 * + col1 AS col2 FROM tab0
----
-774
3298
637

query I rowsort
SELECT ALL col2 * - col2 + col1 AS col1 FROM tab2
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 + col2 * + col1 col2 FROM tab0
----
2769
28
7393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col2 FROM tab0, tab0 AS cor0
----
44

query I rowsort
SELECT ALL + col0 * col2 + - col2 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT DISTINCT - - col1 + ( + col2 ) * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4374
SELECT ALL + ( cor0.col0 ) * + col0 + col0 DIV + 65 - col2 * 41 * col0 AS col2 FROM tab1 AS cor0
----
-145472
-308479
-6633

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL + ( cor0.col0 ) * + col0 + col0 / + 65 - col2 * 41 * col0 AS col2 FROM tab1 AS cor0
----
-145472
-308479
-6633

query I rowsort
SELECT DISTINCT col0 + 55 * + col1 FROM tab2 AS cor0
----
1014
1712
3323

query I rowsort
SELECT DISTINCT + 59 - 79 * + col0 FROM tab0 AS cor0
----
-1837
-2706
-6972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT - col1 + 5 DIV + col1 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4377
SELECT - col1 + 5 / + col1 AS col1 FROM tab0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4378
SELECT + col2 * - CAST( NULL AS SIGNED ) + + 17 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT + col2 * - CAST ( NULL AS INTEGER ) + + 17 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT col1 DIV + 34 + - col0 AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4379
SELECT col1 / + 34 + - col0 AS col0 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT + col2 DIV col1 + ( tab0.col1 ) * col2 AS col0 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-4380
SELECT + col2 / col1 + ( tab0.col1 ) * col2 AS col0 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT ALL + col2 DIV - ( - col1 ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + col2 / - ( - col1 ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - - col0 * + 39 FROM tab1 AS cor0
----
117
2496
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 7 col2 FROM tab0 cor0
----
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4384
SELECT DISTINCT - col1 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT - col1 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL ( + 92 ) AS col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + - col2 * + 56 + - col2 AS col0 FROM tab2 AS cor0
----
-1482
-1539
-2166

onlyif mysql # use DIV operator for integer division
query I rowsort label-4387
SELECT DISTINCT - + col0 DIV col0 + + col0 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT - + col0 / col0 + + col0 AS col0 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4388
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-4388
SELECT + - CAST ( - col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4389
SELECT ALL + CAST( + ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + CAST ( + ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 38 * - col2 * col1 col2 FROM tab1 AS cor0
----
21660
47424
53352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4391
SELECT ALL + - CAST( NULL AS SIGNED ) + + col1 * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL + - CAST ( NULL AS INTEGER ) + + col1 * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 61 * 47 AS col2 FROM tab2 AS cor0
----
-2867
-2867
-2867

query I rowsort
SELECT DISTINCT - - ( + col1 ) * col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT 96 * + 11 FROM tab1 AS cor0
----
1056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab2.col2 * col1 col2 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT DISTINCT col1 * 75 DIV 69 FROM tab1
----
10
14
28

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT col1 * 75 / 69 FROM tab1
----
10
14
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4397
SELECT col0 * ( - col2 ) DIV - tab2.col1 FROM tab2
----
176
34
6

skipif mysql # not compatible
query I rowsort label-4397
SELECT col0 * ( - col2 ) / - tab2.col1 FROM tab2
----
176
34
6

query I rowsort
SELECT DISTINCT - col2 * col0 * ( - col1 ) AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + cor0.col2 + - 17 * - col1 AS col1 FROM tab2 AS cor0
----
1029
327
554

query I rowsort
SELECT + col2 * - col0 * + col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4401
SELECT - - col0 DIV - col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT - - col0 / - col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT ( 69 ) + col1 + + ( ( col2 ) + ( col2 ) ) DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
107
128
86

skipif mysql # not compatible
query I rowsort label-4402
SELECT ( 69 ) + col1 + + ( ( col2 ) + ( col2 ) ) / + cor0.col0 AS col1 FROM tab2 AS cor0
----
107
128
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT + + col2 DIV 76 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4403
SELECT + + col2 / 76 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + tab0.col1 * - 80 + + tab0.col1 AS col1 FROM tab0
----
-6794
-7189
-7663

query I rowsort
SELECT ALL tab0.col1 * 63 + - col1 * + col2 * col0 AS col0 FROM tab0
----
-62694
-658385
2716

query I rowsort
SELECT DISTINCT col1 + col1 + - col2 AS col0 FROM tab0
----
100
139
193

query I rowsort
SELECT - + cor0.col1 + + col0 * + col1 * + ( + ( + col2 ) ) AS col2 FROM tab0 cor0
----
3298
664027
68026

query I rowsort
SELECT ALL + 84 * 60 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b16ed0dae0105122cad2e54804d6f72c

query I rowsort
SELECT ALL - + 69 + - col2 * col2 FROM tab2 AS cor0
----
-1513
-745
-798

query I rowsort
SELECT DISTINCT - 65 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
-2121
-30
-5241

query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + - 79 * col0 FROM tab2 cor0
----
-553
-6162
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4413
SELECT DISTINCT - + 27 * - col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - + 27 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 25 AS col1 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT + 92 * col0 AS col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT DISTINCT - 85 * + col0 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT ALL + ( + col2 ) * + col0 + - 44 AS col0 FROM tab0 AS cor0
----
-9
7254
748

query I rowsort
SELECT DISTINCT - + 42 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2268
-2394
-4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-4419
SELECT ALL + + col1 * col1 DIV + 80 AS col0 FROM tab1 AS cor0
----
1
2
8

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + + col1 * col1 / + 80 AS col0 FROM tab1 AS cor0
----
1
2
8

query I rowsort
SELECT - - 11 + cor0.col2 * ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1078
-6713
10

query I rowsort
SELECT col0 + col2 * col0 * tab1.col2 FROM tab1
----
208000
737360
8751

query I rowsort
SELECT + + 20 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT 9 * cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 74b89488c41a18062094631642fbd640

query I rowsort
SELECT ALL - + col1 + - 11 FROM tab2 cor0
----
-28
-42
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4425
SELECT DISTINCT + col0 * ( - col1 ) * + cor0.col0 - - CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT + col0 * ( - col1 ) * + cor0.col0 - - CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col1 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col2 + - col0 + cor0.col0 * col1 FROM tab1 AS cor0
----
21
519
864

query I rowsort
SELECT - ( 48 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + - col1 + + 95 FROM tab1 cor0
----
69
82
85

query I rowsort
SELECT 98 + + cor0.col0 AS col1 FROM tab2 cor0
----
105
176
177

query I rowsort
SELECT + 10 + + col2 AS col1 FROM tab1 AS cor0
----
106
64
67

query I rowsort
SELECT ALL - 55 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1430
-550
-715

query I rowsort
SELECT 5 + + col2 - col2 AS col2 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT - ( cor1.col2 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4435
SELECT - col2 DIV col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
52
52
89

skipif mysql # not compatible
query I rowsort label-4435
SELECT - col2 / col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
52
52
89

query I rowsort
SELECT ALL 6 + col0 AS col1 FROM tab0
----
30
41
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4437
SELECT ALL - CAST( - col1 AS SIGNED ) + - tab1.col0 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - CAST ( - col1 AS INTEGER ) + - tab1.col0 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT ALL 88 + - col1 DIV col1 AS col2 FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL 88 + - col1 / col1 AS col2 FROM tab1
----
87
87
87

query I rowsort
SELECT - col1 + 74 FROM tab0
----
-12
-17
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col1 * col2 col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT 92 - - col2 DIV + col2 FROM tab0 cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-4441
SELECT 92 - - col2 / + col2 FROM tab0 cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col2 + 5 AS col2 FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT ALL + col1 - + 37 FROM tab2 AS cor0
----
-20
-6
22

query I rowsort
SELECT DISTINCT - tab1.col0 * + col2 * + 87 AS col2 FROM tab1
----
-14094
-317376
-668160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT - col1 DIV + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT - col1 / + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL + col2 + 30 * + col0 FROM tab0 AS cor0
----
1051
2752
753

query I rowsort
SELECT + + col1 + + col2 * 75 FROM tab1 AS cor0
----
4076
4285
7213

query I rowsort
SELECT DISTINCT - - col0 * col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 * 44 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT + col0 * 40 AS col0 FROM tab2 cor0
----
280
3120
3160

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT ALL - + col1 * + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - + col1 * + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col0 * col2 FROM tab2 AS cor0
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + col0 * col2 col1 FROM tab1 AS cor0
----
3008
6640
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT col2 * col2 + col0 DIV + col1 FROM tab1 AS cor0
----
2916
3255
9222

skipif mysql # not compatible
query I rowsort label-4456
SELECT col2 * col2 + col0 / + col1 FROM tab1 AS cor0
----
2916
3255
9222

onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT ALL col1 DIV - col1 + cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
127
159
5

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL col1 / - col1 + cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
127
159
5

query I rowsort
SELECT col0 + col0 - + col1 FROM tab0 AS cor0
----
-27
-38
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + col2 col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT - tab1.col0 + - col0 * - col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT col1 + - col1 * tab2.col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT + col2 * col1 + + col1 * tab1.col1 AS col2 FROM tab1
----
1417
2080
670

query I rowsort
SELECT + col2 - + tab2.col1 AS col0 FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4464
SELECT DISTINCT - - ( - col1 ) DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT - - ( - col1 ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL + + col1 + col2 * col2 AS col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT ALL - col1 * col0 + col0 * - col0 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col2 - col2 * col1 FROM tab1 AS cor0
----
-10464
-3819
-4320

query I rowsort
SELECT ALL 3 * col0 + + col0 AS col2 FROM tab0 cor0
----
140
356
96

query I rowsort
SELECT ( col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4470
SELECT ALL - 91 DIV - col2 + + col1 col2 FROM tab1 cor0
----
11
13
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL - 91 / - col2 + + col1 col2 FROM tab1 cor0
----
11
13
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT DISTINCT + 80 DIV col0 AS col1 FROM tab1 AS cor0
----
1
26

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + 80 / col0 AS col1 FROM tab1 AS cor0
----
1
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT ALL col0 * + col2 - cor0.col0 DIV col1 col2 FROM tab2 AS cor0
----
189
2027
2998

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL col0 * + col2 - cor0.col0 / col1 col2 FROM tab2 AS cor0
----
189
2027
2998

query I rowsort
SELECT ALL - col1 + + col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + 40 + col0 AS col1 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT ALL - cor0.col0 + cor0.col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL 50 * col0 + tab0.col0 FROM tab0
----
1224
1785
4539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4477
SELECT ALL - CAST( NULL AS SIGNED ) + col1 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 99 * col2 FROM tab1 AS cor0
----
5346
5643
9504

onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT ALL 96 DIV - col1 FROM tab1 AS cor0
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL 96 / - col1 FROM tab1 AS cor0
----
-3
-7
-9

query I rowsort
SELECT ALL - 77 * + col0 AS col2 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT - 79 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL - ( - col2 ) * col0 AS col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT + col1 DIV + 93 + tab0.col0 FROM tab0
----
24
36
89

skipif mysql # not compatible
query I rowsort label-4483
SELECT + col1 / + 93 + tab0.col0 FROM tab0
----
24
36
89

query I rowsort
SELECT DISTINCT + + 64 FROM tab2, tab1, tab1 AS cor0
----
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT - + CAST( - col2 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4485
SELECT - + CAST ( - col2 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * 53 AS col0 FROM tab0 cor0
----
1272
1855
4717

query I rowsort
SELECT col0 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4488
SELECT DISTINCT + ( - col2 ) * + CAST( 51 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1326
-1377
-1938

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT + ( - col2 ) * + CAST ( 51 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT - 78 * col2 FROM tab1 cor0
----
-4212
-4446
-7488

query I rowsort
SELECT + ( col2 ) * - cor0.col2 * 55 FROM tab2 cor0
----
-37180
-40095
-79420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 94 + col2 + + cor0.col2 col0 FROM tab2 AS cor0
----
712
7384
7502

query I rowsort
SELECT + 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT + col2 + + cor0.col1 * + 74 AS col2 FROM tab1 AS cor0
----
1058
1978
797

query I rowsort
SELECT ALL - cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + - col1 - 20 AS col1 FROM tab0 AS cor0
----
-106
-111
-117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT DISTINCT - col0 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT - col0 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * + col0 col2 FROM tab2 cor0
----
-1323
-158184
-237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4499
SELECT DISTINCT - cor0.col2 + CAST( NULL AS DECIMAL ) * - col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - cor0.col2 + CAST ( NULL AS REAL ) * - col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - cor0.col1 * 37 + col0 FROM tab2 cor0
----
1154
2261
708

query I rowsort
SELECT ALL - + col1 + 7 AS col1 FROM tab2 AS cor0
----
-10
-24
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT DISTINCT + - col1 - + col1 * col0 DIV - col1 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + - col1 - + col1 * col0 / - col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - + cor0.col0 * - 95 AS col0 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT ALL - - col0 * col2 * col1 + + col1 + 51 FROM tab1 AS cor0
----
36541
4289
99904

query I rowsort
SELECT - col2 * cor0.col0 + - 52 FROM tab1 AS cor0
----
-214
-3700
-7732

query I rowsort
SELECT col1 + - col1 * + col1 * + cor0.col2 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT 42 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4508
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + col2 + + col2 * col1 FROM tab2 AS cor0
----
1619
701
895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col2 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to a283a98d14c34636d74b0e0b57633585

query I rowsort
SELECT ( - col2 ) + col1 * + col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT + 18 * ( - col0 ) + + col0 AS col1 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT - col0 * col2 + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + - 66 + ( col1 ) AS col2 FROM tab0 AS cor0
----
20
25
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-4515
SELECT ALL - - col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - - col1 / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - ( 75 ) AS col0 FROM tab1
----
-75

query I rowsort
SELECT - col1 + - 90 AS col0 FROM tab1 AS cor0
----
-100
-103
-116

query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col2 + - col1 * - col0 + col2 FROM tab0
----
14905
3186
3397

onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT + col2 DIV + ( 72 + tab0.col2 ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT + col2 / + ( 72 + tab0.col2 ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - + col2 * + ( - col0 ) + col2 * - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 2 * 28 AS col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4522
SELECT DISTINCT col1 * - CAST( col2 AS SIGNED ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT col1 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + cor0.col1 * + 50 - + col1 FROM tab2 cor0
----
1519
2891
833

query I rowsort
SELECT ALL + + col2 * ( - col1 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col1 * - 40 + col1 AS col2 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 + - col2 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + col2 * + col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col1 * col0 * + 75 + + col2 FROM tab0 AS cor0
----
-154767
-254624
-607343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4529
SELECT ALL col1 + + CAST( NULL AS SIGNED ) + 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) + 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + ( - col0 ) FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - col1 * + cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab2
----
42
42
42

query I rowsort
SELECT ALL cor0.col2 + 3 AS col0 FROM tab2 AS cor0
----
29
30
41

query I rowsort
SELECT DISTINCT - col0 * + ( - col1 ) - col1 AS col2 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + + col0 * + 86 + - col0 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT ALL + col1 + 55 FROM tab0 AS cor0
----
141
146
152

query I rowsort
SELECT col0 * - col0 + 23 AS col0 FROM tab0 cor0
----
-1202
-553
-7898

query I rowsort
SELECT ALL - cor0.col2 * 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 0699a4adeffe1a560cd464a130663e51

query I rowsort
SELECT + ( ( + tab0.col0 ) ) FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + cor0.col2 * 71 - col0 * col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-118754
-47193
-714989

query I rowsort
SELECT 74 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
-83

query I rowsort
SELECT ALL + col0 + + cor0.col1 + - col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - + col1 + - col2 * - 68 FROM tab2 AS cor0
----
1709
1805
2567

onlyif mysql # use DIV operator for integer division
query I rowsort label-4545
SELECT DISTINCT + col0 + + col0 DIV tab1.col0 + + col1 * col1 * + col0 FROM tab1
----
13601
2032
6465

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT + col0 + + col0 / tab1.col0 + + col1 * col1 * + col0 FROM tab1
----
13601
2032
6465

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4546
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + col1 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + + col1 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + - col1 * col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - col0 * - col0 + 24 * + col0 * + col0 AS col2 FROM tab0 AS cor0
----
14400
198025
30625

query I rowsort
SELECT 73 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + + col0 * ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col1 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT 98 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL col1 + 35 + col2 * + 8 * + col2 AS col1 FROM tab1
----
23389
26037
73776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT 41 * col1 DIV - col1 FROM tab2
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-4557
SELECT 41 * col1 / - col1 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT + col0 * cor0.col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + 87 + 25 AS col2 FROM tab0
----
112
112
112

query I rowsort
SELECT ALL col2 + - 43 FROM tab1
----
11
14
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4561
SELECT + CAST( col1 AS SIGNED ) + - tab2.col1 + - ( col0 ) FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4561
SELECT + CAST ( col1 AS INTEGER ) + - tab2.col1 + - ( col0 ) FROM tab2
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4562
SELECT + CAST( - 24 AS SIGNED ) * + col1 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-2095
-2293

skipif mysql # not compatible
query I rowsort label-4562
SELECT + CAST ( - 24 AS INTEGER ) * + col1 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-2095
-2293

query I rowsort
SELECT DISTINCT - - 74 + + cor0.col1 FROM tab2 AS cor0
----
105
133
91

query I rowsort
SELECT + col1 + 81 FROM tab0 AS cor0
----
167
172
178

query I rowsort
SELECT - + col2 * col1 - col2 * col0 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT + col0 + - col0 * col0 FROM tab0 cor0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 12 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - col1 * col2 * + col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + 85 * col2 + ( 40 * - col0 ) FROM tab1 AS cor0
----
2285
4470
4960

query I rowsort
SELECT + cor0.col1 + col0 * 52 FROM tab1 AS cor0
----
182
3338
4173

query I rowsort
SELECT DISTINCT + col1 * col0 * cor0.col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT 68 * - col0 + + col2 * - 9 + cor0.col0 * col2 FROM tab0 AS cor0
----
-1137
-2354
508

query I rowsort
SELECT ALL tab2.col0 * 88 + col1 FROM tab2
----
647
6923
6969

query I rowsort
SELECT ALL 55 * - 67 * + col1 + + ( + 21 ) AS col0 FROM tab0
----
-316889
-335314
-357424

query I rowsort
SELECT + - 54 * - col0 + 35 AS col1 FROM tab0 AS cor0
----
1331
1925
4841

query I rowsort
SELECT - 98 + col1 * + col2 * col1 FROM tab1 AS cor0
----
16126
36406
5602

query I rowsort
SELECT + + cor0.col2 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + + col0 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + 82 + 77 FROM tab0 AS cor0
----
159
159
159

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab1
----
-78

query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab2, tab2 cor0, tab2 cor1, tab2 AS cor2
----
26
27
38

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f

query I rowsort
SELECT + 56 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4586
SELECT ( col0 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT ( col0 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 74 + + col0 FROM tab2 AS cor0
----
152
153
81

query I rowsort
SELECT DISTINCT col2 * + col0 * - 35 + + col0 AS col1 FROM tab2
----
-104991
-6608
-70902

query I rowsort
SELECT ALL ( col2 ) + + col1 * + col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL + col2 + col0 * - 88 + - col1 FROM tab2
----
-620
-6897
-6931

query I rowsort
SELECT ALL + col1 + + col1 * 50 - col0 FROM tab1 AS cor0
----
1323
446
583

query I rowsort
SELECT + col2 * ( 95 ) + cor0.col1 FROM tab2 AS cor0
----
2529
2596
3627

query I rowsort
SELECT + col0 + + 28 AS col2 FROM tab2 AS cor0
----
106
107
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT + col0 * col0 + col0 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
1224
575
7920

skipif mysql # not compatible
query I rowsort label-4594
SELECT + col0 * col0 + col0 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
1224
575
7920

query I rowsort
SELECT DISTINCT + col2 * + col0 * - col0 + col2 FROM tab2 AS cor0
----
-1296
-158158
-237120

query I rowsort
SELECT col2 + col0 + 19 FROM tab1 AS cor0
----
140
195
76

query I rowsort
SELECT cor0.col0 + 20 FROM tab1 cor0
----
100
23
84

query I rowsort
SELECT - - col0 + - 12 AS col2 FROM tab2 AS cor0
----
-5
66
67

query I rowsort
SELECT col2 * + 20 FROM tab1
----
1080
1140
1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT tab0.col2 DIV tab0.col0 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4600
SELECT tab0.col2 / tab0.col0 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT col2 * 71 FROM tab1
----
3834
4047
6816

query I rowsort
SELECT ALL - + 2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - - cor0.col1 * - 97 FROM tab1 AS cor0
----
-1261
-2522
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 + + col2 * col1 * col2 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT + - 94 + col0 * col1 FROM tab2 AS cor0
----
123
1249
4508

onlyif mysql # use DIV operator for integer division
query I rowsort label-4607
SELECT - 31 DIV 58 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT - 31 / 58 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 57 * col0 AS col0 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT DISTINCT + col0 * 39 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT - col1 + + 3 FROM tab1 AS cor0
----
-10
-23
-7

query I rowsort
SELECT ALL + ( col2 ) * col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - ( - cor0.col1 ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT col2 * - cor0.col1 * - 46 - col1 AS col0 FROM tab0 AS cor0
----
130462
343161
4365

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4614
SELECT ALL - col2 + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - 12 FROM tab2 AS cor0
----
-204
-372
-708

onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT DISTINCT col2 + col1 DIV 42 FROM tab0 AS cor0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT col2 + col1 / 42 FROM tab0 AS cor0
----
3
35
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT DISTINCT + col2 DIV + CAST( col1 + + col0 AS SIGNED ) FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT + col2 / + CAST ( col1 + + col0 AS INTEGER ) FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + + col2 + + ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4619
SELECT CAST( col2 AS SIGNED ) * - col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-4619
SELECT CAST ( col2 AS INTEGER ) * - col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT ALL col1 DIV 12 AS col1 FROM tab0
----
7
7
8

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL col1 / 12 AS col1 FROM tab0
----
7
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 76 + + col0 col0 FROM tab0 AS cor0
----
-41
-52
13

query I rowsort
SELECT ALL - col1 * col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + 27 + 62 AS col2 FROM tab2 AS cor0
----
89

query I rowsort
SELECT + 30 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
-101850
-242970
-61920

query I rowsort
SELECT DISTINCT - col0 * 26 AS col1 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT ALL ( ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - ( 73 ) + - col0 + cor0.col2 FROM tab0 cor0
----
-107
-64
-80

query I rowsort
SELECT + ( 17 ) * col1 + - col0 AS col2 FROM tab2 AS cor0
----
210
520
925

query I rowsort
SELECT ALL col0 * - col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col0 + cor0.col2 + cor0.col2 * col2 FROM tab2 AS cor0
----
1561
763
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 + cor0.col0 col0 FROM tab2 cor0
----
159
160
88

query I rowsort
SELECT + 2 AS col0 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - 53 * + 13 + col1 FROM tab0 AS cor0
----
-592
-598
-603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4635
SELECT - CAST( NULL AS SIGNED ) * cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT - CAST ( NULL AS INTEGER ) * cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + 45 ) * col1 + - 28 AS col2 FROM tab0 AS cor0
----
-3898
-4123
-4393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4638
SELECT ALL + ( col0 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL + ( col0 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) * - ( 16 ) AS col2 FROM tab0 AS cor0
----
-1312
-16
-528

onlyif mysql # use DIV operator for integer division
query I rowsort label-4640
SELECT ALL - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - col2 / + col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col2 FROM tab2, tab1 AS cor0
----
-98

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL + col2 - - col1 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT + col1 * + ( col1 ) + + col0 AS col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT - 23 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT + + col1 - ( + 26 ) * col2 AS col2 FROM tab2 AS cor0
----
-617
-671
-971

query I rowsort
SELECT cor0.col2 + col0 * 65 AS col0 FROM tab1 cor0
----
249
4217
5296

query I rowsort
SELECT - cor0.col2 - 56 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 59d0f4c5b48f49a12530b0fa9f499966

query I rowsort
SELECT 16 AS col0 FROM tab2
----
16
16
16

query I rowsort
SELECT + col1 + cor0.col1 + + col1 FROM tab2 AS cor0
----
177
51
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT - + ( - col1 ) DIV col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4652
SELECT - + ( - col1 ) / col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT 87 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 FROM tab2
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col1 FROM tab2, tab1 cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL col2 + 44 * + col0 - col2 AS col2 FROM tab0 cor0
----
1056
1540
3916

query I rowsort
SELECT DISTINCT + + 84 AS col1 FROM tab2 cor0
----
84

query I rowsort
SELECT col2 + + 80 AS col1 FROM tab0
----
113
162
81

query I rowsort
SELECT + 47 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT col0 * - col0 * col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT - col0 * ( - col0 ) FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col1 * - 81 FROM tab2
----
-1377
-2511
-4779

query I rowsort
SELECT DISTINCT + - 79 * 50 + - col1 AS col2 FROM tab0 AS cor0
----
-4036
-4041
-4047

query I rowsort
SELECT ALL - - ( + col0 ) + col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT ALL + col2 + + col2 DIV + col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + col2 + + col2 / + col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT ALL - 16 + - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 91cc3e7afe31378fcf0e57c872557bce

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 * - col1 col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + 67 + - col1 FROM tab0
----
-19
-24
-30

query I rowsort
SELECT ALL 86 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT ALL + col2 DIV + tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + col2 / + tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - + col1 + col2 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT col0 + + 63 FROM tab2 AS cor0
----
141
142
70

query I rowsort
SELECT ALL - col1 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col1 * - 93 * col2 + col2 * - 1 * - ( + cor0.col2 ) + - col0 FROM tab1 AS cor0
----
125200
133485
56195

query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) - - col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - col0 + + 82 FROM tab0 cor0
----
-7
47
58

query I rowsort
SELECT + col2 - - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col1 + 12 * - cor0.col1 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT ALL - col1 + col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4682
SELECT DISTINCT + col0 DIV col1 + col1 * col0 * - col2 FROM tab1 cor0
----
-36474
-4212
-99834

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + col0 / col1 + col1 * col0 * - col2 FROM tab1 cor0
----
-36474
-4212
-99834

query I rowsort
SELECT cor0.col0 + + 75 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT - cor0.col1 - - ( 78 ) AS col1 FROM tab0 AS cor0
----
-13
-19
-8

query I rowsort
SELECT DISTINCT + + col1 * col1 + ( col2 ) * 29 + 2 FROM tab0 AS cor0
----
10661
8355
9440

query I rowsort
SELECT DISTINCT + - col0 + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + 90 * + 32 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 703953922a9e84aa2f6ddae5bc671cad

query I rowsort
SELECT DISTINCT + tab0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4689
SELECT - col1 + cor0.col1 * - ( - cor0.col1 ) + - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT - col1 + cor0.col1 * - ( - cor0.col1 ) + - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 73 + col2 FROM tab1 AS cor0
----
127
130
169

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4691
SELECT + 40 * - cor0.col0 - - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1365
-3471
-936

skipif mysql # not compatible
query I rowsort label-4691
SELECT + 40 * - cor0.col0 - - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT ( col2 ) + + col1 * - col0 AS col0 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT - 3 DIV - col1 - + col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4693
SELECT - 3 / - col1 - + col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4694
SELECT - - col0 * - CAST( NULL AS SIGNED ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT - - col0 * - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 * - col2 + cor0.col1 * + col1 FROM tab1 AS cor0
----
-119639
-32390
-75140

query I rowsort
SELECT - + col0 * 66 FROM tab2 AS cor0
----
-462
-5148
-5214

onlyif mysql # use DIV operator for integer division
query I rowsort label-4697
SELECT col1 + 82 * - 72 + - col2 DIV - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-5877
-5890
-5893

skipif mysql # not compatible
query I rowsort label-4697
SELECT col1 + 82 * - 72 + - col2 / - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-5877
-5890
-5893

onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT DISTINCT col2 DIV - col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT col2 / - col1 AS col0 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT 29 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT - 52 AS col0 FROM tab1 cor0
----
-52
-52
-52

query I rowsort
SELECT col2 * + col1 + - 81 * + tab1.col0 AS col1 FROM tab1
----
-4614
-5232
1161

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab1, tab2 cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col2 * - col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4705
SELECT + CAST( ( col1 ) AS SIGNED ) * 11 FROM tab2
----
187
341
649

skipif mysql # not compatible
query I rowsort label-4705
SELECT + CAST ( ( col1 ) AS INTEGER ) * 11 FROM tab2
----
187
341
649

query I rowsort
SELECT ALL ( col0 ) * col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL - - col0 + - cor0.col2 * + col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT + - col2 * col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4709
SELECT + CAST( - ( + col2 ) AS SIGNED ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4709
SELECT + CAST ( - ( + col2 ) AS INTEGER ) FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT + col1 DIV col1 - col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-4710
SELECT + col1 / col1 - col0 FROM tab2
----
-6
-77
-78

query I rowsort
SELECT - 11 + 35 FROM tab1
----
24
24
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4712
SELECT ALL - col2 DIV col2 - 57 FROM tab1
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - col2 / col2 - 57 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT + 57 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4714
SELECT col1 - col1 DIV + 86 AS col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4714
SELECT col1 - col1 / + 86 AS col0 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - 11 * col0 AS col2 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT - + cor0.col0 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col1 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab2.col2 * + ( + tab2.col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col1 * 75 * col0 FROM tab1
----
48000
5850
78000

query I rowsort
SELECT + col1 * + 30 * 84 AS col0 FROM tab1
----
25200
32760
65520

query I rowsort
SELECT ALL ( 46 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4722
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 41 FROM tab0, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - col2 * - ( - 38 ) + + col2 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT + col2 * - ( col2 ) + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT 80 * col2 * cor0.col0 FROM tab1 cor0
----
12960
291840
614400

query I rowsort
SELECT 64 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - 25 AS REAL ) FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 6f83d63ca9889b3b99826987c718bda8

query I rowsort
SELECT 2 * 49 * col1 AS col2 FROM tab0 AS cor0
----
8428
8918
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4731
SELECT ( tab2.col1 + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT ( tab2.col1 + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 * + col0 - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - col0 + - col1 * 10 AS col2 FROM tab0 AS cor0
----
-1005
-884
-999

query I rowsort
SELECT DISTINCT col1 * 42 FROM tab2 cor0
----
1302
2478
714

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4735
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT tab2.col0 - - col2 * - tab2.col1 * + 21 AS col0 FROM tab2
----
-13487
-17570
-32136

query I rowsort
SELECT DISTINCT + col2 + - tab2.col1 + - 52 AS col0 FROM tab2
----
-31
-56
-85

query I rowsort
SELECT - col0 + + col2 - 47 AS col0 FROM tab1
----
-31
-54
4

query I rowsort
SELECT ALL + 7 + col1 FROM tab2
----
24
38
66

query I rowsort
SELECT - + cor0.col2 + 3 AS col1 FROM tab2 AS cor0
----
-23
-24
-35

query I rowsort
SELECT ALL - col0 * col0 + col0 * + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * - col1 * 71 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
-102830
-39625
-59378

query I rowsort
SELECT DISTINCT - + col1 - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + - col2 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4745
SELECT - col0 + + col2 DIV cor0.col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4745
SELECT - col0 + + col2 / cor0.col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT - col0 * 97 AS col1 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT DISTINCT - + cor0.col0 * + col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col0 * + ( - col0 * - col0 ) AS col1 FROM tab1 AS cor0
----
-262144
-27
-512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + 75 * col1 col2 FROM tab2 AS cor0
----
1237
2298
4399

query I rowsort
SELECT + col2 * - col2 + col0 * col2 FROM tab2 AS cor0
----
-540
1352
1558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col0 + - col1 * - cor0.col2 col2 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT DISTINCT - col0 + + col2 * + col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL col0 - + 47 * col0 FROM tab0 AS cor0
----
-1104
-1610
-4094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 64 * - 8 col1 FROM tab2 AS cor0
----
-433
-434
-505

query I rowsort
SELECT - + col1 + - col1 * - 48 AS col1 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT ALL + col0 + + ( col1 ) * - col2 FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4757
SELECT DISTINCT + + col0 * + CAST( NULL AS DECIMAL ) / col0 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + + col0 * + CAST ( NULL AS REAL ) / col0 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 - ( tab0.col2 ) * + ( col2 ) AS col0 FROM tab0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT 56 + col1 DIV col0 FROM tab1 AS cor0
----
56
56
64

skipif mysql # not compatible
query I rowsort label-4759
SELECT 56 + col1 / col0 FROM tab1 AS cor0
----
56
56
64

query I rowsort
SELECT + tab1.col2 * 97 FROM tab1
----
5238
5529
9312

query I rowsort
SELECT - ( + ( col2 ) ) * - col0 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col2 * col0 * col0 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT ALL - col2 + + 88 FROM tab2 AS cor0
----
50
61
62

query I rowsort
SELECT DISTINCT - - col1 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - - col1 + ( col0 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + - ( 7 ) + + col2 FROM tab0 AS cor0
----
-6
26
75

query I rowsort
SELECT ALL + 65 * - col2 + + col1 * + 81 FROM tab1 AS cor0
----
-1404
-2895
-5187

query I rowsort
SELECT - + 58 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
406
4524
4582

onlyif mysql # use DIV operator for integer division
query I rowsort label-4769
SELECT + col1 DIV - 40 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT + col1 / - 40 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 9 * + col0 AS col1 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT ALL 13 * col0 FROM tab1 cor0
----
1040
39
832

query I rowsort
SELECT + 99 + + col1 * col0 FROM tab1 AS cor0
----
1139
177
739

query I rowsort
SELECT - 33 + col2 - ( - col2 ) * - col1 FROM tab2 AS cor0
----
-1541
-641
-843

query I rowsort
SELECT ALL cor0.col2 * + col0 + - ( cor0.col2 + + col0 ) FROM tab2 AS cor0
----
155
1924
2885

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 * - 66 AS col1 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT ALL - + col0 - - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL col0 - - col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - + 6 * col0 - col2 AS col2 FROM tab1 AS cor0
----
-441
-576
-72

query I rowsort
SELECT ALL - col1 - - ( col2 ) AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT col2 + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - - 30 AS col1 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - 71 * col0 + col2 * + col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2451
-945
897

onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT - col1 + - col0 DIV col0 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4783
SELECT - col1 + - col0 / col0 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL + cor0.col1 + col0 * - col2 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT - 52 * - col2 + - col0 - col2 FROM tab1 AS cor0
----
2751
2843
4816

query I rowsort
SELECT + - col0 * + col2 + col2 * cor0.col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 77 + - col1 * - cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
1069
3617
383

query I rowsort
SELECT col2 - + col1 / col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( + col1 * - col0 ) = ( NULL ) ) AND NOT NULL NOT IN ( - cor0.col2 * col0 ) OR NOT NULL IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4789
SELECT DISTINCT - tab0.col1 * col2 + col2 * + col1 DIV col1 + col2 AS col2 FROM tab0
----
-2772
-7298
-95

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT - tab0.col1 * col2 + col2 * + col1 / col1 + col2 AS col2 FROM tab0
----
-2772
-7298
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT + col2 * col1 DIV col1 + + col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4790
SELECT + col2 * col1 / col1 + + col1 FROM tab0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4791
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + 49 * cor0.col2 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT DISTINCT col0 + + ( col2 ) AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col0 * - 80 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT col2 + + 68 AS col0 FROM tab2
----
106
94
95

query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab2 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4797
SELECT CAST( 36 AS SIGNED ) * - col1 + tab1.col2 AS col0 FROM tab1
----
-303
-372
-882

skipif mysql # not compatible
query I rowsort label-4797
SELECT CAST ( 36 AS INTEGER ) * - col1 + tab1.col2 AS col0 FROM tab1
----
-303
-372
-882

query I rowsort
SELECT 50 + + 7 FROM tab1
----
57
57
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4799
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 / + col0 + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 / + col0 + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( col1 ) + col0 * cor0.col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + ( + ( + col0 ) ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT - + col0 * 18 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT - cor0.col1 * 60 AS col2 FROM tab0 AS cor0
----
-5160
-5460
-5820

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT - col0 + cor0.col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-4804
SELECT - col0 + cor0.col2 / + col1 AS col1 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT ( - col0 ) * col0 * col0 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL - 39 - + col2 AS col0 FROM tab1
----
-135
-93
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4807
SELECT - - CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT - - CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 86 FROM tab2 AS cor0
----
2236
2322
3268

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT - col0 + col1 DIV col2 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-4809
SELECT - col0 + col1 / col2 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4810
SELECT DISTINCT + col2 + - col0 DIV col1 + + col0 FROM tab1
----
115
170
57

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + col2 + - col0 / col1 + + col0 FROM tab1
----
115
170
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * col0 + col1 col2 FROM tab1 AS cor0
----
290
5642
7053

query I rowsort
SELECT cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col1 FROM tab0 AS cor0
----
37

query I rowsort
SELECT ALL + col2 * - col0 * - ( - 14 ) AS col0 FROM tab0
----
-102172
-11088
-490

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT 25 DIV col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4815
SELECT 25 / col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
62

query I rowsort
SELECT DISTINCT + tab1.col0 * tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT 66 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
66

query I rowsort
SELECT - col2 + + 46 * + col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT - col2 + - ( 18 ) * col1 AS col2 FROM tab0 AS cor0
----
-1581
-1720
-1747

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4821
SELECT - col0 * CAST( + 27 AS SIGNED ) FROM tab1 AS cor0
----
-1728
-2160
-81

skipif mysql # not compatible
query I rowsort label-4821
SELECT - col0 * CAST ( + 27 AS INTEGER ) FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT DISTINCT + cor0.col0 + + 62 FROM tab0 AS cor0
----
151
86
97

query I rowsort
SELECT ALL - + col0 + + ( cor0.col0 ) * - cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-4824
SELECT DISTINCT cor0.col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT cor0.col1 / - col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 * col2 + + 17 * - col1 FROM tab0 AS cor0
----
-1684
-2254
-8845

query I rowsort
SELECT 93 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL col1 * 33 * col2 AS col1 FROM tab1
----
18810
41184
46332

query I rowsort
SELECT + col2 * + 29 AS col2 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + 80 * + 90 FROM tab1 AS cor0
----
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT ALL - + 64 * 5 DIV + cor0.col1 AS col1 FROM tab1 cor0
----
-12
-24
-32

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - + 64 * 5 / + cor0.col1 AS col1 FROM tab1 cor0
----
-12
-24
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 74 ) * - col2 col1 FROM tab0 cor0
----
2442
6068
74

query I rowsort
SELECT DISTINCT 10 + + cor0.col1 * col1 FROM tab1 AS cor0
----
110
179
686

query I rowsort
SELECT DISTINCT + ( + 75 ) AS col1 FROM tab1, tab2 AS cor0
----
75

query I rowsort
SELECT - col1 * 3 + + col2 FROM tab0
----
-191
-225
-290

query I rowsort
SELECT - col0 * - col2 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL tab2.col1 * + col0 * col1 FROM tab2
----
22831
271518
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( col2 * col0 ) col0 FROM tab0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4839
SELECT col0 + - 62 DIV + col0 AS col0 FROM tab0
----
22
34
89

skipif mysql # not compatible
query I rowsort label-4839
SELECT col0 + - 62 / + col0 AS col0 FROM tab0
----
22
34
89

query I rowsort
SELECT + col0 * - col2 + col1 AS col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + 41 + + cor0.col2 FROM tab2 AS cor0
----
67
68
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4842
SELECT DISTINCT 23 * + col1 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2011
2175
2232

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT 23 * + col1 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2011
2175
2232

query I rowsort
SELECT + 61 * col1 + + 98 FROM tab1 AS cor0
----
1684
708
891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4844
SELECT CAST( - col1 AS SIGNED ) * col1 AS col2 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-4844
SELECT CAST ( - col1 AS INTEGER ) * col1 AS col2 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT col2 * col2 + ( 19 + col0 ) * col1 AS col2 FROM tab2 cor0
----
1535
3110
6399

query I rowsort
SELECT - - col2 * + col1 * ( col0 ) FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col0 + col2 + - 44 FROM tab2 cor0
----
-24
-85
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4849
SELECT DISTINCT + 58 + cor0.col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + 58 + cor0.col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4850
SELECT - + col0 * col0 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-4850
SELECT - + col0 * col0 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT + col0 * - col2 - + col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * 38 FROM tab2 cor0
----
1033
1066
1523

query I rowsort
SELECT - - cor0.col0 + col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 * + col2 + 92 FROM tab1 AS cor0
----
-1156
-1312
-478

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col2 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + col1 * col1 * + cor0.col1 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT 57 * col1 + - col2 FROM tab0
----
4869
5105
5528

query I rowsort
SELECT + col0 * + col0 + + tab2.col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT DISTINCT + col1 - col2 * tab0.col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT 60 * col0 - + col0 FROM tab1
----
177
3776
4720

query I rowsort
SELECT ( col2 + + tab0.col0 ) FROM tab0
----
171
36
57

query I rowsort
SELECT col2 + - col0 - + col0 FROM tab2
----
-120
-130
13

query I rowsort
SELECT DISTINCT - col2 + col0 * - 46 AS col2 FROM tab1
----
-192
-3001
-3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 49 col0 FROM tab0 cor0
----
-49
-49
-49

query I rowsort
SELECT ALL + 15 * - col2 + - 23 * col1 FROM tab0 AS cor0
----
-2246
-2473
-3323

onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT DISTINCT + col1 - - cor0.col0 DIV 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-4866
SELECT DISTINCT + col1 - - cor0.col0 / col1 col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - 16 * col2 + - col0 - 77 * + col1 FROM tab2 AS cor0
----
-1996
-2826
-5037

query I rowsort
SELECT ALL + 94 * col0 + cor0.col0 FROM tab2 cor0
----
665
7410
7505

query I rowsort
SELECT + - 90 AS col0 FROM tab0 cor0
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4870
SELECT DISTINCT - col2 - col1 DIV 70 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT - col2 - col1 / 70 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col2 * col1 - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + 83 + col1 FROM tab2 AS cor0
----
100
114
142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4873
SELECT DISTINCT tab1.col2 * - CAST( 82 AS SIGNED ) AS col1 FROM tab1
----
-4428
-4674
-7872

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT tab1.col2 * - CAST ( 82 AS INTEGER ) AS col1 FROM tab1
----
-4428
-4674
-7872

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - col2 * ( 93 ) AS col0 FROM tab2 AS cor0
----
-2418
-2511
-3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + 28 + + 17 * col1 AS col0 FROM tab2 cor0
----
1031
317
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 48 col2 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4879
SELECT + - CAST( NULL AS SIGNED ) + col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT + - CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + tab1.col1 * col1 + col0 ) FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT 87 - - cor0.col0 AS col1 FROM tab2, tab1 cor0, tab2 cor1, tab0 AS cor2
----
151
167
90

query I rowsort
SELECT ALL 77 + 64 FROM tab1 AS cor0
----
141
141
141

query I rowsort
SELECT DISTINCT - - cor0.col0 * + col2 + - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL col1 * - 98 + + col0 AS col1 FROM tab1 AS cor0
----
-1194
-2545
-916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) + col2 * col2 col0 FROM tab2 cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT DISTINCT 86 DIV 48 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT 86 / 48 FROM tab1 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4888
SELECT DISTINCT + CAST( + col1 AS SIGNED ) FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
-11

query I rowsort
SELECT ( + 6 ) FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 66 AS REAL ) AS col0 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - - 62 + cor0.col1 AS col0 FROM tab1 cor0
----
72
75
88

query I rowsort
SELECT DISTINCT col1 * + col1 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
15579
8188
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4894
SELECT DISTINCT + - CAST( 12 AS SIGNED ) * - col1 col0 FROM tab0 AS cor0
----
1032
1092
1164

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + - CAST ( 12 AS INTEGER ) * - col1 col0 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT ALL - col1 * 99 FROM tab2 cor0
----
-1683
-3069
-5841

query I rowsort
SELECT ALL - ( cor0.col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT 25 * 9 FROM tab1 AS cor0
----
225
225
225

onlyif mysql # use DIV operator for integer division
query I rowsort label-4898
SELECT - + ( 91 ) + col1 DIV CAST( + 43 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-4898
SELECT - + ( 91 ) + col1 / CAST ( + 43 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab1 cor0
----
78

query I rowsort
SELECT ALL - 26 + col0 FROM tab0 AS cor0
----
-2
63
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT ( cor0.col0 ) DIV col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4901
SELECT ( cor0.col0 ) / col1 FROM tab1 AS cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT + ( col2 ) + ( col0 ) DIV + col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-4902
SELECT + ( col2 ) + ( col0 ) / + col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ALL col0 * - col0 + col0 + - 56 FROM tab2 AS cor0
----
-6062
-6218
-98

query I rowsort
SELECT ( - col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT ALL - col0 DIV 30 AS col2 FROM tab1
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL - col0 / 30 AS col2 FROM tab1
----
-2
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4906
SELECT ALL + 14 / - ( tab1.col0 * CAST( NULL AS SIGNED ) + col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + 14 / - ( tab1.col0 * CAST ( NULL AS INTEGER ) + col1 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4907
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( + col1 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( + col1 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - - col0 * col1 + col1 + cor0.col0 FROM tab1 cor0
----
107
1133
714

query I rowsort
SELECT ALL + col1 * + ( - 82 ) AS col2 FROM tab0 AS cor0
----
-7052
-7462
-7954

onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT ALL col1 DIV - ( col1 ) + - col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL col1 / - ( col1 ) + - col1 FROM tab0 AS cor0
----
-87
-92
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT DISTINCT + - col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT + - col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT col1 + ( 26 ) * cor0.col2 + - 24 FROM tab1 AS cor0
----
1406
1468
2485

query I rowsort
SELECT ALL + - col1 * 17 FROM tab1 cor0
----
-170
-221
-442

query I rowsort
SELECT col2 + - cor0.col2 * - col1 + col2 FROM tab0 AS cor0
----
2904
7626
99

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL col1 * cor0.col0 + col2 * cor0.col2 * - col1 FROM tab1 cor0
----
-118768
-31850
-75738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4918
SELECT col1 + + CAST( + 68 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
78
81
94

skipif mysql # not compatible
query I rowsort label-4918
SELECT col1 + + CAST ( + 68 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
78
81
94

query I rowsort
SELECT - col1 + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - col1 * 28 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT tab0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL - col2 * col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( tab1.col1 + + col1 ) > col0
----
64
10
57
80
13
96

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE ( col2 ) NOT IN ( col0 )
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT + col1 DIV tab2.col1 col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4926
SELECT + col1 / tab2.col1 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - col1 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT tab2.col0 * + tab2.col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col0 + col2 + + col2 * col0 * col2 AS col1 FROM tab1
----
208057
737456
8805

onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT + col0 DIV col0 + + col1 DIV - col0 FROM tab1
----
-7
1
1

skipif mysql # not compatible
query I rowsort label-4931
SELECT + col0 / col0 + + col1 / - col0 FROM tab1
----
-7
1
1

query I rowsort
SELECT cor0.col1 + col2 FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4933
SELECT - - cor0.col1 * col1 + col1 DIV col1 FROM tab1 cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-4933
SELECT - - cor0.col1 * col1 + col1 / col1 FROM tab1 cor0
----
101
170
677

onlyif mysql # use DIV operator for integer division
query I rowsort label-4934
SELECT DISTINCT - - col2 * + cor0.col2 + col1 DIV + col0 FROM tab2 AS cor0
----
1444
676
733

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT - - col2 * + cor0.col2 + col1 / + col0 FROM tab2 AS cor0
----
1444
676
733

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL - col1 - cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT + - cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - cor0.col2 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL col1 + + tab0.col1 AS col0 FROM tab0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4940
SELECT ALL col1 * col1 + + CAST( - col0 AS SIGNED ) + tab1.col2 FROM tab1
----
185
727
93

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL col1 * col1 + + CAST ( - col0 AS INTEGER ) + tab1.col2 FROM tab1
----
185
727
93

query I rowsort
SELECT ALL - 46 + + col2 FROM tab2
----
-19
-20
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT - 8 + col2 * CAST( col0 AS SIGNED ) FROM tab0 cor0
----
27
7290
784

skipif mysql # not compatible
query I rowsort label-4942
SELECT - 8 + col2 * CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
27
7290
784

query I rowsort
SELECT 67 * + col1 + col2 FROM tab1 AS cor0
----
1796
727
967

query I rowsort
SELECT ALL - 37 * + col1 * - col0 + - 10 FROM tab2 AS cor0
----
170264
49681
8019

query I rowsort
SELECT + - cor0.col1 * - col1 * - col1 + - 54 AS col1 FROM tab1 AS cor0
----
-1054
-17630
-2251

query I rowsort
SELECT + col0 * - 96 AS col0 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT - col2 * - 53 AS col0 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT col1 * - 79 AS col0 FROM tab1 cor0
----
-1027
-2054
-790

query I rowsort
SELECT + col0 * - ( 87 ) AS col2 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT - + col2 + cor0.col2 + - col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col1 + 64 AS col2 FROM tab2 AS cor0
----
123
81
95

query I rowsort
SELECT DISTINCT 77 * + tab1.col2 FROM tab1
----
4158
4389
7392

query I rowsort
SELECT - 28 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT + col0 * - col0 * 9 AS col0 FROM tab1
----
-36864
-57600
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 + + col2 ) < NULL
----

query I rowsort
SELECT ALL - col0 * + tab0.col2 * + col0 AS col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT col2 * - col1 + col0 + + col2 AS col0 FROM tab0
----
-2781
-61
-7291

query I rowsort
SELECT + tab1.col0 + col1 * - col1 AS col2 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT + col0 FROM tab0 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT col0 + + col0 + - col0 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL col0 + col1 * + col2 + col1 AS col0 FROM tab0
----
229
2948
7642

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 / + col1 + col0 )
----

query I rowsort
SELECT tab2.col2 + - col1 * tab2.col1 AS col0 FROM tab2
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT + col2 + col2 DIV + col2 col0 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4964
SELECT + col2 + col2 / + col2 col0 FROM tab0
----
2
34
83

query I rowsort
SELECT ALL - col1 * - col0 - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL col1 + + col1 + - col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col1 * col1 - col2 * - col1 FROM tab1
----
1417
2080
670

query I rowsort
SELECT DISTINCT + col1 * + col1 - - tab2.col2 FROM tab2
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT col2 DIV col0 + col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-4969
SELECT col2 / col0 + col0 FROM tab1
----
21
64
81

query I rowsort
SELECT col0 * - col0 - + 65 AS col1 FROM tab0 cor0
----
-1290
-641
-7986

query I rowsort
SELECT - col1 * - col2 + tab2.col0 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT - col0 FROM tab0 WHERE col0 * - col0 NOT IN ( col0 )
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 + - col1 + col2 FROM tab1
----
111
163
31

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 - col0 ) > col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT col0 * + col2 + + col0 FROM tab0 WHERE col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col0 + tab1.col1 * + col0 AS col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL 28 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4979
SELECT ALL tab0.col0 * + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL tab0.col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col2 * col1 col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + - cor0.col0 + 18 FROM tab1 AS cor0
----
-46
-62
15

query I rowsort
SELECT DISTINCT ( - 60 ) AS col2 FROM tab2, tab0 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - 5 * 77 FROM tab0, tab0 AS cor0
----
-385

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * - CAST ( + 84 AS REAL ) + col2 FROM tab0 cor0
----
-1983
-2939
-7394

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + - cor0.col2 FROM tab1, tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4987
SELECT + + col2 + col1 DIV 11 col0 FROM tab0 AS cor0
----
40
9
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4987
SELECT + + col2 + col1 / 11 col0 FROM tab0 AS cor0
----
40
9
90

query I rowsort
SELECT - + 36 * col2 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT col1 * + 96 + col0 * col2 AS col0 FROM tab0 AS cor0
----
16034
9048
9347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 * - col0 col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + ( - col1 ) * col2 - col0 * col2 AS col2 FROM tab2 cor0
----
-1026
-3562
-3648

query I rowsort
SELECT DISTINCT + - 82 AS col1 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT 33 * 18 - - col0 FROM tab2 AS cor0
----
601
672
673

query I rowsort
SELECT ALL - - ( 27 ) * - col0 * col2 + col0 FROM tab1 AS cor0
----
-207280
-4371
-98432

query I rowsort
SELECT DISTINCT - ( - 27 ) AS col2 FROM tab1 cor0
----
27

query I rowsort
SELECT col0 - + ( col2 * - col0 + + col0 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col2 + 10 AS col0 FROM tab2
----
36
37
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4999
SELECT - col1 DIV + 90 + + col2 DIV + col1 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4999
SELECT - col1 / + 90 + + col2 / + col1 AS col0 FROM tab0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col2 col1 FROM tab0
----
1122
2
6806

query I rowsort
SELECT ALL + 43 + - col0 FROM tab1 cor0
----
-21
-37
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5002
SELECT - + col1 * cor0.col0 + + CAST( col2 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
-2007
-3359
-7928

skipif mysql # not compatible
query I rowsort label-5002
SELECT - + col1 * cor0.col0 + + CAST ( col2 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
-2007
-3359
-7928

query I rowsort
SELECT ALL + 46 * col0 FROM tab0 AS cor0
----
1104
1610
4094

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5004
SELECT DISTINCT - col0 + + col1 * col1 * - ( + col0 * + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-11526060
-4260120
-65593890

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT - col0 + + col1 * col1 * - ( + col0 * + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-11526060
-4260120
-65593890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * + col0 col2 FROM tab1 AS cor0
----
252
5376
6720

query I rowsort
SELECT DISTINCT - - col0 * col1 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - - 99 + - col1 AS col2 FROM tab0 AS cor0
----
13
2
8

query I rowsort
SELECT DISTINCT + - 54 + col2 AS col2 FROM tab0 AS cor0
----
-21
-53
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT ALL - 78 * - cor0.col0 + cor0.col1 DIV + 24 - - col0 FROM tab0 AS cor0
----
1899
2769
7034

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - 78 * - cor0.col0 + cor0.col1 / + 24 - - col0 FROM tab0 AS cor0
----
1899
2769
7034

query I rowsort
SELECT DISTINCT 88 * col1 FROM tab0 AS cor0
----
7568
8008
8536

onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT 92 + col0 DIV col0 FROM tab2 cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-5011
SELECT 92 + col0 / col0 FROM tab2 cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - + cor0.col2 + col0 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
131
2829
7469

query I rowsort
SELECT + 30 - col1 FROM tab1
----
17
20
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT DISTINCT - ( col1 ) * col0 + ( - col2 ) DIV 98 FROM tab0 cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - ( col1 ) * col0 + ( - col2 ) / 98 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) + - col2 col1 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 + - cor0.col0 col1 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5019
SELECT col1 DIV + col0 + col1 AS col1 FROM tab1 cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-5019
SELECT col1 / + col0 + col1 AS col1 FROM tab1 cor0
----
10
13
34

query I rowsort
SELECT - cor0.col1 + 23 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b32172a7612563997b0f304ce7118b97

query I rowsort
SELECT ( - 42 ) FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT DISTINCT + ( 8 ) FROM tab0, tab1 cor0, tab1, tab2 AS cor1
----
8

query I rowsort
SELECT ALL tab1.col1 * 77 FROM tab1
----
1001
2002
770

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT DISTINCT - col0 + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - col0 + col0 / col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL col1 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col0 + ( - col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT col2 * + ( 3 ) + col0 FROM tab0 AS cor0
----
123
335
38

query I rowsort
SELECT ALL col0 * 90 AS col2 FROM tab1 AS cor0
----
270
5760
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT ALL + + cor0.col1 DIV - col1 - 71 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + + cor0.col1 / - col1 - 71 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT tab0.col0 * 11 FROM tab0
----
264
385
979

query I rowsort
SELECT + 98 + + col0 * - col2 AS col2 FROM tab2
----
-1930
-2904
-91

query I rowsort
SELECT ALL 51 AS col1 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT ALL - 3 AS col2 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5034
SELECT ALL + CAST( NULL AS SIGNED ) * + 42 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL + CAST ( NULL AS INTEGER ) * + 42 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 2 * cor0.col1 + + col2 FROM tab2 cor0
----
144
72
89

query I rowsort
SELECT DISTINCT - col1 * + col1 + - ( 49 + cor0.col2 ) FROM tab0 AS cor0
----
-7478
-8412
-9459

query I rowsort
SELECT + ( col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5038
SELECT DISTINCT - cor0.col1 * + col0 - ( - col0 ) DIV + col0 AS col1 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT - cor0.col1 * + col0 - ( - col0 ) / + col0 AS col1 FROM tab0 AS cor0
----
-2063
-3394
-8098

query I rowsort
SELECT col2 + - col1 * 36 FROM tab2 cor0
----
-1089
-2098
-574

query I rowsort
SELECT DISTINCT col2 * col0 - + 42 AS col2 FROM tab1 AS cor0
----
120
3606
7638

query I rowsort
SELECT - col1 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - - 45 * col1 - + col0 AS col2 FROM tab2 AS cor0
----
1388
2577
686

onlyif mysql # use DIV operator for integer division
query I rowsort label-5043
SELECT ALL - ( - col2 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL - ( - col2 ) / + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - col0 + col0 + + col2 * col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - - col2 * 54 AS col1 FROM tab2 cor0
----
1404
1458
2052

query I rowsort
SELECT ( + 58 ) * col1 FROM tab1 AS cor0
----
1508
580
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - cor0.col2 + + cor0.col1 * col1 col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - 78 + - ( col1 ) FROM tab1 AS cor0
----
-104
-88
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5049
SELECT col1 * - CAST( + col2 AS SIGNED ) * col1 + col0 * col0 AS col0 FROM tab2
----
-25898
-4741
-84422

skipif mysql # not compatible
query I rowsort label-5049
SELECT col1 * - CAST ( + col2 AS INTEGER ) * col1 + col0 * col0 AS col0 FROM tab2
----
-25898
-4741
-84422

query I rowsort
SELECT + col1 * + ( cor0.col1 ) FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col0 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT + - col2 * col1 + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - col1 + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT DISTINCT tab1.col0 * col2 DIV col2 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT tab1.col0 * col2 / col2 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT col2 * + col0 * col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT - tab2.col2 * tab2.col2 * + col2 AS col0 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT cor0.col0 * col2 + col0 * col0 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT + col1 * col2 - col2 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-5059
SELECT col1 DIV cor0.col1 - + col0 * - col2 * - 15 col1 FROM tab2 AS cor0
----
-2834
-30419
-45029

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5059
SELECT col1 / cor0.col1 - + col0 * - col2 * - 15 col1 FROM tab2 AS cor0
----
-2834
-30419
-45029

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab2 cor0, tab1, tab2 cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT DISTINCT + col0 DIV - ( + col1 * + col1 ) col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + col0 / - ( + col1 * + col1 ) col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5062
SELECT DISTINCT + col1 DIV 45 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + col1 / 45 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT col0 * + 31 AS col2 FROM tab1
----
1984
2480
93

query I rowsort
SELECT col0 * - col1 * - tab0.col0 AS col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL - 40 * 69 FROM tab1, tab1 AS cor0
----
9 values hashing to 81ec17cf8a8fc256beab0266fac83b1b

query I rowsort
SELECT 16 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT ALL + col2 * + col2 - - tab2.col1 FROM tab2
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
49

query I rowsort
SELECT DISTINCT + tab1.col2 * ( col2 ) - col0 * - ( col1 ) * col0 FROM tab1
----
3150
44209
92416

query I rowsort
SELECT col0 * col0 + - cor0.col2 + + col1 FROM tab2 AS cor0
----
53
6117
6220

query I rowsort
SELECT col1 * 57 + tab2.col0 AS col0 FROM tab2
----
1048
1774
3441

query I rowsort
SELECT ALL + col1 - - ( - col2 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL tab1.col0 + + ( col2 ) * col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL ( ( - col2 ) * col1 ) + + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT col2 * + col0 + - cor0.col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL col0 + 20 FROM tab1
----
100
23
84

query I rowsort
SELECT ALL + 50 * - tab0.col2 + col2 FROM tab0
----
-1617
-4018
-49

query I rowsort
SELECT 98 * + col2 - col1 AS col1 FROM tab1 AS cor0
----
5266
5576
9395

query I rowsort
SELECT DISTINCT - ( - col0 ) * + cor0.col2 - ( col1 ) * col1 * + 4 AS col1 FROM tab0 AS cor0
----
-25826
-28792
-37601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 + 63 FROM tab0 AS cor0
----
-19
30
62

query I rowsort
SELECT + 25 + ( col1 ) FROM tab0 AS cor0
----
111
116
122

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5084
SELECT DISTINCT + col0 * col2 + + col0 / CAST( NULL AS DECIMAL ) - + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT + col0 * col2 + + col0 / CAST ( NULL AS REAL ) - + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 91 + cor0.col1 * - col2 * - ( + col1 ) + + col2 AS col2 FROM tab0 cor0
----
244192
679215
9501

query I rowsort
SELECT ALL col0 - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - 85 AS col2 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + - CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col1 * - 65 FROM tab1 cor0
----
1690
650
845

query I rowsort
SELECT - + col2 * 21 FROM tab2 AS cor0
----
-546
-567
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-5091
SELECT DISTINCT + col0 * col1 + + cor0.col1 DIV col2 FROM tab0 cor0
----
2066
3492
8100

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + col0 * col1 + + cor0.col1 / col2 FROM tab0 cor0
----
2066
3492
8100

query I rowsort
SELECT DISTINCT + - col1 * - 43 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 + 0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - - col1 * cor0.col0 - + 65 FROM tab1 AS cor0
----
13
575
975

query I rowsort
SELECT + cor0.col2 * 90 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT + col0 - - col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - col2 - - ( 24 ) AS col2 FROM tab0 AS cor0
----
-58
-9
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 44 - + 7 col1 FROM tab2 AS cor0
----
-1371
-2603
-755

query I rowsort
SELECT ALL col1 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5100
SELECT DISTINCT - col1 * 94 DIV + col2 col2 FROM tab0 AS cor0
----
-104
-244
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT - col1 * 94 / + col2 col2 FROM tab0 AS cor0
----
-104
-244
-9118

query I rowsort
SELECT ALL col1 * 78 AS col1 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT - cor0.col0 + + 26 * 68 FROM tab0 AS cor0
----
1679
1733
1744

query I rowsort
SELECT + + cor0.col1 * - col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + 74 * + col2 * col1 AS col0 FROM tab2
----
113516
47804
61938

query I rowsort
SELECT DISTINCT + ( 7 ) FROM tab0
----
7

query I rowsort
SELECT ALL ( 49 ) FROM tab0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col1 FROM tab1
----
-84
-84
-84

query I rowsort
SELECT + 93 + - col2 FROM tab2
----
55
66
67

query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - 48 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
-1498
-3845
49

query I rowsort
SELECT 38 + col0 * + 77 FROM tab2 cor0
----
577
6044
6121

query I rowsort
SELECT DISTINCT + - col0 * - col0 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT ALL - - cor0.col2 - + col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + 7 + cor0.col1 FROM tab1 AS cor0
----
17
20
33

query I rowsort
SELECT ALL col2 * + col0 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col0 + + col0 * 34 FROM tab2 cor0
----
231
2574
2607

query I rowsort
SELECT ALL ( + col0 ) - 25 FROM tab2 AS cor0
----
-18
53
54

query I rowsort
SELECT DISTINCT + - col2 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL - - 16 + col1 * + cor0.col1 FROM tab2 AS cor0
----
305
3497
977

query I rowsort
SELECT - - 55 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT DISTINCT ( + col1 ) * ( + col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + 78 * + col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

query I rowsort
SELECT col0 + + 16 * col1 FROM tab2 AS cor0
----
1022
351
503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT cor0.col2 + 57 AS col2 FROM tab2 AS cor0
----
83
84
95

query I rowsort
SELECT + col0 + 91 * + col1 FROM tab2 AS cor0
----
1626
2828
5447

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5127
SELECT - + col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT - + col2 / - 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-5128
SELECT DISTINCT - col0 + - CAST( - 78 AS SIGNED ) * - cor0.col1 col2 FROM tab0 cor0
----
-6732
-7187
-7601

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT - col0 + - CAST ( - 78 AS INTEGER ) * - cor0.col1 col2 FROM tab0 cor0
----
-6732
-7187
-7601

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT + col0 DIV ( col0 ) + + col2 * + col2 FROM tab1 AS cor0
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-5129
SELECT + col0 / ( col0 ) + + col2 * + col2 FROM tab1 AS cor0
----
2917
3250
9217

query I rowsort
SELECT ALL - - col0 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + - col1 + + 56 FROM tab0 AS cor0
----
-30
-35
-41

query I rowsort
SELECT ALL + + col0 * - ( col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col0 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - col0 * col0 - col1 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5135
SELECT DISTINCT - col0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT - col0 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * ( + col2 ) - col2 * col1 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col0 + 3 AS col2 FROM tab1
----
6
67
83

query I rowsort
SELECT DISTINCT col2 + ( - 8 ) FROM tab2
----
18
19
30

query I rowsort
SELECT + cor0.col2 * + 73 + cor0.col1 * 61 AS col0 FROM tab0 AS cor0
----
11537
5990
7655

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5142
SELECT CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5142
SELECT CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - 47 + 48 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT DISTINCT - 67 + cor0.col1 DIV - col2 + 4 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - 67 + cor0.col1 / - col2 + 4 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT - col1 * cor0.col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 * + col2 + col0 + + col2 AS col1 FROM tab0 AS cor0
----
133
2895
7633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + 58 col2 FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT ALL + - 28 AS col0 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL - ( - 47 ) + + col0 AS col2 FROM tab2 AS cor0
----
125
126
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT DISTINCT + ( cor0.col1 ) - col1 * CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + ( cor0.col1 ) - col1 * CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + - 7 * col1 + - col2 AS col0 FROM tab1 cor0
----
-127
-187
-236

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col2 * + col2 AS col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + + 58 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * col2 + tab0.col1 col1 FROM tab0
----
-1729
-4419
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5156
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + + 83 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + + 83 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 * + col2 * + col1 + + col0 * - ( - col1 ) AS col1 FROM tab2 cor0
----
22816
25891
44486

query I rowsort
SELECT - col0 + - 79 FROM tab0 AS cor0
----
-103
-114
-168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5159
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 56 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5161
SELECT DISTINCT + + cor0.col0 * + CAST( 94 AS SIGNED ) + + cor0.col0 AS col2 FROM tab2 AS cor0
----
665
7410
7505

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + + cor0.col0 * + CAST ( 94 AS INTEGER ) + + cor0.col0 AS col2 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT - col2 + - col1 * + col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT + col1 - - col1 AS col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - 3 * col1 col2 FROM tab0 AS cor0
----
-22188
-24843
-28227

query I rowsort
SELECT + col1 + 3 FROM tab0 AS cor0
----
100
89
94

query I rowsort
SELECT + cor0.col2 * col0 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT col2 * 94 AS col1 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT ALL - col0 * - cor0.col2 + - col0 * col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 * - 74 + + col1 + - col2 * 28 AS col2 FROM tab2 AS cor0
----
-2593
-2723
-3859

query I rowsort
SELECT ALL + col0 * col2 + - col2 AS col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT - - 54 + + col0 AS col0 FROM tab0 AS cor0
----
143
78
89

query I rowsort
SELECT + - cor0.col2 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + ( - col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + col1 + - col2 - + col1 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT col2 * - cor0.col1 + 30 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-270
-624
-858

query I rowsort
SELECT 40 + col1 * - col0 FROM tab0 AS cor0
----
-2024
-3355
-8059

query I rowsort
SELECT + col1 + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + cor0.col0 + col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - col2 + - 19 AS col2 FROM tab2 AS cor0
----
-45
-46
-57

query I rowsort
SELECT ALL + 17 AS col0 FROM tab1
----
17
17
17

query I rowsort
SELECT + col0 * - 32 FROM tab2 AS cor0
----
-224
-2496
-2528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5182
SELECT ALL + + CAST( col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + + CAST ( col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + + col0 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT col0 + + col2 * + col2 AS col2 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT ALL + ( + 17 * + col1 ) FROM tab2
----
1003
289
527

query I rowsort
SELECT ALL + cor0.col1 * + 40 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f690cfc113fcbc4e8309efe2dd405161

onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT col0 * col1 DIV col2 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-5189
SELECT col0 * col1 / col2 FROM tab0
----
3395
62
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5190
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col0 * ( col0 ) FROM tab2
----
-343
-474552
-493039

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col0 * ( col0 ) FROM tab2
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT ALL col1 + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL col1 + col1 / - col0 AS col0 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT + - 44 * col1 * ( col1 ) FROM tab0 cor0
----
-325424
-364364
-413996

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + + ( + col1 ) * col1 AS col0 FROM tab0 AS cor0
----
10234
15743
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5195
SELECT - col2 * + col0 - CAST( NULL AS SIGNED ) * 73 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT - col2 * + col0 - CAST ( NULL AS INTEGER ) * 73 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col0 + col1 + + col1 AS col2 FROM tab1
----
4116
61
6426

query I rowsort
SELECT ALL + col0 * + col1 - + tab2.col2 AS col0 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT DISTINCT - col2 DIV col2 - + col0 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - col2 / col2 - + col0 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT + 26 AS col1 FROM tab0
----
26
26
26

query I rowsort
SELECT ALL 36 - col0 FROM tab2
----
-42
-43
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT + col1 DIV + col2 + 94 col2 FROM tab1 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5201
SELECT + col1 / + col2 + 94 col2 FROM tab1 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL ( + ( + col2 ) ) * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 * - 70 AS col0 FROM tab0
----
-6020
-6370
-6790

query I rowsort
SELECT DISTINCT + col0 * tab1.col1 + + col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL col2 + 85 * + 94 * col2 + + ( - tab0.col2 ) * - col0 * - col2 AS col1 FROM tab0
----
237567
56826
7956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col1 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + 12 * - col0 AS col0 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT + - 98 * 42 AS col1 FROM tab2 cor0
----
-4116
-4116
-4116

query I rowsort
SELECT ALL + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5211
SELECT ALL ( + 62 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL ( + 62 ) / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT cor0.col2 * 22 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT - col0 + - col1 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
-1107
-55
-694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 - + col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 + col2 * + tab1.col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT - tab1.col0 * - 51 + 65 AS col0 FROM tab1
----
218
3329
4145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - ( 73 ) AS col1 FROM tab1 cor0
----
-73
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT ALL + 97 * - col1 + - col1 DIV - 70 FROM tab2 cor0
----
-1649
-3007
-5723

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + 97 * - col1 + - col1 / - 70 FROM tab2 cor0
----
-1649
-3007
-5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-5220
SELECT DISTINCT + col1 + - 25 DIV + col0 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT + col1 + - 25 / + col0 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT col0 * 11 + col1 * 91 FROM tab0 AS cor0
----
8090
9212
9260

query I rowsort
SELECT DISTINCT ( - col2 ) - col1 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 + col0 col2 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT 17 FROM tab0, tab2, tab2 AS cor0, tab1
----
17

query I rowsort
SELECT DISTINCT - ( + col1 * - col1 + + col1 ) AS col0 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT + cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL 76 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT 67 DIV col0 - - col0 * - col0 * - col0 FROM tab1
----
262145
49
512000

skipif mysql # not compatible
query I rowsort label-5229
SELECT 67 / col0 - - col0 * - col0 * - col0 FROM tab1
----
262145
49
512000

query I rowsort
SELECT col2 + + tab0.col2 - col0 * col0 * tab0.col2 FROM tab0
----
-1223
-18942
-649358

query I rowsort
SELECT ALL col2 + - col2 * + ( col1 * + col0 ) FROM tab0 AS cor0
----
-3394
-664036
-68079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab2
----
61
61
61

query I rowsort
SELECT - cor0.col1 * col2 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL + col0 + - 34 FROM tab1 AS cor0
----
-31
30
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5235
SELECT DISTINCT + col1 + - col2 DIV + col0 + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1052
650
86

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT + col1 + - col2 / + col0 + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1052
650
86

query I rowsort
SELECT - - col1 - + ( col2 ) * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - col1 * + 60 - - 67 FROM tab1 AS cor0
----
-1493
-533
-713

query I rowsort
SELECT + col2 * cor0.col0 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL + col0 + 33 * col0 AS col1 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT DISTINCT + col0 * - ( - 87 ) FROM tab0 AS cor0
----
2088
3045
7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - cor0.col1 * col0 col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL col2 + + col0 + + 28 FROM tab0 AS cor0
----
199
64
85

query I rowsort
SELECT ALL - col1 * col2 * + 0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * ( col2 ) * - col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - + col1 + - cor0.col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT ALL - tab0.col1 DIV + 59 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - tab0.col1 / + 59 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 * ( + tab0.col2 ) AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
-76

query I rowsort
SELECT - - col2 - - 18 * col0 AS col0 FROM tab1 AS cor0
----
108
1209
1536

onlyif mysql # use DIV operator for integer division
query I rowsort label-5251
SELECT CAST( col0 AS SIGNED ) + - col2 DIV + 64 AS col0 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-5251
SELECT CAST ( col0 AS INTEGER ) + - col2 / + 64 AS col0 FROM tab0 AS cor0
----
24
35
88

query I rowsort
SELECT ( + cor0.col2 ) + - col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5253
SELECT + CAST( NULL AS SIGNED ) + + 62 - col1 * + 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT + CAST ( NULL AS INTEGER ) + + 62 - col1 * + 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 8 + - col1 * + col0 + + col2 AS col1 FROM tab0 cor0
----
-2039
-3402
-8025

query I rowsort
SELECT 90 + col1 AS col1 FROM tab2 AS cor0
----
107
121
149

query I rowsort
SELECT - col0 + 60 FROM tab1 AS cor0
----
-20
-4
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5257
SELECT DISTINCT - col1 DIV 73 + col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT - col1 / 73 + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT col1 * col1 * 41 AS col2 FROM tab2 AS cor0
----
11849
142721
39401

onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL - 49 DIV + col1 col2 FROM tab2 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - 49 / + col1 col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + 52 * col2 AS col2 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT DISTINCT col1 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + 67 + col1 FROM tab2 cor0
----
126
84
98

query I rowsort
SELECT DISTINCT - + cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - + 95 AS col1 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - col0 + - col2 * - col2 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT + 3 * col2 + + col1 FROM tab1
----
181
188
301

onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT + col0 DIV + col1 AS col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5267
SELECT + col0 / + col1 AS col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT tab0.col0 * - cor0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 81a8fcf7518fbae07bfeaffb3ad3a436

query I rowsort
SELECT ALL - + col1 - + col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - + col1 + col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - col0 * - col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - col0 + + col1 * - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - tab0.col2 * tab0.col2 + col1 FROM tab0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5274
SELECT + col0 + col1 * + col2 DIV tab0.col2 AS col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-5274
SELECT + col0 + col1 * + col2 / tab0.col2 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + col0 + - tab2.col1 - col0 AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col2 * - col2 - + col2 AS col2 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT - cor0.col0 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT cor0.col2 + - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT cor0.col1 * col2 - - col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ( col1 ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + col2 + + col1 col1 FROM tab2 AS cor0
----
2113
247
3057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + - col0 * cor0.col1 col1 FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT cor0.col2 * - col2 + + col0 * - col1 FROM tab1 cor0
----
-10256
-2994
-3889

query I rowsort
SELECT - col2 * - cor0.col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * col1 - cor0.col1 col1 FROM tab1 AS cor0
----
1315
1381
624

query I rowsort
SELECT - col2 * col0 + + col2 FROM tab1 WHERE col0 BETWEEN col2 AND col2 / + col2 - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - tab1.col1 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + tab1.col2 * + col1 AS col2 FROM tab1 WHERE NULL = + col1 + col2 * col2
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col1 FROM tab0 WHERE NULL BETWEEN NULL AND ( col0 * col2 + + col1 )
----

query I rowsort
SELECT ALL + col1 * - col0 + col2 AS col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 + - col2 * col0 * - col2 FROM tab2
----
111074
4914
50700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT DISTINCT - col2 + + col2 DIV col2 AS col0 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - col2 + + col2 / col2 AS col0 FROM tab1
----
-53
-56
-95

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( + col0 * + col0 )
----

query I rowsort
SELECT tab0.col2 * col2 + tab0.col0 * + tab0.col2 FROM tab0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / + col2 col2 FROM tab0 WHERE tab0.col2 <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5298
SELECT col2 + col0 * col1 DIV col0 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5298
SELECT col2 + col0 * col1 / col0 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - tab1.col2 + + col0 * col1 AS col2 FROM tab1
----
24
583
944

query I rowsort
SELECT col1 + col1 * + col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT + 1 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT DISTINCT - 92 DIV col0 + col1 * col0 AS col0 FROM tab0 cor0
----
2061
3393
8098

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - 92 / col0 + col1 * col0 AS col0 FROM tab0 cor0
----
2061
3393
8098

query I rowsort
SELECT 52 AS col0 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - - col1 * - col0 * - col2 + + col0 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT ALL + + col1 * + col2 - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - col1 + + col2 * col2 AS col1 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT - col2 + col0 * + tab1.col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT col1 * + col0 AS col2 FROM tab1 WHERE NULL IN ( - col0 * - col2 + + col2 )
----

query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab2 WHERE NOT ( col0 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 * - col1 ) NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT col1 - - col1 DIV cor0.col2 FROM tab1 AS cor0 WHERE col0 * - col2 NOT BETWEEN col1 * - col0 AND + col0 * col2
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5313
SELECT col1 - - col1 / cor0.col2 FROM tab1 AS cor0 WHERE col0 * - col2 NOT BETWEEN col1 * - col0 AND + col0 * col2
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * + col1 col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col1 * col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * col0 * col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT - col1 * col1 + col1 AS col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - col1 * + col2 * col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col2 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT + tab1.col1 DIV - col0 col2 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5321
SELECT + tab1.col1 / - col0 col2 FROM tab1
----
-8
0
0

query I rowsort
SELECT + tab2.col1 + - col1 + + col0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + col1 * col0 * col2 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5324
SELECT + tab0.col0 DIV tab0.col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5324
SELECT + tab0.col0 / tab0.col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col0 * + col1 * tab0.col1 + col2 AS col1 FROM tab0
----
177537
329316
737091

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - - 90 + - col0 * 90 * col0 FROM tab1 AS cor0
----
-368550
-575910
-720

query I rowsort
SELECT - + col1 * - col0 * + ( + col2 ) + col2 - 90 FROM tab1 AS cor0
----
36447
4176
99846

query I rowsort
SELECT DISTINCT - col1 * col1 * col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + + col1 * col2 * 78 col0 FROM tab1 AS cor0
----
109597
44545
97429

query I rowsort
SELECT ALL - 27 * col0 + - 73 FROM tab1 AS cor0
----
-154
-1801
-2233

query I rowsort
SELECT - + 50 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-1222
-1343
-1821

query I rowsort
SELECT ALL + col0 * col2 - + col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col0 * + col1 + col2 * + col2 FROM tab1 AS cor0
----
10256
2994
3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-5336
SELECT - col2 DIV + col1 - + col2 FROM tab2 AS cor0
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-5336
SELECT - col2 / + col1 - + col2 FROM tab2 AS cor0
----
-26
-27
-40

query I rowsort
SELECT ALL col0 * col2 + ( tab2.col0 ) + col0 * - 55 FROM tab2
----
-1264
-189
-2184

query I rowsort
SELECT ALL + col1 + col0 + - col2 * ( col2 + + 41 ) AS col1 FROM tab1
----
-13059
-5101
-5512

query I rowsort
SELECT - tab2.col1 + tab2.col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 49c3ea57db097be5fdc5dd314554025d

query I rowsort
SELECT col1 + 71 * col2 FROM tab0 AS cor0
----
168
2429
5913

onlyif mysql # use DIV operator for integer division
query I rowsort label-5341
SELECT + col0 DIV col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5341
SELECT + col0 / col1 AS col1 FROM tab2
----
0
1
4

query I rowsort
SELECT DISTINCT - 3 + + col1 AS col1 FROM tab1
----
10
23
7

query I rowsort
SELECT ALL - + cor0.col0 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col0 * col1 + + 95 FROM tab1
----
1135
173
735

query I rowsort
SELECT ALL + cor1.col2 FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT DISTINCT - tab0.col0 AS col0 FROM tab0, tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + + ( col0 ) * col0 + 63 AS col2 FROM tab1 AS cor0
----
4159
6463
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5348
SELECT ALL + CAST( NULL AS SIGNED ) + 83 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + CAST ( NULL AS INTEGER ) + 83 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5349
SELECT col0 + CAST( 23 AS SIGNED ) AS col2 FROM tab0
----
112
47
58

skipif mysql # not compatible
query I rowsort label-5349
SELECT col0 + CAST ( 23 AS INTEGER ) AS col2 FROM tab0
----
112
47
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT col2 DIV - col1 + - tab1.col1 AS col0 FROM tab1
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-5350
SELECT col2 / - col1 + - tab1.col1 AS col0 FROM tab1
----
-15
-20
-28

query I rowsort
SELECT col2 * - tab1.col0 + col2 FROM tab1
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - cor0.col1 col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT 40 + ( col0 ) AS col1 FROM tab1 AS cor0
----
104
120
43

query I rowsort
SELECT DISTINCT 34 * - col1 + col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT ALL - col1 * - col1 + col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - col1 * - col1 + col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + 16 AS col1 FROM tab1 AS cor0
----
-38
-41
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT ALL 83 * + 9 - + col2 DIV ( col1 ) FROM tab2 cor0
----
745
747
747

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL 83 * + 9 - + col2 / ( col1 ) FROM tab2 cor0
----
745
747
747

query I rowsort
SELECT - ( col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( + 73 ) FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + ( + col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 * 13 FROM tab0 cor0
----
1066
13
429

query I rowsort
SELECT DISTINCT - 96 + + col0 + col1 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
7324
8274
9348

query I rowsort
SELECT DISTINCT - - ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col1 FROM tab0
----
90
90
90

query I rowsort
SELECT tab2.col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT ( 39 ) AS col0 FROM tab0
----
39

query I rowsort
SELECT ALL ( 35 * tab2.col2 + 40 ) FROM tab2
----
1370
950
985

query I rowsort
SELECT DISTINCT + 18 + col0 FROM tab1 AS cor0
----
21
82
98

query I rowsort
SELECT col0 * col2 + - 69 FROM tab1 AS cor0
----
3579
7611
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5372
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5372
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col2 + - 74 * + col1 AS col2 FROM tab0 AS cor0
----
-6331
-6652
-7177

query I rowsort
SELECT DISTINCT + col0 * 82 FROM tab0 cor0
----
1968
2870
7298

query I rowsort
SELECT - col1 + ( + 68 ) FROM tab2 AS cor0
----
37
51
9

query I rowsort
SELECT col1 + col2 * ( col1 ) AS col0 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT DISTINCT - col1 + - col1 DIV + cor0.col1 AS col2 FROM tab0 cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - col1 + - col1 / + cor0.col1 AS col2 FROM tab0 cor0
----
-87
-92
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT - col1 * 74 * + col1 + col0 + - CAST( - 6 AS SIGNED ) AS col0 FROM tab2 cor0
----
-21301
-257510
-71101

skipif mysql # not compatible
query I rowsort label-5379
SELECT - col1 * 74 * + col1 + col0 + - CAST ( - 6 AS INTEGER ) AS col0 FROM tab2 cor0
----
-21301
-257510
-71101

query I rowsort
SELECT - col0 * col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - col2 + ( - col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT DISTINCT - col0 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT - col0 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - cor0.col0 + 21 FROM tab2 AS cor0
----
-57
-58
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-5384
SELECT - col0 + - 94 DIV cor0.col2 FROM tab0 AS cor0
----
-129
-26
-90

skipif mysql # not compatible
query I rowsort label-5384
SELECT - col0 + - 94 / cor0.col2 FROM tab0 AS cor0
----
-129
-26
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * 64 + col0 col1 FROM tab0 AS cor0
----
-4071
-4125
-4136

query I rowsort
SELECT + cor0.col2 * col0 * + 49 FROM tab1 AS cor0
----
178752
376320
7938

query I rowsort
SELECT - cor0.col1 * ( + 33 ) + col2 AS col1 FROM tab2 cor0
----
-1921
-523
-996

query I rowsort
SELECT DISTINCT col2 * col1 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - - cor0.col1 + + ( col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - cor0.col1 * ( col1 * col1 ) FROM tab0 AS cor0
----
-636056
-753571
-912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT DISTINCT - cor0.col0 + + 86 DIV 73 FROM tab1, tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - cor0.col0 + + 86 / 73 FROM tab1, tab0 AS cor0
----
-23
-34
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col2 FROM tab1
----
2
2
2

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 60 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 17ea60db8bdc9b534fe91b7fd55df3f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT - - 0 DIV - col2 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5395
SELECT - - 0 / - col2 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 33 + col2 AS col1 FROM tab2
----
59
60
71

query I rowsort
SELECT ALL + 83 + - col1 FROM tab0
----
-14
-3
-8

query I rowsort
SELECT - + ( col1 ) * + ( + col0 ) + col1 AS col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT - ( - col2 ) * cor0.col2 + - ( + col1 ) FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + - cor0.col0 FROM tab2, tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + 91 * col2 FROM tab1
----
4914
5187
8736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5402
SELECT DISTINCT col2 * col0 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT col2 * col0 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL 47 + col0 FROM tab2 AS cor0
----
125
126
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT - col0 * - col2 + col0 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-5404
SELECT - col0 * - col2 + col0 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT ALL col1 * + 37 + + col2 FROM tab0 AS cor0
----
3215
3449
3590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5406
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT ALL + col2 + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + col2 + col1 / col0 AS col1 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT + - col0 + - ( - col1 ) AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - + cor0.col2 + ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - col0 * - col0 * 25 FROM tab0 cor0
----
14400
198025
30625

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - cor0.col2 * + 38 + col2 * - ( - col0 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
112632
4077
51740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 - - col1 col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT 42 - col1 FROM tab1
----
16
29
32

query I rowsort
SELECT ALL + + ( ( - col2 ) ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 37 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL - ( 58 ) + + col2 + 95 AS col1 FROM tab2 cor0
----
63
64
75

query I rowsort
SELECT DISTINCT + + 31 + ( col0 ) * - col2 FROM tab1 AS cor0
----
-131
-3617
-7649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5419
SELECT - CAST( col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5419
SELECT - CAST ( col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - - cor0.col0 + col0 AS col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - col0 * - col0 + ( ( col0 ) ) FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT DISTINCT + 79 DIV col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + 79 / col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT DISTINCT - - col0 * col0 * 82 + + cor0.col0 FROM tab2 cor0
----
4025
498966
511841

query I rowsort
SELECT - - col0 + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * + col1 - - col1 * col1 col2 FROM tab2 AS cor0
----
1377
2945
7257

query I rowsort
SELECT DISTINCT col0 * - col1 * col0 - - col2 AS col0 FROM tab1
----
-180
-40903
-83104

query I rowsort
SELECT DISTINCT col2 + col2 * + col2 - + 26 AS col2 FROM tab2
----
1456
676
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-5428
SELECT ( col0 ) + col1 * ( - 29 * + col0 ) + tab2.col0 DIV + col1 FROM tab2
----
-133379
-38864
-6286

skipif mysql # not compatible
query I rowsort label-5428
SELECT ( col0 ) + col1 * ( - 29 * + col0 ) + tab2.col0 / + col1 FROM tab2
----
-133379
-38864
-6286

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5429
SELECT ( - col2 + + col1 ) * CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-798
108
858

skipif mysql # not compatible
query I rowsort label-5429
SELECT ( - col2 + + col1 ) * CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-798
108
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * - col0 col2 FROM tab2
----
-70
-780
-790

query I rowsort
SELECT ALL + 80 FROM tab0, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT ALL - + col2 + - 71 DIV + col0 AS col1 FROM tab2 AS cor0
----
-26
-37
-38

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - + col2 + - 71 / + col0 AS col1 FROM tab2 AS cor0
----
-26
-37
-38

query I rowsort
SELECT + + col2 * - 50 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT - col0 * - 82 AS col0 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT ALL + col1 * + 12 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT DISTINCT - + col2 * 73 * col2 FROM tab0 AS cor0
----
-490852
-73
-79497

query I rowsort
SELECT ALL - col0 + + col1 * 44 FROM tab0 AS cor0
----
3760
3915
4233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - + ( - col0 ) col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col0 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + col1 * col1 * - 21 FROM tab1 AS cor0
----
-14196
-2100
-3549

query I rowsort
SELECT ALL - 28 * 10 FROM tab1 AS cor0
----
-280
-280
-280

query I rowsort
SELECT - + ( 20 ) FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT col1 + - 57 AS col0 FROM tab1 AS cor0
----
-31
-44
-47

query I rowsort
SELECT DISTINCT col0 + col2 + + col2 AS col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT - 96 + + cor0.col0 FROM tab1 AS cor0
----
-16
-32
-93

query I rowsort
SELECT + + 72 + col0 AS col1 FROM tab2 cor0
----
150
151
79

query I rowsort
SELECT DISTINCT 41 * col1 AS col2 FROM tab1 cor0
----
1066
410
533

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5448
SELECT CAST( - col2 AS SIGNED ) + cor0.col0 * + col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
233415
432
614304

skipif mysql # not compatible
query I rowsort label-5448
SELECT CAST ( - col2 AS INTEGER ) + cor0.col0 * + col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
233415
432
614304

query I rowsort
SELECT 33 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT - + ( - col1 ) * - col1 + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL + 39 * col2 AS col1 FROM tab0 AS cor0
----
1287
3198
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT DISTINCT - 16 * col0 FROM tab0
----
-1424
-384
-560

query I rowsort
SELECT cor0.col2 * + 91 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 1fc445c6fb70ae097efd8764ee35f76d

query I rowsort
SELECT ALL ( cor0.col0 ) + + col2 + col1 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab1, tab0 cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT + 9 * + col2 AS col1 FROM tab0 cor0
----
297
738
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT col2 + - cor0.col1 DIV - 9 FROM tab0 AS cor0
----
11
42
92

skipif mysql # not compatible
query I rowsort label-5459
SELECT col2 + - cor0.col1 / - 9 FROM tab0 AS cor0
----
11
42
92

query I rowsort
SELECT ALL + + 26 + + col1 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
7422
8307
9435

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT ALL + cor0.col1 DIV - 40 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL + cor0.col1 / - 40 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT col1 DIV 72 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5464
SELECT col1 / 72 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 68 + tab1.col2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 5634e38185d0ac8e308d4c3969fdcd0c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT 76 DIV col2 + + tab0.col0 FROM tab0
----
111
26
89

skipif mysql # not compatible
query I rowsort label-5466
SELECT 76 / col2 + + tab0.col0 FROM tab0
----
111
26
89

query I rowsort
SELECT DISTINCT col1 * - tab1.col0 * col0 AS col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT col2 + + tab0.col2 * col0 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT - cor0.col0 * col0 + 91 FROM tab0 AS cor0
----
-1134
-485
-7830

query I rowsort
SELECT + 1 + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL - + ( - col1 ) * col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - ( tab2.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - col1 * + col1 + + col0 + col0 AS col1 FROM tab2 AS cor0
----
-131
-3325
-947

query I rowsort
SELECT + 59 FROM tab1, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + tab2.col2 + + 23 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e179f3cde54c0dafd807f66ba70fc22a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT ALL tab0.col1 * 19 DIV - 88 AS col1 FROM tab0
----
-18
-19
-20

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL tab0.col1 * 19 / - 88 AS col1 FROM tab0
----
-18
-19
-20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT + col2 DIV + col2 + 43 * col1 * + col0 FROM tab1 AS cor0
----
27521
3355
44721

skipif mysql # not compatible
query I rowsort label-5477
SELECT + col2 / + col2 + 43 * col1 * + col0 FROM tab1 AS cor0
----
27521
3355
44721

query I rowsort
SELECT cor0.col1 + + col2 * col2 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5479
SELECT ALL - 78 * tab1.col0 + col0 DIV 94 AS col2 FROM tab1
----
-234
-4992
-6240

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - 78 * tab1.col0 + col0 / 94 AS col2 FROM tab1
----
-234
-4992
-6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5480
SELECT + CAST( NULL AS SIGNED ) * - col0 * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT + CAST ( NULL AS INTEGER ) * - col0 * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT ALL CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5482
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5482
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT ALL col2 DIV col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL col2 / col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT - - 85 + + col0 + col2 * 38 AS col0 FROM tab2 AS cor0
----
1118
1151
1608

query I rowsort
SELECT ALL - cor0.col2 * col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + col2 * - 67 AS col2 FROM tab2 AS cor0
----
-1716
-1782
-2508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col2 * ( - col1 ) col1 FROM tab1 cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT ALL + - ( - col2 ) DIV - ( col1 * col0 ) + 8 * cor0.col0 + - col1 * - 3 FROM tab2 AS cor0
----
149
683
801

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + - ( - col2 ) / - ( col1 * col0 ) + 8 * cor0.col0 + - col1 * - 3 FROM tab2 AS cor0
----
149
683
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT - CAST( col1 AS SIGNED ) + + col0 * - ( col0 ) FROM tab0 AS cor0
----
-1322
-662
-8012

skipif mysql # not compatible
query I rowsort label-5491
SELECT - CAST ( col1 AS INTEGER ) + + col0 * - ( col0 ) FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-5492
SELECT ALL - ( col0 ) + - tab1.col2 + - 16 DIV col0 AS col2 FROM tab1
----
-121
-176
-62

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - ( col0 ) + - tab1.col2 + - 16 / col0 AS col2 FROM tab1
----
-121
-176
-62

query I rowsort
SELECT + cor0.col2 * ( col1 + + col1 ) * 84 AS col1 FROM tab2 AS cor0
----
108528
140616
257712

query I rowsort
SELECT DISTINCT - ( - col0 ) + - col0 * - col1 AS col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT - - col2 + - 86 * cor0.col0 FROM tab1 cor0
----
-204
-5447
-6784

query I rowsort
SELECT - - ( + col0 ) + - col1 * - 29 FROM tab1 AS cor0
----
354
457
757

query I rowsort
SELECT - - 18 + - col0 AS col1 FROM tab0 AS cor0
----
-17
-6
-71

query I rowsort
SELECT DISTINCT - + 72 * - col2 AS col1 FROM tab1 AS cor0
----
3888
4104
6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col2 + col1 col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - 57 AS col2 FROM tab1 cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - col1 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + + 37 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1077
115
677

onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT ALL 90 DIV col1 AS col1 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL 90 / col1 AS col1 FROM tab2 AS cor0
----
1
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col1 FROM tab2
----
-17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5505
SELECT ALL ( - 67 + col2 ) * CAST( - col0 AS SIGNED ) col0 FROM tab0
----
-1335
2310
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL ( - 67 + col2 ) * CAST ( - col0 AS INTEGER ) col0 FROM tab0
----
-1335
2310
816

query I rowsort
SELECT - 84 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT col0 * cor0.col0 + + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL - col1 + col1 * 22 + col2 FROM tab1 AS cor0
----
267
369
600

query I rowsort
SELECT DISTINCT - col2 - + cor0.col0 AS col2 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5510
SELECT col0 + CAST( NULL AS DECIMAL ) / col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT col0 + CAST ( NULL AS REAL ) / col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col0 - - col0 AS col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT - col2 * + col0 * ( + col1 ) - col1 * col1 FROM tab0 cor0
----
-12804
-672399
-75508

query I rowsort
SELECT - - col1 - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5514
SELECT + col1 * - col0 * + CAST( - col2 AS SIGNED ) FROM tab1
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-5514
SELECT + col1 * - col0 * + CAST ( - col2 AS INTEGER ) FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT + - cor0.col0 DIV 52 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5515
SELECT + - cor0.col0 / 52 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( + 15 * col2 ) col1 FROM tab0 AS cor0
----
111930
1455
42570

query I rowsort
SELECT col0 * col0 * - col2 + col1 * col2 AS col1 FROM tab2 AS cor0
----
-156650
-236512
-486

query I rowsort
SELECT - - col1 * + 31 + col0 - - cor0.col1 FROM tab1 AS cor0
----
384
496
835

query I rowsort
SELECT col0 * - col1 + tab0.col1 + col0 AS col1 FROM tab0
----
-1954
-3263
-7919

query I rowsort
SELECT - cor0.col1 * 81 FROM tab1, tab1 cor0
----
9 values hashing to 2f97dfc69ff1a677837d92b32e470711

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5521
SELECT DISTINCT - CAST( - ( col2 ) AS SIGNED ) * CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT - CAST ( - ( col2 ) AS INTEGER ) * CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 79 * - col1 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT ALL ( - col1 ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + ( col2 ) * col1 - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5526
SELECT - 45 DIV - cor0.col2 FROM tab0 AS cor0
----
0
1
45

skipif mysql # not compatible
query I rowsort label-5526
SELECT - 45 / - cor0.col2 FROM tab0 AS cor0
----
0
1
45

query I rowsort
SELECT ALL + 4 * + col0 + cor0.col2 * + 52 AS col2 FROM tab0 AS cor0
----
1812
192
4620

query I rowsort
SELECT DISTINCT + col0 * + 18 AS col0 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT - cor0.col2 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + + col1 * + 75 + col0 FROM tab2 AS cor0
----
1354
2332
4503

query I rowsort
SELECT DISTINCT 52 AS col2 FROM tab1 cor0
----
52

query I rowsort
SELECT - 25 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT col0 * + col2 + col0 * + col1 FROM tab2
----
406
4345
6630

query I rowsort
SELECT - col2 * + tab2.col0 + col1 + + col0 FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT DISTINCT + col1 - - col2 * - col2 AS col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
3
64
80

query I rowsort
SELECT - - cor1.col1 * - 9 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2574cf6458d01677e1fbd386f422c352

query I rowsort
SELECT ALL - 13 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-302
-3494
-974

query I rowsort
SELECT + ( + ( + cor0.col0 ) ) * 42 + cor0.col1 FROM tab2 AS cor0
----
325
3335
3335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL + col1 * - 19 AS col2 FROM tab0 AS cor0
----
-1634
-1729
-1843

onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT ALL - 57 DIV col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
26
35

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - 57 / col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
26
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5543
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + CAST ( NULL AS REAL ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + ( col1 ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL + 36 * + col0 AS col2 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT DISTINCT + 38 * col2 AS col1 FROM tab2 cor0
----
1026
1444
988

query I rowsort
SELECT ALL col0 * tab0.col1 * + col2 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - tab2.col1 * col0 - col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT ALL + col2 * - 32 - 8 AS col0 FROM tab2 cor0
----
-1224
-840
-872

query I rowsort
SELECT col1 + + col0 * + 43 FROM tab2 AS cor0
----
332
3413
3414

query I rowsort
SELECT - 57 * + 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1c5d4faee253cd4e6a3b1392a2ff9e0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5552
SELECT - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + ( col2 ) * tab1.col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT DISTINCT + col1 * 93 * 93 + - col0 FROM tab1 AS cor0
----
112357
224871
86426

query I rowsort
SELECT ALL col2 * - col2 * col0 + + col0 AS col0 FROM tab0 AS cor0
----
-26112
-598347
0

query I rowsort
SELECT 13 * 27 FROM tab0, tab0 AS cor0
----
9 values hashing to 254f5b6daac88e4853eb98a5edd7f567

query I rowsort
SELECT DISTINCT + col0 + + 82 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT ALL - - col2 * + col1 + col2 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT col2 * 72 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1931
1975
2753

query I rowsort
SELECT - 7 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT 89 + 57 * - col2 AS col0 FROM tab1
----
-2989
-3160
-5383

query I rowsort
SELECT - - ( + col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * - col0 - col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT col1 * 49 AS col0 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT + ( + ( col1 ) ) * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + 74 * - col2 FROM tab1
----
-3996
-4218
-7104

query I rowsort
SELECT DISTINCT + 18 + col1 AS col1 FROM tab1 AS cor0
----
28
31
44

query I rowsort
SELECT ALL - 19 * + col0 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT ALL - col1 * - col1 * col1 FROM tab2 cor0
----
205379
29791
4913

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 ALL + col2 + 2 * col1 * col0 AS col2 FROM tab0 AS cor0
----
16280
4161
6791

query I rowsort
SELECT ALL + col2 + - 56 + col2 FROM tab0
----
-54
10
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 * - 50 + col0 col0 FROM tab1
----
32064
3903
52080

query I rowsort
SELECT ALL col1 * + ( + 86 ) + col1 * 17 + 18 * tab0.col0 FROM tab0
----
10621
10975
9290

query I rowsort
SELECT DISTINCT + - col1 * - 34 AS col0 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT - col2 + col0 * 15 AS col0 FROM tab0 AS cor0
----
1253
327
524

query I rowsort
SELECT + col2 + ( - col0 ) * + col1 AS col1 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT ALL ( + ( col1 ) ) * + cor0.col0 + + 23 AS col2 FROM tab2 AS cor0
----
1366
240
4625

query I rowsort
SELECT DISTINCT + - ( col1 ) - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 24 col0 FROM tab0 AS cor0
----
-23
58
9

query I rowsort
SELECT ALL + cor0.col2 + 20 AS col1 FROM tab2 AS cor0
----
46
47
58

query I rowsort
SELECT DISTINCT - 17 * col2 - col2 AS col0 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT DISTINCT - col1 + 44 * col1 AS col0 FROM tab1 AS cor0
----
1118
430
559

onlyif mysql # use DIV operator for integer division
query I rowsort label-5584
SELECT ALL - 24 DIV - ( - col1 ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - 24 / - ( - col1 ) FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT col2 + + 99 AS col0 FROM tab1
----
153
156
195

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT ALL col2 * col2 * tab0.col2 + - col0 DIV col0 AS col1 FROM tab0
----
0
35936
551367

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL col2 * col2 * tab0.col2 + - col0 / col0 AS col1 FROM tab0
----
0
35936
551367

query I rowsort
SELECT ALL + 98 FROM tab2, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + ( - 35 ) + - col2 AS col2 FROM tab0 AS cor0
----
-117
-36
-68

query I rowsort
SELECT + col2 * + 66 - + cor0.col0 FROM tab0 AS cor0
----
2154
31
5323

query I rowsort
SELECT - + 8 + + col0 * - col1 FROM tab2 AS cor0
----
-1351
-225
-4610

query I rowsort
SELECT - - cor0.col2 + col0 * - col1 AS col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col2 * 88 AS col2 FROM tab2
----
2288
2376
3344

query I rowsort
SELECT DISTINCT - col0 * + 32 AS col0 FROM tab2
----
-224
-2496
-2528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5595
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab1
----
-60

query I rowsort
SELECT 5 * col2 FROM tab2
----
130
135
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * col2 col2 FROM tab2
----
1216
832
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT - cor0.col1 DIV 92 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT - cor0.col1 / 92 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5600
SELECT + - col0 + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-5600
SELECT + - col0 + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5601
SELECT 40 * + col0 + - CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT 40 * + col0 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col1 ) + - ( - tab1.col2 ) * + col0 FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT + col2 * col2 + + 28 DIV col0 AS col1 FROM tab2
----
1444
676
733

skipif mysql # not compatible
query I rowsort label-5603
SELECT + col2 * col2 + + 28 / col0 AS col1 FROM tab2
----
1444
676
733

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + + CAST ( + col0 AS REAL ) * col2 * col1 AS col2 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT - col2 * + cor0.col0 - ( + col2 ) AS col0 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL - col1 + + ( - col0 ) * - col0 + col0 FROM tab2 cor0
----
25
6103
6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT + - col1 + ( col2 ) * col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-193
-37
-93

skipif mysql # not compatible
query I rowsort label-5607
SELECT + - col1 + ( col2 ) * col0 / - col1 AS col2 FROM tab2 AS cor0
----
-193
-37
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 9 + - 86 col2 FROM tab2 AS cor0
----
148
157
256

query I rowsort
SELECT DISTINCT + - col0 + 99 * col1 FROM tab1 AS cor0
----
1207
2571
926

query I rowsort
SELECT - 19 * - 3 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT col1 + + col2 + + ( - tab0.col2 ) AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT tab2.col2 * - tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col0 * - col2 + cor0.col2 - + col1 FROM tab2 AS cor0
----
-193
-2061
-2981

query I rowsort
SELECT 41 * col2 + - ( col2 + col2 ) FROM tab2
----
1014
1053
1482

onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT - col2 * cor0.col0 + col1 DIV cor0.col1 AS col0 FROM tab1 cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-5615
SELECT - col2 * cor0.col0 + col1 / cor0.col1 AS col0 FROM tab1 cor0
----
-161
-3647
-7679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT + col2 * + CAST( + col1 * + col0 AS SIGNED ) + - col2 * + col1 FROM tab1 cor0
----
2808
35910
98592

skipif mysql # not compatible
query I rowsort label-5616
SELECT + col2 * + CAST ( + col1 * + col0 AS INTEGER ) + - col2 * + col1 FROM tab1 cor0
----
2808
35910
98592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 94 col2 FROM tab1
----
1222
2444
940

query I rowsort
SELECT + - cor0.col1 * - 53 AS col1 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT col0 * + col0 + 16 FROM tab2 AS cor0
----
6100
6257
65

query I rowsort
SELECT - col1 + ( + col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL col2 * col2 + col0 * - col2 * col1 FROM tab1 AS cor0
----
-1296
-33231
-90624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 - - col2 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + col0 * cor0.col0 + col0 * col0 FROM tab1 AS cor0
----
12800
18
8192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5624
SELECT DISTINCT + - col1 DIV cor0.col1 - - col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + - col1 / cor0.col1 - - col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT + col1 * - 30 AS col0 FROM tab1 cor0
----
-300
-390
-780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5626
SELECT - + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT - + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - ( col0 ) ) AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col0 + - col2 * - col1 * col2 AS col0 FROM tab2 AS cor0
----
22592
24469
39806

query I rowsort
SELECT - - 12 * cor0.col2 FROM tab0 AS cor0
----
12
396
984

query I rowsort
SELECT - 50 + + col0 AS col1 FROM tab0 AS cor0
----
-15
-26
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 + col1 + + col2 col2 FROM tab1 AS cor0
----
-1139
-1324
-503

query I rowsort
SELECT DISTINCT 84 * col2 - 87 FROM tab1 AS cor0
----
4449
4701
7977

query I rowsort
SELECT - + col1 - cor0.col1 * + ( + col0 * col0 ) AS col2 FROM tab2 AS cor0
----
-106114
-1550
-359015

query I rowsort
SELECT col2 + col0 + + col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - - col2 * col2 + - col2 * + 74 * - col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
108379
50778
54682

query I rowsort
SELECT + col0 + col1 - - 20 FROM tab1 AS cor0
----
113
49
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT - + col2 DIV col1 + col1 + + cor0.col2 FROM tab2 cor0
----
53
58
85

skipif mysql # not compatible
query I rowsort label-5637
SELECT - + col2 / col1 + col1 + + cor0.col2 FROM tab2 cor0
----
53
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL - cor0.col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab0 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 + - ( col2 ) col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT + 50 * - col1 + col0 * + col2 + col0 FROM tab2 cor0
----
-1354
-844
2231

query I rowsort
SELECT DISTINCT ( col2 ) + col2 * col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL ( + ( col1 ) + col0 ) * col0 * col1 AS col2 FROM tab0
----
1457820
227040
448140

query I rowsort
SELECT + ( + col0 ) * + cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5646
SELECT + cor0.col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5646
SELECT + cor0.col0 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT DISTINCT - ( col1 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - ( col1 ) / - col1 AS col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + - cor0.col2 * cor0.col2 + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT - cor0.col2 * + col0 + col2 * col1 - 27 AS col1 FROM tab0 AS cor0
----
137
2019
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 32 col2 FROM tab0 cor0
----
2752
2912
3104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 83 * 44 col0 FROM tab0 AS cor0
----
-3570
-3619
-3651

query I rowsort
SELECT col1 + col0 * - ( col0 ) - cor0.col0 AS col1 FROM tab2 AS cor0
----
-25
-6103
-6303

query I rowsort
SELECT - col0 * + 8 + - col0 - col1 * col2 FROM tab0 cor0
----
-3054
-412
-8263

query I rowsort
SELECT 34 AS col0 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT 25 + - col0 AS col2 FROM tab1
----
-39
-55
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT col1 + - ( + col1 ) DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-5657
SELECT col1 + - ( + col1 ) / cor0.col0 AS col2 FROM tab2 AS cor0
----
17
27
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT 70 - cor0.col0 DIV - 43 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fe4fe0585facdd463c3283ed96bac97

skipif mysql # not compatible
query I rowsort label-5658
SELECT 70 - cor0.col0 / - 43 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fe4fe0585facdd463c3283ed96bac97

query I rowsort
SELECT col1 + 86 AS col1 FROM tab2
----
103
117
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - tab2.col1 col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - ( tab2.col2 * - col0 ) AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - ( col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5663
SELECT DISTINCT - col1 DIV 29 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT - col1 / 29 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + 32 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL 7 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 67 + + col0 col1 FROM tab2 cor0
----
1218
2084
4031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5667
SELECT CAST( + cor0.col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5667
SELECT CAST ( + cor0.col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 75 * col0 * + col0 col1 FROM tab0 AS cor0
----
43200
594075
91875

query I rowsort
SELECT + col1 * 79 AS col1 FROM tab0 AS cor0
----
6794
7189
7663

query I rowsort
SELECT ALL - 68 AS col1 FROM tab1 cor0
----
-68
-68
-68

query I rowsort
SELECT - - col1 * 1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + ( col0 ) + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5673
SELECT + CAST( cor0.col2 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5673
SELECT + CAST ( cor0.col2 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 86 + col0 col0 FROM tab2
----
609
6786
6873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5675
SELECT ALL col0 * ( + 50 * col2 ) + col2 * col1 + + tab2.col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL col0 * ( + 50 * col2 ) + col2 * col1 + + tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5676
SELECT col2 DIV - ( col2 ) + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-5676
SELECT col2 / - ( col2 ) + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

query I rowsort
SELECT ALL col2 * + col0 + + 16 + tab0.col1 AS col2 FROM tab0
----
148
7405
894

query I rowsort
SELECT ALL col2 * tab0.col2 + - col2 FROM tab0
----
0
1056
6642

query I rowsort
SELECT ALL 52 * ( col0 ) FROM tab1
----
156
3328
4160

query I rowsort
SELECT DISTINCT - 70 * col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-39900
-87360
-98280

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 19 AS REAL ) * col2 FROM tab1 AS cor0
----
1026
1083
1824

query I rowsort
SELECT 57 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col1 + - CAST ( - col2 AS REAL ) * col1 * - cor0.col0 FROM tab2 cor0
----
-119593
-51017
-5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-19

query I rowsort
SELECT DISTINCT cor0.col0 * tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 54522441dbf7fb56e19a888572d1f6e3

query I rowsort
SELECT DISTINCT + col0 + ( + cor0.col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - + col1 - + 73 FROM tab0 AS cor0
----
-159
-164
-170

query I rowsort
SELECT - + col2 * - cor0.col2 * - 55 + - col0 AS col0 FROM tab2 AS cor0
----
-37258
-40102
-79499

query I rowsort
SELECT ALL - + col2 + col1 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - col0 - col1 * + ( col0 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + col0 * ( col1 + col0 ) AS col1 FROM tab0 AS cor0
----
16020
2640
4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT + col2 DIV ( - cor0.col1 ) + col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-5692
SELECT + col2 / ( - cor0.col1 ) + col1 FROM tab2 AS cor0
----
15
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT DISTINCT + col0 * - 76 + + col1 DIV tab1.col1 FROM tab1
----
-227
-4863
-6079

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT + col0 * - 76 + + col1 / tab1.col1 FROM tab1
----
-227
-4863
-6079

query I rowsort
SELECT - col2 + 56 AS col1 FROM tab2 AS cor0
----
18
29
30

query I rowsort
SELECT DISTINCT - col1 * col1 - - col2 AS col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT col1 * + 25 - col1 AS col1 FROM tab0
----
2064
2184
2328

query I rowsort
SELECT - 64 * - 72 AS col0 FROM tab0
----
4608
4608
4608

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - cor0.col2 col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - ( - cor0.col1 ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT ALL + 63 * col0 DIV col1 FROM tab1
----
387
403
7

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + 63 * col0 / col1 FROM tab1
----
387
403
7

query I rowsort
SELECT - 56 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT + col2 + - col0 * 84 AS col0 FROM tab1 AS cor0
----
-198
-5319
-6624

query I rowsort
SELECT - - col0 * + 39 FROM tab2 AS cor0
----
273
3042
3081

query I rowsort
SELECT - + col2 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 * + col1 + - col0 * col1 AS col0 FROM tab1
----
-540
-871
598

query I rowsort
SELECT ( col1 * col2 ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col1 + - col2 + + 63 * 33 AS col2 FROM tab0 cor0
----
2088
2132
2175

query I rowsort
SELECT - 1 + col2 * - ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1445
-677
-730

onlyif mysql # use DIV operator for integer division
query I rowsort label-5710
SELECT ALL - 79 DIV col1 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-27
-29
-42

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL - 79 / col1 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-27
-29
-42

query I rowsort
SELECT 54 + cor0.col0 * - col2 FROM tab0 cor0
----
-7244
-738
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-5712
SELECT DISTINCT + + col2 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + + col2 / - col0 AS col2 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL + - col0 * col0 * + 75 AS col2 FROM tab1 AS cor0
----
-307200
-480000
-675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 30 col0 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT 44 + col1 * + col2 FROM tab0
----
141
2882
7506

query I rowsort
SELECT DISTINCT col0 - col2 * - 71 AS col2 FROM tab1
----
3837
4111
6896

query I rowsort
SELECT + + cor0.col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ( tab0.col0 ) * ( - col2 ) + col0 - col2 * tab0.col1 AS col2 FROM tab0
----
-14671
-3606
-97

query I rowsort
SELECT + 51 * tab1.col2 FROM tab1
----
2754
2907
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab1.col2 + - col2 ) col1 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT 42 * - col2 AS col2 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT 99 * - 50 FROM tab2, tab1 AS cor0
----
9 values hashing to 99f3dd634e9905afac19a9abf1e193ca

query I rowsort
SELECT DISTINCT + cor0.col2 + - 11 FROM tab1, tab2, tab2 cor0, tab1 cor1
----
15
16
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + col2 col1 FROM tab0
----
12
44
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT DISTINCT + col1 DIV col0 + ( - tab2.col0 ) AS col1 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT + col1 / col0 + ( - tab2.col0 ) AS col1 FROM tab2
----
-3
-78
-79

query I rowsort
SELECT DISTINCT - tab2.col2 * ( - 92 + - tab2.col2 ) FROM tab2
----
3068
3213
4940

onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT DISTINCT + - ( col0 ) DIV - col2 + + col0 * + col2 FROM tab0 cor0
----
70
7299
792

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + - ( col0 ) / - col2 + + col0 * + col2 FROM tab0 cor0
----
70
7299
792

query I rowsort
SELECT ALL 68 FROM tab0, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - 18 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT - 80 * + 24 FROM tab0 AS cor0
----
-1920
-1920
-1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-5732
SELECT ALL + col2 DIV col2 + - col1 AS col2 FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + col2 / col2 + - col1 AS col2 FROM tab1 cor0
----
-12
-25
-9

query I rowsort
SELECT ALL - col0 + col0 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + 52 * col2 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
147609
388106
5045

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * col1 col2 FROM tab2 cor0
----
1530
2790
5310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 + 47 col0 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT + 45 * tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8c033541caf69f6347023da0ef126f74

query I rowsort
SELECT ALL - 73 - col0 AS col1 FROM tab1 AS cor0
----
-137
-153
-76

query I rowsort
SELECT DISTINCT + 75 * col0 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT DISTINCT + + col2 + col1 * col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT 76 + + col0 DIV - col1 col2 FROM tab2
----
72
75
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5741
SELECT 76 + + col0 / - col1 col2 FROM tab2
----
72
75
76

query I rowsort
SELECT ALL 83 + - col2 AS col1 FROM tab2 AS cor0
----
45
56
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5743
SELECT ALL + col1 DIV + col0 + - col0 col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL + col1 / + col0 + - col0 col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT DISTINCT - 71 * col2 + - col2 + 16 AS col1 FROM tab2 AS cor0
----
-1856
-1928
-2720

query I rowsort
SELECT - - 72 + - col1 FROM tab2 AS cor0
----
13
41
55

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab0 cor0
----
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT ALL + cor0.col0 DIV + col1 + + ( - col0 ) FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL + cor0.col0 / + col1 + + ( - col0 ) FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT ALL - - col0 * col2 + ( col0 ) * col0 AS col0 FROM tab2 AS cor0
----
238
8112
9243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - - col1 * + 49 col1 FROM tab2 AS cor0
----
1512
2813
754

query I rowsort
SELECT DISTINCT - col1 - + cor0.col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL ( + col2 * col2 ) AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT - - 54 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT + col1 * col0 + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + col2 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + 90 * + col1 * col0 + + 37 AS col0 FROM tab2 AS cor0
----
120907
19567
414217

query I rowsort
SELECT DISTINCT + col1 * 49 + col0 FROM tab1 AS cor0
----
1277
554
717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5757
SELECT ALL col2 * - CAST( - 66 AS SIGNED ) col1 FROM tab1 cor0
----
3564
3762
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL col2 * - CAST ( - 66 AS INTEGER ) col1 FROM tab1 cor0
----
3564
3762
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + 67 * + col0 col0 FROM tab0 AS cor0
----
1522
2248
5872

query I rowsort
SELECT DISTINCT + - col1 * ( - cor0.col1 ) * + col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL cor0.col1 * + ( 30 ) - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-2492
-258
741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( - col1 + - col0 ) col1 FROM tab1
----
1209
740
754

query I rowsort
SELECT + + col2 + 10 AS col2 FROM tab1 AS cor0
----
106
64
67

query I rowsort
SELECT col2 + col1 * + col2 * col0 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT col2 + + 15 AS col1 FROM tab1 AS cor0
----
111
69
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT DISTINCT - col2 DIV + 69 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT - col2 / + 69 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT + - col1 + col2 * col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-18
-74
-97

skipif mysql # not compatible
query I rowsort label-5766
SELECT + - col1 + col2 * col2 / col1 AS col2 FROM tab0 AS cor0
----
-18
-74
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT ALL col1 * - col1 DIV - 1 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL col1 * - col1 / - 1 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT ALL col0 DIV + 61 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL col0 / + 61 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - col1 + 83 FROM tab0 cor0
----
-14
-3
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5770
SELECT DISTINCT - col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + col0 * 85 * col2 + cor0.col2 * col1 * col1 FROM tab1 AS cor0
----
-304380
-636576
22734

query I rowsort
SELECT DISTINCT + + col1 * - col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT - col0 + + col1 * + col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT ALL ( - 54 ) * - col1 AS col2 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT ALL + tab1.col0 + + ( col0 ) * col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col2 + - ( + col0 * + col1 ) AS col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT ( col0 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * 36 FROM tab0
----
1260
3204
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 21 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + 86 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5783
SELECT DISTINCT - col1 + CAST( col2 AS SIGNED ) * col0 FROM tab2
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT - col1 + CAST ( col2 AS INTEGER ) * col0 FROM tab2
----
158
1969
2985

query I rowsort
SELECT 64 * - cor0.col2 FROM tab0 AS cor0
----
-2112
-5248
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT + cor0.col2 - col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5785
SELECT + cor0.col2 - col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + ( col2 ) * - col1 + 64 * - col2 FROM tab0 AS cor0
----
-12710
-161
-4950

query I rowsort
SELECT + ( col0 ) + 71 FROM tab0 AS cor0
----
106
160
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT ALL + col0 DIV col0 col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL + col0 / col0 col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col2 * + col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT col2 + - col0 * ( col0 ) FROM tab2
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5792
SELECT + - col1 + CAST( NULL AS SIGNED ) * + 77 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT + - col1 + CAST ( NULL AS INTEGER ) * + 77 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 60 - - 55 AS col0 FROM tab1 AS cor0
----
169
172
211

query I rowsort
SELECT DISTINCT + tab2.col0 + - col1 * tab2.col2 FROM tab2
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5795
SELECT 5 + col0 * CAST( 12 AS SIGNED ) FROM tab1
----
41
773
965

skipif mysql # not compatible
query I rowsort label-5795
SELECT 5 + col0 * CAST ( 12 AS INTEGER ) FROM tab1
----
41
773
965

query I rowsort
SELECT + col1 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + col1 + - 24 AS col2 FROM tab0 AS cor0
----
62
67
73

query I rowsort
SELECT DISTINCT 56 + 42 FROM tab2 AS cor0
----
98

query I rowsort
SELECT DISTINCT col0 * 67 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT + ( - 73 ) * + col0 AS col0 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT DISTINCT - ( 61 ) * col1 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT + + col0 + + 95 FROM tab0 cor0
----
119
130
184

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
24
35
89

query I rowsort
SELECT DISTINCT 54 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
140
145
151

query I rowsort
SELECT 93 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
142
6177
6334

query I rowsort
SELECT 49 * 0 AS col2 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + 9 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL ( - 41 * + col1 ) FROM tab0
----
-3526
-3731
-3977

query I rowsort
SELECT ALL ( - tab2.col1 ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - tab2.col1 * - 70 AS col2 FROM tab2
----
1190
2170
4130

query I rowsort
SELECT + col2 * + 1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + - col1 - 95 * 94 AS col1 FROM tab2 AS cor0
----
-8947
-8961
-8989

query I rowsort
SELECT ALL - + col1 * ( - col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col1 + ( + col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 72 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT DISTINCT col1 * + ( - col0 ) - col2 * + col2 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT cor0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col1 ) ) + 72 * + col1 col1 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT + 23 + 15 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT - 72 * 95 + - col2 FROM tab1 AS cor0
----
-6894
-6897
-6936

query I rowsort
SELECT ALL col0 + + 92 FROM tab1 AS cor0
----
156
172
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) - - cor0.col0 col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT + ( ( + col0 ) ) * + col0 + - 19 DIV col1 FROM tab2 AS cor0
----
49
6084
6240

skipif mysql # not compatible
query I rowsort label-5824
SELECT + ( ( + col0 ) ) * + col0 + - 19 / col1 FROM tab2 AS cor0
----
49
6084
6240

query I rowsort
SELECT - - ( col1 ) + col2 * 35 FROM tab1 cor0
----
1916
2005
3373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5826
SELECT - CAST( NULL AS SIGNED ) + 66 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT - CAST ( NULL AS INTEGER ) + 66 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5827
SELECT col2 + cor0.col1 DIV col1 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5827
SELECT col2 + cor0.col1 / col1 AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT - - col2 + - cor0.col1 * 44 AS col0 FROM tab1 cor0
----
-1090
-383
-476

query I rowsort
SELECT DISTINCT - + ( - col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5830
SELECT - - CAST( NULL AS DECIMAL ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT - - CAST ( NULL AS REAL ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5831
SELECT ALL + CAST( - col2 AS SIGNED ) * + col0 col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + CAST ( - col2 AS INTEGER ) * + col0 col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col0 * ( - col1 ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5833
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col0 * + 45 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) AS col2 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5836
SELECT DISTINCT 16 DIV - 77 + cor0.col1 FROM tab1, tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT 16 / - 77 + cor0.col1 FROM tab1, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT cor0.col2 * + col1 + - col1 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 23 col1 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT + CAST( 46 AS SIGNED ) AS col2 FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5840
SELECT + CAST ( 46 AS INTEGER ) AS col2 FROM tab2
----
46
46
46

query I rowsort
SELECT 38 * + col0 * 51 + + ( + cor0.col0 ) + col2 * 77 AS col2 FROM tab2 AS cor0
----
153244
156107
15652

query I rowsort
SELECT - ( col2 ) + col1 + col0 FROM tab0 cor0
----
131
77
98

query I rowsort
SELECT - - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - + 63 AS col1 FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + ( tab2.col0 ) * + 86 + - 45 - - tab2.col2 * tab2.col2 FROM tab2
----
1286
7339
8193

query I rowsort
SELECT DISTINCT col0 * + tab2.col1 + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - - col1 + ( 20 ) AS col0 FROM tab0 AS cor0
----
106
111
117

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col1 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT + cor0.col2 + 41 * col2 AS col0 FROM tab2 AS cor0
----
1092
1134
1596

onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT - 40 DIV col1 + 28 AS col2 FROM tab1 AS cor0
----
24
25
27

skipif mysql # not compatible
query I rowsort label-5850
SELECT - 40 / col1 + 28 AS col2 FROM tab1 AS cor0
----
24
25
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5851
SELECT ALL - col0 + col2 * col2 DIV + col1 FROM tab2
----
-67
16
5

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - col0 + col2 * col2 / + col1 FROM tab2
----
-67
16
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT ALL 64 + + col0 DIV - col0 AS col2 FROM tab2
----
63
63
63

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL 64 + + col0 / - col0 AS col2 FROM tab2
----
63
63
63

query I rowsort
SELECT DISTINCT col2 + col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT ALL + col0 + + ( cor0.col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 * 81 FROM tab2 AS cor0
----
2106
2187
3078

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5856
SELECT DISTINCT - cor0.col0 * col1 / + 63 + - col1 + CAST( NULL AS SIGNED ) * - 78 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - cor0.col0 * col1 / + 63 + - col1 + CAST ( NULL AS INTEGER ) * - 78 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + - col2 * col1 * + col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT ALL + col2 + + 25 DIV col2 FROM tab0 AS cor0
----
26
33
82

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + col2 + + 25 / col2 FROM tab0 AS cor0
----
26
33
82

query I rowsort
SELECT DISTINCT + 51 FROM tab2, tab2 AS cor0
----
51

query I rowsort
SELECT ALL - tab1.col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( ( col0 ) AS REAL ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 74 * - col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 * - 38 AS col0 FROM tab1 cor0
----
-114
-2432
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT - + cor0.col1 DIV + col0 + col0 FROM tab1 cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5866
SELECT - + cor0.col1 / + col0 + col0 FROM tab1 cor0
----
-5
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT DISTINCT + 69 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT + 69 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * col2 + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + + 18 * cor0.col1 FROM tab1 AS cor0
----
180
234
468

query I rowsort
SELECT ALL - + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 - - col1 * + 61 AS col2 FROM tab1 cor0
----
1589
674
873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 + col2 col2 FROM tab2 cor0
----
109
97
98

query I rowsort
SELECT DISTINCT col1 + col2 - 16 FROM tab1 AS cor0
----
51
64
93

query I rowsort
SELECT col0 * - col0 + + ( cor0.col0 + cor0.col0 ) FROM tab1 AS cor0
----
-3
-3968
-6240

query I rowsort
SELECT DISTINCT - col0 + - col2 * 91 FROM tab2 AS cor0
----
-2444
-2464
-3537

query I rowsort
SELECT - 40 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
81 values hashing to b10451aa7e22bfd12577dc60d18d9396

query I rowsort
SELECT 61 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ALL - 9 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT ALL 28 + + col2 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + ( - 13 ) FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + cor0.col2 * + 11 AS col0 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT - + col2 + ( + col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + col0 * + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT cor0.col0 - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + 52 + - 90 * col0 AS col0 FROM tab0 AS cor0
----
-2108
-3098
-7958

query I rowsort
SELECT ALL - 47 - - col2 * + col0 AS col0 FROM tab2 AS cor0
----
142
1981
2955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5890
SELECT DISTINCT col1 * + col2 - + ( + col0 * col0 + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT col1 * + col2 - + ( + col0 * col0 + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5891
SELECT - cor0.col2 DIV + col1 + col0 col1 FROM tab2 AS cor0
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5891
SELECT - cor0.col2 / + col1 + col0 col1 FROM tab2 AS cor0
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 6 + col1 * ( - col2 * col2 ) col1 FROM tab2 AS cor0
----
-22605
-24554
-39890

query I rowsort
SELECT ALL - col1 + col2 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
114059
5072
52669

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT DISTINCT - col2 + col2 + - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT - col2 + col2 + - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - + col0 * + col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 + 12 * + 70 FROM tab0 AS cor0
----
841
873
922

query I rowsort
SELECT + + col0 * - 86 + 14 FROM tab0 AS cor0
----
-2050
-2996
-7640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5898
SELECT col0 DIV - ( ( + col1 ) ) FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT col0 / - ( ( + col1 ) ) FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT col0 * col0 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
12168
12482
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5900
SELECT DISTINCT + col0 + col1 DIV col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + col0 + col1 / col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT + + cor0.col1 + ( - 68 ) + col2 * col2 AS col0 FROM tab1 AS cor0
----
2874
3191
9161

query I rowsort
SELECT col2 + + 18 AS col1 FROM tab2 cor0
----
44
45
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * - 25 + cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-1012
-2621
-3484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - 77 ) * + col2 + col0 col1 FROM tab2 AS cor0
----
2080
2086
3005

query I rowsort
SELECT DISTINCT + col1 * 92 * - tab0.col0 FROM tab0
----
-189888
-312340
-745108

query I rowsort
SELECT 87 * - cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-2055
-3044
-7661

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5908
SELECT + 85 DIV - col0 - - col0 * 59 col0 FROM tab0 AS cor0
----
1413
2063
5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5908
SELECT + 85 / - col0 - - col0 * 59 col0 FROM tab0 AS cor0
----
1413
2063
5251

query I rowsort
SELECT DISTINCT + col1 * - 8 + - col1 * + col1 AS col2 FROM tab2
----
-1209
-3953
-425

onlyif mysql # use DIV operator for integer division
query I rowsort label-5910
SELECT - col1 DIV - 47 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5910
SELECT - col1 / - 47 FROM tab1
----
0
0
0

query I rowsort
SELECT 99 * 9 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to cd3721ac31b64dcfdfab61421509dc7c

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
8

query I rowsort
SELECT cor0.col2 * - col1 + - cor0.col1 + + 89 FROM tab2 AS cor0
----
-1504
-574
-779

query I rowsort
SELECT - 10 + + col2 * ( ( - col0 ) + + col2 ) FROM tab1 AS cor0
----
-409
1526
2744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * - col0 col2 FROM tab1
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + col1 * + col2 col2 FROM tab1 AS cor0
----
1292
1448
614

query I rowsort
SELECT DISTINCT col0 + 57 * + col0 AS col2 FROM tab2
----
406
4524
4582

query I rowsort
SELECT + col1 * + 4 AS col1 FROM tab2
----
124
236
68

query I rowsort
SELECT - + cor1.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + 12 * col1 AS col2 FROM tab0
----
1032
1092
1164

query I rowsort
SELECT ALL + 28 + col2 AS col2 FROM tab0
----
110
29
61

skipif mysql # not compatible
query I rowsort
SELECT + col1 - col2 * col1 * - CAST ( - col0 AS REAL ) AS col1 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT tab0.col1 * 3 AS col1 FROM tab0
----
258
273
291

query I rowsort
SELECT ALL - 61 * cor0.col1 + - col0 FROM tab0 cor0
----
-5270
-5640
-5952

query I rowsort
SELECT DISTINCT 91 * - 81 - cor0.col0 FROM tab1 AS cor0
----
-7374
-7435
-7451

query I rowsort
SELECT DISTINCT - + col0 * col2 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT 4 + - col2 * col2 * col2 FROM tab2
----
-17572
-19679
-54868

query I rowsort
SELECT ALL + - col2 - - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 44 * cor0.col0 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT DISTINCT col1 + - col0 AS col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT - - 14 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT DISTINCT - 75 + + col1 FROM tab0 cor0
----
11
16
22

query I rowsort
SELECT + 28 + - col2 * ( - 4 ) FROM tab1 cor0
----
244
256
412

query I rowsort
SELECT ALL - ( + col0 ) * - col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT cor0.col0 + + col1 * - 33 AS col0 FROM tab2 AS cor0
----
-1016
-1869
-482

onlyif mysql # use DIV operator for integer division
query I rowsort label-5936
SELECT + col1 * col0 DIV - tab2.col1 AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5936
SELECT + col1 * col0 / - tab2.col1 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 + - 10 - col1 AS col1 FROM tab0
----
-106
-19
-63

query I rowsort
SELECT + col1 + + 13 * cor0.col2 * + col2 + cor0.col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
17446
4245
9291

query I rowsort
SELECT ALL + - col1 * - col0 + 70 + - col1 AS col2 FROM tab2 AS cor0
----
1396
256
4613

query I rowsort
SELECT ALL ( cor0.col1 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5941
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-5941
SELECT - CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - - 28 + col1 FROM tab2 AS cor0
----
45
59
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5944
SELECT ALL CAST( NULL AS SIGNED ) * + ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL CAST ( NULL AS INTEGER ) * + ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT - col1 DIV + col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-5945
SELECT - col1 / + col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-3
-36
-83

query I rowsort
SELECT DISTINCT col1 * 45 + + col1 * col0 FROM tab2 AS cor0
----
1612
2108
7257

query I rowsort
SELECT ALL 57 + col2 * - col2 FROM tab0 AS cor0
----
-1032
-6667
56

query I rowsort
SELECT + cor0.col1 * 14 + - col1 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT + col1 * - 6 + col2 AS col0 FROM tab0 AS cor0
----
-464
-483
-581

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 73 + 21 * - col2 * 72 col0 FROM tab2 AS cor0
----
-39385
-40897
-57529

query I rowsort
SELECT DISTINCT - col1 - - col0 * + col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT ALL col2 * 4 - - col0 FROM tab1
----
219
292
464

query I rowsort
SELECT ALL 10 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT col2 * + col2 * - col2 + + col2 AS col1 FROM tab1 cor0
----
-157410
-185136
-884640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT - CAST( col1 AS SIGNED ) + cor0.col1 * + ( col1 ) DIV col1 - + col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5955
SELECT - CAST ( col1 AS INTEGER ) + cor0.col1 * + ( col1 ) / col1 - + col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab2 cor0
----
72

query I rowsort
SELECT DISTINCT + col2 * + 51 AS col2 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT col2 + - col1 + - col2 * + 32 FROM tab0 AS cor0
----
-1109
-128
-2633

query I rowsort
SELECT ALL - col1 * 9 + - col2 + 12 * cor0.col1 AS col1 FROM tab2 AS cor0
----
13
151
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5960
SELECT 87 DIV - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 237f1c7501a7028216df327f14bab576

skipif mysql # not compatible
query I rowsort label-5960
SELECT 87 / - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 237f1c7501a7028216df327f14bab576

query I rowsort
SELECT + 39 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT - col0 + - 21 FROM tab1 cor0
----
-101
-24
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 84 * col1 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT cor0.col0 - + 99 AS col1 FROM tab1 AS cor0
----
-19
-35
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 90 + cor0.col2 col2 FROM tab2 AS cor0
----
-603
-6994
-7072

query I rowsort
SELECT ALL col1 - 67 FROM tab1
----
-41
-54
-57

query I rowsort
SELECT ALL + col1 * col2 + - col0 FROM tab1
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + col0 col1 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col1 * - col0 + 25 * + 82 FROM tab0 AS cor0
----
-1345
-14
-6049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * col0 col2 FROM tab2
----
483
5382
5451

query I rowsort
SELECT DISTINCT + col2 + + col0 + 75 AS col1 FROM tab1 AS cor0
----
132
196
251

query I rowsort
SELECT + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 + col1 * + 10 AS col0 FROM tab0
----
821
836
935

query I rowsort
SELECT ALL - ( col2 ) * - col2 * 0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5977
SELECT ALL - 62 DIV + col1 AS col2 FROM tab1
----
-2
-4
-6

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - 62 / + col1 AS col2 FROM tab1
----
-2
-4
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5978
SELECT ALL - col0 * + CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - col0 * + CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col0 * 52 FROM tab0 AS cor0
----
-1248
-1820
-4628

query I rowsort
SELECT DISTINCT col1 * - ( col0 + - cor0.col0 * - col1 ) AS col2 FROM tab1 AS cor0
----
-14560
-2106
-7040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 94 * - col1 col0 FROM tab1 AS cor0
----
1235
2470
950

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5982
SELECT ALL - col1 + CAST( - col1 + col2 AS SIGNED ) FROM tab1 AS cor0
----
2
37
70

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - col1 + CAST ( - col1 + col2 AS INTEGER ) FROM tab1 AS cor0
----
2
37
70

query I rowsort
SELECT ALL - - col1 - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT DISTINCT - tab1.col0 DIV col0 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - tab1.col0 / col0 AS col0 FROM tab1
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5985
SELECT ALL - col2 DIV + 92 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - col2 / + 92 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT ALL + - cor0.col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL + - cor0.col1 / + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + col2 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5988
SELECT + col0 + 40 DIV 64 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5988
SELECT + col0 + 40 / 64 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + - col2 * 89 AS col1 FROM tab2 AS cor0
----
-2314
-2403
-3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT + col2 DIV col1 + tab1.col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-5990
SELECT + col2 / col1 + tab1.col2 FROM tab1
----
103
56
62

query I rowsort
SELECT ALL - col0 * - col2 + + col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT col0 DIV col0 + - tab0.col0 AS col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5992
SELECT col0 / col0 + - tab0.col0 AS col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT - col2 * - col2 * - col1 AS col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT col2 * - col2 + col2 - + col0 FROM tab2
----
-1485
-709
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * + col2 * + col0 col0 FROM tab0
----
3395
664118
68112

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - col2 * tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= col0
----

query I rowsort
SELECT col2 * - col0 * - col2 + col1 FROM tab0
----
132
26222
598527

query I rowsort
SELECT ALL - col0 + tab1.col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * col2 * col2 + + col1 * + col0 * col2 FROM tab1
----
219648
68970
80028

query I rowsort
SELECT DISTINCT + 24 - + col2 AS col0 FROM tab0 AS cor0
----
-58
-9
23

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab2
----
32

query I rowsort
SELECT + - 70 * - cor0.col0 * ( col0 * col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
1330474
45466449
85653

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6005
SELECT ALL col1 * - col2 + CAST( NULL AS SIGNED ) * + 32 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL col1 * - col2 + CAST ( NULL AS INTEGER ) * + 32 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6006
SELECT ALL + - cor0.col2 + col1 DIV + 95 FROM tab0 AS cor0
----
-33
-82
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL + - cor0.col2 + col1 / + 95 FROM tab0 AS cor0
----
-33
-82
0

query I rowsort
SELECT - 89 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT + - col1 - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT + col0 DIV - col0 + - col1 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-6009
SELECT + col0 / - col0 + - col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT + col0 * 37 AS col2 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT - col2 * col2 + 37 * + col0 AS col0 FROM tab2 AS cor0
----
-470
1479
2210

onlyif mysql # use DIV operator for integer division
query I rowsort label-6012
SELECT ALL + - cor0.col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL + - cor0.col0 / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - 53 * ( col1 ) FROM tab0 AS cor0
----
-4558
-4823
-5141

query I rowsort
SELECT + - ( col1 ) * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 17 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL 49 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT - 93 DIV 52 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6017
SELECT - 93 / 52 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL tab1.col2 * tab1.col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6020
SELECT - CAST( NULL AS SIGNED ) + 67 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT - CAST ( NULL AS INTEGER ) + 67 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 74 + - col0 * + col1 FROM tab1 AS cor0
----
-4
-566
-966

query I rowsort
SELECT + col0 + + col2 - + cor0.col1 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT - + col1 * col2 + ( - col1 + col0 ) * + 22 FROM tab2 AS cor0
----
-1116
-1365
718

query I rowsort
SELECT + - col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + - col0 + + col1 * + col0 * - cor0.col2 - col2 AS col0 FROM tab1 AS cor0
----
-100016
-36601
-4269

query I rowsort
SELECT ALL + 40 * 51 * + col1 FROM tab1
----
20400
26520
53040

query I rowsort
SELECT ALL - tab2.col1 * tab2.col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6028
SELECT DISTINCT - CAST( + ( - tab1.col2 ) AS SIGNED ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT - CAST ( + ( - tab1.col2 ) AS INTEGER ) FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + col1 + + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col1 * + col2 col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT DISTINCT 25 DIV - col1 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT 25 / - col1 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + col0 * col2 - - tab0.col0 AS col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - tab1.col1 * - tab1.col1 - + col2 * tab1.col1 * + col2 AS col2 FROM tab1
----
-119639
-32390
-75140

query I rowsort
SELECT ALL tab2.col2 * col0 + col1 AS col0 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-6035
SELECT ALL + tab0.col2 * col2 DIV - col0 + col2 AS col1 FROM tab0
----
-12
1
7

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL + tab0.col2 * col2 / - col0 + col2 AS col1 FROM tab0
----
-12
1
7

query I rowsort
SELECT ALL col1 + + col0 * - col2 AS col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - - col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + + col0 * col2 + + col1 * - cor0.col1 FROM tab0 AS cor0
----
-6604
-9374
-983

query I rowsort
SELECT DISTINCT + - col0 * - col1 + - col0 * + col1 * col2 FROM tab2 AS cor0
----
-115050
-49691
-5642

onlyif mysql # use DIV operator for integer division
query I rowsort label-6040
SELECT ALL col0 + cor0.col2 DIV col1 AS col0 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL col0 + cor0.col2 / col1 AS col0 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT - col0 * col0 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-4196
-6569
-685

query I rowsort
SELECT 47 - + 93 * + col2 AS col0 FROM tab0
----
-3022
-46
-7579

query I rowsort
SELECT - col1 + 44 AS col1 FROM tab2
----
-15
13
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT - col1 - 74 DIV col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6044
SELECT - col1 - 74 / col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - col1 * - col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL ( 87 ) AS col1 FROM tab2
----
87
87
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6047
SELECT - CAST( + ( + col2 ) AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6047
SELECT - CAST ( + ( + col2 ) AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT ALL + col1 * cor0.col1 + + col2 * col1 DIV col0 + col0 AS col2 FROM tab0 AS cor0
----
7538
8453
9446

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + col1 * cor0.col1 + + col2 * col1 / col0 + col0 AS col2 FROM tab0 AS cor0
----
7538
8453
9446

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 - - col0 * + col1 AS col1 FROM tab0 cor0
----
1272
3360
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-6050
SELECT - col2 - col1 DIV col0 col2 FROM tab0 AS cor0
----
-3
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6050
SELECT - col2 - col1 / col0 col2 FROM tab0 AS cor0
----
-3
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - 97 + cor0.col0 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
1226
158087
237061

query I rowsort
SELECT + - 85 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
7286
7646
8210

query I rowsort
SELECT ALL 7 AS col1 FROM tab2
----
7
7
7

query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - ( + col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL 40 * col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
1233
2282
601

query I rowsort
SELECT ALL - cor0.col1 * col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL 60 + + col0 FROM tab1 AS cor0
----
124
140
63

query I rowsort
SELECT ALL + 94 AS col0 FROM tab1 cor0
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6061
SELECT DISTINCT + col1 DIV + col0 + col2 AS col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT + col1 / + col0 + col2 AS col0 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT - col0 * + tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col1 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + - col1 BETWEEN - cor0.col0 AND ( NULL )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL + col2 * + col0 * + cor0.col0 + + col2 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT ALL + col0 * col1 + + col2 + col0 FROM tab1
----
1216
135
761

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 + tab0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT DISTINCT col2 DIV - col0 + col0 + + tab2.col1 AS col1 FROM tab2
----
137
35
96

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT col2 / - col0 + col0 + + tab2.col1 AS col1 FROM tab2
----
137
35
96

query I rowsort
SELECT col2 * + col1 * + tab1.col2 AS col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL - col1 * - tab2.col2 - tab2.col2 AS col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab0 WHERE NOT col1 IN ( tab0.col0 )
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT DISTINCT col1 DIV - col2 + tab1.col1 * col1 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT col1 / - col2 + tab1.col1 * col1 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE - col2 NOT IN ( - col2 )
----

query I rowsort
SELECT ALL + col0 * col2 + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL + col0 + + col2 * - col1 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col0 * col1 + - col0 * col2 * col0 AS col2 FROM tab0
----
-16944
-641423
2170

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN + tab0.col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6078
SELECT ALL col0 DIV + tab2.col0 + + col0 AS col2 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL col0 / + tab2.col0 + + col0 AS col2 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6079
SELECT + col0 + + col2 DIV col2 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6079
SELECT + col0 + + col2 / col2 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL col0 + - col0 * col1 AS col2 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT tab1.col1 * + col1 DIV col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6081
SELECT tab1.col1 * + col1 / col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + - col0 + col1 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT ALL + + col1 * + col2 + + col2 + col1 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
1559
683
863

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + + col1 * + col2 + + col2 + col1 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
1559
683
863

query I rowsort
SELECT + + col1 * + col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT ALL col2 + + cor0.col0 DIV - col0 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL col2 + + cor0.col0 / - col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT tab2.col2 + - tab2.col2 + + col0 AS col0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT DISTINCT col2 + + col0 + + col1 DIV col0 AS col0 FROM tab2
----
104
117
38

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT col2 + + col0 + + col1 / col0 AS col0 FROM tab2
----
104
117
38

query I rowsort
SELECT col0 * tab1.col0 + - col2 AS col2 FROM tab1
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-6089
SELECT DISTINCT + col1 DIV - col0 AS col2 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT + col1 / - col0 AS col2 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT ALL - col2 * col2 DIV col0 AS col0 FROM tab0
----
-45
-75
0

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - col2 * col2 / col0 AS col0 FROM tab0
----
-45
-75
0

query I rowsort
SELECT col0 * col0 - col1 * + col0 AS col0 FROM tab2
----
-168
1482
4898

query I rowsort
SELECT - + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NULL <> + cor0.col0 * cor0.col2 OR + col0 IN ( col0 )
----
26
27
38

query I rowsort
SELECT DISTINCT col0 * col1 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + - 3 + col1 FROM tab0 AS cor0
----
83
88
94

query I rowsort
SELECT DISTINCT - ( ( cor0.col1 ) ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col1 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ( ( col1 ) ) + - ( col1 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT + ( col2 ) * - tab0.col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col2 + 63 AS col0 FROM tab2
----
101
89
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6101
SELECT - - cor0.col0 + 6 DIV + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6101
SELECT - - cor0.col0 + 6 / + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col1 * + cor0.col1 * + col1 FROM tab1 cor0
----
-1000
-17576
-2197

query I rowsort
SELECT + col2 * cor0.col2 + 88 - col0 FROM tab2 AS cor0
----
1453
686
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT col2 DIV ( - col1 * col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6104
SELECT col2 / ( - col1 * col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 55 AS col1 FROM tab1
----
-55
-55
-55

query I rowsort
SELECT 25 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * - col2 col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + col0 + - col0 * col2 AS col1 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT 14 + - col2 AS col0 FROM tab1
----
-40
-43
-82

query I rowsort
SELECT ALL ( col1 * col0 + - col2 ) AS col2 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + + tab2.col0 col2 FROM tab2
----
120
121
49

query I rowsort
SELECT 60 * 56 FROM tab2, tab1 AS cor0
----
9 values hashing to cbe71c138ae0b68e52fe3134cddf6fef

query I rowsort
SELECT ALL col0 + - ( + col1 ) AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT col1 + + ( 4 + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2494
3880
8554

query I rowsort
SELECT ALL + tab1.col1 * + col1 AS col0 FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6116
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 1 * - col2 + + col0 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT + col2 * + col1 - col1 * col1 FROM tab1 cor0
----
1079
470
728

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL - 96 AS col1 FROM tab2 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - 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-6122
SELECT - + ( 48 ) - col1 * + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT - + ( 48 ) - col1 * + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - 27 * 82 * + col2 AS col0 FROM tab1
----
-119530
-126188
-212531

query I rowsort
SELECT DISTINCT tab1.col2 * - col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 47 - col2 FROM tab1
----
-10
-49
-7

query I rowsort
SELECT 12 + col2 FROM tab1 cor0
----
108
66
69

query I rowsort
SELECT ALL + cor0.col0 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT - 0 DIV col1 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6128
SELECT - 0 / col1 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + 9 * 61 AS col0 FROM tab1 AS cor0
----
549
549
549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6130
SELECT - cor0.col2 * 7 + col0 * CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT - cor0.col2 * 7 + col0 * CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) * col1 - - col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col2 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT col1 + ( col0 ) AS col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT col0 DIV + 60 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6134
SELECT col0 / + 60 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + + col0 * col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - - col0 + + ( col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col0 * cor0.col1 * 41 FROM tab2 AS cor0
----
188682
55063
8897

query I rowsort
SELECT - ( + col2 ) + - col2 * col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT + col0 + + col0 * 43 AS col2 FROM tab1 cor0
----
132
2816
3520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + col0 * col0 col1 FROM tab2 AS cor0
----
146
6181
6338

query I rowsort
SELECT ALL 0 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT cor0.col1 + col1 * + 73 AS col1 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT ALL + - col0 * - col1 * + ( + col0 ) AS col0 FROM tab1 cor0
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 col0 FROM tab0 cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 * + col2 col1 FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * + 12 FROM tab2 AS cor0
----
221
403
767

query I rowsort
SELECT + 11 * + col2 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT ALL - + col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - + col2 + + col2 * 89 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT + col1 + col0 * 46 FROM tab0
----
1190
1707
4185

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + + 75 FROM tab0 cor0
----
2139
3470
8174

query I rowsort
SELECT DISTINCT - + col0 - + 95 FROM tab2 AS cor0
----
-102
-173
-174

query I rowsort
SELECT - + col0 - - ( col2 ) * col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT col0 * col1 * tab2.col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT ALL + 89 + - col1 * - ( col1 ) * - col2 AS col2 FROM tab0
----
-243979
-678953
-9320

query I rowsort
SELECT 2 + 83 AS col2 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT ALL - col1 * 90 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT + col2 * - col0 + - tab1.col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT + col0 + tab0.col0 + - tab0.col0 AS col0 FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6160
SELECT CAST( NULL AS DECIMAL ) * - 39 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6160
SELECT CAST ( NULL AS REAL ) * - 39 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 * 24 + + col0 * 43 FROM tab1
----
201
4288
5360

query I rowsort
SELECT - 20 FROM tab1, tab1 cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6163
SELECT - CAST( 63 AS SIGNED ) AS col1 FROM tab1
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-6163
SELECT - CAST ( 63 AS INTEGER ) AS col1 FROM tab1
----
-63
-63
-63

query I rowsort
SELECT + 40 * col1 AS col1 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT ALL - + ( + col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - - ( col2 ) * + col1 * + 51 AS col2 FROM tab2 cor0
----
32946
42687
78234

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6168
SELECT + CAST( - col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-6168
SELECT + CAST ( - col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + 70 * 91 FROM tab1 AS cor0
----
6370
6370
6370

query I rowsort
SELECT + ( + col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ( + col2 ) + col1 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + 68 + col2 FROM tab2 cor0
----
106
94
95

query I rowsort
SELECT + col0 * col0 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-69
3456
5360

query I rowsort
SELECT + col0 * + col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + col0 * col1 + - col1 AS col2 FROM tab1
----
1027
52
630

query I rowsort
SELECT - + 19 AS col1 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + 56 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to f78ab7f4ab7761f90d40be7050808ae6

query I rowsort
SELECT DISTINCT col1 * - tab1.col1 * - 14 AS col1 FROM tab1
----
1400
2366
9464

query I rowsort
SELECT ALL + ( - col2 + col0 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL + - col1 * - cor0.col1 + - 40 FROM tab1 AS cor0
----
129
60
636

query I rowsort
SELECT + col0 * cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT - tab2.col2 * 4 DIV + col0 AS col0 FROM tab2
----
-1
-1
-15

skipif mysql # not compatible
query I rowsort label-6184
SELECT - tab2.col2 * 4 / + col0 AS col0 FROM tab2
----
-1
-1
-15

query I rowsort
SELECT ALL - - col2 + - col0 * col1 * - col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT 6 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT 86 * - cor0.col1 * - 55 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 95f2b539e36047cd258f5d92191d1fbc

query I rowsort
SELECT DISTINCT + - col2 - + 17 * col1 FROM tab0 cor0
----
-1495
-1629
-1650

query I rowsort
SELECT DISTINCT - col1 * - col0 - + cor0.col2 * col2 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT - col2 * + col1 - col2 * - col2 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT - - col0 + + ( col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT cor0.col0 * col1 + - col1 - + col0 * - 52 * + col1 FROM tab1 AS cor0
----
33910
4108
55107

query I rowsort
SELECT ALL col2 * + col2 * - col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - + ( ( cor0.col0 ) ) + + 57 AS col1 FROM tab0 cor0
----
-32
22
33

query I rowsort
SELECT DISTINCT col2 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - ( 37 ) AS col2 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT ALL - ( col1 ) + + col1 - CAST( 27 AS SIGNED ) FROM tab2 cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL - ( col1 ) + + col1 - CAST ( 27 AS INTEGER ) FROM tab2 cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + + ( + 60 ) * col2 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT - ( - cor0.col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + - 50 + - col0 AS col1 FROM tab1 AS cor0
----
-114
-130
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT DISTINCT - ( - cor0.col0 ) * col0 + + 46 + col1 DIV col0 FROM tab0 AS cor0
----
1273
625
7968

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - ( - cor0.col0 ) * col0 + + 46 + col1 / col0 FROM tab0 AS cor0
----
1273
625
7968

query I rowsort
SELECT DISTINCT + + col1 * + col2 + col2 * ( col2 ) FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT ALL ( ( - cor0.col0 ) ) * + 6 AS col1 FROM tab2 AS cor0
----
-42
-468
-474

query I rowsort
SELECT DISTINCT - 6 FROM tab0, tab2 AS cor0
----
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6205
SELECT - col1 + CAST( + ( - col0 ) AS SIGNED ) + 63 AS col2 FROM tab1
----
-11
-30
34

skipif mysql # not compatible
query I rowsort label-6205
SELECT - col1 + CAST ( + ( - col0 ) AS INTEGER ) + 63 AS col2 FROM tab1
----
-11
-30
34

query I rowsort
SELECT 13 * + col0 FROM tab2
----
1014
1027
91

query I rowsort
SELECT ALL + ( + col1 ) * 28 * - col1 FROM tab2 cor0
----
-26908
-8092
-97468

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT ALL + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL + cor0.col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + ( 10 ) - - cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 24df7e294fac80a23e006cc975d7bb0a

query I rowsort
SELECT ALL col2 + col1 * tab0.col2 * tab0.col1 AS col0 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT ALL 73 + + col2 FROM tab2
----
100
111
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT ( + tab0.col0 ) DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT ( + tab0.col0 ) / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 - ( - cor0.col1 ) FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col0 + - 94 AS col2 FROM tab2 AS cor0
----
-15
-16
-87

query I rowsort
SELECT DISTINCT + + 40 AS col2 FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 + - col1 * col1 FROM tab2 cor0
----
-1150
-3291
-5509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 4 ) * - col0 col2 FROM tab0 AS cor0
----
-140
-356
-96

query I rowsort
SELECT DISTINCT + - ( col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - + col1 * 9 FROM tab1 cor0
----
-117
-234
-90

query I rowsort
SELECT DISTINCT - - ( 72 ) AS col1 FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL - ( - ( + col0 ) ) * - 77 AS col2 FROM tab2 AS cor0
----
-539
-6006
-6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT DISTINCT - - CAST( col2 AS SIGNED ) * col1 DIV col0 AS col0 FROM tab0 cor0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * col1 / col0 AS col0 FROM tab0 cor0
----
118
2
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6226
SELECT ALL - col1 * CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 68 * - cor0.col1 col1 FROM tab2 AS cor0
----
-104312
-43928
-56916

onlyif mysql # use DIV operator for integer division
query I rowsort label-6228
SELECT - col0 + + 88 DIV - col0 AS col1 FROM tab2 AS cor0
----
-19
-79
-80

skipif mysql # not compatible
query I rowsort label-6228
SELECT - col0 + + 88 / - col0 AS col1 FROM tab2 AS cor0
----
-19
-79
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6229
SELECT + + CAST( - col2 AS SIGNED ) * col2 * ( + col0 ) FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-6229
SELECT + + CAST ( - col2 AS INTEGER ) * col2 * ( + col0 ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT 27 * 10 FROM tab1 AS cor0
----
270
270
270

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT ALL + ( tab2.col2 ) DIV col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + ( tab2.col2 ) / col1 FROM tab2
----
0
0
2

query I rowsort
SELECT - col0 + col1 * + col1 AS col2 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT 91 + - 88 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT 88 * cor0.col2 * - 73 FROM tab2 AS cor0
----
-167024
-173448
-244112

query I rowsort
SELECT ALL 48 + col1 AS col1 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT DISTINCT - 41 + cor0.col1 FROM tab2 AS cor0
----
-10
-24
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-6237
SELECT ALL - 91 * col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-189
-518
-672

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - 91 * col2 / col1 AS col0 FROM tab1 AS cor0
----
-189
-518
-672

query I rowsort
SELECT ALL - - col1 * - col0 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * + 27 FROM tab1 AS cor0
----
213
255
648

query I rowsort
SELECT ( tab1.col0 * col1 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT ( col1 ) * col0 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - 61 * + cor0.col0 AS col2 FROM tab2 cor0
----
-427
-4758
-4819

query I rowsort
SELECT - ( tab2.col1 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6244
SELECT ALL + - CAST( 30 AS SIGNED ) FROM tab2, tab1 AS cor0, tab1, tab0 cor1
----
81 values hashing to 6993f5c634597e63319c949df6b4733d

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + - CAST ( 30 AS INTEGER ) FROM tab2, tab1 AS cor0, tab1, tab0 cor1
----
81 values hashing to 6993f5c634597e63319c949df6b4733d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6245
SELECT ALL - col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT ALL ( + 56 ) DIV col2 + - col1 * + col2 * col0 AS col2 FROM tab0
----
-3339
-664118
-68111

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL ( + 56 ) / col2 + - col1 * + col2 * col0 AS col2 FROM tab0
----
-3339
-664118
-68111

query I rowsort
SELECT - ( tab0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL - cor0.col0 - - 20 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 54f8b3628e3bb9ffff43b4cc49ddd97d

query I rowsort
SELECT + 65 * + col1 + - col2 * 73 * cor0.col1 FROM tab0 AS cor0
----
-201584
-538811
-776

query I rowsort
SELECT - + col1 * + 96 AS col0 FROM tab1 cor0
----
-1248
-2496
-960

query I rowsort
SELECT ALL col2 * 45 AS col0 FROM tab2
----
1170
1215
1710

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-24
-35
-89

query I rowsort
SELECT ALL col2 + - 39 * + cor0.col2 FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT DISTINCT - - col2 * col0 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + cor0.col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + col0 * col2 - 46 FROM tab2 AS cor0
----
143
1982
2956

query I rowsort
SELECT DISTINCT - col0 * col0 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
-106059
-1492
-358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT ALL - - col2 DIV + ( col0 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - - col2 / + ( col0 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - cor0.col0 + - 7 AS col0 FROM tab2 AS cor0
----
-14
-85
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT DISTINCT + col2 + + col0 DIV cor0.col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT + col2 + + col0 / cor0.col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT col0 - ( - col2 ) AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - + ( cor0.col2 ) + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6263
SELECT DISTINCT CAST( NULL AS SIGNED ) * cor0.col0 - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col0 - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( 24 ) FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT ALL - + 82 + cor0.col1 FROM tab1 AS cor0
----
-56
-69
-72

query I rowsort
SELECT + + 35 * col1 AS col2 FROM tab1 cor0
----
350
455
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT ALL + - col0 + + cor0.col2 DIV cor0.col0 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + - col0 + + cor0.col2 / cor0.col0 FROM tab1 AS cor0
----
-64
-79
15

query I rowsort
SELECT - ( col0 ) * + col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + + ( col1 ) + col2 * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + - 49 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT - cor0.col2 * col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT ALL 67 * col1 + col2 FROM tab2 AS cor0
----
1177
2104
3979

query I rowsort
SELECT ( cor0.col0 ) + col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * - col2 * ( 85 ) + col0 FROM tab1 AS cor0
----
-106000
-119337
-48386

onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT ALL + 84 DIV - col0 FROM tab1
----
-1
-1
-28

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + 84 / - col0 FROM tab1
----
-1
-1
-28

query I rowsort
SELECT ALL col0 + + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * col2 col1 FROM tab1
----
3078
3249
5472

query I rowsort
SELECT ALL + tab2.col0 * col0 + - col0 AS col2 FROM tab2
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT ALL - col1 * col1 + + col0 DIV + col0 + col1 * tab2.col0 * + col0 FROM tab2
----
105809
355476
559

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - col1 * col1 + + col0 / + col0 + col1 * tab2.col0 * + col0 FROM tab2
----
105809
355476
559

query I rowsort
SELECT ALL + ( col2 * col0 ) + col2 * + col1 * col2 + col1 * col2 * tab2.col1 FROM tab2
----
132418
38532
48735

query I rowsort
SELECT - col0 * ( col1 * col1 ) FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT 81 * + col1 AS col0 FROM tab2
----
1377
2511
4779

query I rowsort
SELECT 97 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - col0 * + 38 + 56 FROM tab2 AS cor0
----
-210
-2908
-2946

onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT cor0.col0 + col1 * col1 DIV col1 + + 2 FROM tab2 AS cor0
----
139
40
98

skipif mysql # not compatible
query I rowsort label-6286
SELECT cor0.col0 + col1 * col1 / col1 + + 2 FROM tab2 AS cor0
----
139
40
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT tab0.col1 DIV 33 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-6287
SELECT tab0.col1 / 33 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + col0 + + col1 * cor0.col2 + - col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - col2 * col2 * - 34 FROM tab2 AS cor0
----
22984
24786
49096

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT 10 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT 10 / + col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6291
SELECT ALL + CAST( 58 AS SIGNED ) + col2 FROM tab2
----
84
85
96

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL + CAST ( 58 AS INTEGER ) + col2 FROM tab2
----
84
85
96

query I rowsort
SELECT DISTINCT - 68 + col0 AS col2 FROM tab1
----
-4
-65
12

query I rowsort
SELECT DISTINCT 6 - + col2 * - col1 FROM tab2
----
1540
652
843

query I rowsort
SELECT col2 * tab2.col0 + col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT 79 + col2 AS col0 FROM tab0 AS cor0
----
112
161
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col1 * cor0.col2 col1 FROM tab0 cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT - col1 * + ( - tab0.col1 ) * + tab0.col2 + col2 DIV + col1 FROM tab0
----
244068
679042
9409

skipif mysql # not compatible
query I rowsort label-6297
SELECT - col1 * + ( - tab0.col1 ) * + tab0.col2 + col2 / + col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL + col1 * col1 + ( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT - 8 * col1 AS col0 FROM tab1 AS cor0
----
-104
-208
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT + - cor0.col2 * col0 + col0 DIV 81 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6300
SELECT + - cor0.col2 * col0 + col0 / 81 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT - - col1 - col0 DIV + 13 FROM tab2 AS cor0
----
11
31
53

skipif mysql # not compatible
query I rowsort label-6301
SELECT - - col1 - col0 / + 13 FROM tab2 AS cor0
----
11
31
53

query I rowsort
SELECT - 61 + + col1 AS col2 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT 71 * col1 AS col1 FROM tab1
----
1846
710
923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 * + col2 col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - 67 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-124
-163

query I rowsort
SELECT ALL - 21 * col2 * - 36 FROM tab0 AS cor0
----
24948
61992
756

query I rowsort
SELECT DISTINCT - + col0 + + col1 * - col2 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT - 79 + - col1 FROM tab1 AS cor0
----
-105
-89
-92

query I rowsort
SELECT + + 30 + col1 AS col1 FROM tab0 AS cor0
----
116
121
127

query I rowsort
SELECT ALL + col0 * - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT + - col1 * - col2 + + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + 19 AS col2 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT + - col2 * + col0 - - 40 FROM tab0 AS cor0
----
-7258
-752
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6314
SELECT - 82 * - cor0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6314
SELECT - 82 * - cor0.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6315
SELECT + col1 - col0 DIV - col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6315
SELECT + col1 - col0 / - col0 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL + col2 + + col2 * tab0.col1 FROM tab0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + cor0.col1 col2 FROM tab2 AS cor0
----
113
141
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT + col0 * col1 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6318
SELECT + col0 * col1 / ( col0 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col0 + col2 * col1 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL col0 * - tab2.col2 FROM tab2 WHERE ( NULL ) <= col2 * + col0 * col2
----

query I rowsort
SELECT DISTINCT + col1 + - col2 * - col2 AS col0 FROM tab2
----
1461
735
760

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL tab1.col2 + + tab1.col1 FROM tab1
----
109
67
80

query I rowsort
SELECT col0 * - col2 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT col1 + col2 * + col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT 25 * + tab1.col2 + col0 FROM tab1
----
1353
1489
2480

onlyif mysql # use DIV operator for integer division
query I rowsort label-6327
SELECT tab0.col2 * + col2 DIV - col2 + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT tab0.col2 * + col2 / - col2 + col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) > + col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col0 + - tab1.col0 FROM tab1
----
0

query I rowsort
SELECT - col1 * col2 * col2 + - tab0.col0 * col2 AS col0 FROM tab0
----
-132
-619182
-94446

query I rowsort
SELECT DISTINCT + col2 - col0 * col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT + col2 * - tab2.col2 + col1 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT + col2 + col2 * cor0.col0 FROM tab0 AS cor0
----
36
7380
825

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) NOT IN ( + tab1.col0 * col2 )
----

query I rowsort
SELECT ALL - col1 - + tab0.col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + col0 - - col2 * tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE ( col2 / - col2 ) NOT IN ( col0 )
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + col1 col0 FROM tab2
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE ( col0 ) > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 WHERE NOT + col0 * col1 = ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col1 NOT IN ( col2 / col0 )
----

query I rowsort
SELECT ALL - col0 * + col1 + + col1 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + tab1.col1 + tab1.col0 * col2 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT tab0.col0 + + tab0.col2 + col1 AS col0 FROM tab0
----
133
143
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6345
SELECT - CAST( NULL AS SIGNED ) - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT - CAST ( NULL AS INTEGER ) - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 * 45 * col0 AS col1 FROM tab1 AS cor0
----
100800
126000
4725

query I rowsort
SELECT ALL - 29 - - col2 * + col1 FROM tab0 AS cor0
----
2809
68
7433

onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT DISTINCT + - col0 DIV + 22 FROM tab0 AS cor0
----
-1
-4

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + - col0 / + 22 FROM tab0 AS cor0
----
-1
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT ALL col2 - col1 DIV + col1 FROM tab1 cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL col2 - col1 / + col1 FROM tab1 cor0
----
53
56
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6350
SELECT + col2 * col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT + col2 * col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 91 + col2 col1 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT ALL + 61 * + cor0.col2 - 91 FROM tab1 AS cor0
----
3203
3386
5765

query I rowsort
SELECT - col2 * - cor0.col2 * col2 FROM tab0 cor0
----
1
35937
551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 * col0 col2 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT ALL + - 81 * + col0 AS col0 FROM tab0 AS cor0
----
-1944
-2835
-7209

query I rowsort
SELECT DISTINCT col0 + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + + 20 * - col2 + col1 + 25 AS col0 FROM tab2 AS cor0
----
-436
-484
-718

query I rowsort
SELECT ALL - col2 * col2 - + 27 FROM tab0 AS cor0
----
-1116
-28
-6751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 33 + + col2 * ( 53 ) ) col0 FROM tab0
----
1782
4379
86

query I rowsort
SELECT ALL + 46 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + col2 * - 42 + + col0 AS col0 FROM tab2 AS cor0
----
-1014
-1127
-1517

query I rowsort
SELECT + - cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * 13 * - col0 FROM tab0 AS cor0
----
-10296
-455
-94874

query I rowsort
SELECT - col2 * + 31 - + col1 AS col0 FROM tab2 AS cor0
----
-1195
-865
-868

query I rowsort
SELECT ALL col1 * col2 * - ( + col0 + tab0.col0 ) FROM tab0
----
-1328236
-136224
-6790

query I rowsort
SELECT ALL - - col1 * - 69 AS col1 FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT DISTINCT - - cor0.col0 * + col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT - + col2 DIV ( - 57 ) + col1 - col2 * + col2 * + col2 FROM tab2 AS cor0
----
-17517
-19652
-54855

skipif mysql # not compatible
query I rowsort label-6368
SELECT - + col2 / ( - 57 ) + col1 - col2 * + col2 * + col2 FROM tab2 AS cor0
----
-17517
-19652
-54855

query I rowsort
SELECT ALL - col0 * - col2 - + 43 * - col2 AS col2 FROM tab0 AS cor0
----
10824
2211
78

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 * + col0 + cor0.col2 + 31 FROM tab2 AS cor0
----
106166
1577
359013

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + 32 - ( col2 + col2 ) AS col2 FROM tab1 AS cor0
----
-160
-76
-82

query I rowsort
SELECT - 66 + - col2 FROM tab0 AS cor0
----
-148
-67
-99

query I rowsort
SELECT DISTINCT - - col0 * col0 * col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * ( - col2 ) col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT col2 - + 36 AS col1 FROM tab2
----
-10
-9
2

query I rowsort
SELECT ALL - + col0 + + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - col0 + - tab2.col1 FROM tab2
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6379
SELECT CAST( - 57 AS SIGNED ) - col2 col2 FROM tab2
----
-83
-84
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6379
SELECT CAST ( - 57 AS INTEGER ) - col2 col2 FROM tab2
----
-83
-84
-95

query I rowsort
SELECT col1 + + 84 FROM tab2
----
101
115
143

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab0, tab1 AS cor0
----
14

query I rowsort
SELECT ALL col1 + - col0 * - col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT col2 * - 41 * col2 + - col1 FROM tab0
----
-138
-275775
-44735

onlyif mysql # use DIV operator for integer division
query I rowsort label-6384
SELECT ALL + 29 * col1 * + col1 + col0 DIV - col0 + col0 FROM tab0
----
214507
240237
272895

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL + 29 * col1 * + col1 + col0 / - col0 + col0 FROM tab0
----
214507
240237
272895

query I rowsort
SELECT ALL 75 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - + ( + col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + col2 * + col1 + col2 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-2318
-468
675

query I rowsort
SELECT ALL - - 19 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ( + cor0.col2 ) + - col0 * col1 * + cor0.col2 + + col1 * col0 FROM tab1 AS cor0
----
-35783
-4080
-98704

query I rowsort
SELECT 18 + col0 + col0 * + col2 FROM tab2 AS cor0
----
2124
214
3099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 + - col1 col2 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT - + 4 AS col0 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT 80 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT ALL + col2 * col1 + - col0 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-1031
-368
2348

query I rowsort
SELECT cor0.col1 + - col0 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT col1 + - 13 AS col2 FROM tab0
----
73
78
84

query I rowsort
SELECT + cor0.col1 - + col2 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT DISTINCT + col2 * col1 + - 38 AS col1 FROM tab2 cor0
----
1496
608
799

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6399
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6400
SELECT DISTINCT + - col0 + - CAST( - col2 * + col1 AS SIGNED ) FROM tab2 AS cor0
----
1456
567
830

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT + - col0 + - CAST ( - col2 * + col1 AS INTEGER ) FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col0 - 16 AS col1 FROM tab0 AS cor0
----
19
73
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT + col0 * CAST( + col1 AS SIGNED ) - - col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-6402
SELECT + col0 * CAST ( + col1 AS INTEGER ) - - col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 - col0 col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT + - col1 * cor0.col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + cor0.col1 * 30 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT ALL - + 99 + - cor0.col1 + col2 AS col0 FROM tab1 cor0
----
-16
-52
-71

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 * + cor0.col0 + - col1 FROM tab0 AS cor0
----
-177590
-329412
-737100

query I rowsort
SELECT DISTINCT col2 + col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT - col2 - 93 DIV + col0 FROM tab2 AS cor0
----
-27
-39
-40

skipif mysql # not compatible
query I rowsort label-6409
SELECT - col2 - 93 / + col0 FROM tab2 AS cor0
----
-27
-39
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6410
SELECT DISTINCT - + CAST( col1 AS SIGNED ) * + col0 + - col2 + + col0 AS col2 FROM tab2 cor0
----
-1302
-237
-4550

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) * + col0 + - col2 + + col0 AS col2 FROM tab2 cor0
----
-1302
-237
-4550

onlyif mysql # use DIV operator for integer division
query I rowsort label-6411
SELECT + + col2 + col0 DIV col2 + - col2 col2 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6411
SELECT + + col2 + col0 / col2 + - col2 col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL + ( - col0 ) * + col0 + - col0 FROM tab1 cor0
----
-12
-4160
-6480

query I rowsort
SELECT 66 * cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 21ddb10b9c4f379837d13f9116fdc3b2

query I rowsort
SELECT ALL - - ( + ( + col1 ) ) + + col2 AS col1 FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT col1 + + 93 DIV - col1 FROM tab2
----
12
28
58

skipif mysql # not compatible
query I rowsort label-6415
SELECT col1 + + 93 / - col1 FROM tab2
----
12
28
58

query I rowsort
SELECT DISTINCT + col1 - 14 FROM tab2 AS cor0
----
17
3
45

query I rowsort
SELECT ALL - col0 * + col0 - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL col2 * + col0 + col0 + col0 FROM tab0 AS cor0
----
105
7476
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col1 + col0 col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + col2 * col2 - col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT + - col2 - col1 * - col2 * col2 FROM tab1 AS cor0
----
119712
32433
75762

query I rowsort
SELECT col1 * col2 - - col1 * - col0 AS col0 FROM tab0 AS cor0
----
-3298
-637
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT col0 DIV - col1 + + col2 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-6423
SELECT col0 / - col1 + + col2 FROM tab1 AS cor0
----
51
54
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT col1 + col0 DIV col2 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-6424
SELECT col1 + col0 / col2 FROM tab0
----
132
86
92

query I rowsort
SELECT cor0.col0 * + col2 AS col2 FROM tab0 cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * + col0 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col2 + - col0 * col0 * col1 FROM tab0
----
-118826
-49569
-720893

query I rowsort
SELECT DISTINCT + col0 * col0 - col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT col2 - + col0 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT - col1 + tab2.col0 * + tab2.col0 AS col1 FROM tab2
----
18
6025
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col1 + col0 col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6432
SELECT DISTINCT - col0 * col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - col0 * col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab0, tab0 cor0
----
89

query I rowsort
SELECT DISTINCT + col2 * - 1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + 51 * 23 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4417e474461f6ac197d314da840b40f0

query I rowsort
SELECT 42 + - tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 13c8d0efe49508cbc0fa43d53e95f276

query I rowsort
SELECT ALL 54 * cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fead6e319ba9b23c537dfbf264190f24

query I rowsort
SELECT ALL + tab0.col1 + - 2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d2f9011c79a51614726bed1e174a6045

query I rowsort
SELECT col2 * col1 + + col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL + col0 * + col2 * col0 + ( - col0 ) AS col0 FROM tab1
----
233408
483
614320

query I rowsort
SELECT + cor0.col1 + col1 * - 51 AS col2 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT - - col2 + cor0.col2 * + col1 FROM tab0 cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6444
SELECT 41 + col0 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
169
201
47

skipif mysql # not compatible
query I rowsort label-6444
SELECT 41 + col0 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
169
201
47

query I rowsort
SELECT ALL - 49 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT ALL - col2 + - tab2.col2 * col0 * 18 FROM tab2
----
-3429
-36530
-54074

onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT ALL ( - col1 ) DIV col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL ( - col1 ) / col1 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL - ( + col2 ) * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT 27 + - col1 AS col0 FROM tab2 AS cor0
----
-32
-4
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT + 53 * + cor0.col0 + - col2 DIV 89 AS col0 FROM tab0 cor0
----
1272
1855
4717

skipif mysql # not compatible
query I rowsort label-6450
SELECT + 53 * + cor0.col0 + - col2 / 89 AS col0 FROM tab0 cor0
----
1272
1855
4717

query I rowsort
SELECT ALL 59 * cor0.col1 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT + 0 + - cor0.col1 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT - col0 * - col0 * + 31 + cor0.col2 + col2 DIV col0 FROM tab2 AS cor0
----
1549
188630
193509

skipif mysql # not compatible
query I rowsort label-6453
SELECT - col0 * - col0 * + 31 + cor0.col2 + col2 / col0 FROM tab2 AS cor0
----
1549
188630
193509

query I rowsort
SELECT + col0 + col0 + ( 38 ) AS col1 FROM tab1 AS cor0
----
166
198
44

query I rowsort
SELECT + cor0.col1 * - col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT - 61 - - col2 FROM tab1
----
-4
-7
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 - col2 * - 59 * - col0 col1 FROM tab2
----
-10962
-117624
-174116

query I rowsort
SELECT + 90 * col2 * 45 AS col2 FROM tab1
----
218700
230850
388800

query I rowsort
SELECT ( col2 ) * col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + 55 * col0 * - 86 + col0 AS col0 FROM tab1 AS cor0
----
-14187
-302656
-378320

query I rowsort
SELECT - + col2 * + cor0.col2 - + col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT + col2 + + col0 + col0 * col0 AS col0 FROM tab2
----
6188
6358
83

query I rowsort
SELECT DISTINCT - col2 + - col2 * 80 FROM tab0
----
-2673
-6642
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT col1 * col1 + + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
100
169
684

skipif mysql # not compatible
query I rowsort label-6464
SELECT col1 * col1 + + col1 / col0 AS col2 FROM tab1 AS cor0
----
100
169
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - cor0.col2 col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - col2 * - ( col0 ) * + col1 + col1 + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-117565
-48015
-5639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 61 col1 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT DISTINCT col1 + 36 * + col0 + - cor0.col2 FROM tab0 cor0
----
1356
3213
917

query I rowsort
SELECT DISTINCT - col0 * + col2 + + col0 FROM tab2 cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + ( + 19 * col2 ) col2 FROM tab1 cor0
----
1029
1147
1904

query I rowsort
SELECT ALL col1 * + 10 + + col0 + - col0 AS col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT DISTINCT - - col0 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col2 * + 34 + 53 AS col0 FROM tab2 AS cor0
----
1345
937
971

query I rowsort
SELECT DISTINCT + + col0 * + col1 + - 49 FROM tab0 cor0
----
2015
3346
8050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * col1 col2 FROM tab2 AS cor0
----
1088
1984
3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col1 * + col1 col2 FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL + col0 - col2 * col0 * + col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + 85 AS col2 FROM tab1 cor0
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT DISTINCT - - col2 * 6 + col1 * 75 DIV col0 FROM tab0 AS cor0
----
213
466
568

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT - - col2 * 6 + col1 * 75 / col0 FROM tab0 AS cor0
----
213
466
568

query I rowsort
SELECT col0 - col2 * cor0.col2 AS col0 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL col2 * col2 + - 63 FROM tab1 AS cor0
----
2853
3186
9153

query I rowsort
SELECT - col1 - col0 * + col2 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab2
----
81

query I rowsort
SELECT + + ( col0 ) * + col0 + cor0.col1 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT + - 39 * col0 + + col1 - col2 AS col1 FROM tab0 AS cor0
----
-1269
-3462
-883

query I rowsort
SELECT + - 50 * + col2 + col2 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT DISTINCT + col0 * - 69 FROM tab0
----
-1656
-2415
-6141

query I rowsort
SELECT ALL + 4 + - col0 FROM tab0 AS cor0
----
-20
-31
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6490
SELECT - CAST( NULL AS SIGNED ) / ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT - CAST ( NULL AS INTEGER ) / ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 16 * cor0.col0 * col0 FROM tab2 AS cor0
----
784
97344
99856

query I rowsort
SELECT ALL + 84 AS col2 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT - + col2 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT DISTINCT tab1.col1 DIV col1 - - col1 AS col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT tab1.col1 / col1 - - col1 AS col1 FROM tab1
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab0.col0 ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - col2 + 18 + - col2 AS col1 FROM tab0
----
-146
-48
16

query I rowsort
SELECT col1 + col0 * col0 * col0 FROM tab1
----
262154
512013
53

query I rowsort
SELECT ALL col1 * - ( 28 * - col2 ) - col2 FROM tab0
----
208854
2715
79431

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6499
SELECT CAST( - col2 AS SIGNED ) + col1 AS col2 FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-6499
SELECT CAST ( - col2 AS INTEGER ) + col1 AS col2 FROM tab2
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6500
SELECT ALL + CAST( col1 AS SIGNED ) * col1 + col1 AS col1 FROM tab0
----
7482
8372
9506

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + CAST ( col1 AS INTEGER ) * col1 + col1 AS col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT ALL ( + col1 ) + col0 * - 53 FROM tab0
----
-1186
-1758
-4626

query I rowsort
SELECT - 2 * cor0.col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL col0 + + 1 AS col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - + col1 + - 20 FROM tab1 AS cor0
----
-30
-33
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col2 * + col0 col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - - ( cor0.col1 ) + + col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT 85 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - 91 + - ( + col0 ) * 29 FROM tab1 AS cor0
----
-178
-1947
-2411

query I rowsort
SELECT DISTINCT + ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + - 7 * + col1 AS col2 FROM tab2 AS cor0
----
-119
-217
-413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col0 FROM tab0
----
36

query I rowsort
SELECT tab1.col0 * + col0 * - col1 + tab1.col0 * + col1 * + 73 AS col1 FROM tab1
----
-7280
5460
5760

query I rowsort
SELECT - - col1 + ( 55 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1674
-3186
-918

query I rowsort
SELECT + col0 * ( col2 ) + + col2 * ( col1 * tab2.col1 ) + + ( col2 ) AS col0 FROM tab2
----
14022
26163
92560

query I rowsort
SELECT ALL - col0 + 78 FROM tab1
----
-2
14
75

query I rowsort
SELECT + 85 FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb

query I rowsort
SELECT ALL - col2 + + 58 FROM tab1 AS cor0
----
-38
1
4

query I rowsort
SELECT DISTINCT col1 * - ( + col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703

query I rowsort
SELECT DISTINCT - col0 * 65 + col1 * + col0 FROM tab2 AS cor0
----
-238
-3792
-468

query I rowsort
SELECT ALL + - col2 + 11 FROM tab0 AS cor0
----
-22
-71
10

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 + - 26 * col0 AS col0 FROM tab0 cor0
----
-813
2214
5148

query I rowsort
SELECT DISTINCT col2 * 99 + - cor0.col1 * + col1 + - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
4592
4903
8295

query I rowsort
SELECT ALL - + cor0.col2 * - col2 + - ( col1 ) - col2 FROM tab1 AS cor0
----
2836
3182
9107

query I rowsort
SELECT col1 * + 69 + col2 * col0 FROM tab0 AS cor0
----
13577
6726
6728

query I rowsort
SELECT + col2 + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL - cor0.col1 + 39 * + col2 * col1 FROM tab1 cor0
----
22220
48659
54730

query I rowsort
SELECT + + col2 - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT col0 * + cor0.col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT + cor0.col2 * - 28 AS col0 FROM tab0, tab1 cor0, tab1 cor1
----
-1512
-1596
-2688

query I rowsort
SELECT 67 + - col2 FROM tab1 AS cor0
----
-29
10
13

query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) * col0 * col1 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + - 7 * col2 + + col2 FROM tab2 AS cor0
----
-156
-162
-228

onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT + col1 - col0 * col1 DIV + 82 AS col2 FROM tab0 AS cor0
----
-7
56
61

skipif mysql # not compatible
query I rowsort label-6534
SELECT + col1 - col0 * col1 / + 82 AS col2 FROM tab0 AS cor0
----
-7
56
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6535
SELECT + - CAST( + col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6535
SELECT + - CAST ( + col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 50 * col0 + - col0 AS col0 FROM tab0
----
1176
1715
4361

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6537
SELECT + ( col1 + CAST( + 52 AS SIGNED ) ) AS col1 FROM tab2
----
111
69
83

skipif mysql # not compatible
query I rowsort label-6537
SELECT + ( col1 + CAST ( + 52 AS INTEGER ) ) AS col1 FROM tab2
----
111
69
83

query I rowsort
SELECT + + cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col0 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT 96 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + col1 * 32 col1 FROM tab1
----
377
512
886

query I rowsort
SELECT 9 * - col2 AS col0 FROM tab0
----
-297
-738
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6544
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6544
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( + 18 + tab2.col2 ) FROM tab2
----
44
45
56

query I rowsort
SELECT ALL + ( - 89 ) AS col0 FROM tab1
----
-89
-89
-89

query I rowsort
SELECT - 17 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1023
61
623

query I rowsort
SELECT - col2 + - 85 AS col1 FROM tab2 AS cor0
----
-111
-112
-123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6549
SELECT + CAST( + 89 AS SIGNED ) - + col1 AS col0 FROM tab2 AS cor0
----
30
58
72

skipif mysql # not compatible
query I rowsort label-6549
SELECT + CAST ( + 89 AS INTEGER ) - + col1 AS col0 FROM tab2 AS cor0
----
30
58
72

query I rowsort
SELECT + + 11 + + 68 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT + - 72 AS col2 FROM tab2 cor0
----
-72
-72
-72

query I rowsort
SELECT - cor0.col0 * cor0.col0 + ( - col2 ) + col0 AS col1 FROM tab2 AS cor0
----
-6032
-6200
-69

query I rowsort
SELECT + 1 * col0 FROM tab2
----
7
78
79

query I rowsort
SELECT col2 * - ( 56 ) AS col1 FROM tab2 AS cor0
----
-1456
-1512
-2128

query I rowsort
SELECT + cor1.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + cor0.col1 * 30 FROM tab1 AS cor0
----
300
390
780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6557
SELECT + - col0 * CAST( - ( col0 ) AS SIGNED ) FROM tab1 cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-6557
SELECT + - col0 * CAST ( - ( col0 ) AS INTEGER ) FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col0 + - 28 AS col0 FROM tab1
----
-25
36
52

query I rowsort
SELECT col0 * 44 * col1 FROM tab2
----
202488
59092
9548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT col2 * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT 87 * + 84 + - col2 + col0 AS col1 FROM tab1 cor0
----
7257
7292
7315

query I rowsort
SELECT - 98 * - col0 FROM tab2 cor0
----
686
7644
7742

query I rowsort
SELECT - 98 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT col0 * + ( - tab0.col0 ) * - tab0.col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT - ( col1 ) * col2 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + col0 + 93 * - col0 - + 39 AS col2 FROM tab0 AS cor0
----
-2247
-3259
-8227

query I rowsort
SELECT - 75 * - col2 AS col2 FROM tab1 AS cor0
----
4050
4275
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT ALL col2 DIV - 74 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL col2 / - 74 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 53 + + 79 + col0 AS col1 FROM tab1 AS cor0
----
135
196
212

query I rowsort
SELECT 66 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT DISTINCT - tab1.col0 DIV col0 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT - tab1.col0 / col0 AS col2 FROM tab1
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT DISTINCT CAST( + col0 AS SIGNED ) * col1 - col0 FROM tab0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * col1 - col0 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT 76 DIV col0 AS col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-6575
SELECT 76 / col0 AS col0 FROM tab0
----
0
2
3

query I rowsort
SELECT DISTINCT ( - col0 ) * - col2 * col1 - + 27 FROM tab2
----
119625
51007
5832

query I rowsort
SELECT tab0.col0 + 20 AS col1 FROM tab0
----
109
44
55

query I rowsort
SELECT - ( - col0 ) + - col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - tab1.col2 + tab1.col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT col0 + + col2 + - col1 AS col1 FROM tab0
----
-29
-61
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6581
SELECT + col0 DIV - 92 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT + col0 / - 92 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * col1 - col1 AS col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT - ( col2 ) - col0 AS col0 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 36 * ( col0 ) + + 89 col0 FROM tab1 AS cor0
----
197
2393
2969

query I rowsort
SELECT + - col2 - col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6586
SELECT ALL - CAST( cor0.col2 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT 42 * - 25 + - col1 DIV col1 + - col0 * + col2 AS col1 FROM tab2
----
-1240
-3079
-4053

skipif mysql # not compatible
query I rowsort label-6587
SELECT 42 * - 25 + - col1 / col1 + - col0 * + col2 AS col1 FROM tab2
----
-1240
-3079
-4053

query I rowsort
SELECT DISTINCT - col2 + - col2 * - col2 * tab1.col2 + + col0 * + col1 FROM tab1
----
157488
185776
885680

query I rowsort
SELECT ALL + ( - col0 * - col0 ) + tab0.col0 FROM tab0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + tab2.col2 + col2 col0 FROM tab2
----
111
85
93

query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 74 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL + col0 + - col1 * ( + cor0.col0 + + col2 ) FROM tab2 AS cor0
----
-1047
-1910
-6058

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab1
----
87

query I rowsort
SELECT ALL - col1 * tab2.col1 + col0 AS col2 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT - + col2 + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-111
-163
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT - + col1 DIV + col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6597
SELECT - + col1 / + col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + - col2 * - ( cor0.col1 + cor0.col0 ) FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort
SELECT - col2 * + CAST ( + col0 AS REAL ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col0 * ( cor0.col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col2 + 61 FROM tab0 AS cor0
----
143
62
94

query I rowsort
SELECT + 53 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL 24 + + col2 FROM tab1 AS cor0
----
120
78
81

query I rowsort
SELECT col2 + - col1 * - col2 AS col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + col2 * - col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT ALL + + 33 DIV 33 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL + + 33 / 33 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT - col0 * col0 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT - col1 - ( 61 + - col2 * col0 ) FROM tab2 cor0
----
1908
2924
97

query I rowsort
SELECT col0 + + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col0 + + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT DISTINCT col1 DIV 93 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT col1 / 93 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 + ( - 54 ) FROM tab0 AS cor0
----
-136
-55
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 + - tab0.col0 col1 FROM tab0
----
-260
-71
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6615
SELECT DISTINCT 7 / + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT 7 / + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6616
SELECT ALL col2 - - col0 DIV + 21 AS col1 FROM tab2
----
27
29
41

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL col2 - - col0 / + 21 AS col1 FROM tab2
----
27
29
41

query I rowsort
SELECT DISTINCT + 45 * + col2 - + col2 FROM tab0
----
1452
3608
44

query I rowsort
SELECT DISTINCT + 24 - + col1 * + col2 AS col1 FROM tab0
----
-2814
-73
-7438

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * - col0 * col0 + col0 + + col0 * 99 col1 FROM tab2
----
-466752
-485139
357

query I rowsort
SELECT + - col0 * + col2 + cor0.col1 + ( + col0 ) FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT + + 56 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
4152
6456
65

query I rowsort
SELECT DISTINCT + + 71 FROM tab2 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 90 ) * + col0 col2 FROM tab0 cor0
----
2160
3150
8010

query I rowsort
SELECT ALL + 9 * col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT ALL + - ( - 32 ) - cor0.col2 AS col2 FROM tab1 AS cor0
----
-22
-25
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT DISTINCT + CAST( col1 AS SIGNED ) * cor0.col1 col2 FROM tab1 cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * cor0.col1 col2 FROM tab1 cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6627
SELECT ALL + CAST( col0 AS SIGNED ) + + col0 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
182
196
41

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + CAST ( col0 AS INTEGER ) + + col0 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
182
196
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6628
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 * col1 + col0 * col1 FROM tab2
----
1178
1632
8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT - + col2 DIV col1 + - cor0.col1 * + 55 + col0 * + col0 FROM tab1 cor0
----
-1423
3541
5678

skipif mysql # not compatible
query I rowsort label-6630
SELECT - + col2 / col1 + - cor0.col1 * + 55 + col0 * + col0 FROM tab1 cor0
----
-1423
3541
5678

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col2 * ( 28 ) AS col1 FROM tab2 AS cor0
----
-380
27
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6632
SELECT + ( col0 ) + - col0 * + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6632
SELECT + ( col0 ) + - col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab0, tab2 cor0
----
4

query I rowsort
SELECT DISTINCT col0 * 8 FROM tab0
----
192
280
712

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * + cor0.col1 + - ( cor0.col0 ) + + col1 FROM tab1 AS cor0
----
102
46
699

query I rowsort
SELECT + 84 * col2 + + col1 AS col0 FROM tab1
----
4562
4798
8077

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77

query I rowsort
SELECT ALL 1 * col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL 81 FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT ALL col0 * 49 DIV col2 AS col2 FROM tab0
----
1715
35
53

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL col0 * 49 / col2 AS col2 FROM tab0
----
1715
35
53

query I rowsort
SELECT - 22 AS col0 FROM tab0 cor0
----
-22
-22
-22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT ALL + ( col0 ) DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL + ( col0 ) / - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 * - col2 + - 71 AS col1 FROM tab0 AS cor0
----
-70
1018
6653

query I rowsort
SELECT - + 67 * + col2 AS col0 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT col1 * - 67 * + col1 FROM tab2
----
-19363
-233227
-64387

query I rowsort
SELECT DISTINCT - + col1 * + col1 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT + col2 + - 90 FROM tab2 AS cor0
----
-52
-63
-64

query I rowsort
SELECT DISTINCT - col1 + 49 AS col1 FROM tab0 AS cor0
----
-37
-42
-48

query I rowsort
SELECT + col1 * + ( cor0.col2 ) + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - col1 * col1 * - col0 + col2 * ( 58 * + cor0.col1 + + 6 ) AS col0 FROM tab2 cor0
----
360646
55435
60527

query I rowsort
SELECT col2 + col0 + col0 * col1 * + cor0.col0 FROM tab0 AS cor0
----
118861
49593
720982

query I rowsort
SELECT DISTINCT - + 14 + col1 * + col0 + cor0.col0 FROM tab2 AS cor0
----
1408
210
4666

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 * + 9 FROM tab1
----
-36864
-57600
-81

query I rowsort
SELECT DISTINCT ( col0 + + col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT 21 + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c327fc3b4ad0ae54e494ca2ffc18b6ae

query I rowsort
SELECT ALL tab0.col1 * - ( col1 ) + + col1 * col2 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT DISTINCT 25 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
25

query I rowsort
SELECT DISTINCT - 6 * + 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-462

query I rowsort
SELECT DISTINCT + + 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
31

query I rowsort
SELECT - col0 + - ( + col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT col1 + + col0 * + tab0.col0 - tab0.col2 * + 83 FROM tab0
----
-2077
1206
1239

query I rowsort
SELECT + col1 - 7 * - col1 FROM tab0
----
688
728
776

query I rowsort
SELECT + - col0 + 57 * col0 AS col0 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT DISTINCT - + 72 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + col2 col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT col1 + ( + 71 ) * col2 AS col1 FROM tab0 AS cor0
----
168
2429
5913

query I rowsort
SELECT col0 * 21 AS col1 FROM tab0 AS cor0
----
1869
504
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT cor0.col1 DIV + 27 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6668
SELECT cor0.col1 / + 27 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + 80 + - col2 FROM tab1 AS cor0
----
-16
23
26

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) AS col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6671
SELECT 70 + tab0.col0 DIV - col1 FROM tab0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-6671
SELECT 70 + tab0.col0 / - col1 FROM tab0
----
70
70
70

query I rowsort
SELECT + ( + col2 ) * 3 + + col0 FROM tab0 AS cor0
----
123
335
38

query I rowsort
SELECT ALL + + 2 * + col2 + col0 AS col1 FROM tab2 cor0
----
130
155
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT DISTINCT + 11 * col0 + + col0 DIV + col0 + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2544
-2882
-8335

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + 11 * col0 + + col0 / + col0 + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2544
-2882
-8335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col0 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col1 * col1 * col1 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT ALL 97 AS col2 FROM tab1
----
97
97
97

query I rowsort
SELECT DISTINCT + col2 * - 54 + + cor0.col0 * col0 * col1 FROM tab1 AS cor0
----
-2682
37882
78016

query I rowsort
SELECT ALL - col0 * + 66 + col0 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT ALL col1 - 4 * - col2 AS col2 FROM tab1 AS cor0
----
238
242
397

onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT DISTINCT + + col0 DIV - 57 col0 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + + col0 / - 57 col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL - col0 * 49 + 93 * - cor0.col0 FROM tab1 AS cor0
----
-11360
-426
-9088

query I rowsort
SELECT ALL col1 * + col1 * 82 AS col0 FROM tab0
----
606472
679042
771538

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6684
SELECT + ( + col0 ) * cor0.col1 * CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT + ( + col0 ) * cor0.col1 * CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + - 63 FROM tab2 AS cor0
----
-122
-80
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6686
SELECT ALL + 99 DIV col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL + 99 / col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT DISTINCT 39 * col1 AS col0 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT - - 10 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
303
512
91

query I rowsort
SELECT ALL + ( 17 ) * + col2 AS col1 FROM tab0 AS cor0
----
1394
17
561

query I rowsort
SELECT - 62 AS col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + 76 col1 FROM tab1
----
1976
760
988

query I rowsort
SELECT col2 * + ( 18 ) FROM tab0
----
1476
18
594

query I rowsort
SELECT - 89 + - 43 + + col2 FROM tab0 AS cor0
----
-131
-50
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 33 col2 FROM tab2 cor0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + 43 col1 FROM tab1 AS cor0
----
143
212
719

query I rowsort
SELECT DISTINCT + col1 + ( col1 ) * col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT col1 * - 82 + - col1 * - col0 FROM tab2 AS cor0
----
-2325
-236
-51

query I rowsort
SELECT DISTINCT col2 * + col1 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT + col2 * - col0 + col0 * - col1 * + col0 FROM tab2
----
-109099
-1708
-360984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6700
SELECT col0 / CAST( NULL AS SIGNED ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6700
SELECT col0 / CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 89 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT ALL - ( - 98 ) FROM tab0 AS cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 + 77 col0 FROM tab0 AS cor0
----
125
147
255

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - 52 * + 39 + col0 AS col1 FROM tab2 AS cor0
----
-1949
-1950
-2021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - 76 + - col2 * col1 FROM tab2 AS cor0
----
-1610
-722
-913

query I rowsort
SELECT DISTINCT + cor0.col2 + ( + cor0.col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - 69 * + col1 AS col0 FROM tab2 AS cor0
----
-1173
-2139
-4071

onlyif mysql # use DIV operator for integer division
query I rowsort label-6710
SELECT 68 DIV - 92 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6710
SELECT 68 / - 92 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6711
SELECT DISTINCT - ( + tab1.col0 ) DIV tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT - ( + tab1.col0 ) / tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
-6
0

query I rowsort
SELECT ALL + col0 * 56 + col2 + col2 FROM tab2 AS cor0
----
4420
446
4500

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 31 ) + col2 * 73 col1 FROM tab0 AS cor0
----
2378
42
5955

query I rowsort
SELECT ALL + cor0.col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT cor0.col0 + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6718
SELECT DISTINCT + col2 + - cor0.col1 DIV 29 AS col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT + col2 + - cor0.col1 / 29 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col1 * - col0 + col2 AS col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - ( col0 ) + 99 FROM tab0
----
10
64
75

query I rowsort
SELECT + col1 + tab0.col0 * - 8 FROM tab0
----
-106
-183
-621

query I rowsort
SELECT ALL cor0.col1 + - col0 * col1 * + 58 FROM tab2 AS cor0
----
-12555
-266857
-77877

query I rowsort
SELECT - col0 + cor0.col0 * - 63 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT ALL + col2 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col2 * col1 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL - col2 + col1 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT col2 + - cor0.col0 AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col2 * 59 AS col2 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab1, tab2 AS cor0
----
39

query I rowsort
SELECT + col2 + cor0.col1 * + cor0.col0 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6731
SELECT + col0 + CAST( col0 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-6731
SELECT + col0 + CAST ( col0 AS INTEGER ) / col1 FROM tab2 AS cor0
----
7
79
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6732
SELECT - cor0.col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT - cor0.col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6733
SELECT ALL + col0 - CAST( - 61 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-1440
-2100
-5340

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + col0 - CAST ( - 61 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 * col0 AS col1 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT col1 + col1 * - tab2.col0 FROM tab2
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + col2 col1 FROM tab0
----
-30
2
51

query I rowsort
SELECT DISTINCT + col1 * col1 + col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT + + col1 + - col0 * col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT + + col0 * 99 DIV 40 AS col2 FROM tab2 AS cor0
----
17
193
195

skipif mysql # not compatible
query I rowsort label-6740
SELECT + + col0 * 99 / 40 AS col2 FROM tab2 AS cor0
----
17
193
195

query I rowsort
SELECT DISTINCT + tab2.col0 * - ( - col1 * - col2 ) AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col0 * - col2 - + col2 * col2 * + col1 FROM tab1 AS cor0
----
-112128
-28842
-75654

query I rowsort
SELECT 43 - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 22eda4391073d5a062e8efaa6dcafe85

query I rowsort
SELECT ALL 33 - + col1 * + col1 FROM tab0
----
-7363
-8248
-9376

query I rowsort
SELECT - 27 * col2 + - col2 - col2 AS col1 FROM tab0 cor0
----
-2378
-29
-957

onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT - col1 + + col2 DIV + col1 col2 FROM tab1 AS cor0
----
-24
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6746
SELECT - col1 + + col2 / + col1 col2 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT ALL ( col1 ) * col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col2 + - cor0.col1 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-144
-72
-89

query I rowsort
SELECT - + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + - col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col2 * cor0.col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab0 cor0
----
-97

query I rowsort
SELECT + 36 * col0 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT + 97 AS col2 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT - tab0.col0 * + col1 + - col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT 29 FROM tab2, tab2 cor0
----
29

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - ( ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col1 + - col0 * col2 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col1 + - 23 FROM tab2 AS cor0
----
-6
36
8

query I rowsort
SELECT DISTINCT col1 * col2 * + col1 FROM tab1
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6763
SELECT CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

query I rowsort
SELECT ALL + 77 AS col2 FROM tab2
----
77
77
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6766
SELECT - CAST( + col0 AS SIGNED ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-6766
SELECT - CAST ( + col0 AS INTEGER ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - 87 FROM tab2, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to edb5a8bbcb3204ac8254e54507073328

onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT DISTINCT + col0 + - col2 DIV - col0 AS col2 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT + col0 + - col2 / - col0 AS col2 FROM tab1
----
21
64
81

query I rowsort
SELECT + ( + ( col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col0 + 87 * col1 FROM tab0 AS cor0
----
7506
8006
8474

query I rowsort
SELECT ALL + col2 + + 38 * col0 - - 60 FROM tab0 AS cor0
----
1005
1391
3524

query I rowsort
SELECT DISTINCT + 70 * + col0 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT ( + 31 ) * - col0 + - col2 + + col1 AS col0 FROM tab2 cor0
----
-213
-2385
-2470

query I rowsort
SELECT DISTINCT + + col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6775
SELECT - CAST( NULL AS SIGNED ) + 3 * col0 + 96 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT - CAST ( NULL AS INTEGER ) + 3 * col0 + 96 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - cor0.col2 ) + col1 * ( + cor0.col0 ) FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + 66 * col0 AS col2 FROM tab0 cor0
----
1584
2310
5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT - - 19 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6778
SELECT - - 19 / col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 20 * tab1.col1 FROM tab1
----
200
260
520

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + ( col2 ) * + 30 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - 76 + - col0 * + col0 * 28 AS col0 FROM tab2 AS cor0
----
-1296
-170276
-174672

query I rowsort
SELECT - col2 + + 61 * 86 FROM tab2 cor0
----
5208
5219
5220

query I rowsort
SELECT 94 * cor0.col0 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to fe51505b9810a540072688ce59832aa0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 65 col0 FROM tab0
----
151
156
162

query I rowsort
SELECT DISTINCT + col2 + - 23 * 56 AS col2 FROM tab1
----
-1192
-1231
-1234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - + cor0.col0 - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 - - ( col2 + + col2 * col0 ) AS col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT col0 * 61 + + col2 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
15801
26374
95264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL - + col0 + 81 FROM tab2 AS cor0
----
2
3
74

query I rowsort
SELECT ALL - col1 + + 19 AS col1 FROM tab2 AS cor0
----
-12
-40
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6795
SELECT ALL - - CAST( + 74 AS DECIMAL ) * cor0.col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - - CAST ( + 74 AS REAL ) * cor0.col2 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - cor0.col2 + col1 * 51 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-10578
3018
3687

query I rowsort
SELECT DISTINCT ( 53 ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT ALL + - 55 * + ( - col2 ) + 98 AS col2 FROM tab0 AS cor0
----
153
1913
4608

query I rowsort
SELECT + + cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - - 95 FROM tab0 cor0
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT col2 DIV - col1 + - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6801
SELECT col2 / - col1 + - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - + 73 + + 66 AS col0 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT - tab0.col2 * 32 FROM tab0
----
-1056
-2624
-32

query I rowsort
SELECT DISTINCT col0 - - col2 * - col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT col2 + + col1 - + col2 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT - tab2.col0 * 51 AS col0 FROM tab2
----
-357
-3978
-4029

query I rowsort
SELECT - + col2 * - col1 + - ( - col1 ) FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT DISTINCT - + cor0.col1 DIV ( - col1 ) + - col2 col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT - + cor0.col1 / ( - col1 ) + - col2 col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT tab0.col1 + - tab0.col2 + ( ( + tab0.col0 ) * - col0 ) AS col1 FROM tab0
----
-1129
-523
-7912

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT - - 27 DIV 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6810
SELECT - - 27 / 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + col0 * col1 col0 FROM tab1
----
-21
541
941

query I rowsort
SELECT DISTINCT + cor0.col1 + ( - ( col0 ) ) * + 50 FROM tab1 AS cor0
----
-124
-3190
-3987

query I rowsort
SELECT DISTINCT - tab0.col2 * ( - tab0.col1 ) AS col1 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT CAST( NULL AS SIGNED ) + + col0 + col1 * + ( col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT CAST ( NULL AS INTEGER ) + + col0 + col1 * + ( col1 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6815
SELECT DISTINCT CAST( NULL AS SIGNED ) + tab0.col0 * col1 + + ( tab0.col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT CAST ( NULL AS INTEGER ) + tab0.col0 * col1 + + ( tab0.col2 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + col2 - col2 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6817
SELECT DISTINCT - ( col2 ) * col0 / CAST( NULL AS SIGNED ) - + 48 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT - ( col2 ) * col0 / CAST ( NULL AS INTEGER ) - + 48 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - - 50 AS col1 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT + 14 FROM tab1, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff

query I rowsort
SELECT - 68 FROM tab1, tab0, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62

query I rowsort
SELECT - col0 + + col2 * col2 + + col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col0 * + col0 + tab1.col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - 76 * col1 + col0 FROM tab1 AS cor0
----
-1973
-696
-908

query I rowsort
SELECT ALL - + 59 * col2 FROM tab1 AS cor0
----
-3186
-3363
-5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - + 9 AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6827
SELECT 43 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6827
SELECT 43 / col0 AS col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + + 80 AS col0 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT 50 + + col0 AS col2 FROM tab2 AS cor0
----
128
129
57

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + - col0 * CAST ( 0 AS REAL ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - col0 * col0 + - 91 + - col2 * + col2 * + col2 FROM tab2 AS cor0
----
-19823
-23751
-61204

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6832
SELECT col1 * col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT col1 * col2 - - 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-6833
SELECT ALL cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 * col2 * - col2 AS col1 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT + 67 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col1 FROM tab1
----
61

query I rowsort
SELECT col0 * - col1 * 89 - + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-120173
-20150
-411112

query I rowsort
SELECT col1 * col1 + 30 * col2 FROM tab0 AS cor0
----
10741
8386
9439

query I rowsort
SELECT + col1 + 62 AS col2 FROM tab0 AS cor0
----
148
153
159

query I rowsort
SELECT col2 + 63 FROM tab1 AS cor0
----
117
120
159

query I rowsort
SELECT DISTINCT - col1 + tab1.col2 FROM tab1
----
28
47
83

query I rowsort
SELECT + - col1 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 * + 22 col2 FROM tab1 AS cor0
----
1472
1840
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT + col2 DIV CAST( + col0 AS SIGNED ) + col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-6844
SELECT + col2 / CAST ( + col0 AS INTEGER ) + col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT cor0.col1 * ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT ALL + col2 DIV col0 + + col2 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + col2 / col0 + + col2 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT ALL + - cor0.col1 * col0 + - col0 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT + ( col2 ) + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6849
SELECT DISTINCT + - col1 DIV cor0.col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT + - col1 / cor0.col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT ( + 65 ) AS col2 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT ALL ( 76 ) + cor0.col1 + col2 FROM tab1 cor0
----
143
156
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 39 col0 FROM tab2 AS cor0
----
-56
-70
-98

query I rowsort
SELECT - ( + 43 ) + col0 AS col0 FROM tab2 AS cor0
----
-36
35
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col2 FROM tab0, tab0 cor0
----
86
91
97

query I rowsort
SELECT + ( cor0.col0 ) + col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6856
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6856
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 27 + - col2 col1 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT + - col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6860
SELECT + col2 DIV + col0 + - cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2837
-7462
-97

skipif mysql # not compatible
query I rowsort label-6860
SELECT + col2 / + col0 + - cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2837
-7462
-97

query I rowsort
SELECT ALL + + col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - cor0.col1 * 93 FROM tab2 AS cor0
----
-1581
-2883
-5487

query I rowsort
SELECT - col0 * + 41 + 82 FROM tab1 AS cor0
----
-2542
-3198
-41

query I rowsort
SELECT col2 * - 56 FROM tab1 cor0
----
-3024
-3192
-5376

query I rowsort
SELECT - + 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT ALL col1 + col1 DIV col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL col1 + col1 / col0 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL + - col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL col2 + + tab2.col1 * + col1 FROM tab2
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL - ( col2 ) * col0 * - col0 FROM tab0 cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT - + col0 + col2 DIV 10 AS col0 FROM tab1 AS cor0
----
-59
-71
2

skipif mysql # not compatible
query I rowsort label-6872
SELECT - + col0 + col2 / 10 AS col0 FROM tab1 AS cor0
----
-59
-71
2

query I rowsort
SELECT DISTINCT ( - col0 * tab2.col1 ) AS col0 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * tab1.col2 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to bc829e8b8d3f763762f6e18a4d748441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 * col0 col0 FROM tab1
----
1984
2480
93

query I rowsort
SELECT 36 * tab0.col1 FROM tab0
----
3096
3276
3492

query I rowsort
SELECT cor0.col0 * col1 + 75 FROM tab2 AS cor0
----
1418
292
4677

query I rowsort
SELECT + 65 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 0d5e8d2477ad92b57b3f68ac299ad7b9

query I rowsort
SELECT ALL + - cor0.col2 * + 85 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT ALL + - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col0 * col2 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL col2 + + col1 * 87 AS col0 FROM tab0
----
7515
7999
8440

onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT - tab0.col0 + + cor1.col1 DIV ( - cor0.col1 ) AS col2 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to e08cc7afb562b848330722eebe5feb6a

skipif mysql # not compatible
query I rowsort label-6883
SELECT - tab0.col0 + + cor1.col1 / ( - cor0.col1 ) AS col2 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to e08cc7afb562b848330722eebe5feb6a

query I rowsort
SELECT ALL col1 + + 9 * + col2 + + tab1.col0 FROM tab1
----
515
587
957

query I rowsort
SELECT col1 * col1 - + col0 * - tab1.col0 FROM tab1
----
4196
6569
685

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6886
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) * - col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - - col1 + 47 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT DISTINCT col2 * 50 AS col0 FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT ALL + cor0.col2 * - 8 AS col2 FROM tab1 AS cor0
----
-432
-456
-768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 * col1 col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + - col0 + + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab0
----
99

query I rowsort
SELECT - cor0.col0 + col0 * col2 AS col2 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT col0 + - 81 FROM tab1 AS cor0
----
-1
-17
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT + + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6895
SELECT + + col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT DISTINCT - 62 + cor0.col1 DIV ( 77 ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT - 62 + cor0.col1 / ( 77 ) FROM tab2 AS cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + 49 + col2 FROM tab1 AS cor0
----
103
106
145

query I rowsort
SELECT ALL - col0 + col2 * - col2 * col2 FROM tab0 cor0
----
-35961
-36
-551457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 - + ( + col1 ) * - col2 col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT + ( col2 ) * + 47 AS col0 FROM tab2 AS cor0
----
1222
1269
1786

onlyif mysql # use DIV operator for integer division
query I rowsort label-6902
SELECT + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6902
SELECT + col2 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 + col2 * - col1 - 59 * + col2 FROM tab2 AS cor0
----
-2423
-2809
-2990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6904
SELECT ALL + CAST( + col0 AS SIGNED ) * tab2.col2 col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL + CAST ( + col0 AS INTEGER ) * tab2.col2 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + + cor0.col0 + + col2 * + ( - col2 ) FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT col0 * col2 + 12 * + cor0.col0 * - col0 FROM tab2 AS cor0
----
-399
-70980
-71890

query I rowsort
SELECT DISTINCT - + 58 AS col0 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + - col1 + - col0 * + col2 * col1 FROM tab2 AS cor0
----
-119711
-51051
-5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-6909
SELECT + - col0 DIV - col0 + + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6909
SELECT + - col0 / - col0 + + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL 69 * col0 + 46 FROM tab0 cor0
----
1702
2461
6187

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6911
SELECT ALL CAST( + 72 AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0
----
-8
69
8

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL CAST ( + 72 AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0
----
-8
69
8

query I rowsort
SELECT + col2 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + col1 col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - - cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + 96 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT - CAST ( NULL AS REAL ) - + 96 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 * ( cor0.col2 ) col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT ( col2 ) - - col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - + ( - col0 ) + + cor0.col1 * - 62 + col0 FROM tab1 AS cor0
----
-1606
-492
-646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6919
SELECT + CAST( NULL AS SIGNED ) + 27 + - tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT + CAST ( NULL AS INTEGER ) + 27 + - tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col1 - cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5db1b428328d3aeb989d83ca6ad36559

query I rowsort
SELECT DISTINCT ( ( col1 ) ) + + col1 AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT col1 + + 50 * + col0 FROM tab2
----
381
3959
3967

query I rowsort
SELECT - 47 + cor0.col1 * 74 * col2 FROM tab0 AS cor0
----
209965
552141
7131

query I rowsort
SELECT + + col0 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT 73 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT col0 DIV - col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6927
SELECT col0 / - col2 FROM tab1 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT DISTINCT col2 DIV - col0 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT col2 / - col0 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT ALL + col1 * col0 * col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT - + col2 + 7 FROM tab1 AS cor0
----
-47
-50
-89

query I rowsort
SELECT - col2 * - 79 AS col2 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT ALL + 1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - tab2.col1 col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT col2 * 0 * col2 + + col1 * ( - col1 ) AS col1 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT col1 DIV - ( col0 ) AS col2 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT col1 / - ( col0 ) AS col2 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - ( - 17 ) col0 FROM tab1 AS cor0
----
-37
-40
-79

query I rowsort
SELECT DISTINCT + col0 * + 63 FROM tab0 AS cor0
----
1512
2205
5607

query I rowsort
SELECT - + col2 * - ( col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col0 + + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT - col2 - + col0 * col2 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT ALL col1 DIV CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL col1 / CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * + 70 FROM tab1 AS cor0
----
1820
700
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6943
SELECT + col2 + CAST( - col0 * - col1 AS SIGNED ) FROM tab2
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-6943
SELECT + col2 + CAST ( - col0 * - col1 AS INTEGER ) FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - 78 col2 FROM tab0
----
-43
714
7220

query I rowsort
SELECT col1 + 27 AS col1 FROM tab0
----
113
118
124

query I rowsort
SELECT DISTINCT cor0.col1 * - col2 - cor0.col1 * col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT ALL - col2 + - 17 * - cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
103402
106059
806

query I rowsort
SELECT ALL 21 + ( - tab1.col0 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5efacd2b73414c7d0520f181198ecfee

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 21 * - col0 col0 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT 25 + 17 - - col0 FROM tab2 AS cor0
----
120
121
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT - + col1 + col1 DIV cor0.col2 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-6951
SELECT - + col1 + col1 / cor0.col2 FROM tab0 AS cor0
----
-84
-90
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT - cor1.col0 DIV + 34 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7dbafad0d77419042fdc623aceee0eb

skipif mysql # not compatible
query I rowsort label-6952
SELECT - cor1.col0 / + 34 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7dbafad0d77419042fdc623aceee0eb

query I rowsort
SELECT + - 56 AS col1 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + 45 + col2 AS col0 FROM tab0 AS cor0
----
127
46
78

query I rowsort
SELECT DISTINCT - - col2 + + col1 * 14 FROM tab2 AS cor0
----
276
461
852

query I rowsort
SELECT ALL 35 + - col2 FROM tab2 AS cor0
----
-3
8
9

query I rowsort
SELECT ALL + + col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - 35 * + col1 - - ( 84 * col1 ) FROM tab0 AS cor0
----
4214
4459
4753

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT ALL 92 + col2 DIV col0 col2 FROM tab2 AS cor0
----
92
92
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL 92 + col2 / col0 col2 FROM tab2 AS cor0
----
92
92
95

query I rowsort
SELECT - col0 * + col2 + 97 FROM tab1 cor0
----
-3551
-65
-7583

query I rowsort
SELECT ALL - ( col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT cor0.col0 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT ALL - - cor0.col0 DIV - cor0.col2 + col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL - - cor0.col0 / - cor0.col2 + col2 FROM tab1 AS cor0
----
54
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT - col2 DIV - col1 + - cor0.col0 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-6964
SELECT - col2 / - col1 + - cor0.col0 FROM tab1 AS cor0
----
-1
-59
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT ALL + - col2 * - col0 + col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
189
2029
3006

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL + - col2 * - col0 + col0 / + col1 AS col1 FROM tab2 AS cor0
----
189
2029
3006

query I rowsort
SELECT DISTINCT - - 26 * col1 AS col1 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT + + 26 * + 41 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c6e619183905bc5f940c66e4366d756f

query I rowsort
SELECT 52 * tab1.col0 AS col2 FROM tab1
----
156
3328
4160

query I rowsort
SELECT + 84 * - col2 + tab1.col1 - 19 FROM tab1
----
-4529
-4797
-8070

onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT col0 DIV col0 + + col0 * 70 DIV col1 col1 FROM tab0
----
20
26
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6970
SELECT col0 / col0 + + col0 * 70 / col1 col1 FROM tab0
----
20
26
69

query I rowsort
SELECT DISTINCT - 39 * tab2.col1 * col2 FROM tab2
----
-25194
-32643
-59826

query I rowsort
SELECT ALL - col1 * + tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * - cor0.col1 - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - 34 FROM tab0, tab2 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + 5 * + col2 + col0 * - 30 + col1 FROM tab2
----
-2151
-2163
-44

query I rowsort
SELECT + ( col2 ) + col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - + 0 + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col2 * col0 + - col0 * col0 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT DISTINCT - 70 + - col0 * - cor0.col1 AS col0 FROM tab1 cor0
----
570
8
970

query I rowsort
SELECT ALL + 72 + + col2 AS col0 FROM tab2 AS cor0
----
110
98
99

query I rowsort
SELECT ALL col2 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + col2 * col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - cor0.col0 * + col2 + 51 + 32 AS col2 FROM tab0 AS cor0
----
-709
-7215
48

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - + 70 + col1 * ( ( + col2 ) * + cor0.col2 ) + col1 FROM tab2 AS cor0
----
22560
24495
39873

query I rowsort
SELECT - col2 + - 75 AS col0 FROM tab0 AS cor0
----
-108
-157
-76

query I rowsort
SELECT + col2 * col2 - + col2 FROM tab1
----
2862
3192
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - - col2 * + 79 AS col0 FROM tab2 AS cor0
----
2054
2133
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT + col1 + CAST( 16 AS SIGNED ) FROM tab2 AS cor0
----
33
47
75

skipif mysql # not compatible
query I rowsort label-6990
SELECT + col1 + CAST ( 16 AS INTEGER ) FROM tab2 AS cor0
----
33
47
75

query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 * col2 * col2 FROM tab0 AS cor0
----
-3394
33873
543269

query I rowsort
SELECT - 52 - + col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1092
-130
-692

query I rowsort
SELECT + col0 * - 81 + col2 * col0 * - col0 FROM tab0 AS cor0
----
-20952
-4060
-656731

query I rowsort
SELECT col0 + 51 * col0 * ( - col2 ) FROM tab0 AS cor0
----
-1750
-372109
-40368

query I rowsort
SELECT DISTINCT 31 * col2 + col2 AS col0 FROM tab2 AS cor0
----
1216
832
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT col2 DIV col0 - + col2 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-6996
SELECT col2 / col0 - + col2 FROM tab1 AS cor0
----
-36
-57
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT col1 DIV + 25 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6997
SELECT col1 / + 25 FROM tab0
----
3
3
3

query I rowsort
SELECT 8 * - 77 FROM tab0 AS cor0
----
-616
-616
-616

query I rowsort
SELECT ALL + 94 - + 33 FROM tab2 AS cor0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 2 + 83 * + col2 * 6 col0 FROM tab1 AS cor0
----
26894
28388
47810

query I rowsort
SELECT ALL - 93 + + col2 FROM tab2 AS cor0
----
-55
-66
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT DISTINCT cor0.col0 DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT cor0.col0 / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( + 88 ) FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT ALL + col1 + - 39 * + col1 * + col0 FROM tab0 AS cor0
----
-132308
-315770
-80410

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col2 AS REAL ) * cor0.col0 - - col1 / - 46 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + - cor0.col1 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + - col2 + - ( - col1 ) * - col1 * + col2 FROM tab2 AS cor0
----
-11020
-25974
-90532

query I rowsort
SELECT DISTINCT - cor0.col2 + - 10 FROM tab2 AS cor0
----
-36
-37
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7009
SELECT - - CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7009
SELECT - - CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7010
SELECT DISTINCT 73 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT 73 / - col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL 83 + + col1 FROM tab0 AS cor0
----
169
174
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7012
SELECT + - 49 DIV + col1 + col1 * col1 AS col0 FROM tab2 AS cor0
----
287
3481
960

skipif mysql # not compatible
query I rowsort label-7012
SELECT + - 49 / + col1 + col1 * col1 AS col0 FROM tab2 AS cor0
----
287
3481
960

query I rowsort
SELECT ( 99 ) AS col2 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT ALL + col0 + + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7015
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + col2 / col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + col2 / col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 14 * col1 FROM tab0 cor0
----
1204
1274
1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT ALL + ( + col0 ) DIV + col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + ( + col0 ) / + col1 FROM tab2 cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7018
SELECT DISTINCT + cor0.col1 DIV col1 + col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT + cor0.col1 / col1 + col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + col0 + + 57 AS col0 FROM tab1 AS cor0
----
121
137
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * - cor0.col0 col1 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT 95 AS col0 FROM tab0, tab0 cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

query I rowsort
SELECT ALL ( cor0.col2 ) * + cor0.col1 + col2 * col0 AS col1 FROM tab0 cor0
----
132
14760
3630

query I rowsort
SELECT 42 + cor0.col2 FROM tab1 AS cor0
----
138
96
99

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * - col2 * - col0 FROM tab0 AS cor0
----
26169
36
598518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT ALL 47 DIV col2 + tab0.col0 FROM tab0
----
25
82
89

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL 47 / col2 + tab0.col0 FROM tab0
----
25
82
89

query I rowsort
SELECT ALL - col1 + - ( + 37 ) FROM tab0 AS cor0
----
-123
-128
-134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT DISTINCT col2 + ( + 30 ) AS col2 FROM tab2 AS cor0
----
56
57
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-7030
SELECT DISTINCT + 99 + - col2 + ( col0 ) DIV col1 AS col2 FROM tab1
----
45
48
9

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT + 99 + - col2 + ( col0 ) / col1 AS col2 FROM tab1
----
45
48
9

query I rowsort
SELECT ALL + col0 * + 37 AS col1 FROM tab2
----
259
2886
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7032
SELECT CAST( NULL AS SIGNED ) * 54 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7032
SELECT CAST ( NULL AS INTEGER ) * 54 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT - col1 DIV 85 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT - col1 / 85 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + col2 * - tab0.col2 AS col0 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT - col0 * 40 + col1 * + col2 FROM tab0
----
-1303
1878
3902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + - col2 col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + col2 * col0 + ( - 37 ) FROM tab0 AS cor0
----
-2
7261
755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 94 * - cor0.col2 + 15 AS col0 FROM tab0 AS cor0
----
-3087
-7693
-79

query I rowsort
SELECT DISTINCT - + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 55 - - col0 AS col2 FROM tab1 cor0
----
-52
25
9

query I rowsort
SELECT DISTINCT + - col2 * col1 + col2 + col1 AS col2 FROM tab0 AS cor0
----
-2719
-7289
1

query I rowsort
SELECT ALL - col0 + + col1 + + col1 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT - - col2 * + col2 + - ( col2 ) * - ( col0 ) - col1 FROM tab2 AS cor0
----
2645
4429
887

query I rowsort
SELECT - col1 + 75 AS col0 FROM tab0 AS cor0
----
-11
-16
-22

query I rowsort
SELECT + - col1 - col2 AS col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * - cor0.col1 AS col0 FROM tab0, tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 * + 88 AS col1 FROM tab2 AS cor0
----
616
6864
6952

onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT ALL col1 DIV + col0 + 66 FROM tab1
----
66
66
74

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL col1 / + col0 + 66 FROM tab1
----
66
66
74

query I rowsort
SELECT DISTINCT - + 22 + 23 * - cor0.col1 FROM tab1 AS cor0
----
-252
-321
-620

query I rowsort
SELECT ALL - + ( col0 ) + cor0.col1 * - 85 * + col1 AS col1 FROM tab2 AS cor0
----
-24644
-295963
-81692

query I rowsort
SELECT ALL - + col2 * - cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + + ( - col0 ) + + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + ( - col2 ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + ( 5 ) FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT - ( 36 ) AS col1 FROM tab0 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( cor0.col1 ) * col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ( - col0 ) * col0 AS col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - + col2 + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7063
SELECT DISTINCT - col2 + cor0.col0 * ( col0 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - col2 + cor0.col0 * ( col0 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * - ( + col1 ) + - col0 AS col0 FROM tab2
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7065
SELECT DISTINCT + col1 + ( col2 ) * col1 + - CAST( col1 AS SIGNED ) * - col2 col0 FROM tab1
----
1150
2509
2834

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT + col1 + ( col2 ) * col1 + - CAST ( col1 AS INTEGER ) * - col2 col0 FROM tab1
----
1150
2509
2834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( col2 ) + + col2 + + col1 col1 FROM tab0
----
-2719
-7289
1

query I rowsort
SELECT cor0.col0 * 68 FROM tab1 AS cor0
----
204
4352
5440

onlyif mysql # use DIV o