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 cor0.col0 + - ( 45 ) FROM tab1 AS cor0
----
-42
19
35

query I rowsort
SELECT DISTINCT + col0 * col2 + 97 * + col0 FROM tab2 AS cor0
----
10665
868
9594

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

query I rowsort
SELECT ALL - cor0.col1 * - 84 AS col2 FROM tab1 cor0
----
1092
2184
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT ALL + col2 DIV - 16 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + col2 / - 16 FROM tab0 AS cor0
----
-2
-5
0

query I rowsort
SELECT DISTINCT 1 - + 30 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-29

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

query I rowsort
SELECT ALL col1 - 60 FROM tab1
----
-34
-47
-50

query I rowsort
SELECT ALL + col1 + - col2 * + col2 AS col0 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL col0 * + ( - tab2.col2 ) * + col1 - col1 AS col2 FROM tab2
----
-119711
-51051
-5890

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

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * 46 * col0 FROM tab2 cor0
----
211614
61699
9975

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT DISTINCT cor0.col1 DIV ( - col2 + + col2 * 83 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT cor0.col1 / ( - col2 + + col2 * 83 ) FROM tab1 cor0
----
0

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

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

query I rowsort
SELECT 1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

query I rowsort
SELECT ALL + 19 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT + - col2 * + 75 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT 44 * 95 FROM tab2 AS cor0
----
4180
4180
4180

query I rowsort
SELECT DISTINCT ( + col0 + 85 ) * col2 FROM tab2
----
2484
4238
6232

query I rowsort
SELECT DISTINCT + - 40 * col0 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-4503
-497
-7722

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 11 * - col2 col1 FROM tab0 cor0
----
-11
-363
-902

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - 4 col0 FROM tab1 AS cor0
----
-100
-58
-61

query I rowsort
SELECT + col1 * 94 + - col2 FROM tab0 AS cor0
----
8051
8472
9117

query I rowsort
SELECT ALL col2 + 51 FROM tab1 AS cor0
----
105
108
147

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

query I rowsort
SELECT DISTINCT + + col0 + + 44 * - col2 FROM tab0 AS cor0
----
-1428
-3519
-9

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

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

query I rowsort
SELECT + col1 * + col1 * 65 AS col1 FROM tab0
----
480740
538265
611585

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 43 col0 FROM tab0 AS cor0
----
-1032
-1505
-3827

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

query I rowsort
SELECT ALL 64 * tab0.col0 FROM tab0
----
1536
2240
5696

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * + col2 col0 FROM tab2 AS cor0
----
-1406
-962
-999

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

query I rowsort
SELECT - 28 + - 60 * cor0.col0 FROM tab0 AS cor0
----
-1468
-2128
-5368

query I rowsort
SELECT - 88 * + col2 AS col1 FROM tab1 cor0
----
-4752
-5016
-8448

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

query I rowsort
SELECT ALL 44 - + col0 FROM tab0 AS cor0
----
-45
20
9

query I rowsort
SELECT ALL 5 + col0 AS col1 FROM tab0 AS cor0
----
29
40
94

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

query I rowsort
SELECT tab2.col2 * + 29 * - col1 FROM tab2
----
-18734
-24273
-44486

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

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

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

query I rowsort
SELECT col2 + 75 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT + col1 * + ( 96 ) FROM tab2 AS cor0
----
1632
2976
5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-57
SELECT - - col2 DIV + 34 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-57
SELECT - - col2 / + 34 FROM tab2 AS cor0
----
0
0
1

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT + col1 DIV ( 20 ) FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-61
SELECT + col1 / ( 20 ) FROM tab2
----
0
1
2

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

query I rowsort
SELECT + 50 + - cor0.col1 FROM tab0 cor0
----
-36
-41
-47

query I rowsort
SELECT col2 * ( col1 ) + col1 + col2 FROM tab2
----
1619
701
895

onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT DISTINCT + col0 + - col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT + col0 + - col0 / - col1 AS col2 FROM tab2 AS cor0
----
7
79
83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( cor0.col2 ) OR - col2 IN ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

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

query I rowsort
SELECT DISTINCT col2 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col1 + col2 + tab0.col0 * - col1 AS col0 FROM tab0
----
-1945
-3297
-7926

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

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

query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 - + col1 FROM tab1
----
-242
-3715
-7789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + col2 * - col1 + col2 col0 FROM tab2
----
-1449
-591
-779

query I rowsort
SELECT + col0 + tab0.col2 - col1 AS col0 FROM tab0
----
-29
-61
80

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

query I rowsort
SELECT DISTINCT col0 * col2 - col0 AS col2 FROM tab0
----
0
7209
768

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

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

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT - + col1 / + col0 - + col2 AS col1 FROM tab1 AS cor0
----
-57
-62
-96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 + - col1 * - col2 ) col0 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-90
SELECT + col0 - + col0 DIV tab1.col2 col1 FROM tab1
----
3
63
80

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

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

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

query I rowsort
SELECT col0 * + col0 + - tab0.col1 FROM tab0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT - tab0.col0 - + col1 DIV col2 FROM tab0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-94
SELECT - tab0.col0 - + col1 / col2 FROM tab0
----
-132
-26
-90

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

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

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + col0 / + col0 AS col2 FROM tab2
----
1
1
1

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col1 * col2 * col1 + + 8 FROM tab2
----
10990
25955
90514

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-104
SELECT - 65 * col1 DIV - ( + col2 + col2 ) AS col0 FROM tab1 AS cor0
----
15
4
5

skipif mysql # not compatible
query I rowsort label-104
SELECT - 65 * col1 / - ( + col2 + col2 ) AS col0 FROM tab1 AS cor0
----
15
4
5

query I rowsort
SELECT DISTINCT + + 96 * cor0.col2 AS col1 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT ALL - 88 FROM tab2 AS cor0
----
-88
-88
-88

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-109
SELECT col0 + - col2 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-109
SELECT col0 + - col2 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
81

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

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

query I rowsort
SELECT - 8 + col1 - col1 FROM tab1
----
-8
-8
-8

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

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

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

query I rowsort
SELECT cor0.col0 * col1 + col2 * + 83 FROM tab0 AS cor0
----
14905
3478
4803

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

query I rowsort
SELECT 11 * cor0.col0 + 35 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b2ba1741cd923565a31fa389c3d52e78

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

query I rowsort
SELECT DISTINCT + 82 * + col2 + + cor0.col1 FROM tab1 cor0
----
4454
4684
7885

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

query I rowsort
SELECT - 14 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-1120
-42
-896

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

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

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

query I rowsort
SELECT DISTINCT + col0 * ( - col2 * + ( + 7 ) + + tab1.col0 ) AS col0 FROM tab1
----
-1125
-21440
-47360

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

query I rowsort
SELECT DISTINCT + 31 * - col1 AS col1 FROM tab1 AS cor0
----
-310
-403
-806

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * + 19 AS col2 FROM tab2 AS cor0
----
1121
323
589

onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT ALL + ( - tab1.col2 ) DIV - col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + ( - tab1.col2 ) / - col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT + 58 + col2 AS col0 FROM tab1
----
112
115
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col1 FROM tab2
----
-26
-27
-38

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

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

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

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

skipif mysql # not compatible
query I rowsort label-133
SELECT - - 9 * + col2 + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
432
456
768

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0, tab1 AS cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

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

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

query I rowsort
SELECT ALL 89 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT ALL + 3 * col2 * 45 FROM tab2 AS cor0
----
3510
3645
5130

query I rowsort
SELECT col2 + 49 * + col0 FROM tab2
----
370
3848
3909

query I rowsort
SELECT ALL tab1.col1 + - 87 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 6d368dfa953cca81a35b361d177fd95c

query I rowsort
SELECT ALL col1 + + 93 AS col1 FROM tab0
----
179
184
190

query I rowsort
SELECT - col0 + - 79 AS col1 FROM tab0
----
-103
-114
-168

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

query I rowsort
SELECT 20 + 5 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT ALL - col2 * - col2 + + col0 * - col0 AS col1 FROM tab1
----
-847
2816
2907

query I rowsort
SELECT DISTINCT - + col0 * 29 - 57 AS col1 FROM tab2 AS cor0
----
-2319
-2348
-260

query I rowsort
SELECT ALL + col1 * 54 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT DISTINCT col0 + 19 * - 2 FROM tab1
----
-35
26
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 99 col1 FROM tab0
----
100
132
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 95 col0 FROM tab0
----
128
177
96

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-152
SELECT ALL + CAST( col2 AS SIGNED ) DIV - cor0.col1 - + CAST( 72 * + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1872
-1944
-2738

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL + CAST ( col2 AS INTEGER ) / - cor0.col1 - + CAST ( 72 * + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1872
-1944
-2738

query I rowsort
SELECT - 65 * 63 FROM tab2 AS cor0
----
-4095
-4095
-4095

query I rowsort
SELECT DISTINCT - 10 * + col1 - - col0 AS col2 FROM tab0 AS cor0
----
-821
-836
-935

query I rowsort
SELECT DISTINCT - 98 * col1 FROM tab0 AS cor0
----
-8428
-8918
-9506

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

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

query I rowsort
SELECT ALL 50 + 69 AS col0 FROM tab1 AS cor0
----
119
119
119

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

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

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

query I rowsort
SELECT col2 * 48 + + cor0.col1 FROM tab1 AS cor0
----
2618
2746
4621

query I rowsort
SELECT DISTINCT + - cor0.col2 + - 91 * col2 AS col2 FROM tab0 AS cor0
----
-3036
-7544
-92

query I rowsort
SELECT ALL 74 * 47 + - col2 AS col0 FROM tab0 cor0
----
3396
3445
3477

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL - 83 DIV col0 FROM tab1 AS cor0
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - 83 / col0 FROM tab1 AS cor0
----
-1
-1
-27

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

query I rowsort
SELECT + 13 * + col0 + col1 FROM tab0 AS cor0
----
1248
398
552

query I rowsort
SELECT + 47 + col1 AS col2 FROM tab2 AS cor0
----
106
64
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-170
SELECT 37 DIV 34 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-170
SELECT 37 / 34 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

query I rowsort
SELECT ALL - cor0.col2 * - 86 AS col2 FROM tab2 AS cor0
----
2236
2322
3268

onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT DISTINCT col1 + 85 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
18
43
60

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT col1 + 85 / cor0.col0 AS col2 FROM tab2 AS cor0
----
18
43
60

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

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

query I rowsort
SELECT 57 * col2 * col0 AS col0 FROM tab2
----
10773
115596
171114

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 26 + col0 AS col2 FROM tab1
----
-23
38
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT - col0 + - col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-182
SELECT - col0 + - col1 / + col0 AS col1 FROM tab0 AS cor0
----
-27
-37
-90

query I rowsort
SELECT ALL - ( + col2 ) * 70 AS col2 FROM tab2
----
-1820
-1890
-2660

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

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

query I rowsort
SELECT ALL + col0 * 81 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
158
234
518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - ( col1 + col1 ) col2 FROM tab0 AS cor0
----
-258
-273
-291

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 16 col1 FROM tab0 AS cor0
----
1424
384
560

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

query I rowsort
SELECT + col2 * 92 * + 76 + - col1 * - ( 80 ) AS col1 FROM tab0
----
14752
237616
580624

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

query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 - - 77 FROM tab0 AS cor0
----
1302
653
7998

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 + + CAST ( 68 AS REAL ) FROM tab1 AS cor0
----
42
55
58

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

query I rowsort
SELECT DISTINCT 58 * - 61 AS col0 FROM tab0 AS cor0
----
-3538

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

query I rowsort
SELECT ALL - col2 + - 2 AS col1 FROM tab1 AS cor0
----
-56
-59
-98

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT col0 * col0 - 50 AS col1 FROM tab1
----
-41
4046
6350

query I rowsort
SELECT col0 + 88 * col1 FROM tab2
----
1575
2735
5270

query I rowsort
SELECT + col0 * 55 FROM tab0 AS cor0
----
1320
1925
4895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-208
SELECT ALL CAST( + 65 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
195
4160
5200

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL CAST ( + 65 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT DISTINCT + col2 + + 18 * - col0 AS col0 FROM tab1 AS cor0
----
-1095
-1344
0

query I rowsort
SELECT - - 67 + col2 + col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1627
751
931

onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT col1 + - cor0.col0 + + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
3
64
65

skipif mysql # not compatible
query I rowsort label-211
SELECT col1 + - cor0.col0 + + col1 / + col0 AS col1 FROM tab0 AS cor0
----
3
64
65

query I rowsort
SELECT - 56 * col1 AS col2 FROM tab2 AS cor0
----
-1736
-3304
-952

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-214
SELECT DISTINCT - 80 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-26

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - 80 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-26

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

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

query I rowsort
SELECT DISTINCT ( 27 ) AS col0 FROM tab1
----
27

query I rowsort
SELECT ALL 25 * col0 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT ALL col1 * col0 + col2 + col1 * col1 FROM tab2 AS cor0
----
1205
1670
8109

query I rowsort
SELECT ALL col0 * + col0 + - 87 * + col0 * - col2 FROM tab0 cor0
----
4270
642847
69480

query I rowsort
SELECT - - 76 * col2 FROM tab2 AS cor0
----
1976
2052
2888

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

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

query I rowsort
SELECT DISTINCT - 27 * col0 AS col2 FROM tab1 AS cor0
----
-1728
-2160
-81

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

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

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

query I rowsort
SELECT ALL + 5 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1
----
47

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

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

query I rowsort
SELECT DISTINCT col1 * ( - col1 * col1 + col1 ) AS col2 FROM tab2 AS cor0
----
-201898
-28830
-4624

query I rowsort
SELECT ALL col0 + - cor0.col0 * col0 * col2 AS col2 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT + col0 * + 84 AS col2 FROM tab1 AS cor0
----
252
5376
6720

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

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

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

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

query I rowsort
SELECT - col2 + + 49 AS col0 FROM tab2
----
11
22
23

query I rowsort
SELECT ALL ( 97 ) FROM tab2
----
97
97
97

query I rowsort
SELECT - 88 * tab0.col0 + col0 FROM tab0
----
-2088
-3045
-7743

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

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

query I rowsort
SELECT ALL tab1.col0 * + tab1.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT DISTINCT col2 * col1 * + tab2.col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + 46 FROM tab1
----
46

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) + 2 + col2 FROM tab0 AS cor0
----
166
4
68

query I rowsort
SELECT ALL + + 77 * + col1 + - col2 FROM tab2 AS cor0
----
1271
2360
4517

query I rowsort
SELECT DISTINCT - 71 * + cor0.col0 - - col0 AS col0 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT - 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT ALL - 99 - 72 FROM tab0, tab2 AS cor0
----
9 values hashing to ad8add07a4cb530ffd116e49478a3345

onlyif mysql # use DIV operator for integer division
query I rowsort label-254
SELECT col0 + 16 DIV 14 AS col2 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-254
SELECT col0 + 16 / 14 AS col2 FROM tab0
----
25
36
90

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

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

query I rowsort
SELECT - - col0 + + 93 * - cor0.col2 FROM tab1 AS cor0
----
-5019
-5237
-8848

query I rowsort
SELECT + + cor0.col0 * - col2 - - 96 AS col0 FROM tab0 AS cor0
----
-696
-7202
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT DISTINCT + col0 + - col0 DIV 28 FROM tab1 cor0
----
3
62
78

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT + col0 + - col0 / 28 FROM tab1 cor0
----
3
62
78

query I rowsort
SELECT ALL col2 * 99 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
2890
5105
7176

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * 78 AS col2 FROM tab1 AS cor0
----
4212
4446
7488

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

skipif mysql # not compatible
query I rowsort label-264
SELECT + col1 / 45 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - cor0.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-266
SELECT - CAST( - 50 AS SIGNED ) AS col1 FROM tab1 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-266
SELECT - CAST ( - 50 AS INTEGER ) AS col1 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT ALL + + 64 * - 69 + col0 * cor0.col1 AS col2 FROM tab0 cor0
----
-1021
-2352
3683

query I rowsort
SELECT DISTINCT + + ( + col1 ) * cor0.col0 * ( col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
36423
4158
99744

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

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

query I rowsort
SELECT ALL - 30 + col0 * - col0 * 34 + col0 * - col0 AS col0 FROM tab0 cor0
----
-20190
-277265
-42905

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * + col1 + + col0 col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - + 79 * cor0.col0 FROM tab0 cor0
----
-1896
-2765
-7031

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

query I rowsort
SELECT ALL - 45 FROM tab1, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

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

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

query I rowsort
SELECT + cor0.col1 * 99 FROM tab2 cor0
----
1683
3069
5841

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

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

skipif mysql # not compatible
query I rowsort label-283
SELECT - - CAST ( + col2 AS INTEGER ) * + col2 * + 46 AS col0 FROM tab0 AS cor0
----
309304
46
50094

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

query I rowsort
SELECT - + ( cor0.col0 ) * 22 * col1 AS col1 FROM tab0 AS cor0
----
-178178
-45408
-74690

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

query I rowsort
SELECT 96 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

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

query I rowsort
SELECT ALL col1 * + 47 * - 97 FROM tab2 AS cor0
----
-141329
-268981
-77503

query I rowsort
SELECT - col1 * 37 AS col2 FROM tab1 AS cor0
----
-370
-481
-962

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

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

query I rowsort
SELECT - col2 * 31 FROM tab0
----
-1023
-2542
-31

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

query I rowsort
SELECT DISTINCT - col1 * 97 FROM tab1
----
-1261
-2522
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT - col1 * - col1 - col0 DIV + col0 AS col2 FROM tab2 cor0
----
288
3480
960

skipif mysql # not compatible
query I rowsort label-296
SELECT - col1 * - col1 - col0 / + col0 AS col2 FROM tab2 cor0
----
288
3480
960

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT + + 53 DIV col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-298
SELECT + + 53 / col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL - 70 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

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

skipif mysql # not compatible
query I rowsort label-300
SELECT + CAST ( 56 AS INTEGER ) FROM tab2
----
56
56
56

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

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

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

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

query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab1
----
350
455
910

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

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

query I rowsort
SELECT - 85 * col1 FROM tab2 AS cor0
----
-1445
-2635
-5015

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

query I rowsort
SELECT DISTINCT - 32 * + tab2.col1 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
-1888
-544
-992

query I rowsort
SELECT ALL 2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

query I rowsort
SELECT 73 * + cor0.col2 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 002630da49ac350db0d1b81a54263c8a

query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) FROM tab1
----
10
13
26

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

query I rowsort
SELECT + cor0.col0 + 44 FROM tab1 AS cor0
----
108
124
47

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

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

query I rowsort
SELECT ALL 74 AS col2 FROM tab1
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT DISTINCT 83 + + 3 DIV tab2.col0 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT 83 + + 3 / tab2.col0 FROM tab2
----
83

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

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

query I rowsort
SELECT ALL + col1 + 59 FROM tab1
----
69
72
85

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

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

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

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

query I rowsort
SELECT ALL + col0 * col2 + + col2 + col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT DISTINCT - col1 + + col2 * 32 FROM tab1 AS cor0
----
1702
1814
3059

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col1 * + col1 + - 60 col2 FROM tab0 AS cor0
----
-636116
-753631
-912733

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-331
SELECT col1 DIV cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-331
SELECT col1 / cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT ALL + 91 * + col1 AS col1 FROM tab0 cor0
----
7826
8281
8827

query I rowsort
SELECT - 56 + - col1 FROM tab2 cor0
----
-115
-73
-87

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

query I rowsort
SELECT ALL - 96 * col1 FROM tab2 AS cor0
----
-1632
-2976
-5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT DISTINCT - col2 * - 55 * + col2 - - col2 DIV col2 FROM tab0
----
369821
56
59896

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT - col2 * - 55 * + col2 - - col2 / col2 FROM tab0
----
369821
56
59896

onlyif mysql # use DIV operator for integer division
query I rowsort label-337
SELECT col2 + + col1 DIV 37 - + col1 * 59 AS col1 FROM tab2 AS cor0
----
-1802
-3454
-965

skipif mysql # not compatible
query I rowsort label-337
SELECT col2 + + col1 / 37 - + col1 * 59 AS col1 FROM tab2 AS cor0
----
-1802
-3454
-965

onlyif mysql # use DIV operator for integer division
query I rowsort label-338
SELECT - + col0 + + 26 DIV - col1 FROM tab2 AS cor0
----
-7
-78
-80

skipif mysql # not compatible
query I rowsort label-338
SELECT - + col0 + + 26 / - col1 FROM tab2 AS cor0
----
-7
-78
-80

query I rowsort
SELECT DISTINCT + col0 + + col2 - - col2 AS col1 FROM tab2
----
130
155
61

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

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

query I rowsort
SELECT col1 * + cor0.col0 * - col0 AS col0 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col0 - - 19 * col0 AS col0 FROM tab1 AS cor0
----
1152
1440
54

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT DISTINCT - col2 + + 48 DIV + 73 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - col2 + + 48 / + 73 FROM tab2 AS cor0
----
-26
-27
-38

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

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

query I rowsort
SELECT - col2 * col1 - 58 FROM tab2 AS cor0
----
-1592
-704
-895

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

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

query I rowsort
SELECT + cor0.col2 * col0 - + ( + col1 ) * + col1 * col1 AS col0 FROM tab0 AS cor0
----
-635264
-746273
-912638

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

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

query I rowsort
SELECT 75 + col2 * - col1 FROM tab0 AS cor0
----
-22
-2763
-7387

query I rowsort
SELECT 33 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

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

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

query I rowsort
SELECT ALL + + cor0.col2 + 22 AS col0 FROM tab1 AS cor0
----
118
76
79

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

query I rowsort
SELECT ALL cor0.col1 + 90 FROM tab2 AS cor0
----
107
121
149

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-359
SELECT ALL + col2 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL + col2 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + + col1 + + 19 AS col1 FROM tab2 AS cor0
----
36
50
78

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT DISTINCT col1 + col2 DIV + ( - cor0.col1 + + ( col2 ) ) FROM tab2 AS cor0
----
18
25
59

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT col1 + col2 / + ( - cor0.col1 + + ( col2 ) ) FROM tab2 AS cor0
----
18
25
59

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 + col1 col2 FROM tab2
----
-15
-29
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT ALL ( col0 * ( col0 ) ) + - col0 * ( col1 ) DIV col1 AS col2 FROM tab0
----
1190
552
7832

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL ( col0 * ( col0 ) ) + - col0 * ( col1 ) / col1 AS col2 FROM tab0
----
1190
552
7832

query I rowsort
SELECT + 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL + col2 + cor0.col0 * + col0 * - col0 FROM tab2 AS cor0
----
-316
-474526
-493001

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

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

query I rowsort
SELECT ALL + ( + cor0.col2 ) * + 36 + col1 + + col1 FROM tab1 AS cor0
----
1996
2072
3482

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

query I rowsort
SELECT - col1 + col2 + - ( - col0 ) * col0 FROM tab0
----
1129
523
7912

query I rowsort
SELECT DISTINCT + 71 + col0 AS col1 FROM tab0
----
106
160
95

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

query I rowsort
SELECT DISTINCT col2 + + col1 + + ( 10 ) FROM tab2 AS cor0
----
65
68
95

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

query I rowsort
SELECT + 33 + col1 AS col1 FROM tab1 AS cor0
----
43
46
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * - 84 col1 FROM tab1 AS cor0
----
-198
-5319
-6624

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

query I rowsort
SELECT - 98 * 0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
94

query I rowsort
SELECT DISTINCT + + 51 * col0 + + col1 * col2 + - col1 AS col1 FROM tab2 cor0
----
1163
4658
5453

query I rowsort
SELECT + col1 * col0 - + ( col0 * - col2 + 34 ) AS col0 FROM tab1 AS cor0
----
206
4254
8686

query I rowsort
SELECT - + col0 * cor0.col0 - + ( + col2 + col2 ) FROM tab0 AS cor0
----
-1227
-642
-8085

onlyif mysql # use DIV operator for integer division
query I rowsort label-389
SELECT col1 DIV col2 + + ( 90 ) * col1 * - col1 FROM tab0 cor0
----
-665638
-745289
-846713

skipif mysql # not compatible
query I rowsort label-389
SELECT col1 / col2 + + ( 90 ) * col1 * - col1 FROM tab0 cor0
----
-665638
-745289
-846713

onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT - 8 * col0 DIV + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
-2
-2
-7

skipif mysql # not compatible
query I rowsort label-390
SELECT - 8 * col0 / + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
-2
-2
-7

query I rowsort
SELECT ALL - tab2.col2 * 76 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to fbaf2b0c9ba1e39ead998418883bcc85

query I rowsort
SELECT DISTINCT - 20 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
66
71
77

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

query I rowsort
SELECT cor0.col1 * + 60 - + col2 * - cor0.col2 FROM tab0 cor0
----
12184
5821
6249

onlyif mysql # use DIV operator for integer division
query I rowsort label-395
SELECT col0 * col1 DIV tab0.col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-395
SELECT col0 * col1 / tab0.col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - - col0 * - 72 + ( col0 + ( + cor0.col2 ) ) FROM tab0 AS cor0
----
-1671
-2484
-6237

query I rowsort
SELECT cor0.col1 + + 45 FROM tab1 AS cor0
----
55
58
71

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

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

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

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

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

query I rowsort
SELECT + col0 + 4 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT ALL - col0 * 29 * col1 FROM tab1
----
-18560
-2262
-30160

query I rowsort
SELECT + 97 * col2 FROM tab2 AS cor0
----
2522
2619
3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col2 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

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

skipif mysql # not compatible
query I rowsort label-405
SELECT 92 + + cor0.col1 / + col0 FROM tab0 AS cor0
----
93
94
95

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

query I rowsort
SELECT + + 74 AS col0 FROM tab0 cor0
----
74
74
74

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

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

query I rowsort
SELECT + 46 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - 49 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-411
SELECT DISTINCT - col2 * CAST( 33 AS SIGNED ) + + tab0.col1 AS col2 FROM tab0
----
-1003
-2615
64

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT - col2 * CAST ( 33 AS INTEGER ) + + tab0.col1 AS col2 FROM tab0
----
-1003
-2615
64

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

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

query I rowsort
SELECT + 34 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - + col1 + col2 * + col2 * - col1 + - col1 * cor0.col0 FROM tab0 AS cor0
----
-3589
-620074
-95804

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

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

query I rowsort
SELECT + - col0 * 34 AS col1 FROM tab0 AS cor0
----
-1190
-3026
-816

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

skipif mysql # not compatible
query I rowsort label-417
SELECT + col1 / + col2 + - 74 AS col2 FROM tab1 AS cor0
----
-74
-74
-74

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

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

query I rowsort
SELECT DISTINCT + 93 FROM tab1 AS cor0
----
93

query I rowsort
SELECT - cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT cor1.col2 - + cor1.col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 68f26bab54a791428e6ed5816df96945

query I rowsort
SELECT + tab2.col2 * + 64 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1ab2df50583d7413e054175fe5f7ee09

query I rowsort
SELECT DISTINCT - 55 + 69 FROM tab2 AS cor0
----
14

query I rowsort
SELECT 7 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1519
32214
9401

query I rowsort
SELECT col0 + + col0 * 25 AS col0 FROM tab1 AS cor0
----
1664
2080
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 * + col1 + col0 * col1 - + col0 * tab1.col1 col2 FROM tab1
----
-1248
-480
-624

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

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-10634
-16202
-7972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col0 + col2 * 60 * col0 col2 FROM tab2 AS cor0
----
11529
123708
183122

query I rowsort
SELECT + ( 43 ) AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - - col0 + - col0 * ( - cor0.col0 * col1 ) FROM tab0 AS cor0
----
118860
49560
720900

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

query I rowsort
SELECT + + col0 + - 59 * + col2 + col0 FROM tab1 AS cor0
----
-3180
-3235
-5504

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

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

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

query I rowsort
SELECT + col0 * 60 * col2 + - col1 FROM tab1 AS cor0
----
218870
460787
9694

query I rowsort
SELECT col1 * 30 * col1 AS col0 FROM tab0 AS cor0
----
221880
248430
282270

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

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

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

query I rowsort
SELECT col1 * col1 + 75 - + col0 FROM tab2
----
1029
285
3478

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

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

query I rowsort
SELECT - 81 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

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

query I rowsort
SELECT + 0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + 89 AS col1 FROM tab1
----
89
89
89

query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col2 + - col1 + col2 * + col2 FROM tab0 AS cor0
----
-97
6551
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-452
SELECT col2 * col0 + - col1 * col1 DIV + col0 + col0 AS col2 FROM tab2 AS cor0
----
2062
3078
59

skipif mysql # not compatible
query I rowsort label-452
SELECT col2 * col0 + - col1 * col1 / + col0 + col0 AS col2 FROM tab2 AS cor0
----
2062
3078
59

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

query I rowsort
SELECT col1 + + col1 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-1139
-1324
-503

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

query I rowsort
SELECT ALL - col0 + col2 * col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
119728
32426
75813

query I rowsort
SELECT ALL - col0 - col1 * - col2 * - col2 AS col0 FROM tab2
----
-22606
-24627
-39962

query I rowsort
SELECT ALL + + col1 * + col2 + - col0 FROM tab2 AS cor0
----
1456
567
830

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

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

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

query I rowsort
SELECT ALL col1 * col1 + col0 + + col1 AS col0 FROM tab2
----
3618
385
999

onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT + tab0.col0 + + tab0.col2 * col2 DIV col0 FROM tab0
----
164
35
69

skipif mysql # not compatible
query I rowsort label-463
SELECT + tab0.col0 + + tab0.col2 * col2 / col0 FROM tab0
----
164
35
69

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

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

query I rowsort
SELECT + col2 + col2 * col0 + - col1 FROM tab0
----
-61
7289
739

onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT DISTINCT - col0 + col1 DIV col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT - col0 + col1 / col2 FROM tab1
----
-3
-64
-80

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

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

query I rowsort
SELECT ALL - col2 + tab0.col0 * - col2 + - col0 FROM tab0
----
-71
-7469
-849

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 90 AS col2 FROM tab2 AS cor0
----
90
90
90

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

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

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

query I rowsort
SELECT - + 4 * col2 AS col0 FROM tab2 cor0
----
-104
-108
-152

query I rowsort
SELECT + col0 * 70 - - col0 AS col1 FROM tab2
----
497
5538
5609

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

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

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

query I rowsort
SELECT - 96 + - col0 AS col2 FROM tab1
----
-160
-176
-99

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

query I rowsort
SELECT ALL cor0.col1 * col1 AS col0 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-487
SELECT - 71 + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-487
SELECT - 71 + col1 / - col1 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-488
SELECT + cor0.col1 * - cor0.col0 - - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-1341
-217
-4602

skipif mysql # not compatible
query I rowsort label-488
SELECT + cor0.col1 * - cor0.col0 - - col2 / col1 AS col1 FROM tab2 AS cor0
----
-1341
-217
-4602

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

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

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

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + + 34 / - col1 FROM tab2 AS cor0
----
-1
-2
0

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

query I rowsort
SELECT DISTINCT + - 61 - - col1 AS col2 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT ALL 38 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT + 65 * + 33 AS col2 FROM tab1
----
2145
2145
2145

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

query I rowsort
SELECT ALL tab2.col2 + 55 FROM tab2
----
81
82
93

query I rowsort
SELECT DISTINCT + tab2.col2 * 64 AS col1 FROM tab2
----
1664
1728
2432

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

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

query I rowsort
SELECT + 5 + + 41 * col1 AS col0 FROM tab1 AS cor0
----
1071
415
538

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT 31 * col2 DIV ( cor0.col0 * - cor0.col1 ) - 3 AS col0 FROM tab2 AS cor0
----
-3
-3
-6

skipif mysql # not compatible
query I rowsort label-503
SELECT 31 * col2 / ( cor0.col0 * - cor0.col1 ) - 3 AS col0 FROM tab2 AS cor0
----
-3
-3
-6

query I rowsort
SELECT ALL - 21 * col2 FROM tab2 cor0
----
-546
-567
-798

query I rowsort
SELECT + + 72 + + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1112
150
712

onlyif mysql # use DIV operator for integer division
query I rowsort label-506
SELECT DISTINCT + col2 * - col1 + + col2 DIV col0 FROM tab1 AS cor0
----
-1247
-1386
-570

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT + col2 * - col1 + + col2 / col0 FROM tab1 AS cor0
----
-1247
-1386
-570

query I rowsort
SELECT + 54 + col0 * col2 AS col1 FROM tab1 AS cor0
----
216
3702
7734

query I rowsort
SELECT ALL col2 + - col0 * col1 + + col1 AS col2 FROM tab1
----
-573
-931
2

query I rowsort
SELECT DISTINCT - 82 + - col1 * tab0.col0 * + col2 FROM tab0
----
-3477
-664200
-68194

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

query I rowsort
SELECT + + col2 * col2 + 1 FROM tab2 AS cor0
----
1445
677
730

query I rowsort
SELECT ALL - - ( 58 ) AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT ALL + col0 * col1 * 19 AS col1 FROM tab1 AS cor0
----
12160
1482
19760

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

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

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

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

skipif mysql # not compatible
query I rowsort label-516
SELECT col1 / cor0.col0 FROM tab2 cor0
----
0
0
4

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

query I rowsort
SELECT DISTINCT + col2 + - 89 * col0 AS col1 FROM tab0 cor0
----
-2103
-3114
-7839

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

query I rowsort
SELECT ALL - - col2 * - 25 AS col2 FROM tab0 AS cor0
----
-2050
-25
-825

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

query I rowsort
SELECT - col2 * col1 * tab2.col0 + + col0 * + col2 FROM tab2
----
-117624
-48032
-5670

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

query I rowsort
SELECT ALL 93 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT + 51 + + 7 * col1 FROM tab1 cor0
----
121
142
233

query I rowsort
SELECT DISTINCT + col1 * - col1 - + tab1.col2 * col2 AS col0 FROM tab1
----
-3349
-3592
-9385

query I rowsort
SELECT 68 + 67 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 17b10acf07e16d67b01bcec56d331023

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 * col2 col2 FROM tab2
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 60 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

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

skipif mysql # not compatible
query I rowsort label-530
SELECT + CAST ( - col2 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + - 20 * - col1 AS col2 FROM tab1 cor0
----
200
260
520

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

query I rowsort
SELECT ALL col0 * 81 AS col2 FROM tab0
----
1944
2835
7209

query I rowsort
SELECT 80 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - col1 * ( - 83 ) + col2 AS col1 FROM tab0
----
7171
7635
8052

onlyif mysql # use DIV operator for integer division
query I rowsort label-536
SELECT ALL ( 36 ) DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL ( 36 ) / col2 AS col2 FROM tab1
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 12 ) * - col0 col1 FROM tab0 AS cor0
----
-1068
-288
-420

onlyif mysql # use DIV operator for integer division
query I rowsort label-539
SELECT ALL + ( col1 + col1 ) DIV - col2 FROM tab0
----
-194
-2
-5

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL + ( col1 + col1 ) / - col2 FROM tab0
----
-194
-2
-5

query I rowsort
SELECT - 73 + col0 * + 95 AS col0 FROM tab2 AS cor0
----
592
7337
7432

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

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

skipif mysql # not compatible
query I rowsort label-542
SELECT - col2 * CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 * + 44 + + col2 FROM tab2 AS cor0
----
1391
2622
786

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

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

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

query I rowsort
SELECT ALL + - col2 * - 31 + + col1 * + col1 FROM tab2 AS cor0
----
1467
1798
4287

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

query I rowsort
SELECT ALL + col1 * col1 - 66 FROM tab1
----
103
34
610

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

query I rowsort
SELECT 40 - col0 AS col2 FROM tab1
----
-24
-40
37

query I rowsort
SELECT col1 * + 63 + + 25 - col0 AS col0 FROM tab2
----
1017
1971
3664

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

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

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

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

query I rowsort
SELECT + col1 * 38 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1239
217
357

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - col0 col1 FROM tab1 cor0
----
1136
132
697

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

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

query I rowsort
SELECT ALL col1 - ( + 57 ) AS col0 FROM tab1 AS cor0
----
-31
-44
-47

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

query I rowsort
SELECT ( 87 ) + + col2 AS col0 FROM tab0
----
120
169
88

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

query I rowsort
SELECT tab1.col1 * col2 * - tab1.col2 - 50 AS col2 FROM tab1
----
-119858
-32540
-75866

query I rowsort
SELECT ALL 86 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT + ( - col2 + tab0.col0 ) * + col0 AS col2 FROM tab0
----
-216
1190
623

query I rowsort
SELECT - - 97 * col0 AS col0 FROM tab2 AS cor0
----
679
7566
7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * + col1 col2 FROM tab2 AS cor0
----
1258
2294
4366

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-570
SELECT + + 98 DIV + col0 + - col0 FROM tab1 cor0
----
-63
-79
29

skipif mysql # not compatible
query I rowsort label-570
SELECT + + 98 / + col0 + - col0 FROM tab1 cor0
----
-63
-79
29

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

query I rowsort
SELECT - - 58 * + col2 + - col2 AS col2 FROM tab2 AS cor0
----
1482
1539
2166

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 32 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT ALL - col0 DIV + col1 + - col2 * col2 DIV - tab1.col2 AS col1 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - col0 / + col1 + - col2 * col2 / - tab1.col2 AS col1 FROM tab1
----
51
54
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-581
SELECT ALL + ( col1 ) + - col0 DIV + col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + ( col1 ) + - col0 / + col1 FROM tab2
----
13
31
58

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

query I rowsort
SELECT DISTINCT 93 * + col1 FROM tab0 AS cor0
----
7998
8463
9021

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

query I rowsort
SELECT ALL - col1 * 35 + ( col2 ) AS col2 FROM tab1 AS cor0
----
-293
-359
-856

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

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

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

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

query I rowsort
SELECT ALL + - col1 * col2 * + 91 FROM tab0 AS cor0
----
-258258
-679042
-8827

query I rowsort
SELECT ALL - col0 * ( 82 ) AS col1 FROM tab1 AS cor0
----
-246
-5248
-6560

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col0 * - 71 + - col1 FROM tab2 AS cor0
----
-528
-5597
-5626

query I rowsort
SELECT ALL + 16 - - col2 * ( 81 + col2 ) FROM tab0
----
13382
3778
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * 11 + ( col0 * + col0 ) col1 FROM tab0
----
1610
840
8900

query I rowsort
SELECT DISTINCT + 63 + tab2.col1 - 99 * col2 FROM tab2
----
-2452
-2579
-3682

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

query I rowsort
SELECT ALL + ( + 95 ) AS col1 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 + + ( cor0.col0 + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1327
-572
-695

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

query I rowsort
SELECT + - 71 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-466
-5479
-5592

query I rowsort
SELECT - - ( - 39 ) AS col2 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL cor0.col2 * 44 AS col1 FROM tab1 AS cor0
----
2376
2508
4224

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-605
SELECT - 17 DIV 87 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-605
SELECT - 17 / 87 AS col0 FROM tab2 cor0
----
0
0
0

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

query I rowsort
SELECT - 67 * ( col2 ) FROM tab0 AS cor0
----
-2211
-5494
-67

query I rowsort
SELECT - col2 * 92 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT ALL + 84 + - col2 AS col1 FROM tab0 AS cor0
----
2
51
83

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 8 AS REAL ) FROM tab2 cor0
----
-8
-8
-8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-612
SELECT col1 - - 51 DIV col0 AS col2 FROM tab2
----
17
38
59

skipif mysql # not compatible
query I rowsort label-612
SELECT col1 - - 51 / col0 AS col2 FROM tab2
----
17
38
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + ( col2 ) ) * + ( + col2 ) + col0 col2 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-614
SELECT ALL + 86 * col1 DIV col0 FROM tab1
----
13
13
745

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL + 86 * col1 / col0 FROM tab1
----
13
13
745

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-617
SELECT ALL + CAST( ( cor0.col0 ) AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + CAST ( ( cor0.col0 ) AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col1 + col1 * col1 + col0 * col0 FROM tab1
----
4206
6582
711

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

query I rowsort
SELECT + col0 * col0 + - col2 + + tab2.col1 * col1 FROM tab2
----
6492
9539
983

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT col2 DIV - col1 + - col0 * - col2 * col2 FROM tab0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-626
SELECT col2 / - col1 + - col0 * - col2 * col2 FROM tab0
----
26136
35
598436

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE - col2 NOT BETWEEN col1 AND ( NULL )
----
-3
-64
-80

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 * col1 AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 >= + col1 + + col1 * - col0
----

query I rowsort
SELECT DISTINCT col2 + col1 - col0 FROM tab2
----
-24
51
7

query I rowsort
SELECT tab2.col2 * + col0 + - col0 * + col0 FROM tab2
----
-3239
-4056
140

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

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL col1 / tab1.col0 FROM tab1
----
0
0
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-636
SELECT ALL - col2 + - col0 DIV + col1 FROM tab2
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - col2 + - col0 / + col1 FROM tab2
----
-27
-27
-42

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

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

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

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

query I rowsort
SELECT ALL col1 + + tab2.col2 * col0 - col2 AS col2 FROM tab2
----
193
2061
2981

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

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

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL < NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT cor0.col2 * col0 + + col1 DIV - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-61
7379
823

skipif mysql # not compatible
query I rowsort label-646
SELECT cor0.col2 * col0 + + col1 / - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-61
7379
823

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-648
SELECT DISTINCT + col0 + + col2 * col1 DIV + col0 FROM tab0 cor0
----
142
172
37

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT + col0 + + col2 * col1 / + col0 FROM tab0 cor0
----
142
172
37

query I rowsort
SELECT ALL col0 * col0 + + col1 * + col0 * + col1 FROM tab1 AS cor0
----
10496
19920
2037

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

query I rowsort
SELECT ALL col1 - - cor0.col2 FROM tab1 AS cor0
----
109
67
80

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

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

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

query I rowsort
SELECT ALL col1 * ( 62 ) FROM tab2 AS cor0
----
1054
1922
3658

query I rowsort
SELECT col1 * ( col0 * + col1 ) FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT - col1 + 30 FROM tab0 AS cor0
----
-56
-61
-67

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

query I rowsort
SELECT DISTINCT + + ( tab0.col2 ) + + 57 FROM tab0, tab1, tab2 AS cor0
----
139
58
90

query I rowsort
SELECT DISTINCT 92 * - col0 FROM tab0
----
-2208
-3220
-8188

query I rowsort
SELECT ALL + cor1.col1 * + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea

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

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

query I rowsort
SELECT - 39 + - col1 * col1 FROM tab2 cor0
----
-1000
-328
-3520

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

query I rowsort
SELECT - col1 * col1 + + 69 * 85 AS col1 FROM tab1 AS cor0
----
5189
5696
5765

query I rowsort
SELECT ALL + col2 * + col2 + col2 AS col1 FROM tab0
----
1122
2
6806

query I rowsort
SELECT ALL + 19 * 15 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f39ed608344f890fca5bc8ec9a5d75e5

query I rowsort
SELECT col2 * tab1.col2 * + col0 - col2 * + tab1.col0 FROM tab1
----
204288
729600
8586

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT ALL 72 AS col2 FROM tab1
----
72
72
72

query I rowsort
SELECT - 15 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
436
449
587

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

query I rowsort
SELECT + 20 + 22 AS col2 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-676
SELECT ALL CAST( - cor0.col1 AS SIGNED ) * col2 * - col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL CAST ( - cor0.col1 AS INTEGER ) * col2 * - col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL - ( col0 ) * + col2 * 49 AS col0 FROM tab0 AS cor0
----
-1715
-357602
-38808

query I rowsort
SELECT + col0 * - 49 FROM tab0 AS cor0
----
-1176
-1715
-4361

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - + CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col0 * col0 - col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT - col1 * 73 * - col1 + col0 FROM tab1 AS cor0
----
12417
49351
7364

onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT + - col0 DIV cor0.col2 + cor0.col0 * - ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
162
3647
7680

skipif mysql # not compatible
query I rowsort label-682
SELECT + - col0 / cor0.col2 + cor0.col0 * - ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
162
3647
7680

query I rowsort
SELECT DISTINCT cor0.col1 * + ( + col1 ) * - 17 AS col0 FROM tab2 AS cor0
----
-16337
-4913
-59177

query I rowsort
SELECT ALL 62 FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT DISTINCT + 91 + ( - cor0.col2 * - 85 ) AS col1 FROM tab2 AS cor0
----
2301
2386
3321

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

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

query I rowsort
SELECT - col2 * col1 + + 99 * col0 AS col1 FROM tab1 cor0
----
-1107
5766
6672

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT - col2 + col0 * + col1 DIV col1 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-689
SELECT - col2 + col0 * + col1 / col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-690
SELECT DISTINCT 96 DIV - col1 FROM tab1 AS cor0
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT 96 / - col1 FROM tab1 AS cor0
----
-3
-7
-9

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

query I rowsort
SELECT DISTINCT col1 + col1 - + tab0.col2 * col1 * + 86 FROM tab0
----
-243896
-641550
-8148

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-696
SELECT DISTINCT col0 DIV col1 + col2 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT col0 / col1 + col2 FROM tab1
----
102
54
63

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

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

query I rowsort
SELECT DISTINCT + tab0.col2 + 72 AS col2 FROM tab0, tab1 AS cor0
----
105
154
73

query I rowsort
SELECT DISTINCT - + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-701
SELECT DISTINCT tab0.col1 DIV - ( ( col0 ) ) FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT tab0.col1 / - ( ( col0 ) ) FROM tab0
----
-1
-2
-3

query I rowsort
SELECT col1 + + 66 FROM tab1
----
76
79
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT - col2 * CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT col1 + + ( + 46 + + tab0.col1 ) * 88 AS col0 FROM tab0
----
11702
12147
12681

query I rowsort
SELECT ALL 57 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT - col0 + - 72 * + col2 AS col0 FROM tab0 AS cor0
----
-107
-2400
-5993

query I rowsort
SELECT + + col2 + - 85 * + col1 AS col2 FROM tab2 AS cor0
----
-1407
-2608
-4989

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

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

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

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

query I rowsort
SELECT col1 * + 69 AS col2 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT ALL + col1 * - cor0.col2 + - 53 * col0 + 98 * col0 FROM tab2 AS cor0
----
-522
1976
2909

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

query I rowsort
SELECT ALL col2 * 85 + - col2 AS col1 FROM tab0 AS cor0
----
2772
6888
84

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

query I rowsort
SELECT ALL + ( - ( cor0.col1 ) ) + 39 * cor0.col2 FROM tab0 AS cor0
----
-58
1201
3107

query I rowsort
SELECT - - col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + 47 * col1 * + col1 AS col2 FROM tab2 AS cor0
----
13583
163607
45167

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

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

query I rowsort
SELECT DISTINCT col0 - 24 AS col2 FROM tab2 AS cor0
----
-17
54
55

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT col1 DIV - col1 + 51 DIV ( - col0 ) col2 FROM tab2
----
-1
-1
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-723
SELECT col1 / - col1 + 51 / ( - col0 ) col2 FROM tab2
----
-1
-1
-8

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT - col2 DIV col1 + col2 * tab2.col2 AS col2 FROM tab2
----
1442
676
729

skipif mysql # not compatible
query I rowsort label-726
SELECT - col2 / col1 + col2 * tab2.col2 AS col2 FROM tab2
----
1442
676
729

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

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

query I rowsort
SELECT + 65 + + col1 + + 59 FROM tab2 AS cor0
----
141
155
183

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

query I rowsort
SELECT - 54 + col2 * col1 FROM tab2 AS cor0
----
1480
592
783

query I rowsort
SELECT DISTINCT col1 + + 15 * ( - cor0.col1 ) FROM tab2 AS cor0
----
-238
-434
-826

query I rowsort
SELECT DISTINCT + col2 + 48 + col2 * + col2 FROM tab2 cor0
----
1530
750
804

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

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

query I rowsort
SELECT ALL - col0 - 70 FROM tab2 AS cor0
----
-148
-149
-77

query I rowsort
SELECT + + cor0.col1 * + 93 AS col1 FROM tab2 AS cor0
----
1581
2883
5487

query I rowsort
SELECT DISTINCT - - col0 + - col2 * 99 FROM tab2 AS cor0
----
-2496
-2666
-3683

query I rowsort
SELECT + - col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

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

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

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

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

query I rowsort
SELECT + ( tab1.col2 ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - 70 * col0 AS col0 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT + col2 + cor0.col2 * - 34 FROM tab0 cor0
----
-1089
-2706
-33

query I rowsort
SELECT DISTINCT cor0.col1 + + 38 FROM tab0, tab1 cor0, tab2 cor1
----
48
51
64

query I rowsort
SELECT col2 * - col1 + 22 AS col2 FROM tab1 AS cor0
----
-1226
-1382
-548

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + + ( + col2 ) + + col1 col2 FROM tab1 cor0
----
-3581
-7571
-82

query I rowsort
SELECT cor0.col2 - 24 FROM tab1, tab2 AS cor0
----
9 values hashing to aa71a05ca1e669f5a5eec28723618397

query I rowsort
SELECT ALL col1 + + ( col0 ) AS col1 FROM tab0
----
110
132
180

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-757
SELECT ALL - CAST( + cor0.col0 AS SIGNED ) * - col2 col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-757
SELECT ALL - CAST ( + cor0.col0 AS INTEGER ) * - col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 * - col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + 69 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
133
149
72

query I rowsort
SELECT DISTINCT + col0 * col2 + + cor0.col0 * col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT ALL + 23 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

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

query I rowsort
SELECT DISTINCT + ( 14 ) + col0 FROM tab2 AS cor0
----
21
92
93

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

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

query I rowsort
SELECT DISTINCT + 61 + + cor0.col2 * + col2 FROM tab0 AS cor0
----
1150
62
6785

query I rowsort
SELECT - 5 * col0 AS col1 FROM tab2
----
-35
-390
-395

query I rowsort
SELECT - 64 * col2 FROM tab0
----
-2112
-5248
-64

query I rowsort
SELECT 69 * + 36 AS col0 FROM tab0
----
2484
2484
2484

onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT + - cor0.col2 + ( + col0 ) DIV 74 AS col0 FROM tab2 cor0
----
-25
-27
-37

skipif mysql # not compatible
query I rowsort label-769
SELECT + - cor0.col2 + ( + col0 ) / 74 AS col0 FROM tab2 cor0
----
-25
-27
-37

query I rowsort
SELECT - - col1 + 57 * col0 AS col0 FROM tab2 AS cor0
----
430
4505
4520

onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT ALL + col0 - + col1 DIV - col1 AS col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL + col0 - + col1 / - col1 AS col0 FROM tab2
----
79
8
80

query I rowsort
SELECT + + 24 * col2 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
650
675
950

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

query I rowsort
SELECT + + 2 * col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + 51 + - col1 * - 37 AS col0 FROM tab0 AS cor0
----
3233
3418
3640

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

query I rowsort
SELECT ( + col2 + col2 ) FROM tab1
----
108
114
192

query I rowsort
SELECT - 76 * - col2 + - 10 FROM tab2 AS cor0
----
1966
2042
2878

query I rowsort
SELECT ( col1 ) * col1 + 34 AS col0 FROM tab2 AS cor0
----
323
3515
995

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

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT + - col0 + + col0 * + CAST ( ( + col1 ) AS INTEGER ) FROM tab2 cor0
----
1264
210
4524

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

query I rowsort
SELECT cor0.col1 + ( + 44 ) AS col2 FROM tab2 AS cor0
----
103
61
75

query I rowsort
SELECT - + col1 * + col2 * - ( - col2 * col1 + col1 ) FROM tab1 AS cor0
----
-1541280
-1934712
-319200

query I rowsort
SELECT 53 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + col2 * + 16 FROM tab0 AS cor0
----
1312
16
528

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-791
SELECT CAST ( 83 AS INTEGER ) * + col2 AS col2 FROM tab0 cor0
----
2739
6806
83

query I rowsort
SELECT 58 + - ( cor0.col2 ) * - col1 FROM tab1 AS cor0
----
1306
1462
628

query I rowsort
SELECT DISTINCT + cor0.col1 + - 23 AS col1 FROM tab1, tab1 AS cor0
----
-10
-13
3

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 18 * col1 AS col2 FROM tab1 AS cor0
----
180
234
468

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

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

query I rowsort
SELECT DISTINCT col0 * - 19 FROM tab0 AS cor0
----
-1691
-456
-665

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

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

query I rowsort
SELECT - 54 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe

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

query I rowsort
SELECT - + col2 + - col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-133
-143
-262

query I rowsort
SELECT DISTINCT 5 + - 61 FROM tab0 cor0
----
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-809
SELECT ALL 51 DIV - col0 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL 51 / - col0 FROM tab2
----
-7
0
0

query I rowsort
SELECT - 40 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + 48 AS col0 FROM tab1
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-812
SELECT DISTINCT - tab2.col2 + - tab2.col2 * col1 + col1 DIV col0 FROM tab2
----
-1560
-684
-860

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT - tab2.col2 + - tab2.col2 * col1 + col1 / col0 FROM tab2
----
-1560
-684
-860

query I rowsort
SELECT 97 * col0 * col0 + col0 FROM tab2
----
4760
590226
605456

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

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

query I rowsort
SELECT DISTINCT + + 22 * col1 AS col2 FROM tab2 AS cor0
----
1298
374
682

query I rowsort
SELECT col2 + col0 * 69 FROM tab2 AS cor0
----
510
5408
5489

query I rowsort
SELECT ALL + + 88 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
3004
3337
9304

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-820
SELECT DISTINCT - 47 * col0 DIV - col1 + 17 AS col0 FROM tab2
----
235
27
79

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT - 47 * col0 / - col1 + 17 AS col0 FROM tab2
----
235
27
79

query I rowsort
SELECT ALL ( col2 ) + col1 * + ( 12 * col2 ) FROM tab2
----
10071
18434
7790

onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT col1 DIV + col2 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-822
SELECT col1 / + col2 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT - 8 + tab0.col0 FROM tab0
----
16
27
81

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

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

skipif mysql # not compatible
query I rowsort label-825
SELECT ( + col1 ) + CAST ( col1 * + col1 AS INTEGER ) AS col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT - 82 + - col2 AS col1 FROM tab0
----
-115
-164
-83

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

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

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

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

query I rowsort
SELECT DISTINCT + 86 + cor0.col2 AS col0 FROM tab1 AS cor0
----
140
143
182

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 83 col0 FROM tab0
----
-1
-50
-82

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

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

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

query I rowsort
SELECT ALL - col2 - - tab1.col0 * - 66 AS col0 FROM tab1
----
-252
-4281
-5376

query I rowsort
SELECT col2 + ( + 76 * + col0 ) AS col0 FROM tab0
----
1857
2661
6846

query I rowsort
SELECT + col1 + ( 18 ) + col2 * - col0 FROM tab2
----
-140
-1951
-2967

query I rowsort
SELECT col1 + ( 17 ) AS col2 FROM tab1 AS cor0
----
27
30
43

query I rowsort
SELECT ALL + 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-840
SELECT ALL col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-841
SELECT ALL + col1 * col0 + col1 DIV ( + col1 ) FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + col1 * col0 + col1 / ( + col1 ) FROM tab1 AS cor0
----
1041
641
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT ALL + + 14 + ( col1 ) DIV 16 FROM tab2 cor0
----
15
15
17

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + + 14 + ( col1 ) / 16 FROM tab2 cor0
----
15
15
17

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT + col2 * col1 + - col1 DIV col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-844
SELECT + col2 * col1 + - col1 / col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 + col2 * + 57 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
13044
9301
9501

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

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

query I rowsort
SELECT - ( col0 ) * cor0.col2 + ( col2 + - col0 ) * - 56 * + col2 FROM tab0 AS cor0
----
-17424
1869
24846

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-850
SELECT - 15 * + col0 DIV col0 - + 33 FROM tab2 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-850
SELECT - 15 * + col0 / col0 - + 33 FROM tab2 AS cor0
----
-48
-48
-48

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

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

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

query I rowsort
SELECT ALL - + 24 - + col1 FROM tab2 cor0
----
-41
-55
-83

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

query I rowsort
SELECT DISTINCT 51 * col0 + cor0.col1 FROM tab1 AS cor0
----
179
3274
4093

query I rowsort
SELECT 12 * 65 + col1 FROM tab0 AS cor0
----
866
871
877

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

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

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

query I rowsort
SELECT ALL + - col2 * 71 FROM tab1 AS cor0
----
-3834
-4047
-6816

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-861
SELECT col1 + - CAST( col2 + col0 AS SIGNED ) * + 52 FROM tab2 AS cor0
----
-1737
-5349
-6067

skipif mysql # not compatible
query I rowsort label-861
SELECT col1 + - CAST ( col2 + col0 AS INTEGER ) * + 52 FROM tab2 AS cor0
----
-1737
-5349
-6067

query I rowsort
SELECT DISTINCT - - 95 * cor0.col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
5130
5415
9120

query I rowsort
SELECT + + col1 * - col2 + col0 * col1 * col0 + col2 FROM tab1 AS cor0
----
-1116
40447
82048

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

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

query I rowsort
SELECT 43 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT ( - 47 ) AS col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 905cbd63e2561d7f32ce36091d5b526a

query I rowsort
SELECT DISTINCT + col2 * + 73 FROM tab1
----
3942
4161
7008

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT 86 DIV col0 FROM tab1 AS cor0
----
1
1
28

skipif mysql # not compatible
query I rowsort label-870
SELECT 86 / col0 FROM tab1 AS cor0
----
1
1
28

query I rowsort
SELECT + col2 * cor0.col1 + - 4 AS col1 FROM tab2 AS cor0
----
1530
642
833

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

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

query I rowsort
SELECT + col1 * col2 + - 36 FROM tab0 AS cor0
----
2802
61
7426

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

query I rowsort
SELECT - col2 * col2 + col1 + col0 * 87 AS col1 FROM tab0
----
1085
1110
3141

query I rowsort
SELECT DISTINCT col1 + ( - tab2.col1 ) FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-878
SELECT DISTINCT 69 + - col1 DIV col0 + - 28 AS col2 FROM tab0
----
38
39
40

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT 69 + - col1 / col0 + - 28 AS col2 FROM tab0
----
38
39
40

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT DISTINCT 27 + col1 DIV col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT 27 + col1 / col1 FROM tab0 AS cor0
----
28

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

query I rowsort
SELECT + col1 * col2 - col1 * 50 AS col1 FROM tab1 AS cor0
----
104
598
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 + - ( col0 ) + - col0 col2 FROM tab0 AS cor0
----
27
2790
7284

query I rowsort
SELECT + 19 * col1 FROM tab0
----
1634
1729
1843

query I rowsort
SELECT DISTINCT 61 + tab1.col1 FROM tab1
----
71
74
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT + cor0.col2 * + col0 + - col1 + cor0.col2 DIV - col0 FROM tab0 AS cor0
----
-62
705
7207

skipif mysql # not compatible
query I rowsort label-886
SELECT + cor0.col2 * + col0 + - col1 + cor0.col2 / - col0 FROM tab0 AS cor0
----
-62
705
7207

query I rowsort
SELECT - - col2 * + col2 - + col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT - col1 + 31 AS col0 FROM tab2 AS cor0
----
-28
0
14

query I rowsort
SELECT + tab1.col2 * - col1 * - col1 FROM tab1
----
16224
36504
5700

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT - 50 DIV + col0 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-892
SELECT - 50 / + col0 FROM tab2
----
-7
0
0

query I rowsort
SELECT - - cor0.col0 * col0 + col0 * + col2 FROM tab0 cor0
----
1260
1368
15219

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - col2 col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col0 + + 49 FROM tab2 AS cor0
----
127
128
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-897
SELECT + col1 + CAST( 26 AS SIGNED ) * col0 FROM tab0 cor0
----
1007
2405
710

skipif mysql # not compatible
query I rowsort label-897
SELECT + col1 + CAST ( 26 AS INTEGER ) * col0 FROM tab0 cor0
----
1007
2405
710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 8 col1 FROM tab1 AS cor0
----
-24
-512
-640

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

query I rowsort
SELECT - - 77 + 25 AS col1 FROM tab2 AS cor0
----
102
102
102

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

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

query I rowsort
SELECT + - 3 + 87 * col0 FROM tab1 AS cor0
----
258
5565
6957

query I rowsort
SELECT + 45 * - col2 FROM tab0 AS cor0
----
-1485
-3690
-45

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

query I rowsort
SELECT ALL tab2.col1 * + col2 * col1 + col1 AS col1 FROM tab2
----
10999
25978
90565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 0 ) * - tab1.col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 49 + ( tab1.col0 ) + tab1.col0 FROM tab1
----
-43
111
79

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

query I rowsort
SELECT ALL tab1.col0 * + col1 + + col0 * 69 FROM tab1
----
285
5056
6560

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

skipif mysql # not compatible
query I rowsort label-910
SELECT + col2 + cor0.col2 * CAST ( + ( cor0.col2 ) AS INTEGER ) * 48 AS col2 FROM tab1 AS cor0
----
140022
156009
442464

query I rowsort
SELECT ALL + col1 * col0 + 27 FROM tab0 AS cor0
----
2091
3422
8126

query I rowsort
SELECT ALL - col2 * col2 FROM tab1 cor0
----
-2916
-3249
-9216

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

query I rowsort
SELECT DISTINCT + 51 + - col2 + ( col2 + col1 ) AS col0 FROM tab1 AS cor0
----
61
64
77

query I rowsort
SELECT DISTINCT + 73 * col1 + + 20 * 35 AS col0 FROM tab0 AS cor0
----
6978
7343
7781

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-917
SELECT ALL - 33 * col1 * CAST( 10 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
-28294
-29939
-31913

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL - 33 * col1 * CAST ( 10 AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
-28294
-29939
-31913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-918
SELECT DISTINCT + - col1 + cor0.col1 * - CAST( - col1 AS SIGNED ) + + col1 * col1 col1 FROM tab0 AS cor0
----
14706
16471
18721

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + - col1 + cor0.col1 * - CAST ( - col1 AS INTEGER ) + + col1 * col1 col1 FROM tab0 AS cor0
----
14706
16471
18721

query I rowsort
SELECT DISTINCT 87 * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
-4644
-4902
-8256

query I rowsort
SELECT ALL + col1 + - col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 * col1 + col2 col0 FROM tab0 AS cor0
----
463
486
537

onlyif mysql # use DIV operator for integer division
query I rowsort label-922
SELECT DISTINCT + col0 DIV 12 + + 34 AS col0 FROM tab1
----
34
39
40

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT + col0 / 12 + + 34 AS col0 FROM tab1
----
34
39
40

query I rowsort
SELECT col1 * + 64 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT col1 + 88 AS col2 FROM tab2 AS cor0
----
105
119
147

query I rowsort
SELECT - - col2 * - 90 + 83 AS col2 FROM tab2 AS cor0
----
-2257
-2347
-3337

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

query I rowsort
SELECT ALL + col0 * col0 * - 82 AS col2 FROM tab0 cor0
----
-100450
-47232
-649522

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

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

query I rowsort
SELECT col0 * - 89 * - col2 - - col0 * 19 AS col2 FROM tab0 cor0
----
3780
651213
70944

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

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

query I rowsort
SELECT ALL - - 5 * col2 + + col2 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT col1 + + cor0.col2 * - col1 * + 76 FROM tab1 AS cor0
----
-106678
-43310
-94835

query I rowsort
SELECT DISTINCT - col1 - 30 FROM tab0 AS cor0
----
-116
-121
-127

query I rowsort
SELECT DISTINCT - - 80 FROM tab2 AS cor0
----
80

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

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

query I rowsort
SELECT ALL - + col1 + 93 * col2 FROM tab0 AS cor0
----
-4
2983
7535

query I rowsort
SELECT 48 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 17 col0 FROM tab2
----
-119
-1326
-1343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 - + col1 col1 FROM tab1 AS cor0
----
-105
-89
-92

query I rowsort
SELECT + + 29 + col0 * cor0.col0 FROM tab2 AS cor0
----
6113
6270
78

query I rowsort
SELECT col0 * - 33 FROM tab1 cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT 68 * + 55 AS col2 FROM tab2 AS cor0
----
3740

query I rowsort
SELECT ALL + cor0.col1 + + 96 AS col1 FROM tab1 AS cor0
----
106
109
122

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-947
SELECT DISTINCT - ( - col2 ) + + cor0.col2 DIV + ( col0 ) FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT - ( - col2 ) + + cor0.col2 / + ( col0 ) FROM tab2 AS cor0
----
26
30
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col1 col1 FROM tab0 cor0
----
172
182
194

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

query I rowsort
SELECT - - col1 - 91 * + cor0.col1 AS col2 FROM tab2 cor0
----
-1530
-2790
-5310

onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT - + 51 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-951
SELECT - + 51 / col1 AS col2 FROM tab1 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( col1 AS REAL ) * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

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

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

query I rowsort
SELECT ALL + ( + col1 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + col1 + + ( tab1.col0 + + col1 ) * col1 AS col0 FROM tab1
----
1222
750
780

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

query I rowsort
SELECT ALL - col2 + - 31 + - cor0.col1 * col0 * 85 FROM tab0 AS cor0
----
-175504
-288607
-688528

onlyif mysql # use DIV operator for integer division
query I rowsort label-959
SELECT ALL - - col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL - - col2 / - col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-961
SELECT - col2 * + CAST( 83 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2158
-2241
-3154

skipif mysql # not compatible
query I rowsort label-961
SELECT - col2 * + CAST ( 83 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT ALL col2 + - col2 * 43 AS col2 FROM tab2
----
-1092
-1134
-1596

query I rowsort
SELECT + col2 + col1 - tab0.col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT tab0.col2 * - tab0.col0 - col0 AS col0 FROM tab0
----
-70
-7387
-816

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

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

query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL - col0 + 52 + + 47 FROM tab1 AS cor0
----
19
35
96

query I rowsort
SELECT ALL col0 * 25 + + col1 * col2 * col2 FROM tab2
----
22774
26523
41834

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * - col2 + + col2 + col1 FROM tab0 AS cor0
----
133
7471
911

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN NULL AND - col1 + + col1 * - tab0.col1
----

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

query I rowsort
SELECT col0 * - col0 * tab2.col0 + col1 AS col2 FROM tab2
----
-312
-474493
-493022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT IN ( - cor0.col0 )
----

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT DISTINCT col0 DIV col2 - + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7396
-8280
-9374

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT col0 / col2 - + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7396
-8280
-9374

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

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

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

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

query I rowsort
SELECT col1 * cor0.col2 * col0 - - col2 FROM tab2 AS cor0
----
119678
51072
5886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * col2 col2 FROM tab0
----
244068
679042
9409

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-994
SELECT cor0.col2 * col2 DIV - cor0.col1 FROM tab1 AS cor0
----
-112
-324
-708

skipif mysql # not compatible
query I rowsort label-994
SELECT cor0.col2 * col2 / - cor0.col1 FROM tab1 AS cor0
----
-112
-324
-708

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

query I rowsort
SELECT DISTINCT 48 * - col0 FROM tab1 cor0
----
-144
-3072
-3840

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

query I rowsort
SELECT ALL - 73 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1000
SELECT - + col1 * col1 DIV col0 FROM tab0 AS cor0
----
-268
-308
-93

skipif mysql # not compatible
query I rowsort label-1000
SELECT - + col1 * col1 / col0 FROM tab0 AS cor0
----
-268
-308
-93

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 + col1 col0 FROM tab0 AS cor0
----
-1128
-490
-7830

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

query I rowsort
SELECT + col2 / col1 AS col1 FROM tab1 WHERE ( NULL ) < NULL
----

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT + col2 + - col1 * col1 + + tab2.col2 AS col2 FROM tab2
----
-213
-3429
-907

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 FROM tab0
----
-7209
-768
0

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

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

query I rowsort
SELECT col1 * - col0 + - col2 * - col1 * col0 FROM tab2
----
115050
49691
5642

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

query I rowsort
SELECT col2 + - col1 + + col0 * col0 * tab2.col2 AS col1 FROM tab2
----
1319
158151
237179

query I rowsort
SELECT col1 + - col0 * + col1 * + col1 FROM tab1
----
-13507
-2002
-6390

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

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

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

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

query I rowsort
SELECT ALL + col2 + + 3 FROM tab0 AS cor0
----
36
4
85

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

query I rowsort
SELECT DISTINCT + col2 + + 23 * - col2 * + col1 FROM tab1 AS cor0
----
-13053
-28608
-32238

query I rowsort
SELECT col0 * 97 + + col1 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
16186
3589
5252

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

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

query I rowsort
SELECT cor0.col2 * cor0.col2 + col2 + col0 AS col1 FROM tab1 AS cor0
----
2973
3370
9392

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

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

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

query I rowsort
SELECT + 24 * col2 * + ( 81 ) AS col0 FROM tab0
----
159408
1944
64152

query I rowsort
SELECT - col2 - - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 80 * + col1 - - col2 AS col2 FROM tab1
----
1136
2134
857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT + 11 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT ALL col1 + col1 + - 25 FROM tab1
----
-5
1
27

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + + 54 * col2 AS col2 FROM tab0 AS cor0
----
151
1868
4519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 60 * - col2 col0 FROM tab2
----
-1534
-1593
-2242

query I rowsort
SELECT col0 * + 54 * - col0 AS col0 FROM tab1 AS cor0
----
-221184
-345600
-486

query I rowsort
SELECT ALL 47 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT - + cor0.col0 + - cor0.col0 * col1 DIV + ( col1 ) FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-1043
SELECT - + cor0.col0 + - cor0.col0 * col1 / + ( col1 ) FROM tab1 AS cor0
----
-128
-160
-6

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

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

query I rowsort
SELECT DISTINCT + - col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT ALL + col1 DIV col2 + - CAST( + 53 AS SIGNED ) + col0 FROM tab0 cor0
----
-27
37
79

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + col1 / col2 + - CAST ( + 53 AS INTEGER ) + col0 FROM tab0 cor0
----
-27
37
79

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

query I rowsort
SELECT ALL + + col1 + col1 * cor0.col1 + col2 * col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-113770
-4111
-49188

query I rowsort
SELECT - + 73 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 + 67 col2 FROM tab2 AS cor0
----
-1276
-150
-4535

query I rowsort
SELECT ALL 83 + - col0 * col0 * - 78 FROM tab2 AS cor0
----
3905
474635
486881

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1057
SELECT DISTINCT - - 70 * cor0.col0 + - col1 DIV - col0 FROM tab0 AS cor0
----
1683
2452
6231

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT - - 70 * cor0.col0 + - col1 / - col0 FROM tab0 AS cor0
----
1683
2452
6231

query I rowsort
SELECT 58 + + col2 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT DISTINCT 90 * col0 AS col0 FROM tab0 AS cor0
----
2160
3150
8010

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

query I rowsort
SELECT DISTINCT + col2 + col2 * 29 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT + col1 + - ( 33 ) * - col2 * ( col1 ) FROM tab2 AS cor0
----
21335
27652
50681

query I rowsort
SELECT ALL - col1 * - col2 + 17 FROM tab2 AS cor0
----
1551
663
854

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

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

query I rowsort
SELECT - cor0.col2 + 91 FROM tab1 AS cor0
----
-5
34
37

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

query I rowsort
SELECT ALL - col1 - + col1 * - 62 AS col0 FROM tab1
----
1586
610
793

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

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT CAST ( 38 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
38

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

query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab2 cor0
----
-17
-31
-59

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

query I rowsort
SELECT DISTINCT - + 62 * + col2 * + col0 AS col2 FROM tab1 cor0
----
-10044
-226176
-476160

onlyif mysql # use DIV operator for integer division
query I rowsort label-1074
SELECT - 83 DIV 35 AS col1 FROM tab2 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1074
SELECT - 83 / 35 AS col1 FROM tab2 cor0
----
-2
-2
-2

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

query I rowsort
SELECT ALL + col2 * 39 * col2 FROM tab0 AS cor0
----
262236
39
42471

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

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

query I rowsort
SELECT 75 * - col1 + tab2.col0 * + 52 FROM tab2
----
-1961
-369
2833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + col2 col0 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL + col2 * - 65 FROM tab1
----
-3510
-3705
-6240

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

query I rowsort
SELECT + col1 * - 67 + + col0 AS col2 FROM tab0
----
-5738
-6008
-6464

query I rowsort
SELECT - + 96 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT + CAST( - 45 AS SIGNED ) DIV col0 FROM tab2
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-1085
SELECT + CAST ( - 45 AS INTEGER ) / col0 FROM tab2
----
-6
0
0

query I rowsort
SELECT DISTINCT + 70 * 78 FROM tab2
----
5460

onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT - col2 DIV - tab1.col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1087
SELECT - col2 / - tab1.col1 FROM tab1
----
2
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1088
SELECT DISTINCT + ( ( - tab0.col1 ) ) * CAST( col0 AS SIGNED ) FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT + ( ( - tab0.col1 ) ) * CAST ( col0 AS INTEGER ) FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * - col0 * 29 col1 FROM tab2
----
133458
38947
6293

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1091
SELECT 5 DIV - ( - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT 5 / - ( - col0 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT 15 DIV + ( col0 ) - + ( - col0 ) FROM tab2 AS cor0
----
78
79
9

skipif mysql # not compatible
query I rowsort label-1092
SELECT 15 / + ( col0 ) - + ( - col0 ) FROM tab2 AS cor0
----
78
79
9

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 + col0 * col1 col1 FROM tab0 AS cor0
----
2139
3470
8174

query I rowsort
SELECT 16 * cor0.col2 FROM tab2 AS cor0
----
416
432
608

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT ALL cor0.col1 * - ( col1 ) + - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-101
-170
-677

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL cor0.col1 * - ( col1 ) + - col0 / col0 AS col2 FROM tab1 AS cor0
----
-101
-170
-677

query I rowsort
SELECT - cor0.col2 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

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

query I rowsort
SELECT DISTINCT - + cor0.col2 + - 1 AS col1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT + col1 * col1 + 8 FROM tab0 AS cor0
----
7404
8289
9417

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

query I rowsort
SELECT DISTINCT + col0 + - ( 61 + + cor0.col0 * + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-1021
-136
-637

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

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

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 + 90 AS col0 FROM tab0 AS cor0
----
2154
3485
8189

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

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

query I rowsort
SELECT cor0.col2 * 29 FROM tab1, tab2 AS cor0
----
9 values hashing to f7bb8836edb8ed2a7e672a19ab5bd813

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

query I rowsort
SELECT + cor0.col1 + 51 AS col2 FROM tab2 AS cor0
----
110
68
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( - col2 ) * + tab0.col2 * - tab0.col2 col2 FROM tab0
----
2
35970
551450

query I rowsort
SELECT + col0 + - cor0.col0 * 62 + col2 FROM tab2 AS cor0
----
-400
-4732
-4781

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor1.col0 ) col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

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

query I rowsort
SELECT + col2 * 23 + - 76 + - cor0.col2 FROM tab0 AS cor0
----
-54
1728
650

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

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

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

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

query I rowsort
SELECT DISTINCT 10 + ( + col1 ) FROM tab2 cor0
----
27
41
69

query I rowsort
SELECT ALL - 12 - - 88 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT 60 * 66 FROM tab0 AS cor0
----
3960

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

query I rowsort
SELECT - - ( + 49 ) + col0 FROM tab0 cor0
----
138
73
84

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

query I rowsort
SELECT DISTINCT 79 + + 92 AS col1 FROM tab2 cor0
----
171

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

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

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

query I rowsort
SELECT + col2 + col2 * + 97 FROM tab0 AS cor0
----
3234
8036
98

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

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

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

query I rowsort
SELECT 5 * - col1 FROM tab1
----
-130
-50
-65

query I rowsort
SELECT ALL + 17 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL col1 * col2 * col1 + + 5 FROM tab2
----
10987
25952
90511

query I rowsort
SELECT - col0 + ( + 73 ) FROM tab2 AS cor0
----
-5
-6
66

query I rowsort
SELECT - tab2.col1 * - col1 - - col1 FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-1139
SELECT + col2 + cor0.col1 * col2 + cor0.col2 DIV col1 AS col0 FROM tab1 AS cor0
----
1351
1460
632

skipif mysql # not compatible
query I rowsort label-1139
SELECT + col2 + cor0.col1 * col2 + cor0.col2 / col1 AS col0 FROM tab1 AS cor0
----
1351
1460
632

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

query I rowsort
SELECT col0 * col1 + 49 * - 72 + - col2 * + col1 * 36 FROM tab2 cor0
----
-25441
-33443
-54150

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1142
SELECT DISTINCT + CAST( col1 AS SIGNED ) - + col1 * - 70 * col1 AS col0 FROM tab2 AS cor0
----
20247
243729
67301

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT + CAST ( col1 AS INTEGER ) - + col1 * - 70 * col1 AS col0 FROM tab2 AS cor0
----
20247
243729
67301

query I rowsort
SELECT DISTINCT - - 48 * + col0 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT - - col2 * col0 - col1 * - ( + col2 ) * - col0 FROM tab0 AS cor0
----
-3360
-656820
-67320

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

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

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

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

query I rowsort
SELECT + 10 AS col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT - 60 AS col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * 99 col2 FROM tab1, tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT ALL + cor0.col2 * + 37 FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT ALL - ( 72 ) * + col2 FROM tab0 AS cor0
----
-2376
-5904
-72

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

query I rowsort
SELECT + col0 * + 11 + + col2 FROM tab0 AS cor0
----
1061
297
386

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

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

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

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

query I rowsort
SELECT ( 67 ) + col0 + col2 * col0 AS col0 FROM tab1
----
232
3779
7827

query I rowsort
SELECT DISTINCT col0 + col2 * + col1 * + col1 FROM tab1 AS cor0
----
16304
36507
5764

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + col1 * - ( + col1 ) FROM tab0 cor0
----
-7372
-8192
-9374

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1167
SELECT ALL - 22 DIV col2 + col2 * - ( + 96 ) FROM tab1
----
-5184
-5472
-9216

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - 22 / col2 + col2 * - ( + 96 ) FROM tab1
----
-5184
-5472
-9216

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

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

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

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT col1 * - col0 - + col2 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-10256
-2994
-3889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 - 86 col2 FROM tab2
----
-48
-59
-60

query I rowsort
SELECT - 21 * + col2 FROM tab0
----
-1722
-21
-693

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL col2 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + cor0.col0 * - 92 AS col2 FROM tab0 AS cor0
----
-2208
-3220
-8188

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * ( - 21 ) FROM tab2 AS cor0
----
1239
357
651

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

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

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

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

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

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

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

query I rowsort
SELECT tab1.col1 * - col2 * 89 + - col2 * - 44 AS col1 FROM tab1
----
-106848
-122580
-48222

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

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

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

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

query I rowsort
SELECT - - 74 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT tab2.col2 * - ( - col1 * - col0 ) FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - col2 * - 45 + - col2 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT col2 * - 44 FROM tab1
----
-2376
-2508
-4224

query I rowsort
SELECT col2 + - ( + 69 ) FROM tab0
----
-36
-68
13

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

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

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

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

query I rowsort
SELECT DISTINCT - 91 * + col0 * - col0 AS col1 FROM tab2 AS cor0
----
4459
553644
567931

query I rowsort
SELECT ALL 95 * - col0 + col0 FROM tab1 cor0
----
-282
-6016
-7520

query I rowsort
SELECT DISTINCT - col0 + 94 * col2 AS col1 FROM tab1 cor0
----
5073
5294
8944

query I rowsort
SELECT DISTINCT - - 29 * col2 AS col1 FROM tab2 AS cor0
----
1102
754
783

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

query I rowsort
SELECT + 20 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + + col0 col1 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * + 64 + + 39 * + col0 col2 FROM tab0 AS cor0
----
182568
481039
7573

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

query I rowsort
SELECT ALL + - col0 + col2 * - col0 - 33 AS col2 FROM tab1 AS cor0
----
-198
-3745
-7793

query I rowsort
SELECT DISTINCT - - 94 FROM tab1 AS cor0
----
94

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

query I rowsort
SELECT - + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

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

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

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

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

query I rowsort
SELECT + 94 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 5fc25b60fd90da23ba5e7be7e868d4d7

query I rowsort
SELECT DISTINCT - col0 * + col0 + + col2 FROM tab1 cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1223
SELECT DISTINCT - cor0.col2 * ( + col0 ) + col0 DIV ( col0 + col1 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - cor0.col2 * ( + col0 ) + col0 / ( col0 + col1 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

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

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

query I rowsort
SELECT - ( 32 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

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

query I rowsort
SELECT - 67 * col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT 23 + col0 + - cor0.col0 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT + ( + 35 ) FROM tab2
----
35
35
35

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1232
SELECT DISTINCT 12 DIV col1 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT 12 / col1 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT + - col0 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
343
474552
493039

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT ( + col2 ) DIV + col0 + + 60 AS col2 FROM tab2 AS cor0
----
60
60
63

skipif mysql # not compatible
query I rowsort label-1238
SELECT ( + col2 ) / + col0 + + 60 AS col2 FROM tab2 AS cor0
----
60
60
63

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT + CAST ( col2 AS INTEGER ) / col1 + + col2 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT - 36 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * - col1 col0 FROM tab2
----
-1395
-2655
-765

query I rowsort
SELECT ALL + 1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT ( 1 ) * - col0 AS col1 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 30 col2 FROM tab0 AS cor0
----
2460
30
990

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

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

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT + 81 - col1 / col2 FROM tab1 AS cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 + 45 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 838e3616eba570b6f893c5d3721f4665

query I rowsort
SELECT + ( col0 ) * col1 + + 27 FROM tab1 AS cor0
----
105
1067
667

query I rowsort
SELECT DISTINCT col1 + col2 + 52 FROM tab0
----
150
171
225

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

query I rowsort
SELECT ALL + + 0 * - cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

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

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

query I rowsort
SELECT - 18 * + col2 * ( 94 ) + col2 FROM tab1
----
-162336
-91314
-96387

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

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

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

query I rowsort
SELECT ALL - col1 * - col0 + - 22 FROM tab2 AS cor0
----
1321
195
4580

query I rowsort
SELECT + col1 * col2 + cor0.col2 * + col2 FROM tab2 cor0
----
1566
2090
2210

query I rowsort
SELECT DISTINCT + - 72 + col0 FROM tab1 AS cor0
----
-69
-8
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT ALL - + 35 + + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL - + 35 + + col0 / - col0 AS col1 FROM tab2 AS cor0
----
-36
-36
-36

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

query I rowsort
SELECT + 10 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

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

query I rowsort
SELECT + - col1 + + ( + col2 + - ( + cor0.col0 ) ) FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT col0 + 16 * col2 + col0 FROM tab2 AS cor0
----
446
572
766

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

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

query I rowsort
SELECT - 41 + - 21 AS col2 FROM tab1 cor0
----
-62
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1269
SELECT - - CAST( + col1 AS SIGNED ) * col2 + 6 FROM tab1 AS cor0
----
1254
1410
576

skipif mysql # not compatible
query I rowsort label-1269
SELECT - - CAST ( + col1 AS INTEGER ) * col2 + 6 FROM tab1 AS cor0
----
1254
1410
576

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

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

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

query I rowsort
SELECT ALL - col0 * - col2 + + cor0.col1 * 77 AS col0 FROM tab1 cor0
----
2164
4418
8681

query I rowsort
SELECT DISTINCT 53 + - col1 FROM tab2 AS cor0
----
-6
22
36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - 30 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ecef8ff3fd9cd8f684b103d9b6daa039

query I rowsort
SELECT + col1 + col2 * 83 FROM tab1
----
4508
4741
7981

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

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

query I rowsort
SELECT DISTINCT 36 * cor0.col1 + + 45 - - cor0.col2 FROM tab0 AS cor0
----
3174
3403
3538

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - 79 FROM tab0 AS cor0
----
-103
-114
-168

query I rowsort
SELECT ALL col1 * + 32 AS col1 FROM tab0 AS cor0
----
2752
2912
3104

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

query I rowsort
SELECT ALL + col1 * + 54 AS col1 FROM tab0 AS cor0
----
4644
4914
5238

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT col2 / col1 + col1 col2 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT - - 30 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT - 17 * col2 AS col1 FROM tab1
----
-1632
-918
-969

query I rowsort
SELECT + col2 * - col0 + - ( col2 + + col1 ) * col1 AS col2 FROM tab2
----
-1987
-3937
-7043

query I rowsort
SELECT ALL + col1 - + ( 7 ) FROM tab0 AS cor0
----
79
84
90

query I rowsort
SELECT DISTINCT - col2 * 5 FROM tab2 AS cor0
----
-130
-135
-190

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

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

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

query I rowsort
SELECT ALL - cor0.col0 * 54 + col2 FROM tab1 cor0
----
-108
-3399
-4224

query I rowsort
SELECT DISTINCT + col1 * - 25 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT + col2 + - 99 AS col0 FROM tab2 AS cor0
----
-61
-72
-73

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

query I rowsort
SELECT + col2 * - col2 + - col0 FROM tab2 cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT + - 52 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT ALL + 98 + col1 * - col2 FROM tab2 AS cor0
----
-1436
-548
-739

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL ( - 45 ) + - col2 * 97 AS col0 FROM tab1
----
-5283
-5574
-9357

query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
54
57
96

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

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

query I rowsort
SELECT ALL - + 89 * - col0 AS col1 FROM tab1 AS cor0
----
267
5696
7120

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

query I rowsort
SELECT - 25 * cor0.col1 + col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-572
390
715

query I rowsort
SELECT col1 * - ( + 80 ) FROM tab0
----
-6880
-7280
-7760

query I rowsort
SELECT DISTINCT - 77 * + ( col1 ) FROM tab0 cor0
----
-6622
-7007
-7469

query I rowsort
SELECT DISTINCT 59 + 11 AS col0 FROM tab2 AS cor0
----
70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 83 ) col0 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - cor0.col1 * - ( col2 * - cor0.col1 ) + + col1 * - col0 + cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-15327
-26353
-97136

query I rowsort
SELECT ALL 43 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + col2 * - col2 * - col0 col0 FROM tab1 AS cor0
----
204687
5832
728064

query I rowsort
SELECT col1 + cor0.col0 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
185
3594
7613

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

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

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

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

query I rowsort
SELECT - 67 + 13 AS col2 FROM tab1
----
-54
-54
-54

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

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

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

query I rowsort
SELECT ALL col2 * col1 + - col1 + - col1 AS col1 FROM tab2
----
1416
612
775

query I rowsort
SELECT ALL 27 + - col0 AS col1 FROM tab2
----
-51
-52
20

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab1
----
64

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

query I rowsort
SELECT DISTINCT + 44 * col1 FROM tab0
----
3784
4004
4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT ALL - - 5 DIV col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - - 5 / col1 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - 92 + - col2 FROM tab2 AS cor0
----
-118
-119
-130

query I rowsort
SELECT ALL 91 * col1 AS col1 FROM tab0
----
7826
8281
8827

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT DISTINCT - col1 DIV - ( - col2 * - col0 ) + + col2 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT - col1 / - ( - col2 * - col0 ) + + col2 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - col0 + col2 * + col1 * col1 AS col0 FROM tab1 cor0
----
16144
36501
5636

query I rowsort
SELECT col1 + 2 + col1 * tab2.col1 AS col0 FROM tab2
----
308
3542
994

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) + - tab2.col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT ALL + col1 * - 18 AS col1 FROM tab1 AS cor0
----
-180
-234
-468

onlyif mysql # use DIV operator for integer division
query I rowsort label-1347
SELECT DISTINCT - - col0 * col2 + 21 DIV - col1 AS col2 FROM tab1 AS cor0
----
162
3646
7679

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT - - col0 * col2 + 21 / - col1 AS col2 FROM tab1 AS cor0
----
162
3646
7679

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

query I rowsort
SELECT col2 * ( col0 ) * + tab2.col0 AS col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + 45 + col0 AS col1 FROM tab1 cor0
----
109
125
48

query I rowsort
SELECT ALL 98 + + col1 AS col1 FROM tab2
----
115
129
157

query I rowsort
SELECT - 75 + - col2 AS col2 FROM tab2
----
-101
-102
-113

query I rowsort
SELECT - tab2.col2 + - col1 * - col0 * - col0 AS col0 FROM tab2
----
-106135
-1546
-358982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - ( col0 ) + + col2 col0 FROM tab0 AS cor0
----
2097
3396
8181

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

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

query I rowsort
SELECT - - 96 * + 52 AS col2 FROM tab0 cor0
----
4992
4992
4992

query I rowsort
SELECT DISTINCT - 48 * - col0 AS col1 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT - ( 87 ) FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - - 75 * col2 FROM tab1 cor0
----
4050
4275
7200

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

query I rowsort
SELECT ALL - col0 + + 21 + - col2 FROM tab0 AS cor0
----
-15
-150
-36

query I rowsort
SELECT + col0 + 6 * col1 FROM tab0 AS cor0
----
540
617
635

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

query I rowsort
SELECT col0 * 79 + + col1 FROM tab0 AS cor0
----
1982
2862
7122

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1366
SELECT + col0 * + cor0.col0 + cor0.col1 DIV - cor0.col0 FROM tab1 AS cor0
----
1
4096
6400

skipif mysql # not compatible
query I rowsort label-1366
SELECT + col0 * + cor0.col0 + cor0.col1 / - cor0.col0 FROM tab1 AS cor0
----
1
4096
6400

query I rowsort
SELECT + col2 + - 42 FROM tab0 AS cor0
----
-41
-9
40

query I rowsort
SELECT - cor0.col2 * col1 + 50 AS col0 FROM tab1 AS cor0
----
-1198
-1354
-520

query I rowsort
SELECT - col2 + + col0 + col1 * + col2 FROM tab0 AS cor0
----
131
2829
7469

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

skipif mysql # not compatible
query I rowsort label-1370
SELECT CAST ( + 73 AS INTEGER ) * + col0 + + col0 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT ( ( cor0.col1 ) ) FROM tab1 cor0
----
10
13
26

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

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

query I rowsort
SELECT - 53 * col0 + + cor0.col2 FROM tab0 AS cor0
----
-1239
-1854
-4635

query I rowsort
SELECT - 67 + - col0 FROM tab0 AS cor0
----
-102
-156
-91

query I rowsort
SELECT - tab0.col1 * 19 FROM tab0, tab2 AS cor0
----
9 values hashing to 98809c23be637c38a4fa37bc942368f1

query I rowsort
SELECT cor0.col0 + col2 * ( + col0 ) * + col1 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT - - 3 * col2 FROM tab0 cor0
----
246
3
99

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

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

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

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

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

query I rowsort
SELECT ALL - 64 + col1 AS col0 FROM tab2
----
-33
-47
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT ALL + col1 * col1 DIV + ( ( col1 ) ) + tab2.col1 FROM tab2
----
118
34
62

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + col1 * col1 / + ( ( col1 ) ) + tab2.col1 FROM tab2
----
118
34
62

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

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

query I rowsort
SELECT 45 * tab0.col2 FROM tab0
----
1485
3690
45

query I rowsort
SELECT - 18 AS col2 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT + col2 * + col0 * - col0 + - col0 FROM tab2 AS cor0
----
-1330
-158262
-237237

query I rowsort
SELECT ALL col0 + ( - cor0.col2 + col0 ) FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT - - cor0.col0 + 17 * col0 AS col1 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT ALL 63 FROM tab2
----
63
63
63

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

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

query I rowsort
SELECT - col0 * col0 * + ( col0 ) AS col2 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT col2 * + ( col0 ) * + col2 AS col1 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT DISTINCT + tab2.col1 DIV + 62 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT + tab2.col1 / + 62 AS col1 FROM tab2
----
0

query I rowsort
SELECT col0 + - 61 * + col1 FROM tab1 AS cor0
----
-1583
-546
-713

query I rowsort
SELECT ALL - col2 + tab1.col1 * - 99 + + col2 AS col0 FROM tab1
----
-1287
-2574
-990

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

query I rowsort
SELECT - col2 * 38 AS col1 FROM tab2 cor0
----
-1026
-1444
-988

query I rowsort
SELECT ALL - 21 AS col0 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT + ( tab1.col1 * + cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 819d50aeaf27d8e4e8dec203fb8f53ce

query I rowsort
SELECT DISTINCT + 99 * col0 * col1 FROM tab1
----
102960
63360
7722

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

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

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

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

query I rowsort
SELECT ALL - + 84 * + cor0.col2 + + 4 * - cor0.col2 - + cor0.col0 FROM tab2 AS cor0
----
-2366
-2383
-3423

query I rowsort
SELECT ALL + col0 + col0 * + ( 39 ) FROM tab0 cor0
----
1400
3560
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 * + col0 col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + col0 * col0 + ( 12 * + col0 + col1 ) AS col1 FROM tab1 AS cor0
----
4874
71
7373

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

query I rowsort
SELECT col1 * - col1 + 77 FROM tab1 AS cor0
----
-23
-599
-92

query I rowsort
SELECT - col1 * - col0 - col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT + - col1 + col1 * col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
1892
3201
7917

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * + tab2.col0 col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT ( + 12 ) FROM tab2, tab2 AS cor0, tab2 cor1
----
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-1418
SELECT DISTINCT 82 DIV - col0 FROM tab1
----
-1
-27

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT 82 / - col0 FROM tab1
----
-1
-27

query I rowsort
SELECT 43 + 69 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5c4ae8b46ba4e16a3d91639b0f9e6a91

query I rowsort
SELECT + + col1 + - col1 * 86 AS col1 FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT DISTINCT - + col2 + col1 * - 9 FROM tab0 AS cor0
----
-807
-874
-901

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

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

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

query I rowsort
SELECT DISTINCT col2 * + 46 + - col1 AS col0 FROM tab1
----
2458
2612
4403

onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT 44 DIV + 29 FROM tab0, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-1426
SELECT 44 / + 29 FROM tab0, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab2, tab1, tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1428
SELECT - col1 - - CAST( - tab2.col1 AS SIGNED ) FROM tab2
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-1428
SELECT - col1 - - CAST ( - tab2.col1 AS INTEGER ) FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + col1 - - 91 * - col1 FROM tab0
----
-7740
-8190
-8730

query I rowsort
SELECT + 61 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

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

query I rowsort
SELECT ALL - col1 + 47 * tab0.col0 FROM tab0
----
1042
1548
4092

query I rowsort
SELECT DISTINCT - 49 + 99 AS col1 FROM tab0 AS cor0
----
50

query I rowsort
SELECT ALL - - 19 AS col1 FROM tab1 AS cor0
----
19
19
19

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

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

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

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

query I rowsort
SELECT ALL col1 * col1 + - col1 + ( col2 + - col1 ) * col2 AS col2 FROM tab2 cor0
----
1070
2564
822

query I rowsort
SELECT + col0 + + 81 AS col2 FROM tab1 AS cor0
----
145
161
84

query I rowsort
SELECT DISTINCT - + 41 + 48 AS col1 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL + + 58 * col0 AS col1 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT DISTINCT - ( - 68 ) + col0 FROM tab2 cor0
----
146
147
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 - 62 * + col1 col2 FROM tab1 AS cor0
----
-1681
-689
-875

query I rowsort
SELECT DISTINCT - ( 74 ) + col1 FROM tab2 AS cor0
----
-15
-43
-57

query I rowsort
SELECT ALL - - ( col0 ) + - cor0.col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT 53 * cor0.col1 + - col0 * cor0.col0 + col2 FROM tab2 AS cor0
----
-2931
-5302
1621

query I rowsort
SELECT DISTINCT + col1 * 88 FROM tab2 cor0
----
1496
2728
5192

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

query I rowsort
SELECT - 10 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-263
-301

onlyif mysql # use DIV operator for integer division
query I rowsort label-1450
SELECT ( + col2 ) DIV - col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1450
SELECT ( + col2 ) / - col1 AS col0 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ( - 14 ) FROM tab0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + 46 FROM tab1, tab1 cor0
----
46

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

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

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

query I rowsort
SELECT DISTINCT - 86 + - cor0.col1 FROM tab2 cor0
----
-103
-117
-145

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1458
SELECT + + col0 + col2 DIV col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-1458
SELECT + + col0 + col2 / col0 FROM tab2 AS cor0
----
10
78
79

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

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

skipif mysql # not compatible
query I rowsort label-1460
SELECT + col1 * col2 + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1508
608
810

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

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

query I rowsort
SELECT - 22 + col1 AS col2 FROM tab2 AS cor0
----
-5
37
9

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

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

query I rowsort
SELECT ALL + 15 + + tab1.col2 AS col2 FROM tab1
----
111
69
72

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

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

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

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

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

query I rowsort
SELECT ALL + col0 + + 39 + + ( - cor0.col2 * + ( - col0 ) ) FROM tab0 AS cor0
----
109
7426
855

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

query I rowsort
SELECT ALL col1 * col1 * col1 + col1 FROM tab0 cor0
----
636142
753662
912770

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

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

query I rowsort
SELECT ALL + - col0 * - 74 FROM tab1 AS cor0
----
222
4736
5920

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

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

query I rowsort
SELECT 68 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col1 FROM tab0, tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL 90 * + col1 FROM tab1
----
1170
2340
900

query I rowsort
SELECT + 19 + + 36 FROM tab2 AS cor0
----
55
55
55

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

query I rowsort
SELECT ALL - 32 AS col0 FROM tab0
----
-32
-32
-32

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

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + ( col0 ) / ( col0 + col1 ) FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + - col2 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - col1 * + 88 + cor0.col1 * col1 FROM tab2 AS cor0
----
-1207
-1711
-1767

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0, tab0 cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT 53 * - tab0.col2 * - 57 AS col1 FROM tab0
----
247722
3021
99693

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

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

query I rowsort
SELECT 59 + 9 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

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

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

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

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

query I rowsort
SELECT + col2 + - 27 FROM tab0 AS cor0
----
-26
55
6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1494
SELECT col0 DIV col0 - - col1 AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1494
SELECT col0 / col0 - - col1 AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT - col0 + + 52 * - col0 FROM tab0 cor0
----
-1272
-1855
-4717

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

query I rowsort
SELECT + - col0 + + col1 * - col0 * col0 AS col2 FROM tab0 AS cor0
----
-118860
-49560
-720900

query I rowsort
SELECT col2 + ( col1 ) AS col0 FROM tab2 AS cor0
----
55
58
85

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

query I rowsort
SELECT ALL + ( 11 ) + + col1 AS col1 FROM tab0 AS cor0
----
102
108
97

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

query I rowsort
SELECT - 23 + - col0 AS col2 FROM tab2 AS cor0
----
-101
-102
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col0 FROM tab1, tab1 cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col2 col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1505
SELECT - + cor0.col1 DIV - 13 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fe7c31b40b0fa8b60844d34bde5faffc

skipif mysql # not compatible
query I rowsort label-1505
SELECT - + cor0.col1 / - 13 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fe7c31b40b0fa8b60844d34bde5faffc

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

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

query I rowsort
SELECT - tab0.col2 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

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

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

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

query I rowsort
SELECT 84 * - col1 AS col0 FROM tab1 AS cor0
----
-1092
-2184
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 * col2 + - ( col0 ) col0 FROM tab2 AS cor0
----
1061
702
803

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

query I rowsort
SELECT ALL + 64 * col0 - - col2 FROM tab1 AS cor0
----
246
4153
5216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1515
SELECT DISTINCT 93 DIV col0 + col0 col1 FROM tab1 AS cor0
----
34
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT 93 / col0 + col0 col1 FROM tab1 AS cor0
----
34
65
81

query I rowsort
SELECT ALL 59 * - col2 + + col1 FROM tab0 cor0
----
-1861
-4747
38

query I rowsort
SELECT DISTINCT + - col2 * - 9 AS col1 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT ALL + col2 * - 85 FROM tab1 AS cor0
----
-4590
-4845
-8160

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * + 32 + ( + col2 ) * + 62 FROM tab0 AS cor0
----
-3042
-706
2172

query I rowsort
SELECT col2 + + ( ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 76 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT col1 + + 0 * 29 FROM tab1 AS cor0
----
10
13
26

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

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 52 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL + - ( col0 ) + col2 * + 33 FROM tab1 AS cor0
----
1779
1817
3088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col1 ) col0 FROM tab2 AS cor0
----
17
31
59

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

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

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

query I rowsort
SELECT + + 34 + col0 AS col2 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT - tab0.col1 * + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5e05f50cc51e966d7e055a113d30a5e0

query I rowsort
SELECT 11 * + cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 3cc87622a8962ac006100580f8aa516b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT 12 DIV 3 + + cor1.col2 DIV 87 FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46

skipif mysql # not compatible
query I rowsort label-1539
SELECT 12 / 3 + + cor1.col2 / 87 FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1541
SELECT CAST( col2 AS SIGNED ) * - col0 * - col2 FROM tab1
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-1541
SELECT CAST ( col2 AS INTEGER ) * - col0 * - col2 FROM tab1
----
207936
737280
8748

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

query I rowsort
SELECT DISTINCT - - col0 + 5 * + 24 + - col2 AS col1 FROM tab0 cor0
----
111
127
154

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1547
SELECT - col0 * - col0 DIV col0 + - col0 + - 54 AS col0 FROM tab2 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-1547
SELECT - col0 * - col0 / col0 + - col0 + - 54 AS col0 FROM tab2 AS cor0
----
-54
-54
-54

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

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

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

query I rowsort
SELECT ALL - col0 + col1 - tab2.col1 FROM tab2
----
-7
-78
-79

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT - + col1 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( tab0.col0 * col1 + - col2 ) col2 FROM tab0
----
1998
3393
7935

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1559
SELECT ALL col1 * col0 DIV + tab1.col1 + col2 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL col1 * col0 / + tab1.col1 + col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 + - col2 col1 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - col1 * + col0 + + tab2.col1 * col0 FROM tab2
----
0

query I rowsort
SELECT ALL ( 64 ) AS col0 FROM tab1
----
64
64
64

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

query I rowsort
SELECT DISTINCT - + ( tab1.col0 ) * cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
9 values hashing to ec78515ecc610830fe02f4a5c8d4e4d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 70 col1 FROM tab0
----
6020
6370
6790

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

query I rowsort
SELECT - col0 * col2 + 5 AS col1 FROM tab2 AS cor0
----
-184
-2023
-2997

query I rowsort
SELECT ALL 79 + + col1 FROM tab2 AS cor0
----
110
138
96

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

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

query I rowsort
SELECT ALL - col2 * 21 AS col2 FROM tab0
----
-1722
-21
-693

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1573
SELECT 35 * + col0 * - CAST( col1 AS SIGNED ) + col2 * - col0 - - col1 AS col2 FROM tab2 AS cor0
----
-163039
-49990
-7753

skipif mysql # not compatible
query I rowsort label-1573
SELECT 35 * + col0 * - CAST ( col1 AS INTEGER ) + col2 * - col0 - - col1 AS col2 FROM tab2 AS cor0
----
-163039
-49990
-7753

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

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

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

query I rowsort
SELECT - ( + col1 ) * - ( + 13 ) - col2 FROM tab0 AS cor0
----
1085
1101
1260

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

query I rowsort
SELECT DISTINCT + 49 + col2 AS col1 FROM tab2 cor0
----
75
76
87

query I rowsort
SELECT ALL 60 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
170280
447720
5820

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

skipif mysql # not compatible
query I rowsort label-1580
SELECT + 44 + - col1 / + col1 FROM tab1 AS cor0
----
43
43
43

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

query I rowsort
SELECT - - 93 * - col2 * - ( col0 ) FROM tab2 cor0
----
17577
188604
279186

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

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

query I rowsort
SELECT ALL + 77 * - col1 + + col0 FROM tab2 AS cor0
----
-1230
-2380
-4465

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 + - ( col2 + tab1.col2 ) col2 FROM tab1
----
-125
-131
-60

query I rowsort
SELECT ALL - 91 AS col0 FROM tab0
----
-91
-91
-91

query I rowsort
SELECT 75 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab1, tab2 AS cor0
----
7

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1592
SELECT - CAST( 26 AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

skipif mysql # not compatible
query I rowsort label-1592
SELECT - CAST ( 26 AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

query I rowsort
SELECT + col1 - - col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - - col0 * + 48 * + col1 AS col2 FROM tab2 AS cor0
----
10416
220896
64464

query I rowsort
SELECT + + col2 + - col1 * + col0 + col2 FROM tab2 cor0
----
-1267
-163
-4550

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

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

query I rowsort
SELECT - col0 + col1 + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
185
3594
7613

query I rowsort
SELECT + col0 - - 35 FROM tab0 AS cor0
----
124
59
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1600
SELECT - cor0.col0 * 87 - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-609
-6787
-6877

skipif mysql # not compatible
query I rowsort label-1600
SELECT - cor0.col0 * 87 - col0 / col1 AS col2 FROM tab2 AS cor0
----
-609
-6787
-6877

query I rowsort
SELECT - col0 * - 57 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT DISTINCT - ( - 38 ) * - col1 * - ( col1 ) + - cor0.col0 FROM tab2 AS cor0
----
10903
132200
36511

query I rowsort
SELECT - 85 * col0 FROM tab1 AS cor0
----
-255
-5440
-6800

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + 99 AS REAL ) * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
724
7781
7838

query I rowsort
SELECT DISTINCT - col1 * + 73 AS col1 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT - 45 * + col1 + - col1 FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT ALL - + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

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

query I rowsort
SELECT DISTINCT + 91 * - cor0.col1 AS col0 FROM tab0 cor0
----
-7826
-8281
-8827

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( - col1 ) + 84 col0 FROM tab0 AS cor0
----
194
216
264

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

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

query I rowsort
SELECT DISTINCT + + ( + 9 ) - col0 FROM tab1 AS cor0
----
-55
-71
6

query I rowsort
SELECT ALL + - 91 AS col0 FROM tab2 AS cor0
----
-91
-91
-91

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

query I rowsort
SELECT ALL - col2 * cor0.col0 * col1 + col1 * 8 FROM tab0 cor0
----
-2619
-663390
-67424

query I rowsort
SELECT DISTINCT + col1 * col1 * col2 + - ( + col0 * col0 ) - ( + col0 * - col2 ) FROM tab0 cor0
----
244284
678419
8219

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

query I rowsort
SELECT ALL - ( col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - - col1 - - col1 AS col1 FROM tab1 AS cor0
----
20
26
52

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

query I rowsort
SELECT - 99 FROM tab1, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT - - 77 * col1 AS col2 FROM tab2 cor0
----
1309
2387
4543

query I rowsort
SELECT - cor0.col0 * - 69 FROM tab2 AS cor0
----
483
5382
5451

onlyif mysql # use DIV operator for integer division
query I rowsort label-1628
SELECT 84 * 30 DIV tab0.col2 AS col0 FROM tab0
----
2520
30
76

skipif mysql # not compatible
query I rowsort label-1628
SELECT 84 * 30 / tab0.col2 AS col0 FROM tab0
----
2520
30
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1629
SELECT - CAST( col0 AS SIGNED ) * + col1 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-1629
SELECT - CAST ( col0 AS INTEGER ) * + col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 * + ( + col1 * 5 ) FROM tab0 AS cor0
----
-36980
-41405
-47045

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - ( - ( col0 ) ) col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col0 + + col2 * - 53 * - 25 FROM tab2 cor0
----
34372
35768
50271

onlyif mysql # use DIV operator for integer division
query I rowsort label-1634
SELECT ALL - col1 DIV col0 + - ( 82 ) * + col0 FROM tab2 cor0
----
-578
-6396
-6478

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL - col1 / col0 + - ( 82 ) * + col0 FROM tab2 cor0
----
-578
-6396
-6478

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1635
SELECT DISTINCT col1 + cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT col1 + cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT ALL col2 DIV - col1 col0 FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL col2 / - col1 col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT col2 + 67 FROM tab2 AS cor0
----
105
93
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 1 col2 FROM tab1
----
53
56
95

query I rowsort
SELECT + col0 + + col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - col0 + - 18 * col1 FROM tab1 AS cor0
----
-244
-314
-471

query I rowsort
SELECT - 19 * + col0 AS col0 FROM tab1 AS cor0
----
-1216
-1520
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1642
SELECT ALL + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 48 * 15 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 2fc169fc84f9b9e26981abb16aba353c

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + 4 - + col2 * + col0 FROM tab2
----
-185
-2024
-2998

query I rowsort
SELECT + tab1.col1 + col0 + 39 FROM tab1
----
113
132
68

query I rowsort
SELECT + + col1 * - col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT - col2 * cor0.col1 DIV - col1 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1648
SELECT - col2 * cor0.col1 / - col1 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1650
SELECT + tab1.col0 DIV col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1650
SELECT + tab1.col0 / col1 FROM tab1
----
0
6
6

query I rowsort
SELECT DISTINCT 76 * - 47 AS col1 FROM tab0
----
-3572

query I rowsort
SELECT DISTINCT - col2 * + 17 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT DISTINCT col2 + col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT col0 + - ( + 33 ) FROM tab2 AS cor0
----
-26
45
46

query I rowsort
SELECT ALL - col2 + 93 * + ( + col0 ) * 29 AS col2 FROM tab1 AS cor0
----
172551
215664
8037

query I rowsort
SELECT DISTINCT col2 * 28 FROM tab2 AS cor0
----
1064
728
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1657
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) * + col1 * col2 col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) * + col1 * col2 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * + 89 + + col0 AS col0 FROM tab2 AS cor0
----
2392
2410
3461

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1659
SELECT + + col1 * - CAST( ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-1659
SELECT + + col1 * - CAST ( ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 36 + + col2 FROM tab1
----
132
90
93

query I rowsort
SELECT ( + 19 ) FROM tab0
----
19
19
19

query I rowsort
SELECT - - ( col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL cor0.col2 * tab0.col2 + cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f9b07616fa668cb5aa3ccc58b6ae761a

query I rowsort
SELECT col0 + - 18 * col1 FROM tab2
----
-227
-551
-984

query I rowsort
SELECT DISTINCT - col1 * 16 * - cor0.col1 AS col1 FROM tab2 cor0
----
15376
4624
55696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 67 + - col0 col2 FROM tab2 AS cor0
----
-11
-12
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT ALL cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL cor0.col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + 39 * col1 + col2 FROM tab1 AS cor0
----
1068
447
603

onlyif mysql # use DIV operator for integer division
query I rowsort label-1670
SELECT DISTINCT + + col1 * + 40 - - col2 * CAST( col1 AS SIGNED ) DIV col2 AS col2 FROM tab0 AS cor0
----
3526
3731
3977

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT + + col1 * + 40 - - col2 * CAST ( col1 AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
3526
3731
3977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 74 * col1 * - col0 col1 FROM tab0 cor0
----
152760
251265
599415

query I rowsort
SELECT DISTINCT + 77 * 81 + + col0 FROM tab0 AS cor0
----
6261
6272
6326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 + col2 * - col0 col2 FROM tab1 AS cor0
----
-108
-3594
-7626

query I rowsort
SELECT ALL - + col1 + + 69 * col2 AS col2 FROM tab2 AS cor0
----
1735
1832
2605

query I rowsort
SELECT - - 24 * 25 FROM tab1 AS cor0
----
600
600
600

query I rowsort
SELECT DISTINCT - - 24 AS col0 FROM tab0 AS cor0
----
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1677
SELECT - - CAST( - 52 AS SIGNED ) FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-1677
SELECT - - CAST ( - 52 AS INTEGER ) FROM tab2 AS cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 * - col1 + 91 * 46 + col2 FROM tab1 AS cor0
----
4813
5530
5644

query I rowsort
SELECT ALL - col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + - cor0.col1 + col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT - col0 + + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-1682
SELECT - col0 + + col2 / + col2 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ALL - - ( col2 ) AS col1 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT - 72 DIV col1 + col1 * + col0 FROM tab2 AS cor0
----
1339
215
4601

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 72 / col1 + col1 * + col0 FROM tab2 AS cor0
----
1339
215
4601

query I rowsort
SELECT DISTINCT + 21 * col0 AS col1 FROM tab0 AS cor0
----
1869
504
735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * 27 col1 FROM tab1 AS cor0
----
-270
-351
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1687
SELECT ALL CAST( NULL AS SIGNED ) * - col0 / - col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 / - col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) + col2 col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - col2 + col2 + - 77 AS col2 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - col2 * 99 + + col0 FROM tab2 AS cor0
----
-2496
-2666
-3683

query I rowsort
SELECT ALL - cor0.col0 + - col1 + + ( + col0 ) * - col1 FROM tab1 AS cor0
----
-107
-1133
-714

query I rowsort
SELECT + col1 * col2 + tab2.col1 AS col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - - col2 + + ( cor0.col0 ) FROM tab1 cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1694
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 94 col2 FROM tab0, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 94 col2 FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1695
SELECT DISTINCT - col0 DIV 15 AS col1 FROM tab0 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - col0 / 15 AS col1 FROM tab0 AS cor0
----
-1
-2
-5

query I rowsort
SELECT + 24 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT DISTINCT + 46 + col2 AS col2 FROM tab0
----
128
47
79

query I rowsort
SELECT ALL - col0 * 2 - col1 * + cor0.col2 FROM tab2 cor0
----
-1690
-804
-851

query I rowsort
SELECT DISTINCT + col2 * - 30 AS col1 FROM tab1 AS cor0
----
-1620
-1710
-2880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1700
SELECT - cor0.col0 DIV 66 + ( + col1 ) FROM tab2 AS cor0
----
16
31
58

skipif mysql # not compatible
query I rowsort label-1700
SELECT - cor0.col0 / 66 + ( + col1 ) FROM tab2 AS cor0
----
16
31
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1701
SELECT - col2 + col0 DIV 93 AS col0 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1701
SELECT - col2 + col0 / 93 AS col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + ( 19 ) + + col2 FROM tab2 AS cor0
----
45
46
57

query I rowsort
SELECT ALL - - col0 * 92 AS col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT + - 45 * + col0 AS col0 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT + col0 * - col2 + col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT col1 + - tab0.col1 * - col0 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - 53 + - col2 * col1 * col0 FROM tab2
----
-119705
-51087
-5912

query I rowsort
SELECT ALL + col0 * - col1 * - col1 AS col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - col0 + 77 AS col0 FROM tab2
----
-1
-2
70

query I rowsort
SELECT 76 + - col2 AS col1 FROM tab1 AS cor0
----
-20
19
22

query I rowsort
SELECT ALL + col2 + col0 + - col0 * - col1 AS col0 FROM tab2
----
1460
251
4706

onlyif mysql # use DIV operator for integer division
query I rowsort label-1712
SELECT - + cor0.col2 DIV - 13 + col1 DIV + col0 + col2 FROM tab2 AS cor0
----
28
33
40

skipif mysql # not compatible
query I rowsort label-1712
SELECT - + cor0.col2 / - 13 + col1 / + col0 + col2 FROM tab2 AS cor0
----
28
33
40

query I rowsort
SELECT 97 + + col0 * - col0 * col0 AS col0 FROM tab0
----
-13727
-42778
-704872

query I rowsort
SELECT + col0 + col1 * 14 * col0 FROM tab0 AS cor0
----
113475
28920
47565

query I rowsort
SELECT DISTINCT + col1 + tab0.col2 AS col2 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * - col0 * - col0 col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL 51 * col2 FROM tab0
----
1683
4182
51

query I rowsort
SELECT DISTINCT - col2 * 93 FROM tab1 AS cor0
----
-5022
-5301
-8928

query I rowsort
SELECT ALL col0 * col0 * + col0 AS col2 FROM tab0 cor0
----
13824
42875
704969

query I rowsort
SELECT 91 * + cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bb8b0ae7730338f8d9e91a83d5538a6

query I rowsort
SELECT cor0.col1 + col1 * col2 + col0 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT - - col0 * - col0 + - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT col0 * - 92 AS col1 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT ALL + 87 AS col0 FROM tab2
----
87
87
87

query I rowsort
SELECT + tab1.col1 * + col0 + tab1.col0 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL - 43 AS col2 FROM tab0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 + cor0.col2 col0 FROM tab0 AS cor0
----
16
48
97

query I rowsort
SELECT ALL - col1 * col1 - + col2 * + 8 FROM tab2 AS cor0
----
-1177
-3689
-593

query I rowsort
SELECT ALL col1 + - ( 8 * col1 + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-555
-569
-678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1731
SELECT DISTINCT + col2 + + CAST( NULL AS DECIMAL ) - + col0 * + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) - + col0 * + col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1733
SELECT ALL cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + col1 - + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + - 70 AS col2 FROM tab0 AS cor0
----
-105
-159
-94

query I rowsort
SELECT - - col0 * col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT col1 DIV - 23 + col1 FROM tab1 AS cor0
----
10
13
25

skipif mysql # not compatible
query I rowsort label-1738
SELECT col1 / - 23 + col1 FROM tab1 AS cor0
----
10
13
25

query I rowsort
SELECT col0 + - 47 * col2 AS col2 FROM tab2 AS cor0
----
-1144
-1262
-1707

query I rowsort
SELECT 83 * + col1 AS col0 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT - - 11 * - 44 AS col0 FROM tab1 AS cor0
----
-484
-484
-484

query I rowsort
SELECT - col1 * + col2 * + col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
-21546
-22410
-37856

query I rowsort
SELECT + col0 + 22 * col2 FROM tab0 AS cor0
----
1893
57
750

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1744
SELECT ALL + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 51 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT + col0 + 9 AS col0 FROM tab1 cor0
----
12
73
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1747
SELECT 58 + + 50 DIV - col0 AS col1 FROM tab2 AS cor0
----
51
58
58

skipif mysql # not compatible
query I rowsort label-1747
SELECT 58 + + 50 / - col0 AS col1 FROM tab2 AS cor0
----
51
58
58

skipif mysql # not compatible
query I rowsort
SELECT ALL tab1.col1 * + CAST ( col2 * col2 AS REAL ) + col2 AS col1 FROM tab1
----
119904
32547
75870

query I rowsort
SELECT - - ( + 9 ) * + col0 AS col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT + - 5 + cor0.col2 FROM tab0 cor0
----
-4
28
77

query I rowsort
SELECT + + col2 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - 24 * cor0.col0 + 80 AS col2 FROM tab1 AS cor0
----
-1456
-1840
8

query I rowsort
SELECT + + 72 + - col2 + + col2 AS col1 FROM tab1 AS cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 2 col1 FROM tab1 cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + 78 + - col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1756
SELECT DISTINCT col2 * - col2 + + col2 * CAST( 15 + tab0.col2 AS SIGNED ) col1 FROM tab0
----
1230
15
495

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT col2 * - col2 + + col2 * CAST ( 15 + tab0.col2 AS INTEGER ) col1 FROM tab0
----
1230
15
495

query I rowsort
SELECT 7 + col1 * col0 AS col0 FROM tab1
----
1047
647
85

query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + 21 * + col1 AS col1 FROM tab1
----
210
273
546

query I rowsort
SELECT DISTINCT 2 FROM tab2
----
2

query I rowsort
SELECT + col2 - - tab1.col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT + col0 - - tab1.col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + col2 * + col0 + col2 * 59 - col0 * col2 AS col2 FROM tab2
----
1534
1593
2242

query I rowsort
SELECT cor0.col2 * + cor0.col1 + col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT - 17 DIV - col1 + 58 * - col0 * - col1 FROM tab0 cor0
----
119712
196910
469742

skipif mysql # not compatible
query I rowsort label-1765
SELECT - 17 / - col1 + 58 * - col0 * - col1 FROM tab0 cor0
----
119712
196910
469742

query I rowsort
SELECT + col1 * + col0 + + col2 * + 62 + col1 FROM tab1 AS cor0
----
3452
4184
7005

query I rowsort
SELECT 72 * col1 AS col2 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT DISTINCT - 38 + - col1 * col2 FROM tab1 AS cor0
----
-1286
-1442
-608

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col0 * col2 * + 28 FROM tab2
----
5292
56784
84056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - 15 FROM tab2, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col2 + + 96 * col0 AS col1 FROM tab0 AS cor0
----
2271
3359
8462

query I rowsort
SELECT 46 + - col2 AS col2 FROM tab1 AS cor0
----
-11
-50
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - 3 - col2 * col2 FROM tab0 cor0
----
-1092
-4
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 85 ) col1 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - 5 - + cor0.col1 * 21 AS col0 FROM tab2, tab1 AS cor0
----
-215
-278
-551

query I rowsort
SELECT DISTINCT - ( 63 ) * + col1 FROM tab2 cor0
----
-1071
-1953
-3717

query I rowsort
SELECT ALL - 6 * col0 AS col2 FROM tab2 AS cor0
----
-42
-468
-474

query I rowsort
SELECT ALL - col2 + 98 * 53 AS col0 FROM tab1 AS cor0
----
5098
5137
5140

query I rowsort
SELECT DISTINCT - col0 + + ( + col0 ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col2 + 97 FROM tab2 AS cor0
----
123
124
135

query I rowsort
SELECT col1 * + 31 AS col2 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT DISTINCT + 51 + col2 AS col1 FROM tab0 AS cor0
----
133
52
84

query I rowsort
SELECT DISTINCT + + 95 + + 69 FROM tab1 AS cor0
----
164

query I rowsort
SELECT + - 53 * - col1 AS col1 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT ALL 7 * cor0.col2 AS col1 FROM tab2 cor0
----
182
189
266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - 80 + + col1 col0 FROM tab2 AS cor0
----
591
6299
6337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab1, tab0 cor0
----
-67

query I rowsort
SELECT 31 * + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b1c1fdf260c1cb6beddfa17bb2f6ec71

query I rowsort
SELECT DISTINCT ( 12 ) * + cor0.col2 FROM tab0 AS cor0
----
12
396
984

query I rowsort
SELECT ( col0 ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL ( 49 ) FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT 16 * + col2 AS col2 FROM tab1
----
1536
864
912

query I rowsort
SELECT DISTINCT - ( col0 ) + + 40 * col2 FROM tab2 cor0
----
1073
1441
962

query I rowsort
SELECT ALL + col0 - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + + 29 + + col1 * col0 FROM tab1 AS cor0
----
1069
107
669

query I rowsort
SELECT ALL + 82 + col0 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT ALL cor0.col1 - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + 38 + col1 FROM tab1 AS cor0
----
48
51
64

query I rowsort
SELECT DISTINCT - 65 * col2 + ( - 53 ) * col0 AS col0 FROM tab1 AS cor0
----
-10480
-3669
-7097

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT - - col2 DIV - 19 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT - - col2 / - 19 FROM tab0 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + cor0.col1 * 6 AS col2 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT - col0 * ( - 80 ) AS col0 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT DISTINCT - col2 + 13 * 32 AS col2 FROM tab0 AS cor0
----
334
383
415

query I rowsort
SELECT DISTINCT + cor0.col0 + - 35 * 80 * - col2 FROM tab1 AS cor0
----
151203
159664
268880

query I rowsort
SELECT ALL - + col1 * + col2 + + 47 * - col1 + col1 FROM tab1 AS cor0
----
-1030
-1846
-2600

query I rowsort
SELECT DISTINCT + - col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 * + ( 73 * col2 ) + + 32 AS col0 FROM tab2 AS cor0
----
105444
49380
53249

query I rowsort
SELECT ALL - col2 + - ( 75 ) AS col0 FROM tab2 cor0
----
-101
-102
-113

query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 + - 44 FROM tab0 AS cor0
----
1181
532
7877

query I rowsort
SELECT + - col1 + ( col2 ) * - col1 * col0 FROM tab2 AS cor0
----
-119711
-51051
-5890

query I rowsort
SELECT ALL - - col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * ( - col2 + - cor0.col2 ) FROM tab0 AS cor0
----
-13448
-2
-2178

query I rowsort
SELECT DISTINCT + col1 - - 34 FROM tab1 AS cor0
----
44
47
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT ALL 84 DIV 72 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL 84 / 72 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT - col1 + ( 72 ) FROM tab0 AS cor0
----
-14
-19
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-1821
SELECT ALL col1 + col1 DIV - 48 FROM tab2 AS cor0
----
17
31
58

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL col1 + col1 / - 48 FROM tab2 AS cor0
----
17
31
58

query I rowsort
SELECT ALL + tab2.col1 + - col2 FROM tab2
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1823
SELECT ALL + cor0.col0 * CAST( col0 + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-69
3456
5360

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + cor0.col0 * CAST ( col0 + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-69
3456
5360

query I rowsort
SELECT - col1 * + col2 * - ( + col1 ) + col2 * col1 AS col1 FROM tab1 AS cor0
----
17472
37908
6270

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT + col1 DIV ( cor0.col1 ) + col0 col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1826
SELECT + col1 / ( cor0.col1 ) + col0 col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - col2 * col2 * 65 + col2 * ( - cor0.col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-100
-1035496
-96921

query I rowsort
SELECT - + ( + ( col1 ) ) * + ( cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT 30 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT + + col1 * + 44 AS col2 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1832
SELECT col0 * - CAST( + col2 AS SIGNED ) * + col1 AS col0 FROM tab2
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-1832
SELECT col0 * - CAST ( + col2 AS INTEGER ) * + col1 AS col0 FROM tab2
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 - - 2 col1 FROM tab2 AS cor0
----
191
2030
3004

query I rowsort
SELECT + col0 * - col0 + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - cor0.col1 * col0 + col0 * col1 + - col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 10 + col0 * 86 * col1 AS col1 FROM tab2 AS cor0
----
115488
18652
395762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 - + col1 col2 FROM tab0 cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col0 + col1 col1 FROM tab0
----
7300
854
97

query I rowsort
SELECT DISTINCT + col2 + - tab2.col0 + - tab2.col0 * + ( - col0 * col2 ) FROM tab2
----
1343
158132
237117

query I rowsort
SELECT ALL + col2 + + col1 * col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ( + 80 ) + col2 + + ( + col2 ) * - col0 AS col2 FROM tab0
----
-679
-7136
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * col1 col2 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1843
SELECT ALL tab1.col0 * + col0 + - col1 * col2 DIV - col0 AS col1 FROM tab1
----
4104
477
6415

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL tab1.col0 * + col0 + - col1 * col2 / - col0 AS col1 FROM tab1
----
4104
477
6415

query I rowsort
SELECT + 53 + - col2 AS col2 FROM tab1
----
-1
-4
-43

query I rowsort
SELECT - 96 * + col2 + + 76 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10204
-6232
-7160

query I rowsort
SELECT ALL - + 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col1 + + cor0.col1 + + 66 AS col0 FROM tab0 AS cor0
----
238
248
260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1848
SELECT ALL + cor0.col2 * col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + cor0.col2 * col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 3 * - col0 + - col0 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT DISTINCT + 54 + col2 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT ALL - - ( cor1.col2 ) * cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a584dbed06a50254bcac9acbc3ee58b4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT tab0.col0 DIV col1 - col1 DIV - col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1852
SELECT tab0.col0 / col1 - col1 / - col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 col0 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL col2 * col2 + + col1 * + tab2.col2 AS col2 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT tab2.col1 * - col2 AS col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1856
SELECT - col1 * col1 DIV - col2 + cor0.col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-1856
SELECT - col1 * col1 / - col2 + cor0.col0 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
11

query I rowsort
SELECT - - col0 + + col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + - col2 * col2 + cor0.col0 * + col1 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT col2 * - col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + - col1 + cor0.col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT col2 - - col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col2 * col2 - - col2 * + col0 AS col2 FROM tab1 cor0
----
-1536
-2754
399

query I rowsort
SELECT + col1 * + col2 - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - cor0.col0 * col2 + + col1 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
117624
48032
5670

query I rowsort
SELECT - - col1 * + col0 + - col0 * - col0 * col0 FROM tab0 cor0
----
15888
46270
713068

query I rowsort
SELECT 51 * - col2 FROM tab1
----
-2754
-2907
-4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-1869
SELECT - col0 * + col0 DIV - col0 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1869
SELECT - col0 * + col0 / - col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT col0 - - tab2.col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab0 WHERE NULL < col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 IN ( - col2 * + tab0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + tab2.col1 FROM tab2 WHERE NULL IN ( col1 + col2 * col1 )
----

query I rowsort
SELECT - col2 * - tab2.col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL tab1.col0 * col0 AS col1 FROM tab1
----
4096
6400
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - col2 IN ( + tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 + - col2 * + col2 FROM tab1
----
-2913
-3185
-9136

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - col0
----

query I rowsort
SELECT + col0 * + col0 + - col1 * - col0 * tab2.col0 AS col2 FROM tab2
----
112338
1568
365040

query I rowsort
SELECT - col2 + col2 + col2 AS col0 FROM tab1 WHERE col0 NOT IN ( col1 * col2 + + col0 * col1 )
----
54
57
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + col2 * + col2 BETWEEN col0 + col0 + col1 AND col0 * col2
----

query I rowsort
SELECT - col1 * col0 + col1 + + col2 * + col0 FROM tab0
----
-1186
-3263
-710

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT col1 * - col1 DIV - col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1883
SELECT col1 * - col1 / - col1 FROM tab2
----
17
31
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col2 + tab1.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT DISTINCT tab0.col1 DIV col2 AS col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT tab0.col1 / col2 AS col2 FROM tab0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT DISTINCT col2 DIV - tab2.col0 AS col0 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT col2 / - tab2.col0 AS col0 FROM tab2
----
-3
0

query I rowsort
SELECT ALL cor0.col0 * - col0 - col1 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL ( - 63 ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT DISTINCT col1 - - tab0.col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL <= col2 + + col1
----

query I rowsort
SELECT DISTINCT + col0 + - tab0.col1 - col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + col1 * col1 + col1 FROM tab2
----
306
3540
992

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * col2 + - col0 / - col1 ) NOT IN ( col2 * + col1 + - col2 * col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col2 * - col0 * + col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - tab0.col0 + + col2 + + col2 AS col1 FROM tab0
----
-33
42
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 * col0 col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT col1 * + col2 + col2 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-1898
SELECT DISTINCT tab1.col0 DIV col0 col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT tab1.col0 / col0 col1 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( - col2 - col2 * col1 )
----

query I rowsort
SELECT col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - col1 * col0 * + col2 FROM tab0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 + col0 col2 FROM tab2
----
7
78
79

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) >= + col0
----

query I rowsort
SELECT - col1 * + col1 * + col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1905
SELECT + col1 DIV cor0.col1 + 20 + - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1322
-196
-4581

skipif mysql # not compatible
query I rowsort label-1905
SELECT + col1 / cor0.col1 + 20 + - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1322
-196
-4581

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + col0 + col1 + - col2 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT + ( + col1 ) * + col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - - 4 * cor0.col0 FROM tab0 cor0
----
140
356
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT ALL + col2 DIV col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + col2 / col0 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT 17 AS col0 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT ALL + + 31 * cor0.col1 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT + 47 AS col0 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + 41 + col1 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT ALL col0 * cor0.col1 * - col0 - - 47 AS col0 FROM tab1 cor0
----
-187
-40913
-83153

query I rowsort
SELECT DISTINCT col0 * col0 + 56 * + tab1.col2 * + col1 - + col0 * - col1 AS col2 FROM tab1
----
36656
77328
78711

query I rowsort
SELECT col0 * col2 + - 46 AS col2 FROM tab1
----
116
3602
7634

query I rowsort
SELECT ( + col1 ) * - col2 + - col1 * col1 FROM tab2
----
-1798
-5015
-935

query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT ALL + col2 DIV - tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + col2 / - tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - 7 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT col2 * - 25 AS col2 FROM tab2
----
-650
-675
-950

query I rowsort
SELECT + + 19 * + cor0.col2 + col2 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT 26 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - + 32 * col0 + + col2 + col0 FROM tab2 cor0
----
-190
-2392
-2411

onlyif mysql # use DIV operator for integer division
query I rowsort label-1927
SELECT + 27 DIV + col0 + + col0 * - cor0.col0 * + col0 FROM tab0 AS cor0
----
-13823
-42875
-704969

skipif mysql # not compatible
query I rowsort label-1927
SELECT + 27 / + col0 + + col0 * - cor0.col0 * + col0 FROM tab0 AS cor0
----
-13823
-42875
-704969

query I rowsort
SELECT col2 + + 6 + col1 FROM tab1 AS cor0
----
115
73
86

query I rowsort
SELECT DISTINCT + - col2 + - 20 AS col1 FROM tab1 AS cor0
----
-116
-74
-77

query I rowsort
SELECT ALL + - col0 + col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT ALL - - ( - col2 ) * + col2 DIV col2 col1 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - - ( - col2 ) * + col2 / col2 col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL 40 * cor0.col0 FROM tab1 AS cor0
----
120
2560
3200

onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT 51 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT 51 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 82 * col1 AS col2 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT ALL cor0.col2 * 54 FROM tab0 AS cor0
----
1782
4428
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + cor0.col0 col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT ALL 55 DIV col0 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 55 / col0 AS col1 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + col2 * + cor0.col1 col2 FROM tab2 cor0
----
1548
660
851

query I rowsort
SELECT + col0 + + cor0.col0 + + col2 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT - + col2 + col0 + 27 AS col1 FROM tab1 AS cor0
----
-24
11
34

query I rowsort
SELECT - col1 * + ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 92 col1 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
45

query I rowsort
SELECT - col2 + col1 * 36 FROM tab0 cor0
----
3063
3194
3491

query I rowsort
SELECT - + 52 + + col2 FROM tab0 AS cor0
----
-19
-51
30

query I rowsort
SELECT col1 * + col1 + - 12 AS col2 FROM tab0
----
7384
8269
9397

query I rowsort
SELECT + + 58 * col0 + cor0.col2 * + col2 FROM tab1 AS cor0
----
13856
3090
6961

query I rowsort
SELECT + col1 + col2 * col0 * 75 AS col2 FROM tab0 AS cor0
----
2722
547441
59486

query I rowsort
SELECT col0 * 3 + + 12 FROM tab2 cor0
----
246
249
33

query I rowsort
SELECT DISTINCT col1 * + 38 AS col0 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT col1 * - 66 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1662
-603
-762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1955
SELECT ALL + col1 + + 20 DIV - 91 col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + col1 + + 20 / - 91 col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - cor0.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + col1 * + col0 + - col0 - tab0.col0 AS col0 FROM tab0
----
2016
3325
7921

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
93

query I rowsort
SELECT ALL 85 * - col1 AS col2 FROM tab1
----
-1105
-2210
-850

query I rowsort
SELECT DISTINCT - 63 FROM tab0, tab2 cor0, tab2 AS cor1
----
-63

query I rowsort
SELECT DISTINCT tab0.col2 + + col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT - col1 * ( tab0.col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col2 * + col1 + + col2 AS col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - col0 + col2 - col1 AS col1 FROM tab2
----
-11
-111
-58

query I rowsort
SELECT col2 * 27 AS col1 FROM tab0
----
2214
27
891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 + col1 * col1 col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT 87 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 + ( ( - col1 ) * 34 ) col1 FROM tab1
----
-330
-429
-858

query I rowsort
SELECT DISTINCT - + 22 FROM tab1, tab2, tab0 cor0
----
-22

onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT DISTINCT 31 * col1 DIV - col2 FROM tab1
----
-14
-4
-5

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT 31 * col1 / - col2 FROM tab1
----
-14
-4
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1971
SELECT col2 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1971
SELECT col2 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 58 * + cor0.col1 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT col2 * col2 * col2 AS col1 FROM tab0 cor0
----
1
35937
551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 + col0 * + col1 col2 FROM tab1 cor0
----
1120
158
720

query I rowsort
SELECT - 85 + col2 FROM tab1 AS cor0
----
-28
-31
11

query I rowsort
SELECT col0 * col0 * ( - col1 ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + col0 * col2 * - ( col2 ) AS col0 FROM tab0 cor0
----
-26136
-35
-598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1978
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 36 FROM tab1, tab0 AS cor0, tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 36 FROM tab1, tab0 AS cor0, tab2 cor1
----
NULL

query I rowsort
SELECT + col2 * col0 + col2 FROM tab1
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col0 FROM tab0
----
164
2
66

query I rowsort
SELECT col1 * + col1 + - col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab2
----
-33

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * 22 + + col2 * col0 * col1 FROM tab2 cor0
----
120283
51887
6484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + cor0.col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 66 + - col2 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1182
-1338
-504

query I rowsort
SELECT DISTINCT - - 40 + cor0.col0 AS col1 FROM tab2 cor0
----
118
119
47

query I rowsort
SELECT ALL col0 * cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + cor0.col2 + + 17 FROM tab2 AS cor0
----
43
44
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT ALL - + col1 DIV - ( - 4 ) AS col1 FROM tab0 AS cor0
----
-21
-22
-24

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - + col1 / - ( - 4 ) AS col1 FROM tab0 AS cor0
----
-21
-22
-24

query I rowsort
SELECT col2 + + 29 AS col1 FROM tab2 AS cor0
----
55
56
67

query I rowsort
SELECT DISTINCT + col2 + 3 AS col0 FROM tab2 AS cor0
----
29
30
41

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + + col1 * + col0 FROM tab0 AS cor0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 25 + + col0 col1 FROM tab2 AS cor0
----
-572
-668
-871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1994
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * 77 + - 33 AS col2 FROM tab1 AS cor0
----
1969
737
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT + + cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1996
SELECT + + cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT - + cor0.col2 + - col1 * - 27 AS col1 FROM tab1 AS cor0
----
213
255
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-1998
SELECT DISTINCT + - col2 + col1 DIV + 46 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + - col2 + col1 / + 46 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1999
SELECT + col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT + 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-2000
SELECT ALL 7 DIV tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL 7 / tab1.col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT DISTINCT col0 * col0 DIV 13 AS col2 FROM tab1 AS cor0
----
0
315
492

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT col0 * col0 / 13 AS col2 FROM tab1 AS cor0
----
0
315
492

query I rowsort
SELECT + + col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 20 * col0 + col0 FROM tab0 AS cor0
----
1869
504
735

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2004
SELECT - CAST( NULL AS SIGNED ) + cor0.col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT - CAST ( NULL AS INTEGER ) + cor0.col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2005
SELECT ALL - - CAST( + 90 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
107
121
149

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - - CAST ( + 90 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
107
121
149

query I rowsort
SELECT - col2 * col0 + col2 + col2 AS col2 FROM tab0 AS cor0
----
-33
-7134
-726

query I rowsort
SELECT - ( cor0.col2 ) + + col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - - 23 * - col1 + col0 FROM tab1 AS cor0
----
-166
-219
-595

query I rowsort
SELECT DISTINCT + 42 + 32 AS col1 FROM tab2 AS cor0
----
74

query I rowsort
SELECT ALL - 56 * cor0.col1 - col2 FROM tab2 AS cor0
----
-1763
-3330
-990

query I rowsort
SELECT - - 93 * cor0.col0 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT DISTINCT ( col1 ) + - col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * + cor0.col2 col0 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT + col2 + - 79 + + col1 AS col1 FROM tab2 AS cor0
----
-21
-24
6

query I rowsort
SELECT DISTINCT + - col0 * + col0 - + col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - + col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - - 96 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
14
63
95

query I rowsort
SELECT ALL + + col0 * col1 * 73 AS col2 FROM tab2 AS cor0
----
15841
335946
98039

onlyif mysql # use DIV operator for integer division
query I rowsort label-2020
SELECT DISTINCT col2 * col1 DIV - col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT col2 * col1 / - col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + col2 * col1 + + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT - + col0 + + col2 * - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT + col2 + + cor0.col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - col2 * col1 * + col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT DISTINCT - - col0 + ( 13 ) DIV col1 AS col0 FROM tab1 AS cor0
----
3
65
81

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT - - col0 + ( 13 ) / col1 AS col0 FROM tab1 AS cor0
----
3
65
81

query I rowsort
SELECT + col2 * + col1 - - ( - col1 ) FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - col0 * 60 + col0 FROM tab2 cor0
----
-413
-4602
-4661

query I rowsort
SELECT DISTINCT col0 + - 11 FROM tab1 AS cor0
----
-8
53
69

query I rowsort
SELECT - - col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col2 * cor0.col2 + - cor0.col1 * cor0.col0 AS col0 FROM tab0 cor0
----
-14823
-3153
-3396

query I rowsort
SELECT - + 48 + - col2 FROM tab2 AS cor0
----
-74
-75
-86

query I rowsort
SELECT ALL col0 + col0 * + 6 AS col1 FROM tab2
----
49
546
553

onlyif mysql # use DIV operator for integer division
query I rowsort label-2034
SELECT + CAST( col0 AS SIGNED ) * + col2 * 91 + - col2 DIV col1 FROM tab1 AS cor0
----
14740
331963
698873

skipif mysql # not compatible
query I rowsort label-2034
SELECT + CAST ( col0 AS INTEGER ) * + col2 * 91 + - col2 / col1 FROM tab1 AS cor0
----
14740
331963
698873

query I rowsort
SELECT - + 43 + col2 AS col2 FROM tab0 AS cor0
----
-10
-42
39

query I rowsort
SELECT col0 * col2 + - col2 AS col1 FROM tab0
----
34
7216
759

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 8ce7eaf1d4fdd7c890ea84abed830333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor1.col1 col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col2 + + col1 * + col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 + ( - 95 + + col2 ) AS col0 FROM tab2
----
-10
-37
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT - + 3 * + col0 FROM tab1 AS cor0
----
-192
-240
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * col1 col1 FROM tab1
----
1898
730
949

query I rowsort
SELECT 93 * - 78 * - col0 + - col2 FROM tab2
----
50751
565786
573028

query I rowsort
SELECT ALL - col0 * + col0 + - 69 FROM tab2
----
-118
-6153
-6310

query I rowsort
SELECT DISTINCT ( col2 ) - col1 AS col0 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT - col0 DIV - col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2047
SELECT - col0 / - col2 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT col1 + col2 * 24 AS col2 FROM tab0
----
121
2059
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT ALL - col0 - col0 DIV + col2 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - col0 - col0 / + col2 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT + cor0.col0 * cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to aeeeb4bec4be16eaf92fcfb414a1ef1e

query I rowsort
SELECT 89 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2052
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT ALL + tab2.col1 + col0 DIV - ( - 80 * col1 ) FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + tab2.col1 + col0 / - ( - 80 * col1 ) FROM tab2
----
17
31
59

query I rowsort
SELECT ALL col1 + tab1.col2 AS col0 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 * 35 col0 FROM tab1
----
-2230
-2787
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT ALL tab0.col0 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL tab0.col0 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ( + 11 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT col0 * + ( - 31 ) FROM tab0
----
-1085
-2759
-744

query I rowsort
SELECT DISTINCT - 85 FROM tab1, tab1 cor0, tab0 cor1
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + cor0.col2 + 58 * col0 FROM tab0 AS cor0
----
1425
2031
5244

query I rowsort
SELECT col0 * 35 - + col1 AS col2 FROM tab1 AS cor0
----
2230
2787
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT - col0 DIV + col0 + + col1 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2063
SELECT - col0 / + col0 + + col1 FROM tab0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT DISTINCT col1 DIV + 49 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT col1 / + 49 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab0, tab0 AS cor0
----
33

query I rowsort
SELECT - 78 + col1 AS col0 FROM tab0
----
13
19
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL - col1 + col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( cor0.col0 AS REAL ) + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT cor0.col0 + - cor0.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + - ( - 39 ) + col0 AS col0 FROM tab1 AS cor0
----
103
119
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( col2 ) + + col0 * + col1 col2 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT ( col0 ) * + col1 + + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT DISTINCT col2 * col2 DIV 13 FROM tab2
----
111
52
56

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT col2 * col2 / 13 FROM tab2
----
111
52
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2075
SELECT DISTINCT + col0 * - col2 + CAST( - cor0.col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-196
-2106
-3081

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT + col0 * - col2 + CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + 22 + col1 * - ( - col1 ) * cor0.col0 FROM tab0 AS cor0
----
177526
329337
737031

query I rowsort
SELECT - - col1 * col1 AS col2 FROM tab2 cor0
----
289
3481
961

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

query I rowsort
SELECT 4 * col0 AS col0 FROM tab2 cor0
----
28
312
316

query I rowsort
SELECT ALL - col1 * col2 * col0 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 col1 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + ( + cor0.col1 ) + ( + col1 ) * cor0.col0 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 - 94 col2 FROM tab2 AS cor0
----
-115
-61
-90

query I rowsort
SELECT ALL - 87 * - col2 - 45 FROM tab0 AS cor0
----
2826
42
7089

query I rowsort
SELECT ALL - cor0.col0 * 15 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b02378e1e82fc5946c6c9794fa4ad3d9

query I rowsort
SELECT ( col1 ) + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT 39 - - tab2.col1 FROM tab2
----
56
70
98

query I rowsort
SELECT DISTINCT + ( + col2 + + col0 ) FROM tab0
----
171
36
57

query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( ( - col1 ) AS REAL ) - 16 FROM tab2
----
-33
-47
-75

query I rowsort
SELECT + 71 - - col2 * - tab2.col1 AS col2 FROM tab2
----
-1463
-575
-766

query I rowsort
SELECT DISTINCT + col1 + - 2 * - 29 FROM tab1 AS cor0
----
68
71
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT - col2 DIV - 93 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2095
SELECT - col2 / - 93 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col1 + 3 AS col2 FROM tab2 AS cor0
----
20
34
62

query I rowsort
SELECT + 35 * tab0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 55a98c844a072c0625a5151cb453de09

query I rowsort
SELECT ALL + 65 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT - col1 * - 9 AS col2 FROM tab0
----
774
819
873

query I rowsort
SELECT 84 + - 18 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT 99 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929

query I rowsort
SELECT - - col2 + - col0 * col0 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT - col1 DIV 14 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1403
570

skipif mysql # not compatible
query I rowsort label-2104
SELECT - col1 / 14 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1403
570

query I rowsort
SELECT - - col2 * + ( - col0 + - col0 ) FROM tab0 AS cor0
----
-14596
-1584
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT + col2 + + ( + 7 ) * tab2.col2 * ( - tab2.col2 + + col1 * CAST( col2 AS SIGNED ) ) FROM tab2
----
153117
161766
274482

skipif mysql # not compatible
query I rowsort label-2106
SELECT + col2 + + ( + 7 ) * tab2.col2 * ( - tab2.col2 + + col1 * CAST ( col2 AS INTEGER ) ) FROM tab2
----
153117
161766
274482

query I rowsort
SELECT ALL col0 + tab0.col0 * tab0.col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL ( col1 ) * + col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col2 + + ( col2 * - ( ( cor0.col0 ) ) ) AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL 0 + 20 AS col1 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT ALL tab2.col0 DIV 76 + + col2 AS col0 FROM tab2
----
27
27
39

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL tab2.col0 / 76 + + col2 AS col0 FROM tab2
----
27
27
39

query I rowsort
SELECT ALL 43 * col2 + + col1 FROM tab2 AS cor0
----
1177
1192
1651

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT DISTINCT - 79 + col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT - 79 + col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT ALL ( - col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col1 FROM tab0 AS cor0
----
86
91
97

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

query I rowsort
SELECT DISTINCT - 9 * + col2 AS col2 FROM tab2 AS cor0
----
-234
-243
-342

query I rowsort
SELECT ALL col1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 54 * + 25 FROM tab1 AS cor0
----
-1350
-1350
-1350

query I rowsort
SELECT ALL - col2 * + ( col0 ) * + 12 AS col2 FROM tab0 AS cor0
----
-420
-87576
-9504

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1 AS cor0
----
63

query I rowsort
SELECT ALL + cor0.col0 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + 85 * - col0 FROM tab1 AS cor0
----
-255
-5440
-6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT DISTINCT - - cor0.col0 + 40 * col0 DIV + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1365
-5
46

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - - cor0.col0 + 40 * col0 / + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1365
-5
46

query I rowsort
SELECT DISTINCT - ( col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + - col2 * - 20 FROM tab1 cor0
----
1080
1140
1920

query I rowsort
SELECT ALL + 39 AS col1 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT - - 57 * col1 AS col1 FROM tab0 AS cor0
----
4902
5187
5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-2129
SELECT - col2 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT - col2 / ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col0 col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - col2 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - 95 AS col2 FROM tab2 AS cor0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2135
SELECT ALL col1 + col1 DIV col2 + col1 FROM tab0 AS cor0
----
174
183
291

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL col1 + col1 / col2 + col1 FROM tab0 AS cor0
----
174
183
291

query I rowsort
SELECT - 43 * + col0 * - cor0.col2 - 31 * cor0.col1 AS col2 FROM tab0 cor0
----
-1502
310993
31390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 25 col2 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT ALL 65 + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
1026
354
3546

query I rowsort
SELECT DISTINCT ( col1 ) * - col0 - + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT - - col0 * - col2 + col0 * + col1 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT - col2 * + col2 + - 27 FROM tab0 AS cor0
----
-1116
-28
-6751

query I rowsort
SELECT - col2 + + 30 FROM tab1 AS cor0
----
-24
-27
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL + + col1 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - col0 + 58 * - col0 FROM tab0 cor0
----
-805
-816
2759

query I rowsort
SELECT - col0 * - col0 + 60 + col1 AS col0 FROM tab0 AS cor0
----
1382
722
8072

query I rowsort
SELECT DISTINCT - + col0 * 60 FROM tab1 cor0
----
-180
-3840
-4800

query I rowsort
SELECT col0 * 27 + + col2 FROM tab1 AS cor0
----
135
1785
2256

query I rowsort
SELECT ALL + col0 * - cor0.col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col2 + 20 AS col2 FROM tab0 cor0
----
102
21
53

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col0 * + col1 + col2 * col1 FROM tab0 AS cor0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 58 + 26 * col2 col0 FROM tab2 AS cor0
----
2184
2268
3192

query I rowsort
SELECT DISTINCT + cor0.col0 * - 45 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT DISTINCT 11 + + col1 FROM tab1
----
21
24
37

query I rowsort
SELECT DISTINCT tab2.col1 * tab2.col1 + col0 AS col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL ( col2 ) * col2 * col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0, tab2 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT + col1 DIV - col0 - 83 * col1 AS col0 FROM tab1 AS cor0
----
-1079
-2166
-830

skipif mysql # not compatible
query I rowsort label-2160
SELECT + col1 / - col0 - 83 * col1 AS col0 FROM tab1 AS cor0
----
-1079
-2166
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2161
SELECT DISTINCT + + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * col2 * + 42 + col1 FROM tab1 AS cor0
----
23950
52429
58994

query I rowsort
SELECT col1 - ( + ( - col1 ) ) AS col0 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT + col2 * - 42 * 95 - col0 * - col0 FROM tab1 AS cor0
----
-215451
-223334
-376640

query I rowsort
SELECT - col1 * - 20 * col1 AS col2 FROM tab2 AS cor0
----
19220
5780
69620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 / + col2 col2 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2169
SELECT - col1 - - tab0.col1 DIV tab0.col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2169
SELECT - col1 - - tab0.col1 / tab0.col1 FROM tab0
----
-85
-90
-96

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) IN ( col2 * + col2 )
----

query I rowsort
SELECT col1 * col1 + col1 * + col0 + - col2 AS col1 FROM tab0
----
12803
16298
9427

query I rowsort
SELECT ALL + col0 * - col2 * col0 - tab0.col1 FROM tab0
----
-1322
-19094
-649613

onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT col1 * - col2 + - col1 DIV + col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2173
SELECT col1 * - col2 + - col1 / + col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - ( col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + ( col2 ) + - col2 * 75 * + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-212784
-559486
-7273

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col1 FROM tab0
----
164
2
66

query I rowsort
SELECT tab0.col1 + col0 * - col2 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col0 + col2 * + col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT - + col0 * + col2 + 41 FROM tab0 AS cor0
----
-7257
-751
6

query I rowsort
SELECT - - col1 + col0 AS col2 FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col0 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + - cor0.col1 * - col1 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT col0 + 81 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL col0 * cor0.col1 + - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ( 50 ) * col2 + + col1 FROM tab2 AS cor0
----
1359
1381
1917

query I rowsort
SELECT - 29 FROM tab0, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT - - cor0.col0 + col2 * col1 FROM tab2 AS cor0
----
1612
725
844

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac

query I rowsort
SELECT ALL col0 + + ( + col0 ) + col0 FROM tab2
----
21
234
237

query I rowsort
SELECT + 41 + 44 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + 21 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ( 85 * col0 ) FROM tab2
----
595
6630
6715

query I rowsort
SELECT ( - 92 ) * + col1 AS col0 FROM tab0
----
-7912
-8372
-8924

query I rowsort
SELECT ( 35 + col0 ) AS col0 FROM tab0
----
124
59
70

query I rowsort
SELECT - ( col2 ) * col2 + ( col0 + - col2 ) AS col0 FROM tab0 AS cor0
----
-1098
-6717
33

query I rowsort
SELECT ALL 51 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT ( - 1 ) FROM tab1
----
-1

query I rowsort
SELECT ( col1 * col0 + 98 ) FROM tab1
----
1138
176
738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2201
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ( col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * - col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + - 7 + + col1 AS col1 FROM tab2 AS cor0
----
10
24
52

query I rowsort
SELECT + col2 * col1 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT col1 * + col0 + - col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT - col2 * col0 * col1 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + + col1 + 50 AS col2 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT col0 * col0 + - col2 AS col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT - 81 + + col1 * col2 * + col0 + + col0 AS col0 FROM tab0
----
3349
664126
68055

query I rowsort
SELECT - 68 + - col0 * col0 AS col1 FROM tab1
----
-4164
-6468
-77

query I rowsort
SELECT DISTINCT + 48 * - col1 + - col1 * - tab0.col1 AS col2 FROM tab0
----
3268
3913
4753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + col2 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab2, tab2 AS cor0
----
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2216
SELECT ALL col0 * col2 DIV - col0 + + col1 col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL col0 * col2 / - col0 + + col1 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col2 + - ( col2 * col0 ) + col2 * - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-35
-36696
-558584

query I rowsort
SELECT ALL 54 * - cor0.col1 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-153219
-402866
-5237

query I rowsort
SELECT + 14 * 33 FROM tab0 AS cor0
----
462
462
462

query I rowsort
SELECT + cor0.col0 + col2 * + col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + 27 + + col0 AS col1 FROM tab0 AS cor0
----
116
51
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT - 69 + 49 * col0 DIV col0 FROM tab2 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-2222
SELECT - 69 + 49 * col0 / col0 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT - 81 * col1 + col1 FROM tab1 AS cor0
----
-1040
-2080
-800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col1 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL cor0.col2 * col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT 73 * + col1 * + cor0.col2 FROM tab1 AS cor0
----
102492
41610
91104

query I rowsort
SELECT ALL - 13 * col0 + - col1 FROM tab1 AS cor0
----
-1053
-65
-842

query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT 87 * - col2 FROM tab2 AS cor0
----
-2262
-2349
-3306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 - + 23 AS col1 FROM tab2
----
-6
36
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT DISTINCT col0 DIV 97 + col2 * col2 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT col0 / 97 + col2 * col2 FROM tab0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2234
SELECT CAST( - col2 AS SIGNED ) col1 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2234
SELECT CAST ( - col2 AS INTEGER ) col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - 0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col2 + - col2 + col2 * - col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT cor0.col1 * col1 + + cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
4196
6569
685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col2 + + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - cor0.col0 col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2242
SELECT DISTINCT - col0 - col2 DIV col0 FROM tab2 AS cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT - col0 - col2 / col0 FROM tab2 AS cor0
----
-10
-78
-79

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + col2 - - col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab1 WHERE NOT NULL = ( col1 + - col1 )
----

query I rowsort
SELECT col0 * + tab1.col2 + col1 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + col0 * col2 * - col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col2 * + col1 + col1 + - col1 * col1 FROM tab0
----
-4472
-728
-9215

query I rowsort
SELECT ALL - tab1.col2 - + col2 AS col0 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL col2 * col0 + col0 AS col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL NOT IN ( + col1 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IN ( - col1 + col1 * + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT + - cor0.col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2254
SELECT + - cor0.col0 / + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 * + col1 AS col1 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT col2 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + col2 + tab2.col2 * col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT - col2 * col1 + - col0 AS col1 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT - col2 - + col0 * + col2 AS col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + tab1.col1 * - col2 * col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 * + col2 * + tab2.col2 + - col2 AS col1 FROM tab2
----
17550
19656
54834

query I rowsort
SELECT col2 + + col2 * - col0 AS col1 FROM tab1 cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2263
SELECT ALL + col1 + + col1 DIV + col0 + - col2 FROM tab1
----
-20
-47
-83

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL + col1 + + col1 / + col0 + - col2 FROM tab1
----
-20
-47
-83

query I rowsort
SELECT DISTINCT col0 + col1 * col0 * col2 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT + col0 * + col1 + - col1 * col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 + + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT ALL + col1 + - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL + col1 + - col2 / + col2 AS col0 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT + + col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col1 col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + + col2 - + col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + col0 - - col0 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT col2 * col1 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + ( tab2.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + ( + 90 ) + col1 AS col0 FROM tab2 AS cor0
----
107
121
149

query I rowsort
SELECT tab1.col0 * - col0 + col2 AS col2 FROM tab1
----
-4039
-6304
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2277
SELECT CAST( NULL AS SIGNED ) * 79 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2277
SELECT CAST ( NULL AS INTEGER ) * 79 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT 94 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - ( - 57 * + cor0.col1 ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
1482
570
741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 34 col0 FROM tab2
----
112
113
41

query I rowsort
SELECT DISTINCT 51 * col1 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT DISTINCT col2 * + ( + cor0.col2 ) + ( col0 ) AS col1 FROM tab2 AS cor0
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + + 40 * col0 col0 FROM tab0 AS cor0
----
1410
3570
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT DISTINCT - col0 DIV 50 + - col0 * - ( - col1 + + col2 ) FROM tab1 AS cor0
----
3007
6639
84

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT - col0 / 50 + - col0 * - ( - col1 + + col2 ) FROM tab1 AS cor0
----
3007
6639
84

query I rowsort
SELECT DISTINCT + ( col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + cor0.col0 * col1 - + col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 67 ) col2 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT - cor0.col1 + - ( col2 ) + ( + col2 ) * - col2 AS col0 FROM tab1 cor0
----
-2996
-3316
-9325

query I rowsort
SELECT 30 + 5 AS col1 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT ALL - ( 53 ) - col2 FROM tab1 AS cor0
----
-107
-110
-149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col2 * + ( col0 + col1 ) col1 FROM tab1 cor0
----
1620
4275
9024

query I rowsort
SELECT - col2 + + col1 * 98 FROM tab0 AS cor0
----
8395
8836
9505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * - col0 col2 FROM tab1 AS cor0
----
207
4416
5520

query I rowsort
SELECT DISTINCT 77 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
110
159
78

query I rowsort
SELECT - 93 * col2 + ( col2 ) + - col0 FROM tab2 AS cor0
----
-2470
-2491
-3575

query I rowsort
SELECT DISTINCT col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT ALL col2 + CAST( 14 * col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1440
810
855

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL col2 + CAST ( 14 * col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT + cor0.col0 + 88 AS col2 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2303
SELECT col1 + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-2303
SELECT col1 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col1 col0 FROM tab2 cor0
----
1422
224
4680

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 WHERE NOT - cor0.col1 IN ( - cor0.col1 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2306
SELECT col2 * - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT col2 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 + - col1 * + ( col0 ) * + 17 AS col2 FROM tab0 AS cor0
----
-137592
-35002
-57618

query I rowsort
SELECT - cor0.col2 * - 3 AS col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT + ( + col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 cor1, tab1, tab2 cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38

query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT + 25 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT - + col1 * - 95 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT ALL - - 73 * + col2 FROM tab1 AS cor0
----
3942
4161
7008

query I rowsort
SELECT ALL 88 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT - ( col2 ) + - 88 AS col1 FROM tab0 AS cor0
----
-121
-170
-89

skipif mysql # not compatible
query I rowsort
SELECT col0 * col2 + - CAST ( - col2 * col1 + - col2 AS REAL ) FROM tab2 AS cor0
----
1053
3588
3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 * col0 * - col1 col2 FROM tab2 AS cor0
----
106097
17143
363558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2319
SELECT ALL + cor1.col1 + - CAST( cor1.col1 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + cor1.col1 + - CAST ( cor1.col1 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col1 * + col1 * - tab2.col1 FROM tab2
----
-205379
-29791
-4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) * ( cor0.col1 ) - col2 * ( cor0.col0 ) col0 FROM tab0 cor0
----
-132
-14760
-3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2322
SELECT DISTINCT - 96 DIV col1 + ( + col0 ) FROM tab1
----
0
55
73

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - 96 / col1 + ( + col0 ) FROM tab1
----
0
55
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT + col0 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT + col0 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * ( col2 ) + col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT - ( + col1 ) * + cor0.col2 + - ( cor0.col0 ) FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT + - col2 * + cor0.col1 * - CAST( NULL AS SIGNED ) - 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT + - col2 * + cor0.col1 * - CAST ( NULL AS INTEGER ) - 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col1 * cor0.col0 + 15 + - 61 FROM tab2 AS cor0
----
1297
171
4556

onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT DISTINCT - 7 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - 7 / col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2330
SELECT + CAST( NULL AS SIGNED ) * ( col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT + CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + cor0.col0 * + col0 FROM tab2 cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT ALL + 72 * + col1 DIV col1 AS col2 FROM tab2
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL + 72 * + col1 / col1 AS col2 FROM tab2
----
72
72
72

query I rowsort
SELECT - 42 FROM tab2
----
-42
-42
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT DISTINCT + cor0.col0 DIV cor0.col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + cor0.col0 / cor0.col1 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + + cor0.col1 col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT + 65 * - col0 + + 25 FROM tab0 AS cor0
----
-1535
-2250
-5760

query I rowsort
SELECT DISTINCT - - 27 * col1 * - 42 AS col1 FROM tab2 AS cor0
----
-19278
-35154
-66906

query I rowsort
SELECT ALL 20 * col1 * col0 AS col1 FROM tab1 cor0
----
12800
1560
20800

query I rowsort
SELECT - col1 + col2 + 65 AS col0 FROM tab1
----
112
148
93

query I rowsort
SELECT - col1 * 95 + 32 - col2 AS col0 FROM tab0
----
-8171
-8695
-9184

query I rowsort
SELECT DISTINCT col1 - - 29 FROM tab0
----
115
120
126

query I rowsort
SELECT + col0 * ( - col2 * + tab1.col1 ) FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - 6 * col1 FROM tab2 cor0
----
-102
-186
-354

query I rowsort
SELECT 80 * cor0.col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT ALL + - col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT 95 DIV ( cor0.col2 ) + + ( col1 ) + + col2 DIV col2 FROM tab1 AS cor0
----
12
14
28

skipif mysql # not compatible
query I rowsort label-2346
SELECT 95 / ( cor0.col2 ) + + ( col1 ) + + col2 / col2 FROM tab1 AS cor0
----
12
14
28

query I rowsort
SELECT - + col1 * col0 * col1 + 35 * + 26 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-177683
-328406
-742823

query I rowsort
SELECT ( - 2 ) FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT col1 + col0 * col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + tab1.col2 * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT 15 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT DISTINCT col1 + + col1 DIV cor0.col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT col1 + + col1 / cor0.col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL - 62 * - 88 FROM tab1 AS cor0
----
5456
5456
5456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2354
SELECT + CAST( NULL AS SIGNED ) * + col1 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2354
SELECT + CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 78 AS col0 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2356
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2357
SELECT CAST( NULL AS SIGNED ) + 88 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT CAST ( NULL AS INTEGER ) + 88 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 78 + col2 * - col1 FROM tab2 AS cor0
----
-1612
-724
-915

query I rowsort
SELECT ALL + col2 * - 76 AS col2 FROM tab0 cor0
----
-2508
-6232
-76

query I rowsort
SELECT ALL + col2 + + col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - 82 FROM tab1, tab0 AS cor0
----
-82

query I rowsort
SELECT ALL - - col1 + + col1 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1410
-558
-667

query I rowsort
SELECT ALL - 45 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL col1 * + col2 * + col0 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 * + 30 AS col1 FROM tab0 AS cor0
----
-221880
-248430
-282270

query I rowsort
SELECT ( 78 ) FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + col1 * col1 * col2 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - 48 * - col0 + - col0 + + 33 AS col1 FROM tab1 AS cor0
----
174
3041
3793

query I rowsort
SELECT DISTINCT - - 50 + col2 AS col1 FROM tab1 AS cor0
----
104
107
146

query I rowsort
SELECT + 59 AS col1 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT - col0 + cor0.col1 * 37 FROM tab1 AS cor0
----
306
401
959

query I rowsort
SELECT + col1 * tab1.col2 * + col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + 73 + col0 FROM tab2 AS cor0
----
151
152
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT DISTINCT - + col2 * col0 DIV - col1 + - col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
1987
3298
8088

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - + col2 * col0 / - col1 + - col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
1987
3298
8088

query I rowsort
SELECT + col2 + + col0 * ( ( col2 ) ) * + 56 AS col2 FROM tab0 AS cor0
----
1961
408770
44385

query I rowsort
SELECT DISTINCT - 0 * + col1 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col0 - col0 AS col2 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT 83 + cor0.col0 FROM tab2 AS cor0
----
161
162
90

query I rowsort
SELECT DISTINCT - col2 * col1 + + col1 AS col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ( 11 ) + col1 AS col1 FROM tab1
----
21
24
37

query I rowsort
SELECT col2 * + ( col1 ) * + col0 + col0 AS col0 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT 19 - - 44 * tab1.col1 * ( - col2 ) FROM tab1
----
-25061
-54893
-61757

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col0 - ( ( col0 ) * - col2 ) AS col2 FROM tab1
----
213
3641
7696

query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 * + col1 - + col2 AS col0 FROM tab0
----
-636089
-753653
-912674

query I rowsort
SELECT 84 - 64 AS col0 FROM tab0
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT CAST( + 82 AS SIGNED ) * col2 DIV + col2 FROM tab1
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2386
SELECT CAST ( + 82 AS INTEGER ) * col2 / + col2 FROM tab1
----
82
82
82

query I rowsort
SELECT ALL - - col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2388
SELECT + col2 DIV + ( col0 ) FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2388
SELECT + col2 / + ( col0 ) FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - col0 * - ( - col2 ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - + col1 * ( + col2 + col2 ) * + col1 FROM tab2 AS cor0
----
-181012
-21964
-51894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2391
SELECT DISTINCT col1 + CAST( - 82 + col2 AS SIGNED ) * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT col1 + CAST ( - 82 + col2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + ( col0 ) * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL 71 + col1 FROM tab1
----
81
84
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2394
SELECT ALL - col0 + - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - col0 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2395
SELECT + col2 * CAST( 93 AS SIGNED ) FROM tab1 AS cor0
----
5022
5301
8928

skipif mysql # not compatible
query I rowsort label-2395
SELECT + col2 * CAST ( 93 AS INTEGER ) FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT col2 * - ( ( + col1 ) ) * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col2 + col0 * 50 FROM tab2 AS cor0
----
377
3926
3988

query I rowsort
SELECT col2 + 18 * - col2 FROM tab0
----
-1394
-17
-561

query I rowsort
SELECT ALL - col2 * + col0 + ( + col0 ) * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 - col1 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT 52 + - col0 AS col2 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT ALL - col2 + col1 * 14 AS col1 FROM tab1 AS cor0
----
310
83
86

query I rowsort
SELECT ALL + - col1 + cor0.col2 * 91 + + col1 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT ALL + 23 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
243 values hashing to 631a83dca1a5a8dbe0757e533371de55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab0
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT 54 * col0 DIV col1 + ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-16
-37
-9

skipif mysql # not compatible
query I rowsort label-2407
SELECT 54 * col0 / col1 + ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-16
-37
-9

query I rowsort
SELECT + col1 * + 33 * col2 - cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
238784
3104
90816

query I rowsort
SELECT - - col0 * - col2 + - cor0.col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ( col0 ) * - col2 - 43 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2271
1144
509

query I rowsort
SELECT - tab2.col2 + 7 * - col1 + col0 FROM tab2
----
-237
-361
-78

query I rowsort
SELECT DISTINCT col0 + - 89 * col0 FROM tab2
----
-616
-6864
-6952

query I rowsort
SELECT col2 * + ( col2 ) + col0 + tab2.col0 * + tab2.col1 FROM tab2
----
2866
5356
953

query I rowsort
SELECT col0 + 16 FROM tab0
----
105
40
51

query I rowsort
SELECT DISTINCT + tab1.col1 + col2 + - col2 AS col0 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2416
SELECT DISTINCT + col0 + + CAST( col2 + col1 AS SIGNED ) AS col1 FROM tab1
----
131
189
83

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + col0 + + CAST ( col2 + col1 AS INTEGER ) AS col1 FROM tab1
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 + + col1 col1 FROM tab2
----
105
133
91

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL 34 * col1 FROM tab0 cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT + - 33 * - col1 + - col2 FROM tab0 AS cor0
----
2805
2921
3200

query I rowsort
SELECT ALL + + col0 - 31 AS col1 FROM tab1 AS cor0
----
-28
33
49

query I rowsort
SELECT - - col2 + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2423
SELECT + + CAST( - col0 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-2423
SELECT + + CAST ( - col0 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2424
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 + col2 * col2 * 22 FROM tab2 AS cor0
----
14931
16069
31785

query I rowsort
SELECT ALL + 0 - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT ALL col0 DIV tab0.col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL col0 / tab0.col2 AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT - ( - 62 ) FROM tab1
----
62

query I rowsort
SELECT ALL + - 13 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - 88 * - col0 AS col0 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT ALL - 16 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

query I rowsort
SELECT ( col1 + col2 ) AS col2 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2433
SELECT - tab1.col2 / + col2 + - col0 * CAST( NULL AS SIGNED ) + + 18 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT - tab1.col2 / + col2 + - col0 * CAST ( NULL AS INTEGER ) + + 18 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT DISTINCT - CAST( col0 AS SIGNED ) - + col0 AS col0 FROM tab0
----
-178
-48
-70

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - + col0 AS col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT ALL tab2.col0 * col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - - col2 * - col0 * - cor0.col2 + col2 * col2 * col1 FROM tab0 cor0
----
119790
1210320
132

query I rowsort
SELECT - cor0.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL + 60 * col0 + col0 AS col0 FROM tab1
----
183
3904
4880

onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT - col2 DIV - col1 + - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3004

skipif mysql # not compatible
query I rowsort label-2439
SELECT - col2 / - col1 + - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3004

query I rowsort
SELECT + + col0 * + col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 13 * - cor0.col1 + col2 FROM tab1 AS cor0
----
187
265
392

query I rowsort
SELECT - - col2 + - col0 * - col0 * - 87 + + col1 FROM tab1 AS cor0
----
-356285
-556691
-703

query I rowsort
SELECT + col2 + col2 * - 3 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2445
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - ( cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + + col0 * 43 AS col0 FROM tab1 cor0
----
129
2752
3440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * - col1 col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - col2 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT col1 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ( - col2 ) + col1 * + ( + col1 ) FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - - 80 + + col1 * col0 FROM tab0 AS cor0
----
2144
3475
8179

query I rowsort
SELECT - + 99 AS col2 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2454
SELECT ALL col0 * - CAST( NULL AS SIGNED ) + ( - col2 ) - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) + ( - col2 ) - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 78 + + col2 * col0 FROM tab0 AS cor0
----
-1080
-2695
356

query I rowsort
SELECT + col1 - ( - col1 + + col2 ) * - 43 FROM tab2 AS cor0
----
-1360
-141
920

query I rowsort
SELECT DISTINCT cor0.col0 * ( + col0 ) * col2 + + col1 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT DISTINCT col0 + - 42 FROM tab0 AS cor0
----
-18
-7
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2459
SELECT - col0 * - ( col2 ) + col2 * CAST( + 80 + + col2 AS SIGNED ) FROM tab0 AS cor0
----
116
20582
4521

skipif mysql # not compatible
query I rowsort label-2459
SELECT - col0 * - ( col2 ) + col2 * CAST ( + 80 + + col2 AS INTEGER ) FROM tab0 AS cor0
----
116
20582
4521

onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT DISTINCT col2 * col2 DIV col1 + - col1 col2 FROM tab1 AS cor0
----
314
695
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT col2 * col2 / col1 + - col1 col2 FROM tab1 AS cor0
----
314
695
86

query I rowsort
SELECT ALL col0 * ( col1 ) - col0 AS col1 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT + col2 - 10 FROM tab1 AS cor0
----
44
47
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2463
SELECT + cor0.col2 - + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-2463
SELECT + cor0.col2 - + col0 / col1 AS col0 FROM tab2 AS cor0
----
25
27
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT DISTINCT + - col0 - - col2 DIV cor0.col1 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + - col0 - - col2 / cor0.col1 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT + - cor0.col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col1 * col0 + 51 * - col0 * - col1 FROM tab0 AS cor0
----
103200
169750
404950

query I rowsort
SELECT ALL - + col0 * + 53 AS col2 FROM tab0 cor0
----
-1272
-1855
-4717

query I rowsort
SELECT DISTINCT + col0 * - 35 AS col1 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT - col0 + col1 * col1 - col2 AS col0 FROM tab0 AS cor0
----
7339
8110
9373

query I rowsort
SELECT DISTINCT - + cor0.col2 * ( col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col2 + - cor0.col1 * + col1 FROM tab1 cor0
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT 98 + + 50 FROM tab2 AS cor0
----
148

onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT DISTINCT - - col1 DIV + 70 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT - - col1 / + 70 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 83 + 30 AS col1 FROM tab2 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0, tab1 AS cor0
----
32

query I rowsort
SELECT + col2 * - col1 * col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - 38 AS col0 FROM tab1
----
-38
-38
-38

query I rowsort
SELECT 44 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 19a2b9512177749564ba22ea2213fe3f

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 * + col1 * - col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
24
35
89

query I rowsort
SELECT + 42 - 2 AS col1 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT 94 * + col2 * col1 AS col1 FROM tab1
----
117312
131976
53580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2486
SELECT + tab2.col2 + tab2.col0 * + CAST( + ( col0 ) AS SIGNED ) AS col0 FROM tab2
----
6110
6279
76

skipif mysql # not compatible
query I rowsort label-2486
SELECT + tab2.col2 + tab2.col0 * + CAST ( + ( col0 ) AS INTEGER ) AS col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL + col0 * + tab2.col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col0 * col2 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + - ( col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 92 * - col0 * - col0 FROM tab0
----
112700
52992
728732

query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab0 AS cor0, tab2, tab1 cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT - col1 + 15 AS col2 FROM tab1 cor0
----
-11
2
5

query I rowsort
SELECT - 85 * - col2 * - ( tab0.col1 ) + - col2 * 62 AS col2 FROM tab0
----
-243276
-639354
-8307

query I rowsort
SELECT ALL 0 * - col1 * col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 95 + col1 AS col1 FROM tab0 cor0
----
181
186
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2497
SELECT ALL col1 * col0 DIV - 4 AS col2 FROM tab1 cor0
----
-160
-19
-260

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL col1 * col0 / - 4 AS col2 FROM tab1 cor0
----
-160
-19
-260

query I rowsort
SELECT + ( cor0.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - tab1.col1 + + 54 FROM tab1
----
28
41
44

query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab2, tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - ( - 95 ) AS col1 FROM tab0, tab0 cor0
----
95

query I rowsort
SELECT ALL - col0 * - 13 FROM tab0 AS cor0
----
1157
312
455

query I rowsort
SELECT + col0 + col2 + col2 AS col2 FROM tab2
----
130
155
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2504
SELECT ALL - CAST( col1 AS SIGNED ) + - col0 col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - CAST ( col1 AS INTEGER ) + - col0 col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab0, tab0 AS cor0
----
29

query I rowsort
SELECT + 13 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT + + 57 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL + - 68 + - col1 FROM tab2 AS cor0
----
-127
-85
-99

query I rowsort
SELECT ALL - 29 * - col0 + - col1 * - 37 FROM tab1 AS cor0
----
1049
2226
2801

query I rowsort
SELECT - ( col1 ) * col0 + ( - cor0.col2 + col0 ) * col0 AS col0 FROM tab2 AS cor0
----
-357
-546
1896

query I rowsort
SELECT ALL col2 + + ( + cor0.col0 + col1 ) AS col0 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2512
SELECT + 74 DIV - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 734470aeecbccfdb5a335a173fa9f444

skipif mysql # not compatible
query I rowsort label-2512
SELECT + 74 / - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 734470aeecbccfdb5a335a173fa9f444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2513
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) * + 14 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2513
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) * + 14 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - + 45 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT ALL + 81 + col2 FROM tab0 AS cor0
----
114
163
82

query I rowsort
SELECT ALL - col0 * - col2 + - ( 83 ) * col1 * + 50 AS col2 FROM tab2 AS cor0
----
-128461
-242822
-67548

query I rowsort
SELECT DISTINCT + col2 + col1 * col0 * - 18 AS col1 FROM tab2 cor0
----
-24136
-3879
-82810

query I rowsort
SELECT - col0 * col2 * 14 FROM tab2 AS cor0
----
-2646
-28392
-42028

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 + cor0.col2 * - CAST ( + col0 AS REAL ) * - col2 FROM tab2 AS cor0
----
114059
5072
52669

query I rowsort
SELECT ALL 42 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-282408
-42
-45738

query I rowsort
SELECT DISTINCT + 76 + col1 FROM tab1 AS cor0
----
102
86
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + ( - 3 ) + - col2 * - col1 + - col0 FROM tab1
----
1165
1398
503

query I rowsort
SELECT ALL col1 + - 82 AS col0 FROM tab2
----
-23
-51
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2525
SELECT ALL - CAST( col1 AS SIGNED ) + + col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - CAST ( col1 AS INTEGER ) + + col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2526
SELECT ALL + + col1 * + col1 + + CAST( NULL AS SIGNED ) * - ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + + col1 * + col1 + + CAST ( NULL AS INTEGER ) * - ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 78 ) * col1 + col2 FROM tab2
----
1364
2445
4628

query I rowsort
SELECT col0 * ( + 47 + col2 ) * col2 FROM tab1
----
1098240
16362
379392

query I rowsort
SELECT + + col2 * ( 55 ) AS col1 FROM tab1 cor0
----
2970
3135
5280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2530
SELECT col0 * CAST( 22 AS SIGNED ) AS col0 FROM tab1
----
1408
1760
66

skipif mysql # not compatible
query I rowsort label-2530
SELECT col0 * CAST ( 22 AS INTEGER ) AS col0 FROM tab1
----
1408
1760
66

query I rowsort
SELECT + + col1 * 67 + col2 FROM tab1 cor0
----
1796
727
967

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - col1 + ( col2 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - col1 * + 58 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT + col2 + cor0.col0 + col2 * cor0.col2 AS col1 FROM tab1 cor0
----
2973
3370
9392

query I rowsort
SELECT + + 33 + - col1 FROM tab2 AS cor0
----
-26
16
2

query I rowsort
SELECT + col0 + - col0 + col2 AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ( 28 ) FROM tab2, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + cor0.col1 * col0 col2 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - ( col0 ) AS REAL ) col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + - col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ( + col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + 49 - - col1 FROM tab1 AS cor0
----
59
62
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2544
SELECT ALL col2 + - col0 DIV cor0.col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL col2 + - col0 / cor0.col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 77 * col0 - col0 FROM tab2 cor0
----
532
5928
6004

query I rowsort
SELECT + col1 + cor0.col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - col0 + col2 * - ( col0 ) FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT ALL + - col0 + - col1 DIV col2 FROM tab0 cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + - col0 + - col1 / col2 FROM tab0 cor0
----
-132
-26
-90

query I rowsort
SELECT DISTINCT + 40 + + col1 AS col1 FROM tab0 AS cor0
----
126
131
137

query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + 6 AS col2 FROM tab1 AS cor0
----
-156
-3642
-7674

query I rowsort
SELECT ALL + 45 - - col1 FROM tab2 cor0
----
104
62
76

query I rowsort
SELECT ALL - 15 FROM tab0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab2 cor0
----
41
41
41

query I rowsort
SELECT ALL + 21 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT col1 * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL 66 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6efa615455e6f9a8401d9aca573746e9

query I rowsort
SELECT - + col2 + - col2 * - col0 * + col0 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT ALL col1 + + ( - cor0.col0 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT cor0.col0 * col1 * 74 AS col0 FROM tab0 cor0
----
152736
251230
599326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col2 FROM tab0
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2563
SELECT + col0 * ( - col2 + col0 ) DIV col0 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-2563
SELECT + col0 * ( - col2 + col0 ) / col0 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT + col2 DIV - ( + col2 ) col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2564
SELECT + col2 / - ( + col2 ) col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + - col1 + + 83 AS col0 FROM tab0 AS cor0
----
-14
-3
-8

query I rowsort
SELECT col1 + col1 - col2 * col0 FROM tab0
----
-620
-7116
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
7
78
79

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT 60 * - 63 AS col0 FROM tab1 AS cor0
----
-3780

query I rowsort
SELECT - col2 * col0 + - col2 * + col0 * + col0 FROM tab2 AS cor0
----
-1512
-160212
-240160

query I rowsort
SELECT cor0.col0 * + 85 AS col0 FROM tab2 cor0
----
595
6630
6715

query I rowsort
SELECT + cor0.col2 * - col1 * 7 AS col0 FROM tab0 AS cor0
----
-19866
-52234
-679

query I rowsort
SELECT + - 80 * - cor0.col2 FROM tab0 cor0
----
2640
6560
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2574
SELECT - CAST( + col2 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2574
SELECT - CAST ( + col2 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + tab2.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + 31 * + 17 FROM tab1 AS cor0
----
527

query I rowsort
SELECT DISTINCT + - 80 * + col1 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 + col1 * - 60 AS col1 FROM tab2 cor0
----
-769
-85
-926

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2579
SELECT CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2579
SELECT CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 * + col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + - ( + 60 ) FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT col1 * - col1 - - col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL ( + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 95 + - 46 FROM tab1 AS cor0
----
-141
-141
-141

query I rowsort
SELECT DISTINCT + + 45 * cor0.col2 + col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT ALL - ( col1 ) * - col0 * col1 - col0 FROM tab0 AS cor0
----
177480
329280
736920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * 74 + col0 col1 FROM tab0 AS cor0
----
109
2466
6157

onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT + 71 DIV + col0 FROM tab1 cor0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-2588
SELECT + 71 / + col0 FROM tab1 cor0
----
0
1
23

query I rowsort
SELECT ALL - 28 + + col2 AS col0 FROM tab0 AS cor0
----
-27
5
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + col1 * + col1 col1 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT + col0 + col2 + 32 AS col1 FROM tab2 AS cor0
----
136
149
66

query I rowsort
SELECT - 5 * col1 FROM tab1 cor0
----
-130
-50
-65

query I rowsort
SELECT - col0 + col1 * col0 * col2 + col1 AS col1 FROM tab1 AS cor0
----
36426
4235
99773

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT - CAST( col0 AS SIGNED ) + - col2 AS col1 FROM tab2
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-2594
SELECT - CAST ( col0 AS INTEGER ) + - col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL - - col2 - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 15 * 69 col2 FROM tab2 AS cor0
----
-1008
-1009
-997

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT DISTINCT col1 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT col1 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2598
SELECT ALL + - col0 * CAST( 93 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2232
-3255
-8277

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + - col0 * CAST ( 93 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT + col0 * - ( - 66 ) + + col1 * - ( col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-492
1745
5004

query I rowsort
SELECT + - cor1.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL 49 * + col2 * + col2 + 4 FROM tab2 cor0
----
33128
35725
70760

query I rowsort
SELECT ALL - + 90 * + 99 AS col1 FROM tab0 AS cor0
----
-8910
-8910
-8910

onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT DISTINCT - - 55 * 89 DIV col1 - ( 78 * + cor0.col0 ) FROM tab0 AS cor0
----
-1816
-2680
-6889

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - - 55 * 89 / col1 - ( 78 * + cor0.col0 ) FROM tab0 AS cor0
----
-1816
-2680
-6889

query I rowsort
SELECT ALL + ( + col0 ) * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT ALL + col0 * ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col0 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
-17
-31
-59

query I rowsort
SELECT - 37 * 6 FROM tab2, tab1 AS cor0
----
9 values hashing to fb5c1028d26106658bd4be4de40c5332

query I rowsort
SELECT 54 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT col2 + col1 * 44 FROM tab0
----
3817
4086
4269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2612
SELECT CAST( 32 AS SIGNED ) AS col0 FROM tab2
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2612
SELECT CAST ( 32 AS INTEGER ) AS col0 FROM tab2
----
32
32
32

query I rowsort
SELECT DISTINCT - col2 + col1 * col1 - - cor0.col2 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - ( - col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + ( + col1 ) * col1 + ( 11 ) * + col2 FROM tab1 cor0
----
1225
1270
727

query I rowsort
SELECT - ( 36 ) AS col0 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - - cor0.col2 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - cor0.col0 + 0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 99 + col0 AS col2 FROM tab2 AS cor0
----
106
177
178

query I rowsort
SELECT ALL col2 + col0 + + col0 AS col1 FROM tab2
----
182
196
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT - ( - col2 ) DIV + 3 FROM tab1
----
18
19
32

skipif mysql # not compatible
query I rowsort label-2622
SELECT - ( - col2 ) / + 3 FROM tab1
----
18
19
32

query I rowsort
SELECT col2 + + col0 * - 89 AS col2 FROM tab0
----
-2103
-3114
-7839

query I rowsort
SELECT - col0 * tab2.col1 + 20 + + col2 FROM tab2
----
-1285
-170
-4556

query I rowsort
SELECT col1 * col2 * 82 AS col0 FROM tab1
----
102336
115128
46740

query I rowsort
SELECT ALL - cor0.col0 * col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col0 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 + 43 col2 FROM tab2 AS cor0
----
-9
2
63

query I rowsort
SELECT cor0.col1 * ( - col0 ) + col1 * col2 + 19 FROM tab0 AS cor0
----
-3279
-618
793

query I rowsort
SELECT - col1 * - col2 + col1 * col2 FROM tab2 AS cor0
----
1292
1674
3068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * tab2.col0 * - col0 col0 FROM tab2
----
-106135
-1546
-358982

onlyif mysql # use DIV operator for integer division
query I rowsort label-2632
SELECT - col1 DIV + col1 + + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
28
73
92

skipif mysql # not compatible
query I rowsort label-2632
SELECT - col1 / + col1 + + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
28
73
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT DISTINCT - + col0 + cor0.col1 DIV 68 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - + col0 + cor0.col1 / 68 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + + col1 * + col1 + + col2 + + col0 AS col0 FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT DISTINCT + + col2 * - col0 + - 61 FROM tab2 AS cor0
----
-2089
-250
-3063

query I rowsort
SELECT ALL col1 * 41 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT ALL - col2 * col2 * - col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT - col0 * + 16 + col1 FROM tab0 AS cor0
----
-1333
-298
-463

query I rowsort
SELECT ALL + col2 * - col2 * + col2 FROM tab1
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT col0 * col1 + col2 DIV + col0 FROM tab1
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-2640
SELECT col0 * col1 + col2 / + col0 FROM tab1
----
1041
640
96

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
17

query I rowsort
SELECT - col0 * ( - col2 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - - col1 * 5 + col0 AS col0 FROM tab0 AS cor0
----
454
520
544

query I rowsort
SELECT - col2 + ( col1 ) * col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT col0 * - col2 + + col1 * - ( - tab2.col0 + col1 ) AS col0 FROM tab2
----
-1948
-907
-933

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT - col0 * + col1 * CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-2646
SELECT - col0 * + col1 * CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - col1 * - col0 * 64 FROM tab1 AS cor0
----
40960
4992
66560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2648
SELECT DISTINCT - 9 + + col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT - 9 + + col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - - ( cor0.col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * - col1 col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT 83 * col1 AS col0 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT cor0.col1 + - cor0.col1 * ( ( cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 * col0 col0 FROM tab2 cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2654
SELECT ALL - col2 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - col2 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2655
SELECT DISTINCT + col1 * ( + cor0.col2 ) + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + col1 * ( + cor0.col2 ) + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( - col0 ) col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2657
SELECT DISTINCT + - col1 * CAST( + ( + col1 ) * - 83 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
613868
687323
780947

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT + - col1 * CAST ( + ( + col1 ) * - 83 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
613868
687323
780947

onlyif mysql # use DIV operator for integer division
query I rowsort label-2658
SELECT - col0 DIV - ( 22 + + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT - col0 / - ( 22 + + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 + - col0 * - col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT - cor0.col1 * - 36 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT - 67 AS col1 FROM tab0
----
-67
-67
-67

query I rowsort
SELECT - + ( + 73 ) + col0 AS col1 FROM tab1 AS cor0
----
-70
-9
7

query I rowsort
SELECT + col1 * 91 + col2 FROM tab2 AS cor0
----
1585
2848
5395

query I rowsort
SELECT + 53 * + col1 FROM tab1 AS cor0
----
1378
530
689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 + - 70 * col1 col0 FROM tab1 cor0
----
-1842
-722
-932

query I rowsort
SELECT + col0 * - tab0.col0 AS col2 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + col2 col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT 83 AS col2 FROM tab2 cor0
----
83
83
83

query I rowsort
SELECT ALL + - 49 FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2670
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * 86 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
258
5504
6880

query I rowsort
SELECT ALL 21 * + col0 + + col2 AS col1 FROM tab0
----
1951
537
736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col2 FROM tab1
----
98
98
98

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2675
SELECT DISTINCT CAST( 3 AS SIGNED ) * - col0 + col2 * col2 FROM tab0 AS cor0
----
-104
1017
6457

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT CAST ( 3 AS INTEGER ) * - col0 + col2 * col2 FROM tab0 AS cor0
----
-104
1017
6457

query I rowsort
SELECT DISTINCT - + col2 - 46 FROM tab2 cor0
----
-72
-73
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab2, tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT tab0.col0 + ( cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 5b7e2a7b66ad60562d4872f7ae5eab2b

query I rowsort
SELECT + 58 AS col1 FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2680
SELECT + col1 * - CAST( ( col2 ) AS SIGNED ) + - 96 FROM tab1 AS cor0
----
-1344
-1500
-666

skipif mysql # not compatible
query I rowsort label-2680
SELECT + col1 * - CAST ( ( col2 ) AS INTEGER ) + - 96 FROM tab1 AS cor0
----
-1344
-1500
-666

query I rowsort
SELECT 95 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + + 66 FROM tab1 cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + - col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
2081
242
3055

query I rowsort
SELECT ALL ( - col0 ) * col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - col2 col2 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT ALL + - col0 * 8 AS col2 FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT ALL - + 92 + col1 AS col1 FROM tab0 AS cor0
----
-1
-6
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col2 FROM tab2 cor0
----
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT ALL + CAST( NULL AS SIGNED ) / - col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + CAST ( NULL AS INTEGER ) / - col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * + col0 - col1 * - col0 col1 FROM tab2 cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT + col0 * - col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 + - col1 * - col1 * 75 col2 FROM tab1 AS cor0
----
12707
50732
7532

query I rowsort
SELECT - - col1 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col0 * 76 FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT - 42 * + col1 AS col1 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT - col1 * ( cor0.col2 * + 36 ) FROM tab1 AS cor0
----
-20520
-44928
-50544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - 72 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
72

query I rowsort
SELECT DISTINCT - 88 * + col2 + col2 * 75 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT DISTINCT - 15 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-334
-472
-963

query I rowsort
SELECT ALL + - col2 * + col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col0 - + cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 28 + + col1 FROM tab2 cor0
----
45
59
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT + ( col1 ) - 48 DIV ( cor0.col1 * cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2706
SELECT + ( col1 ) - 48 / ( cor0.col1 * cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col0 + cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2708
SELECT - col0 * - col2 - ( col1 ) DIV + col0 AS col2 FROM tab2 cor0
----
185
2028
3002

skipif mysql # not compatible
query I rowsort label-2708
SELECT - col0 * - col2 - ( col1 ) / + col0 AS col2 FROM tab2 cor0
----
185
2028
3002

query I rowsort
SELECT - 38 + + col0 AS col0 FROM tab2 AS cor0
----
-31
40
41

query I rowsort
SELECT ALL - - 15 * - col1 FROM tab2 AS cor0
----
-255
-465
-885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 * - col0 col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL col2 * + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + - col1 * 75 FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT DISTINCT + col2 * col1 + + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT - + col2 DIV col0 + col1 * + cor0.col0 FROM tab0 cor0
----
2063
3395
8099

skipif mysql # not compatible
query I rowsort label-2715
SELECT - + col2 / col0 + col1 * + cor0.col0 FROM tab0 cor0
----
2063
3395
8099

query I rowsort
SELECT DISTINCT - cor0.col1 * 52 AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT + col1 * - col0 + + ( - col1 ) * col1 * col2 FROM tab0 cor0
----
-12804
-246132
-687141

query I rowsort
SELECT ALL col0 + col2 * + col1 * + tab2.col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + - cor0.col1 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2720
SELECT col2 + + CAST( + col1 AS SIGNED ) + col0 * + 51 * col0 FROM tab2 AS cor0
----
2557
310369
318346

skipif mysql # not compatible
query I rowsort label-2720
SELECT col2 + + CAST ( + col1 AS INTEGER ) + col0 * + 51 * col0 FROM tab2 AS cor0
----
2557
310369
318346

query I rowsort
SELECT DISTINCT + col1 * + ( ( - col0 ) ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT + col0 * col0 + cor0.col1 * - col2 + + col2 DIV col0 FROM tab0 AS cor0
----
-2261
1128
459

skipif mysql # not compatible
query I rowsort label-2722
SELECT + col0 * col0 + cor0.col1 * - col2 + + col2 / col0 FROM tab0 AS cor0
----
-2261
1128
459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + col1 + col2 col0 FROM tab0 AS cor0
----
-1945
-3297
-7926

query I rowsort
SELECT col2 + + col2 * 5 AS col0 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT col0 * ( - col2 * + col2 ) FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL col2 * ( col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + + 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT col1 + ( + ( - col2 ) * cor0.col1 ) - + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-77
-799
815

query I rowsort
SELECT + col2 + ( 9 ) AS col2 FROM tab0 AS cor0
----
10
42
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2730
SELECT DISTINCT + col1 * + CAST( 72 AS SIGNED ) AS col1 FROM tab2 cor0
----
1224
2232
4248

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + col1 * + CAST ( 72 AS INTEGER ) AS col1 FROM tab2 cor0
----
1224
2232
4248

query I rowsort
SELECT - col2 - 53 FROM tab2 AS cor0
----
-79
-80
-91

query I rowsort
SELECT ALL col0 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col2 * ( col1 ) + - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - 71 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT + - 93 + - col1 AS col0 FROM tab0 AS cor0
----
-179
-184
-190

query I rowsort
SELECT + col1 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2737
SELECT - CAST( 66 AS SIGNED ) * + col0 + - ( col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
-11232
-11455
-511

skipif mysql # not compatible
query I rowsort label-2737
SELECT - CAST ( 66 AS INTEGER ) * + col0 + - ( col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
-11232
-11455
-511

query I rowsort
SELECT ALL 86 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT col1 * + tab0.col2 + - col1 FROM tab0
----
0
2752
7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2740
SELECT DISTINCT col0 + + col2 * - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1523
736
754

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT col0 + + col2 * - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - 2 + + cor0.col0 FROM tab2 AS cor0
----
5
76
77

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 + - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - 66 * - col0 AS col2 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT DISTINCT - col0 + col0 * - 53 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT DISTINCT 22 * - 7 AS col0 FROM tab0
----
-154

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808

query I rowsort
SELECT ( - col0 ) * - col0 + + col1 AS col2 FROM tab1
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT 21 * - col0 + col1 FROM tab1
----
-1334
-1667
-37

query I rowsort
SELECT + col2 + col2 + - col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 14 * col0 * col0 + col0 AS col2 FROM tab2
----
693
85254
87453

query I rowsort
SELECT 65 + tab0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3a99d6ad89cb4b1a40d3e093b7ce40fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col2 col0 FROM tab2
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2754
SELECT - + col2 * - cor0.col1 + + col1 * col1 DIV + col0 FROM tab2 AS cor0
----
1578
649
974

skipif mysql # not compatible
query I rowsort label-2754
SELECT - + col2 * - cor0.col1 + + col1 * col1 / + col0 FROM tab2 AS cor0
----
1578
649
974

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT ALL + ( - col1 ) + - ( ( - col2 ) ) DIV 38 AS col1 FROM tab1
----
-11
-25
-9

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + ( - col1 ) + - ( ( - col2 ) ) / 38 AS col1 FROM tab1
----
-11
-25
-9

query I rowsort
SELECT - + col1 * col2 * + col2 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT - col0 * - 37 AS col2 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT + - cor0.col1 * + col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 9 ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT col1 + col1 * + col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT ALL 86 * + col0 AS col0 FROM tab1
----
258
5504
6880

query I rowsort
SELECT - 32 * + cor0.col1 FROM tab1 AS cor0
----
-320
-416
-832

query I rowsort
SELECT - + 47 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT ALL - tab0.col0 * 99 AS col1 FROM tab0
----
-2376
-3465
-8811

query I rowsort
SELECT - col0 * + 59 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - col1 * + 19 FROM tab1 AS cor0
----
-190
-247
-494

query I rowsort
SELECT + + 70 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT DISTINCT col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - CAST ( - col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + col2 * 97 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT ALL - col0 * + 80 FROM tab0 AS cor0
----
-1920
-2800
-7120

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 62086d53b7dd9376121857c3d03027d6

query I rowsort
SELECT + + col1 + + 10 FROM tab0 AS cor0
----
101
107
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT + col2 DIV - col0 + - col2 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-2776
SELECT + col2 / - col0 + - col2 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT + col0 + 27 AS col1 FROM tab2 AS cor0
----
105
106
34

query I rowsort
SELECT ALL + + col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col0 + + col2 * - 91 + + col0 AS col1 FROM tab0 cor0
----
-21
-2955
-7284

query I rowsort
SELECT ALL + col1 + 93 FROM tab1 cor0
----
103
106
119

query I rowsort
SELECT DISTINCT col2 + 22 * - 45 FROM tab2 AS cor0
----
-952
-963
-964

query I rowsort
SELECT col1 + 59 * col0 + + col1 FROM tab1 AS cor0
----
229
3796
4746

query I rowsort
SELECT + col1 * 66 * col0 FROM tab0 AS cor0
----
136224
224070
534534

onlyif mysql # use DIV operator for integer division
query I rowsort label-2784
SELECT DISTINCT col2 DIV 55 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT col2 / 55 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT tab0.col1 * + 33 * - tab0.col0 FROM tab0
----
-112035
-267267
-68112

query I rowsort
SELECT DISTINCT col2 + tab0.col2 + col0 FROM tab0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT col2 - 9 DIV - ( + col1 ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2787
SELECT col2 - 9 / - ( + col1 ) FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT + - 45 DIV col2 FROM tab0 cor0
----
-1
-45
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT + - 45 / col2 FROM tab0 cor0
----
-1
-45
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col0 + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT DISTINCT + col2 DIV 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + col2 / 79 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2793
SELECT - CAST( 27 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
-20
51
52

skipif mysql # not compatible
query I rowsort label-2793
SELECT - CAST ( 27 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
-20
51
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 + col2 + - col0 col0 FROM tab1 cor0
----
-21
2
37

query I rowsort
SELECT cor0.col2 + - col0 + col1 AS col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ALL + + 65 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT - + ( col0 ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT + 59 * col0 DIV ( - 14 ) + - col1 FROM tab2 AS cor0
----
-349
-387
-60

skipif mysql # not compatible
query I rowsort label-2798
SELECT + 59 * col0 / ( - 14 ) + - col1 FROM tab2 AS cor0
----
-349
-387
-60

query I rowsort
SELECT - + 60 AS col0 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT col0 * - col0 - - col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT - + col2 - + col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + - cor0.col1 + 37 AS col1 FROM tab0 AS cor0
----
-49
-54
-60

query I rowsort
SELECT ALL - col0 + - cor0.col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT col1 + 1 + - col0 AS col2 FROM tab0 AS cor0
----
3
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT DISTINCT + col2 DIV tab1.col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT + col2 / tab1.col2 FROM tab1
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT 73 DIV - col0 FROM tab1
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT 73 / - col0 FROM tab1
----
-1
-24
0

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 36 AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL + col0 + col0 * - ( 45 ) AS col1 FROM tab0 AS cor0
----
-1056
-1540
-3916

query I rowsort
SELECT + - 23 AS col0 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL cor0.col1 * cor0.col2 * + ( + cor0.col0 ) FROM tab1 cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + col0 col2 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2813
SELECT ALL + 94 DIV + col0 + 8 + + 94 DIV col2 AS col0 FROM tab0 AS cor0
----
10
104
13

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL + 94 / + col0 + 8 + + 94 / col2 AS col0 FROM tab0 AS cor0
----
10
104
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2814
SELECT ALL + + col2 - col0 * CAST( ( col2 ) + col2 AS SIGNED ) FROM tab1 AS cor0
----
-15264
-270
-7239

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + + col2 - col0 * CAST ( ( col2 ) + col2 AS INTEGER ) FROM tab1 AS cor0
----
-15264
-270
-7239

query I rowsort
SELECT DISTINCT - 78 * col2 + col2 AS col1 FROM tab0
----
-2541
-6314
-77

query I rowsort
SELECT ALL 82 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - 8 FROM tab0, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT col0 + col0 * - col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT 87 * + tab0.col2 + - col1 * - tab0.col2 - ( col2 ) * - col0 FROM tab0
----
21894
219
6501

query I rowsort
SELECT col2 - - 18 FROM tab1
----
114
72
75

query I rowsort
SELECT 80 * col2 * + col2 AS col0 FROM tab1
----
233280
259920
737280

query I rowsort
SELECT + ( col1 ) - - tab0.col0 * 27 FROM tab0
----
1042
2494
734

query I rowsort
SELECT ALL - + 59 + + 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2824
SELECT + ( + 72 ) - - cor1.col0 * + CAST( 22 AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to d368941fb71a61663774d6f601f4b079

skipif mysql # not compatible
query I rowsort label-2824
SELECT + ( + 72 ) - - cor1.col0 * + CAST ( 22 AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to d368941fb71a61663774d6f601f4b079

query I rowsort
SELECT + - 40 + - col0 FROM tab1 AS cor0
----
-104
-120
-43

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + 63 FROM tab0 AS cor0
----
7361
855
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2827
SELECT DISTINCT + + col2 DIV col0 + + col1 * + col2 FROM tab0 cor0
----
2839
7462
97

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT + + col2 / col0 + + col1 * + col2 FROM tab0 cor0
----
2839
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 + cor0.col2 * 36 + - col1 col2 FROM tab1 AS cor0
----
1993
2117
3518

onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT + + 42 + + col0 DIV - 22 AS col1 FROM tab2 AS cor0
----
39
39
42

skipif mysql # not compatible
query I rowsort label-2829
SELECT + + 42 + + col0 / - 22 AS col1 FROM tab2 AS cor0
----
39
39
42

query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - ( col2 ) + col1 * 84 AS col1 FROM tab2 AS cor0
----
1390
2577
4930

query I rowsort
SELECT + 46 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + 87 FROM tab1, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2834
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2834
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT cor0.col0 * 51 FROM tab2 AS cor0
----
357
3978
4029

skipif mysql # not compatible
query I rowsort
SELECT - col0 * - CAST ( - 26 AS REAL ) AS col1 FROM tab0 AS cor0
----
-2314
-624
-910

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT ALL col2 * 43 DIV + col0 AS col1 FROM tab0
----
1
39
59

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL col2 * 43 / + col0 AS col1 FROM tab0
----
1
39
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT - + 47 * cor0.col2 DIV + col0 + - col0 FROM tab0 AS cor0
----
-132
-36
-88

skipif mysql # not compatible
query I rowsort label-2838
SELECT - + 47 * cor0.col2 / + col0 + - col0 FROM tab0 AS cor0
----
-132
-36
-88

query I rowsort
SELECT ALL + col1 * tab2.col2 + tab2.col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-2840
SELECT 30 + + 89 DIV col2 FROM tab1
----
30
31
31

skipif mysql # not compatible
query I rowsort label-2840
SELECT 30 + + 89 / col2 FROM tab1
----
30
31
31

query I rowsort
SELECT DISTINCT cor0.col2 + - 79 AS col2 FROM tab0 AS cor0
----
-46
-78
3

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 68 * col1 AS col2 FROM tab1 AS cor0
----
1768
680
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT DISTINCT + - col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT + - col0 / + col0 AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2845
SELECT - cor0.col1 * - 28 + cor0.col2 DIV - col0 FROM tab0 cor0
----
2407
2548
2716

skipif mysql # not compatible
query I rowsort label-2845
SELECT - cor0.col1 * - 28 + cor0.col2 / - col0 FROM tab0 cor0
----
2407
2548
2716

query I rowsort
SELECT DISTINCT + tab1.col2 * - tab1.col1 + col2 * + col1 AS col1 FROM tab1
----
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

query I rowsort
SELECT col1 + - col0 * - col0 * - 69 AS col2 FROM tab0
----
-39658
-546458
-84428

query I rowsort
SELECT 70 * + col1 AS col0 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT - + col0 + - col0 AS col1 FROM tab0 cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * + col2 col0 FROM tab2 cor0
----
-1368
-936
-972

query I rowsort
SELECT - + 45 AS col0 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + col0 + - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT + col2 DIV col0 - col0 AS col1 FROM tab2 cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-2856
SELECT + col2 / col0 - col0 AS col1 FROM tab2 cor0
----
-4
-78
-79

query I rowsort
SELECT DISTINCT + + 12 AS col1 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT col2 + - 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-2859
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) + cor0.col2 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) + cor0.col2 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - - col2 - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT DISTINCT - ( + col2 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - ( + col2 ) / + col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - ( col0 ) + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2863
SELECT - ( ( - col0 ) ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT - ( ( - col0 ) ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 18 * - col2 + - col2 + col2 AS col0 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT DISTINCT 64 + col1 * + 77 FROM tab1 AS cor0
----
1065
2066
834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col1 + cor0.col0 col2 FROM tab0 cor0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT ALL - - 30 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - - 30 / - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2868
SELECT + CAST( tab0.col0 AS SIGNED ) DIV col1 + 90 + + 51 AS col0 FROM tab0
----
141
141
141

skipif mysql # not compatible
query I rowsort label-2868
SELECT + CAST ( tab0.col0 AS INTEGER ) / col1 + 90 + + 51 AS col0 FROM tab0
----
141
141
141

query I rowsort
SELECT ALL - tab0.col0 + 55 + + col2 AS col0 FROM tab0
----
21
48
64

query I rowsort
SELECT 31 FROM tab2, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + - col2 - - col0 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT col2 + 93 + - col1 AS col0 FROM tab0 AS cor0
----
-3
40
84

query I rowsort
SELECT DISTINCT col0 * 6 - + col1 FROM tab2 AS cor0
----
11
409
457

query I rowsort
SELECT DISTINCT + col1 + 94 * 38 FROM tab0 AS cor0
----
3658
3663
3669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 78 col2 FROM tab2
----
-71
0
1

query I rowsort
SELECT ALL - col1 + + 80 FROM tab1 AS cor0
----
54
67
70

query I rowsort
SELECT cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL 73 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT - tab0.col2 + col0 * col2 FROM tab0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( col1 ) col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col0 * - 81 - + col0 * + col2 AS col1 FROM tab1 AS cor0
----
-14160
-405
-8832

query I rowsort
SELECT ALL - col0 + + 8 FROM tab2 AS cor0
----
-70
-71
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT + - CAST( + 80 AS SIGNED ) DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2884
SELECT + - CAST ( + 80 AS INTEGER ) / col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 - - col1 * + tab2.col0 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + 59 + col2 FROM tab2 AS cor0
----
85
86
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT - cor0.col0 DIV + col1 + + col1 col0 FROM tab1 AS cor0
----
26
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2888
SELECT - cor0.col0 / + col1 + + col1 col0 FROM tab1 AS cor0
----
26
4
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT - - 11 + + cor0.col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT - - 11 + + cor0.col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + cor0.col2 + - col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col0 * + 57 AS col2 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT col0 + 62 FROM tab1 AS cor0
----
126
142
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2893
SELECT ALL cor0.col2 DIV 87 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-95

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL cor0.col2 / 87 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-95

query I rowsort
SELECT + 66 AS col2 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT + - 65 + - col2 AS col1 FROM tab2 AS cor0
----
-103
-91
-92

query I rowsort
SELECT + col2 + + col0 * col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - 87 * + 79 FROM tab0, tab1 AS cor0
----
9 values hashing to ed0dced2045c1b26d10cc38224417ef0

query I rowsort
SELECT ( 3 ) AS col2 FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

query I rowsort
SELECT ( - col1 ) * col0 - + col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT 86 * + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 4a425fd1fe865edf3d551d399e553ffe

query I rowsort
SELECT + - col2 + - col2 + col0 * col1 FROM tab2 AS cor0
----
1267
163
4550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2902
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT DISTINCT 80 DIV col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT 80 / col1 FROM tab1
----
3
6
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 + col1 col2 FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT ALL cor0.col1 + + col0 - col2 FROM tab1 cor0
----
-25
-3
17

query I rowsort
SELECT DISTINCT - - col0 + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2907
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * 6 col1 FROM tab1, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + + CAST ( NULL AS REAL ) * 6 col1 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 60 + - col2 AS col0 FROM tab1 AS cor0
----
-36
3
6

query I rowsort
SELECT DISTINCT col1 * - 33 AS col2 FROM tab1
----
-330
-429
-858

onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT 89 DIV - 35 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2910
SELECT 89 / - 35 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - col1 + + col0 * 63 AS col1 FROM tab1
----
163
4022
5027

query I rowsort
SELECT 6 - col1 AS col2 FROM tab2
----
-11
-25
-53

query I rowsort
SELECT DISTINCT + 39 * col0 + - 82 AS col1 FROM tab1
----
2414
3038
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + tab2.col2 col1 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT col2 + - col0 * col2 - ( + col1 ) * col2 DIV tab1.col2 FROM tab1
----
-134
-3601
-7597

skipif mysql # not compatible
query I rowsort label-2915
SELECT col2 + - col0 * col2 - ( + col1 ) * col2 / tab1.col2 FROM tab1
----
-134
-3601
-7597

query I rowsort
SELECT col2 * - col0 * col1 + + col0 AS col1 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT col2 * + col1 * + tab0.col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - 7 + col0 AS col2 FROM tab0
----
17
28
82

query I rowsort
SELECT DISTINCT - col1 * + 22 AS col1 FROM tab2
----
-1298
-374
-682

query I rowsort
SELECT 30 * + 73 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to ca12b8d521f09699e8178ab791e412a1

query I rowsort
SELECT ALL 1 * - col2 + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab2.col2 * - col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + - col1 + + 84 AS col2 FROM tab1 AS cor0
----
58
71
74

query I rowsort
SELECT ALL 3 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

query I rowsort
SELECT DISTINCT col1 * 72 AS col0 FROM tab1
----
1872
720
936

query I rowsort
SELECT - 81 * 19 FROM tab1 AS cor0
----
-1539
-1539
-1539

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT 79 DIV - col0 FROM tab1
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT 79 / - col0 FROM tab1
----
-1
-26
0

query I rowsort
SELECT ALL + + col1 * ( cor0.col1 + col0 ) FROM tab1 AS cor0
----
1209
740
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT ALL - col0 DIV - 13 + - col0 * + cor0.col1 FROM tab1 AS cor0
----
-1034
-636
-78

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL - col0 / - 13 + - col0 * + cor0.col1 FROM tab1 AS cor0
----
-1034
-636
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT DISTINCT - ( col1 ) * + col0 - - col1 DIV + col0 AS col2 FROM tab1 cor0
----
-1040
-640
-70

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT - ( col1 ) * + col0 - - col1 / + col0 AS col2 FROM tab1 cor0
----
-1040
-640
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT ALL + 82 DIV - col1 + col0 - + col2 AS col0 FROM tab2 AS cor0
----
-22
37
51

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + 82 / - col1 + col0 - + col2 AS col0 FROM tab2 AS cor0
----
-22
37
51

query I rowsort
SELECT DISTINCT + col2 + - 0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 83 AS col1 FROM tab1 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * 34 * - col2 col0 FROM tab1 AS cor0
----
-110160
-116280
-195840

query I rowsort
SELECT + col1 * - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - col2 * - 14 AS col0 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT + col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col2 * - 68 + ( col2 ) FROM tab1
----
-3618
-3819
-6432

query I rowsort
SELECT ALL col1 + col0 * 17 FROM tab1
----
1098
1373
77

query I rowsort
SELECT + cor0.col1 + ( + 98 ) FROM tab2 AS cor0
----
115
129
157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT DISTINCT col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT col0 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT + + cor0.col2 * CAST( NULL AS SIGNED ) * + col2 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT + + cor0.col2 * CAST ( NULL AS INTEGER ) * + col2 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * + col0 + col1 * col2 AS col2 FROM tab2 AS cor0
----
6887
7618
886

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT DISTINCT + col1 DIV - 94 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT + col1 / - 94 FROM tab0 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT ALL ( col1 ) DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL ( col1 ) / col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - 37 * - col2 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT ALL - - col1 * - 2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT 40 * - 15 + + col1 + 15 FROM tab1 AS cor0
----
-559
-572
-575

query I rowsort
SELECT ALL + - ( - 58 ) * col1 + + ( + cor0.col2 ) FROM tab0 AS cor0
----
5021
5360
5627

query I rowsort
SELECT + - col0 * - col2 + col2 * col0 + col2 AS col1 FROM tab0 AS cor0
----
14678
1617
71

query I rowsort
SELECT DISTINCT - col0 * + col0 * + col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT col1 + 64 AS col2 FROM tab2
----
123
81
95

query I rowsort
SELECT DISTINCT - col2 * - col2 + 41 * - col1 FROM tab0
----
-2437
-3976
2993

query I rowsort
SELECT DISTINCT tab1.col0 + + col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - tab0.col2 * col0 + col0 + col2 FROM tab0
----
-7127
-735
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2956
SELECT tab1.col0 + - col0 + 44 DIV + col1 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-2956
SELECT tab1.col0 + - col0 + 44 / + col1 FROM tab1
----
1
3
4

query I rowsort
SELECT - col1 * + col1 * + col1 AS col0 FROM tab0
----
-636056
-753571
-912673

query I rowsort
SELECT - col0 * - col1 + ( col0 ) AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT - col0 + tab0.col1 AS col2 FROM tab0
----
2
62

query I rowsort
SELECT ALL + 95 * - col2 + ( col1 ) AS col1 FROM tab0 AS cor0
----
-3049
-7699
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT ALL col2 DIV col0 + 19 * + 58 + cor0.col1 AS col2 FROM tab0 cor0
----
1189
1193
1199

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL col2 / col0 + 19 * + 58 + cor0.col1 AS col2 FROM tab0 cor0
----
1189
1193
1199

query I rowsort
SELECT ALL + col2 * + col2 + + 96 FROM tab2 AS cor0
----
1540
772
825

query I rowsort
SELECT ALL 49 + cor0.col2 AS col1 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT DISTINCT - 3 - - col2 * 59 AS col0 FROM tab2 AS cor0
----
1531
1590
2239

query I rowsort
SELECT DISTINCT 59 * col2 AS col1 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT ALL + - ( col0 ) * + col0 + + cor0.col0 * cor0.col0 + + 54 * - 79 * col1 AS col1 FROM tab2 AS cor0
----
-132246
-251694
-72522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT ALL - 29 + cor0.col1 DIV + col0 FROM tab2 AS cor0
----
-25
-29
-29

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL - 29 + cor0.col1 / + col0 FROM tab2 AS cor0
----
-25
-29
-29

query I rowsort
SELECT - - cor0.col2 * + cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL + 98 * 42 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16c5d9ea2eebe0404bf56f57a32101de

query I rowsort
SELECT 75 * col0 - + col2 AS col2 FROM tab2
----
498
5824
5887

query I rowsort
SELECT - ( + col0 ) + + col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL + 61 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL + - col1 * col2 * 83 + - cor0.col0 FROM tab2 AS cor0
----
-127400
-53697
-69478

query I rowsort
SELECT DISTINCT + col1 + + col2 - 23 FROM tab2 AS cor0
----
32
35
62

query I rowsort
SELECT 30 + + col0 AS col2 FROM tab1 AS cor0
----
110
33
94

query I rowsort
SELECT ALL - col2 * - col0 + col1 * col1 FROM tab2 AS cor0
----
1150
3291
5509

onlyif mysql # use DIV operator for integer division
query I rowsort label-2977
SELECT DISTINCT ( - col1 ) DIV 66 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT ( - col1 ) / 66 AS col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + tab1.col2 * col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT 9 AS col0 FROM tab1
----
9
9
9

query I rowsort
SELECT ALL - col0 + 19 AS col0 FROM tab1
----
-45
-61
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2982
SELECT DISTINCT + 60 + cor0.col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT + 60 + cor0.col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col2 + 14 * - col2 * - col1 AS col2 FROM tab2
----
11745
21502
9082

query I rowsort
SELECT - tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 1 col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT col2 * ( 82 ) - col1 AS col2 FROM tab2 AS cor0
----
2073
2183
3099

query I rowsort
SELECT - - col1 + 37 * col1 AS col2 FROM tab2 AS cor0
----
1178
2242
646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 19 * + col1 col2 FROM tab2
----
1147
361
616

query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
-26
-27
-38

query I rowsort
SELECT - cor0.col2 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2992
SELECT ALL + 42 * 48 + col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + 42 * 48 + col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + cor0.col0 + + col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL + ( col0 ) * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL ( - col2 ) + - col0 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
180
40903
83104

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT DISTINCT + col2 DIV 43 FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + col2 / 43 FROM tab1 cor0
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col1 + col0 + col1 col2 FROM tab0 AS cor0
----
-2728
-7282
35

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT ( + col2 ) + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - 56 FROM tab0, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
-56

query I rowsort
SELECT ALL - - cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL col2 + + col2 * - col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT - cor0.col2 * + col1 * col0 + col0 DIV + col0 FROM tab2 AS cor0
----
-119651
-51033
-5858

skipif mysql # not compatible
query I rowsort label-3003
SELECT - cor0.col2 * + col1 * col0 + col0 / + col0 FROM tab2 AS cor0
----
-119651
-51033
-5858

query I rowsort
SELECT ALL - - 56 AS col2 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT 16 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT - col0 + + col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + - cor0.col2 + col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * - col2 col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL - col0 * - col2 FROM tab0 WHERE - col2 * col1 * - col0 BETWEEN NULL AND + col0 * - col0
----

query I rowsort
SELECT col1 * - col0 * - col1 FROM tab2
----
22831
271518
6727

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 * col2 ) = col0
----

query I rowsort
SELECT - col1 * - col0 + + col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT - col2 * + col2 + tab1.col2 * + col2 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 - col1 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT col0 * tab1.col1 DIV + col2 FROM tab1
----
1
10
11

skipif mysql # not compatible
query I rowsort label-3015
SELECT col0 * tab1.col1 / + col2 FROM tab1
----
1
10
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NULL IN ( + tab2.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT DISTINCT col1 DIV tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT col1 / tab0.col0 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT DISTINCT - col1 * col0 DIV - col0 AS col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT - col1 * col0 / - col0 AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT col2 + tab1.col2 * col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL 55 * - col2 + - tab0.col2 FROM tab0
----
-1848
-4592
-56

query I rowsort
SELECT + 81 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT + col1 DIV cor0.col1 + + col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3023
SELECT + col1 / cor0.col1 + + col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * 79 AS col1 FROM tab2 AS cor0
----
580
6188
6279

onlyif mysql # use DIV operator for integer division
query I rowsort label-3025
SELECT DISTINCT + tab0.col1 + + col2 DIV + col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + tab0.col1 + + col2 / + col2 FROM tab0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 + - col0 col1 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE col0 * col2 BETWEEN NULL AND + col2 * + col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + col0 / col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col1 col0 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT ALL cor0.col0 DIV col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL cor0.col0 / col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / col2 + - col2 * col0 <> - col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col1 + - col1 - col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 AS col0 FROM tab0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 WHERE NOT - col1 + - col0 * - col2 + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + col0 + + tab1.col1 AS col0 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3038
SELECT ALL col1 * col2 DIV - col1 AS col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL col1 * col2 / - col1 AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col2 * col0 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3040
SELECT ALL tab0.col2 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL tab0.col2 / - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 - + tab0.col1 AS col0 FROM tab0 WHERE NOT ( + col1 - + col0 * col2 / col2 ) = col1 * - col2
----
-53
-9
-96

query I rowsort
SELECT - tab0.col0 + - col0 * col1 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - col1 * + col1 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT col0 DIV col0 - col1 * - col2 FROM tab2
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-3044
SELECT col0 / col0 - col1 * - col2 FROM tab2
----
1535
647
838

query I rowsort
SELECT + col0 * col2 - col2 * col2 FROM tab1
----
-1536
-2754
399

query I rowsort
SELECT ALL cor0.col2 + 89 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 54add5d7726319a05cafae77aeddf5e8

query I rowsort
SELECT - 54 * - 38 AS col1 FROM tab1 AS cor0
----
2052
2052
2052

query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 90 + col2 * col0 AS col2 FROM tab0 AS cor0
----
125
7388
882

query I rowsort
SELECT DISTINCT + 33 * 50 FROM tab2 AS cor0
----
1650

query I rowsort
SELECT ALL col1 + + 12 FROM tab1 cor0
----
22
25
38

query I rowsort
SELECT DISTINCT - - col2 * col2 + col0 * 76 FROM tab2 AS cor0
----
1261
6604
7448

query I rowsort
SELECT + cor0.col0 + 76 AS col2 FROM tab0 AS cor0
----
100
111
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + - ( col2 ) col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3056
SELECT 82 + col2 + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
134
136
158

skipif mysql # not compatible
query I rowsort label-3056
SELECT 82 + col2 + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
134
136
158

query I rowsort
SELECT - + cor0.col0 * - col1 + col2 + - col1 FROM tab1 AS cor0
----
106
1123
687

query I rowsort
SELECT DISTINCT - 35 * - col0 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT + ( col1 ) * + 39 + + cor0.col0 + - col0 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT ALL 74 * col2 + - col1 - + col1 FROM tab2
----
1806
1936
2778

query I rowsort
SELECT ( - col0 * + col1 ) FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT DISTINCT col0 DIV ( col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT col0 / ( col1 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col2 - col1 * + col0 AS col1 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col1 + - 39 AS col2 FROM tab0 AS cor0
----
47
52
58

query I rowsort
SELECT ALL - col1 + + 77 * + col2 AS col0 FROM tab2 AS cor0
----
1943
2048
2909

query I rowsort
SELECT + 79 * tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 276f61b817b5fb5b3a670efe1cdd536b

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab0
----
45

query I rowsort
SELECT col1 + 6 * + col2 FROM tab0
----
103
284
583

query I rowsort
SELECT - col0 + cor0.col2 * - 84 AS col0 FROM tab1 cor0
----
-4539
-4852
-8144

query I rowsort
SELECT col1 * + col0 + + col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT col1 * col0 * col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - ( + 0 ) + + col0 * - col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col2 * + col0 + + col0 AS col2 FROM tab0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3074
SELECT DISTINCT - CAST( 61 AS SIGNED ) * - col1 FROM tab2
----
1037
1891
3599

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT - CAST ( 61 AS INTEGER ) * - col1 FROM tab2
----
1037
1891
3599

query I rowsort
SELECT DISTINCT 11 * - col1 * col1 FROM tab2
----
-10571
-3179
-38291

query I rowsort
SELECT 86 + col1 AS col1 FROM tab1 cor0
----
112
96
99

query I rowsort
SELECT DISTINCT + col1 * 86 + col0 + - col1 FROM tab0 AS cor0
----
7334
7824
8280

query I rowsort
SELECT DISTINCT ( col1 ) + - col0 FROM tab0 cor0
----
2
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3079
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 * col2 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - + 98 + + col2 FROM tab0 AS cor0
----
-16
-65
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3082
SELECT - CAST( NULL AS SIGNED ) * + 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT - CAST ( NULL AS INTEGER ) * + 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3083
SELECT ALL CAST( NULL AS SIGNED ) * col2 + - col2 * col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL CAST ( NULL AS INTEGER ) * col2 + - col2 * col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 58 AS col2 FROM tab2 AS cor0
----
-1508
-1566
-2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-3085
SELECT + + col0 DIV cor0.col0 - + col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT + + col0 / cor0.col0 - + col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3087
SELECT - + col2 - - col0 DIV + col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-3087
SELECT - + col2 - - col0 / + col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT 44 * - col1 AS col0 FROM tab0 AS cor0
----
-3784
-4004
-4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-3089
SELECT DISTINCT + col1 DIV + col0 FROM tab1 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT + col1 / + col0 FROM tab1 cor0
----
0
8

query I rowsort
SELECT col0 * - cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + col1 + col0 * col2 - - col2 FROM tab2 cor0
----
2113
247
3057

query I rowsort
SELECT DISTINCT 63 * + col1 AS col2 FROM tab1 AS cor0
----
1638
630
819

onlyif mysql # use DIV operator for integer division
query I rowsort label-3093
SELECT DISTINCT - - col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - - col1 / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL + + 12 + col2 FROM tab2 AS cor0
----
38
39
50

query I rowsort
SELECT + col1 + col1 * cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
10999
25978
90565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + + col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - 70 AS col0 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT - - cor0.col0 * ( - 28 ) + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-147
3900
4029

query I rowsort
SELECT DISTINCT + col2 + col1 * 97 * col2 AS col0 FROM tab1 AS cor0
----
121152
136242
55347

query I rowsort
SELECT ALL + col1 + 67 FROM tab0 AS cor0
----
153
158
164

query I rowsort
SELECT ALL col0 * + cor0.col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL - col2 * 83 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT DISTINCT + col1 * 26 + 9 * col2 AS col1 FROM tab1 AS cor0
----
1162
1202
773

query I rowsort
SELECT ALL - - col1 + - 60 + col2 FROM tab1 AS cor0
----
20
49
7

query I rowsort
SELECT cor0.col2 * 44 + - 93 FROM tab1 AS cor0
----
2283
2415
4131

onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT DISTINCT + - col1 DIV cor0.col1 col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT + - col1 / cor0.col1 col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL col1 + 42 AS col0 FROM tab0 AS cor0
----
128
133
139

query I rowsort
SELECT DISTINCT col1 + + ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT - - cor0.col2 + 38 DIV - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - cor0.col2 + 38 / - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - - col2 * 15 - col0 * - col2 AS col2 FROM tab2 AS cor0
----
2418
3572
594

query I rowsort
SELECT DISTINCT cor0.col2 * + 91 * + col2 AS col0 FROM tab0 cor0
----
611884
91
99099

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - 46 * col1 + - cor0.col0 FROM tab0 AS cor0
----
-3980
-4275
-4497

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79

query I rowsort
SELECT DISTINCT - 59 FROM tab2, tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + col0 * col2 col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT + cor0.col0 * - col2 + col2 * + col2 FROM tab0 AS cor0
----
-34
-574
297

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT ALL - + col0 * + col2 + col2 + col2 DIV cor0.col0 col2 FROM tab1 AS cor0
----
-3591
-7583
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - + col0 * + col2 + col2 + col2 / cor0.col0 col2 FROM tab1 AS cor0
----
-3591
-7583
-90

query I rowsort
SELECT ALL + col0 + cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + col1 + + col1 * cor0.col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - - col2 + + col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL col1 + + tab1.col0 + col2 * tab1.col0 FROM tab1
----
191
3722
7773

query I rowsort
SELECT col1 * tab0.col0 * - col0 + + col2 * + col2 + col2 FROM tab0
----
-118823
-48414
-714005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col2 * col2 col2 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + col2 col0 FROM tab2
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT DISTINCT + col2 DIV + col2 + - tab0.col2 DIV - tab0.col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT + col2 / + col2 + - tab0.col2 / - tab0.col2 FROM tab0
----
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( col1 * col2 - - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - tab2.col0 )
----

query I rowsort
SELECT - col0 + + col2 * + col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + col0 / + col2 > NULL
----

query I rowsort
SELECT ALL + + col0 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE NOT col2 IN ( - col1 ) OR NOT NULL <> ( NULL )
----
54
57
96

query I rowsort
SELECT ALL ( - col0 ) * col0 + col2 AS col1 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT ALL - col0 * - col0 + - tab2.col0 * + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 + - col2 + tab2.col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + col1 * - col1 - + col0 FROM tab1 AS cor0
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 + - col0 * col1 col0 FROM tab2 AS cor0
----
-406
-4345
-6630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col2 col0 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - + col2 * - col2 + cor0.col1 + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
6819
7702
809

query I rowsort
SELECT ALL + col2 + - ( - 83 ) FROM tab0 cor0
----
116
165
84

query I rowsort
SELECT DISTINCT cor0.col2 * 80 AS col2 FROM tab0 AS cor0
----
2640
6560
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 2 * - col2 col2 FROM tab0 cor0
----
-253
-37
-90

query I rowsort
SELECT + - col0 - - cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + - col2 * - 80 FROM tab0 AS cor0
----
2640
6560
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab0
----
16
16
16

query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3151
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - cor0.col1 + - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6370a8dbb566b00ce2aafff5085dfe9

query I rowsort
SELECT cor0.col0 + 37 AS col2 FROM tab1 AS cor0
----
101
117
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3155
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT ALL + col1 * ( + col1 * - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + col1 * ( + col1 * - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 - - col1 AS col1 FROM tab1
----
-40
-53
-56

query I rowsort
SELECT tab1.col0 * - col0 + col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT - col1 + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col2 + col0 * - col0 AS col1 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT + 81 + cor0.col1 AS col2 FROM tab2 AS cor0
----
112
140
98

query I rowsort
SELECT ALL - 67 + col1 * col2 AS col2 FROM tab0 cor0
----
2771
30
7395

query I rowsort
SELECT - col0 * - col0 + 69 FROM tab2 AS cor0
----
118
6153
6310

query I rowsort
SELECT ALL - + col0 * ( - 20 + col2 ) FROM tab1 AS cor0
----
-102
-2368
-6080

query I rowsort
SELECT - 44 * - cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c0db56f81a57ff927cda1556444e3617

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT DISTINCT + cor0.col1 DIV ( col1 ) - col1 AS col2 FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT + cor0.col1 / ( col1 ) - col1 AS col2 FROM tab1 cor0
----
-12
-25
-9

query I rowsort
SELECT ALL - col2 + + col0 * - col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT cor0.col2 * - 46 AS col0 FROM tab2 AS cor0
----
-1196
-1242
-1748

query I rowsort
SELECT DISTINCT + col2 + col2 * ( - col2 ) FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - col2 + col1 * 9 FROM tab1 AS cor0
----
180
21
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT + ( - 36 ) DIV cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
2
61
78

skipif mysql # not compatible
query I rowsort label-3171
SELECT + ( - 36 ) / cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
2
61
78

query I rowsort
SELECT tab1.col0 + 36 * col2 + + ( + col1 ) FROM tab1
----
1973
2126
3549

query I rowsort
SELECT + 33 FROM tab1, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT 14 FROM tab1, tab1 AS cor0
----
14

query I rowsort
SELECT DISTINCT col2 * col1 * col2 + - col0 FROM tab0 AS cor0
----
611795
62
93630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3176
SELECT CAST( NULL AS DECIMAL ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT CAST ( NULL AS REAL ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT ALL - CAST( NULL AS SIGNED ) + 31 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - CAST ( NULL AS INTEGER ) + 31 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( + col0 ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 + - col2 * col1 AS REAL ) FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL ( - 96 ) * + tab0.col2 FROM tab0
----
-3168
-7872
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 22 * col2 FROM tab1 AS cor0
----
1188
1254
2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3183
SELECT ALL - col0 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - col0 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 2 - - col0 FROM tab1
----
1
62
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * tab1.col1 * 21 + - col2 col1 FROM tab1
----
13383
1584
21744

query I rowsort
SELECT - ( - 71 ) + - tab1.col1 + - tab1.col0 * col0 FROM tab1
----
-4035
-6342
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3187
SELECT ALL ( tab1.col2 ) * col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL ( tab1.col2 ) * col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT DISTINCT col2 DIV - col0 + - col2 FROM tab2
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT col2 / - col0 + - col2 FROM tab2
----
-26
-30
-38

query I rowsort
SELECT ALL - 64 FROM tab0, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT + ( - 24 ) FROM tab0
----
-24
-24
-24

query I rowsort
SELECT ( ( - col0 ) + - 63 ) * + col2 FROM tab1
----
-13728
-3564
-7239

onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT ALL ( + col2 ) + col0 + 60 DIV + col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL ( + col2 ) + col0 + 60 / + col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3193
SELECT CAST( col1 AS SIGNED ) * + col0 + - 91 FROM tab0
----
1973
3304
8008

skipif mysql # not compatible
query I rowsort label-3193
SELECT CAST ( col1 AS INTEGER ) * + col0 + - 91 FROM tab0
----
1973
3304
8008

query I rowsort
SELECT DISTINCT + 38 FROM tab0
----
38

query I rowsort
SELECT ALL 34 * cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 74d5d97c3e957ab3da5e0a80d49b43b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT DISTINCT tab2.col0 DIV + 32 col2 FROM tab2
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT tab2.col0 / + 32 col2 FROM tab2
----
0
2

query I rowsort
SELECT ALL - - col1 + + 72 AS col0 FROM tab0 AS cor0
----
158
163
169

query I rowsort
SELECT + + 58 * + col1 FROM tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT ALL cor0.col2 * - col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - + col2 * 22 FROM tab2 AS cor0
----
-572
-594
-836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * - 8 col2 FROM tab0 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 86 * - col1 + col0 ) col1 FROM tab0
----
7420
7915
8377

onlyif mysql # use DIV operator for integer division
query I rowsort label-3203
SELECT ALL + col2 + + 61 * col1 - - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1641
668
890

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + col2 + + 61 * col1 - - col0 / col0 AS col2 FROM tab1 AS cor0
----
1641
668
890

query I rowsort
SELECT col2 * col0 + col1 * col2 FROM tab1
----
1566
4218
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3205
SELECT DISTINCT col1 + col1 * + CAST( col1 + col2 * CAST( ( + col2 ) AS DECIMAL ) AS SIGNED ) AS col1 FROM tab1
----
119990
32600
76518

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT col1 + col1 * + CAST ( col1 + col2 * CAST ( ( + col2 ) AS REAL ) AS INTEGER ) AS col1 FROM tab1
----
119990
32600
76518

query I rowsort
SELECT - col2 * + col0 * col2 - - col1 FROM tab2
----
-114059
-5072
-52669

query I rowsort
SELECT - col2 + col0 + - 77 AS col2 FROM tab2
----
-25
-36
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3208
SELECT 55 + + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT 55 + + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 75 * - col0 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT DISTINCT + 10 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1434
-666
-719

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3211
SELECT ALL - col0 + - ( + col2 ) + + cor0.col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL - col0 + - ( + col2 ) + + cor0.col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 + ( - col1 ) * + col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + - col0 * col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * col1 + + col1 col1 FROM tab0 cor0
----
194
611975
93740

query I rowsort
SELECT DISTINCT - - col0 + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + col2 * 87 FROM tab2 cor0
----
2262
2349
3306

onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT ALL + col0 * col0 DIV + 98 FROM tab2 AS cor0
----
0
62
63

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL + col0 * col0 / + 98 FROM tab2 AS cor0
----
0
62
63

query I rowsort
SELECT DISTINCT + + col2 + - 4 * + col1 AS col0 FROM tab0 AS cor0
----
-282
-311
-387

query I rowsort
SELECT + - col2 + - 58 AS col1 FROM tab2 AS cor0
----
-84
-85
-96

query I rowsort
SELECT ( tab2.col1 + col2 ) * col2 AS col2 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT col2 * - 61 * + col1 AS col0 FROM tab0 cor0
----
-173118
-455182
-5917

query I rowsort
SELECT - col2 + 39 AS col1 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT col1 + - 20 * + col0 FROM tab0 AS cor0
----
-1689
-394
-603

query I rowsort
SELECT ALL + cor0.col0 * col2 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + - col1 + + 33 AS col1 FROM tab0 AS cor0
----
-53
-58
-64

query I rowsort
SELECT + col1 * ( - ( col0 ) ) * ( - cor0.col2 + col0 ) AS col1 FROM tab2 AS cor0
----
-239304
-55063
4340

query I rowsort
SELECT col1 * 15 FROM tab1
----
150
195
390

query I rowsort
SELECT col2 + ( 85 ) FROM tab0
----
118
167
86

query I rowsort
SELECT + cor0.col2 + + cor0.col2 + - 32 AS col0 FROM tab1 AS cor0
----
160
76
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3230
SELECT - + CAST( NULL AS SIGNED ) + col1 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT - + CAST ( NULL AS INTEGER ) + col1 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col0 * - col0 * cor0.col1 + cor0.col0 + - cor0.col2 AS col0 FROM tab2 cor0
----
-106056
-1539
-358904

query I rowsort
SELECT + 39 * + col0 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT 70 + 94 * + col0 AS col0 FROM tab2 AS cor0
----
728
7402
7496

query I rowsort
SELECT col0 * + ( ( - col0 ) ) + - ( + col2 ) FROM tab0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT ALL - col0 DIV 92 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - col0 / 92 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col1 + - col2 * + cor0.col1 FROM tab0 AS cor0
----
-774
3298
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + + col2 + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col1 + + 43 col2 FROM tab2 AS cor0
----
1004
332
3524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT col0 + - col1 DIV ( col2 ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3241
SELECT col0 + - col1 / ( col2 ) FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 0 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT - + ( col1 ) DIV - 8 FROM tab2 AS cor0
----
2
3
7

skipif mysql # not compatible
query I rowsort label-3243
SELECT - + ( col1 ) / - 8 FROM tab2 AS cor0
----
2
3
7

query I rowsort
SELECT ALL cor0.col0 + - col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - 15 + - col2 AS col1 FROM tab0 AS cor0
----
-16
-48
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - 54 + - 98 AS col1 FROM tab0
----
-152
-152
-152

query I rowsort
SELECT ALL + cor0.col0 + - cor0.col0 + cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL col2 * col2 + tab1.col0 + + col1 * col2 FROM tab1
----
10544
3883
4323

query I rowsort
SELECT + cor0.col1 + + ( col2 * + col2 ) + col1 AS col1 FROM tab0 AS cor0
----
1261
195
6906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 55 col0 FROM tab0 AS cor0
----
-1815
-4510
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3252
SELECT 27 DIV 15 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3252
SELECT 27 / 15 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 59 AS REAL ) * + col2 FROM tab2 AS cor0
----
1534
1593
2242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 + + col0 col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT - 7 * + col2 AS col0 FROM tab0 AS cor0
----
-231
-574
-7

query I rowsort
SELECT - col2 * - ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + - col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col2 * col2 * col2 + col2 FROM tab2 cor0
----
17602
19710
54910

query I rowsort
SELECT + col0 + - 56 * col2 FROM tab1 AS cor0
----
-3021
-3128
-5296

query I rowsort
SELECT col0 * - ( col0 ) AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col1 * 85 * + col1 AS col0 FROM tab0
----
628660
703885
799765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT - CAST( NULL AS SIGNED ) + - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3263
SELECT - CAST ( NULL AS INTEGER ) + - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - - col2 + col2 + + col2 * col2 * 50 FROM tab0 cor0
----
336364
52
54516

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT ALL 89 DIV col1 - - col2 FROM tab0 cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL 89 / col1 - - col2 FROM tab0 cor0
----
1
34
82

query I rowsort
SELECT ALL + 63 * 84 * + col1 - col1 FROM tab2 AS cor0
----
164021
312169
89947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ( cor0.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL col1 * - col2 + col1 FROM tab1
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3271
SELECT + CAST( NULL AS SIGNED ) * cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3271
SELECT + CAST ( NULL AS INTEGER ) * cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ( - col1 + tab2.col1 * - 55 ) FROM tab2
----
-1736
-3304
-952

query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT ALL + col2 + + col2 DIV col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + col2 + + col2 / col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - - ( ( col0 ) ) * ( + col2 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 86 + 35 AS col1 FROM tab2 AS cor0
----
121
121
121

query I rowsort
SELECT ALL - + col1 * 9 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT DISTINCT col0 - + col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL - col2 - - col1 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL 95 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT DISTINCT - 48 + tab2.col1 - + 48 AS col2 FROM tab2
----
-37
-65
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT DISTINCT + col1 DIV col0 - + 63 AS col0 FROM tab2
----
-59
-63

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + col1 / col0 - + 63 AS col0 FROM tab2
----
-59
-63

query I rowsort
SELECT tab1.col2 + + col1 * - 5 AS col1 FROM tab1
----
-76
31
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT + + col0 + + col1 AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT col2 DIV cor0.col2 - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-3287
SELECT col2 / cor0.col2 - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT - col1 + - 63 * + col2 FROM tab1 cor0
----
-3428
-3601
-6061

query I rowsort
SELECT + col2 * - 45 + - col0 * + col1 * col2 AS col0 FROM tab2 AS cor0
----
-120822
-52744
-7074

query I rowsort
SELECT ALL col0 * 88 * col2 AS col1 FROM tab1 AS cor0
----
14256
321024
675840

query I rowsort
SELECT DISTINCT + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + + col0 * col2 + - 76 FROM tab1 AS cor0
----
3572
7604
86

query I rowsort
SELECT + + col1 * ( - col1 ) FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3294
SELECT - + col2 + - CAST( NULL AS SIGNED ) * + col2 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT - + col2 + - CAST ( NULL AS INTEGER ) * + col2 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 + - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + 36 AS col0 FROM tab1 cor0
----
100
116
39

query I rowsort
SELECT DISTINCT - + col0 * col2 * cor0.col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT - + col2 + col2 + col0 DIV - col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3298
SELECT - + col2 + col2 + col0 / - col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3299
SELECT + - col0 + col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT + - col0 + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col1 + ( + col1 ) FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT + + col1 + + cor0.col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - 8 + col2 AS col0 FROM tab0 AS cor0
----
-7
25
74

query I rowsort
SELECT ALL 19 * - col2 FROM tab2 AS cor0
----
-494
-513
-722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3304
SELECT DISTINCT + + ( col1 ) + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + + ( col1 ) + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 23 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
624
648
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3306
SELECT ( - col1 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT ( - col1 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 + + ( col1 ) col0 FROM tab2
----
-14
-42
-56

query I rowsort
SELECT - + col2 * col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - 51 * - tab1.col1 FROM tab1
----
1326
510
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3310
SELECT + col1 + tab1.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT + col1 + tab1.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 66 + - col0 * + 49 FROM tab2
----
-277
-3756
-3805

query I rowsort
SELECT ALL - 76 AS col2 FROM tab1
----
-76
-76
-76

query I rowsort
SELECT ALL - col0 * - 29 FROM tab0
----
1015
2581
696

onlyif mysql # use DIV operator for integer division
query I rowsort label-3314
SELECT - - col0 DIV 93 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3314
SELECT - - col0 / 93 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col1 + + ( - col0 ) FROM tab0 cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3316
SELECT DISTINCT + CAST( NULL AS SIGNED ) + cor0.col2 + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col2 + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 26 AS col2 FROM tab1 cor0
----
26
26
26

query I rowsort
SELECT col1 * - col0 - - col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + col1 + 15 + - col0 AS col1 FROM tab2 AS cor0
----
-4
-47
39

query I rowsort
SELECT DISTINCT + cor0.col2 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - ( + cor0.col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + col0 * col0 + col2 * col0 FROM tab0 cor0
----
1260
1368
15219

query I rowsort
SELECT col2 * + col1 + - col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT cor0.col2 * 26 AS col1 FROM tab2, tab2 AS cor0
----
676
702
988

query I rowsort
SELECT ALL - 13 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT ALL - col2 + 40 * - col0 FROM tab0
----
-1401
-3642
-993

onlyif mysql # use DIV operator for integer division
query I rowsort label-3327
SELECT DISTINCT ( col1 ) + - tab1.col1 DIV CAST( 0 + col2 AS SIGNED ) FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT ( col1 ) + - tab1.col1 / CAST ( 0 + col2 AS INTEGER ) FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3328
SELECT + ( + cor0.col1 ) + - col0 DIV + col0 - col2 * col0 FROM tab2 AS cor0
----
-159
-1970
-2986

skipif mysql # not compatible
query I rowsort label-3328
SELECT + ( + cor0.col1 ) + - col0 / + col0 - col2 * col0 FROM tab2 AS cor0
----
-159
-1970
-2986

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3329
SELECT DISTINCT CAST( - col0 AS SIGNED ) + + col1 AS col0 FROM tab0 cor0
----
2
62

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + + col1 AS col0 FROM tab0 cor0
----
2
62

query I rowsort
SELECT - - 43 * 49 + + col2 FROM tab0 AS cor0
----
2108
2140
2189

query I rowsort
SELECT + - col1 + - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - - col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT 89 * - 56 + - col1 - col2 FROM tab2 AS cor0
----
-5039
-5042
-5069

query I rowsort
SELECT ALL - - 56 + + col2 * col2 FROM tab2 AS cor0
----
1500
732
785

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 28 AS REAL ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-10
1
2

query I rowsort
SELECT - + ( - cor0.col2 ) * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col0 - col0 * col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 - - cor0.col1 AS col1 FROM tab2 cor0
----
144
72
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 - col0 col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + ( - 53 ) + + col0 FROM tab2 AS cor0
----
-46
25
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT CAST( col0 AS SIGNED ) DIV col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3342
SELECT CAST ( col0 AS INTEGER ) / col0 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT DISTINCT + col0 + 36 DIV col1 FROM tab1
----
4
67
82

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT + col0 + 36 / col1 FROM tab1
----
4
67
82

query I rowsort
SELECT - tab2.col0 + - 48 + - col1 AS col0 FROM tab2
----
-144
-185
-86

query I rowsort
SELECT + 37 + - col2 * - col1 FROM tab1
----
1285
1441
607

onlyif mysql # use DIV operator for integer division
query I rowsort label-3347
SELECT + col2 * col0 DIV - col1 col0 FROM tab2
----
-176
-34
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3347
SELECT + col2 * col0 / - col1 col0 FROM tab2
----
-176
-34
-6

query I rowsort
SELECT - ( + col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 / col0 + + col2 + CAST ( - col1 AS REAL ) FROM tab2 cor0
----
-33
-7
21

query I rowsort
SELECT 20 * cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b253fd93eadd9a6a37173ff025ac595c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT - - col2 DIV - ( + col1 ) FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT - - col2 / - ( + col1 ) FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL col0 * + 51 FROM tab2
----
357
3978
4029

query I rowsort
SELECT 82 FROM tab1, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + ( - 71 ) FROM tab1
----
-71
-71
-71

query I rowsort
SELECT ALL + 70 + - col2 FROM tab1 AS cor0
----
-26
13
16

query I rowsort
SELECT DISTINCT + 72 - + col0 * 53 FROM tab2 AS cor0
----
-299
-4062
-4115

query I rowsort
SELECT col0 + - col1 * - col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL + 15 * + cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 68539cc2c711fed2b9204928c4d9c5d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col1 col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT - col0 DIV col1 AS col1 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3360
SELECT - col0 / col1 AS col1 FROM tab1 cor0
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT ALL - tab0.col1 DIV col0 AS col2 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - tab0.col1 / col0 AS col2 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT - + col1 DIV - 20 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3362
SELECT - + col1 / - 20 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3363
SELECT DISTINCT cor0.col2 + + CAST( NULL AS SIGNED ) * 50 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT cor0.col2 + + CAST ( NULL AS INTEGER ) * 50 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 32 col0 FROM tab1 AS cor0
----
-29
32
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-3365
SELECT col1 * ( col0 ) DIV - cor0.col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3365
SELECT col1 * ( col0 ) / - cor0.col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col1 * 57 AS col1 FROM tab0
----
4902
5187
5529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * 96 + cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
-2378
-2530
-3614

query I rowsort
SELECT ALL + - cor0.col1 * 84 FROM tab0 cor0
----
-7224
-7644
-8148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( - col0 ) col2 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 63 col1 FROM tab0 cor0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT ALL + col1 * col0 DIV - 66 + + col0 AS col0 FROM tab2 cor0
----
4
59
9

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL + col1 * col0 / - 66 + + col0 AS col0 FROM tab2 cor0
----
4
59
9

query I rowsort
SELECT + - 94 * col2 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT col0 + col0 * cor0.col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col2 * col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT ALL - col2 DIV 60 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - col2 / 60 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL + tab0.col2 * - col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + col1 + col0 + col0 FROM tab1
----
138
173
32

query I rowsort
SELECT DISTINCT + tab1.col1 * - col2 + col1 FROM tab1
----
-1235
-1378
-560

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= + col1
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( col0 ) BETWEEN ( col2 * - col2 ) AND col1 - + col2 / col0
----
10
13

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0 WHERE - col0 + + col2 * + col2 + + col2 NOT IN ( col1 * col1 * col2 )
----
24
35
89

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= tab1.col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT ALL col2 DIV + col0 - - col2 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL col2 / + col0 - - col2 FROM tab2
----
26
30
38

query I rowsort
SELECT DISTINCT - col2 - - col0 FROM tab0
----
-9
34
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( tab1.col2 * + col2 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL <> col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT DISTINCT - col2 - tab2.col2 DIV col1 FROM tab2
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - col2 - tab2.col2 / col1 FROM tab2
----
-26
-27
-40

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col2 * col0 FROM tab0 AS cor0
----
1225
19008
649522

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IN ( - col1 + + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - - col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col2 + + col1 + col1 * col2 FROM tab1 cor0
----
1165
1376
523

query I rowsort
SELECT + + col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL col0 * cor0.col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-3398
SELECT - tab1.col0 DIV tab1.col0 AS col2 FROM tab1 WHERE NOT col1 = ( + col0 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3398
SELECT - tab1.col0 / tab1.col0 AS col2 FROM tab1 WHERE NOT col1 = ( + col0 )
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3399
SELECT tab2.col1 DIV + tab2.col0 AS col2 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3399
SELECT tab2.col1 / + tab2.col0 AS col2 FROM tab2
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT ALL + col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + col2 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col2 + col1 + cor0.col2 FROM tab1 cor0
----
124
134
205

query I rowsort
SELECT col1 * ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3403
SELECT + col0 + ( ( + col1 ) ) + cor0.col2 DIV + col1 col0 FROM tab2 AS cor0
----
137
38
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3403
SELECT + col0 + ( ( + col1 ) ) + cor0.col2 / + col1 col0 FROM tab2 AS cor0
----
137
38
98

query I rowsort
SELECT DISTINCT + cor0.col1 + - 21 AS col2 FROM tab1 AS cor0
----
-11
-8
5

query I rowsort
SELECT DISTINCT - - col1 * + col0 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 + - 95 col2 FROM tab0 AS cor0
----
-33
-33
-93

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * - col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - + col1 + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col2 + 15 AS col0 FROM tab2 AS cor0
----
41
42
53

query I rowsort
SELECT ALL cor0.col0 + + ( + ( + col2 ) ) * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col0 AS col0 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT + + cor0.col1 - - col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT 24 DIV tab1.col1 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3413
SELECT 24 / tab1.col1 FROM tab1
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT ALL col1 - + col2 DIV col2 AS col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL col1 - + col2 / col2 AS col2 FROM tab1
----
12
25
9

query I rowsort
SELECT ALL - - cor0.col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 * 38 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT + col0 - cor0.col0 * + col2 AS col1 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - - col0 * col2 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT - col0 + ( 57 + col1 ) * ( + col2 ) AS col1 FROM tab2 AS cor0
----
2369
2733
2938

query I rowsort
SELECT cor0.col2 - - ( - col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 25 + + col2 AS col1 FROM tab1 AS cor0
----
167
83
89

query I rowsort
SELECT ALL + 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to a14896bcbd33addb471227dccce15e32

query I rowsort
SELECT ALL - col2 + + col1 * 10 AS col2 FROM tab0
----
827
828
969

query I rowsort
SELECT ALL 45 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL 32 * ( col0 ) + ( cor0.col2 * col0 ) FROM tab2 AS cor0
----
413
4524
5530

query I rowsort
SELECT + 67 + - cor0.col2 * col1 FROM tab1 AS cor0
----
-1181
-1337
-503

query I rowsort
SELECT DISTINCT + + ( - 72 ) AS col0 FROM tab0 cor0
----
-72

query I rowsort
SELECT tab2.col0 - + ( - col1 ) FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - - 79 * col1 FROM tab2 AS cor0
----
1343
2449
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT ALL 23 DIV col2 + + col0 FROM tab0 AS cor0
----
24
58
89

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL 23 / col2 + + col0 FROM tab0 AS cor0
----
24
58
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3431
SELECT ALL tab1.col2 * - col2 DIV + col2 + col1 AS col2 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL tab1.col2 * - col2 / + col2 + col1 AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + tab2.col2 + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT 52 + col2 * 96 FROM tab0 cor0
----
148
3220
7924

query I rowsort
SELECT ALL + cor0.col0 + cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a5a6e23490efe08c31b2e8e8ce66d4e2

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 FROM tab0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT col2 + col1 + - col1 * col1 FROM tab2
----
-234
-3396
-903

query I rowsort
SELECT col0 + - col2 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN col1 + col0 AND NULL
----

query I rowsort
SELECT col0 + - col2 * + col1 AS col0 FROM tab1
----
-1168
-1401
-506

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN ( - col0 ) AND - col2 * + col2 * - col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + tab1.col1 + - tab1.col2 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT + col0 + - col2 DIV + col1 AS col2 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-3442
SELECT + col0 + - col2 / + col1 AS col2 FROM tab2
----
7
77
78

query I rowsort
SELECT DISTINCT + col0 * + col0 + - col0 FROM tab0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + - col2 col1 FROM tab2
----
50
61
62

query I rowsort
SELECT ALL + 40 - tab2.col0 FROM tab2
----
-38
-39
33

query I rowsort
SELECT ALL tab2.col0 * col2 + + ( + col2 ) - tab2.col1 FROM tab2
----
185
1995
3023

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3447
SELECT DISTINCT + col0 * cor0.col1 + CAST( col2 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
2121
3431
8270

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + col0 * cor0.col1 + CAST ( col2 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
2121
3431
8270

query I rowsort
SELECT ALL ( + col0 ) + ( col2 ) * + col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + col1 + col0 * col2 AS col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL col1 + col0 + + tab0.col2 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT + col2 DIV - 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT + col2 / - 95 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3452
SELECT ALL tab0.col1 * + col0 + - ( + tab0.col1 + + tab0.col0 ) * col2 DIV col1 col1 FROM tab0
----
2022
3394
7937

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL tab0.col1 * + col0 + - ( + tab0.col1 + + tab0.col0 ) * col2 / col1 col1 FROM tab0
----
2022
3394
7937

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT ALL + col1 * ( tab0.col1 * col2 ) + + col1 FROM tab0
----
244154
679133
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT ALL - 1 DIV 91 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - 1 / 91 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3456
SELECT - cor0.col2 DIV ( + 59 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3456
SELECT - cor0.col2 / ( + 59 ) AS col2 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 tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT col1 * - cor0.col0 + 11 * cor0.col2 + col0 FROM tab2 AS cor0
----
-4238
-846
87

query I rowsort
SELECT + cor0.col0 + 4 FROM tab2 AS cor0
----
11
82
83

query I rowsort
SELECT ALL - col0 + + cor0.col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col0 + - col1 FROM tab2 cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL - - col0 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + + col1 - col1 FROM tab0 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3464
SELECT ALL CAST( col1 AS SIGNED ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL CAST ( col1 AS INTEGER ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - - col2 * 45 AS col1 FROM tab0 AS cor0
----
1485
3690
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT + 44 * 29 + + col1 DIV + col2 + col1 FROM tab0 AS cor0
----
1364
1368
1470

skipif mysql # not compatible
query I rowsort label-3466
SELECT + 44 * 29 + + col1 / + col2 + col1 FROM tab0 AS cor0
----
1364
1368
1470

query I rowsort
SELECT ALL - col0 * - col2 + - col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3468
SELECT CAST( - col0 AS SIGNED ) + + col1 * - col1 FROM tab0 cor0
----
-7420
-8370
-9444

skipif mysql # not compatible
query I rowsort label-3468
SELECT CAST ( - col0 AS INTEGER ) + + col1 * - col1 FROM tab0 cor0
----
-7420
-8370
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-3469
SELECT + - 95 * col0 DIV + col1 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7422
-8373
-9443

skipif mysql # not compatible
query I rowsort label-3469
SELECT + - 95 * col0 / + col1 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7422
-8373
-9443

onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT - 57 DIV col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-3470
SELECT - 57 / col1 FROM tab1 AS cor0
----
-2
-4
-5

query I rowsort
SELECT ALL - + col1 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col1 FROM tab1
----
-44

query I rowsort
SELECT ALL + 78 * col0 * 51 FROM tab0 AS cor0
----
139230
354042
95472

query I rowsort
SELECT ALL cor0.col2 * - 54 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 08c886913e1d5e93c429b55e6aa45a5f

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - col0 * - 25 AS col0 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT col1 DIV tab1.col2 + CAST( + col1 AS SIGNED ) * col0 AS col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3478
SELECT col1 / tab1.col2 + CAST ( + col1 AS INTEGER ) * col0 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT DISTINCT - col2 * + col2 DIV col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - col2 * + col2 / col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab0
----
14

query I rowsort
SELECT - - cor0.col2 * + col2 - + col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT - col2 + - col0 * + col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT - ( col0 ) + col1 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL ( 5 * - col0 ) FROM tab1
----
-15
-320
-400

query I rowsort
SELECT 80 * col0 + col0 * + col0 + col0 FROM tab1 AS cor0
----
12880
252
9280

query I rowsort
SELECT ALL ( 35 ) * + col0 + col2 AS col2 FROM tab0
----
1226
3197
873

query I rowsort
SELECT - 8 * 23 AS col2 FROM tab0
----
-184
-184
-184

query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab1
----
48

query I rowsort
SELECT ALL - tab0.col2 * ( col2 ) AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * - col0 + col1 + col1 FROM tab1 AS cor0
----
36500
4264
99866

query I rowsort
SELECT + - col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + col2 * - col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + 75 * col1 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT - 74 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL + 21 * + col0 FROM tab0
----
1869
504
735

query I rowsort
SELECT - - col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT + 61 AS col2 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT ALL - 52 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-26
-39
-42

query I rowsort
SELECT DISTINCT + 69 + + col2 * 94 FROM tab2 AS cor0
----
2513
2607
3641

query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 + col2 - - col2 AS col1 FROM tab0 AS cor0
----
-2772
-7298
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT ALL + 15 * col1 DIV col2 FROM tab0 cor0
----
1455
16
39

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL + 15 * col1 / col2 FROM tab0 cor0
----
1455
16
39

query I rowsort
SELECT - - col1 * col2 - cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ALL + - 25 + col0 FROM tab1 AS cor0
----
-22
39
55

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT - col1 * - col1 + ( 15 + col1 ) FROM tab0 AS cor0
----
7497
8387
9521

query I rowsort
SELECT + - 47 + col1 FROM tab2 AS cor0
----
-16
-30
12

query I rowsort
SELECT - cor0.col1 * cor0.col1 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT - col2 + - col2 * 30 AS col1 FROM tab2 AS cor0
----
-1178
-806
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( tab2.col2 ) col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + + col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - cor0.col1 * - 66 AS col2 FROM tab2 AS cor0
----
1122
2046
3894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + + cor0.col0 - ( + cor0.col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 48 FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL col2 * 22 FROM tab1
----
1188
1254
2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT + + 6 + 15 DIV col2 AS col2 FROM tab0 cor0
----
21
6
6

skipif mysql # not compatible
query I rowsort label-3520
SELECT + + 6 + 15 / col2 AS col2 FROM tab0 cor0
----
21
6
6

query I rowsort
SELECT - + ( - ( + col2 ) ) + + 21 * - col1 AS col2 FROM tab1 AS cor0
----
-153
-177
-492

onlyif mysql # use DIV operator for integer division
query I rowsort label-3522
SELECT col2 DIV 30 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3522
SELECT col2 / 30 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3523
SELECT - - CAST( - col0 AS SIGNED ) + col1 * ( - col2 ) * + col0 FROM tab1 cor0
----
-36544
-4215
-99920

skipif mysql # not compatible
query I rowsort label-3523
SELECT - - CAST ( - col0 AS INTEGER ) + col1 * ( - col2 ) * + col0 FROM tab1 cor0
----
-36544
-4215
-99920

query I rowsort
SELECT col0 * col2 * - col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + 17 AS col2 FROM tab1
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col2 + - 97 AS col0 FROM tab1 AS cor0
----
-1
-40
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col0 ) col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col1 + - col2 + cor0.col0 * + cor0.col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-26083
-598427
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3530
SELECT ALL - col2 + col0 + - col2 * ( col1 + + col1 ) * - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
11407
32432
72957

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - col2 + col0 + - col2 * ( col1 + + col1 ) * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
11407
32432
72957

query I rowsort
SELECT DISTINCT + 10 * + col2 + cor0.col0 * col2 + col1 AS col0 FROM tab1 AS cor0
----
4228
728
8653

query I rowsort
SELECT ALL + 1 * ( cor0.col0 ) * + 56 AS col1 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT ALL 97 * col1 + col2 AS col2 FROM tab1 AS cor0
----
1027
1357
2576

query I rowsort
SELECT ALL + - col2 * - 46 AS col2 FROM tab0 cor0
----
1518
3772
46

query I rowsort
SELECT ALL - - ( col1 ) + + col2 + 68 AS col1 FROM tab0 AS cor0
----
166
187
241

query I rowsort
SELECT col0 * col2 * ( + col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
207879
737184
8694

query I rowsort
SELECT DISTINCT + 39 * + col2 + col1 - + 1 AS col0 FROM tab2
----
1072
1083
1498

query I rowsort
SELECT 60 * - ( - col1 ) FROM tab2
----
1020
1860
3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 51 col0 FROM tab1
----
153
3264
4080

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT + - col1 * - 41 + col1 AS col1 FROM tab0 AS cor0
----
3612
3822
4074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3542
SELECT col2 * cor0.col2 + + col1 * cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT col2 * cor0.col2 + + col1 * cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT ALL - + col1 * cor0.col1 + + col0 * - cor0.col2 DIV ( - col2 ) FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - + col1 * cor0.col1 + + col0 * - cor0.col2 / ( - col2 ) FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + cor0.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 + - col1 * - col2 * col1 FROM tab0 cor0
----
244187
679215
9507

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col0 + + CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + col0 * 26 AS col0 FROM tab1
----
1664
2080
78

query I rowsort
SELECT DISTINCT + + tab0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - 94 * - col1 AS col0 FROM tab1 cor0
----
1222
2444
940

query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - col2 * ( col2 ) * + col2 AS col0 FROM tab1
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT - + 59 DIV 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-3554
SELECT - + 59 / 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT + - ( col0 ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + + 89 AS col1 FROM tab2 AS cor0
----
89
89
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT DISTINCT - 88 + cor0.col0 DIV 78 FROM tab0 AS cor0
----
-87
-88

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - 88 + cor0.col0 / 78 FROM tab0 AS cor0
----
-87
-88

query I rowsort
SELECT DISTINCT cor0.col0 + - cor1.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
9 values hashing to f9524de6b4589f5113ca4b5c855b9642

query I rowsort
SELECT ALL - - col0 - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL tab0.col1 * - col0 + 88 * + tab0.col1 FROM tab0
----
-91
5141
5504

query I rowsort
SELECT 83 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a

query I rowsort
SELECT - col0 * 4 FROM tab0 cor0
----
-140
-356
-96

query I rowsort
SELECT ALL - - 20 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8

query I rowsort
SELECT ALL + + ( col2 ) AS col2 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT + col2 * + col1 + - col1 DIV col1 + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
1025
3561
3647

skipif mysql # not compatible
query I rowsort label-3566
SELECT + col2 * + col1 + - col1 / col1 + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
1025
3561
3647

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col0 AS REAL ) * + col2 + 94 * cor0.col2 + col2 / - 27 FROM tab2 AS cor0
----
2726
4472
6573

query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
611795
62
93630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3569
SELECT ALL - - col0 + ( + col2 + CAST( 6 AS SIGNED ) ) FROM tab1 AS cor0
----
127
182
63

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - - col0 + ( + col2 + CAST ( 6 AS INTEGER ) ) FROM tab1 AS cor0
----
127
182
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3570
SELECT ALL - CAST( + 92 AS SIGNED ) FROM tab2 cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - CAST ( + 92 AS INTEGER ) FROM tab2 cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT + col1 - col0 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT col0 * col1 * + 69 FROM tab2 AS cor0
----
14973
317538
92667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 46 col0 FROM tab2 AS cor0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 + - col0 * cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + 73 * - col2 AS col1 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT ALL col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + + 88 * col2 FROM tab2 AS cor0
----
2964
3105
4788

query I rowsort
SELECT + col0 + col2 * - col0 AS col1 FROM tab0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3580
SELECT + col1 * col0 * + CAST( - 97 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-200208
-329315
-785603

skipif mysql # not compatible
query I rowsort label-3580
SELECT + col1 * col0 * + CAST ( - 97 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-200208
-329315
-785603

query I rowsort
SELECT + cor0.col2 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT 73 * + col2 FROM tab1
----
3942
4161
7008

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT 76 + col1 FROM tab1 AS cor0
----
102
86
89

query I rowsort
SELECT cor0.col1 + + col1 * - 81 AS col0 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT tab1.col0 + - cor0.col1 * - cor0.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b3b7accc2557109a72836329186bc519

query I rowsort
SELECT 55 + 22 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT + col2 * + col0 + + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * - 4 * + col2 + - 79 col1 FROM tab0 AS cor0
----
-155
-2587
-6311

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT - col1 + - 95 DIV col2 FROM tab0 AS cor0
----
-192
-88
-92

skipif mysql # not compatible
query I rowsort label-3591
SELECT - col1 + - 95 / col2 FROM tab0 AS cor0
----
-192
-88
-92

query I rowsort
SELECT col0 * 77 AS col1 FROM tab0
----
1848
2695
6853

query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 67 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT col2 + col0 + + col2 FROM tab2
----
130
155
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT + col1 / CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3596
SELECT + col1 / CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - 36 FROM tab1
----
-46
-49
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col0 ) ) col1 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3599
SELECT DISTINCT - ( + col1 ) + col0 DIV + 60 FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT - ( + col1 ) + col0 / + 60 FROM tab0 AS cor0
----
-86
-90
-97

query I rowsort
SELECT + ( col2 ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - ( - cor0.col0 ) + + col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL + col0 * 17 AS col0 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT col1 + - 21 FROM tab0 AS cor0
----
65
70
76

query I rowsort
SELECT ALL - col2 * + ( col1 ) + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + col1 * + 60 + col1 AS col0 FROM tab1 AS cor0
----
1586
610
793

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( + col0 AS REAL ) * col0 - + col1 AS col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT col1 + + col0 * 22 * col0 AS col0 FROM tab2 AS cor0
----
1109
133907
137319

query I rowsort
SELECT cor0.col2 * - col0 - + col0 * col2 AS col1 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT ALL 15 FROM tab0, tab1 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT ALL col2 * + 99 AS col2 FROM tab2 AS cor0
----
2574
2673
3762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col2 * + 33 col1 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT ALL + ( 86 ) AS col1 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT DISTINCT - col0 * - ( col0 ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT - col0 * - ( col0 ) + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3615
SELECT ALL - col2 DIV col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - col2 / col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3616
SELECT 89 + + col1 DIV - cor0.col1 AS col2 FROM tab2 cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3616
SELECT 89 + + col1 / - cor0.col1 AS col2 FROM tab2 cor0
----
88
88
88

query I rowsort
SELECT DISTINCT + + 46 + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1389
263
4648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3618
SELECT DISTINCT + CAST( - ( - col1 ) AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT + CAST ( - ( - col1 ) AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 27 col1 FROM tab1 cor0
----
-1458
-1539
-2592

query I rowsort
SELECT ( - 99 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3621
SELECT ALL col1 DIV col0 - - ( col2 ) AS col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL col1 / col0 - - ( col2 ) AS col0 FROM tab2
----
26
31
38

query I rowsort
SELECT DISTINCT + col2 + col1 * + 12 * - col2 FROM tab1 AS cor0
----
-14880
-16794
-6783

query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - 81 AS col0 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT tab0.col1 - col1 * 2 * + col0 FROM tab0
----
-16107
-4042
-6693

query I rowsort
SELECT + col2 * col0 - + col0 * 81 FROM tab1
----
-1536
-81
1200

query I rowsort
SELECT ALL col0 * + 54 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT + col2 * 20 AS col1 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT ALL 88 AS col0 FROM tab1
----
88
88
88

query I rowsort
SELECT - - tab0.col0 + tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 - ( + tab0.col2 ) col0 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT - col1 * col2 * col2 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + col0 * col2 + 33 * col1 FROM tab0 cor0
----
10301
3236
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT ALL col0 DIV 31 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL col0 / 31 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL cor0.col1 + + 90 FROM tab0, tab2 AS cor0
----
9 values hashing to db2efd3d4aedc1c3788ae5320527424f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + 22 col2 FROM tab0 AS cor0
----
-64
-69
-75

query I rowsort
SELECT + - col0 + - ( 85 ) FROM tab1 AS cor0
----
-149
-165
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col2 FROM tab0 cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 * - col0 col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT + col2 + col1 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL + col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + col0 * - 54 AS col1 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT DISTINCT - col0 + 10 AS col1 FROM tab1 AS cor0
----
-54
-70
7

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab0, tab2 AS cor0
----
-59

query I rowsort
SELECT + + 75 * + cor0.col0 FROM tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT + - cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - - 67 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT col2 * 25 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT - 43 - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1291
-1447
-613

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3654
SELECT - CAST( NULL AS SIGNED ) * - col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT - CAST ( NULL AS INTEGER ) * - col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 30 * col0 + - col2 * + 59 FROM tab2 AS cor0
----
-1803
-3874
-4612

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + col2 AS REAL ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * cor0.col2 + cor0.col1 + ( cor0.col1 * - col0 + col2 ) FROM tab0 AS cor0
----
-14650
-3034
-3298

query I rowsort
SELECT cor0.col0 * - 54 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT cor0.col1 + 62 + - col0 * + 81 AS col1 FROM tab2 AS cor0
----
-474
-6197
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3660
SELECT DISTINCT + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col0 * + cor0.col2 + 81 - + col2 FROM tab0 AS cor0
----
115
7297
840

query I rowsort
SELECT - cor0.col1 * col2 + + 2 FROM tab2 AS cor0
----
-1532
-644
-835

query I rowsort
SELECT DISTINCT - col0 * col2 - col2 AS col2 FROM tab1 cor0
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3664
SELECT col1 / col2 + CAST( NULL AS SIGNED ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT col1 / col2 + CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 48 AS col0 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT cor0.col2 * col0 + 77 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-1223
-15
1616

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col2 * + col1 + + ( 53 ) AS col2 FROM tab0 AS cor0
----
150
2891
7515

query I rowsort
SELECT - 22 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT - 47 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
1484
2799
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT DISTINCT + - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + - col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT - + ( cor0.col1 ) DIV - col1 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3672
SELECT - + ( cor0.col1 ) / - col1 col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + ( 53 ) + cor0.col2 FROM tab2 AS cor0
----
79
80
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3674
SELECT 90 DIV col2 col0 FROM tab0 AS cor0
----
1
2
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3674
SELECT 90 / col2 col0 FROM tab0 AS cor0
----
1
2
90

query I rowsort
SELECT DISTINCT col2 + col1 * col1 * cor0.col0 + - col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL 6 * col2 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT col0 + + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT DISTINCT - - col2 DIV col0 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT - - col2 / col0 FROM tab0 cor0
----
0
1

query I rowsort
SELECT col0 + 35 * col1 AS col1 FROM tab2 AS cor0
----
1092
2143
674

query I rowsort
SELECT col2 + ( tab0.col1 ) FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT DISTINCT - col2 + 79 DIV col0 AS col2 FROM tab1
----
-28
-56
-96

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - col2 + 79 / col0 AS col2 FROM tab1
----
-28
-56
-96

query I rowsort
SELECT DISTINCT col0 + col2 * + col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT - cor0.col2 + - col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + tab2.col2 + col2 * - tab2.col2 * tab2.col0 AS col0 FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT - col1 * - cor0.col2 + + col2 * cor0.col1 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT cor0.col1 * ( - 9 * - col2 ) + - col2 FROM tab1 cor0
----
11136
12582
5073

query I rowsort
SELECT - 52 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT DISTINCT 45 DIV tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT 45 / tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL - col1 + 19 AS col1 FROM tab2 AS cor0
----
-12
-40
2

query I rowsort
SELECT DISTINCT + cor0.col2 + 60 * col2 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT ALL + - col2 + - ( 49 ) FROM tab1 AS cor0
----
-103
-106
-145

query I rowsort
SELECT DISTINCT - + col1 * - 75 + - cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-65
110
1872

query I rowsort
SELECT - col2 + + 34 FROM tab1 AS cor0
----
-20
-23
-62

query I rowsort
SELECT DISTINCT + cor0.col1 + + 21 AS col0 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT col0 + 20 * ( col2 ) AS col2 FROM tab1 AS cor0
----
1083
1204
2000

query I rowsort
SELECT ALL + col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col0 + + cor0.col1 * - col2 FROM tab1 cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col1 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT DISTINCT cor0.col0 - + 12 FROM tab2, tab1 cor0
----
-9
52
68

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT + col1 DIV 29 FROM tab0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3702
SELECT + col1 / 29 FROM tab0
----
2
3
3

query I rowsort
SELECT - col0 * + ( - 77 ) - - col1 FROM tab0 AS cor0
----
1934
2792
6944

query I rowsort
SELECT ( + col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT - 74 + + 13 DIV - col2 AS col0 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-3705
SELECT - 74 + + 13 / - col2 AS col0 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT ( + col0 ) + + col0 FROM tab0
----
178
48
70

query I rowsort
SELECT + col0 - - tab0.col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL 36 * + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to aaa5b665b5d5ce6f588bcbe05dc75f15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3709
SELECT + ( + 54 ) + cor0.col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3709
SELECT + ( + 54 ) + cor0.col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor0.col1 + 27 AS col0 FROM tab0 AS cor0
----
113
118
124

query I rowsort
SELECT DISTINCT cor0.col0 + 54 FROM tab0, tab1 AS cor0
----
118
134
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT DISTINCT col1 DIV + col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT col1 / + col2 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 * - tab0.col0 col1 FROM tab0
----
1392
2030
5162

query I rowsort
SELECT ALL col2 * col1 * + 11 AS col0 FROM tab0
----
1067
31218
82082

query I rowsort
SELECT + 81 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT col2 DIV col2 - cor0.col2 AS col1 FROM tab0 cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT col2 / col2 - cor0.col2 AS col1 FROM tab0 cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT cor0.col1 * - 78 + col2 FROM tab0 cor0
----
-6675
-7016
-7565

query I rowsort
SELECT col1 * col2 - + 60 AS col2 FROM tab1 AS cor0
----
1188
1344
510

onlyif mysql # use DIV operator for integer division
query I rowsort label-3720
SELECT + col1 * tab1.col0 DIV col0 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3720
SELECT + col1 * tab1.col0 / col0 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + cor0.col0 * - 39 + col0 FROM tab2 AS cor0
----
-266
-2964
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + tab2.col1 * 39 + - tab2.col0 col0 FROM tab2
----
1419
1927
6825

query I rowsort
SELECT col2 + + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + col2 * 9 AS col1 FROM tab2
----
234
243
342

query I rowsort
SELECT 74 + 2 * col1 FROM tab1 cor0
----
100
126
94

query I rowsort
SELECT DISTINCT - + col1 * ( + cor0.col1 ) * ( col2 ) + col2 * + col0 * cor0.col0 FROM tab1 AS cor0
----
-36018
227772
598176

query I rowsort
SELECT ALL - col2 + 59 AS col1 FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT ALL ( cor0.col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col1 * - col2 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - - 65 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT + 21 + - col0 FROM tab2 AS cor0
----
-57
-58
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3732
SELECT ALL 76 DIV col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL 76 / col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT DISTINCT - + col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col2 + col0 * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 col1 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3736
SELECT DISTINCT - - col1 + col2 * ( 46 ) - col1 * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - - col1 + col2 * ( 46 ) - col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + col0 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT - 95 + - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1629
-741
-932

onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT DISTINCT CAST( 52 AS SIGNED ) DIV + tab0.col2 AS col2 FROM tab0
----
0
1
52

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT CAST ( 52 AS INTEGER ) / + tab0.col2 AS col2 FROM tab0
----
0
1
52

query I rowsort
SELECT ALL 23 AS col0 FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL ( cor0.col1 ) * 54 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT + ( col0 * + col1 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT - col2 * + 15 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT - - col0 * - 69 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT + col1 * ( 7 ) AS col0 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT col1 * - 42 + - col0 AS col2 FROM tab0 AS cor0
----
-3636
-3911
-4109

query I rowsort
SELECT + - col2 * + col1 + 55 AS col1 FROM tab2 cor0
----
-1479
-591
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 24 * - col0 col2 FROM tab1 AS cor0
----
-126
-1593
-2016

query I rowsort
SELECT + col1 * + col1 AS col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col1 + - ( 88 ) * col2 FROM tab1 AS cor0
----
-4726
-5006
-8435

query I rowsort
SELECT + + col0 + 74 FROM tab1 AS cor0
----
138
154
77

query I rowsort
SELECT ALL - + cor0.col0 * + 11 + - cor0.col1 FROM tab2 AS cor0
----
-108
-886
-917

query I rowsort
SELECT DISTINCT - + 92 * - col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT DISTINCT col1 + + col0 * col0 * - col2 FROM tab2
----
-1292
-158125
-237141

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3757
SELECT ALL tab2.col1 * + CAST( col1 + - col1 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL tab2.col1 * + CAST ( col1 + - col1 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 65 + ( col2 ) FROM tab0 AS cor0
----
147
66
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3759
SELECT ALL CAST( NULL AS SIGNED ) / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL CAST ( NULL AS INTEGER ) / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 68 + - col2 FROM tab1 AS cor0
----
-122
-125
-164

query I rowsort
SELECT - - col2 * - cor0.col0 + col2 * col1 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT + + 99 + col1 * col0 * 92 AS col0 FROM tab2 cor0
----
123655
20063
423483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) * cor0.col0 + 7 col0 FROM tab0 AS cor0
----
-28
-7291
-785

query I rowsort
SELECT ALL + col2 * 52 AS col0 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT ALL + col0 * + col1 - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * col0 + + cor0.col1 col0 FROM tab1 AS cor0
----
-262
-6134
-7667

query I rowsort
SELECT ALL - + ( + 93 ) + col0 AS col0 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT ALL - 61 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT DISTINCT col1 * ( col2 * - col1 ) + - 88 FROM tab2
----
-11070
-26035
-90594

query I rowsort
SELECT tab1.col1 + - col1 * ( - tab1.col2 ) FROM tab1
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3771
SELECT col0 - + CAST( NULL AS SIGNED ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT col0 - + CAST ( NULL AS INTEGER ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 - + 89 FROM tab2, tab2 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - col2 * 36 + col1 AS col1 FROM tab0
----
-1102
-2861
61

query I rowsort
SELECT col2 + + col0 * + tab1.col1 + + col2 FROM tab1
----
1232
186
754

query I rowsort
SELECT col0 + + col0 + tab0.col0 FROM tab0
----
105
267
72

query I rowsort
SELECT - col2 - col1 * tab1.col1 AS col0 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT ALL + 95 + - 10 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3778
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col2 - + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT CAST ( NULL AS REAL ) * col2 - + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * 68 AS col1 FROM tab0 AS cor0
----
-1632
-2380
-6052

query I rowsort
SELECT ( col2 ) + col1 * 9 AS col0 FROM tab1 AS cor0
----
147
213
288

onlyif mysql # use DIV operator for integer division
query I rowsort label-3781
SELECT ALL col1 + - col0 DIV col0 col2 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL col1 + - col0 / col0 col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT DISTINCT - + col2 - - col2 * + col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - + ( - col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - + col1 * 4 + + col2 AS col1 FROM tab2 AS cor0
----
-210
-30
-97

query I rowsort
SELECT DISTINCT col1 * col1 * + tab2.col1 - tab2.col1 * col1 FROM tab2
----
201898
28830
4624

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - col2 - + col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3788
SELECT 29 * col0 DIV ( - col2 ) FROM tab0
----
-1015
-21
-31

skipif mysql # not compatible
query I rowsort label-3788
SELECT 29 * col0 / ( - col2 ) FROM tab0
----
-1015
-21
-31

query I rowsort
SELECT DISTINCT 59 * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
5074
5369
5723

query I rowsort
SELECT 61 * - col0 AS col1 FROM tab0 AS cor0
----
-1464
-2135
-5429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 - ( 56 ) col2 FROM tab1
----
-30
-36
-4

query I rowsort
SELECT - col0 * - 35 + + col2 FROM tab0 AS cor0
----
1226
3197
873

query I rowsort
SELECT + cor0.col1 * 86 + col1 AS col0 FROM tab1 AS cor0
----
1131
2262
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 + - col1 col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT tab2.col1 + + 31 AS col1 FROM tab2
----
48
62
90

query I rowsort
SELECT col2 * 75 FROM tab0
----
2475
6150
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3797
SELECT + col1 DIV + 52 + - col2 * + col1 FROM tab0 cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-3797
SELECT + col1 / + 52 + - col2 * + col1 FROM tab0 cor0
----
-2837
-7461
-96

query I rowsort
SELECT DISTINCT - - col1 * + 15 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT - col2 + - ( + col1 ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - col1 * col2 * - col0 + col2 * + ( col2 ) FROM tab2 AS cor0
----
120328
52478
6588

query I rowsort
SELECT DISTINCT 43 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-7255
-749
8

query I rowsort
SELECT ( + cor0.col0 ) * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3803
SELECT ALL + cor0.col0 * col0 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + cor0.col0 * col0 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT + col1 DIV col0 + 88 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
2874
7135
89

skipif mysql # not compatible
query I rowsort label-3804
SELECT + col1 / col0 + 88 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
2874
7135
89

query I rowsort
SELECT ALL + col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 65 + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-20
10
7

query I rowsort
SELECT 49 * col1 + - col2 * + col0 + - cor0.col0 * col1 AS col2 FROM tab0 cor0
----
-10938
1323
1358

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

query I rowsort
SELECT + col1 + ( - col0 ) + col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col1 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT col1 * cor0.col2 + col0 DIV col1 + + 90 AS col2 FROM tab2 AS cor0
----
1625
740
927

skipif mysql # not compatible
query I rowsort label-3811
SELECT col1 * cor0.col2 + col0 / col1 + + 90 AS col2 FROM tab2 AS cor0
----
1625
740
927

onlyif mysql # use DIV operator for integer division
query I rowsort label-3812
SELECT + 86 DIV 10 AS col1 FROM tab1 cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 86 / 10 AS col1 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT ALL 9 * + cor0.col1 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 82745dd8089cd8992a57bcb69f14e5a0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3814
SELECT DISTINCT CAST( + col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col0 * - col0 + - col2 + 0 * + col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT - ( - 67 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
201
4288
5360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3818
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + tab0.col0 AS col0 FROM tab0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + tab0.col0 AS col0 FROM tab0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT ( 70 + col2 ) DIV - CAST( + col2 + + col0 AS SIGNED ) AS col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT ( 70 + col2 ) / - CAST ( + col2 + + col0 AS INTEGER ) AS col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT DISTINCT col0 * col0 + col2 + col0 FROM tab1
----
4217
6576
66

query I rowsort
SELECT + ( - col0 * col2 + col0 ) FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT col2 * col1 * + tab2.col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT DISTINCT - col1 + + col1 DIV + tab0.col2 FROM tab0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - col1 + + col1 / + tab0.col2 FROM tab0
----
-84
-90
0

query I rowsort
SELECT + 41 + col2 + - col2 FROM tab0
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3825
SELECT 94 + - tab1.col1 * CAST( NULL AS SIGNED ) + - 50 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3825
SELECT 94 + - tab1.col1 * CAST ( NULL AS INTEGER ) + - 50 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 54 + col1 AS col2 FROM tab1
----
64
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3827
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * - col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT DISTINCT + + 94 FROM tab1 cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 86 col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3831
SELECT tab1.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3831
SELECT tab1.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - col2 + 77 FROM tab2
----
39
50
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT ALL - ( tab1.col1 * - col1 ) + + 48 DIV col1 AS col2 FROM tab1
----
104
172
677

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - ( tab1.col1 * - col1 ) + + 48 / col1 AS col2 FROM tab1
----
104
172
677

onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT ( col1 ) + col0 DIV + col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3834
SELECT ( col1 ) + col0 / + col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL 43 + + col1 * col1 AS col1 FROM tab1
----
143
212
719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col2 col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - - 39 FROM tab2, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # use DIV operator for integer division
query I rowsort label-3838
SELECT - - ( col1 ) * col0 + - col2 * cor0.col0 DIV col0 col1 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3838
SELECT - - ( col1 ) * col0 + - col2 * cor0.col0 / col0 col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT 73 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT ( col1 ) * col1 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3841
SELECT + col2 * + col0 DIV tab0.col0 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3841
SELECT + col2 * + col0 / tab0.col0 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - 48 FROM tab2
----
-48

query I rowsort
SELECT - 23 - + col2 AS col1 FROM tab1
----
-119
-77
-80

query I rowsort
SELECT - 98 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

query I rowsort
SELECT ALL 20 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT - cor0.col1 * - col2 + col2 * 3 FROM tab1 AS cor0
----
1536
1566
741

query I rowsort
SELECT DISTINCT - col1 * 1 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + + col1 + - ( - col0 ) AS col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - 67 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 961fb0e7a5d69ae9466bbc1f78db5112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 32 * 92 col2 FROM tab1 AS cor0
----
-188416
-235520
-8832

query I rowsort
SELECT DISTINCT - col0 * - 80 AS col1 FROM tab1
----
240
5120
6400

query I rowsort
SELECT - cor0.col0 + + ( + cor0.col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 19 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3854
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - ( - 33 ) * col2 AS col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 4 + + col2 FROM tab2 AS cor0
----
22
23
34

query I rowsort
SELECT DISTINCT + col2 * 75 FROM tab1
----
4050
4275
7200

query I rowsort
SELECT ALL + col1 * 12 + - ( col1 ) FROM tab2
----
187
341
649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3860
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3860
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + 18 * - col0 * col1 AS col0 FROM tab0 cor0
----
-145782
-37152
-61110

query I rowsort
SELECT - col2 + col1 * + col2 * + 60 AS col1 FROM tab2 AS cor0
----
38722
50193
92014

query I rowsort
SELECT + col2 * + cor0.col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT ALL + + col0 DIV - col1 - col0 AS col1 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + + col0 / - col1 - col0 AS col1 FROM tab2 AS cor0
----
-7
-79
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT ALL + ( ( col0 ) ) * + col2 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3867
SELECT - col0 + col2 DIV - col2 col2 FROM tab1 AS cor0
----
-4
-65
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3867
SELECT - col0 + col2 / - col2 col2 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) AS col1 FROM tab0, tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT ALL + col1 + 70 * col0 DIV col0 FROM tab2 AS cor0
----
101
129
87

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + col1 + 70 * col0 / col0 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT ALL + ( + cor0.col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT ( col1 ) * col2 + + ( + cor0.col2 + col2 ) DIV ( col1 ) AS col0 FROM tab2 AS cor0
----
1534
650
838

skipif mysql # not compatible
query I rowsort label-3871
SELECT ( col1 ) * col2 + + ( + cor0.col2 + col2 ) / ( col1 ) AS col0 FROM tab2 AS cor0
----
1534
650
838

query I rowsort
SELECT DISTINCT - + 96 + - 61 * - col0 AS col2 FROM tab2 AS cor0
----
331
4662
4723

query I rowsort
SELECT ALL - 5 + - col0 + + col1 FROM tab1 cor0
----
-59
-72
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT DISTINCT - 87 DIV - 25 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
3

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT - 87 / - 25 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
3

query I rowsort
SELECT ALL - col2 * - col2 + ( col1 ) - col1 * - col1 AS col0 FROM tab2
----
1721
1750
4216

query I rowsort
SELECT DISTINCT + tab2.col2 * + 82 FROM tab2, tab1 AS cor0
----
2132
2214
3116

query I rowsort
SELECT tab2.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ( + col1 + - 19 ) AS col1 FROM tab1
----
-6
-9
7

query I rowsort
SELECT DISTINCT + col0 * col1 - + col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT - col0 * - 87 FROM tab1 AS cor0
----
261
5568
6960

query I rowsort
SELECT + - col2 + cor0.col1 * 23 AS col0 FROM tab1 cor0
----
173
203
544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3882
SELECT DISTINCT col0 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT col0 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col0 + + col1 AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL - - col2 * col1 + ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col0 * + col1 * + col1 + col2 FROM tab0 AS cor0
----
177537
329316
737091

query I rowsort
SELECT - col2 * + col0 * 47 + col1 AS col0 FROM tab0 AS cor0
----
-1548
-342915
-37138

query I rowsort
SELECT - col1 * col1 + 78 AS col1 FROM tab0 AS cor0
----
-7318
-8203
-9331

query I rowsort
SELECT + col2 + ( 40 ) FROM tab2 AS cor0
----
66
67
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + - ( col0 ) col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT ALL - col0 DIV ( + 48 ) - col1 AS col1 FROM tab2 AS cor0
----
-18
-31
-60

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - col0 / ( + 48 ) - col1 AS col1 FROM tab2 AS cor0
----
-18
-31
-60

query I rowsort
SELECT ALL col1 * - 56 AS col0 FROM tab0 AS cor0
----
-4816
-5096
-5432

query I rowsort
SELECT ALL + - col2 * 69 + + col2 - + col1 * + ( 5 ) AS col1 FROM tab1 AS cor0
----
-3802
-3926
-6593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - col1 * + col2 + 52 AS col0 FROM tab1 AS cor0
----
-1196
-1352
-518

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col0 * 19 + - col0 + - col1 AS col0 FROM tab0
----
1511
346
533

query I rowsort
SELECT ALL col2 + 58 * 39 AS col1 FROM tab1 AS cor0
----
2316
2319
2358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + cor0.col2 + 8 FROM tab1 AS cor0
----
104
62
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3900
SELECT ALL + col2 + CAST( + col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + col2 + CAST ( + col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT - - col1 + + col2 * col2 + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
1172
6814
96

skipif mysql # not compatible
query I rowsort label-3901
SELECT - - col1 + + col2 * col2 + col1 / - cor0.col0 FROM tab0 AS cor0
----
1172
6814
96

query I rowsort
SELECT + cor0.col2 * cor0.col0 - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + 37 * - 46 AS col0 FROM tab0 AS cor0
----
-1702

query I rowsort
SELECT col2 * - 55 + col1 FROM tab1 AS cor0
----
-2944
-3125
-5267

query I rowsort
SELECT DISTINCT + 37 + col0 FROM tab2 AS cor0
----
115
116
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3906
SELECT + - CAST( NULL AS SIGNED ) * - col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT + - CAST ( NULL AS INTEGER ) * - col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + - col2 + 95 * col2 col2 FROM tab1 AS cor0
----
5102
5368
9037

query I rowsort
SELECT ALL 21 * col1 AS col2 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL 62 AS col1 FROM tab0 cor0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT col1 DIV ( col1 ) + + col1 + - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3910
SELECT col1 / ( col1 ) + + col1 + - col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3912
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3912
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 + 48 FROM tab1
----
112
128
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 69 * col1 col2 FROM tab0 AS cor0
----
5934
6279
6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + + cor0.col2 * - 12 col1 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT DISTINCT - 38 * col1 * - col2 FROM tab2 AS cor0
----
24548
31806
58292

onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT DISTINCT + 41 * + col0 + col1 DIV + 99 FROM tab2 AS cor0
----
287
3198
3239

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + 41 * + col0 + col1 / + 99 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT ALL - - 97 * col0 AS col2 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT ALL - 97 + col0 AS col2 FROM tab0 AS cor0
----
-62
-73
-8

query I rowsort
SELECT + 51 * col0 AS col2 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT DISTINCT col1 * col2 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - col0 * col0 + 4 + + 96 FROM tab0 AS cor0
----
-1125
-476
-7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 + - 48 col1 FROM tab2 AS cor0
----
1486
598
789

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab0
----
86

query I rowsort
SELECT DISTINCT + col1 * + col0 + + ( 8 ) AS col1 FROM tab0 AS cor0
----
2072
3403
8107

query I rowsort
SELECT DISTINCT + + 79 * - col0 FROM tab0 AS cor0
----
-1896
-2765
-7031

query I rowsort
SELECT + 46 AS col2 FROM tab1
----
46
46
46

query I rowsort
SELECT + col0 * ( - col0 ) - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - col0 * col2 + col2 * - col2 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT 66 AS col2 FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

query I rowsort
SELECT - 34 * col0 FROM tab2
----
-238
-2652
-2686

query I rowsort
SELECT 5 * - col0 FROM tab2
----
-35
-390
-395

query I rowsort
SELECT 74 * + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2bc65e52b35c1e02e7c244003eb6ecdb

query I rowsort
SELECT col0 * + col0 + tab2.col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ( - col1 ) + col0 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT col1 + - tab0.col1 * col2 AS col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT 10 FROM tab2, tab2 cor0
----
10

query I rowsort
SELECT DISTINCT ( + 82 + col1 ) * col1 FROM tab0
----
14448
15743
17363

query I rowsort
SELECT + 99 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ALL 0 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3941
SELECT col0 * col1 DIV - col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3941
SELECT col0 * col1 / - col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - 39 * + col2 FROM tab2
----
-1014
-1053
-1482

query I rowsort
SELECT ALL - ( col2 ) * - 62 + 58 FROM tab2 cor0
----
1670
1732
2414

query I rowsort
SELECT ( - col2 ) + + col1 * col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + ( - col1 ) * ( + 16 ) + col0 * + col1 AS col2 FROM tab2 cor0
----
-279
1071
3658

query I rowsort
SELECT + + col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL col2 - + 71 * col0 AS col2 FROM tab2 AS cor0
----
-470
-5512
-5571

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT - col0 * CAST( - 79 AS SIGNED ) FROM tab1 AS cor0
----
237
5056
6320

skipif mysql # not compatible
query I rowsort label-3949
SELECT - col0 * CAST ( - 79 AS INTEGER ) FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT DISTINCT + col2 * + col0 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL col0 * - ( + col2 ) * col0 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - cor0.col2 * - 70 + + cor0.col1 AS col0 FROM tab2 cor0
----
1879
1921
2677

onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT + col0 + - CAST( col1 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3953
SELECT + col0 + - CAST ( col1 AS INTEGER ) / col1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - + cor0.col0 * col0 * cor0.col2 FROM tab2 cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + col1 * col1 * + 29 AS col1 FROM tab2 AS cor0
----
100949
27869
8381

query I rowsort
SELECT + - 92 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3958
SELECT + CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3958
SELECT + CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + 73 * col2 col2 FROM tab2
----
1924
1998
2812

query I rowsort
SELECT + - ( + 13 ) * - col1 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT + + 2 * col0 * + col2 FROM tab0 cor0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT + 15 + + col2 * col1 DIV ( + col1 ) AS col0 FROM tab1 AS cor0
----
111
69
72

skipif mysql # not compatible
query I rowsort label-3962
SELECT + 15 + + col2 * col1 / ( + col1 ) AS col0 FROM tab1 AS cor0
----
111
69
72

query I rowsort
SELECT col1 + 34 FROM tab0 AS cor0
----
120
125
131

query I rowsort
SELECT DISTINCT + cor0.col1 * - 30 AS col0 FROM tab2 AS cor0
----
-1770
-510
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3965
SELECT DISTINCT + + CAST( + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT + + CAST ( + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3966
SELECT ALL col1 DIV + 21 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL col1 / + 21 FROM tab2
----
0
1
2

query I rowsort
SELECT col2 * col0 + - tab2.col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT 32 + 65 * cor0.col1 FROM tab0 AS cor0
----
5622
5947
6337

query I rowsort
SELECT ALL col1 * 89 FROM tab1
----
1157
2314
890

query I rowsort
SELECT 75 * + col0 AS col1 FROM tab1 cor0
----
225
4800
6000

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to c3f17e238f07c9d20c4ee001084f26c7

query I rowsort
SELECT 93 + col2 FROM tab1
----
147
150
189

query I rowsort
SELECT DISTINCT 88 * + cor0.col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
2112
3080
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3974
SELECT ALL tab1.col2 DIV ( cor0.col0 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c65f3e23e10963333fdf2ac85b974f8b

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL tab1.col2 / ( cor0.col0 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c65f3e23e10963333fdf2ac85b974f8b

query I rowsort
SELECT - 30 FROM tab2, tab0 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT - 50 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT col0 + + col0 AS col1 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - col0 + 87 * + col2 AS col2 FROM tab0 AS cor0
----
2847
52
7045

query I rowsort
SELECT col1 * - 34 FROM tab2
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT - 64 * col2 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-43264
-46656
-92416

query I rowsort
SELECT DISTINCT + - 81 * + col0 AS col0 FROM tab1 cor0
----
-243
-5184
-6480

query I rowsort
SELECT DISTINCT - 92 + col0 AS col2 FROM tab2 AS cor0
----
-13
-14
-85

query I rowsort
SELECT - col2 + col1 * - col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + 95 + col2 FROM tab0 cor0
----
128
177
96

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 cor1, tab1 cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT ( 3 ) DIV + tab2.col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3986
SELECT ( 3 ) / + tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + tab1.col0 + col0 FROM tab1
----
192
240
9

query I rowsort
SELECT col0 + + col1 * 17 AS col1 FROM tab1
----
234
301
445

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT DISTINCT col2 DIV + col1 + + col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT col2 / + col1 + + col1 FROM tab2
----
19
31
59

query I rowsort
SELECT 99 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT + 86 * col0 FROM tab2
----
602
6708
6794

query I rowsort
SELECT - tab0.col0 * - ( - 94 ) FROM tab0, tab0 AS cor0
----
9 values hashing to afe37441cf632821cf92c0df6d8450cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT + col2 + col2 DIV - 44 - + col1 AS col2 FROM tab2
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-3993
SELECT + col2 + col2 / - 44 - + col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - 11 AS col0 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + col1 + tab0.col1 AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + col2 + col0 + + 48 FROM tab1
----
105
169
224

query I rowsort
SELECT DISTINCT + - ( - 64 ) * col2 AS col1 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT DISTINCT + col1 * 47 + - col0 * 0 + col1 AS col1 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT ALL - 64 - cor0.col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4160
-6464
-73

query I rowsort
SELECT DISTINCT 26 FROM tab1, tab1 AS cor0
----
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT 89 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
22
33
60

skipif mysql # not compatible
query I rowsort label-4001
SELECT 89 / col1 + col1 AS col1 FROM tab2 AS cor0
----
22
33
60

query I rowsort
SELECT - - ( ( + col1 ) ) * - 89 + 17 FROM tab1 AS cor0
----
-1140
-2297
-873

query I rowsort
SELECT ALL col2 - - ( col0 ) * ( + 93 ) AS col2 FROM tab1
----
333
6009
7536

query I rowsort
SELECT DISTINCT ( + col0 ) - col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
-6542
-917
193

query I rowsort
SELECT ALL - + 79 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT - col0 * 24 FROM tab1 AS cor0
----
-1536
-1920
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4008
SELECT ALL cor0.col1 DIV col1 - col1 DIV - ( col0 * - col1 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL cor0.col1 / col1 - col1 / - ( col0 * - col1 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - ( 70 ) * - col1 FROM tab2 cor0
----
1190
2170
4130

query I rowsort
SELECT DISTINCT - + col2 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + - col2 + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT ( col0 ) + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - cor0.col1 * 90 AS col1 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT - ( 18 ) AS col0 FROM tab0 AS cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT + 92 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 97 AS col0 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT 28 + + col0 FROM tab0 cor0
----
117
52
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 90 ) col1 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT - tab0.col2 + 57 * col2 FROM tab0
----
1848
4592
56

query I rowsort
SELECT DISTINCT + 90 * - col2 FROM tab2
----
-2340
-2430
-3420

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + cor0.col0 * + col2 + col1 * + ( + col0 + - cor0.col2 ) FROM tab1 cor0
----
16688
1752
6967

query I rowsort
SELECT + col1 - + col1 * - col0 * + 28 FROM tab2 AS cor0
----
128915
37621
6107

query I rowsort
SELECT ALL + - cor0.col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - 26 + - col1 AS col1 FROM tab0 AS cor0
----
-112
-117
-123

query I rowsort
SELECT ALL col0 * + col2 - cor0.col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + 25 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-1324
-1415
-2387

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + - col2 + - col0 FROM tab0 cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4031
SELECT DISTINCT + col0 + + col0 * CAST( ( col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT + col0 + + col0 * CAST ( ( col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + 17 - col1 AS col0 FROM tab0 cor0
----
-69
-74
-80

query I rowsort
SELECT col2 * - col0 + + cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT DISTINCT - + 9 * col1 * + col0 FROM tab0 AS cor0
----
-18576
-30555
-72891

query I rowsort
SELECT + col0 * cor0.col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + 17 * cor0.col1 FROM tab2 AS cor0
----
1003
289
527

onlyif mysql # use DIV operator for integer division
query I rowsort label-4037
SELECT ALL - + col0 + col2 DIV 62 FROM tab1 AS cor0
----
-3
-64
-79

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - + col0 + col2 / 62 FROM tab1 AS cor0
----
-3
-64
-79

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col2 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + cor0.col2 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL 17 AS col0 FROM tab1
----
17
17
17

query I rowsort
SELECT DISTINCT col0 + col1 * + ( ( - col2 ) ) FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL 13 * - col2 + + col0 + ( col1 ) FROM tab0 AS cor0
----
-319
-886
119

query I rowsort
SELECT DISTINCT 69 + col0 FROM tab0 AS cor0
----
104
158
93

query I rowsort
SELECT ALL - col1 * col2 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + 35 * cor0.col1 AS col2 FROM tab1 cor0
----
350
455
910

query I rowsort
SELECT ALL cor0.col0 * + col0 + - 64 FROM tab1 AS cor0
----
-55
4032
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-4047
SELECT col2 DIV col0 - - col2 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-4047
SELECT col2 / col0 - - col2 FROM tab1 AS cor0
----
57
72
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * + 0 col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * 81 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT ALL col1 * ( 44 ) FROM tab0 AS cor0
----
3784
4004
4268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4051
SELECT + + col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT + + col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT DISTINCT + 46 DIV cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
1
46

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT + 46 / cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
1
46

query I rowsort
SELECT DISTINCT cor0.col2 + - 79 FROM tab0 AS cor0
----
-46
-78
3

query I rowsort
SELECT col0 + - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-148
-159
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT col1 DIV - 6 FROM tab2 AS cor0
----
-2
-5
-9

skipif mysql # not compatible
query I rowsort label-4056
SELECT col1 / - 6 FROM tab2 AS cor0
----
-2
-5
-9

query I rowsort
SELECT ALL - 98 AS col0 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT + col2 + cor0.col2 DIV ( - col0 ) FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-4058
SELECT + col2 + cor0.col2 / ( - col0 ) FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT col1 * - 41 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT 49 + col0 FROM tab2
----
127
128
56

query I rowsort
SELECT DISTINCT + col0 + + 65 * col0 * col0 FROM tab2 AS cor0
----
3192
395538
405744

query I rowsort
SELECT ALL - + col2 * 64 AS col2 FROM tab2 AS cor0
----
-1664
-1728
-2432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4063
SELECT DISTINCT col1 * CAST( col1 AS SIGNED ) + col0 * + col1 col0 FROM tab0 cor0
----
12804
16380
9460

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT col1 * CAST ( col1 AS INTEGER ) + col0 * + col1 col0 FROM tab0 cor0
----
12804
16380
9460

query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + + 2 * cor0.col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT ALL 19 DIV 25 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL 19 / 25 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col1 * + col1 * col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + + col2 + + 52 * col2 FROM tab0 cor0
----
1749
4346
53

query I rowsort
SELECT col2 + + 14 FROM tab0 AS cor0
----
15
47
96

query I rowsort
SELECT col2 * - cor0.col1 FROM tab2 cor0
----
-1534
-646
-837

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - 54 * + col2 AS col1 FROM tab0 AS cor0
----
-1782
-4428
-54

query I rowsort
SELECT DISTINCT ( col2 ) * col0 + col0 - - col2 * ( - ( - col1 ) ) FROM tab1 AS cor0
----
1569
4282
9008

query I rowsort
SELECT DISTINCT - + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT col2 + + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 * - cor1.col1 * cor0.col2 + - 77 col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to e40f34b2d04f5dd245a7c06395eae7a9

query I rowsort
SELECT 19 * 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ea227f2f7da375ab2ef428be45e25400

query I rowsort
SELECT - + col2 * + col0 * - col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + - 55 * - col1 AS col1 FROM tab0 AS cor0
----
4730
5005
5335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + 4 col0 FROM tab1 AS cor0
----
-1244
-1400
-566

query I rowsort
SELECT - 68 + col1 + - col0 FROM tab0 cor0
----
-6
-6
-66

query I rowsort
SELECT - col1 * - ( col0 ) * col0 FROM tab1 cor0
----
234
40960
83200

query I rowsort
SELECT ALL - ( 6 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT - - col0 * ( - col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT ALL - col0 DIV 89 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL - col0 / 89 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col2 + + ( col0 ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL col2 * - 35 FROM tab2 AS cor0
----
-1330
-910
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT col2 + + col1 + - tab2.col2 * - col2 AS col1 FROM tab2
----
1499
761
787

query I rowsort
SELECT + col1 * + col1 + - col1 FROM tab2 cor0
----
272
3422
930

query I rowsort
SELECT - col2 * 10 + col1 + ( ( col0 ) ) FROM tab0 AS cor0
----
-220
-640
122

query I rowsort
SELECT DISTINCT + col2 * col0 * + tab2.col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL 89 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT + 86 * + col0 + + 25 + col1 AS col0 FROM tab0 AS cor0
----
2175
3132
7770

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab2
----
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4099
SELECT ALL + CAST( - col0 AS SIGNED ) * - col1 AS col0 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + CAST ( - col0 AS INTEGER ) * - col1 AS col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + 93 * cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 551dde140f452eb43ad412c25452df50

query I rowsort
SELECT DISTINCT - col0 + - 67 AS col1 FROM tab1 AS cor0
----
-131
-147
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4103
SELECT DISTINCT + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + col2 * - col2 + 69 * col2 FROM tab0 cor0
----
-1066
1188
68

query I rowsort
SELECT - - col2 * 8 FROM tab2 AS cor0
----
208
216
304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4106
SELECT ALL + + col1 * + CAST( NULL AS SIGNED ) + - col0 * cor0.col2 - - cor0.col1 * - 4 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + + col1 * + CAST ( NULL AS INTEGER ) + - col0 * cor0.col2 - - cor0.col1 * - 4 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * - col1 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 65 * + col0 - + col2 AS col2 FROM tab1 AS cor0
----
141
4103
5104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT DISTINCT - cor0.col0 + ( - col1 * - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT - cor0.col0 + ( - col1 * - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4112
SELECT - - CAST( - col2 AS SIGNED ) * + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

skipif mysql # not compatible
query I rowsort label-4112
SELECT - - CAST ( - col2 AS INTEGER ) * + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + cor0.col0 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 1 + - col2 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT + col2 DIV - tab2.col1 + col2 - - col2 FROM tab2
----
52
54
74

skipif mysql # not compatible
query I rowsort label-4117
SELECT + col2 / - tab2.col1 + col2 - - col2 FROM tab2
----
52
54
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4118
SELECT DISTINCT - - CAST( col0 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - col2 + col2 + + col2 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - 93 + - col1 * - ( 78 ) AS col1 FROM tab1 AS cor0
----
1935
687
921

query I rowsort
SELECT DISTINCT + col2 + + col1 * + 67 AS col2 FROM tab1 AS cor0
----
1796
727
967

query I rowsort
SELECT DISTINCT + 54 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
54

query I rowsort
SELECT + ( col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - tab2.col2 * - 16 * col2 FROM tab2
----
10816
11664
23104

query I rowsort
SELECT 78 * col2 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT DISTINCT - + 35 AS col0 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT + 20 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1280
1600
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4129
SELECT DISTINCT - cor0.col0 + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT - cor0.col0 + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 12 * - col1 FROM tab2
----
204
372
708

query I rowsort
SELECT ALL - 93 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT DISTINCT - + cor0.col1 * - ( + 46 * - col0 ) FROM tab1 AS cor0
----
-29440
-3588
-47840

query I rowsort
SELECT cor0.col0 * - col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 * + col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col0 * - col0 + ( col0 ) FROM tab2
----
-42
-6006
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT + + col1 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4136
SELECT + + col1 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - col0 * + col1 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + + col0 + 76 * ( cor0.col2 ) * col0 AS col2 FROM tab0 AS cor0
----
2695
554737
60216

query I rowsort
SELECT col0 * col2 + 14 AS col0 FROM tab2
----
203
2042
3016

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT ALL - col2 * col1 DIV 73 AS col2 FROM tab1
----
-17
-19
-7

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - col2 * col1 / 73 AS col2 FROM tab1
----
-17
-19
-7

query I rowsort
SELECT ALL + col2 + - col1 + - col0 * + col2 FROM tab0 AS cor0
----
-131
-7307
-845

query I rowsort
SELECT DISTINCT + col1 * - 22 + - col0 AS col2 FROM tab2 AS cor0
----
-1376
-453
-689

query I rowsort
SELECT DISTINCT + col0 * - 4 FROM tab1
----
-12
-256
-320

query I rowsort
SELECT ALL - + cor0.col2 * col0 + + 36 * - col0 FROM tab0 AS cor0
----
-10502
-1295
-1656

query I rowsort
SELECT col0 * + 21 AS col2 FROM tab2
----
147
1638
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT col2 - + tab2.col1 DIV - col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-4146
SELECT col2 - + tab2.col1 / - col0 FROM tab2
----
26
31
38

query I rowsort
SELECT DISTINCT ( + 39 ) + tab1.col0 FROM tab1
----
103
119
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4148
SELECT CAST( NULL AS SIGNED ) + - 90 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT CAST ( NULL AS INTEGER ) + - 90 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 64 * 88 + - col1 FROM tab2
----
5573
5601
5615

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + ( + col0 ) AS REAL ) + + col2 * + ( col1 ) FROM tab2
----
1456
567
830

query I rowsort
SELECT DISTINCT + col1 + - ( col1 * - 22 ) FROM tab0
----
1978
2093
2231

query I rowsort
SELECT ALL col2 * col1 + - col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT 84 + col2 FROM tab1
----
138
141
180

query I rowsort
SELECT DISTINCT - 91 + + tab1.col0 FROM tab1
----
-11
-27
-88

query I rowsort
SELECT DISTINCT + - col2 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT tab0.col2 + + col1 * col0 AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - - col2 + + cor0.col2 * col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT ALL + 22 * + 86 AS col0 FROM tab1 AS cor0
----
1892
1892
1892

onlyif mysql # use DIV operator for integer division
query I rowsort label-4159
SELECT - 73 DIV - col0 FROM tab2
----
0
0
10

skipif mysql # not compatible
query I rowsort label-4159
SELECT - 73 / - col0 FROM tab2
----
0
0
10

query I rowsort
SELECT DISTINCT + col2 + col0 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1032
-6553
35

query I rowsort
SELECT ALL col2 - - col2 * + 36 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT - + 15 * col2 AS col1 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT + + col1 + - col0 * + 32 AS col1 FROM tab2 cor0
----
-193
-2437
-2511

query I rowsort
SELECT DISTINCT - 18 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-115
-2856
-7480

query I rowsort
SELECT ALL col1 * + cor0.col1 + + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT - + col0 * col1 + + col1 FROM tab0 cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT DISTINCT + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT + col1 / + col0 AS col0 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT - - ( - col2 ) + - 98 AS col0 FROM tab2 AS cor0
----
-124
-125
-136

query I rowsort
SELECT DISTINCT - 34 + - col1 FROM tab2 AS cor0
----
-51
-65
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 * + col1 col0 FROM tab2 AS cor0
----
1054
2006
578

onlyif mysql # use DIV operator for integer division
query I rowsort label-4171
SELECT - col2 * + col1 + 29 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1534
-646
-841

skipif mysql # not compatible
query I rowsort label-4171
SELECT - col2 * + col1 + 29 / - col0 AS col2 FROM tab2 AS cor0
----
-1534
-646
-841

query I rowsort
SELECT DISTINCT - col2 + + col2 * + cor0.col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL col0 * col2 * ( col2 ) + col2 AS col2 FROM tab0 cor0
----
26169
36
598518

query I rowsort
SELECT ALL col0 * cor0.col0 + col1 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT + 38 AS col1 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT + col2 * - col1 * + col1 FROM tab0 cor0
----
-244068
-679042
-9409

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT ALL + 79 AS col0 FROM tab2 cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4179
SELECT + col2 DIV col1 + - col2 * ( 85 ) AS col0 FROM tab0 AS cor0
----
-2805
-6970
-85

skipif mysql # not compatible
query I rowsort label-4179
SELECT + col2 / col1 + - col2 * ( 85 ) AS col0 FROM tab0 AS cor0
----
-2805
-6970
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4180
SELECT + - CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT + - CAST ( NULL AS REAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 22 + 56 AS col2 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT + 82 * col1 * - col2 FROM tab2 AS cor0
----
-125788
-52972
-68634

query I rowsort
SELECT - 7 * col0 * col2 FROM tab1 cor0
----
-1134
-25536
-53760

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT col0 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + col1 + + 75 AS col1 FROM tab0 AS cor0
----
161
166
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT + 68 DIV col2 FROM tab0
----
0
2
68

skipif mysql # not compatible
query I rowsort label-4188
SELECT + 68 / col2 FROM tab0
----
0
2
68

query I rowsort
SELECT DISTINCT - col2 + + col1 + + 63 AS col0 FROM tab1
----
-20
16
35

query I rowsort
SELECT - ( col2 ) * 69 AS col2 FROM tab1
----
-3726
-3933
-6624

query I rowsort
SELECT - 55 FROM tab0, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT DISTINCT - - col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - - col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * + col1 + - 61 + cor0.col0 AS col2 FROM tab1 cor0
----
-1021
-136
-637

query I rowsort
SELECT DISTINCT + + col0 * + 0 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT ALL - col2 + + 47 DIV cor0.col1 FROM tab1 AS cor0
----
-53
-53
-93

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - col2 + + 47 / cor0.col1 FROM tab1 AS cor0
----
-53
-53
-93

query I rowsort
SELECT + col2 * - 64 + - 92 AS col1 FROM tab0 AS cor0
----
-156
-2204
-5340

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT cor0.col1 DIV 59 FROM tab2, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-4197
SELECT cor0.col1 / 59 FROM tab2, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT ALL col2 * col1 DIV - col1 AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL col2 * col1 / - col1 AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL ( + cor0.col0 ) + col0 * + col2 AS col1 FROM tab2 cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * cor0.col1 + - col0 * ( - 60 ) col2 FROM tab0 AS cor0
----
11509
13621
8836

onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT ALL - ( - cor0.col2 ) + - cor0.col2 - 83 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
2
83

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - ( - cor0.col2 ) + - cor0.col2 - 83 / - col2 AS col2 FROM tab0 AS cor0
----
1
2
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4202
SELECT DISTINCT - + col0 DIV col1 + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT - + col0 / col1 + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + - 25 AS col0 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT ALL + 96 * cor0.col0 * - col0 + - col0 * col1 FROM tab2 cor0
----
-4921
-588666
-600479

query I rowsort
SELECT - tab2.col1 * tab2.col2 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col0 - + ( - 50 ) AS col0 FROM tab0
----
139
74
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4207
SELECT ALL - col2 * ( col0 ) DIV col2 AS col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - col2 * ( col0 ) / col2 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL ( - tab0.col2 * - tab0.col2 ) + - 63 FROM tab0
----
-62
1026
6661

query I rowsort
SELECT - 45 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT - col0 * - 84 + + cor0.col0 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT - cor0.col0 * + 28 + - col0 AS col0 FROM tab0 AS cor0
----
-1015
-2581
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 * cor0.col2 + col2 col2 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT ALL - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + - 2 + col1 AS col1 FROM tab1 AS cor0
----
11
24
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4215
SELECT + + ( - 65 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4215
SELECT + + ( - 65 ) / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4216
SELECT + col0 + - cor0.col2 * CAST( - cor0.col2 * + col2 AS SIGNED ) col2 FROM tab1 cor0
----
157467
185257
884816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4216
SELECT + col0 + - cor0.col2 * CAST ( - cor0.col2 * + col2 AS INTEGER ) col2 FROM tab1 cor0
----
157467
185257
884816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4217
SELECT ( col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT ( col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + - col0 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ( col1 ) - tab2.col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT - + col2 + + 96 * col1 AS col2 FROM tab0 AS cor0
----
8223
8654
9311

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4221
SELECT ALL col0 * CAST( NULL AS SIGNED ) / + col0 - + tab0.col0 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL col0 * CAST ( NULL AS INTEGER ) / + col0 - + tab0.col0 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + - 0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - + col1 + - 27 AS col0 FROM tab2 AS cor0
----
-44
-58
-86

query I rowsort
SELECT - + cor0.col2 * 89 AS col0 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT col2 - - 46 FROM tab2 AS cor0
----
72
73
84

query I rowsort
SELECT ALL - col2 * - col0 + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT col2 * col2 + col1 AS col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT col1 - col2 * col0 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT - col2 * col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT col2 * - col1 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * col0 * col0 AS col1 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT col0 * - col1 + tab1.col0 AS col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT col0 / - col0 + + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab1 AS cor0 WHERE NOT + col0 + col0 / + col2 + cor0.col0 / col2 NOT IN ( - col0 * cor0.col1 * - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + col1 * - col0 >= - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col1 * + col2 <= ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - + col2 + col0 * col2 * col1 AS col2 FROM tab2 cor0
----
119626
50996
5832

query I rowsort
SELECT ALL - col2 * - col2 + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT col2 * col2 * col2 + - col2 FROM tab2
----
17550
19656
54834

query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 * col2 AS col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT col1 * - col1 + + col2 + + col1 FROM tab2 AS cor0
----
-234
-3396
-903

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col0 )
----

query I rowsort
SELECT - col1 * - col0 + - col0 + - col1 FROM tab2 AS cor0
----
1247
179
4465

query I rowsort
SELECT DISTINCT - col2 * col2 * col2 AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT cor0.col0 * col2 + cor0.col2 + + cor0.col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT ALL + col1 DIV cor0.col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + col1 / cor0.col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + - col0 + col2 * col1 * col0 AS col1 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT - col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT DISTINCT col1 * col1 + - col2 DIV col0 FROM tab2
----
289
3481
958

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT col1 * col1 + - col2 / col0 FROM tab2
----
289
3481
958

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 + col0 AS col2 FROM tab2
----
2165
227
3098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab2.col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - col2 * col2 + + ( col2 ) FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4258
SELECT DISTINCT - col2 * + col1 + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT - col2 * + col1 + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT + + col1 DIV col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4259
SELECT + + col1 / col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + cor0.col1 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - - 84 * col1 AS col0 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT + 2 + cor0.col0 FROM tab0 AS cor0
----
26
37
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT ALL + col0 / - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL + col0 / - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col0 * col0 * col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT ALL - col1 + - col1 * tab1.col0 + - col1 FROM tab1
----
-1066
-130
-660

query I rowsort
SELECT col1 + - col0 * tab2.col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT col2 + col2 - col0 FROM tab1
----
105
112
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT tab2.col1 * col0 DIV + col1 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4268
SELECT tab2.col1 * col0 / + col1 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT col1 * col2 + - 40 + - col1 FROM tab0 AS cor0
----
-40
2712
7331

onlyif mysql # use DIV operator for integer division
query I rowsort label-4270
SELECT col2 + - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-4270
SELECT col2 + - col2 / col0 AS col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT + col1 + - col2 + col1 AS col0 FROM tab2 cor0
----
-4
35
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT - - col0 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4272
SELECT - - col0 / CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + tab1.col1 * col2 + ( col2 ) * col2 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT ALL - col0 * - col0 * col1 AS col2 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL col1 + col2 - - col0 * col2 FROM tab0
----
133
7471
911

query I rowsort
SELECT ALL col2 + col0 * + col2 + col0 * col2 * + col2 FROM tab0
----
26961
605816
71

query I rowsort
SELECT col2 * + tab1.col2 * + col1 + + col0 AS col2 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT tab1.col1 * col0 + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT tab1.col1 * - col2 + col1 FROM tab1
----
-1235
-1378
-560

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 - col2 IN ( col1 )
----

query I rowsort
SELECT ALL - col2 * col1 + col2 + col2 AS col0 FROM tab0
----
-2772
-7298
-95

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + col2 + col2 * + col2 + - tab1.col1 AS col1 FROM tab1
----
2944
3296
9299

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( tab1.col2 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 * col0 col2 FROM tab0 WHERE NOT - col0 + - col2 * - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * tab1.col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col2 * col2 * col2 AS col1 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT NULL IN ( col2 * - col0 )
----

query I rowsort
SELECT DISTINCT col0 + col2 * col1 - tab1.col2 * col1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT col0 / - col0 + col1 FROM tab0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4291
SELECT DISTINCT col2 + + col1 DIV - col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT col2 + + col1 / - col1 FROM tab0
----
0
32
81

query I rowsort
SELECT col2 * col2 FROM tab1 WHERE NOT ( + col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col2 - tab0.col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT col0 * col0 + - tab0.col0 * col2 AS col1 FROM tab0
----
-216
1190
623

query I rowsort
SELECT tab0.col0 * + col1 * - col1 + col2 FROM tab0
----
-177471
-329314
-736927

query I rowsort
SELECT + col1 * tab1.col2 FROM tab1 WHERE NOT ( NULL ) < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * col1 + col1 ) NOT IN ( col2 + + col0 * col2 + tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col1 * col0 * tab0.col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - 74 AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT ALL + + col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL tab1.col1 * tab1.col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL + 12 * col2 * + ( col2 * + col0 + col1 ) FROM tab2
----
1376664
651144
71280

query I rowsort
SELECT - + col2 + - cor0.col1 + - col2 FROM tab1 AS cor0
----
-124
-134
-205

query I rowsort
SELECT 29 * col0 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT DISTINCT 9 + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-19
-38
-74

query I rowsort
SELECT + + col0 * + col1 * + col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - + 50 + col1 FROM tab0 AS cor0
----
36
41
47

query I rowsort
SELECT + col0 * 34 FROM tab2 AS cor0
----
238
2652
2686

onlyif mysql # use DIV operator for integer division
query I rowsort label-4309
SELECT + - col0 DIV 11 + + col2 AS col0 FROM tab0 AS cor0
----
-2
31
74

skipif mysql # not compatible
query I rowsort label-4309
SELECT + - col0 / 11 + + col2 AS col0 FROM tab0 AS cor0
----
-2
31
74

query I rowsort
SELECT - + col2 * - col0 + - col1 AS col0 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 + + col1 * + 44 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT - - col2 + 36 FROM tab1 cor0
----
132
90
93

query I rowsort
SELECT + col0 + ( cor0.col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - 6 * + 75 FROM tab0 AS cor0
----
-450

query I rowsort
SELECT DISTINCT + 9 + col0 * col2 FROM tab1 AS cor0
----
171
3657
7689

query I rowsort
SELECT col1 + + 35 * + col1 * + cor0.col0 FROM tab0 AS cor0
----
118922
283556
72326

query I rowsort
SELECT DISTINCT 88 + 63 * - col0 FROM tab2 cor0
----
-353
-4826
-4889

query I rowsort
SELECT + + col2 * col1 - col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL + - ( col2 ) + - col0 * 93 AS col1 FROM tab1 AS cor0
----
-333
-6009
-7536

query I rowsort
SELECT 60 * cor0.col0 + + col1 - + ( + col2 ) FROM tab0 AS cor0
----
1493
2196
5349

query I rowsort
SELECT + ( - 72 ) FROM tab1 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col0 + + 71 * col2 col1 FROM tab2
----
2134
4041
6448

query I rowsort
SELECT - 22 AS col0 FROM tab1 cor0
----
-22
-22
-22

query I rowsort
SELECT col1 * cor0.col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT 60 FROM tab1 cor0
----
60
60
60

query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL - ( + col1 ) + + col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT 4 - - col0 AS col2 FROM tab2 AS cor0
----
11
82
83

query I rowsort
SELECT ALL - col0 + 67 AS col1 FROM tab1
----
-13
3
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + - col0 * col1 col1 FROM tab0 cor0
----
-2010
-3341
-8045

query I rowsort
SELECT DISTINCT + - 47 + + col1 * + col0 * - col2 FROM tab2 AS cor0
----
-119699
-51081
-5906

onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT ALL ( col1 ) DIV col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL ( col1 ) / col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - - col0 - + col2 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT - 69 AS col1 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ( 90 ) FROM tab2
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 col2 FROM tab2 cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + ( 40 + col1 ) * - col0 AS col1 FROM tab2
----
-4503
-497
-7722

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab0
----
50

query I rowsort
SELECT + + cor0.col0 + col1 + col0 AS col1 FROM tab0 AS cor0
----
134
167
269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + - tab0.col0 col2 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + col0 * + tab2.col2 - col1 FROM tab2
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 + + cor0.col2 * col2 * col1 col2 FROM tab2 AS cor0
----
22648
30789
45968

query I rowsort
SELECT - - col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + ( col2 ) * col0 AS col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT + 77 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT + 48 FROM tab0, tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT 8 * + col0 AS col1 FROM tab2 AS cor0
----
56
624
632

query I rowsort
SELECT DISTINCT 68 + cor0.col0 * + col0 FROM tab0 AS cor0
----
1293
644
7989

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4352
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 53 + - col0 FROM tab0 cor0
----
-36
18
29

query I rowsort
SELECT ALL cor0.col2 * col1 + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT ALL cor0.col2 + - 70 AS col2 FROM tab0 AS cor0
----
-37
-69
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT + col1 * - cor0.col0 + - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-86

skipif mysql # not compatible
query I rowsort label-4356
SELECT + col1 * - cor0.col0 + - col1 / col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 27 col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL ( - col0 ) + - col2 * col0 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT DISTINCT + cor0.col0 DIV cor0.col0 AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + cor0.col0 / cor0.col0 AS col2 FROM tab2 cor0
----
1

query I rowsort
SELECT ALL + col1 + + 94 FROM tab0 AS cor0
----
180
185
191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4361
SELECT ALL - CAST( col2 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - CAST ( col2 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT DISTINCT col0 DIV + col0 + + col1 * - col2 FROM tab0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT col0 / + col0 + + col1 * - col2 FROM tab0
----
-2837
-7461
-96

query I rowsort
SELECT - col1 * + col1 + col0 + - col1 * - 14 FROM tab1
----
-309
104
93

query I rowsort
SELECT col2 + 59 * col0 AS col2 FROM tab1
----
231
3833
4816

query I rowsort
SELECT col2 - - col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT + + ( cor0.col1 ) + col1 AS col0 FROM tab1 cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4367
SELECT ALL + col1 + - col1 * + cor0.col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + col1 + - col1 * + cor0.col0 / - col0 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - - ( - col2 ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - cor0.col1 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - col1 * + col0 + col0 * 28 FROM tab0 AS cor0
----
-1392
-2415
-5607

query I rowsort
SELECT DISTINCT + + 23 + 78 AS col2 FROM tab2 cor0
----
101

query I rowsort
SELECT DISTINCT - - ( 56 ) + col2 FROM tab0 AS cor0
----
138
57
89

query I rowsort
SELECT DISTINCT + cor1.col2 + + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
33
34
45

query I rowsort
SELECT DISTINCT - 57 - tab2.col2 FROM tab2
----
-83
-84
-95

query I rowsort
SELECT - + 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4376
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4377
SELECT ALL col2 * CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4379
SELECT tab1.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT tab1.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 + ( + col2 ) + col0 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT col1 * - col2 + + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - ( 73 ) FROM tab1, tab2 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 32 col0 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT ALL - + col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT cor0.col1 * + 12 + 38 + col1 * + col1 FROM tab0 AS cor0
----
10611
8466
9411

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT - col1 * + col0 - + col2 * cor0.col2 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT ALL col1 * - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + - col0 - + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT col1 - - ( col0 ) FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT col1 DIV col1 + 63 * col0 FROM tab0 cor0
----
1513
2206
5608

skipif mysql # not compatible
query I rowsort label-4391
SELECT col1 / col1 + 63 * col0 FROM tab0 cor0
----
1513
2206
5608

query I rowsort
SELECT ALL + + col1 + - 87 FROM tab2 cor0
----
-28
-56
-70

query I rowsort
SELECT + col1 * + ( ( col0 ) ) - cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + + col0 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + + col2 * ( 1 * + col1 + + col1 ) AS col2 FROM tab1 AS cor0
----
1140
2496
2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 * - 0 * - col2 col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4397
SELECT ALL - col1 * + CAST( + col1 AS SIGNED ) + col2 * + ( 85 * + col2 ) FROM tab1 AS cor0
----
247184
276065
783191

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - col1 * + CAST ( + col1 AS INTEGER ) + col2 * + ( 85 * + col2 ) FROM tab1 AS cor0
----
247184
276065
783191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4398
SELECT + col1 + - CAST( 98 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
-655
-7585
-7725

skipif mysql # not compatible
query I rowsort label-4398
SELECT + col1 + - CAST ( 98 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
-655
-7585
-7725

query I rowsort
SELECT col0 * 42 + - col2 FROM tab1 AS cor0
----
2631
3264
72

query I rowsort
SELECT ALL + + col1 * 39 + + col2 - + col1 AS col0 FROM tab2 cor0
----
1205
2268
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col2 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + - col0 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - col2 + + 35 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT - col2 + + 76 * col0 FROM tab0 cor0
----
1791
2659
6682

onlyif mysql # use DIV operator for integer division
query I rowsort label-4405
SELECT DISTINCT + - col0 + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT + - col0 + col2 / + col0 AS col2 FROM tab2 AS cor0
----
-4
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4406
SELECT + CAST( + cor0.col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4406
SELECT + CAST ( + cor0.col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 58 * col2 + + col2 FROM tab0 AS cor0
----
1947
4838
59

query I rowsort
SELECT ALL col1 + col1 * + 50 AS col2 FROM tab2
----
1581
3009
867

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
10
13
26

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT DISTINCT + 56 FROM tab2 AS cor0
----
56

query I rowsort
SELECT ALL + ( + 11 + cor0.col0 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 401629b419f25352770f7ba1264b6293

query I rowsort
SELECT ALL - + cor0.col2 + - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL + + 40 AS col0 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT ALL - 41 AS col2 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT + 72 * col0 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT DISTINCT + 58 * - col1 FROM tab2 cor0
----
-1798
-3422
-986

query I rowsort
SELECT DISTINCT ( col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col1 * col1 * col0 AS col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT col0 * 38 + 17 * + col2 FROM tab0 AS cor0
----
1347
1473
4776

query I rowsort
SELECT + + col1 * + cor0.col2 * 54 AS col2 FROM tab2 AS cor0
----
34884
45198
82836

query I rowsort
SELECT - col0 + + 69 AS col1 FROM tab0 AS cor0
----
-20
34
45

query I rowsort
SELECT 36 + tab1.col2 FROM tab1
----
132
90
93

query I rowsort
SELECT - tab2.col1 + - col0 * - col0 AS col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT ALL + col0 * + col2 * col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL + 12 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL 38 AS col0 FROM tab2
----
38
38
38

query I rowsort
SELECT DISTINCT col0 + - col0 * - 1 * 50 AS col2 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT ALL + ( - col2 ) FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4430
SELECT col2 + + col1 DIV ( col1 * + col0 ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4430
SELECT col2 + + col1 / ( col1 * + col0 ) FROM tab1
----
54
57
96

query I rowsort
SELECT ALL 32 AS col1 FROM tab0
----
32
32
32

query I rowsort
SELECT ALL col1 * col1 * col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT + ( col0 ) + - ( 11 ) + - cor0.col2 FROM tab0 AS cor0
----
-20
-4
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT - - ( - col1 ) DIV 17 + col1 * - col2 * col0 + - 49 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2939
-35990
-99203

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - ( - col1 ) / 17 + col1 * - col2 * col0 + - 49 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2939
-35990
-99203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4435
SELECT ALL + col1 * + CAST( 49 AS SIGNED ) * tab0.col0 AS col2 FROM tab0
----
101136
166355
396851

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + col1 * + CAST ( 49 AS INTEGER ) * tab0.col0 AS col2 FROM tab0
----
101136
166355
396851

query I rowsort
SELECT ALL + col0 * 48 - - col1 AS col2 FROM tab0 AS cor0
----
1238
1777
4363

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT col1 + 63 * + ( col1 ) FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT 4 * + 92 FROM tab0 AS cor0
----
368
368
368

query I rowsort
SELECT - 81 + col2 FROM tab0 cor0
----
-48
-80
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT ALL col1 DIV col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL col1 / col1 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 99 col0 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + - 66 * - col2 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT ALL + 17 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT cor2.col2 FROM tab1, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
26
27
38

query I rowsort
SELECT col1 * + col2 + + col1 * + 0 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 * + col0 + col1 * col0 FROM tab2 AS cor0
----
2686
434
9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 - ( + col2 ) col2 FROM tab1 cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT ALL col0 + - col0 + ( + col2 + cor0.col2 ) DIV + cor0.col2 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL col0 + - col0 + ( + col2 + cor0.col2 ) / + cor0.col2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT 64 * col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT DISTINCT - 98 * col0 FROM tab0
----
-2352
-3430
-8722

query I rowsort
SELECT ALL 15 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT DISTINCT + 63 + col0 * col0 FROM tab2 AS cor0
----
112
6147
6304

query I rowsort
SELECT ALL - 29 * col0 + - col0 + col1 * col0 AS col0 FROM tab2 AS cor0
----
-1027
2262
7

query I rowsort
SELECT cor0.col1 + + col1 AS col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL - cor0.col0 + cor0.col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + cor0.col1 + - col0 * + 43 + col2 FROM tab1 AS cor0
----
-2685
-3331
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4460
SELECT col1 DIV col0 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-4460
SELECT col1 / col0 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT - + col1 + col0 + col0 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT col1 * 91 + + col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT col2 + col2 * col0 * col2 + col0 AS col2 FROM tab1
----
208057
737456
8805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4464
SELECT - + col0 + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4464
SELECT - + col0 + CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col2 + + 82 FROM tab1 AS cor0
----
136
139
178

query I rowsort
SELECT col2 + col0 + + col2 AS col2 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4468
SELECT ALL + col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL + col1 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + ( - 13 ) * + col2 FROM tab0 AS cor0
----
-1155
-453
-48

query I rowsort
SELECT ALL - 86 * cor0.col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT DISTINCT cor0.col1 DIV - 3 FROM tab2 cor0
----
-10
-19
-5

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT cor0.col1 / - 3 FROM tab2 cor0
----
-10
-19
-5

query I rowsort
SELECT DISTINCT - + 81 * + 60 FROM tab0 AS cor0
----
-4860

query I rowsort
SELECT + 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - 8 * cor0.col0 * + 91 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5add087a7d3012916ecd806e91c1a590

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 18 AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT DISTINCT + - col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + - col2 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - - 70 + + col0 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT cor0.col0 * cor0.col0 + - ( col0 ) + + cor0.col2 FROM tab0 AS cor0
----
1191
585
7914

query I rowsort
SELECT ALL - + 90 AS col0 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + col1 + - col1 * - col1 * ( - col1 ) FROM tab0 AS cor0
----
-635970
-753480
-912576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT + col0 DIV col1 + + cor0.col1 * ( col1 ) FROM tab1 AS cor0
----
106
175
676

skipif mysql # not compatible
query I rowsort label-4481
SELECT + col0 / col1 + + cor0.col1 * ( col1 ) FROM tab1 AS cor0
----
106
175
676

query I rowsort
SELECT + col2 * col0 + col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab0 cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col2 - col2 * + col1 col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT + col1 * - col2 - + col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab1 AS cor0
----
99

query I rowsort
SELECT - col2 + cor0.col1 AS col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + + tab0.col1 FROM tab1, tab2, tab2 cor0, tab0
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab0, tab1, tab2 cor0
----
-86

query I rowsort
SELECT + col2 * - col1 - 99 AS col2 FROM tab0 AS cor0
----
-196
-2937
-7561

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT ALL - col1 * + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - col1 * + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + cor0.col2 * + 5 + - col0 * + col2 FROM tab1 cor0
----
-3299
-7120
111

query I rowsort
SELECT ALL + col0 * + cor0.col0 FROM tab0 cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - ( col1 ) + + cor0.col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - ( cor0.col0 ) + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 69a03f002c4988a217a3743145c31549

onlyif mysql # use DIV operator for integer division
query I rowsort label-4497
SELECT ALL + col1 DIV ( 44 + - col2 ) AS col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + col1 / ( 44 + - col2 ) AS col2 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT - + col0 * 46 + - 13 + col2 * + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-14629
-26282
-94107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + col0 * - col0 col2 FROM tab0 AS cor0
----
-1187
-538
-7883

query I rowsort
SELECT DISTINCT + ( col2 ) + cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
3
64
80

query I rowsort
SELECT - 28 + 56 FROM tab1, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + col1 * - 79 FROM tab0
----
-6794
-7189
-7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4505
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT DISTINCT + col2 DIV + 31 + col2 DIV - col1 + col2 FROM tab2
----
26
27
37

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT + col2 / + 31 + col2 / - col1 + col2 FROM tab2
----
26
27
37

query I rowsort
SELECT ALL ( ( + col0 ) ) * ( - col1 ) * - tab1.col2 + - 81 * 73 - col1 FROM tab1
----
-1727
30557
93914

query I rowsort
SELECT ALL tab2.col1 * tab2.col0 - + col1 FROM tab2
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4509
SELECT ALL - CAST( col2 AS SIGNED ) DIV col1 - - 38 FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - CAST ( col2 AS INTEGER ) / col1 - - 38 FROM tab0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * + col0 col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL + 44 + - 39 * - col0 FROM tab1 AS cor0
----
161
2540
3164

onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT DISTINCT + 51 DIV col0 AS col1 FROM tab1 AS cor0
----
0
17

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + 51 / col0 AS col1 FROM tab1 AS cor0
----
0
17

query I rowsort
SELECT + col1 * 95 AS col1 FROM tab0 AS cor0
----
8170
8645
9215

query I rowsort
SELECT DISTINCT - 54 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT ( + col1 ) * col1 + col2 AS col2 FROM tab0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4516
SELECT + CAST( NULL AS SIGNED ) + + col1 / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT + CAST ( NULL AS INTEGER ) + + col1 / col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 + + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab2 cor0
----
-32

query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL - cor1.col1 * - 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c0a5491ba5889db5c6fbe57eb19a7d3

query I rowsort
SELECT DISTINCT + col0 + col2 * - 84 FROM tab1 AS cor0
----
-4533
-4724
-7984

query I rowsort
SELECT - 12 * col2 FROM tab1
----
-1152
-648
-684

query I rowsort
SELECT + cor0.col0 * + col0 AS col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + 59 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL + col1 * + ( - col2 * col0 ) + 48 FROM tab1 AS cor0
----
-36432
-4164
-99792

query I rowsort
SELECT col2 * - col2 + col2 FROM tab2
----
-1406
-650
-702

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7

query I rowsort
SELECT ALL - col1 * + ( col2 ) + + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL col1 * + col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT - cor0.col1 * 18 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT DISTINCT - + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col1 + - 29 * - col0 FROM tab1 cor0
----
113
1866
2333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT DISTINCT + + col1 * ( - 67 ) - - col2 * 58 FROM tab2 AS cor0
----
-2445
-511
1065

query I rowsort
SELECT DISTINCT col0 + 47 AS col0 FROM tab2 AS cor0
----
125
126
54

query I rowsort
SELECT ALL - 42 * + col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT DISTINCT - - 43 FROM tab0 AS cor0
----
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4538
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 74 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 74 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + - col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + - 3 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT - cor0.col0 * - ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col1 + 87 FROM tab1 AS cor0
----
61
74
77

query I rowsort
SELECT - col1 * col2 + + tab1.col1 AS col1 FROM tab1
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4544
SELECT + col0 - CAST( - col2 + col0 AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4544
SELECT + col0 - CAST ( - col2 + col0 AS INTEGER ) FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4545
SELECT + col2 * + tab1.col1 + CAST( + 42 AS SIGNED ) AS col2 FROM tab1
----
1290
1446
612

skipif mysql # not compatible
query I rowsort label-4545
SELECT + col2 * + tab1.col1 + CAST ( + 42 AS INTEGER ) AS col2 FROM tab1
----
1290
1446
612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - - cor0.col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ( 78 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT tab2.col2 * col2 AS col2 FROM tab2
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4550
SELECT DISTINCT CAST( 57 AS SIGNED ) + cor0.col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1591
703
894

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT CAST ( 57 AS INTEGER ) + cor0.col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1591
703
894

query I rowsort
SELECT - - cor0.col2 * - cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * 33 col0 FROM tab2 AS cor0
----
-1023
-1947
-561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * - 27 - - cor0.col1 * + col0 * 65 col0 FROM tab1 AS cor0
----
40655
4125
66655

query I rowsort
SELECT ALL - 66 FROM tab2 cor0
----
-66
-66
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4555
SELECT - col0 DIV col1 AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT - col0 / col1 AS col2 FROM tab1
----
-6
-6
0

query I rowsort
SELECT + col2 * 93 * 75 FROM tab2 AS cor0
----
181350
188325
265050

onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT + + col1 DIV + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4557
SELECT + + col1 / + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 22 * col1 AS col2 FROM tab0
----
1892
2002
2134

query I rowsort
SELECT ( 21 * col2 ) FROM tab0
----
1722
21
693

query I rowsort
SELECT - - 96 + - col1 FROM tab2 AS cor0
----
37
65
79

query I rowsort
SELECT 1 * 31 FROM tab1
----
31
31
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-4562
SELECT - + col2 * col2 DIV 2 AS col0 FROM tab0 AS cor0
----
-3362
-544
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT - + col2 * col2 / 2 AS col0 FROM tab0 AS cor0
----
-3362
-544
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4565
SELECT - - col0 * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT - - col0 * col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + + col1 * 15 col1 FROM tab0 AS cor0
----
1305
1380
1470

query I rowsort
SELECT ALL - 67 AS col1 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + tab0.col0 * - col0 * + col0 AS col0 FROM tab0
----
-13824
-42875
-704969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4571
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + ( - tab2.col1 * + col1 ) AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col2 * col2 + - 20 AS col2 FROM tab1
----
2896
3229
9196

query I rowsort
SELECT DISTINCT - tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - 56 + col2 AS col2 FROM tab0 AS cor0
----
-23
-55
26

query I rowsort
SELECT + tab0.col0 + tab0.col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT 61 + + col2 FROM tab2
----
87
88
99

query I rowsort
SELECT + tab0.col0 * col0 * tab0.col2 + - 98 * col2 FROM tab0
----
1127
15774
641486

query I rowsort
SELECT - col0 * + 12 AS col2 FROM tab0 AS cor0
----
-1068
-288
-420

skipif mysql # not compatible
query I rowsort
SELECT - col1 + + CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col1 + ( - col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT DISTINCT col2 DIV - col0 + - col2 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT col2 / - col0 + - col2 FROM tab2 AS cor0
----
-26
-30
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4583
SELECT + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + col2 + cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT ALL col2 * - 95 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-3102
-7708
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4587
SELECT DISTINCT - cor0.col1 * + CAST( + ( - col1 ) * - col1 AS SIGNED ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
-635970
-753480
-912576

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - cor0.col1 * + CAST ( + ( - col1 ) * - col1 AS INTEGER ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
-635970
-753480
-912576

query I rowsort
SELECT ALL col1 + + 89 AS col1 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT ALL col0 * + 24 AS col0 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT DISTINCT + col2 * + col1 + + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 85 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT - col0 + - 21 FROM tab0 cor0
----
-110
-45
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT - col2 + - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-4594
SELECT - col2 + - col0 / col1 AS col2 FROM tab1 AS cor0
----
-102
-54
-63

query I rowsort
SELECT ALL - ( + 22 ) - + tab2.col2 FROM tab2
----
-48
-49
-60

query I rowsort
SELECT col2 - - 7 FROM tab2
----
33
34
45

query I rowsort
SELECT - - 80 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
-15120
-162240
-240160

query I rowsort
SELECT + - col1 * - 6 AS col0 FROM tab1 cor0
----
156
60
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4599
SELECT - col1 * col1 * cor0.col1 + col2 DIV col1 FROM tab1 AS cor0
----
-17574
-2190
-995

skipif mysql # not compatible
query I rowsort label-4599
SELECT - col1 * col1 * cor0.col1 + col2 / col1 FROM tab1 AS cor0
----
-17574
-2190
-995

query I rowsort
SELECT + - 67 + cor0.col2 + 99 FROM tab0 cor0
----
114
33
65

query I rowsort
SELECT ALL + ( col0 ) * 24 AS col2 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT DISTINCT + 57 + - 41 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
16

query I rowsort
SELECT + 58 * + col0 * + col1 + 39 AS col0 FROM tab2 AS cor0
----
12625
266955
77933

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col1 + + tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - col2 * + col1 - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT + col0 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - col2 * col1 - + cor0.col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT col2 - + col2 * + col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col1 * - col1 + - col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
12769
16291
9436

query I rowsort
SELECT DISTINCT - - col1 + col2 + col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL - - cor0.col0 + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - cor0.col0 * - col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT - cor0.col0 - - col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - cor0.col2 * + tab1.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 00c1773daca8bb01543211c1e358f2df

query I rowsort
SELECT DISTINCT col2 * - col1 + col2 + + cor0.col1 FROM tab1 AS cor0
----
-1139
-1324
-503

query I rowsort
SELECT ALL + col1 * col2 + col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col1 col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4622
SELECT ALL col2 DIV col0 - col1 AS col0 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL col2 / col0 - col1 AS col0 FROM tab0
----
-85
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT ALL - col1 - + col1 DIV - col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - col1 - + col1 / - col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL col2 - - col1 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - cor0.col0 * col1 col2 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4626
SELECT DISTINCT - col2 DIV + col1 + - col1 FROM tab2 AS cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - col2 / + col1 + - col1 FROM tab2 AS cor0
----
-19
-31
-59

query I rowsort
SELECT DISTINCT col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + col1 * + col1 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 * col1 - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL + col1 * col0 * + col2 AS col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT col1 * col2 + col1 * col2 * - col0 FROM tab0 AS cor0
----
-3298
-65274
-656656

query I rowsort
SELECT DISTINCT - 90 * col0 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT DISTINCT col0 + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - - col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + ( col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - + 33 * col0 AS col1 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT DISTINCT - + col1 * col1 - - col1 FROM tab2 cor0
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 4 + col0 col2 FROM tab2 AS cor0
----
11
82
83

query I rowsort
SELECT DISTINCT - 58 + col2 FROM tab2 AS cor0
----
-20
-31
-32

query I rowsort
SELECT DISTINCT 4 FROM tab2 cor0
----
4

query I rowsort
SELECT ALL ( + col0 ) * col0 * col2 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT + col2 - + col2 * cor0.col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT + col0 DIV col2 + + col1 AS col0 FROM tab0 cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4644
SELECT + col0 / col2 + + col1 AS col0 FROM tab0 cor0
----
132
86
92

query I rowsort
SELECT ALL + + col0 * + cor0.col0 * + col2 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
1134
156156
234156

onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT ALL - cor0.col2 * + col0 DIV col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - cor0.col2 * + col0 / col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT DISTINCT col0 + col1 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT col0 + col1 / - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col2 + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT 75 + col0 FROM tab0
----
110
164
99

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL = ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL col2 * col0 * - col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col0 + - tab0.col1 * - col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col2 - col1 * + tab0.col2 AS col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - col1 - col1 * + tab2.col0 FROM tab2
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col0 FROM tab1
----
121
176
57

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab1
----
4096
6400
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) = col2 * + col2
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT col1 - col2 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + col0 * col0 FROM tab1 WHERE NOT ( NULL ) = col1
----

query I rowsort
SELECT DISTINCT tab2.col1 + col0 * col1 AS col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT col1 + - col0 * - 12 FROM tab2 AS cor0
----
115
965
995

query I rowsort
SELECT ALL - col0 + - col2 * + col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab1 WHERE NOT col0 IN ( col2 * - col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 - - col2 * col1 * col0 col1 FROM tab2 WHERE + col0 IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col0 * tab0.col2 + col1
----

query I rowsort
SELECT col1 + tab0.col2 * tab0.col1 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NULL <= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL <= col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT ALL col1 DIV col1 + col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL col1 / col1 + col2 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL col1 + + col0 * tab2.col1 * + col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT tab1.col0 * col0 + col2 FROM tab1
----
4153
63
6496

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - tab2.col2 >= NULL
----

query I rowsort
SELECT col0 + + col1 * col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT cor0.col1 + + col0 * - col0 * + cor0.col2 FROM tab2 AS cor0
----
-1292
-158125
-237141

query I rowsort
SELECT col2 * + col2 + col2 * - col1 + + col1 AS col1 FROM tab1 AS cor0
----
1538
2689
7981

query I rowsort
SELECT col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col0 * 41 + col0 AS col1 FROM tab0
----
1008
1470
3738

query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ( + col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab2 cor2
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96

query I rowsort
SELECT - + col1 + col0 * 17 FROM tab0 AS cor0
----
1422
322
498

query I rowsort
SELECT 14 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL - - 52 AS col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT + cor0.col2 * - ( - ( + cor0.col1 ) ) + - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT col2 + + col1 + - 73 FROM tab2 cor0
----
-15
-18
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT + col1 + + col2 DIV - 15 + + cor0.col1 FROM tab0 AS cor0
----
170
177
194

skipif mysql # not compatible
query I rowsort label-4693
SELECT + col1 + + col2 / - 15 + + cor0.col1 FROM tab0 AS cor0
----
170
177
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT + col1 DIV - col0 + col0 + col1 * - col2 FROM tab2 AS cor0
----
-1456
-567
-834

skipif mysql # not compatible
query I rowsort label-4694
SELECT + col1 / - col0 + col0 + col1 * - col2 FROM tab2 AS cor0
----
-1456
-567
-834

onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT + + col2 DIV col2 + - 32 FROM tab1 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-4695
SELECT + + col2 / col2 + - 32 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + 36 + cor0.col0 + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0ae698dd4bcde8f119c66ec0ecddc3e8

query I rowsort
SELECT - col2 * ( cor0.col2 ) + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT ALL + col2 * - ( col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4700
SELECT + + col2 + + col1 + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT + + col2 + + col1 + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT DISTINCT - CAST( cor0.col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT - CAST ( cor0.col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + tab0.col1 * ( + col2 ) FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * - 84 col0 FROM tab2 AS cor0
----
4620

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 + + col1 AS col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT - - col2 + - col1 + - col1 * col0 FROM tab2 AS cor0
----
-1322
-221
-4635

query I rowsort
SELECT 41 + 24 AS col1 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 + + col2 * col1 col2 FROM tab0 AS cor0
----
108
2849
7473

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT ALL - 62 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-3
-31
-45

query I rowsort
SELECT ALL + 0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col1 + + col0 * col0 * col0 - col0 AS col1 FROM tab0
----
13886
42937
704971

onlyif mysql # use DIV operator for integer division
query I rowsort label-4714
SELECT ALL - col1 * col0 + col1 * col1 DIV col2 + col2 FROM tab1 AS cor0
----
-12
-582
-943

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - col1 * col0 + col1 * col1 / col2 + col2 FROM tab1 AS cor0
----
-12
-582
-943

query I rowsort
SELECT ALL - 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT + 45 AS col2 FROM tab0
----
45
45
45

query I rowsort
SELECT DISTINCT + 27 + col0 * + col0 FROM tab1
----
36
4123
6427

onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT DISTINCT col2 + - 99 + col1 DIV col1 FROM tab0
----
-16
-65
-97

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT col2 + - 99 + col1 / col1 FROM tab0
----
-16
-65
-97

query I rowsort
SELECT + col0 * + col1 * - tab0.col0 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT col0 + 13 - - col0 AS col1 FROM tab1
----
141
173
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT + 92 * + 76 + + col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
6989
6992
6992

skipif mysql # not compatible
query I rowsort label-4721
SELECT + 92 * + 76 + + col2 / - col0 AS col0 FROM tab2 AS cor0
----
6989
6992
6992

query I rowsort
SELECT ALL 53 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + ( cor0.col2 ) * - col0 + - col0 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT tab2.col0 * col2 * tab2.col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT col2 - 82 AS col1 FROM tab0
----
-49
-81
0

query I rowsort
SELECT DISTINCT col2 + ( col0 ) * - col1 AS col0 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4727
SELECT + CAST( NULL AS SIGNED ) + - ( col0 * col0 ) + + col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4727
SELECT + CAST ( NULL AS INTEGER ) + - ( col0 * col0 ) + + col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col0 * ( - col2 + col1 ) FROM tab1 AS cor0
----
-171456
-4536
-637440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT - - cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT - - cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + - 44 FROM tab1 cor0
----
-108
-124
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT - col2 DIV col2 - col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-4731
SELECT - col2 / col2 - col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT + col1 * col2 + 43 FROM tab0 AS cor0
----
140
2881
7505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + 83 col1 FROM tab0
----
169
174
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4734
SELECT ALL - col1 + + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - col1 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - + cor0.col0 * 48 AS col1 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT DISTINCT + col2 * ( + 59 ) AS col0 FROM tab0 AS cor0
----
1947
4838
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT DISTINCT + col0 DIV 90 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT + col0 / 90 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col2 + + 3 AS col0 FROM tab1 AS cor0
----
-51
-54
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 - - col1 col1 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * + col1 + 91 col0 FROM tab1
----
1729
721
910

query I rowsort
SELECT ALL + + col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab2
----
-2

query I rowsort
SELECT cor0.col1 - - 88 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c89d8709de7f584411d1060fe6fe13ce

query I rowsort
SELECT - 65 + - col2 AS col0 FROM tab1
----
-119
-122
-161

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4745
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab0, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 6 + 44 AS col2 FROM tab2, tab0 AS cor0
----
50

query I rowsort
SELECT ALL + col2 + + 72 FROM tab2 AS cor0
----
110
98
99

query I rowsort
SELECT DISTINCT + col2 * + 97 + col0 AS col2 FROM tab0 AS cor0
----
132
3225
8043

query I rowsort
SELECT ALL + col0 * - ( cor0.col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4750
SELECT - col0 DIV + 17 FROM tab1 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT - col0 / + 17 FROM tab1 AS cor0
----
-3
-4
0

query I rowsort
SELECT ALL - col1 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + cor0.col0 * ( 4 ) AS col2 FROM tab1 AS cor0
----
12
256
320

query I rowsort
SELECT DISTINCT col0 * - col2 + + col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
-3008
-6640
-84

query I rowsort
SELECT ALL + col2 * + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * - 57 AS col2 FROM tab2 AS cor0
----
-1767
-3363
-969

onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT ALL - - col0 DIV - 46 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - - col0 / - 46 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - - col2 * + cor0.col0 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - 2 * 51 * + col2 FROM tab2
----
-2652
-2754
-3876

onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT ALL + 91 DIV col2 + + col1 FROM tab0
----
188
88
92

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + 91 / col2 + + col1 FROM tab0
----
188
88
92

query I rowsort
SELECT DISTINCT + cor0.col2 * 24 FROM tab0 AS cor0
----
1968
24
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4761
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) * + 81 AS col2 FROM tab2 AS cor0
----
567
6318
6399

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) * + 81 AS col2 FROM tab2 AS cor0
----
567
6318
6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-4762
SELECT - cor0.col1 DIV col2 - - cor0.col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4762
SELECT - cor0.col1 / col2 - - cor0.col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + cor0.col2 - - 11 AS col1 FROM tab0 AS cor0
----
12
44
93

query I rowsort
SELECT ALL + col2 * col2 * + cor0.col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT + - 80 * - col0 + - cor0.col0 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT ( + col2 ) + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT ALL - col1 * - 82 - col2 * col0 DIV col1 FROM tab2 AS cor0
----
1218
2536
4804

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL - col1 * - 82 - col2 * col0 / col1 FROM tab2 AS cor0
----
1218
2536
4804

query I rowsort
SELECT DISTINCT + cor0.col2 * + 66 AS col1 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT ALL cor0.col2 + col1 * cor0.col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - col1 + - col2 - + col2 AS col2 FROM tab0 AS cor0
----
-152
-255
-99

query I rowsort
SELECT + 36 + 39 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT ALL - cor0.col1 * col0 - ( col1 ) FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT - - col0 + col0 * 12 AS col0 FROM tab0 AS cor0
----
1157
312
455

query I rowsort
SELECT DISTINCT col2 * col2 + col1 * ( col0 ) + + col1 * + col1 FROM tab2 AS cor0
----
1907
3076
8759

query I rowsort
SELECT - col0 * + col0 + 44 * + col1 FROM tab0 cor0
----
-3917
3043
3208

query I rowsort
SELECT DISTINCT + col2 * col1 + + ( cor0.col0 ) FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL cor0.col0 * + col1 - + ( - ( col2 ) ) FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col0 * col1 * - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-106080
-1488
-358897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4780
SELECT + ( cor0.col0 ) + + CAST( + 55 AS SIGNED ) FROM tab0 AS cor0
----
144
79
90

skipif mysql # not compatible
query I rowsort label-4780
SELECT + ( cor0.col0 ) + + CAST ( + 55 AS INTEGER ) FROM tab0 AS cor0
----
144
79
90

query I rowsort
SELECT ALL - cor0.col1 + - col2 AS col0 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - ( + col1 ) * - 69 FROM tab0 AS cor0
----
5934
6279
6693

query I rowsort
SELECT - col0 + - col0 + col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 + - ( - col2 ) col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT DISTINCT col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + cor0.col2 ) col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * + 15 col2 FROM tab0 AS cor0
----
-1319
-50
-519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * col2 col1 FROM tab2 AS cor0
----
-1292
-884
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT col1 * col1 + - 74 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
289
3481
951

skipif mysql # not compatible
query I rowsort label-4790
SELECT col1 * col1 + - 74 / cor0.col0 AS col0 FROM tab2 AS cor0
----
289
3481
951

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + 33 col2 FROM tab1 AS cor0
----
133
202
709

query I rowsort
SELECT - + cor0.col1 * - col1 * col2 + - col0 * + col1 FROM tab1 AS cor0
----
15184
36426
5060

query I rowsort
SELECT - + col2 * ( - 39 ) FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT ( col1 ) + 34 AS col0 FROM tab2
----
51
65
93

query I rowsort
SELECT - ( col2 + 91 ) AS col0 FROM tab2
----
-117
-118
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 75 ) + cor0.col0 col1 FROM tab1 AS cor0
----
-11
-72
5

query I rowsort
SELECT + col1 * + col0 - + col0 AS col2 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT + - col2 + 48 FROM tab1 AS cor0
----
-48
-6
-9

query I rowsort
SELECT ALL + + 42 + + 32 * - col0 AS col1 FROM tab1 AS cor0
----
-2006
-2518
-54

query I rowsort
SELECT - 63 * 15 FROM tab2 AS cor0
----
-945
-945
-945

query I rowsort
SELECT DISTINCT + - ( 88 ) AS col0 FROM tab1 AS cor0
----
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4802
SELECT DISTINCT col2 * tab0.col0 DIV ( - col1 ) FROM tab0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT col2 * tab0.col0 / ( - col1 ) FROM tab0
----
-80
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + tab0.col2 col0 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT DISTINCT col2 + col0 + - col1 DIV ( 31 ) AS col2 FROM tab0
----
169
33
55

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT col2 + col0 + - col1 / ( 31 ) AS col2 FROM tab0
----
169
33
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT - CAST( + col1 AS SIGNED ) * + tab2.col2 AS col1 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-4805
SELECT - CAST ( + col1 AS INTEGER ) * + tab2.col2 AS col1 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + tab0.col2 + - tab0.col0 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT - col2 DIV - 5 FROM tab1
----
10
11
19

skipif mysql # not compatible
query I rowsort label-4809
SELECT - col2 / - 5 FROM tab1
----
10
11
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4810
SELECT - col0 * col0 * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT - col0 * col0 * col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT 8 FROM tab2, tab1 AS cor0
----
8

query I rowsort
SELECT - col0 * col1 + - col2 + col1 * - col0 FROM tab2 AS cor0
----
-2724
-461
-9230

query I rowsort
SELECT - ( 2 ) * col2 AS col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT - - col2 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to e3dd03163bf3bbebd049e3a988dfe640

query I rowsort
SELECT ALL ( col0 ) + col0 * + col2 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT col2 * col1 - col2 AS col0 FROM tab1
----
1152
1350
513

query I rowsort
SELECT DISTINCT - - col1 + - 72 FROM tab0 AS cor0
----
14
19
25

query I rowsort
SELECT col0 * col0 + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + 19 + - 60 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - + col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 16 * + tab1.col2 AS col2 FROM tab1
----
1536
864
912

query I rowsort
SELECT DISTINCT 0 * tab1.col1 FROM tab1
----
0

query I rowsort
SELECT cor0.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + - col0 * + 29 FROM tab2 AS cor0
----
-203
-2262
-2291

query I rowsort
SELECT + + col1 * - 70 AS col1 FROM tab0 AS cor0
----
-6020
-6370
-6790

query I rowsort
SELECT col2 * + 11 - col0 AS col0 FROM tab1 AS cor0
----
563
591
976

skipif mysql # not compatible
query I rowsort
SELECT - - col0 * CAST ( 73 AS REAL ) + col2 * + col1 * col1 FROM tab0 AS cor0
----
11964
245820
685539

query I rowsort
SELECT - cor0.col0 + 20 * 35 AS col0 FROM tab1 AS cor0
----
620
636
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4832
SELECT col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 11 AS col1 FROM tab0 cor0
----
102
108
97

query I rowsort
SELECT DISTINCT - 91 + + col0 FROM tab0
----
-2
-56
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4835
SELECT + ( + tab0.col2 ) * tab0.col0 DIV 44 FROM tab0
----
0
165
18

skipif mysql # not compatible
query I rowsort label-4835
SELECT + ( + tab0.col2 ) * tab0.col0 / 44 FROM tab0
----
0
165
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4836
SELECT DISTINCT + col0 DIV col0 + col2 * 61 AS col1 FROM tab1
----
3295
3478
5857

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT + col0 / col0 + col2 * 61 AS col1 FROM tab1
----
3295
3478
5857

onlyif mysql # use DIV operator for integer division
query I rowsort label-4837
SELECT - col0 * ( col2 ) DIV + col2 col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4837
SELECT - col0 * ( col2 ) / + col2 col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4838
SELECT ALL - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 FROM tab2, tab0 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT + + col2 * + col0 + 20 AS col0 FROM tab2 AS cor0
----
2048
209
3022

query I rowsort
SELECT 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT DISTINCT - col1 * CAST( col0 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - col1 * CAST ( col0 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT DISTINCT - + 69 + + 64 DIV col2 col0 FROM tab0 AS cor0
----
-5
-68
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - + 69 + + 64 / col2 col0 FROM tab0 AS cor0
----
-5
-68
-69

query I rowsort
SELECT ( - col1 ) * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * + col1 - - col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT 44 * col0 - - col2 AS col2 FROM tab0 cor0
----
1089
1541
3998

query I rowsort
SELECT ALL + 64 FROM tab2 cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS INTEGER ) + - col0 * CAST ( + col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 col2 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT col0 + 20 * col2 + - col2 DIV col0 FROM tab2
----
544
598
839

skipif mysql # not compatible
query I rowsort label-4852
SELECT col0 + 20 * col2 + - col2 / col0 FROM tab2
----
544
598
839

query I rowsort
SELECT ALL - col1 - + col1 AS col2 FROM tab0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col2 col0 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT ALL - col1 + + col2 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - col1 + + col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT - 73 * - col1 AS col2 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT ALL - 51 + + col1 * + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
119757
32439
75765

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT + ( col2 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4858
SELECT + ( col2 ) / - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL + 53 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1497
729
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col0 FROM tab2
----
-92

query I rowsort
SELECT col1 * - 93 FROM tab0
----
-7998
-8463
-9021

query I rowsort
SELECT ( - tab0.col1 ) AS col0 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT - col2 DIV - tab2.col1 - + ( tab2.col1 + - col0 ) AS col2 FROM tab2
----
-24
19
64

skipif mysql # not compatible
query I rowsort label-4864
SELECT - col2 / - tab2.col1 - + ( tab2.col1 + - col0 ) AS col2 FROM tab2
----
-24
19
64

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
4

query I rowsort
SELECT col0 * col2 * 29 AS col0 FROM tab1 AS cor0
----
105792
222720
4698

query I rowsort
SELECT DISTINCT col2 * - 81 FROM tab0 AS cor0
----
-2673
-6642
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4868
SELECT ( 46 ) DIV + cor0.col1 + cor0.col0 * col2 * col0 FROM tab2 AS cor0
----
1324
158184
237160

skipif mysql # not compatible
query I rowsort label-4868
SELECT ( 46 ) / + cor0.col1 + cor0.col0 * col2 * col0 FROM tab2 AS cor0
----
1324
158184
237160

query I rowsort
SELECT DISTINCT + ( 9 ) * col1 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT DISTINCT 46 FROM tab0, tab2 AS cor0
----
46

query I rowsort
SELECT ALL - col2 * - 37 FROM tab0 cor0
----
1221
3034
37

query I rowsort
SELECT ALL - 13 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
156
663
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4873
SELECT DISTINCT - - col2 DIV + 98 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - - col2 / + 98 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 + col1 + - col0 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT ALL - 36 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4877
SELECT ALL + 67 DIV col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + 67 / col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT 54 * - 45 + + col0 AS col0 FROM tab1
----
-2350
-2366
-2427

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4880
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT - 80 * ( col2 ) * + 69 + + col1 DIV col0 AS col1 FROM tab0
----
-182157
-452639
-5518

skipif mysql # not compatible
query I rowsort label-4881
SELECT - 80 * ( col2 ) * + 69 + + col1 / col0 AS col1 FROM tab0
----
-182157
-452639
-5518

query I rowsort
SELECT + col1 * + cor0.col1 * + 23 AS col1 FROM tab0 AS cor0
----
170108
190463
216407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL 63 AS col2 FROM tab0
----
63
63
63

query I rowsort
SELECT - cor0.col1 - + col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL col2 * col1 * - tab0.col1 - - col2 * col2 FROM tab0
----
-242979
-672318
-9408

query I rowsort
SELECT + cor0.col1 * tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to ad4b5bcd52685802d192f96b3c1871da

query I rowsort
SELECT ALL + col2 * 48 FROM tab0 cor0
----
1584
3936
48

query I rowsort
SELECT cor0.col0 * col2 AS col1 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col1 col0 FROM tab1 cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - - col1 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + + col1 + 82 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT ALL - tab0.col1 - - col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT col0 + 94 * col0 FROM tab0 AS cor0
----
2280
3325
8455

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col0 + - CAST ( - col0 AS REAL ) * col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - - cor0.col2 + 56 * col2 * col0 AS col0 FROM tab2 AS cor0
----
10611
113594
168150

query I rowsort
SELECT ALL - col0 * ( 69 ) FROM tab0 AS cor0
----
-1656
-2415
-6141

query I rowsort
SELECT + col1 * col1 + + col0 * col1 + ( 78 ) * col0 * + ( - col2 ) FROM tab2 AS cor0
----
-13564
-150101
-232524

query I rowsort
SELECT + - col2 * 85 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT ALL + cor0.col0 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - + col1 * col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4904
SELECT ALL - + col2 / + CAST( NULL AS SIGNED ) + 32 * - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL - + col2 / + CAST ( NULL AS INTEGER ) + 32 * - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col0 + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT - cor0.col2 DIV col0 + col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-4906
SELECT - cor0.col2 / col0 + col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT col1 + + col0 + tab0.col2 AS col2 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT ALL col1 * + col1 + col1 * - col2 FROM tab0
----
4558
819
9312

query I rowsort
SELECT DISTINCT - col1 + ( col1 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT tab0.col1 * 12 FROM tab0, tab2 AS cor0
----
9 values hashing to aa9ffb7412d8c82fc327f13292dd4391

query I rowsort
SELECT ALL + col2 + + 47 AS col0 FROM tab1 AS cor0
----
101
104
143

query I rowsort
SELECT DISTINCT + + col0 + col2 * + 34 FROM tab2 AS cor0
----
1371
925
962

query I rowsort
SELECT - - cor0.col1 * col1 + - col0 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT + + CAST( + ( col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4915
SELECT + + CAST ( + ( col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - 85 + + ( col0 ) FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
45

query I rowsort
SELECT + 98 + col1 - col2 FROM tab2 cor0
----
102
131
77

query I rowsort
SELECT - col1 * - col0 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT col1 * ( col1 * 48 ) + col2 * col2 + col2 DIV 51 FROM tab0 AS cor0
----
356097
404213
451633

skipif mysql # not compatible
query I rowsort label-4920
SELECT col1 * ( col1 * 48 ) + col2 * col2 + col2 / 51 FROM tab0 AS cor0
----
356097
404213
451633

query I rowsort
SELECT - + 55 * col0 AS col2 FROM tab1 AS cor0
----
-165
-3520
-4400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4922
SELECT + 54 + col2 DIV col0 FROM tab1 AS cor0
----
54
55
72

skipif mysql # not compatible
query I rowsort label-4922
SELECT + 54 + col2 / col0 FROM tab1 AS cor0
----
54
55
72

query I rowsort
SELECT + cor0.col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - ( 12 ) * col0 + 59 * col2 AS col2 FROM tab0 AS cor0
----
-361
1659
3770

query I rowsort
SELECT DISTINCT cor0.col0 * col1 - cor0.col1 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT ALL ( col1 ) * - 39 AS col2 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT ( - col2 ) * - 99 FROM tab0 cor0
----
3267
8118
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT ALL col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL col1 / + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + + 26 FROM tab2 AS cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 20 + col1 col2 FROM tab1 cor0
----
-10
-7
6

query I rowsort
SELECT col1 + + ( - col2 ) FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4933
SELECT + col2 * CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT + col2 * CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 37 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT col2 * col0 + - ( + col0 ) * cor0.col0 * + ( ( + col1 ) ) FROM tab2 AS cor0
----
-103095
-1330
-356928

query I rowsort
SELECT + col0 - col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4937
SELECT + 26 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT + 26 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT + col0 * col1 DIV col0 + col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4938
SELECT + col0 * col1 / col0 + col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT ALL + + col2 DIV - col0 + + 99 * - col1 AS col0 FROM tab0 AS cor0
----
-8515
-9009
-9603

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + + col2 / - col0 + + 99 * - col1 AS col0 FROM tab0 AS cor0
----
-8515
-9009
-9603

query I rowsort
SELECT DISTINCT 11 * - col1 FROM tab0 AS cor0
----
-1001
-1067
-946

onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT - 7 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT - 7 / col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 90 + col0 FROM tab2 AS cor0
----
-11
-12
-83

query I rowsort
SELECT DISTINCT - 54 * col1 FROM tab1 AS cor0
----
-1404
-540
-702

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4945
SELECT 20 DIV - col0 FROM tab1
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT 20 / - col0 FROM tab1
----
-6
0
0

query I rowsort
SELECT DISTINCT + 31 FROM tab2
----
31

query I rowsort
SELECT cor0.col0 + col2 * - 28 FROM tab0 AS cor0
----
-2207
-900
7

query I rowsort
SELECT + col0 + + tab1.col1 * - 10 FROM tab1
----
-257
-36
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 * - cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1cd935e612b4c432effb9b66fa7bca63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4950
SELECT DISTINCT + cor0.col1 + + 11 DIV 74 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + cor0.col1 + + 11 / 74 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT ALL + 12 * ( col1 ) FROM tab2 AS cor0
----
204
372
708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * + cor0.col0 * col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) * col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL - 40 * col2 AS col1 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT - ( + col1 ) - + tab0.col2 AS col1 FROM tab0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4957
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT DISTINCT + - CAST( - ( + col1 ) AS SIGNED ) + - 60 FROM tab2 AS cor0
----
-1
-29
-43

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT + - CAST ( - ( + col1 ) AS INTEGER ) + - 60 FROM tab2 AS cor0
----
-1
-29
-43

query I rowsort
SELECT ALL + 26 + col0 * + col0 + + col2 AS col1 FROM tab1 cor0
----
4179
6522
89

query I rowsort
SELECT DISTINCT - + 44 AS col0 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT ALL cor0.col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT col2 + - col0 DIV col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4962
SELECT col2 + - col0 / col1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - 90 * + 55 FROM tab0
----
-4950

query I rowsort
SELECT ALL col2 + col1 * col1 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT col2 * - col1 * - 59 FROM tab2 AS cor0
----
38114
49383
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + col2 * col0 col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT 60 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT DISTINCT - - col1 + + col1 * 50 * col0 FROM tab0 cor0
----
103286
169847
405041

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
97

query I rowsort
SELECT DISTINCT - 82 FROM tab1 cor0
----
-82

query I rowsort
SELECT + 74 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT DISTINCT - 28 * - col1 * col1 + - col2 FROM tab2 AS cor0
----
26881
8054
97442

query I rowsort
SELECT + - 79 * col0 AS col1 FROM tab0 AS cor0
----
-1896
-2765
-7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-4974
SELECT col1 DIV ( col0 * - col1 ) - - 23 * col2 * + col0 col2 FROM tab0
----
167854
18216
805

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4974
SELECT col1 / ( col0 * - col1 ) - - 23 * col2 * + col0 col2 FROM tab0
----
167854
18216
805

query I rowsort
SELECT col0 - 68 FROM tab0
----
-33
-44
21

query I rowsort
SELECT ALL col2 * 83 + - ( - cor0.col0 ) FROM tab0 AS cor0
----
118
2763
6895

query I rowsort
SELECT ALL col2 * - col1 - + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - col2 * - ( + 87 ) * col1 - col1 * - 71 FROM tab0 AS cor0
----
15326
253012
655655

query I rowsort
SELECT + + col1 + col1 * 36 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT ALL - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT ( - col1 ) - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - + 54 * - col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT ALL - + cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + 80 + col0 FROM tab0 AS cor0
----
104
115
169

query I rowsort
SELECT ALL + 43 * col1 + - cor0.col0 AS col2 FROM tab1 cor0
----
1115
366
479

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 2 * col0 - - col0 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 2 * col0 - - col0 * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * - 55 * 38 AS col1 FROM tab1
----
-112860
-119130
-200640

query I rowsort
SELECT ALL tab2.col2 * col2 * col0 + - col2 * col0 * col0 AS col0 FROM tab2
----
-105456
-123082
3780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 72 FROM tab1 cor0
----
72
72
72

query I rowsort
SELECT ( col1 ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col2 * + tab1.col2 + ( col0 * col0 ) AS col0 FROM tab1
----
15616
2925
7345

query I rowsort
SELECT DISTINCT 78 + - col0 * col2 * - col0 AS col1 FROM tab1
----
233550
564
614478

query I rowsort
SELECT + 75 * col1 FROM tab1
----
1950
750
975

query I rowsort
SELECT ALL + + cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( + col2 ) + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT ALL - - ( - col0 ) * + ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + col0 * 62 AS col1 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT + col0 * 33 + 88 FROM tab0 cor0
----
1243
3025
880

onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT - + col1 + + col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5002
SELECT - + col1 + + col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col2 * - col2 col1 FROM tab2 AS cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 - - col0 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + col2 + col1 * 94 FROM tab1 cor0
----
1126
2390
883

query I rowsort
SELECT ALL - - cor0.col0 * ( col1 + + col1 * 18 ) AS col2 FROM tab2 AS cor0
----
25517
4123
87438

query I rowsort
SELECT 98 + col1 FROM tab0
----
184
189
195

query I rowsort
SELECT col2 + col0 * - col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + tab2.col1 + - col1 AS col2 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT - col1 DIV - col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5010
SELECT - col1 / - col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT col2 * + col0 - - col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - col2 + - tab0.col2 * ( + col2 ) AS col0 FROM tab0
----
-1122
-2
-6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT DISTINCT 36 DIV - tab1.col0 + col1 * col2 col1 FROM tab1
----
1248
1392
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT 36 / - tab1.col0 + col1 * col2 col1 FROM tab1
----
1248
1392
570

query I rowsort
SELECT col0 + col0 + col1 * col1 FROM tab2
----
3637
447
975

query I rowsort
SELECT DISTINCT - cor0.col2 + 75 * - col1 FROM tab2 AS cor0
----
-1313
-2352
-4451

query I rowsort
SELECT DISTINCT - + 81 AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - col0 * 40 + + col0 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT ALL 1 + 34 AS col1 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5020
SELECT + CAST( + 92 AS SIGNED ) + col1 * ( + col2 ) * + col2 FROM tab0 AS cor0
----
189
611976
93746

skipif mysql # not compatible
query I rowsort label-5020
SELECT + CAST ( + 92 AS INTEGER ) + col1 * ( + col2 ) * + col2 FROM tab0 AS cor0
----
189
611976
93746

query I rowsort
SELECT ALL + - col2 + ( + col1 ) AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - + cor0.col0 * col2 * cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - ( - col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - 66 * + col2 AS col1 FROM tab1 cor0
----
-3564
-3762
-6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT ALL - col1 * col2 DIV - col0 AS col1 FROM tab0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - col1 * col2 / - col0 AS col1 FROM tab0
----
118
2
83

query I rowsort
SELECT + + 13 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
39
40
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 17 - + col0 col1 FROM tab1
----
-37
-50
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 * - tab2.col2 col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT ( col1 ) + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * + col2 * col1 col0 FROM tab0 AS cor0
----
266772
701428
9118

query I rowsort
SELECT DISTINCT 59 + + 87 * col1 FROM tab0 AS cor0
----
7541
7976
8498

query I rowsort
SELECT - - ( col1 ) + - col2 * col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT ALL tab0.col1 DIV 40 AS col0 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL tab0.col1 / 40 AS col0 FROM tab0
----
2
2
2

query I rowsort
SELECT - 42 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT col0 * 70 + - col2 * - col1 FROM tab1
----
1614
5050
6848

query I rowsort
SELECT 37 + col2 AS col2 FROM tab2 AS cor0
----
63
64
75

query I rowsort
SELECT - ( col0 ) * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 81 * col0 col0 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT ALL col1 * - 15 + - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1235
-468
-790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5040
SELECT ALL cor0.col2 + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL cor0.col2 + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 + - 82 AS col1 FROM tab2 AS cor0
----
-44
-55
-56

query I rowsort
SELECT ALL - col1 * - col2 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 31 + col1 + + col0 FROM tab1 cor0
----
105
124
60

query I rowsort
SELECT ALL + + cor0.col2 + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL 88 AS col1 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col2 AS REAL ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 65 * - 49 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-3202
-3216
-3244

query I rowsort
SELECT ALL ( 77 ) FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + ( col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT col0 + - 92 AS col2 FROM tab1 cor0
----
-12
-28
-89

query I rowsort
SELECT + col1 * - ( cor0.col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5053
SELECT - col2 + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-5053
SELECT - col2 + col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT col0 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col1 * - 22 AS col2 FROM tab0 AS cor0
----
-1892
-2002
-2134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 + col0 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 - - 11 * + col0 FROM tab1 AS cor0
----
-21
647
784

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT ALL + tab2.col2 DIV ( - 80 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + tab2.col2 / ( - 80 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + 27 * col2 AS col2 FROM tab2
----
1026
702
729

query I rowsort
SELECT ALL - ( col2 ) * col0 + + 29 AS col1 FROM tab1 AS cor0
----
-133
-3619
-7651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 col2 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 * col1 col0 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT col0 * 94 - col1 FROM tab2 AS cor0
----
627
7273
7409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5064
SELECT - col0 DIV 5 + col0 AS col1 FROM tab0 AS cor0
----
20
28
72

skipif mysql # not compatible
query I rowsort label-5064
SELECT - col0 / 5 + col0 AS col1 FROM tab0 AS cor0
----
20
28
72

query I rowsort
SELECT DISTINCT ( + ( col0 ) ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT + cor0.col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT + cor0.col2 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - 24 * - col1 * - col2 + - col2 * + col0 + 69 * col1 FROM tab1 AS cor0
----
10722
23169
35328

onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT DISTINCT + 20 DIV tab1.col0 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + 20 / tab1.col0 FROM tab1
----
0
6

query I rowsort
SELECT col1 * col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - + col0 * - col2 * - 82 + - col0 FROM tab0 AS cor0
----
-2905
-598525
-64968

query I rowsort
SELECT - 73 + + col0 FROM tab0 AS cor0
----
-38
-49
16

query I rowsort
SELECT + 2 AS col2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + 6 AS col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT 88 * tab0.col2 - ( 47 ) DIV - col2 FROM tab0
----
135
2905
7216

skipif mysql # not compatible
query I rowsort label-5076
SELECT 88 * tab0.col2 - ( 47 ) / - col2 FROM tab0
----
135
2905
7216

query I rowsort
SELECT DISTINCT + col2 * - col0 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5079
SELECT ALL + col0 * CAST( NULL AS SIGNED ) * - col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + ( + cor0.col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col0 + col1 - - col0 FROM tab1
----
138
173
32

query I rowsort
SELECT + col2 + - tab0.col0 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL ( + 53 * - col1 ) FROM tab1
----
-1378
-530
-689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + 22 + + cor0.col1 FROM tab0 AS cor0
----
108
113
119

query I rowsort
SELECT DISTINCT + - cor0.col0 - + cor0.col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT - 51 + col2 FROM tab2 cor0
----
-13
-24
-25

query I rowsort
SELECT - 85 * - col0 + col1 FROM tab2 AS cor0
----
626
6689
6732

query I rowsort
SELECT + col2 * ( + col1 ) AS col0 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 - col1 * - col2 * - cor0.col2 col1 FROM tab1 AS cor0
----
-118560
-31920
-74412

query I rowsort
SELECT + cor0.col1 + - cor0.col0 * - ( - col1 * col2 ) FROM tab2 cor0
----
-119593
-51017
-5828

query I rowsort
SELECT - col1 - col2 * cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-194
-611975
-93740

query I rowsort
SELECT DISTINCT col1 * col2 * col1 - col2 FROM tab0 cor0
----
244035
678960
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5094
SELECT ALL + - col1 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + - col1 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + col1 + col1 * col2 AS col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT ALL - + col2 + + col2 * col1 * + col2 FROM tab2 AS cor0
----
22572
24510
39858

query I rowsort
SELECT ALL - + ( - col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT col0 DIV + cor0.col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5098
SELECT col0 / + cor0.col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col1 + 20 * - col1 FROM tab0
----
-1634
-1729
-1843

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - + 71 * - col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab0 cor0
----
-63

query I rowsort
SELECT ALL + ( 70 ) FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT ALL - 14 AS col1 FROM tab0 cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5106
SELECT + col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col1 col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 64 * - tab2.col0 * ( col1 ) AS col1 FROM tab2
----
-13888
-294528
-85952

query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + 57 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5111
SELECT - - col2 + col1 * - 95 + - 86 DIV - col0 FROM tab2 AS cor0
----
-1576
-2906
-5578

skipif mysql # not compatible
query I rowsort label-5111
SELECT - - col2 + col1 * - 95 + - 86 / - col0 FROM tab2 AS cor0
----
-1576
-2906
-5578

query I rowsort
SELECT - col2 * col0 + col1 * col0 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT 65 * + col0 AS col1 FROM tab1 AS cor0
----
195
4160
5200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 12 + - 0 col0 FROM tab2 AS cor0
----
-14
-15
-26

query I rowsort
SELECT ALL + col1 * 81 + ( - cor0.col2 ) AS col1 FROM tab1 cor0
----
2052
753
957

query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 + - col1 + + col0 FROM tab2 AS cor0
----
-2009
-213
-2940

query I rowsort
SELECT ALL col0 * - col2 * - col2 + col1 - 5 FROM tab0 AS cor0
----
127
26217
598522

query I rowsort
SELECT DISTINCT col2 * col0 + - col0 AS col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT ALL + + col1 * 74 + col0 * + col0 + 23 * + ( + col2 * col2 + col2 ) AS col2 FROM tab1 AS cor0
----
221538
70243
80874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 - 19 * + col0 col2 FROM tab0 AS cor0
----
-1600
-370
-568

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5121
SELECT ALL + CAST( NULL AS SIGNED ) + - cor0.col2 * col1 + ( col0 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + CAST ( NULL AS INTEGER ) + - cor0.col2 * col1 + ( col0 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-5123
SELECT - col0 DIV - 34 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5123
SELECT - col0 / - 34 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL col0 + - cor0.col2 AS col0 FROM tab0 cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 27 * col1 + col0 * + col2 FROM tab2 AS cor0
----
-648
2543
435

onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT col1 DIV 59 + - 4 AS col1 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5127
SELECT col1 / 59 + - 4 AS col1 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT 30 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - - ( + ( + col1 ) ) + ( - col2 ) AS col0 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5130
SELECT CAST( - col1 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-5130
SELECT CAST ( - col1 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ( 78 ) AS col1 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT + + col2 + col2 * + col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT 64 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - 40 * col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT DISTINCT + 69 * + cor0.col1 - - 81 DIV 95 FROM tab2 AS cor0
----
1173
2139
4071

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT + 69 * + cor0.col1 - - 81 / 95 FROM tab2 AS cor0
----
1173
2139
4071

query I rowsort
SELECT DISTINCT - 80 + cor0.col2 * tab2.col2 AS col2 FROM tab2, tab0, tab1 AS cor0
----
9 values hashing to 85b9496c78775c27100183ce0e7209bf

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
10
13
26

query I rowsort
SELECT + 21 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL - 4 * + 50 FROM tab1
----
-200
-200
-200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT col1 DIV + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-5141
SELECT col1 / + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT - col1 * - ( 56 ) FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT + cor0.col0 + 63 FROM tab2 AS cor0
----
141
142
70

query I rowsort
SELECT - col2 + + ( - cor0.col0 + col0 ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT 54 * + col2 AS col1 FROM tab0
----
1782
4428
54

query I rowsort
SELECT - 35 + + col1 * col0 AS col2 FROM tab1
----
1005
43
605

query I rowsort
SELECT - col1 + + col1 + tab0.col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 76 + col0 * tab2.col2 AS col2 FROM tab2
----
2104
265
3078

query I rowsort
SELECT col2 * + col2 * + tab2.col2 + + col2 * + col2 + 83 FROM tab2
----
18335
20495
56399

query I rowsort
SELECT col0 * col2 * 62 AS col0 FROM tab0
----
2170
452476
49104

onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT - col1 * tab0.col1 + col1 + tab0.col2 * col0 DIV + 66 AS col0 FROM tab0
----
-7298
-8080
-9312

skipif mysql # not compatible
query I rowsort label-5151
SELECT - col1 * tab0.col1 + col1 + tab0.col2 * col0 / + 66 AS col0 FROM tab0
----
-7298
-8080
-9312

query I rowsort
SELECT col0 + 82 FROM tab1 AS cor0
----
146
162
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * ( col2 ) col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col2 * + ( - col0 ) - col1 * - col0 FROM tab2 AS cor0
----
406
4345
6630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col2 + 8 * + col2 col0 FROM tab1 AS cor0
----
-3192
-6912
270

query I rowsort
SELECT DISTINCT - col2 + + ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col0 * 20 AS col0 FROM tab1
----
1280
1600
60

query I rowsort
SELECT - 57 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT + 3 - tab0.col1 FROM tab0
----
-83
-88
-94

query I rowsort
SELECT + tab0.col1 - - col2 * + 80 * col2 AS col2 FROM tab0
----
177
538011
87206

query I rowsort
SELECT + 55 + col2 FROM tab2 AS cor0
----
81
82
93

query I rowsort
SELECT + 40 + + cor0.col0 FROM tab2 AS cor0
----
118
119
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + - ( + cor0.col0 ) col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT + 54 * cor0.col1 AS col2 FROM tab2, tab0, tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT - col0 * 84 * col0 FROM tab0 AS cor0
----
-102900
-48384
-665364

query I rowsort
SELECT ALL - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT DISTINCT col0 DIV cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT col0 / cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT DISTINCT + col0 DIV col1 + - col2 * col2 FROM tab2 AS cor0
----
-1440
-675
-729

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT + col0 / col1 + - col2 * col2 FROM tab2 AS cor0
----
-1440
-675
-729

query I rowsort
SELECT DISTINCT - col1 * col0 + - 18 AS col2 FROM tab2 AS cor0
----
-1361
-235
-4620

query I rowsort
SELECT + col1 + + 2 AS col2 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT ALL - + cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT - col1 DIV col0 AS col2 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT - col1 / col0 AS col2 FROM tab2 cor0
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT ALL - + col0 DIV 48 + + 92 * col1 * + col2 + 26 * col2 AS col2 FROM tab1 AS cor0
----
117311
130572
53921

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - + col0 / 48 + + 92 * col1 * + col2 + 26 * col2 AS col2 FROM tab1 AS cor0
----
117311
130572
53921

query I rowsort
SELECT DISTINCT - + col0 + + 50 FROM tab0 AS cor0
----
-39
15
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab0 AS cor0
----
24
35
89

query III rowsort
SELECT * FROM tab0 WHERE + col0 - - col1 > NULL
----

query I rowsort
SELECT - col1 * - tab2.col0 + - col2 AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT col0 * tab0.col1 * + col0 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 * + col1 col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + col0 * col1 + - col0 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT - col1 DIV + col0 AS col2 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5181
SELECT - col1 / + col0 AS col2 FROM tab2
----
-4
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - col2 <= - col1 + - col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col2 + - col2 * + col0 + tab1.col0 FROM tab1
----
-105
-3527
-7504

query I rowsort
SELECT - col1 * + col1 + tab2.col1 * col0 AS col1 FROM tab2
----
-744
1054
1121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col1 FROM tab0
----
1225
576
7921

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( tab2.col1 + col1 / col2 )
----

query I rowsort
SELECT col2 * + tab2.col0 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL tab0.col0 * - col1 * - col1 AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + col2 * tab2.col2 + + col2 - + col0 AS col0 FROM tab2
----
1403
624
749

query I rowsort
SELECT DISTINCT col2 + tab0.col2 - tab0.col0 AS col1 FROM tab0
----
-33
42
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5191
SELECT ALL 7 * + col0 + + col0 * + ( - cor0.col1 * + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL 7 * + col0 + + col0 * + ( - cor0.col1 * + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - - col2 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + 71 + col1 AS col0 FROM tab2 AS cor0
----
102
130
88

query I rowsort
SELECT - + col2 + col2 * + 79 FROM tab0 AS cor0
----
2574
6396
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5195
SELECT ALL col1 * - cor0.col0 + + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL col1 * - cor0.col0 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + tab0.col2 + col1 AS col1 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5197
SELECT col0 * col1 - tab1.col2 DIV tab1.col1 AS col0 FROM tab1
----
1033
635
76

skipif mysql # not compatible
query I rowsort label-5197
SELECT col0 * col1 - tab1.col2 / tab1.col1 AS col0 FROM tab1
----
1033
635
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab1.col2 * col2 col0 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + tab1.col2 FROM tab1 WHERE NOT ( - col1 ) <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5200
SELECT ALL col1 DIV col2 - col0 FROM tab0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL col1 / col2 - col0 FROM tab0
----
-22
-88
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 + col2 col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT ALL tab1.col1 * - col1 - + col0 AS col1 FROM tab1
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col0 col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT DISTINCT col2 DIV tab0.col0 + + col2 AS col1 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT col2 / tab0.col0 + + col2 AS col1 FROM tab0
----
1
34
82

query I rowsort
SELECT + col1 + - col2 * + 91 + 5 * - col0 AS col2 FROM tab1 AS cor0
----
-4903
-5497
-9123

query I rowsort
SELECT - col0 * col2 * 9 FROM tab0 AS cor0
----
-315
-65682
-7128

query I rowsort
SELECT + + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT 44 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT ALL + - 25 * col0 AS col1 FROM tab0 AS cor0
----
-2225
-600
-875

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5210
SELECT DISTINCT - 44 + - cor0.col2 * + CAST( col1 + + col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-14968
-238
-5720

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT - 44 + - cor0.col2 * + CAST ( col1 + + col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-14968
-238
-5720

query I rowsort
SELECT - cor0.col2 * + col2 - col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 + ( cor0.col2 + - col1 ) FROM tab2 cor0
----
-1322
-221
-4635

query I rowsort
SELECT ALL col1 * col1 + cor0.col1 + 72 FROM tab1 AS cor0
----
182
254
774

query I rowsort
SELECT DISTINCT + + col0 - + cor0.col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + - col0 * col2 * + col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + 67 * col1 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT + 70 + - col2 FROM tab1 AS cor0
----
-26
13
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-5218
SELECT + ( 20 ) DIV col2 AS col0 FROM tab0
----
0
0
20

skipif mysql # not compatible
query I rowsort label-5218
SELECT + ( 20 ) / col2 AS col0 FROM tab0
----
0
0
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5219
SELECT DISTINCT - col2 * + 81 * col0 - CAST( NULL AS SIGNED ) / - 19 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - col2 * + 81 * col0 - CAST ( NULL AS INTEGER ) / - 19 FROM tab2
----
NULL

query I rowsort
SELECT + + col0 * col1 * - 75 FROM tab0 AS cor0
----
-154800
-254625
-607425

query I rowsort
SELECT + col1 - + cor0.col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col1 + + col1 * + 84 * - col1 FROM tab1 AS cor0
----
-14209
-56810
-8410

query I rowsort
SELECT DISTINCT - + 62 * col1 FROM tab1 AS cor0
----
-1612
-620
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5224
SELECT DISTINCT col2 + 25 DIV col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT col2 + 25 / col2 AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT + cor0.col2 * ( 77 ) + - cor0.col2 DIV - cor0.col1 AS col2 FROM tab2 cor0
----
2002
2079
2928

skipif mysql # not compatible
query I rowsort label-5225
SELECT + cor0.col2 * ( 77 ) + - cor0.col2 / - cor0.col1 AS col2 FROM tab2 cor0
----
2002
2079
2928

query I rowsort
SELECT + - col1 * - col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col0 - - 0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - 26 + + col1 FROM tab0
----
60
65
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT - cor0.col0 DIV + 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5229
SELECT - cor0.col0 / + 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 * + col0 col1 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT - + col2 * - 87 AS col2 FROM tab2 cor0
----
2262
2349
3306

query I rowsort
SELECT DISTINCT 11 FROM tab2, tab1 cor0
----
11

query I rowsort
SELECT ALL 81 FROM tab0 cor0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT tab0.col0 * - col0 * col0 + tab0.col2 DIV - col0 AS col1 FROM tab0
----
-13825
-42875
-704969

skipif mysql # not compatible
query I rowsort label-5234
SELECT tab0.col0 * - col0 * col0 + tab0.col2 / - col0 AS col1 FROM tab0
----
-13825
-42875
-704969

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0, tab0 cor2
----
3645 values hashing to 48366b93fe9110d617672483a489e89c

query I rowsort
SELECT ALL - - tab1.col2 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - 16 * cor2.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-1536
-864
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + + col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
-244
-3436
-916

query I rowsort
SELECT col1 * col0 * col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col2 + - 99 * col0 AS col0 FROM tab1
----
-243
-6279
-7824

onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT - ( col1 ) + + tab0.col2 DIV + tab0.col2 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5242
SELECT - ( col1 ) + + tab0.col2 / + tab0.col2 FROM tab0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5243
SELECT - 18 DIV + col2 AS col0 FROM tab0 AS cor0
----
-18
0
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT - 18 / + col2 AS col0 FROM tab0 AS cor0
----
-18
0
0

query I rowsort
SELECT - + cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT 0 * cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
0

query I rowsort
SELECT cor0.col2 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - col1 + col0 * - 47 AS col2 FROM tab0 cor0
----
-1214
-1742
-4274

query I rowsort
SELECT ALL - col0 * - col0 + col2 AS col2 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT cor0.col2 * 81 AS col0 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT - tab0.col1 * - tab0.col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + 83 * 30 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 69915e43e6c37580ece06beebeea15c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT DISTINCT - col0 DIV col0 col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT - col0 / col0 col0 FROM tab1
----
-1

query I rowsort
SELECT 86 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT + col0 * ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + col0 + 66 AS col0 FROM tab1 AS cor0
----
130
146
69

query I rowsort
SELECT ALL col1 + - ( - col1 + - cor0.col1 ) FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT DISTINCT - col0 * + col0 * col1 + + col0 AS col2 FROM tab1
----
-231
-40896
-83120

query I rowsort
SELECT - ( col1 + - col2 ) AS col1 FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL col1 DIV ( tab0.col2 ) + - 70 AS col1 FROM tab0
----
-68
-69
27

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL col1 / ( tab0.col2 ) + - 70 AS col1 FROM tab0
----
-68
-69
27

query I rowsort
SELECT ALL col1 + + col2 * + tab0.col2 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT - - 28 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-5261
SELECT - - 28 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT DISTINCT + tab0.col1 * + col1 * col2 + - col2 * col2 DIV tab0.col0 FROM tab0
----
244023
678967
9409

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT + tab0.col1 * + col1 * col2 + - col2 * col2 / tab0.col0 FROM tab0
----
244023
678967
9409

query I rowsort
SELECT - 91 + + col0 AS col0 FROM tab1
----
-11
-27
-88

query I rowsort
SELECT ( col0 ) + - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5265
SELECT ALL + col0 DIV + cor0.col0 + + 66 FROM tab2 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL + col0 / + cor0.col0 + + 66 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT col2 DIV col1 col0 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5266
SELECT col2 / col1 col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT col2 * + col2 + - ( + col0 * - col0 ) AS col0 FROM tab1 AS cor0
----
15616
2925
7345

query I rowsort
SELECT ALL + 24 * + col2 AS col2 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT + col0 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 + ( 46 ) col2 FROM tab2 AS cor0
----
-143
-1982
-2956

query I rowsort
SELECT - - col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
6760
7685
778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT col2 * - col1 + - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT ALL + 27 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL + 27 / - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT DISTINCT - cor0.col0 DIV cor0.col1 + ( col2 + col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-4
-5
19

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT - cor0.col0 / cor0.col1 + ( col2 + col0 ) / col0 AS col1 FROM tab1 AS cor0
----
-4
-5
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT + 85 + - col2 DIV + 91 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5277
SELECT + 85 + - col2 / + 91 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + - cor0.col0 AS col1 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT ALL - - col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col1 * col1 + - 80 FROM tab2 AS cor0
----
209
3401
881

query I rowsort
SELECT ALL + cor0.col0 + col0 * - 19 FROM tab2 cor0
----
-126
-1404
-1422

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5282
SELECT ALL col1 * + cor0.col0 + CAST( + col1 AS SIGNED ) * - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL col1 * + cor0.col0 + CAST ( + col1 AS INTEGER ) * - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + 80 AS col2 FROM tab1 AS cor0
----
-16
23
26

query I rowsort
SELECT + col2 + col2 * - 23 AS col0 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT + col1 * + cor0.col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col2 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - 40 FROM tab0 cor0
----
-40

query I rowsort
SELECT ALL + ( 32 ) AS col1 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT + 98 + cor0.col2 FROM tab0 AS cor0
----
131
180
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5290
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab2
----
7
78
79

query I rowsort
SELECT + ( col0 ) + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + 17 - 2 AS col1 FROM tab1 cor0
----
15
15
15

query I rowsort
SELECT DISTINCT ( + 33 ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT + - 36 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - col2 * - 67 + + col0 AS col2 FROM tab0 AS cor0
----
102
2235
5583

query I rowsort
SELECT + 54 * + col2 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT + - cor0.col0 * + 48 AS col1 FROM tab0 AS cor0
----
-1152
-1680
-4272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT + ( col1 ) * col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT cor0.col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 + - col0 * tab0.col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT 70 + col2 AS col1 FROM tab1 AS cor0
----
124
127
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5303
SELECT col0 * col1 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT col0 * col1 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col1 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL ( - col0 ) * - tab2.col0 * col2 + col1 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT col2 * ( + col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + ( - col2 ) + cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 13 * 23 AS col1 FROM tab2 AS cor0
----
299
299
299

query I rowsort
SELECT DISTINCT + 15 + - col2 AS col1 FROM tab0 AS cor0
----
-18
-67
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT + 90 DIV + 16 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

skipif mysql # not compatible
query I rowsort label-5310
SELECT + 90 / + 16 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL col2 * 48 + - 27 * + col2 * - 24 - col2 AS col0 FROM tab0
----
22935
56990
695

query I rowsort
SELECT ALL + col0 + + col2 + col1 AS col2 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL + ( + 62 * - col2 ) + tab0.col2 * col1 FROM tab0
----
2378
35
792

query I rowsort
SELECT - 2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL ( - 26 ) + - col1 FROM tab1
----
-36
-39
-52

query I rowsort
SELECT + - col2 + 32 AS col2 FROM tab2 AS cor0
----
-6
5
6

query I rowsort
SELECT - 74 * - col2 + - col2 FROM tab1 AS cor0
----
3942
4161
7008

query I rowsort
SELECT - - ( + col0 ) * col1 * - col1 + 25 AS col0 FROM tab0 AS cor0
----
-177479
-329290
-736984

query I rowsort
SELECT DISTINCT - - ( col1 ) * - col2 + - 98 AS col0 FROM tab1 AS cor0
----
-1346
-1502
-668

onlyif mysql # use DIV operator for integer division
query I rowsort label-5320
SELECT - - CAST( - col2 AS SIGNED ) DIV + col2 + - 60 + col2 AS col0 FROM tab0 AS cor0
----
-28
-60
21

skipif mysql # not compatible
query I rowsort label-5320
SELECT - - CAST ( - col2 AS INTEGER ) / + col2 + - 60 + col2 AS col0 FROM tab0 AS cor0
----
-28
-60
21

query I rowsort
SELECT ALL - 56 * + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6b6d17dff1ae7902886628df5ec4a270

query I rowsort
SELECT + + ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ( + cor0.col2 ) * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col2 * + col2 + col1 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL col1 + - tab0.col0 - col1 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col0 * - cor0.col0 + - col2 AS col1 FROM tab0 cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT - cor0.col1 + + col0 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5330
SELECT ALL - + col0 * 30 * + col1 + col2 DIV ( - cor0.col0 ) FROM tab1 AS cor0
----
-19200
-2358
-31201

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL - + col0 * 30 * + col1 + col2 / ( - cor0.col0 ) FROM tab1 AS cor0
----
-19200
-2358
-31201

query I rowsort
SELECT DISTINCT tab0.col2 + + 31 FROM tab0
----
113
32
64

query I rowsort
SELECT - + col0 + + 81 AS col2 FROM tab2 AS cor0
----
2
3
74

query I rowsort
SELECT DISTINCT - col2 + ( - 31 + col1 ) * + 69 FROM tab1 AS cor0
----
-1338
-1506
-399

query I rowsort
SELECT - col0 * + 89 AS col1 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT DISTINCT col0 + + col2 * 63 FROM tab1 AS cor0
----
3405
3655
6128

onlyif mysql # use DIV operator for integer division
query I rowsort label-5336
SELECT ALL - col2 DIV - 7 - col0 AS col1 FROM tab2 AS cor0
----
-4
-74
-75

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - col2 / - 7 - col0 AS col1 FROM tab2 AS cor0
----
-4
-74
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5337
SELECT ALL + + col1 + - CAST( + 23 AS SIGNED ) * - col2 AS col0 FROM tab0 cor0
----
120
1977
845

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL + + col1 + - CAST ( + 23 AS INTEGER ) * - col2 AS col0 FROM tab0 cor0
----
120
1977
845

query I rowsort
SELECT DISTINCT + - col2 * - ( + col2 * - col1 ) FROM tab2 cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5339
SELECT - col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-5339
SELECT - col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col2 + - 1 * + col1 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5341
SELECT cor0.col1 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-5341
SELECT cor0.col1 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - - 71 * col1 + - col2 - 33 FROM tab2 AS cor0
----
1136
2141
4130

query I rowsort
SELECT DISTINCT - 28 FROM tab0, tab2 cor0, tab1 cor1, tab1 AS cor2
----
-28

query I rowsort
SELECT DISTINCT - ( + col0 ) - - col0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 48 * col0 + col1 AS col2 FROM tab0 AS cor0
----
1238
1777
4363

query I rowsort
SELECT - col0 * + col1 - - col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5347
SELECT ALL 67 + ( + col0 ) * + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3581
-7613
-95

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL 67 + ( + col0 ) * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3581
-7613
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * cor0.col2 + col0 * - 34 col0 FROM tab2 AS cor0
----
-49
-624
316

query I rowsort
SELECT DISTINCT + col1 - + col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT + tab2.col0 + - col1 + col2 * tab2.col0 FROM tab2
----
165
2047
3064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 90 - + col1 col0 FROM tab1
----
-296
-5770
-7213

onlyif mysql # use DIV operator for integer division
query I rowsort label-5353
SELECT DISTINCT - col0 + - cor0.col1 DIV 80 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - col0 + - cor0.col1 / 80 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT + 27 * - col2 AS col2 FROM tab0 AS cor0
----
-2214
-27
-891

onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT ALL + col2 DIV col1 col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + col2 / col1 col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + - 3 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT - 88 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-88

skipif mysql # not compatible
query I rowsort label-5357
SELECT - 88 / col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-88

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT tab0.col1 * col0 - + 56 * + col0 DIV - col0 AS col2 FROM tab0
----
2120
3451
8155

skipif mysql # not compatible
query I rowsort label-5361
SELECT tab0.col1 * col0 - + 56 * + col0 / - col0 AS col2 FROM tab0
----
2120
3451
8155

query I rowsort
SELECT tab1.col1 + + col1 * + 34 FROM tab1
----
350
455
910

query I rowsort
SELECT + tab1.col2 * col0 + col2 FROM tab1
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT DISTINCT + + col2 + ( 90 ) * - col2 + col0 DIV + 15 AS col0 FROM tab1 AS cor0
----
-4806
-5069
-8539

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + + col2 + ( 90 ) * - col2 + col0 / + 15 AS col0 FROM tab1 AS cor0
----
-4806
-5069
-8539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5365
SELECT + - cor0.col1 * CAST( col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-157
-265
-730

skipif mysql # not compatible
query I rowsort label-5365
SELECT + - cor0.col1 * CAST ( col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col0 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT ALL cor0.col2 * 48 FROM tab1, tab0 AS cor0
----
9 values hashing to 68bf736db401955d581879cb0f61411b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5368
SELECT + CAST( NULL AS SIGNED ) + 1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5368
SELECT + CAST ( NULL AS INTEGER ) + 1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 8 + 32 * - col0 FROM tab0 AS cor0
----
-1128
-2856
-776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT DISTINCT + - 55 DIV + col2 + col1 + col1 FROM tab0 AS cor0
----
139
171
182

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + - 55 / + col2 + col1 + col1 FROM tab0 AS cor0
----
139
171
182

onlyif mysql # use DIV operator for integer division
query I rowsort label-5371
SELECT DISTINCT ( col2 ) DIV - col0 + + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
214
4602

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT ( col2 ) / - col0 + + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
214
4602

query I rowsort
SELECT ALL - col1 - - 20 AS col0 FROM tab2 cor0
----
-11
-39
3

query I rowsort
SELECT - + 38 AS col0 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-24
-35
-89

query I rowsort
SELECT col0 * 75 + + col1 AS col2 FROM tab0 AS cor0
----
1886
2722
6766

query I rowsort
SELECT + + ( col2 ) + - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 67 * - cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
-2125
-5403
30

query I rowsort
SELECT ALL ( 95 ) * + cor0.col0 - col1 FROM tab1 AS cor0
----
259
6070
7587

query I rowsort
SELECT + - col1 * - col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT - 71 DIV col0 FROM tab1 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-5380
SELECT - 71 / col0 FROM tab1 AS cor0
----
-1
-23
0

query I rowsort
SELECT - col2 + - col0 * ( + col1 + col1 ) AS col1 FROM tab0 AS cor0
----
-16280
-4161
-6791

query I rowsort
SELECT ALL cor0.col0 + 38 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 251b1685c924bd1a2d2fad08fe7de71c

query I rowsort
SELECT col1 * 59 FROM tab2
----
1003
1829
3481

query I rowsort
SELECT - col2 * 52 + 54 * cor0.col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
108160
160132
8802

onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT DISTINCT + col1 DIV + 7 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT + col1 / + 7 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT DISTINCT col0 * 65 + + cor0.col1 FROM tab0 cor0
----
1646
2372
5876

onlyif mysql # use DIV operator for integer division
query I rowsort label-5387
SELECT DISTINCT col0 * col2 DIV tab1.col0 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT col0 * col2 / tab1.col0 AS col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT tab1.col1 DIV tab1.col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5388
SELECT tab1.col1 / tab1.col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT tab2.col0 * tab2.col2 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5390
SELECT DISTINCT col2 + + CAST( + col2 * col0 AS SIGNED ) FROM tab0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT col2 + + CAST ( + col2 * col0 AS INTEGER ) FROM tab0
----
36
7380
825

query I rowsort
SELECT + col2 + ( tab1.col2 * - col1 ) AS col1 FROM tab1
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5392
SELECT + CAST( NULL AS DECIMAL ) + + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT + CAST ( NULL AS REAL ) + + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT tab2.col1 DIV col1 + tab2.col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5393
SELECT tab2.col1 / col1 + tab2.col1 FROM tab2
----
18
32
60

query I rowsort
SELECT ALL + col0 * + 4 FROM tab1
----
12
256
320

query I rowsort
SELECT ALL + col0 + cor0.col0 * + 91 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT - - cor0.col0 - col1 * col2 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT col1 + 95 AS col1 FROM tab2 AS cor0
----
112
126
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT DISTINCT col2 - + col2 DIV tab2.col0 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT col2 - + col2 / tab2.col0 FROM tab2
----
24
26
38

query I rowsort
SELECT + ( + 8 + - col0 ) AS col1 FROM tab1
----
-56
-72
5

query I rowsort
SELECT - - col0 * col2 + - cor0.col0 + 46 AS col2 FROM tab1 AS cor0
----
205
3630
7646

query I rowsort
SELECT 1 * col1 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5402
SELECT ALL - cor0.col0 DIV cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 19c49c11cc9b548be21bc64de3610bde

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL - cor0.col0 / cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 19c49c11cc9b548be21bc64de3610bde

query I rowsort
SELECT col0 + + 13 + + col1 AS col1 FROM tab1
----
106
42
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5404
SELECT CAST( - col0 AS SIGNED ) + tab0.col2 FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5404
SELECT CAST ( - col0 AS INTEGER ) + tab0.col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - 18 * - col2 AS col1 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col2 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5407
SELECT + - col2 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT + - col2 / - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 49 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT - col2 * ( 35 ) FROM tab0 AS cor0
----
-1155
-2870
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5410
SELECT ALL + col2 DIV + col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL + col2 / + col1 AS col2 FROM tab0
----
0
0
0

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-5412
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - col2 + + col1 AS col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT col1 * - col0 + + ( 3 ) * - cor0.col2 FROM tab2 AS cor0
----
-1457
-298
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5415
SELECT - - cor0.col2 + + cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT - - cor0.col2 + + cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 46 * - col2 FROM tab1 cor0
----
-2484
-2622
-4416

query I rowsort
SELECT ALL + - 76 * + col1 AS col1 FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT + - cor0.col1 * col1 * + col2 FROM tab2 cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col1 FROM tab0, tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - + col0 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + - col1 * 67 * 95 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
-545326
-571116
-614010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5423
SELECT DISTINCT col0 * - CAST( - 74 AS SIGNED ) + + col0 FROM tab2 cor0
----
525
5850
5925

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT col0 * - CAST ( - 74 AS INTEGER ) + + col0 FROM tab2 cor0
----
525
5850
5925

query I rowsort
SELECT ALL + col2 + - ( + cor0.col0 ) * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + cor0.col0 + + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL - + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 + + cor0.col1 AS col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5428
SELECT ALL + + col2 DIV ( - col1 ) + + col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + + col2 / ( - col1 ) + + col1 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT + 42 + col0 * 50 * col1 + col1 AS col0 FROM tab1
----
32052
3968
52055

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT DISTINCT + col0 + - col1 DIV + col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + col0 + - col1 / + col1 FROM tab0
----
23
34
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5431
SELECT ALL + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - col2 ) + cor0.col2 * - 61 AS col1 FROM tab2 AS cor0
----
-1612
-1674
-2356

onlyif mysql # use DIV operator for integer division
query I rowsort label-5433
SELECT ALL col0 DIV + ( + 97 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL col0 / + ( + 97 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 3 * + 83 FROM tab2 AS cor0
----
249

query I rowsort
SELECT + - 84 * cor0.col0 * + col2 FROM tab1 AS cor0
----
-13608
-306432
-645120

query I rowsort
SELECT DISTINCT - - col2 * col0 + - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT ALL col0 DIV 56 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL col0 / 56 FROM tab1
----
0
1
1

query I rowsort
SELECT 22 FROM tab2, tab1 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT ALL + col1 DIV + tab2.col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + col1 / + tab2.col0 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL - col0 * + 72 AS col0 FROM tab2
----
-504
-5616
-5688

query I rowsort
SELECT + 57 + + 41 * cor0.col0 FROM tab0 AS cor0
----
1041
1492
3706

query I rowsort
SELECT + ( col0 ) * cor0.col0 * col2 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5444
SELECT CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 32 + col2 FROM tab1
----
128
86
89

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 95 * - col2 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT + 55 * col0 AS col0 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT 95 * 44 FROM tab1
----
4180
4180
4180

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab0, tab0 AS cor0
----
67

query I rowsort
SELECT col0 * col0 + + col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL col2 * - col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - + col1 * col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + col0 + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 20 AS col1 FROM tab1 AS cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col1 FROM tab0 AS cor0
----
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT - cor0.col2 * cor0.col0 DIV - 18 AS col1 FROM tab1 AS cor0
----
202
426
9

skipif mysql # not compatible
query I rowsort label-5459
SELECT - cor0.col2 * cor0.col0 / - 18 AS col1 FROM tab1 AS cor0
----
202
426
9

query I rowsort
SELECT col2 * + col2 AS col1 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5461
SELECT DISTINCT + col2 DIV - tab0.col1 + - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT + col2 / - tab0.col1 + - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 - + 80 AS col2 FROM tab1 AS cor0
----
-1328
-1484
-650

query I rowsort
SELECT DISTINCT col0 * cor0.col0 + 24 AS col2 FROM tab2 AS cor0
----
6108
6265
73

query I rowsort
SELECT DISTINCT - + col1 * col2 + - 94 FROM tab0 AS cor0
----
-191
-2932
-7556

query I rowsort
SELECT ALL - col1 - - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * col0 + 99 * col2 FROM tab2 AS cor0
----
-2479
-3510
2624

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT ALL - col0 DIV 95 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - col0 / 95 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5468
SELECT - col1 + 95 DIV + col2 FROM tab0 AS cor0
----
-2
-84
-90

skipif mysql # not compatible
query I rowsort label-5468
SELECT - col1 + 95 / + col2 FROM tab0 AS cor0
----
-2
-84
-90

query I rowsort
SELECT ALL col2 + - 82 FROM tab2 AS cor0
----
-44
-55
-56

query I rowsort
SELECT col0 * 99 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
12874
17092
9772

query I rowsort
SELECT ALL - col1 + 13 * - cor0.col1 FROM tab0 AS cor0
----
-1204
-1274
-1358

query I rowsort
SELECT ALL - col2 + - col0 * - col2 AS col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT - col2 * + 33 AS col2 FROM tab2 AS cor0
----
-1254
-858
-891

query I rowsort
SELECT ALL cor0.col1 + - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col1 AS REAL ) + col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT + + 38 + 0 * - col0 DIV cor0.col2 FROM tab0 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5478
SELECT + + 38 + 0 * - col0 / cor0.col2 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT ( - 10 ) AS col2 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT ( col0 ) * - col0 * - ( col0 ) FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT - ( cor0.col0 ) + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 22 FROM tab0
----
22
22
22

query I rowsort
SELECT ALL - ( col0 ) * - col1 + + col0 * col2 - - col1 FROM tab0 AS cor0
----
15488
2942
3527

query I rowsort
SELECT + - col1 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * cor0.col1 + col0 col2 FROM tab2 AS cor0
----
1650
3205
980

query I rowsort
SELECT cor0.col0 - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT col0 * col0 * cor0.col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT ALL - 52 + + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1482
594
785

query I rowsort
SELECT + col2 * col2 - col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT - 52 * col0 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT DISTINCT col0 + + col2 + col0 FROM tab2 cor0
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 - - cor0.col1 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 63 + col1 AS col0 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col1 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-6604
-9374
-983

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 * + col0 + + cor0.col0 * - col1 FROM tab2 AS cor0
----
-107440
-1736
-363558

query I rowsort
SELECT + + col2 * col1 + col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col1 + + cor0.col1 col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + col1 * 97 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT DISTINCT - 52 - ( - col2 ) AS col1 FROM tab1 AS cor0
----
2
44
5

query I rowsort
SELECT DISTINCT ( col1 ) + - cor0.col0 * + col2 AS col1 FROM tab2 cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * - cor0.col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col2 - + col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + ( col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT - 1 DIV 36 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5505
SELECT - 1 / 36 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + 48 * 56 FROM tab0, tab2 AS cor0
----
2688

query I rowsort
SELECT ALL - - 55 AS col1 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT ALL + cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 69 + col1 * - col1 FROM tab2 AS cor0
----
-1030
-3550
-358

query I rowsort
SELECT ALL ( - cor0.col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT DISTINCT + - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT + - col1 / - col1 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + + cor0.col0 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + ( col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 57 + - col2 FROM tab0 cor0
----
-25
24
56

query I rowsort
SELECT + - col2 * - col1 + + col2 * col2 FROM tab2 cor0
----
1566
2090
2210

query I rowsort
SELECT ( + col0 ) * + tab2.col0 + + tab2.col0 AS col2 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL col0 * col1 * col2 AS col0 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col1 FROM tab0
----
12
12
12

query I rowsort
SELECT col2 - + col0 FROM tab2 cor0 WHERE cor0.col1 + col2 IN ( - col2 )
----

query I rowsort
SELECT col1 * - col1 + + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - tab0.col1 * - tab0.col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT tab1.col0 * + col1 * col2 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( col0 * col0 )
----

query I rowsort
SELECT col2 * + tab0.col2 + - col0 AS col1 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT col1 + + col1 * col2 AS col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT tab2.col1 - - col2 AS col1 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT ALL + col0 DIV + tab1.col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL + col0 / + tab1.col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 50 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * ( - col0 ) col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - + 34 + - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-2062
-223
-3036

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5535
SELECT ALL + + CAST( col2 AS SIGNED ) * + col2 AS col1 FROM tab2 cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + + CAST ( col2 AS INTEGER ) * + col2 AS col1 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + - ( + ( - cor0.col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5537
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col0 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL 97 * + cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT col0 + col0 * col0 + - ( - cor0.col2 ) * cor0.col2 * - col1 FROM tab2 AS cor0
----
-18228
-22543
-33722

query I rowsort
SELECT DISTINCT - + ( col1 ) + - col1 * ( col1 ) FROM tab0 cor0
----
-7482
-8372
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT ALL + col2 + 18 DIV + col1 AS col1 FROM tab1 AS cor0
----
54
58
97

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + col2 + 18 / + col1 AS col1 FROM tab1 AS cor0
----
54
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + ( col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 * col0 + + 84 * col1 * col0 FROM tab0 AS cor0
----
1401127
222912
404005

query I rowsort
SELECT DISTINCT + col0 * col0 * + col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT tab0.col1 - + col2 AS col0 FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5548
SELECT ALL - ( col2 ) * col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - ( col2 ) * col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( col2 ) * + cor0.col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT + 65 * + col2 * - col0 + 46 AS col1 FROM tab2 AS cor0
----
-12239
-131774
-195084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 22 + - col1 AS col1 FROM tab2 AS cor0
----
-37
-9
5

query I rowsort
SELECT - + 42 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL cor0.col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 * col2 ) col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - 51 * 10 * col2 AS col1 FROM tab0
----
-16830
-41820
-510

query I rowsort
SELECT + - 96 + - col0 FROM tab1 AS cor0
----
-160
-176
-99

query I rowsort
SELECT ALL - + col1 * - col2 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + - 61 + col1 AS col1 FROM tab2 AS cor0
----
-2
-30
-44

query I rowsort
SELECT DISTINCT + col0 * 43 FROM tab2 cor0
----
301
3354
3397

query I rowsort
SELECT DISTINCT + col1 * 85 AS col2 FROM tab1 AS cor0
----
1105
2210
850

onlyif mysql # use DIV operator for integer division
query I rowsort label-5563
SELECT ALL col1 * 4 DIV - 73 + col1 * ( 45 ) FROM tab1 AS cor0
----
1169
450
585

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL col1 * 4 / - 73 + col1 * ( 45 ) FROM tab1 AS cor0
----
1169
450
585

onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT DISTINCT + - col2 DIV - col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT + - col2 / - col0 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT + col2 + + ( cor0.col1 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5565
SELECT + col2 + + ( cor0.col1 ) / - col1 AS col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT + col2 * - cor0.col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + col0 * ( 37 ) AS col1 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT + cor0.col2 * col1 * 1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col1 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL 44 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT + col0 + - col0 * tab1.col0 + - 88 * col0 AS col0 FROM tab1
----
-13360
-270
-9664

query I rowsort
SELECT ALL col2 + tab1.col0 * col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + - cor0.col0 + - cor0.col0 * + cor0.col0 FROM tab0 cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT - col1 * + col2 + cor0.col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT col0 + + ( col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL col2 * - col1 - + col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT - col1 * - col1 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1690
1733
4157

query I rowsort
SELECT col1 * + 99 + + 25 AS col1 FROM tab0
----
8539
9034
9628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT col0 * 78 DIV + col0 col0 FROM tab1 cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5579
SELECT col0 * 78 / + col0 col0 FROM tab1 cor0
----
78
78
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT - + col0 + col1 + ( col1 ) * col2 DIV + col0 FROM tab0 AS cor0
----
180
64
85

skipif mysql # not compatible
query I rowsort label-5580
SELECT - + col0 + col1 + ( col1 ) * col2 / + col0 FROM tab0 AS cor0
----
180
64
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5581
SELECT - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + cor0.col2 * - 18 + + 80 FROM tab1 AS cor0
----
-1568
-882
-889

query I rowsort
SELECT col0 + col2 * - tab1.col1 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - col1 * col1 * col2 FROM tab0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + + col2 * - ( + col1 + col1 ) * tab0.col1 col0 FROM tab0
----
-1358024
-18758
-488076

query I rowsort
SELECT ALL col1 + + col0 + col2 AS col2 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT ALL + cor0.col0 DIV - col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL + cor0.col0 / - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 85 * col0 + - col0 + + col1 * + col2 FROM tab0 AS cor0
----
14938
3037
4854

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + - col0 + col2 + col0 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 94 FROM tab0, tab2, tab1 cor0, tab1
----
94

query I rowsort
SELECT + - col2 + + col0 FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 * col1 col0 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT 84 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT + 61 + 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT - + 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT 7 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
10
8
9

skipif mysql # not compatible
query I rowsort label-5598
SELECT 7 + col1 / col0 AS col0 FROM tab0 AS cor0
----
10
8
9

query I rowsort
SELECT - + cor0.col1 * col1 + - col2 - - cor0.col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3406
-3646
-9481

query I rowsort
SELECT cor0.col1 + col0 * col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT + ( + cor0.col2 ) + - cor0.col0 * 80 - col0 DIV + 53 AS col2 FROM tab1 AS cor0
----
-186
-5064
-6305

skipif mysql # not compatible
query I rowsort label-5601
SELECT + ( + cor0.col2 ) + - cor0.col0 * 80 - col0 / + 53 AS col2 FROM tab1 AS cor0
----
-186
-5064
-6305

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5602
SELECT - - ( col0 ) * + CAST( NULL AS SIGNED ) - col2 * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT - - ( col0 ) * + CAST ( NULL AS INTEGER ) - col2 * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 90 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - + cor0.col2 - - ( - col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT + col0 DIV - ( - col0 ) + + col2 col0 FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5605
SELECT + col0 / - ( - col0 ) + + col2 col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT + col1 + + 54 * + 62 * col2 FROM tab0 AS cor0
----
110570
274627
3445

query I rowsort
SELECT ALL - col0 + ( - 47 + - col2 ) FROM tab0 cor0
----
-104
-218
-83

query I rowsort
SELECT - col1 * 5 AS col2 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT DISTINCT + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5610
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5611
SELECT ALL + CAST( NULL AS SIGNED ) * - 38 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL + CAST ( NULL AS INTEGER ) * - 38 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab1.col2 * col0 * col0 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5613
SELECT ALL cor0.col2 DIV - 36 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL cor0.col2 / - 36 FROM tab0 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * - 56 col0 FROM tab2 AS cor0
----
2128
2128
2128

query I rowsort
SELECT ALL - col2 * + ( - tab1.col2 ) * 93 FROM tab1
----
271188
302157
857088

query I rowsort
SELECT - 65 + col2 AS col1 FROM tab0 AS cor0
----
-32
-64
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 69 col1 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT - - 17 + col2 AS col1 FROM tab1 AS cor0
----
113
71
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5619
SELECT - col1 * + col0 + col1 * + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5619
SELECT - col1 * + col0 + col1 * + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 32 + cor0.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7e31fd08bee5645afb460bc0da346a9e

query I rowsort
SELECT ALL 97 AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT - col2 * col2 + ( - col1 + 58 ) AS col0 FROM tab0 AS cor0
----
-1117
-40
-6757

query I rowsort
SELECT col2 + + 67 AS col1 FROM tab2 AS cor0
----
105
93
94

query I rowsort
SELECT + col1 + - cor0.col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf

query I rowsort
SELECT col2 + - ( - ( - col1 ) ) * col0 AS col0 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col0 * col0 - - col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + col0 * ( + col0 ) AS col0 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT + - 71 * + cor0.col1 + + col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-6105
-6460
-6886

skipif mysql # not compatible
query I rowsort label-5630
SELECT + - 71 * + cor0.col1 + + col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-6105
-6460
-6886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5631
SELECT + CAST( NULL AS DECIMAL ) * col1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT + CAST ( NULL AS REAL ) * col1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * - ( col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col2 * - 16 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT - 71 + ( + col2 ) FROM tab0 AS cor0
----
-38
-70
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5635
SELECT DISTINCT 36 DIV cor0.col0 FROM tab2 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT 36 / cor0.col0 FROM tab2 AS cor0
----
0
5

query I rowsort
SELECT DISTINCT 88 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT DISTINCT + col1 * + col1 + 31 DIV + ( + tab1.col1 ) col1 FROM tab1
----
103
171
677

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT + col1 * + col1 + 31 / + ( + tab1.col1 ) col1 FROM tab1
----
103
171
677

query I rowsort
SELECT + ( col2 ) - ( col0 ) * col0 FROM tab2
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT - col2 * cor0.col1 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-5639
SELECT - col2 * cor0.col1 / ( col0 ) AS col0 FROM tab2 AS cor0
----
-119
-19
-8

query I rowsort
SELECT + cor0.col1 + - col2 * + 93 FROM tab2 AS cor0
----
-2359
-2480
-3517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 * - 55 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT 32 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - cor1.col2 * 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 92bd8e1eb4b81f6f35035e5d5125634d

query I rowsort
SELECT ALL col1 + + col1 * - 57 + + col0 * col0 AS col1 FROM tab2
----
-1687
2780
5289

onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT ALL 95 DIV 46 + cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 18e817b62724a9e6c343ab9a374e92bc

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL 95 / 46 + cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 18e817b62724a9e6c343ab9a374e92bc

query I rowsort
SELECT DISTINCT col2 + 71 * - col2 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT ALL - col2 * - ( + col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL tab1.col2 - + col1 AS col0 FROM tab1
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5651
SELECT ALL tab1.col0 + 33 - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL tab1.col0 + 33 - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col2 + 18 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-15
-64
17

query I rowsort
SELECT ALL - 79 + 84 FROM tab1
----
5
5
5

query I rowsort
SELECT tab2.col2 * col1 * col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT + + 67 * tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3151ebd97ed7676dc788b05b0e2cc1f6

query I rowsort
SELECT ALL col1 + col2 - + col2 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + 16 + - col1 AS col0 FROM tab1 AS cor0
----
-10
3
6

query I rowsort
SELECT ALL - col1 * col0 + - col2 AS col0 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT - 45 * col0 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT - ( - col0 ) * 20 + 82 + col0 AS col1 FROM tab2 AS cor0
----
1720
1741
229

onlyif mysql # use DIV operator for integer division
query I rowsort label-5662
SELECT col1 * cor0.col2 DIV col0 AS col1 FROM tab1 AS cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-5662
SELECT col1 * cor0.col2 / col0 AS col1 FROM tab1 AS cor0
----
15
468
8

query I rowsort
SELECT DISTINCT - - 20 AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT + - col0 + + col0 * + 90 + 76 AS col2 FROM tab2 AS cor0
----
699
7018
7107

query I rowsort
SELECT DISTINCT + - 4 * col1 AS col0 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT ALL + ( col0 ) + col0 + - col0 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT - col2 * col0 + 46 DIV col0 + + cor0.col0 DIV col2 FROM tab1 AS cor0
----
-147
-3647
-7680

skipif mysql # not compatible
query I rowsort label-5667
SELECT - col2 * col0 + 46 / col0 + + cor0.col0 / col2 FROM tab1 AS cor0
----
-147
-3647
-7680

query I rowsort
SELECT DISTINCT + - 63 * - col0 FROM tab0 AS cor0
----
1512
2205
5607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + - col1 + col1 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col0 * cor0.col2 + 35 * col1 + + col1 * + col2 FROM tab2 AS cor0
----
2111
4243
5627

query I rowsort
SELECT ALL + col0 * + col2 + - cor0.col1 * - 97 AS col0 FROM tab2 AS cor0
----
3196
4651
7751

query I rowsort
SELECT ALL 52 + col1 * col0 FROM tab2 AS cor0
----
1395
269
4654

query I rowsort
SELECT DISTINCT + + col1 * col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT - tab0.col1 DIV + col0 AS col1 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5674
SELECT - tab0.col1 / + col0 AS col1 FROM tab0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 73 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT 20 * col2 AS col0 FROM tab0
----
1640
20
660

onlyif mysql # use DIV operator for integer division
query I rowsort label-5677
SELECT DISTINCT - col0 + + col0 DIV - col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT - col0 + + col0 / - col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT - col0 + col0 * ( col0 ) * cor0.col0 FROM tab0 AS cor0
----
13800
42840
704880

onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT ALL 18 DIV + col0 + col1 AS col1 FROM tab2 AS cor0
----
17
33
59

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL 18 / + col0 + col1 AS col1 FROM tab2 AS cor0
----
17
33
59

query I rowsort
SELECT ALL + + 15 + - col1 * col1 FROM tab1 AS cor0
----
-154
-661
-85

query I rowsort
SELECT DISTINCT - 53 + + col2 FROM tab0 AS cor0
----
-20
-52
29

query I rowsort
SELECT DISTINCT + 56 + col1 * - 88 AS col0 FROM tab1 AS cor0
----
-1088
-2232
-824

onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT ALL + col0 DIV 68 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + col0 / 68 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT + + col0 + - col2 DIV 7 FROM tab1 AS cor0
----
-4
56
67

skipif mysql # not compatible
query I rowsort label-5684
SELECT + + col0 + - col2 / 7 FROM tab1 AS cor0
----
-4
56
67

query I rowsort
SELECT - ( col1 ) + + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 + + col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL - 78 + col1 AS col2 FROM tab0
----
13
19
8

query I rowsort
SELECT DISTINCT col0 * - 12 AS col2 FROM tab2 AS cor0
----
-84
-936
-948

onlyif mysql # use DIV operator for integer division
query I rowsort label-5689
SELECT ALL - col0 DIV 13 + + col0 AS col2 FROM tab1 AS cor0
----
3
60
74

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - col0 / 13 + + col0 AS col2 FROM tab1 AS cor0
----
3
60
74

query I rowsort
SELECT + - col1 * 77 AS col1 FROM tab0 cor0
----
-6622
-7007
-7469

query I rowsort
SELECT DISTINCT col0 - ( col1 + + 35 * col2 ) FROM tab0 AS cor0
----
-1217
-2872
-97

query I rowsort
SELECT ALL - col1 * + col0 * - col2 AS col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + 61 AS col0 FROM tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT - - col0 + col2 - + col2 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 3 + col2 FROM tab0 AS cor0
----
36
4
85

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col0 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
-3008
-6640
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT DISTINCT - col0 DIV col2 + + col0 * + col1 + col1 AS col2 FROM tab1 cor0
----
104
1053
649

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT - col0 / col2 + + col0 * + col1 + col1 AS col2 FROM tab1 cor0
----
104
1053
649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT ALL - CAST( NULL AS DECIMAL ) * 80 * + col0 + - 46 * - cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - CAST ( NULL AS REAL ) * 80 * + col0 + - 46 * - cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT col1 - CAST( - 73 AS SIGNED ) * + col2 * + col2 AS col0 FROM tab2
----
105429
49407
53248

skipif mysql # not compatible
query I rowsort label-5699
SELECT col1 - CAST ( - 73 AS INTEGER ) * + col2 * + col2 AS col0 FROM tab2
----
105429
49407
53248

query I rowsort
SELECT DISTINCT + col0 * - 82 FROM tab1
----
-246
-5248
-6560

query I rowsort
SELECT DISTINCT - 25 * + col0 FROM tab2 AS cor0
----
-175
-1950
-1975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5702
SELECT ( ( - col0 ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT ( ( - col0 ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - 54 FROM tab0
----
-143
-78
-89

query I rowsort
SELECT col0 - col0 * col2 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT + tab0.col0 + + col1 + + col1 * tab0.col2 * 79 AS col1 FROM tab0
----
224312
589678
7795

query I rowsort
SELECT + + 23 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) + - 96 * + col2 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT DISTINCT + - col1 + - col1 * col1 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5709
SELECT ALL + col0 * + CAST( 56 AS SIGNED ) + col2 FROM tab1 AS cor0
----
222
3641
4576

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + col0 * + CAST ( 56 AS INTEGER ) + col2 FROM tab1 AS cor0
----
222
3641
4576

query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + 17 + + col0 AS col1 FROM tab0
----
106
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5712
SELECT cor0.col0 + - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT cor0.col0 + - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 15 FROM tab0 AS cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col1 FROM tab2, tab0 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + col0 + - col1 * cor0.col2 + 77 FROM tab1 AS cor0
----
-1091
-1324
-429

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
40

query I rowsort
SELECT tab0.col0 * + col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + - col1 * col1 + 87 + - col1 AS col1 FROM tab2 AS cor0
----
-219
-3453
-905

query I rowsort
SELECT ALL - 80 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT ALL col0 * cor0.col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - col1 * col2 + 30 AS col1 FROM tab0 AS cor0
----
-2808
-67
-7432

onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT ALL + col0 + + col0 DIV 60 AS col0 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + col0 + + col0 / 60 AS col0 FROM tab0 AS cor0
----
24
35
90

query I rowsort
SELECT DISTINCT + - col0 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + 69 AS col0 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT ALL - ( cor1.col2 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - + col0 + + 40 AS col2 FROM tab1 AS cor0
----
-24
-40
37

query I rowsort
SELECT + 12 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT col1 + - 37 AS col0 FROM tab1 AS cor0
----
-11
-24
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT DISTINCT col0 + col1 + col2 DIV col0 FROM tab2
----
137
41
96

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT col0 + col1 + col2 / col0 FROM tab2
----
137
41
96

query I rowsort
SELECT - ( col2 + + tab0.col2 ) FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab2
----
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5732
SELECT + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( ( col1 ) ) * col2 + + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
7
78
79

query I rowsort
SELECT + + col1 - col2 FROM tab0 cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT - col2 * col0 + + cor0.col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-5736
SELECT - col2 * col0 + + cor0.col1 / - col1 AS col0 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT DISTINCT col2 * 52 AS col1 FROM tab1
----
2808
2964
4992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT - col0 DIV col1 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-5738
SELECT - col0 / col1 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3
-70
-86

query I rowsort
SELECT - cor0.col0 * + col2 - + 29 * - col1 AS col1 FROM tab2 AS cor0
----
-2509
-317
710

query I rowsort
SELECT ALL 42 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT 73 + + 33 + col0 AS col2 FROM tab2
----
113
184
185

query I rowsort
SELECT - ( - 13 ) * + cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
1155
453
48

query I rowsort
SELECT DISTINCT - col2 + + 92 AS col2 FROM tab2 AS cor0
----
54
65
66

query I rowsort
SELECT ALL col0 + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT + col0 DIV + 3 + col2 FROM tab2 AS cor0
----
29
52
64

skipif mysql # not compatible
query I rowsort label-5745
SELECT + col0 / + 3 + col2 FROM tab2 AS cor0
----
29
52
64

query I rowsort
SELECT ALL + ( 42 ) + col1 AS col1 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT ALL - col2 * 77 + col1 FROM tab1 AS cor0
----
-4132
-4379
-7379

query I rowsort
SELECT 52 * + col2 + col2 * cor0.col1 FROM tab2 AS cor0
----
2241
2622
2886

query I rowsort
SELECT DISTINCT - - col0 - + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * col2 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT + 4 FROM tab2, tab0 AS cor0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5753
SELECT ALL col0 * + 77 + col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL col0 * + 77 + col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT DISTINCT + col1 * + 31 + - tab1.col1 * + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT + col1 * + 31 + - tab1.col1 * + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5755
SELECT DISTINCT CAST( + col2 AS SIGNED ) * col0 + + ( col1 ) FROM tab2
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col0 + + ( col1 ) FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL - col1 * 40 + + col1 AS col0 FROM tab2
----
-1209
-2301
-663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5757
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 40 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 40 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT - 36 + tab0.col1 DIV col1 + col0 * col0 FROM tab0
----
1190
541
7886

skipif mysql # not compatible
query I rowsort label-5758
SELECT - 36 + tab0.col1 / col1 + col0 * col0 FROM tab0
----
1190
541
7886

query I rowsort
SELECT 73 * - col2 + - col1 * ( col2 ) AS col2 FROM tab2
----
-2808
-3420
-3432

query I rowsort
SELECT ( 66 ) + col0 + - col0 * + col0 FROM tab1 AS cor0
----
-3966
-6254
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT + col0 * col2 + + col1 DIV + CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab2 cor0
----
2087
224
3019

skipif mysql # not compatible
query I rowsort label-5761
SELECT + col0 * col2 + + col1 / + CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab2 cor0
----
2087
224
3019

query I rowsort
SELECT ( - col1 ) + - col1 + col2 AS col2 FROM tab1
----
2
37
70

query I rowsort
SELECT DISTINCT + col1 + - ( col1 * + tab1.col0 ) FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT tab1.col2 * col1 AS col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT ALL col1 DIV 52 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL col1 / 52 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT tab0.col2 DIV - cor0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5767
SELECT tab0.col2 / - cor0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT + col2 DIV ( col1 ) + cor0.col2 * ( 59 ) + col1 FROM tab0 AS cor0
----
156
2033
4929

skipif mysql # not compatible
query I rowsort label-5768
SELECT + col2 / ( col1 ) + cor0.col2 * ( 59 ) + col1 FROM tab0 AS cor0
----
156
2033
4929

query I rowsort
SELECT tab1.col2 + 99 FROM tab1
----
153
156
195

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( + col0 AS REAL ) * - tab0.col1 AS col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - col1 * col0 + 33 AS col2 FROM tab0
----
-2031
-3362
-8066

query I rowsort
SELECT - cor0.col2 - + ( - cor0.col1 + col1 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col0 * ( + 29 ) + - cor0.col1 FROM tab1 AS cor0
----
1846
2307
61

query I rowsort
SELECT ALL + - cor0.col1 * 27 AS col1 FROM tab1 AS cor0
----
-270
-351
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5775
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + + cor0.col1 * col2 * + 61 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + + cor0.col1 * col2 * + 61 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col1 + 90 FROM tab1 AS cor0
----
64
77
80

query I rowsort
SELECT ALL + cor0.col1 + - 11 * 49 FROM tab2 AS cor0
----
-480
-508
-522

query I rowsort
SELECT - + col1 + + col1 * 36 * + col1 AS col1 FROM tab0 AS cor0
----
266170
298025
338627

query I rowsort
SELECT - col1 * col1 + - 63 * cor0.col2 FROM tab2 AS cor0
----
-2662
-2683
-5119

query I rowsort
SELECT + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col1 * col2 - col2 * - col2 * + col2 FROM tab1
----
156060
184623
883488

query I rowsort
SELECT DISTINCT - - col0 - 11 * + col0 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT col2 * 40 AS col1 FROM tab2 AS cor0
----
1040
1080
1520

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * CAST ( 17 AS REAL ) FROM tab1 AS cor0
----
-170
-221
-442

query I rowsort
SELECT + col1 + - tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 * col0 * - col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + ( + 10 ) - col2 FROM tab0 AS cor0
----
-23
-72
9

skipif mysql # not compatible
query I rowsort
SELECT col0 + - col1 + + cor0.col1 * CAST ( - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
-101
-586
-973

query I rowsort
SELECT ALL - ( col1 ) * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + 81 * col1 + col0 FROM tab0 AS cor0
----
6990
7460
7892

query I rowsort
SELECT 51 * - 82 AS col1 FROM tab0 cor0
----
-4182
-4182
-4182

query I rowsort
SELECT ALL + 89 + - 14 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5793
SELECT CAST( NULL AS DECIMAL ) + col1 / col0 + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5793
SELECT CAST ( NULL AS REAL ) + col1 / col0 + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 82 AS col1 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT - col2 + 12 AS col2 FROM tab1 AS cor0
----
-42
-45
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5796
SELECT ALL - + CAST( NULL AS SIGNED ) * - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5797
SELECT - CAST( col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5797
SELECT - CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col2 * col1 - - 79 * + tab1.col0 AS col1 FROM tab1
----
1641
5626
7568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( col0 ) ) + - col0 * + ( cor0.col0 ) col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT + col0 + col1 DIV + col0 + col2 * ( col1 ) col2 FROM tab0 AS cor0
----
134
2865
7552

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5800
SELECT + col0 + col1 / + col0 + col2 * ( col1 ) col2 FROM tab0 AS cor0
----
134
2865
7552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 + + 56 col1 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT + ( col0 ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + 56 - col2 FROM tab1 AS cor0
----
-1
-40
2

query I rowsort
SELECT DISTINCT + col1 + col1 * 10 AS col1 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT ALL - 43 + - col0 * - col2 - 6 AS col1 FROM tab2 AS cor0
----
140
1979
2953

onlyif mysql # use DIV operator for integer division
query I rowsort label-5806
SELECT DISTINCT + col0 + col1 DIV - 28 FROM tab0 AS cor0
----
21
32
86

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT + col0 + col1 / - 28 FROM tab0 AS cor0
----
21
32
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT DISTINCT + - col2 * - col1 + - CAST( col2 AS SIGNED ) DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT + - col2 * - col1 + - CAST ( col2 AS INTEGER ) / cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + 42 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL cor0.col0 + 38 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0ce6f27cf9e77c6de0e6c0b78e72de62

query I rowsort
SELECT ALL + ( + col1 ) * - 21 FROM tab1 AS cor0
----
-210
-273
-546

onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT DISTINCT 28 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT 28 / + col1 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + ( col2 ) + 18 FROM tab0 AS cor0
----
100
19
51

query I rowsort
SELECT DISTINCT 88 * + col1 + 20 AS col0 FROM tab2 AS cor0
----
1516
2748
5212

query I rowsort
SELECT ALL + col2 + - col1 * 11 - + cor0.col2 * col2 FROM tab0 AS cor0
----
-1067
-2002
-7643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col0 FROM tab2 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT ALL + 31 * col1 * + ( col0 ) - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
19841
2419
32241

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + 31 * col1 * + ( col0 ) - col1 / - col1 AS col0 FROM tab1 AS cor0
----
19841
2419
32241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT cor0.col0 + - 3 DIV col0 FROM tab1 cor0
----
2
64
80

skipif mysql # not compatible
query I rowsort label-5817
SELECT cor0.col0 + - 3 / col0 FROM tab1 cor0
----
2
64
80

query I rowsort
SELECT DISTINCT + - 85 * + cor1.col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-255
-5440
-6800

query I rowsort
SELECT ALL + 87 * + col2 FROM tab2
----
2262
2349
3306

onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT DISTINCT col2 DIV + ( col2 * + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT col2 / + ( col2 * + col0 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT - + col0 + col1 AS col0 FROM tab1 cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col0 FROM tab2, tab2 cor0
----
94

query I rowsort
SELECT - ( + col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col2 * + col1 + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT + col1 * - col2 * col0 AS col0 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - - 14 * + col2 AS col2 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT - cor0.col1 * col0 + col0 AS col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT + col2 * cor0.col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - col2 * tab1.col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - ( + col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - col1 * - col1 + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT 33 * + col0 + col0 * col0 * col0 FROM tab1 AS cor0
----
126
264256
514640

query I rowsort
SELECT DISTINCT - - col1 * 67 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT - col0 * + ( 87 ) + col2 AS col2 FROM tab2 AS cor0
----
-582
-6760
-6835

query I rowsort
SELECT col0 * - 11 - - col1 AS col1 FROM tab0 AS cor0
----
-178
-288
-888

query I rowsort
SELECT - - cor0.col0 + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - col1 + + 85 FROM tab1 cor0
----
59
72
75

query I rowsort
SELECT + + col2 - + 90 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382

query I rowsort
SELECT - + col2 - + col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + col0 * 67 + col0 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT + col1 * - col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col2 - col2 col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - col2 * cor0.col1 * + col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - col1 * + col0 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT DISTINCT col0 DIV col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT col0 / col0 FROM tab0 cor0
----
1

query I rowsort
SELECT - - col2 * col2 * + col1 AS col0 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT ALL col1 - col2 * col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL + col0 + + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - - cor0.col1 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - col1 IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5851
SELECT DISTINCT - col1 DIV - tab2.col0 - + col0 AS col0 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT - col1 / - tab2.col0 - + col0 AS col0 FROM tab2
----
-3
-78
-79

query I rowsort
SELECT col2 * + col1 - + col2 FROM tab1
----
1152
1350
513

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= - col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5854
SELECT DISTINCT + col2 * + col0 * + tab0.col0 + + col0 DIV + col2 FROM tab0
----
1260
19008
649523

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT + col2 * + col0 * + tab0.col0 + + col0 / + col2 FROM tab0
----
1260
19008
649523

query I rowsort
SELECT col2 + + cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT tab2.col0 * col1 * + col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT - tab1.col2 * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3e351fdfa2fd88779f2d7b6136dc00d1

query I rowsort
SELECT col1 * + tab2.col2 - - col1 * col2 AS col2 FROM tab2
----
1292
1674
3068

query I rowsort
SELECT + + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col1 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - ( - col0 ) - - 76 * 23 * col2 AS col1 FROM tab1 AS cor0
----
167888
94395
99700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT + ( - col1 ) DIV ( cor0.col1 ) - + col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-5863
SELECT + ( - col1 ) / ( cor0.col1 ) - + col0 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT ALL 97 * + col0 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-397312
-620800
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col2 * cor0.col0 + - 86 col1 FROM tab1 AS cor0
----
233386
400
614314

query I rowsort
SELECT col2 + + col0 * ( col1 ) FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT col2 - - col1 * ( col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - col0 * - col2 + ( tab2.col2 ) * col1 FROM tab2
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col2 col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL + col0 * + col1 - - 17 * 73 FROM tab1 AS cor0
----
1319
1881
2281

query I rowsort
SELECT DISTINCT col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + 53 + + col2 * - col1 AS col2 FROM tab0 cor0
----
-2785
-44
-7409

query I rowsort
SELECT DISTINCT 1 - - col2 AS col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL - 40 * col0 AS col0 FROM tab2 AS cor0
----
-280
-3120
-3160

query I rowsort
SELECT DISTINCT - col0 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5876
SELECT DISTINCT - col1 DIV + ( col2 + + col1 * col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT - col1 / + ( col2 + + col1 * col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 + - col1 + col2 FROM tab2 cor0
----
-35
-92
4

query I rowsort
SELECT + col1 + ( - 84 ) - + col2 AS col0 FROM tab1 AS cor0
----
-112
-131
-167

query I rowsort
SELECT DISTINCT - + cor0.col1 * 26 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-425
-775

onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT col0 DIV + col1 + 41 * cor0.col1 + + 32 * - cor0.col1 FROM tab2 AS cor0
----
157
279
532

skipif mysql # not compatible
query I rowsort label-5880
SELECT col0 / + col1 + 41 * cor0.col1 + + 32 * - cor0.col1 FROM tab2 AS cor0
----
157
279
532

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + col2 * 63 FROM tab0 AS cor0
----
13447
9472
9475

query I rowsort
SELECT ALL + ( col0 ) * - col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 * - ( col0 ) + - col0 * + col2 AS col2 FROM tab2 cor0
----
-238
-8112
-9243

query I rowsort
SELECT ALL - cor0.col2 + - 32 * col1 - - col2 * - col0 AS col1 FROM tab1 AS cor0
----
-1048
-4025
-8192

query I rowsort
SELECT ALL - 7 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT - 88 AS col1 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - col2 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col2 + 25 AS col2 FROM tab1 AS cor0
----
121
79
82

query I rowsort
SELECT DISTINCT - ( 96 + col0 ) FROM tab2
----
-103
-174
-175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5890
SELECT - CAST( - col2 AS SIGNED ) + - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT - CAST ( - col2 AS INTEGER ) + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 56 + col1 FROM tab1 AS cor0
----
-30
-43
-46

query I rowsort
SELECT DISTINCT col0 + col2 + + ( col0 ) * + col0 AS col2 FROM tab0 cor0
----
1261
633
8092

query I rowsort
SELECT DISTINCT col2 - col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 71 * + col1 FROM tab2 AS cor0
----
1207
2201
4189

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5895
SELECT CAST( NULL AS SIGNED ) * + col2 / col2 + - CAST( 66 * + col0 AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT CAST ( NULL AS INTEGER ) * + col2 / col2 + - CAST ( 66 * + col0 AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab2.col2 * - 8 FROM tab2
----
208
216
304

query I rowsort
SELECT 37 + + tab2.col0 AS col2 FROM tab2
----
115
116
44

query I rowsort
SELECT ALL + 64 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT + - 85 AS col0 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL - col1 * col0 * col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + col1 * col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + 14 * + 96 FROM tab0, tab2 AS cor0
----
1344

query I rowsort
SELECT - 15 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc

query I rowsort
SELECT ALL + - cor1.col1 + 51 * + cor1.col2 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b4c7c26b03a2805dc07d95409b5ba6c1

query I rowsort
SELECT 93 * + cor0.col1 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT 18 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT ALL + col2 * - 75 + + 31 AS col1 FROM tab1
----
-4019
-4244
-7169

query I rowsort
SELECT DISTINCT col1 + col0 * - col2 AS col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT - 75 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT ALL col0 * - col1 * + 46 + col0 FROM tab2
----
-211614
-61699
-9975

onlyif mysql # use DIV operator for integer division
query I rowsort label-5911
SELECT ALL + col2 DIV col0 + + ( col2 ) * + col2 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
16897
3096
6897

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL + col2 / col0 + + ( col2 ) * + col2 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
16897
3096
6897

onlyif mysql # use DIV operator for integer division
query I rowsort label-5912
SELECT + col2 DIV 22 + col1 * + tab1.col2 * tab1.col0 AS col2 FROM tab1
----
36482
4214
99844

skipif mysql # not compatible
query I rowsort label-5912
SELECT + col2 / 22 + col1 * + tab1.col2 * tab1.col0 AS col2 FROM tab1
----
36482
4214
99844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - 99 * - col1 * + col0 AS col2 FROM tab0 AS cor0
----
204336
336105
801801

onlyif mysql # use DIV operator for integer division
query I rowsort label-5915
SELECT - + col2 DIV 42 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-5915
SELECT - + col2 / 42 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
88

query I rowsort
SELECT col0 + 11 FROM tab2 cor0
----
18
89
90

query I rowsort
SELECT DISTINCT + + 12 * ( + col0 ) AS col0 FROM tab0 cor0
----
1068
288
420

query I rowsort
SELECT ALL + + 2 + + cor0.col2 AS col2 FROM tab0 cor0
----
3
35
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5920
SELECT - col1 + + 34 DIV col1 AS col1 FROM tab1 AS cor0
----
-11
-25
-7

skipif mysql # not compatible
query I rowsort label-5920
SELECT - col1 + + 34 / col1 AS col1 FROM tab1 AS cor0
----
-11
-25
-7

query I rowsort
SELECT + col0 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - - ( 23 ) * cor0.col0 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT col2 * + col1 * col1 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT + cor0.col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col2 FROM tab0, tab1, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT col1 * col0 * - tab2.col2 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5927
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 83 * cor0.col0 + - cor0.col0 FROM tab0 cor0
----
1968
2870
7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT - col1 DIV + col1 + col2 + - 69 AS col2 FROM tab2 AS cor0
----
-32
-43
-44

skipif mysql # not compatible
query I rowsort label-5929
SELECT - col1 / + col1 + col2 + - 69 AS col2 FROM tab2 AS cor0
----
-32
-43
-44

query I rowsort
SELECT - col0 + - 72 * col0 AS col2 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT + 8 * col2 AS col0 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT - ( + ( col0 ) ) - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - ( + 38 ) FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT - 96 * + col2 * col1 + col1 FROM tab1 AS cor0
----
-119795
-134758
-54710

query I rowsort
SELECT col1 * + 46 AS col0 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT ALL - 27 * - col2 * + col0 FROM tab0 AS cor0
----
197046
21384
945

query I rowsort
SELECT DISTINCT - + 30 + + col1 AS col1 FROM tab0 AS cor0
----
56
61
67

query I rowsort
SELECT - col1 + col0 * - ( + col0 ) FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL - 58 + - col1 * - 99 AS col1 FROM tab1 AS cor0
----
1229
2516
932

query I rowsort
SELECT ALL - 57 + + cor0.col2 FROM tab1 AS cor0
----
-3
0
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor0.col2 * + ( col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 * ( + 51 ) FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT + - col1 + ( col1 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * - 29 + + 54 AS col2 FROM tab0 AS cor0
----
1011
2432
83

query I rowsort
SELECT cor0.col0 * - col2 * col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - + cor0.col0 * 49 FROM tab0 AS cor0
----
-1176
-1715
-4361

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT DISTINCT + - col0 DIV - 69 col0 FROM tab0 cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT + - col0 / - 69 col0 FROM tab0 cor0
----
0
1

query I rowsort
SELECT + - col1 * 53 FROM tab2 cor0
----
-1643
-3127
-901

query I rowsort
SELECT col2 * 23 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT col1 * + col2 - - col1 * col0 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT - - 66 * + col1 + + col2 + ( cor0.col1 + col2 ) FROM tab1 AS cor0
----
1063
1850
784

query I rowsort
SELECT ALL + col0 * - col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - + 62 * 20 AS col2 FROM tab0 AS cor0
----
-1240
-1240
-1240

query I rowsort
SELECT + + ( + col1 ) * col0 + ( - 73 ) + + col0 AS col0 FROM tab1 AS cor0
----
1047
631
8

query I rowsort
SELECT DISTINCT col1 * col2 * - col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT ALL col2 DIV 45 AS col1 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL col2 / 45 AS col1 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT - 85 FROM tab1, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT + 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5960
SELECT - 32 DIV - col0 + col2 AS col1 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5960
SELECT - 32 / - col0 + col2 AS col1 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT - + 47 * + col2 AS col0 FROM tab0 AS cor0
----
-1551
-3854
-47

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - tab0.col1 * 72 FROM tab0
----
-6192
-6552
-6984

query I rowsort
SELECT + - cor0.col1 * - col0 * col2 + 87 * col2 FROM tab2 cor0
----
121914
54340
8208

query I rowsort
SELECT + - 43 * cor0.col2 * + col0 FROM tab0 AS cor0
----
-1505
-313814
-34056

query I rowsort
SELECT ALL + 81 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT col0 + tab0.col2 * col0 * col0 FROM tab0
----
1260
19032
649611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col2 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - tab1.col0 * col1 - tab1.col0 AS col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT - tab2.col0 + + col0 * - col2 * - col0 FROM tab2
----
1316
158106
237079

query I rowsort
SELECT col1 - tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT tab1.col0 * - col0 * col0 - - col1 AS col0 FROM tab1
----
-1
-262134
-511987

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + + 75 + col2 FROM tab1 cor0
----
129
132
171

query I rowsort
SELECT ALL + + 21 AS col0 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5979
SELECT + 7 DIV col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT + 7 / col1 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT DISTINCT ( + col0 ) DIV 18 col1 FROM tab1 AS cor0
----
0
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT ( + col0 ) / 18 col1 FROM tab1 AS cor0
----
0
3
4

query I rowsort
SELECT DISTINCT - tab0.col1 + + col2 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT 96 * + col0 AS col0 FROM tab2
----
672
7488
7584

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * col0 col2 FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT ALL - col2 * + tab0.col2 + col1 AS col1 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ALL col0 - + col2 * + col1 AS col1 FROM tab1
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT + + col0 DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5987
SELECT + + col0 / col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col1 * + col2 * - tab1.col1 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT col0 * - tab0.col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT tab1.col1 * - col2 FROM tab1
----
-1248
-1404
-570

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT ALL col1 * col0 + - col0 AS col2 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL col0 * col2 - - col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL + col0 + - col2 + - cor0.col1 AS col1 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT DISTINCT col1 + col0 * cor0.col2 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 - + col2 * col0 col0 FROM tab1 AS cor0
----
-3548
-7511
514

query I rowsort
SELECT + col0 * - col0 FROM tab1 AS cor0 WHERE NULL <= - col2 + col2 * - col1 * - col2 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / + col2 col2 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + - col0 col2 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT col1 * col0 + - col0 - col2 AS col1 FROM tab0
----
2007
3359
7928

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT ALL col2 * tab1.col2 AS col2 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT - col2 DIV tab0.col0 + col1 * + col2 - col0 AS col0 FROM tab0
----
2813
62
7373

skipif mysql # not compatible
query I rowsort label-6005
SELECT - col2 / tab0.col0 + col1 * + col2 - col0 AS col0 FROM tab0
----
2813
62
7373

query I rowsort
SELECT tab2.col1 * col0 + - col2 + col0 * col2 AS col1 FROM tab2
----
379
4307
6604

query I rowsort
SELECT DISTINCT - col1 * col0 * + tab0.col1 - + col0 FROM tab0
----
-177528
-329350
-737098

query I rowsort
SELECT ALL - col0 * - col1 AS col0 FROM tab1
----
1040
640
78

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + + col1 * - col1 * + col1 NOT IN ( col2 + col2 / + col0 )
----

query I rowsort
SELECT ALL - - col1 * - 93 - cor0.col1 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT + col0 * - col2 + col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT 38 * 55 + col1 + col2 * 1 FROM tab0 AS cor0
----
2188
2209
2263

query I rowsort
SELECT ALL - col0 - col0 * - col2 * + col2 AS col0 FROM tab2 AS cor0
----
113997
5096
52650

query I rowsort
SELECT ALL + - cor0.col2 + ( + 69 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d4177a7d7d7e347429662bc0d5018fc1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 / col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 / col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 + + 32 FROM tab1
----
112
35
96

query I rowsort
SELECT col2 + 39 FROM tab0 AS cor0
----
121
40
72

query I rowsort
SELECT 21 + col2 AS col0 FROM tab1
----
117
75
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6019
SELECT + CAST( col1 AS SIGNED ) FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6019
SELECT + CAST ( col1 AS INTEGER ) FROM tab1
----
10
13
26

query I rowsort
SELECT tab0.col0 + + tab0.col1 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6021
SELECT - CAST( 15 AS SIGNED ) + - col2 col1 FROM tab1
----
-111
-69
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6021
SELECT - CAST ( 15 AS INTEGER ) + - col2 col1 FROM tab1
----
-111
-69
-72

query I rowsort
SELECT ALL - 90 AS col2 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT ALL 96 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT 55 + col1 DIV + col1 FROM tab1
----
56
56
56

skipif mysql # not compatible
query I rowsort label-6024
SELECT 55 + col1 / + col1 FROM tab1
----
56
56
56

query I rowsort
SELECT + col1 * - 91 * col2 FROM tab0
----
-258258
-679042
-8827

query I rowsort
SELECT col1 + ( - 1 ) FROM tab2 cor0
----
16
30
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6027
SELECT col2 - col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-6027
SELECT col2 - col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT - - cor0.col2 * 34 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT ALL + + col1 + + col0 * ( col0 ) FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - + cor0.col0 * - ( 5 ) AS col1 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT DISTINCT - - col2 + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col0 + col2 * cor0.col0 AS col0 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT ALL - cor0.col1 DIV - CAST( - 14 * + col1 AS SIGNED ) + ( 26 ) FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - cor0.col1 / - CAST ( - 14 * + col1 AS INTEGER ) + ( 26 ) FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT - - cor0.col2 * + col2 + - col2 * col2 * col2 FROM tab1 AS cor0
----
-154548
-181944
-875520

onlyif mysql # use DIV operator for integer division
query I rowsort label-6035
SELECT ALL tab0.col0 - col1 DIV ( - 91 * col0 ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL tab0.col0 - col1 / ( - 91 * col0 ) AS col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT ALL + col2 DIV - tab0.col2 + - 99 FROM tab0
----
-100
-100
-100

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL + col2 / - tab0.col2 + - 99 FROM tab0
----
-100
-100
-100

query I rowsort
SELECT 62 * + cor0.col1 + + tab2.col2 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to bac4e65897f0d5b56c7dba66aab1f499

query I rowsort
SELECT ( 26 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + tab2.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col2 * + cor0.col0 - col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT cor0.col1 * col0 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + col1 + 41 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT ALL + - cor0.col2 + + col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL - col1 * + 22 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT + cor0.col0 * - cor0.col0 - - col1 * - col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT ALL + col0 + + 25 AS col2 FROM tab2 AS cor0
----
103
104
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * - 12 col2 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT + + cor0.col2 * - col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + col0 * + col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT - col1 + 76 * + cor0.col2 - - col0 FROM tab2 AS cor0
----
1995
2028
2950

query I rowsort
SELECT - - col1 * - col0 - col2 * col2 FROM tab0 AS cor0
----
-14823
-3153
-3396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT 92 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT - 25 + - col0 FROM tab1
----
-105
-28
-89

query I rowsort
SELECT - + ( + col2 ) * 75 FROM tab2 AS cor0
----
-1950
-2025
-2850

onlyif mysql # use DIV operator for integer division
query I rowsort label-6057
SELECT tab1.col0 DIV - col0 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6057
SELECT tab1.col0 / - col0 AS col1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - col1 * col1 col2 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT 69 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL - + 55 AS col0 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT ( 9 + + col0 ) * ( + 97 ) AS col2 FROM tab0
----
3201
4268
9506

query I rowsort
SELECT + 44 * - ( col1 ) * + col0 FROM tab1 AS cor0
----
-28160
-3432
-45760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - col0 * - col2 * col2 + col2 * col2 FROM tab1 AS cor0
----
11664
211185
746496

query I rowsort
SELECT ( ( col0 ) ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 + col2 * col1 * 83 AS col2 FROM tab1 AS cor0
----
103504
116529
47246

query I rowsort
SELECT - - col2 * - 81 AS col2 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT ( tab2.col2 ) + col1 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab0, tab1 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab0 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL 55 AS col1 FROM tab0
----
55
55
55

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 58 AS REAL ) * + tab1.col2 - + 58 AS col2 FROM tab1
----
3074
3248
5510

query I rowsort
SELECT 53 + col1 AS col0 FROM tab2 AS cor0
----
112
70
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6074
SELECT col0 * col2 + + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT col0 * col2 + + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - 95 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 37 * col2 FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT DISTINCT - - 45 AS col1 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT + 70 * - cor0.col1 FROM tab0 AS cor0
----
-6020
-6370
-6790

query I rowsort
SELECT ALL + 73 + col0 AS col2 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT - col2 + col0 * + col1 AS col0 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT - 59 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT DISTINCT - 76 * col1 AS col0 FROM tab0 cor0
----
-6536
-6916
-7372

query I rowsort
SELECT col0 + + 9 * 92 + + col2 AS col2 FROM tab1 AS cor0
----
1004
885
949

query I rowsort
SELECT - - col2 + col1 - - 99 * col1 FROM tab2 AS cor0
----
1738
3127
5926

query I rowsort
SELECT DISTINCT col2 - - col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT - 84 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT + + cor0.col0 * 39 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6091
SELECT + col1 - col0 DIV ( cor0.col2 + ( cor0.col2 ) ) FROM tab0 AS cor0
----
80
86
91

skipif mysql # not compatible
query I rowsort label-6091
SELECT + col1 - col0 / ( cor0.col2 + ( cor0.col2 ) ) FROM tab0 AS cor0
----
80
86
91

query I rowsort
SELECT ALL - col0 - - 31 AS col2 FROM tab1 AS cor0
----
-33
-49
28

query I rowsort
SELECT + + cor0.col1 + + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT cor1.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412

query I rowsort
SELECT + - 23 + - cor0.col1 FROM tab2 AS cor0
----
-40
-54
-82

query I rowsort
SELECT - ( cor0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - - col2 * col1 + + col1 FROM tab0 cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - ( ( col2 ) * + ( 55 ) ) col2 FROM tab1 AS cor0
----
-2973
-3199
-5360

query I rowsort
SELECT ALL col0 * - 25 FROM tab2 cor0
----
-175
-1950
-1975

query I rowsort
SELECT col2 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col0 * - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6102
SELECT ALL - col0 * 77 DIV 40 FROM tab1 AS cor0
----
-123
-154
-5

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - col0 * 77 / 40 FROM tab1 AS cor0
----
-123
-154
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT col2 + + 22 DIV 10 FROM tab1 AS cor0
----
56
59
98

skipif mysql # not compatible
query I rowsort label-6103
SELECT col2 + + 22 / 10 FROM tab1 AS cor0
----
56
59
98

query I rowsort
SELECT + col0 * + cor0.col2 + - col1 * + col1 FROM tab0 AS cor0
----
-6604
-9374
-983

query I rowsort
SELECT + col0 * - col1 + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT 97 * col1 AS col0 FROM tab1
----
1261
2522
970

query I rowsort
SELECT DISTINCT + tab0.col1 * tab0.col0 + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL tab2.col1 + col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - 63 + col1 * - tab1.col0 * + tab1.col1 FROM tab1
----
-13583
-2091
-6463

query I rowsort
SELECT ( cor0.col0 * + cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT + 68 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # use DIV operator for integer division
query I rowsort label-6112
SELECT ALL + + col2 + col1 DIV - cor0.col0 AS col0 FROM tab2 cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + + col2 + col1 / - cor0.col0 AS col0 FROM tab2 cor0
----
23
26
38

query I rowsort
SELECT - - col0 * - ( col2 + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT DISTINCT + col2 - + 4 * - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-2650
-343
-580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6115
SELECT col1 + - col2 * CAST( - col2 AS SIGNED ) + + col2 * + col2 FROM tab1 AS cor0
----
18445
5858
6508

skipif mysql # not compatible
query I rowsort label-6115
SELECT col1 + - col2 * CAST ( - col2 AS INTEGER ) + + col2 * + col2 FROM tab1 AS cor0
----
18445
5858
6508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col1 FROM tab0
----
1
33
82

query I rowsort
SELECT - col2 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + cor0.col2 * ( cor0.col0 ) - col0 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT + 45 + - col2 FROM tab2
----
18
19
7

query I rowsort
SELECT ALL - ( col2 ) * + col1 + col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT 55 + + col1 AS col1 FROM tab0 AS cor0
----
141
146
152

query I rowsort
SELECT DISTINCT + + cor0.col0 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab0, tab1, tab0 AS cor0
----
31

query I rowsort
SELECT 53 + - col1 FROM tab0
----
-33
-38
-44

query I rowsort
SELECT ALL 4 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT - 18 + + col2 FROM tab2
----
20
8
9

query I rowsort
SELECT DISTINCT - + col2 + col1 * col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + + cor0.col0 * - col1 * + col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + - 24 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT + + col1 * + cor0.col0 + - 99 FROM tab1 AS cor0
----
-21
541
941

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT ALL + col0 + - col1 + col2 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT - - 33 AS col1 FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL col1 * - col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( - col1 ) * - col2 - - col1 * - col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + col2 * + col0 col1 FROM tab0 AS cor0
----
101
7364
858

query I rowsort
SELECT - + ( - col1 ) + - 65 + + col0 FROM tab2 AS cor0
----
-27
31
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col2 FROM tab2 cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col1 ) + + col0 col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + col0 * + col0 + 73 FROM tab0 AS cor0
----
1298
649
7994

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT DISTINCT + col2 + - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT + col2 + - col0 / col0 AS col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT - col0 * + cor0.col0 + + 76 + + col0 FROM tab0 cor0
----
-1114
-476
-7756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6144
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6146
SELECT + CAST( - 47 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-141
-3008
-3760

skipif mysql # not compatible
query I rowsort label-6146
SELECT + CAST ( - 47 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-141
-3008
-3760

query I rowsort
SELECT + 83 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6149
SELECT ALL + CAST( - col2 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + CAST ( - col2 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL 32 * - cor0.col0 FROM tab2 AS cor0
----
-224
-2496
-2528

query I rowsort
SELECT col1 + - 90 AS col2 FROM tab2 AS cor0
----
-31
-59
-73

query I rowsort
SELECT + - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 6 * - col0 - - ( 99 ) FROM tab2 cor0
----
141
567
573

query I rowsort
SELECT - 74 - - cor0.col1 * col1 FROM tab1 cor0
----
26
602
95

query I rowsort
SELECT 11 * cor0.col0 - col0 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT - - 18 * col1 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
1036
268
531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + - col2 col0 FROM tab2
----
-43
-44
-55

query I rowsort
SELECT tab2.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 5 * + col2 + tab0.col2 FROM tab0
----
198
492
6

query I rowsort
SELECT ALL - ( 48 + col2 ) FROM tab2
----
-74
-75
-86

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
44

query I rowsort
SELECT col2 * ( + col1 ) + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - col2 + col0 * col1 FROM tab1 cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * 32 col0 FROM tab2 cor0
----
1024
1024
1024

query I rowsort
SELECT ALL - col1 * + col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT - + ( col0 ) * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT cor0.col2 + + col0 * + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT 55 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + 14 FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6171
SELECT - 41 * cor1.col1 DIV - ( + 66 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 96f5495513319bdaffd5d2105e3c4f69

skipif mysql # not compatible
query I rowsort label-6171
SELECT - 41 * cor1.col1 / - ( + 66 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 96f5495513319bdaffd5d2105e3c4f69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT + + col2 * cor0.col1 * - col0 + 34 * col0 + ( col0 + + col0 ) DIV + 89 AS col1 FROM tab1 AS cor0
----
-34303
-4110
-97119

skipif mysql # not compatible
query I rowsort label-6172
SELECT + + col2 * cor0.col1 * - col0 + 34 * col0 + ( col0 + + col0 ) / + 89 AS col1 FROM tab1 AS cor0
----
-34303
-4110
-97119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + col2 col1 FROM tab0 AS cor0
----
-26
-58
23

query I rowsort
SELECT ALL - col1 + + 33 + + col0 AS col1 FROM tab1
----
10
100
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6175
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + 99 * + tab0.col0 AS col0 FROM tab0
----
2376
3465
8811

query I rowsort
SELECT + col2 * + 27 FROM tab0
----
2214
27
891

query I rowsort
SELECT ( col0 ) * - col0 + 31 + - ( col1 + col2 ) * 10 * col2 FROM tab1
----
-111009
-42255
-43178

query I rowsort
SELECT ALL + - 44 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6180
SELECT ALL CAST( col2 AS SIGNED ) + col1 col1 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL CAST ( col2 AS INTEGER ) + col1 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT 87 * - col0 AS col0 FROM tab0
----
-2088
-3045
-7743

onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT DISTINCT - - cor0.col2 DIV col1 - + cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT - - cor0.col2 / col1 - + cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 3 + + col2 AS col1 FROM tab1 cor0
----
51
54
93

query I rowsort
SELECT ALL + col1 + + col1 * - 21 AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT col0 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + + col0 + col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - 41 AS col2 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT - + col2 * 18 + col1 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
6826
6894
9426

query I rowsort
SELECT + + col2 + - 71 * cor0.col0 * - col0 + - col0 FROM tab2 AS cor0
----
3499
431912
443070

query I rowsort
SELECT DISTINCT - col1 * col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - col0 + - 85 + 98 AS col1 FROM tab0 AS cor0
----
-11
-22
-76

query I rowsort
SELECT ALL - cor0.col0 * + ( - 26 ) FROM tab2 AS cor0
----
182
2028
2054

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - + col2 * + 22 FROM tab0 AS cor0
----
-1804
-22
-726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( 76 ) col0 FROM tab2 cor0
----
154
155
83

query I rowsort
SELECT ALL tab0.col2 - - col1 * - col0 * - col0 FROM tab0
----
118826
49569
720893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col0 col2 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT + ( - col2 + + col0 ) DIV 38 col2 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6198
SELECT + ( - col2 + + col0 ) / 38 col2 FROM tab2
----
0
1
1

query I rowsort
SELECT 78 * - col0 AS col0 FROM tab1
----
-234
-4992
-6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT ALL + tab1.col1 DIV + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + tab1.col1 / + col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT ( - cor1.col1 ) * 97 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-1261
-2522
-970

query I rowsort
SELECT ALL - col1 + + col2 * col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT - - col1 * col2 + + cor0.col2 * col0 + - 38 FROM tab0 AS cor0
----
14722
3592
94

query I rowsort
SELECT - - cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - - 26 + + cor1.col2 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0 cor1
----
27 values hashing to d4352cb57ce39aa705bd322c37798874

query I rowsort
SELECT ( - ( col1 ) ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + 19 AS col1 FROM tab1 AS cor0
----
19
19
19

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 + col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT + col0 * col1 DIV + 3 + + cor0.col2 * + col2 * - 1 AS col2 FROM tab2 AS cor0
----
-657
-997
858

skipif mysql # not compatible
query I rowsort label-6210
SELECT + col0 * col1 / + 3 + + cor0.col2 * + col2 * - 1 AS col2 FROM tab2 AS cor0
----
-657
-997
858

query I rowsort
SELECT 15 + col1 + - ( col2 * + col2 + - col2 ) AS col2 FROM tab0 AS cor0
----
-6536
-955
112

query I rowsort
SELECT DISTINCT - col2 * - col0 + + ( cor0.col0 ) * - cor0.col1 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT col0 - + col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + + col1 + + col0 + ( 51 * + col0 ) FROM tab2 AS cor0
----
395
4115
4125

onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT DISTINCT + col1 * 21 + col1 DIV - ( + col1 * col0 ) FROM tab0 AS cor0
----
1806
1911
2037

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT + col1 * 21 + col1 / - ( + col1 * col0 ) FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL 7 + 34 AS col0 FROM tab0 cor0
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6217
SELECT ALL 90 * ( col1 ) * + col1 + - 0 * + col2 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
15114
60786
8943

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL 90 * ( col1 ) * + col1 + - 0 * + col2 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
15114
60786
8943

onlyif mysql # use DIV operator for integer division
query I rowsort label-6218
SELECT DISTINCT - col1 DIV + 92 col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT - col1 / + 92 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col2 - - col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + col1 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT ALL cor0.col1 DIV col1 + + col1 + - 61 FROM tab1 AS cor0
----
-34
-47
-50

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL cor0.col1 / col1 + + col1 + - 61 FROM tab1 AS cor0
----
-34
-47
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT ALL + col0 + col1 DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL + col0 + col1 / + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + 63 * + 64 + + col1 AS col1 FROM tab0 AS cor0
----
4118
4123
4129

query I rowsort
SELECT ALL + 5 AS col1 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + col0 + + cor0.col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT col0 - - 86 AS col0 FROM tab1 AS cor0
----
150
166
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col0 col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL + col0 - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + col1 col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - col0 * + 22 AS col0 FROM tab2 cor0
----
-154
-1716
-1738

query I rowsort
SELECT ALL - 11 + + 50 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT 91 - + 52 AS col0 FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT ALL + 14 + - 91 AS col2 FROM tab1 AS cor0
----
-77
-77
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6235
SELECT ALL + 17 DIV + 20 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + 17 / + 20 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 17 + col2 * + col1 FROM tab0 AS cor0
----
2821
7445
80

query I rowsort
SELECT DISTINCT + col1 + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-24
51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * col1 + - col0 * + cor0.col0 col0 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT ALL - - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - 21 * 88 + - col1 FROM tab2 AS cor0
----
-1865
-1879
-1907

query I rowsort
SELECT ALL - col2 + - 79 AS col1 FROM tab0
----
-112
-161
-80

query I rowsort
SELECT ALL - col2 - col2 FROM tab2 AS cor0
----
-52
-54
-76

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
3645 values hashing to f7d7f8e55c3be4391aa225222961d676

query I rowsort
SELECT ALL + + col0 * - col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 * col0 + + 18 AS col0 FROM tab0 AS cor0
----
53
7316
810

query I rowsort
SELECT DISTINCT - col2 * 35 + col1 FROM tab0 cor0
----
-1069
-2779
62

query I rowsort
SELECT col0 + + col1 * col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT ALL 32 * col2 FROM tab1
----
1728
1824
3072

query I rowsort
SELECT ALL - col1 * 30 + col2 * col0 FROM tab0
----
-1788
-2875
4568

query I rowsort
SELECT ALL - col1 + - 83 FROM tab0
----
-169
-174
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6251
SELECT ALL col0 DIV ( col2 ) - col0 AS col1 FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL col0 / ( col2 ) - col0 AS col1 FROM tab1
----
-3
-63
-80

query I rowsort
SELECT ALL col2 - + 23 FROM tab0
----
-22
10
59

query I rowsort
SELECT col1 - + ( tab2.col0 ) * col0 * + tab2.col0 FROM tab2
----
-312
-474493
-493022

query I rowsort
SELECT ALL col0 * + 30 AS col1 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT cor0.col0 * col0 + ( - col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
-912
2603
5952

query I rowsort
SELECT cor0.col2 * - col0 * 59 + col0 * - col0 FROM tab1 AS cor0
----
-219328
-459520
-9567

query I rowsort
SELECT DISTINCT + col1 * 68 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
5815
6106
6595

query I rowsort
SELECT ALL - + col2 * + 6 FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT + 41 + 52 AS col1 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT - + cor0.col1 + - cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL - cor0.col2 - + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a464155f1f6cb07f325fb0d7a4ec61f2

query I rowsort
SELECT DISTINCT - ( - 43 ) FROM tab2, tab0 AS cor0
----
43

query I rowsort
SELECT ALL col1 * - col2 + - col2 * col1 AS col2 FROM tab2 cor0
----
-1292
-1674
-3068

query I rowsort
SELECT + cor0.col0 * - 32 * col1 FROM tab0 AS cor0
----
-108640
-259168
-66048

query I rowsort
SELECT DISTINCT ( - 71 ) AS col2 FROM tab0, tab0 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6267
SELECT - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6268
SELECT DISTINCT - 79 DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT - 79 / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 90 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 7414b682e5ab5dac55bc20746601d17a

query I rowsort
SELECT DISTINCT col0 * - ( + col2 ) AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 83 FROM tab0, tab2, tab1 AS cor0
----
83

query I rowsort
SELECT ( col1 * + col1 ) FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6273
SELECT CAST( - col0 AS SIGNED ) * col0 col0 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6273
SELECT CAST ( - col0 AS INTEGER ) * col0 col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT 46 + - col2 * - col2 FROM tab2 AS cor0
----
1490
722
775

query I rowsort
SELECT - - col0 * - col2 + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ( 32 ) * + col2 AS col1 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT ALL - + 83 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col2 FROM tab1
----
71

query I rowsort
SELECT + ( 46 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT DISTINCT + 78 * col2 + ( + col1 ) * col1 FROM tab1 AS cor0
----
4546
4888
7657

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + + 50 * cor0.col0 + + cor0.col0 * col1 FROM tab1 cor0
----
228
3840
5040

query I rowsort
SELECT + - col0 + col2 AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT col2 * - 84 FROM tab0 AS cor0
----
-2772
-6888
-84

query I rowsort
SELECT DISTINCT + + col2 + 21 FROM tab1 AS cor0
----
117
75
78

query I rowsort
SELECT cor0.col2 + ( + col0 ) * + col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT ALL col0 + ( 1 ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - col0 + 84 + - ( - col0 ) * col0 FROM tab2 AS cor0
----
126
6090
6246

query I rowsort
SELECT DISTINCT col2 * 56 AS col0 FROM tab1 AS cor0
----
3024
3192
5376

query I rowsort
SELECT col0 * + col2 - col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT + col2 * col1 + - col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT + tab2.col0 + col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT - col1 * + col1 * - 16 + col1 AS col2 FROM tab0
----
118422
132587
150641

onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT col2 + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-6294
SELECT col2 + col0 / + col0 AS col1 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT - + col1 * 81 DIV + col1 FROM tab1 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-6295
SELECT - + col1 * 81 / + col1 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6296
SELECT - tab1.col2 * CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6296
SELECT - tab1.col2 * CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT col1 * + col0 + + 48 * 64 * + col0 + - col2 * col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-36224
-367600
8808

query I rowsort
SELECT 98 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT + tab2.col1 * - col0 + col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT col0 * - 40 + col2 AS col2 FROM tab1 AS cor0
----
-2503
-3104
-66

query I rowsort
SELECT 83 FROM tab0, tab1 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL + col0 + 17 FROM tab2
----
24
95
96

query I rowsort
SELECT col0 + 99 AS col2 FROM tab1
----
102
163
179

query I rowsort
SELECT - tab2.col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT col2 + - col1 * col1 + col2 * ( tab0.col2 ) FROM tab0
----
-1475
-6274
-9407

query I rowsort
SELECT - col2 + - ( + col1 + col0 ) AS col2 FROM tab0
----
-133
-143
-262

onlyif mysql # use DIV operator for integer division
query I rowsort label-6308
SELECT + col1 DIV col0 + - 60 FROM tab1
----
-52
-60
-60

skipif mysql # not compatible
query I rowsort label-6308
SELECT + col1 / col0 + - 60 FROM tab1
----
-52
-60
-60

query I rowsort
SELECT col0 * + ( 67 ) AS col0 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT + + col0 * 47 FROM tab1 AS cor0
----
141
3008
3760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6311
SELECT - col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6311
SELECT - col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6312
SELECT DISTINCT - col2 + - CAST( cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - col2 + - CAST ( cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + col0 * - col1 * - col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + 66 FROM tab1, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6315
SELECT - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28

query I rowsort
SELECT + ( - col0 ) * col1 + col2 * - col0 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-16400
-402
-7936

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT 16 DIV + 54 + col0 + - ( - 9 ) AS col2 FROM tab0 AS cor0
----
33
44
98

skipif mysql # not compatible
query I rowsort label-6318
SELECT 16 / + 54 + col0 + - ( - 9 ) AS col2 FROM tab0 AS cor0
----
33
44
98

query I rowsort
SELECT - cor0.col1 * - 95 AS col1 FROM tab1 AS cor0
----
1235
2470
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT + + col2 DIV col1 + - col2 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-6320
SELECT + + col2 / col1 + - col2 FROM tab1 AS cor0
----
-52
-52
-89

query I rowsort
SELECT + - 21 + + cor0.col0 * - 11 FROM tab0 AS cor0
----
-1000
-285
-406

query I rowsort
SELECT - - 73 + col0 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT + col0 * col0 - - col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT col2 + + col0 + cor0.col2 FROM tab1 AS cor0
----
111
178
272

onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT - col0 DIV col1 col0 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6325
SELECT - col0 / col1 col0 FROM tab2
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT ALL + ( col1 ) DIV + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + ( col1 ) / + col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col2 FROM tab2 cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + + col0 * + col1 + + col1 col2 FROM tab2 AS cor0
----
1377
279
4720

query I rowsort
SELECT ALL - - ( + col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6330
SELECT DISTINCT + tab1.col1 DIV col2 + 41 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT + tab1.col1 / col2 + 41 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort
SELECT - col2 * col1 + - CAST ( + col2 AS REAL ) * + col2 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT ALL - 13 + + col1 AS col0 FROM tab0 AS cor0
----
73
78
84

query I rowsort
SELECT ALL + + col2 * col2 + - col0 + col0 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6334
SELECT DISTINCT - ( + col0 ) * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT - ( + col0 ) * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT DISTINCT - 7 + + col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - 7 + + col2 / + col1 FROM tab1 AS cor0
----
-2
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 + col2 col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL + col1 * + 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT tab2.col1 * tab2.col2 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT ALL - col1 + - CAST( - col1 + - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - col1 + - CAST ( - col1 + - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - col1 + - 35 AS col2 FROM tab1 AS cor0
----
-22
-25
-9

query I rowsort
SELECT DISTINCT - - col1 * col2 * - 50 + + col1 AS col1 FROM tab0 AS cor0
----
-141814
-373009
-4753

query I rowsort
SELECT + - cor0.col1 * col2 + 24 FROM tab2 AS cor0
----
-1510
-622
-813

query I rowsort
SELECT DISTINCT + col0 + + col1 * - cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 + + col0 * col2 col2 FROM tab2 AS cor0
----
-2515
1676
3

query I rowsort
SELECT + - col0 + + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT tab2.col2 + 98 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 361b41105b151168e8276a6bd02bec55

query I rowsort
SELECT - ( col0 * col2 ) + col0 AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL tab0.col1 * - col0 + + tab0.col1 - col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col1 * cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - - col0 + + col2 * col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6353
SELECT ALL - CAST( col0 AS SIGNED ) * + col2 + 15 FROM tab2 AS cor0
----
-174
-2013
-2987

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL - CAST ( col0 AS INTEGER ) * + col2 + 15 FROM tab2 AS cor0
----
-174
-2013
-2987

query I rowsort
SELECT + - 33 AS col0 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6355
SELECT ALL CAST( NULL AS SIGNED ) * - 5 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL CAST ( NULL AS INTEGER ) * - 5 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT 60 * col0 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT ALL - ( 79 ) * col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6359
SELECT ALL - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col0 + 58 FROM tab2 AS cor0
----
136
137
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6362
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 * col0 - tab0.col0 * + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( 70 ) AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT + tab1.col2 + - 81 FROM tab1
----
-24
-27
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + col1 * - col0 + - col1 FROM tab2
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col0 + - col1 * col1 * col2 col0 FROM tab0
----
-243276
-671744
-9374

query I rowsort
SELECT + col1 + tab1.col2 + col2 * + col0 AS col1 FROM tab1
----
242
3715
7789

query I rowsort
SELECT col2 * col2 + col2 * col2 - col1 * col2 FROM tab2
----
-182
2242
621

query I rowsort
SELECT col0 * col1 + col0 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT col0 * col0 * col1 AS col2 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - tab2.col0 * + col2 AS col1 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT - col1 * col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6375
SELECT - col1 * col0 / - col1 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col0 + col0 * col0 AS col2 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL + col1 + col2 * col2 AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT + col1 * col2 + col1 * col1 * + col1 AS col2 FROM tab1
----
1570
18980
3445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + + col1 col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + col2 * + col1 * col0 + + col0 AS col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT + col1 * col1 * - col2 + + col1 * + col0 AS col0 FROM tab0
----
-242004
-6014
-670943

query I rowsort
SELECT ALL - col0 - - tab2.col2 * - col1 * + tab2.col0 FROM tab2
----
-119730
-51113
-5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT ALL col0 DIV + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL col0 / + col2 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6384
SELECT ALL - tab0.col0 DIV + col2 AS col0 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - tab0.col0 / + col2 AS col0 FROM tab0
----
-1
-35
0

query I rowsort
SELECT DISTINCT - col2 + - tab2.col1 * - col2 - col2 FROM tab2
----
1482
570
783

query I rowsort
SELECT + tab1.col0 * - tab1.col1 * col0 AS col0 FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT ALL + tab0.col1 DIV - tab0.col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL + tab0.col1 / - tab0.col1 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6388
SELECT ALL col1 DIV col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL col1 / col2 AS col0 FROM tab0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT ALL - col1 DIV col0 col1 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - col1 / col0 col1 FROM tab1
----
-8
0
0

query I rowsort
SELECT col0 * + col0 * col0 AS col1 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT ALL col0 * cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT ALL + col0 + + col2 DIV - col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL + col0 + + col2 / - col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 + - col2 + + col2 AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col1 + col0 + + col1 AS col1 FROM tab0 AS cor0
----
196
229
271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col2 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - cor0.col1 + - col2 * + col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT + + col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col1 / col1
----

query I rowsort
SELECT DISTINCT col0 * col0 * cor0.col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT col0 * - col1 AS col0 FROM tab0 WHERE NULL IN ( col2 + - col2 / col0 )
----

query I rowsort
SELECT + col2 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col1 + 47 AS col1 FROM tab2 AS cor0
----
-12
16
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT DISTINCT + - col1 + - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + - col1 + - cor0.col1 / + col0 FROM tab1 AS cor0
----
-10
-13
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6404
SELECT DISTINCT - + col2 * cor0.col0 DIV col2 + + col2 * - col0 * + col0 col1 FROM tab0 AS cor0
----
-1260
-19032
-649611

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - + col2 * cor0.col0 / col2 + + col2 * - col0 * + col0 col1 FROM tab0 AS cor0
----
-1260
-19032
-649611

query I rowsort
SELECT ALL - 78 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT 53 * col1 FROM tab2
----
1643
3127
901

onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT ALL - 33 DIV cor0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL - 33 / cor0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab1
----
43

query I rowsort
SELECT - col2 + tab1.col0 * + ( col0 ) * + ( + tab1.col2 + col2 ) FROM tab1
----
1228704
466887
918

query I rowsort
SELECT + - ( col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 22 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT tab1.col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + col1 + col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT tab1.col1 * + col2 * + tab1.col0 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT - - col0 + + col0 * 63 FROM tab1 AS cor0
----
192
4096
5120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + col1 * tab2.col0 + + tab2.col0 * col2 FROM tab2
----
406
4345
6630

query I rowsort
SELECT ALL col0 * + col0 * + tab0.col0 AS col1 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT + col1 + + tab2.col2 * - tab2.col2 FROM tab2
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab2.col2 * col0 col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ( + 54 ) AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6423
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col2 FROM tab0
----
91

query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - ( col0 ) * + 39 + - 41 * col1 - + 78 AS col2 FROM tab1 cor0
----
-1261
-2984
-3731

query I rowsort
SELECT + col2 * col2 + + 10 AS col1 FROM tab1 AS cor0
----
2926
3259
9226

query I rowsort
SELECT cor0.col0 * + col0 * + ( - col0 * col0 ) + - ( col0 ) * col1 FROM tab2 AS cor0
----
-2618
-37019658
-38951424

query I rowsort
SELECT ALL + ( col2 ) * + 1 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + col0 * + col0 - - 53 * + col2 AS col2 FROM tab2 cor0
----
1480
7462
8255

query I rowsort
SELECT - col1 * col2 * - col2 + col0 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT ALL + 80 + + col1 AS col1 FROM tab2 AS cor0
----
111
139
97

query I rowsort
SELECT - - col2 * col0 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - col2 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - 46 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - + 43 * col1 + + col0 + col0 * col1 AS col1 FROM tab0 AS cor0
----
-1610
-741
4275

query I rowsort
SELECT - - ( 10 ) + - cor0.col1 FROM tab1 AS cor0
----
-16
-3
0

query I rowsort
SELECT ALL 42 AS col2 FROM tab0
----
42
42
42

query I rowsort
SELECT ALL - tab1.col1 + - col2 * - col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT - 43 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-42
1046
6681

query I rowsort
SELECT col1 * + cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + col1 * col2 * - col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ( col1 + + ( - 72 ) ) AS col2 FROM tab2
----
-13
-41
-55

query I rowsort
SELECT ALL col0 * col1 * col2 AS col1 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 * + ( - 47 ) col2 FROM tab0
----
316028
47
51183

query I rowsort
SELECT 75 AS col0 FROM tab0
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT col0 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6448
SELECT col0 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT - col2 + ( + col0 ) DIV col1 AS col1 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6450
SELECT - col2 + ( + col0 ) / col1 AS col1 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6451
SELECT col1 DIV - 27 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6451
SELECT col1 / - 27 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * 86 AS col0 FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT col0 * ( + 27 ) FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT col2 + 93 * + col0 AS col0 FROM tab2 AS cor0
----
678
7280
7385

query I rowsort
SELECT col2 + tab2.col2 * + col0 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col2 + 97 * + ( col0 ) * + col2 AS col2 FROM tab2
----
18306
196690
291156

query I rowsort
SELECT ALL col2 + + 99 AS col0 FROM tab2 AS cor0
----
125
126
137

query I rowsort
SELECT + col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col0 + 3 FROM tab0 AS cor0
----
27
38
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT ALL + col2 * 11 DIV col0 FROM tab0 cor0
----
0
10
15

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL + col2 * 11 / col0 FROM tab0 cor0
----
0
10
15

query I rowsort
SELECT cor0.col2 * + 67 - cor0.col2 * 66 * col0 FROM tab0 AS cor0
----
-2243
-476174
-50061

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6462
SELECT + CAST( NULL AS SIGNED ) * + 51 + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6462
SELECT + CAST ( NULL AS INTEGER ) * + 51 + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 * col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT - 75 * col1 AS col0 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT ALL - + ( + col2 ) + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL col2 * 26 + col0 AS col2 FROM tab1 cor0
----
1407
1546
2576

query I rowsort
SELECT 43 + - 96 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL - 81 + col1 AS col2 FROM tab0 AS cor0
----
10
16
5

query I rowsort
SELECT ALL + + cor0.col0 * + cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - col2 * - 2 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT col0 * 84 FROM tab0
----
2016
2940
7476

onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT DISTINCT 3 + - col0 * col2 DIV + 9 FROM tab2 AS cor0
----
-18
-222
-330

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT 3 + - col0 * col2 / + 9 FROM tab2 AS cor0
----
-18
-222
-330

onlyif mysql # use DIV operator for integer division
query I rowsort label-6473
SELECT - col0 + + 44 DIV col2 FROM tab0 cor0
----
-23
-89
9

skipif mysql # not compatible
query I rowsort label-6473
SELECT - col0 + + 44 / col2 FROM tab0 cor0
----
-23
-89
9

query I rowsort
SELECT ALL + - col1 + + 36 * col2 FROM tab2 cor0
----
1351
877
941

query I rowsort
SELECT - col2 + + col0 AS col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - - 84 + + col2 AS col2 FROM tab2 AS cor0
----
110
111
122

query I rowsort
SELECT DISTINCT + 9 + col2 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT ALL + col1 * + col0 + + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 2 * cor0.col0 + + 96 * col1 col2 FROM tab2 AS cor0
----
1474
2962
5508

query I rowsort
SELECT - col2 * col1 + ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT 35 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT ALL col1 * cor0.col0 + 98 AS col0 FROM tab0 AS cor0
----
2162
3493
8197

query I rowsort
SELECT ALL + cor0.col0 * cor0.col1 + col2 * + col1 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ALL 1 + col0 * - col0 FROM tab2
----
-48
-6083
-6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT + col2 DIV col1 + col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6485
SELECT + col2 / col1 + col1 FROM tab2
----
19
31
59

query I rowsort
SELECT - tab2.col1 * ( - ( + cor1.col2 ) ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4ac56eb1b1201b1b07557b39398f9b85

query I rowsort
SELECT + col2 * - cor0.col2 * + col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT + col2 + + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - 38 FROM tab0
----
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6490
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL CAST ( NULL AS REAL ) * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 51 * - col0 FROM tab1
----
-150
-3200
-4000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6492
SELECT CAST( NULL AS SIGNED ) + + ( + col1 + tab0.col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT CAST ( NULL AS INTEGER ) + + ( + col1 + tab0.col0 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 15 * col1 * - col2 + + ( + col0 ) * + col2 FROM tab1
----
-11040
-20898
-4902

query I rowsort
SELECT ALL 30 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * tab1.col1 col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT + 14 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL + + 9 + + col1 AS col0 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT DISTINCT + + col1 - col2 * + col1 * 5 AS col1 FROM tab1 AS cor0
----
-2840
-6227
-6994

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - 42 + col0 FROM tab0 AS cor0
----
-18
-7
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-6501
SELECT ALL - cor0.col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL - cor0.col2 / - col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + 44 * + col1 FROM tab1 cor0
----
1144
440
572

query I rowsort
SELECT DISTINCT - - 96 AS col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT col1 * - col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT ALL cor0.col2 * col2 + - 86 * col1 AS col0 FROM tab1 AS cor0
----
2389
680
8098

query I rowsort
SELECT ALL + + 68 + - cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
165
2906
7530

onlyif mysql # use DIV operator for integer division
query I rowsort label-6507
SELECT DISTINCT + - ( - col2 ) + + cor0.col2 * ( col0 ) DIV + col1 FROM tab2 AS cor0
----
214
33
60

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT + - ( - col2 ) + + cor0.col2 * ( col0 ) / + col1 FROM tab2 AS cor0
----
214
33
60

query I rowsort
SELECT + ( 63 ) + cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f238992bff8b42e805fe0bf0a69e4a6c

query I rowsort
SELECT ALL col1 + + 59 AS col0 FROM tab2
----
118
76
90

query I rowsort
SELECT DISTINCT col2 * ( - col1 ) FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 + - col1 * + col2 col1 FROM tab0 AS cor0
----
-750
3333
726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 * ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - cor0.col1 + col0 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
151
1891
2906

query I rowsort
SELECT ALL col0 * - ( - cor0.col0 ) + + col1 + + ( col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-649
4814
5467

query I rowsort
SELECT - col2 + 79 * cor0.col0 * cor0.col1 FROM tab0 cor0
----
163023
268204
639739

query I rowsort
SELECT DISTINCT col2 + - 20 FROM tab1 AS cor0
----
34
37
76

query I rowsort
SELECT - cor0.col1 + - 24 AS col0 FROM tab2 AS cor0
----
-41
-55
-83

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab0 cor0
----
6

query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT col0 + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT 31 * 6 + - col2 FROM tab1 AS cor0
----
129
132
90

query I rowsort
SELECT col0 - - 54 FROM tab0
----
143
78
89

query I rowsort
SELECT + col2 + + ( tab0.col2 ) * tab0.col0 FROM tab0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6528
SELECT CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 89 + 45 AS col1 FROM tab1 AS cor0
----
134
134
134

query I rowsort
SELECT DISTINCT col1 * col2 * - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT DISTINCT col1 + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT - - ( col0 ) + - col2 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 81 ) + + col1 col2 FROM tab0 cor0
----
167
172
178

query I rowsort
SELECT cor0.col1 * + col0 + + cor0.col1 * + col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT + 55 + col0 * col2 AS col2 FROM tab2 AS cor0
----
2083
244
3057

query I rowsort
SELECT ( + col2 ) * 55 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT ALL - 2 AS col2 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT col1 * ( - 34 ) * + col0 - 76 FROM tab2 AS cor0
----
-156544
-45738
-7454

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6540
SELECT - + cor0.col1 * - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT - + cor0.col1 * - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT ALL + col2 + CAST( - col2 * - col2 AS SIGNED ) FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + col2 + CAST ( - col2 * - col2 AS INTEGER ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + + col2 * - col1 + - 80 FROM tab1 AS cor0
----
-1328
-1484
-650

query I rowsort
SELECT col2 * ( - col1 ) + + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + col2 + ( + 29 ) * + col2 + col1 FROM tab2
----
1157
839
841

query I rowsort
SELECT - 94 + + ( - cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to fa9f1c3b4c66dd13dbd8cae158bcb778

query I rowsort
SELECT col0 * 37 FROM tab2
----
259
2886
2923

query I rowsort
SELECT + + cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - 98 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT DISTINCT - col0 * - col1 * 49 FROM tab0 AS cor0
----
101136
166355
396851

query I rowsort
SELECT DISTINCT + col1 + - col1 * + cor0.col0 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT + 76 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-6552
SELECT + 76 / cor0.col0 FROM tab2 AS cor0
----
0
0
10

query I rowsort
SELECT DISTINCT + + ( - col0 ) + + 19 * col0 AS col1 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL - + cor0.col1 + + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 14 + 81 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6557
SELECT DISTINCT - + cor0.col0 * - CAST( 76 AS SIGNED ) FROM tab1 AS cor0
----
228
4864
6080

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT - + cor0.col0 * - CAST ( 76 AS INTEGER ) FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT DISTINCT + - col2 + + ( + col2 + col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col2 * 51 + col2 * col2 FROM tab0 AS cor0
----
10906
2772
52

query I rowsort
SELECT + col1 - + col0 * col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT 45 + col1 AS col1 FROM tab2 AS cor0
----
104
62
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6563
SELECT + - col0 * ( + col0 ) DIV - col1 + - 12 FROM tab0 AS cor0
----
-6
0
75

skipif mysql # not compatible
query I rowsort label-6563
SELECT + - col0 * ( + col0 ) / - col1 + - 12 FROM tab0 AS cor0
----
-6
0
75

query I rowsort
SELECT 93 + - 87 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab0, tab1 AS cor0
----
-19

query I rowsort
SELECT ALL 47 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL - ( - ( - col0 ) ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL 48 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT 26 + col1 AS col0 FROM tab1
----
36
39
52

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT ALL + cor0.col2 * col0 DIV + 25 AS col2 FROM tab0 AS cor0
----
1
291
31

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL + cor0.col2 * col0 / + 25 AS col2 FROM tab0 AS cor0
----
1
291
31

query I rowsort
SELECT 74 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - 98 * 19 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9685feb7192c7e5d1e86d1dd816df334

query I rowsort
SELECT ALL + col1 * 13 FROM tab1
----
130
169
338

query I rowsort
SELECT 6 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT - col1 + col0 * - 54 FROM tab2 AS cor0
----
-409
-4271
-4283

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + - col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL + + 89 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
106
120
148

query I rowsort
SELECT + tab2.col1 + ( 17 + + col1 * col2 ) AS col2 FROM tab2
----
1610
680
885

query I rowsort
SELECT ALL - col1 + col1 + 56 * col0 AS col0 FROM tab2
----
392
4368
4424

query I rowsort
SELECT ALL - tab1.col2 - tab1.col0 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 9b6b643191a390a3a60049db62acd1a4

query I rowsort
SELECT col0 - + ( ( col1 ) ) FROM tab2
----
-24
19
62

query I rowsort
SELECT cor0.col0 + cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b8cf3a0d946da15d11bb8abf87d58a6b

query I rowsort
SELECT + col2 * 44 + col2 + - cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
-1353
-3772
-52

query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-73

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab1, tab1 AS cor0
----
81

query I rowsort
SELECT ALL col2 + col2 * 57 FROM tab2
----
1508
1566
2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT + + col0 DIV - ( col1 ) + cor0.col0 + - 35 * - col0 * col0 FROM tab0 cor0
----
20184
277324
42910

skipif mysql # not compatible
query I rowsort label-6588
SELECT + + col0 / - ( col1 ) + cor0.col0 + - 35 * - col0 * col0 FROM tab0 cor0
----
20184
277324
42910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6589
SELECT DISTINCT - CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT - CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT cor0.col0 + 86 FROM tab1 AS cor0
----
150
166
89

query I rowsort
SELECT ALL + + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 72 * + col2 + + col0 AS col0 FROM tab0 AS cor0
----
107
2400
5993

query I rowsort
SELECT + - 17 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL + 93 * 39 + col0 * col2 - col0 AS col0 FROM tab1 AS cor0
----
11227
3786
7211

query I rowsort
SELECT 82 * - col0 + col1 FROM tab2 AS cor0
----
-543
-6337
-6461

query I rowsort
SELECT - col0 + col2 + cor0.col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + ( col1 ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col2 * 9 FROM tab1 cor0
----
486
513
864

query I rowsort
SELECT - 23 + 52 FROM tab0 AS cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 16 ) col0 FROM tab0 AS cor0
----
16

query I rowsort
SELECT DISTINCT ( + 15 ) AS col1 FROM tab0, tab2 cor0
----
15

query I rowsort
SELECT DISTINCT - 34 + col2 FROM tab2 AS cor0
----
-7
-8
4

query I rowsort
SELECT - 90 * + col0 AS col1 FROM tab1 AS cor0
----
-270
-5760
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 72 + col1 col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT - + ( col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL + + col1 * 59 AS col0 FROM tab1 cor0
----
1534
590
767

query I rowsort
SELECT ALL + col1 * 66 FROM tab2 AS cor0
----
1122
2046
3894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6609
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6609
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT ALL - - ( col1 ) + + cor0.col2 DIV col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - - ( col1 ) + + cor0.col2 / col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT + col2 * 32 + + cor0.col0 FROM tab2 AS cor0
----
1295
871
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6612
SELECT ALL + col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - cor0.col0 * - 29 * + col0 FROM tab0 AS cor0
----
16680
229620
35490

query I rowsort
SELECT ALL - col0 + - 34 FROM tab1 cor0
----
-114
-37
-98

query I rowsort
SELECT ALL 34 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

onlyif mysql # use DIV operator for integer division
query I rowsort label-6616
SELECT DISTINCT + cor0.col0 DIV 84 - - 5 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT + cor0.col0 / 84 - - 5 AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT tab0.col1 + - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT tab1.col1 + col0 AS col1 FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT - + col1 + CAST( - col1 AS SIGNED ) * + col1 col0 FROM tab2 AS cor0
----
-306
-3540
-992

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6619
SELECT - + col1 + CAST ( - col1 AS INTEGER ) * + col1 col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT - ( 88 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1144
-2288
-880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT CAST( NULL AS DECIMAL ) * tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6621
SELECT CAST ( NULL AS REAL ) * tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT tab2.col1 * ( + col1 * col0 ) AS col1 FROM tab2
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT ALL - tab0.col2 DIV 49 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - tab0.col2 / 49 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT - col1 - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 76 + col2 AS col1 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT - col1 + + col1 * + 63 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT col0 * col2 - col0 AS col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT 5 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT 93 - 45 AS col1 FROM tab1
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT DISTINCT - + col0 DIV + col0 + + ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT - + col0 / + col0 + + ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT + col0 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT 81 * + col0 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT ALL + ( col2 ) * col0 - + col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + col2 * col2 * - cor0.col1 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - ( ( - col1 ) ) * 39 + col0 FROM tab1
----
1017
454
587

query I rowsort
SELECT ALL tab2.col1 * ( col2 ) * - col0 + + col0 AS col0 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT 35 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + 60 * + col2 AS col1 FROM tab2
----
1560
1620
2280

query I rowsort
SELECT DISTINCT - col2 - - col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + 18 * ( col1 ) * col2 - + col2 * col0 AS col1 FROM tab2
----
14877
25584
8626

query I rowsort
SELECT 55 + - col1 FROM tab2
----
-4
24
38

query I rowsort
SELECT ALL + col1 * - col1 + - tab0.col0 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT - col1 * + col0 + col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6646
SELECT 2 * tab1.col0 * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6646
SELECT 2 * tab1.col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 70 * - col1 + 36 AS col2 FROM tab2 AS cor0
----
-1154
-2134
-4094

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col2 * col0 + - 82 AS col0 FROM tab0 AS cor0
----
-47
710
7216

query I rowsort
SELECT + - col2 * + col0 + + col1 AS col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + + 92 * + col1 + col0 * col0 AS col1 FROM tab2 AS cor0
----
11512
2901
7805

query I rowsort
SELECT col2 * col2 - 64 AS col2 FROM tab2 cor0
----
1380
612
665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6654
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - tab0.col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - tab0.col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT - tab1.col1 * + col2 AS col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 * col0 col0 FROM tab2
----
413
4602
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6657
SELECT + col0 DIV col0 + col2 AS col2 FROM tab2 cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6657
SELECT + col0 / col0 + col2 AS col2 FROM tab2 cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6658
SELECT col0 * - 0 DIV col0 + col1 * col1 + col0 col0 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6658
SELECT col0 * - 0 / col0 + col1 * col1 + col0 col0 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + col0 + tab1.col0 col2 FROM tab1
----
198
230
76

query I rowsort
SELECT ALL - ( col0 ) + 41 FROM tab2
----
-37
-38
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL 16 + cor0.col2 FROM tab2 AS cor0
----
42
43
54

query I rowsort
SELECT + - col0 + + col0 + + 64 * 54 AS col1 FROM tab1 AS cor0
----
3456
3456
3456

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - 50 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT ALL + + 49 * + col2 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT - col2 * + col0 * col2 + + cor0.col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT + cor0.col1 * col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT tab1.col1 * 20 FROM tab1
----
200
260
520

query I rowsort
SELECT + + col2 + 77 FROM tab1 AS cor0
----
131
134
173

onlyif mysql # use DIV operator for integer division
query I rowsort label-6671
SELECT + col0 DIV col2 + + 40 FROM tab0 AS cor0
----
40
41
75

skipif mysql # not compatible
query I rowsort label-6671
SELECT + col0 / col2 + + 40 FROM tab0 AS cor0
----
40
41
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6672
SELECT - col2 DIV - 25 + + 22 DIV - col2 + 91 * ( col2 ) FROM tab0 AS cor0
----
3004
69
7465

skipif mysql # not compatible
query I rowsort label-6672
SELECT - col2 / - 25 + + 22 / - col2 + 91 * ( col2 ) FROM tab0 AS cor0
----
3004
69
7465

query I rowsort
SELECT + cor0.col1 * - cor0.col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - + ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT cor0.col2 DIV - 82 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT cor0.col2 / - 82 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6676
SELECT - - 58 DIV col0 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6676
SELECT - - 58 / col0 AS col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + col0 + - 35 AS col2 FROM tab1 cor0
----
-32
29
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6678
SELECT - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6678
SELECT - col0 / col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col1 * 62 + col2 FROM tab0 AS cor0
----
5365
5724
6015

query I rowsort
SELECT 11 - - col1 FROM tab1 AS cor0
----
21
24
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col1 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6682
SELECT - + 4 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6682
SELECT - + 4 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 70 col1 FROM tab2
----
1820
1890
2660

query I rowsort
SELECT col1 * + 58 - 52 FROM tab2
----
1746
3370
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-6686
SELECT - - col2 + CAST( col0 AS SIGNED ) DIV - col2 AS col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-6686
SELECT - - col2 + CAST ( col0 AS INTEGER ) / - col2 AS col2 FROM tab0 AS cor0
----
-34
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6687
SELECT - + col2 DIV + 48 col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6687
SELECT - + col2 / + 48 col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + + ( col0 ) col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - 58 * - col2 FROM tab1 AS cor0
----
3132
3306
5568

query I rowsort
SELECT DISTINCT - - 43 FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab0, tab0 AS cor0
----
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT - CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6692
SELECT - CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ( col1 ) * - 72 + col2 AS col1 FROM tab0 AS cor0
----
-6159
-6470
-6983

query I rowsort
SELECT ALL - 8 + - tab1.col0 AS col2 FROM tab1
----
-11
-72
-88

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + cor1.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + 95 + cor0.col2 AS col1 FROM tab1 AS cor0
----
149
152
191

query I rowsort
SELECT + col1 * - col0 + 71 FROM tab1 AS cor0
----
-569
-7
-969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6700
SELECT ( col0 ) - CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6700
SELECT ( col0 ) - CAST ( NULL AS REAL ) * col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col2 FROM tab0, tab2 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 + col2 col1 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT + 29 * col1 AS col0 FROM tab1
----
290
377
754

query I rowsort
SELECT + - cor0.col2 * - col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + col1 * ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - - col2 * col0 + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + cor0.col0 * + col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT col2 + - 15 * col0 AS col0 FROM tab2 cor0
----
-1144
-1147
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6709
SELECT DISTINCT + + col2 DIV - col1 + cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6243

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + + col2 / - col1 + cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6243

query I rowsort
SELECT - - col0 * col1 + + col0 AS col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL col1 - col0 * + col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL col0 * col1 * - cor0.col0 - col1 FROM tab0 AS cor0
----
-118922
-49622
-720902

query I rowsort
SELECT DISTINCT + col1 * col0 - col1 AS col2 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL + col2 + + col0 AS col1 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6715
SELECT tab1.col2 - col1 DIV col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6715
SELECT tab1.col2 - col1 / col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT ALL col2 DIV col0 + col1 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL col2 / col0 + col1 FROM tab0
----
87
91
97

query I rowsort
SELECT DISTINCT col2 + col1 * - col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT DISTINCT col1 * + col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + col2 + col1 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT ALL - - col1 - + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col0 + col1 AS col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT tab2.col2 + + col0 * col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col0 + + tab1.col2 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT tab2.col0 * - col1 + tab2.col1 * col2 FROM tab2
----
-3068
-697
620

query I rowsort
SELECT ALL col2 * - col0 + col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ( - 55 ) FROM tab1
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - - ( + col0 ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - + col2 + col0 * + col2 FROM tab1 cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6729
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col1 FROM tab2
----
3

query I rowsort
SELECT ( col2 ) + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - col1 * 0 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 11 * - col0 FROM tab0
----
264
385
979

query I rowsort
SELECT ( - 52 ) + col2 AS col1 FROM tab1
----
2
44
5

query I rowsort
SELECT + col2 + col1 * + col2 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT - ( - tab1.col1 ) * col2 + col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT cor0.col2 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + col1 + col0 * + col1 * + col0 FROM tab1 AS cor0
----
260
40970
83213

query I rowsort
SELECT ALL - + 72 * col1 FROM tab2 AS cor0
----
-1224
-2232
-4248

onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT cor0.col1 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6740
SELECT cor0.col1 + col2 / col0 AS col2 FROM tab2 AS cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT ALL + 1 + + col2 * + col2 DIV - cor0.col2 FROM tab1 cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL + 1 + + col2 * + col2 / - cor0.col2 FROM tab1 cor0
----
-53
-56
-95

query I rowsort
SELECT 61 - cor0.col1 AS col2 FROM tab2 cor0
----
2
30
44

query I rowsort
SELECT ALL + 77 * + cor0.col1 FROM tab2 AS cor0
----
1309
2387
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + + col1 * - col0 col0 FROM tab2 AS cor0
----
-1332
-206
-4591

query I rowsort
SELECT + cor0.col2 * col1 - - col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL 1 * - cor0.col1 + + col1 * col2 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT DISTINCT - col0 DIV - col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT - col0 / - col0 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT cor0.col1 - + col1 * cor0.col2 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( 11 ) * col0 col1 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT DISTINCT ( col1 ) + + col2 * cor0.col2 * - col2 FROM tab0 AS cor0
----
-35851
-551277
96

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

query I rowsort
SELECT + - ( + ( col0 ) ) * + 9 + + col2 FROM tab0 AS cor0
----
-183
-314
-719

query I rowsort
SELECT ALL 53 AS col0 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + - 49 + col2 + + col0 FROM tab1 AS cor0
----
127
72
8

query I rowsort
SELECT - col1 + + 95 * - col2 AS col0 FROM tab0 cor0
----
-192
-3221
-7881

onlyif mysql # use DIV operator for integer division
query I rowsort label-6756
SELECT col0 DIV - col2 + - 78 AS col2 FROM tab1 AS cor0
----
-78
-78
-79

skipif mysql # not compatible
query I rowsort label-6756
SELECT col0 / - col2 + - 78 AS col2 FROM tab1 AS cor0
----
-78
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + - 66 FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 53 + + col0 AS col0 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT ALL 76 * + col2 AS col2 FROM tab0 AS cor0
----
2508
6232
76

query I rowsort
SELECT 3 + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
124
179
60

query I rowsort
SELECT + + col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2, tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * + ( col2 ) col0 FROM tab2
----
2574
2673
3762

query I rowsort
SELECT ALL ( col1 ) + - col1 * tab1.col0 AS col1 FROM tab1
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + - tab2.col0 + - col0 col1 FROM tab2
----
-120
-130
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT DISTINCT + - cor0.col1 DIV col2 + col2 AS col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT + - cor0.col1 / col2 + col2 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL col1 * 9 - 59 FROM tab0 cor0
----
715
760
814

query I rowsort
SELECT DISTINCT - + col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL - - col2 * 20 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT DISTINCT + - col0 * + col1 - - col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT DISTINCT + - cor0.col2 DIV + col1 + + col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT + - cor0.col2 / + col1 + + col1 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT ALL col2 + - ( col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT col2 * + col2 - col0 AS col2 FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab0
----
-75

query I rowsort
SELECT col2 * col0 + ( + col0 ) * col0 FROM tab0
----
1260
1368
15219

query I rowsort
SELECT ALL col0 * - 35 AS col0 FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT col0 + - 48 * tab0.col1 * tab0.col2 AS col2 FROM tab0
----
-136200
-358087
-4621

onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT col2 DIV ( - col2 + col1 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6780
SELECT col2 / ( - col2 + col1 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - cor0.col1 - 94 FROM tab0 AS cor0
----
-180
-185
-191

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * CAST ( col1 AS REAL ) + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to 38dccc9c32724260ec175f754830d863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6784
SELECT DISTINCT - col0 * CAST( 67 * - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2345
488966
53064

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT - col0 * CAST ( 67 * - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2345
488966
53064

query I rowsort
SELECT ALL col1 * 87 * col2 + + cor0.col1 * + col2 * col2 + col2 FROM tab0 AS cor0
----
1261160
340593
8537

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT col1 + + ( + col2 ) * + cor0.col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + 16 * + ( col2 ) FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT + ( + 85 ) * cor0.col2 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT + + 46 + + col0 FROM tab2 cor0
----
124
125
53

query I rowsort
SELECT - 48 * - col0 * col1 FROM tab1 AS cor0
----
30720
3744
49920

query I rowsort
SELECT + col1 + 32 * cor0.col2 * 96 FROM tab0 AS cor0
----
101462
251995
3169

query I rowsort
SELECT DISTINCT + ( 41 ) AS col0 FROM tab1, tab0 AS cor0
----
41

query I rowsort
SELECT cor0.col2 + - cor0.col2 * + col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col2 + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - - ( + col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col0 + + 38 * - col0 * col0 AS col0 FROM tab1 cor0
----
-155584
-243120
-339

query I rowsort
SELECT ALL + + 95 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT - cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col1 + - col2 * - 92 AS col1 FROM tab1 cor0
----
4994
5254
8845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 + col1 col1 FROM tab2 AS cor0
----
-15
-29
13

query I rowsort
SELECT - col1 * - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col2 col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT 57 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 20114ff960bfa41e8d500828d80abaca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ( - 93 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6809
SELECT ALL + - col1 * CAST( - col2 * - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + - col1 * CAST ( - col2 * - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + col2 * ( - 80 ) * + col0 - 30 * col0 AS col0 FROM tab0 AS cor0
----
-3850
-586510
-64080

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col1 + 83 FROM tab2 AS cor0
----
100
114
142

onlyif mysql # use DIV operator for integer division
query I rowsort label-6813
SELECT ALL col1 DIV - col0 - - col1 * + col1 AS col0 FROM tab0 AS cor0
----
7393
8280
9407

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL col1 / - col0 - - col1 * + col1 AS col0 FROM tab0 AS cor0
----
7393
8280
9407

query I rowsort
SELECT DISTINCT col0 + col2 * tab1.col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL + col0 * col2 + 21 AS col2 FROM tab2
----
2049
210
3023

query I rowsort
SELECT ALL 70 * col0 + + col2 AS col1 FROM tab0
----
1713
2451
6312

query I rowsort
SELECT 86 AS col1 FROM tab0
----
86
86
86

query I rowsort
SELECT - col2 * + col1 * + col1 AS col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ( col2 ) * + 31 FROM tab0
----
1023
2542
31

query I rowsort
SELECT + col2 - - 28 FROM tab0
----
110
29
61

query I rowsort
SELECT col1 * 25 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-3398
-7355
488

query I rowsort
SELECT DISTINCT + col0 * - 43 + cor0.col1 AS col0 FROM tab0 cor0
----
-1408
-3736
-946

query I rowsort
SELECT + col0 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - + cor0.col0 * col1 + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * + cor0.col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) * col0 * ( col0 ) col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col1 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT ALL cor0.col2 * ( cor0.col2 ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT + ( col2 ) DIV + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-6830
SELECT + ( col2 ) / + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT ALL + 31 + + cor0.col1 * + 0 FROM tab0 AS cor0
----
31
31
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT DISTINCT col0 - cor0.col0 DIV + 15 FROM tab0 AS cor0
----
23
33
84

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT col0 - cor0.col0 / + 15 FROM tab0 AS cor0
----
23
33
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6833
SELECT + + ( col1 ) DIV - ( + ( - col0 ) ) - + ( col1 ) col2 FROM tab0 AS cor0
----
-83
-90
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6833
SELECT + + ( col1 ) / - ( + ( - col0 ) ) - + ( col1 ) col2 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT DISTINCT + 35 * - col0 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT ALL + col0 * col2 - + 57 * - col1 FROM tab2 AS cor0
----
1956
3971
5391

query I rowsort
SELECT - 78 + + col1 FROM tab1
----
-52
-65
-68

query I rowsort
SELECT ALL - col1 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - ( col2 ) * col0 * + 79 + - col2 FROM tab1
----
-12852
-288249
-606816

query I rowsort
SELECT 73 * col2 + + col1 * - col2 FROM tab2
----
1134
2128
364

query I rowsort
SELECT DISTINCT tab1.col2 * - col2 + - tab1.col0 FROM tab1
----
-2919
-3313
-9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT ALL + col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL + col1 / - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT 62 * col1 AS col1 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + 99 * - col0 AS col1 FROM tab1 AS cor0
----
-297
-6336
-7920

query I rowsort
SELECT - + col2 + + col0 * - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + col2 - - col2 AS col0 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - col1 * 15 + - col0 FROM tab1 AS cor0
----
-214
-275
-393

query I rowsort
SELECT - col2 - + 27 FROM tab2 AS cor0
----
-53
-54
-65

query I rowsort
SELECT DISTINCT + col0 * - ( 15 ) AS col1 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT - cor0.col0 + 68 + - cor0.col1 FROM tab1 AS cor0
----
-25
-6
39

query I rowsort
SELECT - col1 + + col2 + + col1 * + col0 AS col2 FROM tab2
----
1364
213
4569

query I rowsort
SELECT ALL - tab1.col2 - + col1 AS col2 FROM tab1
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6853
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6853
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + col0 * col2 - - col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6856
SELECT + CAST( - 33 AS SIGNED ) * - cor0.col2 FROM tab2 AS cor0
----
1254
858
891

skipif mysql # not compatible
query I rowsort label-6856
SELECT + CAST ( - 33 AS INTEGER ) * - cor0.col2 FROM tab2 AS cor0
----
1254
858
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT ALL + 2 DIV + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL + 2 / + col1 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07

query I rowsort
SELECT ALL - - tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - 41 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6861
SELECT - - col0 DIV col0 col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6861
SELECT - - col0 / col0 col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col0 * - col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + col0 * - tab1.col0 - col2 FROM tab1
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT DISTINCT 95 DIV + 5 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT 95 / + 5 FROM tab0
----
19

query I rowsort
SELECT tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6866
SELECT DISTINCT - CAST( - col2 + col0 AS SIGNED ) AS col0 FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - CAST ( - col2 + col0 AS INTEGER ) AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT 93 * - 37 + col0 * CAST( NULL AS SIGNED ) * 91 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT 93 * - 37 + col0 * CAST ( NULL AS INTEGER ) * 91 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 + + tab2.col0 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + 18 AS col2 FROM tab2
----
44
45
56

query I rowsort
SELECT ALL + ( - cor0.col1 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - col2 * tab2.col1 * 1 + + col2 AS col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT + + 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT 91 * col1 AS col1 FROM tab0
----
7826
8281
8827

query I rowsort
SELECT 8 * tab1.col2 FROM tab1
----
432
456
768

query I rowsort
SELECT - - 63 * - col0 - col1 FROM tab1 cor0
----
-215
-4042
-5053

query I rowsort
SELECT 5 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9

query I rowsort
SELECT ( col2 ) * - col1 + 46 AS col1 FROM tab1 AS cor0
----
-1202
-1358
-524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6879
SELECT - + CAST( NULL AS SIGNED ) * - col1 + cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT - + CAST ( NULL AS INTEGER ) * - col1 + cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 64 ) * cor0.col1 + 95 AS col1 FROM tab0 AS cor0
----
-5409
-5729
-6113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * + col2 + col1 * 0 col1 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT DISTINCT 92 - 27 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
65

query I rowsort
SELECT ALL - 69 AS col2 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT ( col2 ) * 99 AS col0 FROM tab2 cor0
----
2574
2673
3762

query I rowsort
SELECT 73 * col0 AS col0 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT ALL - col2 + - col1 * ( col0 + col1 ) FROM tab2 AS cor0
----
-1205
-1670
-8109

query I rowsort
SELECT 55 + cor0.col0 AS col1 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT ALL - col2 * + ( col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + col1 * + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT DISTINCT col0 + + 65 DIV col2 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT col0 + + 65 / col2 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT + col0 * 55 + col2 FROM tab0 cor0
----
1353
1926
4977

query I rowsort
SELECT ALL col2 * col0 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT + - cor0.col0 + - ( - col2 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - - col1 * + ( + col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - - col1 + ( cor0.col0 ) * col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + ( tab0.col0 ) + col2 * col1 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT tab2.col0 + - col1 * + ( 89 * - tab2.col2 ) FROM tab2
----
136604
57573
74500

query I rowsort
SELECT + col2 * - 6 FROM tab1 AS cor0
----
-324
-342
-576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6900
SELECT cor0.col2 * CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6900
SELECT cor0.col2 * CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col0 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col1 FROM tab1, tab0 AS cor0
----
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT DISTINCT col0 DIV 37 AS col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT col0 / 37 AS col1 FROM tab2
----
0
2

query I rowsort
SELECT tab1.col2 - col1 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT - col1 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT cor0.col2 + + 96 AS col1 FROM tab2 AS cor0
----
122
123
134

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT col0 + + ( + ( col1 ) ) DIV + 63 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6907
SELECT col0 + + ( + ( col1 ) ) / + 63 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - 1 * 78 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT col2 * 38 FROM tab1 AS cor0
----
2052
2166
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT DISTINCT - col0 + - col1 + + col2 DIV + col2 FROM tab1 AS cor0
----
-28
-73
-92

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT - col0 + - col1 + + col2 / + col2 FROM tab1 AS cor0
----
-28
-73
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab1 AS cor0
----
84
84
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT 59 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6912
SELECT 59 / + col0 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT tab0.col0 + 79 FROM tab0, tab1 AS cor0
----
103
114
168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6914
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - col2 * col2 AS col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - ( col2 ) + + cor0.col0 * col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + cor0.col2 * col0 + + 77 * col2 FROM tab0 AS cor0
----
112
13612
3333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 col0 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + 33 AS col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - tab0.col2 * - 34 + + col2 AS col2 FROM tab0
----
1155
2870
35

query I rowsort
SELECT ALL 91 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - 58 + col1 AS col0 FROM tab2
----
-27
-41
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6924
SELECT ALL CAST( col0 AS SIGNED ) + + col0 col0 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL CAST ( col0 AS INTEGER ) + + col0 col0 FROM tab0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6925
SELECT DISTINCT - cor0.col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - cor0.col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 90 * + col1 + - col1 * col0 FROM tab2 AS cor0
----
187
2573
708

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + col0 col1 FROM tab0 AS cor0
----
18
7
72

query I rowsort
SELECT DISTINCT + + ( - 94 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT DISTINCT col2 DIV col1 - - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT col2 / col1 - - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 68 * + col0 + cor0.col1 AS col2 FROM tab1 cor0
----
-178
-4342
-5427

onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT ALL - col1 + - col1 DIV col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL - col1 + - col1 / col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL col0 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + - 81 * col1 + - col1 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT - 59 + col0 FROM tab2 cor0
----
-52
19
20

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - + col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6938
SELECT ( col1 ) * cor0.col0 * CAST( NULL AS SIGNED ) - cor0.col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT ( col1 ) * cor0.col0 * CAST ( NULL AS INTEGER ) - cor0.col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6939
SELECT tab2.col0 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6939
SELECT tab2.col0 / - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( 81 ) + col0 AS col1 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT ALL + ( ( - col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT tab0.col2 + col0 * col1 AS col1 FROM tab0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6943
SELECT DISTINCT ( col1 ) * CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT ( col1 ) * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - col1 * - 30 AS col2 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT 75 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT col2 + + ( col2 ) AS col2 FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( - col2 AS REAL ) AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT - tab1.col0 * col2 * ( - col1 ) - - col1 * + ( - col2 ) FROM tab1
----
2808
35910
98592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 8 col0 FROM tab2
----
-136
-248
-472

query I rowsort
SELECT 41 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + cor0.col0 + - ( + 92 ) * col1 FROM tab2 AS cor0
----
-1485
-2845
-5350

query I rowsort
SELECT - - col0 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT col2 * ( col0 ) * col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6955
SELECT + col2 + 56 DIV + col2 FROM tab1 AS cor0
----
55
57
96

skipif mysql # not compatible
query I rowsort label-6955
SELECT + col2 + 56 / + col2 FROM tab1 AS cor0
----
55
57
96

query I rowsort
SELECT + - ( + ( col1 ) ) * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - tab2.col1 + - 41 AS col0 FROM tab2
----
-100
-58
-72

query I rowsort
SELECT ALL + - ( col0 ) * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 + + cor0.col0 - - col2 AS col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT + col1 * - 22 * - col2 AS col1 FROM tab2 AS cor0
----
14212
18414
33748

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT ALL - col0 DIV col1 + + col2 * col1 FROM tab1 cor0
----
1242
1404
564

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL - col0 / col1 + + col2 * col1 FROM tab1 cor0
----
1242
1404
564

query I rowsort
SELECT - - col2 * cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + 36 * col1 + cor0.col2 col2 FROM tab2 AS cor0
----
23294
30159
55250

query I rowsort
SELECT + col1 * - col0 + + 7 FROM tab1 cor0
----
-1033
-633
-71

query I rowsort
SELECT col0 * col1 + - 65 FROM tab2 AS cor0
----
1278
152
4537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + - col1 col0 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT - + col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab2, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 + col1 * col0 * - col2 FROM tab0 cor0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - cor0.col0 col1 FROM tab0 AS cor0
----
-17
37
48

query I rowsort
SELECT DISTINCT + + 69 + col2 AS col1 FROM tab1 cor0
----
123
126
165

query I rowsort
SELECT DISTINCT col0 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - - col2 * - 6 FROM tab2 cor0
----
-156
-162
-228

query I rowsort
SELECT - col2 * - 14 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT DISTINCT + col2 * + ( + ( col2 ) ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - - col2 + col1 * + col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + - col2 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL 20 + col2 + col0 FROM tab2
----
124
137
54

query I rowsort
SELECT ALL - 13 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * - col2 + + col1 col0 FROM tab1
----
-406
-446
-755

query I rowsort
SELECT + + col2 * + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL 59 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT 0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + + 58 * col0 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT - + 59 FROM tab1 cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT 81 - col0 FROM tab2 AS cor0
----
2
3
74

query I rowsort
SELECT ALL col1 + 12 FROM tab0
----
103
109
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6991
SELECT DISTINCT + tab1.col0 * - CAST( NULL AS SIGNED ) + ( col2 ) * - col2 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT + tab1.col0 * - CAST ( NULL AS INTEGER ) + ( col2 ) * - col2 col1 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6992
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + tab1.col2 + + ( col1 + - col1 ) * col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col1 * ( - 20 ) + + col2 + ( col1 * col2 ) FROM tab0
----
-1842
1151
5724

query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 70 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT - col2 * - ( col0 * - col2 ) FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT col1 + - tab2.col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT + - col2 * + col2 + 69 + col0 AS col1 FROM tab2 AS cor0
----
-1296
-529
-653

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7000
SELECT + col1 * + CAST( col1 AS SIGNED ) + col1 FROM tab1
----
110
182
702

skipif mysql # not compatible
query I rowsort label-7000
SELECT + col1 * + CAST ( col1 AS INTEGER ) + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT - 6 + + 30 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT ALL + - 91 AS col1 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL col1 + + 75 * col2 FROM tab0 AS cor0
----
172
2561
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7004
SELECT ALL - + CAST( cor0.col1 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - + CAST ( cor0.col1 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col0 * 98 AS col0 FROM tab0 cor0
----
-2352
-3430
-8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7006
SELECT DISTINCT 2 DIV + ( col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT 2 / + ( col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 32 + + col0 AS col1 FROM tab2 AS cor0
----
110
111
39

query I rowsort
SELECT 7 * col1 + + col0 + - col1 * - 45 AS col2 FROM tab0 AS cor0
----
4496
4821
5079

query I rowsort
SELECT ALL + - 19 FROM tab1, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT 99 + + col1 * col1 FROM tab0 AS cor0
----
7495
8380
9508

query I rowsort
SELECT DISTINCT + - 38 * - col2 + col0 FROM tab1 AS cor0
----
2055
2230
3728

query I rowsort
SELECT ALL + - 28 * + col0 AS col0 FROM tab2 AS cor0
----
-196
-2184
-2212

query I rowsort
SELECT - 72 + col0 AS col2 FROM tab1 AS cor0
----
-69
-8
8

query I rowsort
SELECT ALL - col2 + + 82 - col1 AS col0 FROM tab0 AS cor0
----
-16
-37
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7015
SELECT + - CAST( - 28 AS SIGNED ) FROM tab0 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-7015
SELECT + - CAST ( - 28 AS INTEGER ) FROM tab0 AS cor0
----
28
28
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT ALL + ( col0 ) * - col1 - - cor0.col2 DIV col1 FROM tab2 AS cor0
----
-1341
-217
-4602

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + ( col0 ) * - col1 - - cor0.col2 / col1 FROM tab2 AS cor0
----
-1341
-217
-4602

query I rowsort
SELECT ALL - - 38 + col0 * + col1 FROM tab1 AS cor0
----
1078
116
678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col1 FROM tab2
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + + cor0.col0 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 53a408ebc7dbe1ddc8d4d4e374b79a54

query I rowsort
SELECT 65 * 57 FROM tab0
----
3705
3705
3705

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT ALL ( 89 + + col0 ) DIV + col0 AS col2 FROM tab1
----
2
2
30

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL ( 89 + + col0 ) / + col0 AS col2 FROM tab1
----
2
2
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7022
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 35 + col0 * - col1 col0 FROM tab1 AS cor0
----
-290
-585
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT + ( + col0 ) DIV ( col1 ) col1 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7024
SELECT + ( + col0 ) / ( col1 ) col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab0 AS cor0
----
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7026
SELECT + CAST( ( col1 ) AS SIGNED ) + + col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-7026
SELECT + CAST ( ( col1 ) AS INTEGER ) + + col2 FROM tab0
----
119
173
98

query I rowsort
SELECT col1 * + col1 + ( - 39 ) AS col1 FROM tab1 AS cor0
----
130
61
637

query I rowsort
SELECT - + ( + col2 ) + - 85 FROM tab2 cor0
----
-111
-112
-123

onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT - col1 DIV + ( + col1 ) + col0 AS col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-7029
SELECT - col1 / + ( + col1 ) + col0 AS col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT DISTINCT col2 + - ( - 10 + cor0.col0 ) * 53 FROM tab0 AS cor0
----
-1324
-4105
-709

query I rowsort
SELECT col1 - - cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 * + col0 + + 42 * + col2 AS col2 FROM tab2 AS cor0
----
1351
2939
5694

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 * col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT col2 + 60 * col0 FROM tab1 AS cor0
----
234
3897
4896

query I rowsort
SELECT - col2 * - col0 - col0 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * 40 + - 63 * - col0 + - 62 * + col2 col2 FROM tab0 AS cor0
----
2906
4163
6023

query I rowsort
SELECT + - col1 + ( + 43 ) * + col0 + + col1 * ( col1 * - ( 80 ) + + col0 ) AS col2 FROM tab2 AS cor0
----
-18397
-270583
-76393

query I rowsort
SELECT col0 + - 3 + - col2 AS col0 FROM tab1 AS cor0
----
-19
-54
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT + cor0.col1 DIV col2 + + col1 * + col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
7365
8200
9505

skipif mysql # not compatible
query I rowsort label-7040
SELECT + cor0.col1 / col2 + + col1 * + col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
7365
8200
9505

query I rowsort
SELECT 50 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ( col2 ) * col2 + - col1 + - col0 FROM tab1 AS cor0
----
2887
3175
9123

query I rowsort
SELECT + col1 + col2 * - col2 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
-6542
-917
193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7044
SELECT - CAST( - ( col2 - - 39 ) AS SIGNED ) + 78 + + col1 FROM tab2 cor0
----
172
175
202

skipif mysql # not compatible
query I rowsort label-7044
SELECT - CAST ( - ( col2 - - 39 ) AS INTEGER ) + 78 + + col1 FROM tab2 cor0
----
172
175
202

query I rowsort
SELECT - ( - 71 ) + + col1 + - 34 * col0 FROM tab1 cor0
----
-2095
-2636
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7046
SELECT ALL - 48 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - 48 / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + + col0 * col1 AS col0 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT tab0.col0 DIV tab0.col1 + 23 FROM tab0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-7048
SELECT tab0.col0 / tab0.col1 + 23 FROM tab0
----
23
23
23

query I rowsort
SELECT DISTINCT 81 * - col2 AS col0 FROM tab1
----
-4374
-4617
-7776

query I rowsort
SELECT - col0 * + tab0.col2 - + ( col2 ) AS col2 FROM tab0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab0
----
46
46
46

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT DISTINCT + col1 DIV - ( + 13 ) AS col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT + col1 / - ( + 13 ) AS col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col0 col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 + col0 * 37 AS col2 FROM tab1 cor0
----
2311
2864
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7056
SELECT DISTINCT + col2 * CAST( + 93 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3069
7626
93

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + col2 * CAST ( + 93 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3069
7626
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT - col0 + - ( + 2 ) * col0 * col0 - col2 DIV + col0 AS col2 FROM tab0 cor0
----
-1177
-15931
-2485

skipif mysql # not compatible
query I rowsort label-7057
SELECT - col0 + - ( + 2 ) * col0 * col0 - col2 / + col0 AS col2 FROM tab0 cor0
----
-1177
-15931
-2485

onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT + col2 DIV - col1 - - col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-7058
SELECT + col2 / - col1 - - col0 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT DISTINCT col2 + + 41 AS col1 FROM tab2 cor0
----
67
68
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + - col1 + col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT + col0 * cor0.col1 * + 48 AS col2 FROM tab0 AS cor0
----
162960
388752
99072

query I rowsort
SELECT - col2 * + col2 + ( col1 ) * - col0 * col1 FROM tab1
----
-22736
-4944
-9649

query I rowsort
SELECT ALL col0 * 99 FROM tab2 AS cor0
----
693
7722
7821

query I rowsort
SELECT DISTINCT - col1 * 2 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT col2 + + ( + 9 * + col0 ) AS col1 FROM tab2 AS cor0
----
728
749
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT ALL + col2 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + col2 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * - col0 - - 12 FROM tab2 AS cor0
----
-177
-2016
-2990

query I rowsort
SELECT DISTINCT - - col0 * - 42 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT DISTINCT + 3 * col0 AS col0 FROM tab1 AS cor0
----
192
240
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7071
SELECT - col0 * ( cor0.col2 + + 18 ) DIV col1 FROM tab0 cor0
----
-14
-6
-97

skipif mysql # not compatible
query I rowsort label-7071
SELECT - col0 * ( cor0.col2 + + 18 ) / col1 FROM tab0 cor0
----
-14
-6
-97

query I rowsort
SELECT + - 36 * col0 + + col0 * + col2 FROM tab2 AS cor0
----
-63
-780
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + 92 col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT + col1 * ( - col1 ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - 83 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # use DIV operator for integer division
query I rowsort label-7076
SELECT DISTINCT + col2 DIV col0 + col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + col2 / col0 + col1 FROM tab2 AS cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7077
SELECT col0 * + col0 DIV col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7077
SELECT col0 * + col0 / col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - ( 40 ) + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1288
-1444
-610

query I rowsort
SELECT col0 + 76 AS col2 FROM tab2 cor0
----
154
155
83

query I rowsort
SELECT ALL + 6 * cor0.col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT + ( ( col1 ) ) FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 * col2 - + col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 53 + + col2 + - col2 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT ALL col0 + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 + - col1 col2 FROM tab0 cor0
----
-15
-20
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 * + col0 + col0 col2 FROM tab1 AS cor0
----
147
3136
3920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - 33 * col2 + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2533
-970
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( + col0 ) + col1 col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT - col1 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + 47 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL col2 * + 22 + col0 FROM tab0
----
1893
57
750

query I rowsort
SELECT DISTINCT 40 * col0 + col1 AS col0 FROM tab1 AS cor0
----
146
2570
3213

query I rowsort
SELECT DISTINCT + + 82 AS col1 FROM tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT col1 + col0 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
107
1133
714

onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT ALL ( col0 ) DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL ( col0 ) / col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL col1 * - col0 - col1 * col2 AS col0 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT ALL - 52 * col1 - cor0.col2 * col1 FROM tab1 AS cor0
----
-1090
-1924
-2756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 95 * col0 + col2 col1 FROM tab1
----
15444
346617
729696

query I rowsort
SELECT - - col1 * cor0.col1 + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col2 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col2 * col0 * col2 + + col2 AS col1 FROM tab0
----
26169
36
598518

query I rowsort
SELECT DISTINCT + col0 * 66 * + tab2.col0 + + col1 AS col2 FROM tab2
----
3265
401603
411923

query I rowsort
SELECT DISTINCT - cor2.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7107
SELECT CAST( NULL AS SIGNED ) * col2 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT CAST ( NULL AS INTEGER ) * col2 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * + col2 * col2 + col1 + + col0 * - col0 FROM tab1 AS cor0
----
157481
181107
878349

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT - 14 * col2 * col2 + tab0.col0 DIV col2 FROM tab0
----
-15246
-94135
21

skipif mysql # not compatible
query I rowsort label-7109
SELECT - 14 * col2 * col2 + tab0.col0 / col2 FROM tab0
----
-15246
-94135
21

query I rowsort
SELECT + col2 * + 4 * + col1 FROM tab1
----
2280
4992
5616

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT DISTINCT col2 * cor0.col0 + - col2 DIV + col0 AS col1 FROM tab0 cor0
----
35
7298
791

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT col2 * cor0.col0 + - col2 / + col0 AS col1 FROM tab0 cor0
----
35
7298
791

query I rowsort
SELECT - + ( + col2 ) + col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7113
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - cor0.col2 * + 6 + cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
29
594
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + - col0 * col0 col0 FROM tab2 AS cor0
----
-2603
-5952
912

query I rowsort
SELECT DISTINCT cor0.col2 + 17 AS col2 FROM tab0 AS cor0
----
18
50
99

query I rowsort
SELECT - col2 * - 80 + - col0 FROM tab2 AS cor0
----
2002
2153
2961

query I rowsort
SELECT DISTINCT - col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL + 12 * - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-166
-345
-682

query I rowsort
SELECT - 73 * - col0 + - col2 FROM tab0 AS cor0
----
1719
2554
6415

query I rowsort
SELECT ALL - col0 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + col0 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT - col0 * - CAST( col2 * + col0 AS SIGNED ) + ( col2 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
1320
158184
237158

skipif mysql # not compatible
query I rowsort label-7123
SELECT - col0 * - CAST ( col2 * + col0 AS INTEGER ) + ( col2 ) / - col0 AS col2 FROM tab2 AS cor0
----
1320
158184
237158

query I rowsort
SELECT ALL - col0 + ( + ( + col1 ) ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col1 + - ( - 11 ) FROM tab2 AS cor0
----
28
42
70

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7127
SELECT DISTINCT + col2 DIV - ( 12 ) AS col2 FROM tab1
----
-4
-8

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT + col2 / - ( 12 ) AS col2 FROM tab1
----
-4
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT + col1 + + ( 8 ) DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7128
SELECT + col1 + + ( 8 ) / cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7130
SELECT + 84 + - ( - col0 ) DIV 87 FROM tab0 AS cor0
----
84
84
85

skipif mysql # not compatible
query I rowsort label-7130
SELECT + 84 + - ( - col0 ) / 87 FROM tab0 AS cor0
----
84
84
85

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + - cor0.col1 + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT + + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 20 + + col1 AS col0 FROM tab1 AS cor0
----
-10
-7
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT col0 * - col1 + col2 DIV 11 col0 FROM tab2 AS cor0
----
-1340
-215
-4600

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7136
SELECT col0 * - col1 + col2 / 11 col0 FROM tab2 AS cor0
----
-1340
-215
-4600

query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT col2 * + col1 + - col2 * - col0 FROM tab2 AS cor0
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 + col1 col2 FROM tab1 AS cor0
----
100
84
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT + col1 DIV + col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7140
SELECT + col1 / + col0 AS col2 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT + 79 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
79

query I rowsort
SELECT - col1 + - col0 + - cor0.col0 * + col1 AS col0 FROM tab1 cor0
----
-107
-1133
-714

onlyif mysql # use DIV operator for integer division
query I rowsort label-7144
SELECT + col0 DIV col2 AS col1 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7144
SELECT + col0 / col2 AS col1 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT ( col0 + col0 ) * ( col2 ) * ( - 75 ) FROM tab1
----
-1152000
-24300
-547200

query I rowsort
SELECT + col2 * - col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 - col2 col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT col2 * col2 DIV tab2.col0 AS col2 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-7148
SELECT col2 * col2 / tab2.col0 AS col2 FROM tab2
----
104
18
8

query I rowsort
SELECT DISTINCT - col1 - - 3 AS col1 FROM tab0 AS cor0
----
-83
-88
-94

query I rowsort
SELECT - col2 * ( - ( col0 ) ) - + 80 AS col2 FROM tab1 cor0
----
3568
7600
82

query I rowsort
SELECT DISTINCT + + col2 + 66 AS col0 FROM tab1 AS cor0
----
120
123
162

query I rowsort
SELECT DISTINCT + ( cor1.col1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT + col0 DIV + tab1.col1 AS col0 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7153
SELECT + col0 / + tab1.col1 AS col0 FROM tab1
----
0
6
6

query I rowsort
SELECT DISTINCT + col1 * col2 + + 17 * + col0 FROM tab1
----
1455
1658
2608

query I rowsort
SELECT ALL + col1 + 48 FROM tab2
----
107
65
79

query I rowsort
SELECT - col2 + - col0 * - 80 FROM tab1 AS cor0
----
186
5063
6304

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a

query I rowsort
SELECT - - col2 + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT ALL col1 + 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-7159
SELECT ALL col1 + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 67 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT col2 * - 11 + col0 * - col1 AS col2 FROM tab1 cor0
----
-1267
-2096
-672

query I rowsort
SELECT ALL + col2 * - 57 * col1 FROM tab0
----
-161766
-425334
-5529

query I rowsort
SELECT ALL - 19 * + tab1.col1 * - col2 AS col0 FROM tab1
----
10830
23712
26676

query I rowsort
SELECT col0 * col2 + + ( col1 + - col2 ) AS col2 FROM tab2 AS cor0
----
193
2061
2981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - cor0.col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col0 * - col2 * + ( - col2 ) + col2 AS col0 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT 10 * - col0 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-259
-2808
-3792

query I rowsort
SELECT - col0 * col0 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - 55 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
-378
-4212
-4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-7170
SELECT ALL - col0 DIV col0 + + col2 + - col0 * + col2 AS col1 FROM tab2
----
-163
-2003
-2965

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL - col0 / col0 + + col2 + - col0 * + col2 AS col1 FROM tab2
----
-163
-2003
-2965

query I rowsort
SELECT ( + col2 * - col1 ) + 46 AS col0 FROM tab0
----
-2792
-51
-7416

query I rowsort
SELECT ALL ( + col0 ) * tab0.col2 AS col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7173
SELECT - + col1 DIV - 8 + - col1 AS col1 FROM tab0 AS cor0
----
-76
-80
-85

skipif mysql # not compatible
query I rowsort label-7173
SELECT - + col1 / - 8 + - col1 AS col1 FROM tab0 AS cor0
----
-76
-80
-85

query I rowsort
SELECT DISTINCT - ( tab0.col0 + + tab0.col1 ) FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + col2 + - col0 * + ( - col0 + col2 ) FROM tab0 cor0
----
-183
1191
705

query I rowsort
SELECT DISTINCT col2 + col1 * 5 FROM tab2 AS cor0
----
123
182
321

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col0 * col1 FROM tab2 cor0
----
106059
1492
358930

query I rowsort
SELECT DISTINCT + 35 * - col1 AS col0 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT ALL col0 * col0 + - 58 * - col0 FROM tab2 AS cor0
----
10608
10823
455

query I rowsort
SELECT DISTINCT - col1 + - col2 * col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + 73 * + col2 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT ALL - - col2 * - col2 + cor0.col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + - cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * col2 * col0 - ( - col0 * ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-19584
-2450
-657443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - col2 * + col0 * 42 FROM tab0 cor0
----
-1470
-306516
-33264

query I rowsort
SELECT ALL - col2 * - col2 AS col0 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + + col0 + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + 85 * col0 + col1 AS col0 FROM tab0 AS cor0
----
2126
3072
7656

query I rowsort
SELECT + + cor0.col2 + - 45 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-11
59
72

query I rowsort
SELECT DISTINCT - col1 + ( col1 ) FROM tab0
----
0

query I rowsort
SELECT ALL 19 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL + + col2 * 12 AS col2 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT col2 * 1 + col0 * - col1 * - col1 + - ( - cor0.col0 ) FROM tab0 AS cor0
----
177561
329351
737180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 40 col0 FROM tab2 AS cor0
----
-13
-14
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT col2 + + 15 DIV - cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
103
114
192

skipif mysql # not compatible
query I rowsort label-7197
SELECT col2 + + 15 / - cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
103
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL + - 28 * - cor0.col2 FROM tab2 cor0
----
1064
728
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-7200
SELECT + 44 DIV + 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7200
SELECT + 44 / + 75 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7201
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * ( col0 ) + - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT cor0.col0 * - col0 + col1 * 2 * + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1031
5100
7003

query I rowsort
SELECT ALL - + ( col2 ) + cor0.col0 * - col0 FROM tab2 cor0
----
-6110
-6279
-76

query I rowsort
SELECT DISTINCT - 53 * cor0.col0 + col2 FROM tab2 AS cor0
----
-344
-4108
-4149

query I rowsort
SELECT - 60 + - col0 FROM tab1 AS cor0
----
-124
-140
-63

query I rowsort
SELECT ALL + 8 * - col2 FROM tab0 cor0
----
-264
-656
-8

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab2 cor0
----
42

query I rowsort
SELECT DISTINCT col2 * col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL col0 + + ( - col1 ) * + col2 - + col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - - 96 FROM tab2 AS cor0
----
96

query I rowsort
SELECT ALL - 27 * - col0 * - col2 + - col1 + + col0 FROM tab2 AS cor0
----
-5127
-54737
-80992

query I rowsort
SELECT DISTINCT 65 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT ALL - 2 * + col2 FROM tab0 cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT - - ( col1 ) DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7215
SELECT - - ( col1 ) / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * - cor0.col2 + + cor0.col2 AS col0 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7217
SELECT DISTINCT + CAST( - ( cor0.col0 ) AS SIGNED ) * CAST( 83 AS SIGNED ) * col0 + - CAST( + 80 AS SIGNED ) * cor0.col2 + col1 FROM tab1 AS cor0
----
-344518
-5041
-538867

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + CAST ( - ( cor0.col0 ) AS INTEGER ) * CAST ( 83 AS INTEGER ) * col0 + - CAST ( + 80 AS INTEGER ) * cor0.col2 + col1 FROM tab1 AS cor0
----
-344518
-5041
-538867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7218
SELECT + col0 + - ( col0 * - CAST( - col1 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7218
SELECT + col0 + - ( col0 * - CAST ( - col1 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7219
SELECT ALL - CAST( - col2 AS SIGNED ) * col0 + - 63 AS col2 FROM tab1 AS cor0
----
3585
7617
99

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - CAST ( - col2 AS INTEGER ) * col0 + - 63 AS col2 FROM tab1 AS cor0
----
3585
7617
99

query I rowsort
SELECT - 10 * cor0.col1 + col2 FROM tab2 cor0
----
-132
-283
-564

onlyif mysql # use DIV operator for integer division
query I rowsort label-7221
SELECT col2 DIV + ( col0 ) FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7221
SELECT col2 / + ( col0 ) FROM tab2
----
0
0
3

query I rowsort
SELECT tab0.col2 - + 6 FROM tab0
----
-5
27
76

query I rowsort
SELECT col0 * - col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col2 * col0 - + col1 * col0 * 19 FROM tab1 AS cor0
----
-15808
-1644
-27440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7225
SELECT - + CAST( 38 AS SIGNED ) + cor0.col1 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT - + CAST ( 38 AS INTEGER ) + cor0.col1 / - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7226
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + - 84 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - + CAST ( NULL AS REAL ) + - 84 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) + - cor0.col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 52 AS col0 FROM tab1 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * - col2 col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col2 + + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - ( - col1 ) AS REAL ) + + 99 * tab1.col1 FROM tab1
----
1000
1300
2600

onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT DISTINCT + col0 DIV 45 + + 5 * + col2 + col2 FROM tab2 AS cor0
----
157
162
229

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT + col0 / 45 + + 5 * + col2 + col2 FROM tab2 AS cor0
----
157
162
229

query I rowsort
SELECT DISTINCT cor0.col1 + + 87 AS col0 FROM tab0 cor0
----
173
178
184

query I rowsort
SELECT ALL - + col2 + col0 + - col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col1 * - 46 FROM tab1 cor0
----
1196
460
598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + 77 FROM tab0 AS cor0
----
163
168
174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 42 * - tab2.col1 FROM tab2
----
-1302
-2478
-714

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7241
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - 68 AS col0 FROM tab2
----
-61
10
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( col1 ) col2 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7244
SELECT + col1 + + CAST( + col0 AS SIGNED ) + col2 FROM tab1
----
131
189
83

skipif mysql # not compatible
query I rowsort label-7244
SELECT + col1 + + CAST ( + col0 AS INTEGER ) + col2 FROM tab1
----
131
189
83

query I rowsort
SELECT col0 + ( 15 ) + - col0 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT ALL col0 * - 71 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + cor0.col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col1 - col2 * - col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + + col2 * cor0.col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) <= NULL
----

query I rowsort
SELECT ALL col1 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL col2 * cor0.col0 - col1 * cor0.col2 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT cor0.col0 * col2 DIV col1 + + col0 FROM tab0 AS cor0
----
169
33
35

skipif mysql # not compatible
query I rowsort label-7254
SELECT cor0.col0 * col2 / col1 + + col0 FROM tab0 AS cor0
----
169
33
35

query I rowsort
SELECT - col1 * + col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + cor0.col2 + col1 * col1 col2 FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT + - col1 * col0 + + cor0.col2 + - col0 * col2 AS col1 FROM tab0 cor0
----
-15315
-2823
-3429

query I rowsort
SELECT + col2 + - col1 * - col0 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT - - col0 - - col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT tab0.col1 * + tab0.col1 + tab0.col2 + col1 * + tab0.col1 DIV + col1 FROM tab0
----
7515
8454
9507

skipif mysql # not compatible
query I rowsort label-7262
SELECT tab0.col1 * + tab0.col1 + tab0.col2 + col1 * + tab0.col1 / + col1 FROM tab0
----
7515
8454
9507

onlyif mysql # use DIV operator for integer division
query I rowsort label-7263
SELECT col2 DIV tab0.col0 + col0 * col2 AS col0 FROM tab0
----
35
7298
793

skipif mysql # not compatible
query I rowsort label-7263
SELECT col2 / tab0.col0 + col0 * col2 AS col0 FROM tab0
----
35
7298
793

query I rowsort
SELECT - + col2 * - col1 + + col1 + col1 FROM tab2 cor0
----
1652
680
899

query I rowsort
SELECT - col0 + col2 * col1 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT - + col0 * + col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT - col1 + col1 + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT - col1 + col1 + col0 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col1 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * - col1 + - col1 col0 FROM tab0
----
-2117
-3491
-8108

query I rowsort
SELECT ALL col2 * - col2 + + col0 FROM tab2
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT - col2 DIV col2 + - col2 * + tab0.col2 * col2 + - col2 FROM tab0
----
-3
-35971
-551451

skipif mysql # not compatible
query I rowsort label-7271
SELECT - col2 / col2 + - col2 * + tab0.col2 * col2 + - col2 FROM tab0
----
-3
-35971
-551451

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col1 * + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - tab1.col1 + - col2
----

query I rowsort
SELECT DISTINCT col1 * - tab1.col2 + + col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( col2 ) NOT IN ( col1 + col0 )
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT DISTINCT + + 53 + - col2 DIV + 53 AS col1 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + + 53 + - col2 / + 53 AS col1 FROM tab1 AS cor0
----
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7278
SELECT + 84 DIV tab2.col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-7278
SELECT + 84 / tab2.col1 FROM tab2
----
1
2
4

query I rowsort
SELECT DISTINCT + col1 * - 33 + col1 AS col0 FROM tab1 AS cor0
----
-320
-416
-832

query I rowsort
SELECT - col0 * col2 + + col2 + + col2 * + col2 FROM tab0 AS cor0
----
-33
-492
330

query I rowsort
SELECT 40 AS col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT ( col1 ) DIV - 6 FROM tab1
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7282
SELECT ( col1 ) / - 6 FROM tab1
----
-1
-2
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7283
SELECT col1 * col0 / - CAST( NULL AS DECIMAL ) - 20 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT col1 * col0 / - CAST ( NULL AS REAL ) - 20 * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col0 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - 48 * + col2 AS col2 FROM tab1
----
-2592
-2736
-4608

query I rowsort
SELECT DISTINCT col2 - - col2 * - col1 AS col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + col1 - - tab0.col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab2 WHERE NOT - tab2.col2 > NULL
----

query I rowsort
SELECT - col2 * + col0 + + col1 + - col2 AS col0 FROM tab0
----
-7289
-739
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + col1 * - col2 col0 FROM tab2
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col0 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * - col2 col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL + col1 - + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 - col1 AS col2 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7296
SELECT ALL + tab1.col2 - col0 DIV - tab1.col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + tab1.col2 - col0 / - tab1.col2 FROM tab1
----
54
58
96

query I rowsort
SELECT - col1 - - col2 * col0 FROM tab2
----
158
1969
2985

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col0 + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col2 * col1 )
----

query I rowsort
SELECT - col0 FROM tab1 WHERE col1 IN ( + col1 )
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col2 * col0 * col2 + tab0.col1 FROM tab0
----
132
26222
598527

onlyif mysql # use DIV operator for integer division
query I rowsort label-7302
SELECT col2 * - col0 + col2 + - col1 DIV + col0 col1 FROM tab2
----
-166
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7302
SELECT col2 * - col0 + col2 + - col1 / + col0 col1 FROM tab2
----
-166
-2002
-2964

query I rowsort
SELECT + col0 + + col0 * tab2.col1 * col0 AS col2 FROM tab2 WHERE col2 = ( NULL )
----

query I rowsort
SELECT + col2 + + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT + col1 + 2 FROM tab2 AS cor0
----
19
33
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7306
SELECT DISTINCT + col1 * CAST( - col0 AS SIGNED ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT + col1 * CAST ( - col0 AS INTEGER ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + + col0 * ( + 21 ) + + col1 AS col2 FROM tab0 AS cor0
----
1960
590
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-7308
SELECT ALL + col0 DIV - col1 + 73 AS col1 FROM tab1 AS cor0
----
67
67
73

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL + col0 / - col1 + 73 AS col1 FROM tab1 AS cor0
----
67
67
73

query I rowsort
SELECT ALL col0 + + 95 * - col0 * col1 FROM tab2 AS cor0
----
-127506
-20608
-437112

query I rowsort
SELECT DISTINCT - - col0 + ( - 20 ) FROM tab1 AS cor0
----
-17
44
60

query I rowsort
SELECT DISTINCT - col1 + + col0 * + col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT ALL - cor0.col0 - - ( + 36 ) * col2 AS col1 FROM tab1 cor0
----
1941
1988
3376

query I rowsort
SELECT ALL - 83 * tab0.col2 - + col2 * - col0 AS col1 FROM tab0
----
-1947
-48
492

query I rowsort
SELECT 59 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7315
SELECT DISTINCT col2 * + col0 + + col2 DIV + col1 AS col2 FROM tab1
----
164
3653
7687

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT col2 * + col0 + + col2 / + col1 AS col2 FROM tab1
----
164
3653
7687

query I rowsort
SELECT - 90 * col2 FROM tab0 AS cor0
----
-2970
-7380
-90

query I rowsort
SELECT ALL - col2 * col1 + + col0 FROM tab2
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT DISTINCT - - cor0.col0 DIV - ( + col1 ) col2 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT - - cor0.col0 / - ( + col1 ) col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL col1 * + 80 AS col0 FROM tab2 cor0
----
1360
2480
4720

query I rowsort
SELECT tab0.col2 + - 51 FROM tab0
----
-18
-50
31

query I rowsort
SELECT DISTINCT - 0 + - ( tab0.col2 ) FROM tab0, tab2 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col2 * - col2 * col0 - ( ( + col0 ) + 15 ) FROM tab2
----
-114170
-5125
-52821

query I rowsort
SELECT + col2 + 68 * - col2 * - 69 AS col1 FROM tab2
----
122018
126711
178334

query I rowsort
SELECT ALL - - col1 * col1 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
22814
271459
6696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + col1 * ( + col0 ) col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col0 * col2 + - tab2.col2 AS col1 FROM tab2
----
162
2002
2964

query I rowsort
SELECT + + col2 - - col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col1 * col0 + + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - col0 + col1 + ( col1 ) * - col2 * col1 AS col1 FROM tab1 AS cor0
----
-16291
-36481
-5754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + + 77 + col2 AS col1 FROM tab1 cor0
----
131
134
173

query I rowsort
SELECT cor0.col1 * col1 + + 56 * col0 * cor0.col0 FROM tab2 AS cor0
----
344185
349785
3705

query I rowsort
SELECT - - 9 AS col1 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7334
SELECT DISTINCT col0 DIV + col0 col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT col0 / + col0 col0 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7335
SELECT DISTINCT - 70 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT - 70 / - col0 AS col1 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT ALL col0 * col0 + cor0.col1 FROM tab1 cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col0 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - tab1.col2 col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - 39 + + col2 FROM tab0
----
-38
-6
43

query I rowsort
SELECT DISTINCT ( + col2 ) * - col2 + col0 AS col1 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ALL + col1 + - tab1.col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - - cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - tab1.col1 + + col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - cor0.col0 + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT ALL - - col1 * + col0 + + ( - cor0.col1 ) AS col2 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + - col1 - + ( + col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + col2 * col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + - col2 + - col0 * ( col2 ) FROM tab1 AS cor0
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + col2 col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - + 73 col2 FROM tab0 AS cor0
----
-106
-155
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7353
SELECT - col1 * - CAST( cor0.col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-7353
SELECT - col1 * - CAST ( cor0.col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + + cor0.col1 + col0 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL tab0.col0 * + tab0.col1 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL col1 + + ( - col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - + col1 * col0 + - 3 AS col0 FROM tab0 AS cor0
----
-2067
-3398
-8102

query I rowsort
SELECT + - col0 * - 12 + - 28 AS col2 FROM tab1 AS cor0
----
740
8
932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - - col0 + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT + col2 DIV - col0 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7361
SELECT + col2 / - col0 AS col2 FROM tab0 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT - col1 * 18 DIV - col0 AS col1 FROM tab2 AS cor0
----
13
3
79

skipif mysql # not compatible
query I rowsort label-7362
SELECT - col1 * 18 / - col0 AS col1 FROM tab2 AS cor0
----
13
3
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7363
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 + + col2 + - 14 * cor0.col0 / - col2 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 + + col2 + - 14 * cor0.col0 / - col2 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7364
SELECT - CAST( - col2 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7364
SELECT - CAST ( - col2 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col1 * + 62 FROM tab0
----
5332
5642
6014

query I rowsort
SELECT ALL - cor1.col1 * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT - + col2 + + 96 FROM tab0 AS cor0
----
14
63
95

query I rowsort
SELECT ALL cor0.col2 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 42 + col2 * + col2 FROM tab0 AS cor0
----
1131
43
6766

query I rowsort
SELECT + - col1 * + 2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + 17 * cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
10982
14229
26078

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - col2 col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT ( + cor0.col0 ) + - col2 DIV + col0 col1 FROM tab0 AS cor0
----
23
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7373
SELECT ( + cor0.col0 ) + - col2 / + col0 col1 FROM tab0 AS cor0
----
23
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 49 * col2 FROM tab2 AS cor0
----
1274
1323
1862

onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT ALL + col0 * 59 + - col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
177
3776
4720

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + col0 * 59 + - col1 / - col2 AS col2 FROM tab1 AS cor0
----
177
3776
4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 11 + col2 AS col0 FROM tab0 AS cor0
----
12
44
93

query I rowsort
SELECT + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col1 + - col2 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab0 AS cor0
----
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7382
SELECT ALL CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 69 ) col1 FROM tab0
----
69
69
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7384
SELECT + CAST( + col1 AS SIGNED ) + col1 AS col2 FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-7384
SELECT + CAST ( + col1 AS INTEGER ) + col1 AS col2 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * col2 + - col0 * 83 col0 FROM tab1 AS cor0
----
-4970
-6064
75

query I rowsort
SELECT + + ( + 96 ) * col1 - ( col0 ) FROM tab0 cor0
----
8232
8647
9277

query I rowsort
SELECT + 39 + + 14 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT ( col0 ) * - col0 - - col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - 65 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7390
SELECT + col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT + col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 33 FROM tab0, tab0 cor0, tab2, tab2 AS cor1
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

query I rowsort
SELECT 22 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT + - 87 + col1 AS col1 FROM tab1 AS cor0
----
-61
-74
-77

query I rowsort
SELECT - - ( 18 ) FROM tab2 AS cor0
----
18
18
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7395
SELECT + CAST( + 18 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
180
234
468

skipif mysql # not compatible
query I rowsort label-7395
SELECT + CAST ( + 18 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
180
234
468

query I rowsort
SELECT - 33 * - col1 - - col1 AS col0 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT ALL + 79 + col0 - ( col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-1185
-131
-4445

query I rowsort
SELECT - col2 * - col0 + - 9 * 97 AS col0 FROM tab2 AS cor0
----
-684
1155
2129

query I rowsort
SELECT DISTINCT - + 18 + col1 FROM tab0 AS cor0
----
68
73
79

query I rowsort
SELECT + col1 * + col2 * col1 + + col2 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT DISTINCT - - col2 - + col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 * + col0 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + - col2 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 - - 79 * col1 FROM tab1 AS cor0
----
1107
2057
854

query I rowsort
SELECT DISTINCT 34 FROM tab0, tab2 AS cor0
----
34

query I rowsort
SELECT DISTINCT - col0 * 91 + 3 * cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
-1014
-70
1817

query I rowsort
SELECT - col1 * - ( 67 * tab1.col1 ) + tab1.col1 FROM tab1
----
11336
45318
6710

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT col1 * + 91 * - col0 FROM tab2 AS cor0
----
-122213
-19747
-418782

query I rowsort
SELECT + col0 + - 72 * + col2 AS col1 FROM tab0 AS cor0
----
-2352
-37
-5815

query I rowsort
SELECT + col1 * col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT cor0.col0 * + 0 * 70 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col0 * ( col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 * 31 FROM tab0 cor0
----
1023
2542
31

query I rowsort
SELECT + 85 * + 90 FROM tab1 AS cor0
----
7650
7650
7650

query I rowsort
SELECT cor1.col2 * ( 80 ) AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to f515d9c8a268d6963f99405785466cbb

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc

query I rowsort
SELECT DISTINCT + col0 * - 80 FROM tab2 AS cor0
----
-560
-6240
-6320

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab1 cor0
----
52

query I rowsort
SELECT DISTINCT + col2 * 63 AS col1 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT cor0.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ( 89 ) * - col0 * - col0 AS col1 FROM tab0 AS cor0
----
109025
51264
704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-7423
SELECT - + col1 DIV + col0 + - cor0.col1 * col0 * cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6731

skipif mysql # not compatible
query I rowsort label-7423
SELECT - + col1 / + col0 + - cor0.col1 * col0 * cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6731

query I rowsort
SELECT ( - col1 ) * 69 FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT ALL + + col2 + - col0 * ( + col2 ) FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT ALL + - col0 DIV + col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + - col0 / + col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT + tab2.col2 DIV tab2.col0 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7427
SELECT + tab2.col2 / tab2.col0 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col1 + - col1 * - 81 FROM tab0 AS cor0
----
7052
7462
7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col1 col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * cor0.col0 * + ( col2 ) col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT ALL - col0 DIV ( 52 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - col0 / ( 52 ) FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col1 * ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + - cor0.col1 + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col2 * 24 + 1 FROM tab0 AS cor0
----
1969
25
793

query I rowsort
SELECT ( - col0 + + col0 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7437
SELECT ALL col1 + - col1 + col2 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL col1 + - col1 + col2 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab2
----
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7439
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL 25 FROM tab0
----
25
25
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7441
SELECT DISTINCT + + CAST( 65 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
1560
2275
5785

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT + + CAST ( 65 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
1560
2275
5785

query I rowsort
SELECT + + 86 + 84 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1007
1704
816

query I rowsort
SELECT ALL col1 * + cor0.col2 + col1 * 75 AS col2 FROM tab0 AS cor0
----
14287
7372
9288

query I rowsort
SELECT + ( cor0.col2 ) + col0 + - col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT - cor0.col1 * 5 AS col2 FROM tab1 AS cor0
----
-130
-50
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + - col0 col2 FROM tab2 AS cor0
----
-44
-45
27

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7448
SELECT ALL - col0 DIV - col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL - col0 / - col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT + 63 + + 98 * cor0.col2 AS col0 FROM tab2 cor0
----
2611
2709
3787

query I rowsort
SELECT ALL + + col0 * cor0.col0 + + col2 + + 34 AS col1 FROM tab0 AS cor0
----
1260
643
8037

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT - CAST( NULL AS SIGNED ) * col0 + cor0.col0 * 56 + + col1 * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT - CAST ( NULL AS INTEGER ) * col0 + cor0.col0 * 56 + + col1 * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - + 60 + + col0 * - col1 FROM tab0 cor0
----
-2124
-3455
-8159

query I rowsort
SELECT ALL + 70 AS col1 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT - col0 + col0 + ( 96 ) FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + ( col2 ) + - col2 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 * + cor0.col0 col1 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT DISTINCT + 7 * + col2 AS col0 FROM tab0 AS cor0
----
231
574
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7460
SELECT ALL - 7 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - 7 / col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 43 + - col2 FROM tab2 AS cor0
----
16
17
5

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 + col1 + + col0 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + 4 * + col0 + col2 FROM tab2
----
338
354
55

query I rowsort
SELECT DISTINCT 18 - + col0 AS col2 FROM tab2
----
-60
-61
11

query I rowsort
SELECT 42 * - tab0.col1 FROM tab0
----
-3612
-3822
-4074

query I rowsort
SELECT - ( + col0 ) * - col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 + + 37 * - 43 FROM tab2 AS cor0
----
-1532
-1560
-1574

onlyif mysql # use DIV operator for integer division
query I rowsort label-7469
SELECT ALL col2 DIV ( col1 ) + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL col2 / ( col1 ) + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 - col1 * 58 FROM tab1 AS cor0
----
-1562
-637
-850

query I rowsort
SELECT ALL col2 * + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col1 + ( 64 + col0 ) * - ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-13811
-3592
-7286

query I rowsort
SELECT - - col2 * ( 25 ) + col1 FROM tab2 AS cor0
----
706
709
967

query I rowsort
SELECT ALL - cor0.col0 * + col0 + 67 FROM tab2 AS cor0
----
-6017
-6174
18

query I rowsort
SELECT ALL + col0 * - 31 AS col0 FROM tab1 AS cor0
----
-1984
-2480
-93

query I rowsort
SELECT DISTINCT col0 + - 86 FROM tab1 AS cor0
----
-22
-6
-83

query I rowsort
SELECT ALL + + col1 * col2 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT tab1.col0 - + col0 * col2 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL + tab1.col1 * + col1 AS col2 FROM tab1
----
100
169
676

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2, tab1 AS cor3
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7482
SELECT + col2 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-7482
SELECT + col2 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col1 * + ( ( cor0.col1 ) ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - cor0.col2 * - ( - col2 + + col1 ) FROM tab2 AS cor0
----
-798
108
858

skipif mysql # not compatible
query I rowsort
SELECT col1 - + CAST ( ( col2 ) AS REAL ) AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT - col2 * + 2 AS col1 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT + + 0 + 26 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT ALL 71 * 82 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 4cffd82593f5356cc7b9d386533486ea

query I rowsort
SELECT + 97 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + 36 AS col1 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT ( col0 * tab0.col2 ) + - 5 AS col2 FROM tab0
----
30
7293
787

onlyif mysql # use DIV operator for integer division
query I rowsort label-7492
SELECT col2 DIV - tab1.col0 col0 FROM tab1
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7492
SELECT col2 / - tab1.col0 col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT DISTINCT + 77 + + col2 * + col1 AS col1 FROM tab2
----
1611
723
914

query I rowsort
SELECT ALL col0 * - 92 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-1792
-267
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT DISTINCT - col2 * ( + col2 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT - col2 * ( + col2 ) / + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 61 * col2 AS col0 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT ALL - ( - col1 ) + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL cor0.col0 + 25 AS col2 FROM tab1 AS cor0
----
105
28
89

query I rowsort
SELECT ALL col1 - col2 * - col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - 78 * + 41 FROM tab1 AS cor0
----
-3198

query I rowsort
SELECT DISTINCT ( + col0 ) + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - - 30 + + col0 * col2 FROM tab1 AS cor0
----
192
3678
7710

query I rowsort
SELECT DISTINCT 30 * cor0.col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT ALL ( tab0.col0 ) * col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - 26 + col1 * + col2 * ( col1 * - 36 ) AS col1 FROM tab0
----
-24445538
-338750
-8786474

query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT DISTINCT cor0.col2 DIV - col0 AS col1 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT cor0.col2 / - col0 AS col1 FROM tab2 cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + + cor0.col1 * cor0.col0 + 70 col0 FROM tab0 cor0
----
2183
3514
8218

query I rowsort
SELECT ALL - 95 * + col2 - - col2 AS col0 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT + col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col2 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7512
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) * - 74 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) * - 74 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 - + 5 FROM tab0 AS cor0
----
-102
-91
-96

query I rowsort
SELECT - + col0 * 2 + col1 FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 32 col0 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT - 22 FROM tab1, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 73 + col0 * - col0 * - col0 col0 FROM tab2 AS cor0
----
270
474479
492966

query I rowsort
SELECT + cor1.col1 * + 46 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1c6a3d85aee9ac407b6b1c327ddaa39e

query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 32 * - 57 FROM tab0
----
-1824
-1824
-1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7522
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 69 * - col0 FROM tab1
----
-207
-4416
-5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-7524
SELECT DISTINCT 30 DIV col0 AS col1 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT 30 / col0 AS col1 FROM tab2
----
0
4

query I rowsort
SELECT col1 + + col2 + col0 * + col1 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT 17 + + col2 FROM tab2 cor0
----
43
44
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7527
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 99 + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 99 + col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7528
SELECT DISTINCT + ( + ( col1 ) ) * col1 * - col2 + col1 + - CAST( - 83 AS SIGNED ) * + col1 * cor0.col0 col0 FROM tab2 AS cor0
----
-7905
100504
291519

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT + ( + ( col1 ) ) * col1 * - col2 + col1 + - CAST ( - 83 AS INTEGER ) * + col1 * cor0.col0 col0 FROM tab2 AS cor0
----
-7905
100504
291519

query I rowsort
SELECT ALL cor0.col0 - ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col1 + - col1 * - col2 FROM tab2 cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7531
SELECT ALL - CAST( 91 AS SIGNED ) FROM tab2
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - CAST ( 91 AS INTEGER ) FROM tab2
----
-91
-91
-91

query I rowsort
SELECT ALL - + cor0.col0 + - col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT cor1.col0 + + 83 * 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 98ace58795ae3a16ef1ce79909f82bb7

query I rowsort
SELECT ALL + - cor1.col1 * cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a811f2025e810c126c8e7210b4f3f570

query I rowsort
SELECT + cor1.col2 * 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 315f93d11152c2cf40009a8d4d7c678c

query I rowsort
SELECT - cor0.col1 * cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab0
----
17
17
17

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

query I rowsort
SELECT - - col2 + cor0.col0 * 94 AS col0 FROM tab0 cor0
----
2289
3291
8448

query I rowsort
SELECT + ( col2 ) + col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-7541
SELECT + tab0.col0 - + col0 DIV + 35 AS col0 FROM tab0
----
24
34
87

skipif mysql # not compatible
query I rowsort label-7541
SELECT + tab0.col0 - + col0 / + 35 AS col0 FROM tab0
----
24
34
87

query I rowsort
SELECT ALL 50 AS col2 FROM tab1
----
50
50
50

query I rowsort
SELECT - 75 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7321
8206
9334

query I rowsort
SELECT DISTINCT col0 + - col2 * + ( - col2 ) * + cor0.col0 - 99 AS col1 FROM tab2 AS cor0
----
114056
5011
52707

onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT DISTINCT col1 + + cor0.col2 DIV - 82 + - 83 * cor0.col2 FROM tab1 AS cor0
----
-4456
-4721
-7956

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT col1 + + cor0.col2 / - 82 + - 83 * cor0.col2 FROM tab1 AS cor0
----
-4456
-4721
-7956

query I rowsort
SELECT ( - 89 ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT ALL + - col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + + col2 * - col2 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + + col0 * col0 + + col2 * - col0 AS col1 FROM tab0 cor0
----
-216
1190
623

query I rowsort
SELECT - cor0.col2 * 27 FROM tab2, tab1 AS cor0
----
9 values hashing to 92bd8e1eb4b81f6f35035e5d5125634d

query I rowsort
SELECT + - cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7552
SELECT DISTINCT col0 DIV tab2.col1 - col0 FROM tab2
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT col0 / tab2.col1 - col0 FROM tab2
----
-7
-75
-77

query I rowsort
SELECT - col0 * + ( col0 ) * - col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT col1 * - ( col0 * - tab1.col2 ) AS col0 FROM tab1
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7555
SELECT + + cor0.col0 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-7555
SELECT + + cor0.col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 col1 FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ( - col2 ) + - col2 FROM tab0 cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 29 AS REAL ) + col0 * + col0 FROM tab1 AS cor0
----
-20
4067
6371

query I rowsort
SELECT - - 69 + + 43 FROM tab0 AS cor0
----
112
112
112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7560
SELECT - CAST( + cor0.col0 AS SIGNED ) * col2 * - 85 col0 FROM tab1 AS cor0
----
13770
310080
652800

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7560
SELECT - CAST ( + cor0.col0 AS INTEGER ) * col2 * - 85 col0 FROM tab1 AS cor0
----
13770
310080
652800

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) * + col2 * - ( 72 ) FROM tab0 AS cor0
----
-204336
-537264
-6984

query I rowsort
SELECT + ( 94 + - tab1.col1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to a1c8718c6405545e256bf2a85477f3ce

query I rowsort
SELECT col0 * - cor0.col0 - - col1 * - col1 FROM tab2 AS cor0
----
-1010
-6530
-9565

query I rowsort
SELECT ALL + 91 * 12 * col0 FROM tab0 AS cor0
----
26208
38220
97188

query I rowsort
SELECT ALL col2 * 76 AS col1 FROM tab0
----
2508
6232
76

query I rowsort
SELECT DISTINCT - 94 * cor1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-1598
-2914
-5546

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2, tab0 cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7568
SELECT DISTINCT col1 DIV cor0.col1 + 39 * cor0.col1 * 68 AS col2 FROM tab1 cor0
----
26521
34477
68953

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT col1 / cor0.col1 + 39 * cor0.col1 * 68 AS col2 FROM tab1 cor0
----
26521
34477
68953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - 35 + + col2 col0 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT ALL - cor0.col0 - - 86 FROM tab2 AS cor0
----
7
79
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 28 + + col0 col0 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT col2 + - 45 * col0 FROM tab0
----
-1047
-1574
-3923

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT cor0.col2 * 58 + - col0 AS col2 FROM tab1 AS cor0
----
3129
3242
5488

query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT + + cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab0 cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7577
SELECT - CAST( + col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-7577
SELECT - CAST ( + col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL 42 + col2 FROM tab2
----
68
69
80

query I rowsort
SELECT ALL - + ( - cor0.col0 ) + col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - 91 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to ef93c6bfa06f5a2259971541054317e0

query I rowsort
SELECT - + 30 * 60 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-147682
-1801
-59433

query I rowsort
SELECT - + ( - col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + - 66 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT - col0 * + col2 - col0 AS col2 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT 13 * col2 FROM tab1
----
1248
702
741

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT col1 * - col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL cor0.col2 * + col2 + 73 FROM tab0 AS cor0
----
1162
6797
74

query I rowsort
SELECT - + col1 * + col0 + - col2 AS col1 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + col1 * - col2 * + 34 AS col1 FROM tab1 AS cor0
----
-19380
-42432
-47736

query I rowsort
SELECT DISTINCT col2 * - col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - - col1 * - col2 + cor0.col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2772
-7298
-95

query I rowsort
SELECT ALL col0 * 83 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT - col2 + - 54 AS col1 FROM tab1 AS cor0
----
-108
-111
-150

query I rowsort
SELECT DISTINCT col0 * - 18 + - col0 AS col2 FROM tab1 cor0
----
-1216
-1520
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col1 * col2 col1 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT col1 * - 51 AS col1 FROM tab2 AS cor0
----
-1581
-3009
-867

query I rowsort
SELECT DISTINCT - - cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7599
SELECT + + col0 * CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7599
SELECT + + col0 * CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 + + ( - col2 ) * col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col0 * 36 * - cor0.col1 + + ( col2 ) col1 FROM tab1 cor0
----
-22993
-2780
-37357

query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col1 * + col2 FROM tab1 cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7603
SELECT DISTINCT - cor0.col1 * CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 2 * - col1 + + col0 * - col0 + col1 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
93

query I rowsort
SELECT col0 * + col2 + + col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL + cor0.col0 * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * col0 col2 FROM tab1
----
162
3648
7680

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455

onlyif mysql # use DIV operator for integer division
query I rowsort label-7610
SELECT + + col1 + CAST( col1 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7610
SELECT + + col1 + CAST ( col1 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + col1 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + tab1.col2 col0 FROM tab1
----
0

query I rowsort
SELECT ( + 67 ) FROM tab1, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL tab0.col1 * 54 FROM tab0
----
4644
4914
5238

query I rowsort
SELECT col0 * 64 + tab1.col0 * col1 AS col0 FROM tab1
----
270
4736
6160

query I rowsort
SELECT ALL 33 + 43 + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 719b098ad7882ed93b6f9019454b38f2

query I rowsort
SELECT DISTINCT col1 * + ( + col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - 36 * + col2 + - ( - col2 ) AS col2 FROM tab2 cor0
----
-1330
-910
-945

onlyif mysql # use DIV operator for integer division
query I rowsort label-7619
SELECT - cor0.col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7619
SELECT - cor0.col2 / + col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 * col1 * - ( - col0 ) FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT cor0.col2 DIV cor0.col0 + - col1 FROM tab2 cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-7621
SELECT cor0.col2 / cor0.col0 + - col1 FROM tab2 cor0
----
-17
-28
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 - col0 col1 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT ( col2 ) * - col0 DIV col0 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7623
SELECT ( col2 ) * - col0 / col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL + 2 + + tab1.col2 * - col1 FROM tab1
----
-1246
-1402
-568

query I rowsort
SELECT 37 + ( + col1 * ( 51 ) ) FROM tab0
----
4423
4678
4984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7626
SELECT CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 99 * col1 AS col2 FROM tab0
----
8514
9009
9603

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7629
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col2 * col0 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT + 77 * col0 AS col2 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT ALL + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7633
SELECT - + 82 DIV + col1 AS col2 FROM tab1 AS cor0
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-7633
SELECT - + 82 / + col1 AS col2 FROM tab1 AS cor0
----
-3
-6
-8

query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT tab2.col2 * - col0 * col1 AS col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT - + cor0.col2 + col1 DIV cor0.col2 + col0 FROM tab1 cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-7636
SELECT - + cor0.col2 + col1 / cor0.col2 + col0 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7637
SELECT + - cor0.col1 DIV col1 + - col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - cor0.col1 / col1 + - col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL col1 * - tab0.col0 + col0 AS col0 FROM tab0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + + col2 + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col2 + tab0.col1 * col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - col0 * col2 * col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + + col0 NOT IN ( col1 + col1 ) OR NOT NULL NOT BETWEEN - col2 * col0 AND NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7645
SELECT - col2 + + cor0.col0 DIV col2 + col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7645
SELECT - col2 + + cor0.col0 / col2 + col2 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - + col1 + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT col2 * col0 * + col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - col2 + col1 * - col0 + cor0.col0 FROM tab1 AS cor0
----
-1056
-129
-633

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab0 AS cor0
----
37

query I rowsort
SELECT col2 * col2 - - col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT - - 37 - col0 AS col2 FROM tab0 AS cor0
----
-52
13
2

query I rowsort
SELECT + - col1 * col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2609
2838
8176

query I rowsort
SELECT + + col2 * col0 - - col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - + col1 + col0 * + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
207926
737267
8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 * + col1 ) col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7656
SELECT tab2.col0 DIV - col0 + col2 DIV col0 AS col2 FROM tab2
----
-1
-1
2

skipif mysql # not compatible
query I rowsort label-7656
SELECT tab2.col0 / - col0 + col2 / col0 AS col2 FROM tab2
----
-1
-1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT col1 * + col1 + - col0 DIV col1 FROM tab1
----
163
676
94

skipif mysql # not compatible
query I rowsort label-7657
SELECT col1 * + col1 + - col0 / col1 FROM tab1
----
163
676
94

query I rowsort
SELECT DISTINCT + col2 * + tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT tab0.col2 - - col1 AS col1 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND - col0 + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7661
SELECT - col1 DIV col2 - + tab0.col0 FROM tab0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-7661
SELECT - col1 / col2 - + tab0.col0 FROM tab0
----
-132
-26
-90

query I rowsort
SELECT ALL col2 + col1 FROM tab2 WHERE col1 <= NULL
----

query I rowsort
SELECT col0 * col2 + col2 * - col1 AS col0 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT - col2 + + col0 + col0 FROM tab1
----
-48
64
71

query I rowsort
SELECT + col2 * - col1 * col0 AS col1 FROM tab0
----
-3395
-664118
-68112

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 72 * col1 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT ALL tab1.col2 + - tab1.col2 + col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7669
SELECT DISTINCT + col0 DIV - col0 + tab0.col1 - tab0.col1 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + col0 / - col0 + tab0.col1 - tab0.col1 AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2 WHERE ( - col1 + - col2 + col1 ) <> col1
----
7
78
79

query I rowsort
SELECT + col1 * - col0 * col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT + col1 + col1 - col0 AS col0 FROM tab2
----
-45
40
55

query I rowsort
SELECT - col2 + col1 + + col1 AS col0 FROM tab0
----
100
139
193

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + - col1 + col1 <= NULL
----

query I rowsort
SELECT ALL col1 + + col0 + - col0 * + col2 AS col2 FROM tab0
----
-682
-7118
97

query I rowsort
SELECT DISTINCT col2 * + col1 * + col0 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + col1 * col1 NOT IN ( - col2 )
----

query I rowsort
SELECT - col0 * - col0 * + col2 FROM tab0
----
1225
19008
649522

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 - + col1 / col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7680
SELECT ALL col0 DIV - col2 AS col1 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL col0 / - col2 AS col1 FROM tab0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE ( NULL ) < col2
----

query I rowsort
SELECT col1 * + col1 + + tab1.col1 * - tab1.col0 AS col0 FROM tab1
----
-540
-871
598

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 + - col1 )
----

query I rowsort
SELECT ALL col0 + col2 + - col1 * col1 FROM tab2
----
-172
-3377
-927

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / - col0 - + col0 * + col2 NOT BETWEEN ( NULL ) AND - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7686
SELECT ALL col2 DIV + col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL col2 / + col2 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT col0 * col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 + col1 AND + col0
----

query I rowsort
SELECT - ( - col2 * col0 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col0 * col2 + 65 AS col2 FROM tab2 AS cor0
----
-124
-1963
-2937

query I rowsort
SELECT + - ( col2 ) * - 97 + + col0 FROM tab2 AS cor0
----
2600
2626
3765

query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - col0 * + col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab0
----
-49

query I rowsort
SELECT - ( col1 + + 65 ) FROM tab0
----
-151
-156
-162

query I rowsort
SELECT + col0 * col0 + col0 AS col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT col2 + - tab1.col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT - 0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7699
SELECT DISTINCT + 54 * col1 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT + 54 * col1 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * col0 + + col0 * col1 col2 FROM tab2 AS cor0
----
-1326
-315
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-7701
SELECT ALL + ( cor0.col2 ) DIV + 83 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + ( cor0.col2 ) / + 83 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + 27 + - col2 AS col0 FROM tab0
----
-2485
-681
-946

onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT col0 DIV ( col1 ) - + tab1.col1 FROM tab1
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-7703
SELECT col0 / ( col1 ) - + tab1.col1 FROM tab1
----
-26
-4
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7704
SELECT DISTINCT col2 + CAST( 98 AS SIGNED ) AS col1 FROM tab0
----
131
180
99

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT col2 + CAST ( 98 AS INTEGER ) AS col1 FROM tab0
----
131
180
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7705
SELECT + cor0.col1 DIV - ( - 5 ) FROM tab0 AS cor0
----
17
18
19

skipif mysql # not compatible
query I rowsort label-7705
SELECT + cor0.col1 / - ( - 5 ) FROM tab0 AS cor0
----
17
18
19

query I rowsort
SELECT + 13 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT - col2 * ( - 55 ) + - col0 FROM tab2 AS cor0
----
1352
1478
2011

onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT - col1 DIV + col2 + + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7708
SELECT - col1 / + col2 + + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL col1 * + 41 * tab1.col2 + col2 AS col0 FROM tab1
----
23427
51264
57618

query I rowsort
SELECT ALL col1 + + col2 + + col1 FROM tab2
----
144
72
89

query I rowsort
SELECT - - cor0.col1 * col2 + - col1 + col0 FROM tab1 AS cor0
----
1315
1381
624

query I rowsort
SELECT ALL 69 * 14 + col0 AS col2 FROM tab1 AS cor0
----
1030
1046
969

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 * col1 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT col0 * - col2 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL + col2 + col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - + ( - col0 ) + - cor0.col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - 26 - - 71 * - col0 FROM tab0 AS cor0
----
-1730
-2511
-6345

onlyif mysql # use DIV operator for integer division
query I rowsort label-7719
SELECT 47 DIV ( - col1 * - col1 ) + - 9 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-7719
SELECT 47 / ( - col1 * - col1 ) + - 9 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL - ( cor0.col1 ) * col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + + ( col2 ) - col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + col0 * - 34 * col1 FROM tab2 AS cor0
----
-156468
-45662
-7378

query I rowsort
SELECT - col2 + + 60 * col1 AS col1 FROM tab1 AS cor0
----
1506
543
684

query I rowsort
SELECT DISTINCT ( 50 ) + col2 FROM tab0 AS cor0
----
132
51
83

query I rowsort
SELECT ALL + - 53 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - ( + 22 ) * col2 AS col1 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT DISTINCT + col2 * 84 FROM tab0 AS cor0
----
2772
6888
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7728
SELECT ALL - CAST( NULL AS DECIMAL ) + - 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL - CAST ( NULL AS REAL ) + - 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col1 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col2 FROM tab2, tab1 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col0 FROM tab1, tab2 AS cor0
----
-29

query I rowsort
SELECT + 6 * col1 AS col0 FROM tab1
----
156
60
78

query I rowsort
SELECT ALL ( + 50 ) AS col2 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7734
SELECT CAST( NULL AS SIGNED ) + + cor0.col1 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT CAST ( NULL AS INTEGER ) + + cor0.col1 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT + - CAST( + col0 AS SIGNED ) DIV + col1 + ( 62 ) * + col2 + col1 AS col1 FROM tab2 AS cor0
----
1670
1705
2369

skipif mysql # not compatible
query I rowsort label-7736
SELECT + - CAST ( + col0 AS INTEGER ) / + col1 + ( 62 ) * + col2 + col1 AS col1 FROM tab2 AS cor0
----
1670
1705
2369

query I rowsort
SELECT DISTINCT - - ( + col0 ) + + cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 73 * - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 370736149307d7a877dd5a15bf2f9690

query I rowsort
SELECT ALL col1 + - col0 * col2 * 64 FROM tab1 AS cor0
----
-10342
-233462
-491507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * col1 + 59 - cor0.col2 col0 FROM tab1 AS cor0
----
102
132
681

query I rowsort
SELECT + 95 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
4
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - ( + col1 ) col2 FROM tab0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7743
SELECT - 76 + col1 * CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT - 76 + col1 * CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col1 ) + col0 + 35 FROM tab1
----
109
128
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7745
SELECT - + col0 DIV + ( + col0 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7745
SELECT - + col0 / + ( + col0 ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7746
SELECT ALL - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7747
SELECT DISTINCT + + col0 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT + + col0 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - - col2 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col2 + 86 + - col2 FROM tab0 cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7751
SELECT DISTINCT - cor0.col0 DIV ( - col1 ) FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT - cor0.col0 / ( - col1 ) FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7752
SELECT col0 + + col1 DIV col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-7752
SELECT col0 + + col1 / col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT 2 - col1 * tab2.col1 FROM tab2
----
-287
-3479
-959

onlyif mysql # use DIV operator for integer division
query I rowsort label-7754
SELECT - col1 DIV + tab1.col0 + 15 col0 FROM tab1
----
15
15
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7754
SELECT - col1 / + tab1.col0 + 15 col0 FROM tab1
----
15
15
7

query I rowsort
SELECT 47 + - tab0.col0 FROM tab0
----
-42
12
23

query I rowsort
SELECT DISTINCT + + col2 * - col1 + + col1 AS col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL 45 AS col1 FROM tab2
----
45
45
45

query I rowsort
SELECT + + 6 * - 54 - + col1 * 50 FROM tab2 AS cor0
----
-1174
-1874
-3274

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7759
SELECT DISTINCT cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 49 - - col1 * cor0.col1 col0 FROM tab0 AS cor0
----
4263
5779
9360

query I rowsort
SELECT DISTINCT - - cor1.col1 AS col1 FROM tab2, tab2 cor0, tab0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT + 57 * col0 AS col1 FROM tab2
----
399
4446
4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * ( - 47 ) + cor0.col0 col0 FROM tab1 AS cor0
----
-138
-2944
-3680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7764
SELECT + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + cor0.col1 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT col2 * ( + col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col0 + - cor0.col0 * col1 FROM tab2 cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + + col0 * cor0.col1 col0 FROM tab0 cor0
----
15561
3492
4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7769
SELECT + cor0.col1 + - CAST( - col0 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-7769
SELECT + cor0.col1 + - CAST ( - col0 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - col1 * 93 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT + col1 * - ( + 73 ) + col1 AS col1 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT col0 + col2 * + 81 FROM tab2 cor0
----
2184
2194
3157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7773
SELECT - col2 * + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-7773
SELECT - col2 * + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7774
SELECT ALL col2 * + ( col2 ) DIV - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL col2 * + ( col2 ) / - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - - ( + ( + col2 ) ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 86 * + col0 AS col0 FROM tab2 AS cor0
----
-602
-6708
-6794

query I rowsort
SELECT DISTINCT ( 93 ) AS col2 FROM tab1 AS cor0
----
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7778
SELECT ALL col0 * col1 DIV + col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL col0 * col1 / + col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + 57 + col1 * + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
177
40903
83143

query I rowsort
SELECT ALL - - cor0.col2 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT + - col0 * col0 + 36 * col1 * col1 FROM tab1 AS cor0
----
-316
-496
24327

query I rowsort
SELECT + cor0.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - ( - cor0.col1 ) * + col0 + 7 FROM tab2 AS cor0
----
1350
224
4609

onlyif mysql # use DIV operator for integer division
query I rowsort label-7784
SELECT - 53 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-53
0

skipif mysql # not compatible
query I rowsort label-7784
SELECT - 53 / cor0.col2 FROM tab0 AS cor0
----
-1
-53
0

query I rowsort
SELECT - cor0.col1 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + + col0 * col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 75 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT + col2 + col2 * ( col0 ) FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT col2 * col2 * ( + 64 * + col2 ) AS col0 FROM tab1 cor0
----
10077696
11852352
56623104

query I rowsort
SELECT ALL - 60 * cor0.col1 FROM tab2 AS cor0
----
-1020
-1860
-3540

query I rowsort
SELECT ALL - 25 AS col1 FROM tab1 cor0
----
-25
-25
-25

query I rowsort
SELECT - + ( col2 ) * - col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-7793
SELECT DISTINCT 59 DIV - tab2.col1 AS col2 FROM tab2
----
-1
-3

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT 59 / - tab2.col1 AS col2 FROM tab2
----
-1
-3

query I rowsort
SELECT - col0 + + ( + 18 ) FROM tab0 AS cor0
----
-17
-6
-71

query I rowsort
SELECT + col2 * - 92 AS col2 FROM tab0 cor0
----
-3036
-7544
-92

query I rowsort
SELECT - col1 + 8 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1243
1386
568

query I rowsort
SELECT DISTINCT col0 * + col2 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1566
4218
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7798
SELECT ALL - cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL - cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 + col1 col0 FROM tab2 AS cor0
----
122
80
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + + ( 6 ) * col0 AS col1 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT + col0 + + 2 * col2 AS col1 FROM tab2 AS cor0
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT 85 AS col2 FROM tab0, tab1, tab2 AS cor0, tab0 cor1
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb

query I rowsort
SELECT + 3 * + 1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL - 2 AS col1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT ALL 96 FROM tab0
----
96
96
96

query I rowsort
SELECT col0 + col2 * col1 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7809
SELECT ALL col1 DIV 77 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL col1 / 77 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col1 * ( + col2 ) FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( - cor0.col0 ) col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + + col2 * + ( - col1 ) + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - + col2 * ( col1 ) + col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7814
SELECT col2 * ( col1 ) + col0 DIV cor0.col0 + + 70 FROM tab2 AS cor0
----
1605
717
908

skipif mysql # not compatible
query I rowsort label-7814
SELECT col2 * ( col1 ) + col0 / cor0.col0 + + 70 FROM tab2 AS cor0
----
1605
717
908

query I rowsort
SELECT + col1 * col0 + - cor0.col2 FROM tab1 cor0
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7816
SELECT + tab0.col2 * + col2 * CAST( NULL AS DECIMAL ) + + ( - col1 ) - + ( 43 ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT + tab0.col2 * + col2 * CAST ( NULL AS REAL ) + + ( - col1 ) - + ( 43 ) * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - ( col2 ) * - col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 + - col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL cor0.col0 * 21 AS col0 FROM tab2 cor0
----
147
1638
1659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7820
SELECT ALL - + col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL - + col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 65 + - ( + col1 * + col1 ) AS col2 FROM tab1
----
-3805
-4186
-6409

query I rowsort
SELECT tab1.col2 + + 0 * ( col1 ) FROM tab1
----
54
57
96

query I rowsort
SELECT - ( cor0.col1 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT col0 + - 14 FROM tab0
----
10
21
75

query I rowsort
SELECT + cor0.col1 * + col1 + cor0.col2 + - col2 AS col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-7826
SELECT + col0 * col0 DIV + col0 + cor0.col0 DIV + col2 + - col1 col1 FROM tab0 AS cor0
----
-1
-27
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7826
SELECT + col0 * col0 / + col0 + cor0.col0 / + col2 + - col1 col1 FROM tab0 AS cor0
----
-1
-27
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col0 * col0 col0 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-7828
SELECT + - ( col0 ) DIV ( col0 ) + + cor0.col0 + 27 AS col0 FROM tab1 cor0
----
106
29
90

skipif mysql # not compatible
query I rowsort label-7828
SELECT + - ( col0 ) / ( col0 ) + + cor0.col0 + 27 AS col0 FROM tab1 cor0
----
106
29
90

query I rowsort
SELECT + + col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
36490
4238
99853

onlyif mysql # use DIV operator for integer division
query I rowsort label-7831
SELECT DISTINCT - - col2 DIV + col1 FROM tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT - - col2 / + col1 FROM tab2 cor0
----
0
2

query I rowsort
SELECT ALL cor0.col2 * + col0 + 84 AS col2 FROM tab0 AS cor0
----
119
7382
876

query I rowsort
SELECT - ( ( + col1 ) ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL col1 * + tab1.col2 * 28 + 94 FROM tab1
----
16054
35038
39406

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col1 AS col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT 97 + tab2.col0 - - 97 AS col0 FROM tab2
----
201
272
273

query I rowsort
SELECT ALL - 39 * - col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-117078
-7371
-79092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + cor0.col0 col1 FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT ALL - col0 + col1 * col1 * col0 AS col2 FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT - - 14 + col1 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT ALL + ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT 59 + - col1 + col2 FROM tab0
----
-37
50
6

query I rowsort
SELECT + col0 * + col1 - col2 * + col2 FROM tab0 AS cor0
----
1375
3394
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 col0 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col0 FROM tab0 AS cor0
----
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7846
SELECT + tab0.col2 DIV - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7846
SELECT + tab0.col2 / - col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT tab0.col2 * 82 FROM tab0
----
2706
6724
82

query I rowsort
SELECT - 87 - tab1.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a0c902a00ce500ab6e226acd91b31a44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + cor0.col0 * col1 + ( col1 ) * 14 AS col2 FROM tab2 AS cor0
----
1581
5428
651

onlyif mysql # use DIV operator for integer division
query I rowsort label-7851
SELECT + cor0.col1 + + 87 DIV - 20 FROM tab0 AS cor0
----
82
87
93

skipif mysql # not compatible
query I rowsort label-7851
SELECT + cor0.col1 + + 87 / - 20 FROM tab0 AS cor0
----
82
87
93

query I rowsort
SELECT + 42 AS col1 FROM tab2, tab1, tab1 AS cor0, tab2 cor1
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7853
SELECT + CAST( NULL AS SIGNED ) + tab2.col1 / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT + CAST ( NULL AS INTEGER ) + tab2.col1 / + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + ( + tab0.col1 ) FROM tab0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7855
SELECT DISTINCT CAST( + col2 AS SIGNED ) * + col2 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * + col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT col2 * 1 + + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - 22 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
-513
-563
-819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - 79 * - cor0.col2 col2 FROM tab2 AS cor0
----
2132
2140
3081

query I rowsort
SELECT DISTINCT - cor0.col0 * 17 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT ALL 84 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - 0 * - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 19 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
19

query I rowsort
SELECT + ( col0 ) + - col2 AS col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL + 1 + 44 AS col0 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7865
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT DISTINCT + col2 * col1 DIV + col0 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT + col2 * col1 / + col0 FROM tab2 AS cor0
----
119
19
8

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + - 33 FROM tab2 AS cor0
----
-322
-3514
-994

query I rowsort
SELECT ALL - + 73 FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7869
SELECT DISTINCT col1 + + col2 DIV 31 + - 56 * - col2 AS col0 FROM tab2 AS cor0
----
1515
1543
2146

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT col1 + + col2 / 31 + - 56 * - col2 AS col0 FROM tab2 AS cor0
----
1515
1543
2146

query I rowsort
SELECT + 36 * col0 + col2 FROM tab2 AS cor0
----
279
2834
2882

query I rowsort
SELECT ALL + + ( col1 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - cor0.col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL ( - col0 ) + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + - col2 * + col2 - - col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - ( - col0 ) * col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + ( 49 * col2 ) AS col2 FROM tab2
----
1274
1323
1862

query I rowsort
SELECT ALL 50 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT + 19 + - col1 FROM tab2 AS cor0
----
-12
-40
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7882
SELECT - col0 DIV + ( + col1 ) FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT - col0 / + ( + col1 ) FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT - cor0.col2 + - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5f7b5c5678d2f6f42d8763f44ca95184

query I rowsort
SELECT - cor0.col1 + - cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to daf01be24671583522e54ae801342b76

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - cor0.col2 + - ( col0 ) + col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 93 * - 63 + + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-4455
-4611
-5289

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7888
SELECT DISTINCT + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col0 * 14 * tab1.col1 AS col2 FROM tab1
----
1092
14560
8960

query I rowsort
SELECT ALL - col0 * - 14 FROM tab1
----
1120
42
896

query I rowsort
SELECT ALL + 27 * ( col0 ) FROM tab2
----
189
2106
2133

query I rowsort
SELECT ALL - + col0 * + col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT col1 * + col0 - + col2 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - + col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + col0 + col2 * - ( + col0 ) FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 * - col2 - 70 FROM tab0
----
-105
-26206
-598506

query I rowsort
SELECT - col0 * col2 - col2 AS col1 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT col1 + col1 - col1 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + tab1.col1 * + ( + col1 ) FROM tab1
----
100
169
676

query I rowsort
SELECT col2 * 57 FROM tab2
----
1482
1539
2166

query I rowsort
SELECT 29 * col2 FROM tab1
----
1566
1653
2784

query I rowsort
SELECT ALL - tab2.col1 * - col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT tab2.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - tab0.col0 * + col0 + + ( col0 ) AS col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ALL tab2.col2 + 31 FROM tab2, tab2 AS cor0
----
9 values hashing to 54f12f2a4c0a7bf7577521bd8fd4845b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * col0 col1 FROM tab0
----
1776
2590
6586

query I rowsort
SELECT - col1 + + col0 * col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT + col1 * - 71 AS col2 FROM tab0 AS cor0
----
-6106
-6461
-6887

query I rowsort
SELECT 30 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * - col1 col2 FROM tab1
----
-1664
-640
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col1 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT - 31 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to cb21a77465f6a7c6b5c4c99bafc9df52

query I rowsort
SELECT ALL - ( 13 ) FROM tab2, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT col0 * - ( tab2.col0 + + col0 ) FROM tab2
----
-12168
-12482
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 3 ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7916
SELECT ALL + CAST( NULL AS SIGNED ) * - cor0.col1 + - col1 * 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + CAST ( NULL AS INTEGER ) * - cor0.col1 + - col1 * 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7917
SELECT + tab0.col1 + + 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-7917
SELECT + tab0.col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor2.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
-86
-91
-97

query I rowsort
SELECT - col0 + ( - ( col2 ) * 82 ) AS col0 FROM tab2 cor0
----
-2210
-2221
-3195

query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab1, tab1 AS cor0
----
-19

query I rowsort
SELECT ALL - - col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT ALL - 14 * 9 - - col1 DIV ( - col1 + + col2 ) AS col1 FROM tab2 AS cor0
----
-126
-127
-133

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - 14 * 9 - - col1 / ( - col1 + + col2 ) AS col1 FROM tab2 AS cor0
----
-126
-127
-133

query I rowsort
SELECT DISTINCT - - 38 * col2 - - col1 AS col2 FROM tab0 AS cor0
----
1340
135
3207

query I rowsort
SELECT col2 + 73 AS col2 FROM tab2 AS cor0
----
100
111
99

query I rowsort
SELECT ALL - col1 * + 37 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL + col1 * + cor0.col2 * + cor0.col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ALL col2 + + 23 AS col0 FROM tab0 cor0
----
105
24
56

query I rowsort
SELECT + ( 52 ) + col1 * col1 FROM tab0 cor0
----
7448
8333
9461

query I rowsort
SELECT ALL + + cor0.col0 * + ( cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - 32 + col2 AS col1 FROM tab1 AS cor0
----
22
25
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT ALL - + col0 + col2 DIV - col1 AS col0 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL - + col0 + col2 / - col1 AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + col1 - - col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + 22 AS col1 FROM tab2 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - + col1 col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT 45 + col2 * + 52 + + col2 AS col1 FROM tab2 AS cor0
----
1423
1476
2059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + col2 + 47 col2 FROM tab1 cor0
----
29
32
71

query I rowsort
SELECT DISTINCT - + 47 * col1 - col2 AS col2 FROM tab2 AS cor0
----
-1484
-2799
-837

query I rowsort
SELECT - col0 * col1 - col2 * col2 AS col2 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT + col0 + - col1 + - ( col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-185
-3594
-7613

query I rowsort
SELECT - cor0.col2 * col1 + 26 * + col0 FROM tab2 AS cor0
----
-655
1408
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-7942
SELECT - col0 DIV - col1 + col2 + col0 AS col0 FROM tab1 AS cor0
----
127
182
57

skipif mysql # not compatible
query I rowsort label-7942
SELECT - col0 / - col1 + col2 + col0 AS col0 FROM tab1 AS cor0
----
127
182
57

query I rowsort
SELECT ALL - + col2 + + ( - col1 ) * col2 - col0 * - col2 FROM tab0 AS cor0
----
-2079
-246
-63

query I rowsort
SELECT + col2 + - 57 AS col2 FROM tab1 AS cor0
----
-3
0
39

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( + col2 ) col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col2 * + col2 + col0 AS col2 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT - 85 * cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to a63852516bd91110050e19405acc6dd8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 - - col2 col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT DISTINCT + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - 2 + + 0 - - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccea6a248f30dd11b66a4154a89d6403

query I rowsort
SELECT 44 * ( col0 ) + col2 AS col1 FROM tab1 AS cor0
----
186
2873
3616

query I rowsort
SELECT DISTINCT + 2 * cor0.col2 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
164
2
66

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7957
SELECT DISTINCT col0 DIV col2 + - col2 FROM tab1
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT col0 / col2 + - col2 FROM tab1
----
-54
-56
-96

query I rowsort
SELECT + col2 + + col2 AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT - + col0 + 39 FROM tab1 AS cor0
----
-25
-41
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT ALL - col2 DIV 76 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - col2 / 76 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7961
SELECT + col2 DIV 71 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT + col2 / 71 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7962
SELECT ALL + - col0 DIV + ( - col1 * - ( - col2 ) ) + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + - col0 / + ( - col1 * - ( - col2 ) ) + - col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT ALL + ( 34 ) * - cor0.col2 + col1 DIV ( - col2 ) - - col2 AS col0 FROM tab1 AS cor0
----
-1782
-1881
-3168

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + ( 34 ) * - cor0.col2 + col1 / ( - col2 ) - - col2 AS col0 FROM tab1 AS cor0
----
-1782
-1881
-3168

onlyif mysql # use DIV operator for integer division
query I rowsort label-7964
SELECT ALL col2 + 9 DIV - col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL col2 + 9 / - col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - 47 - col2 FROM tab0 AS cor0
----
-35
14
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7966
SELECT - - ( - cor0.col2 ) * + cor0.col0 + - CAST( + col2 + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-242
-3715
-7789

skipif mysql # not compatible
query I rowsort label-7966
SELECT - - ( - cor0.col2 ) * + cor0.col0 + - CAST ( + col2 + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-242
-3715
-7789

query I rowsort
SELECT + 75 * col1 - - col0 FROM tab1 AS cor0
----
1055
1953
814

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col1 + - col2 FROM tab2 cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 93 ) col1 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL col0 * + col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL col1 + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + 7 + col1 * col2 FROM tab0 AS cor0
----
104
2845
7469

query I rowsort
SELECT ALL col1 * col0 + - ( + col1 + col1 ) FROM tab2 AS cor0
----
1309
155
4484

onlyif mysql # use DIV operator for integer division
query I rowsort label-7974
SELECT DISTINCT - - col1 - + col0 DIV + col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT - - col1 - + col0 / + col2 FROM tab1 AS cor0
----
13
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7975
SELECT - col1 DIV + col0 - + col1 * col2 FROM tab0 AS cor0
----
-2841
-7463
-99

skipif mysql # not compatible
query I rowsort label-7975
SELECT - col1 / + col0 - + col1 * col2 FROM tab0 AS cor0
----
-2841
-7463
-99

query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 + - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT 94 + - cor0.col1 FROM tab2 cor0
----
35
63
77

query I rowsort
SELECT ALL - 96 - col0 AS col2 FROM tab2 AS cor0
----
-103
-174
-175

query I rowsort
SELECT + cor0.col1 * + col2 + + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * 16 AS col0 FROM tab2 AS cor0
----
439
494
687

query I rowsort
SELECT ALL - - ( - col1 ) + col2 AS col0 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7982
SELECT - + col2 * col0 + - col0 DIV - cor0.col2 FROM tab0 AS cor0
----
-7297
-792
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT - + col2 * col0 + - col0 / - cor0.col2 FROM tab0 AS cor0
----
-7297
-792
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT + col0 DIV + col0 col1 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7983
SELECT + col0 / + col0 col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7984
SELECT ALL + + col1 * CAST( col0 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + + col1 * CAST ( col0 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL 72 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-87

query I rowsort
SELECT ALL col2 * - 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + - 54 FROM tab0 cor0
----
32
37
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7990
SELECT col2 + CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT col2 + CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * - col2 col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + + ( - col0 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 73 + ( col2 ) AS col1 FROM tab1 AS cor0
----
-16
-19
23

query I rowsort
SELECT ALL - col0 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL - 68 * col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT - col2 * 22 + 71 FROM tab1
----
-1117
-1183
-2041

query I rowsort
SELECT ALL + col0 * - col1 * - tab1.col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col2 * + col2 * - 33 AS col0 FROM tab0
----
-221892
-33
-35937

onlyif mysql # use DIV operator for integer division
query I rowsort label-7999
SELECT + col1 + + col0 * col2 DIV col1 FROM tab1
----
32
374
603

skipif mysql # not compatible
query I rowsort label-7999
SELECT + col1 + + col0 * col2 / col1 FROM tab1
----
32
374
603

query I rowsort
SELECT DISTINCT col1 * col2 * + ( col2 ) AS col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-8001
SELECT col1 DIV 45 + 63 * - col1 FROM tab2
----
-1071
-1953
-3716

skipif mysql # not compatible
query I rowsort label-8001
SELECT col1 / 45 + 63 * - col1 FROM tab2
----
-1071
-1953
-3716

query I rowsort
SELECT DISTINCT + tab0.col2 * + 36 AS col0 FROM tab0
----
1188
2952
36

query I rowsort
SELECT 36 AS col0 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT 60 + + cor0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 27d4b97dac8eff4a971d8a35d9c8411f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8005
SELECT + 11 DIV - col0 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8005
SELECT + 11 / - col0 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8006
SELECT ALL tab1.col2 DIV - 12 AS col1 FROM tab1
----
-4
-4
-8

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL tab1.col2 / - 12 AS col1 FROM tab1
----
-4
-4
-8

query I rowsort
SELECT DISTINCT + tab2.col1 * col1 + - tab2.col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT ALL + 86 * col0 + col0 FROM tab1
----
261
5568
6960

query I rowsort
SELECT ALL + - col1 + ( - col1 ) FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-8010
SELECT ALL 5 DIV col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL 5 / col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( + col0 + + col1 ) AS col0 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8012
SELECT DISTINCT 79 * col1 + CAST( col2 AS SIGNED ) * col1 FROM tab1
----
1360
2275
3458

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT 79 * col1 + CAST ( col2 AS INTEGER ) * col1 FROM tab1
----
1360
2275
3458

query I rowsort
SELECT ALL + tab1.col2 + col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL 59 + col1 FROM tab2
----
118
76
90

query I rowsort
SELECT DISTINCT - + 15 FROM tab1, tab2, tab1 AS cor0
----
-15

onlyif mysql # use DIV operator for integer division
query I rowsort label-8016
SELECT ALL - 11 DIV col1 + col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL - 11 / col1 + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + + ( col1 ) + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL - - col0 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT col2 * 3 AS col0 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT DISTINCT - + col2 * 80 + + col1 + col1 FROM tab2 AS cor0
----
-1962
-2098
-3006

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8022
SELECT - col2 * CAST( cor0.col2 AS SIGNED ) + + col1 FROM tab2 cor0
----
-1427
-617
-698

skipif mysql # not compatible
query I rowsort label-8022
SELECT - col2 * CAST ( cor0.col2 AS INTEGER ) + + col1 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL - - col1 + - col2 + 24 AS col0 FROM tab0 AS cor0
----
120
33
77

query I rowsort
SELECT ALL - ( 85 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT + 77 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - col0 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col2 * ( col0 ) + + col2 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + - col2 * 14 AS col2 FROM tab2 AS cor0
----
-409
-423
-549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8030
SELECT DISTINCT col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT col1 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8031
SELECT DISTINCT + col1 + CAST( col2 AS SIGNED ) - + col0 * col2 AS col0 FROM tab1 AS cor0
----
-3581
-7571
-82

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT + col1 + CAST ( col2 AS INTEGER ) - + col0 * col2 AS col0 FROM tab1 AS cor0
----
-3581
-7571
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8032
SELECT ALL col1 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL col1 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col0 + - ( cor0.col0 ) + - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - col2 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT col0 * col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - - 50 + + col1 AS col2 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
28

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 + CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + col2 * + 92 AS col2 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT DISTINCT - col1 + - ( + col0 ) * + col0 * cor0.col1 AS col0 FROM tab1 cor0
----
-260
-40970
-83213

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 * ( + col1 ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col1 + + col2 * + col2 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-8046
SELECT + + 64 + col0 * col1 DIV + 4 AS col2 FROM tab0 cor0
----
2088
580
912

skipif mysql # not compatible
query I rowsort label-8046
SELECT + + 64 + col0 * col1 / + 4 AS col2 FROM tab0 cor0
----
2088
580
912

query I rowsort
SELECT - col1 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT + ( 35 ) + + col1 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT - + ( + col2 ) + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( + cor0.col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8051
SELECT ALL col0 DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL col0 / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 32 + col0 FROM tab0 AS cor0
----
121
56
67

query I rowsort
SELECT ALL + 25 + - col2 AS col1 FROM tab0 cor0
----
-57
-8
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8054
SELECT DISTINCT col2 + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT col2 + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 + col0 col2 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT 58 * 26 - col0 FROM tab0
----
1419
1473
1484

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 + col1 AS REAL ) FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * col0 col0 FROM tab2
----
-588
-6552
-6636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - col1 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col0 + + 23 AS col2 FROM tab1
----
-41
-57
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-8062
SELECT col1 DIV + col0 + - col2 AS col0 FROM tab1
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-8062
SELECT col1 / + col0 + - col2 AS col0 FROM tab1
----
-46
-57
-96

query I rowsort
SELECT 69 * col1 - 29 * + col1 FROM tab1
----
1040
400
520

query I rowsort
SELECT - + 72 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL 1 + col1 + - col2 * col1 FROM tab0 AS cor0
----
-2751
-7370
1

query I rowsort
SELECT ALL + + cor0.col1 - + col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + - 54 + col0 * cor0.col2 FROM tab2 AS cor0
----
135
1974
2948

query I rowsort
SELECT ALL + ( cor0.col0 ) * 63 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT ALL + 29 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT - col1 DIV col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8070
SELECT - col1 / col1 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + + col2 * + col1 * + ( + col1 * 96 ) FROM tab1 AS cor0
----
1557504
3504384
547200

query I rowsort
SELECT + col0 * + 75 AS col2 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT ALL - 43 FROM tab1, tab0 cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT ( + col0 ) * - col1 + + col1 * col1 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT + col2 + + 10 AS col1 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT ALL - 56 FROM tab2 cor0
----
-56
-56
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-8077
SELECT - ( col1 ) DIV + col1 - cor0.col0 * + col1 FROM tab1 AS cor0
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-8077
SELECT - ( col1 ) / + col1 - cor0.col0 * + col1 FROM tab1 AS cor0
----
-1041
-641
-79

query I rowsort
SELECT DISTINCT - col1 + 50 AS col1 FROM tab1 AS cor0
----
24
37
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-8079
SELECT col0 * ( 69 ) + col2 DIV col2 AS col0 FROM tab1
----
208
4417
5521

skipif mysql # not compatible
query I rowsort label-8079
SELECT col0 * ( 69 ) + col2 / col2 AS col0 FROM tab1
----
208
4417
5521

query I rowsort
SELECT - col1 + 63 AS col2 FROM tab0
----
-23
-28
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8081
SELECT CAST( + col1 AS SIGNED ) * col1 DIV ( ( + col0 ) ) FROM tab1 cor0
----
1
2
225

skipif mysql # not compatible
query I rowsort label-8081
SELECT CAST ( + col1 AS INTEGER ) * col1 / ( ( + col0 ) ) FROM tab1 cor0
----
1
2
225

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab1 AS cor0
----
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8083
SELECT DISTINCT - col1 + - col0 * + col2 * CAST( NULL AS SIGNED ) + - ( + col0 + + tab0.col0 ) * 27 col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT - col1 + - col0 * + col2 * CAST ( NULL AS INTEGER ) + - ( + col0 + + tab0.col0 ) * 27 col1 FROM tab0
----
NULL

query I rowsort
SELECT - 55 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8085
SELECT DISTINCT - 27 * cor0.col2 + - cor0.col1 DIV - col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT - 27 * cor0.col2 + - cor0.col1 / - col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

onlyif mysql # use DIV operator for integer division
query I rowsort label-8086
SELECT DISTINCT 25 * - col0 + - col2 + col2 * col2 DIV col0 FROM tab2 AS cor0
----
-1968
-1995
-98

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT 25 * - col0 + - col2 + col2 * col2 / col0 FROM tab2 AS cor0
----
-1968
-1995
-98

query I rowsort
SELECT ALL + col2 + 88 * + col0 FROM tab2 AS cor0
----
643
6890
6990

query I rowsort
SELECT ALL col0 * col2 + + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT col2 + 1 * col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + ( col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - 38 + 13 AS col2 FROM tab0 cor0
----
-25

query I rowsort
SELECT - ( ( - col0 ) ) + - 73 AS col0 FROM tab1 AS cor0
----
-70
-9
7

query I rowsort
SELECT DISTINCT + ( + col0 ) + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + 49 * col2 + col1 AS col0 FROM tab0
----
146
1703
4109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - tab1.col1 col2 FROM tab1
----
28
47
83

query I rowsort
SELECT + 70 + - cor0.col2 FROM tab2 AS cor0
----
32
43
44

query I rowsort
SELECT DISTINCT + + 75 AS col0 FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 55 * col0 AS col1 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col1 * - col2 * col0 AS col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT - - ( col1 ) + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL 69 * col2 + + 57 FROM tab2 cor0
----
1851
1920
2679

query I rowsort
SELECT DISTINCT + - 85 AS col1 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT ALL cor0.col1 + - 76 FROM tab0 cor0
----
10
15
21

query I rowsort
SELECT ALL - - col1 + - 37 AS col0 FROM tab1 AS cor0
----
-11
-24
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 88 col1 FROM tab0 cor0
----
2112
3080
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT DISTINCT - - col2 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - - col2 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8108
SELECT DISTINCT col2 + - 64 DIV col2 - col1 * + col2 AS col2 FROM tab0 cor0
----
-160
-2806
-7380

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT col2 + - 64 / col2 - col1 * + col2 AS col2 FROM tab0 cor0
----
-160
-2806
-7380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8109
SELECT ALL - cor0.col1 * CAST( col2 AS SIGNED ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - cor0.col1 * CAST ( col2 AS INTEGER ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - col2 + col2 * col2 + - col1 FROM tab1 AS cor0
----
2836
3182
9107

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e

query I rowsort
SELECT - 75 + + col1 FROM tab2
----
-16
-44
-58

query I rowsort
SELECT 8 - tab1.col2 FROM tab1
----
-46
-49
-88

query I rowsort
SELECT DISTINCT col2 + - col2 * col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL 78 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 2 + col0 * col1 * - col1 col2 FROM tab1 AS cor0
----
-13328
-1920
-6286

query I rowsort
SELECT DISTINCT + col0 * ( - 7 ) + col1 FROM tab0 AS cor0
----
-148
-532
-82

query I rowsort
SELECT col0 * 77 * 83 FROM tab2 AS cor0
----
44737
498498
504889

query I rowsort
SELECT col2 * col2 * - col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - col2 + col0 * col0 * col0 FROM tab0 AS cor0
----
13791
42874
704887

query I rowsort
SELECT + + col1 * 41 + + col0 FROM tab0 cor0
----
3550
3820
4012

query I rowsort
SELECT - + 31 + col0 FROM tab0 AS cor0
----
-7
4
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8123
SELECT + + CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8123
SELECT + + CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL ( + cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT 49 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT - - 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT 26 * - ( col2 ) FROM tab0 cor0
----
-2132
-26
-858

query I rowsort
SELECT DISTINCT + ( col2 ) * - 95 FROM tab2 AS cor0
----
-2470
-2565
-3610

query I rowsort
SELECT + + ( col0 ) + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col1 * col1 + 62 + col2 AS col0 FROM tab2 AS cor0
----
1050
3569
389

onlyif mysql # use DIV operator for integer division
query I rowsort label-8131
SELECT DISTINCT + ( col2 ) DIV col2 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT + ( col2 ) / col2 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - cor0.col2 + - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT col2 + - col0 * ( - cor0.col0 ) FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - + 24 * col2 - col0 FROM tab0 AS cor0
----
-2057
-59
-816

query I rowsort
SELECT + - col2 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 55 + + tab0.col2 + - col1 FROM tab0
----
-41
2
46

query I rowsort
SELECT col2 + + tab1.col1 + ( col1 * - col0 + 97 ) AS col2 FROM tab1
----
-476
-834
99

query I rowsort
SELECT col1 * - 86 + - 42 AS col1 FROM tab2 AS cor0
----
-1504
-2708
-5116

query I rowsort
SELECT - col2 * - col2 + + 98 FROM tab1 AS cor0
----
3014
3347
9314

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab1, tab2, tab2 AS cor0
----
-71

query I rowsort
SELECT col0 + - col0 + cor0.col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + 32 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8145
SELECT CAST( - col0 AS SIGNED ) - col1 FROM tab2
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-8145
SELECT CAST ( - col0 AS INTEGER ) - col1 FROM tab2
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8146
SELECT + 85 * 17 * - col1 + - 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-8146
SELECT + 85 * 17 * - col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ( 1 ) AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - cor0.col0 + - 84 FROM tab1, tab0 AS cor0
----
-108
-119
-173

query I rowsort
SELECT - + 64 * col2 AS col2 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - cor0.col0 * - col1 * ( col2 + col0 * + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-16848
-2371200
-8087040

query I rowsort
SELECT - 35 AS col1 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT + col0 + cor0.col2 * + 14 FROM tab1 AS cor0
----
1424
759
862

query I rowsort
SELECT + col1 * + col0 + - 59 FROM tab2 AS cor0
----
1284
158
4543

query I rowsort
SELECT DISTINCT + col1 - + tab1.col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - + 63 * col0 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-3932
-4871
487

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 AS REAL ) + col0 + 3 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 85 col1 FROM tab0
----
-7310
-7735
-8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col1 ) + col0 col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col2 - + ( + col0 ) FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT ALL - cor0.col0 - col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - cor0.col0 - col0 / + col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - col0 * - col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - + ( + ( - col0 ) ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + + ( - col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 22 * col1 + + col0 * 37 AS col1 FROM tab2 AS cor0
----
3297
4184
941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col1 + - col1 * - 53 col1 FROM tab1 AS cor0
----
1355
584
756

query I rowsort
SELECT DISTINCT + + ( - 67 ) + + col0 * col0 AS col2 FROM tab1 AS cor0
----
-58
4029
6333

query I rowsort
SELECT + ( + col0 ) - + col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * ( 1 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + 21 + col2 + 53 FROM tab2 cor0
----
100
101
112

query I rowsort
SELECT + - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 41 + col2 + - ( col1 ) FROM tab0 AS cor0
----
-12
-55
32

query I rowsort
SELECT ALL - 25 AS col0 FROM tab1 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * + col2 - col2 * col0 col1 FROM tab2 AS cor0
----
-1846
-2736
0

query I rowsort
SELECT + col1 * - cor0.col2 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT + + col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - cor0.col2 - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - col2 * col1 * - col2 + col0 FROM tab2
----
22606
24627
39962

onlyif mysql # use DIV operator for integer division
query I rowsort label-8181
SELECT DISTINCT 11 + - col2 DIV col1 FROM tab2
----
11
9

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT 11 + - col2 / col1 FROM tab2
----
11
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 34 ) col1 FROM tab0
----
34
34
34

query I rowsort
SELECT + col1 + - col1 - + col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - 94 FROM tab2, tab2 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT - - col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8186
SELECT - col0 + + ( - 1 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8186
SELECT - col0 + + ( - 1 ) / + col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 57 col1 FROM tab1 AS cor0
----
111
114
153

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT col2 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - - col1 + - col1 * + 7 FROM tab1 AS cor0
----
-156
-60
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8191
SELECT DISTINCT - + col2 * + col0 + col0 * - col2 + - col1 DIV 91 AS col0 FROM tab1 AS cor0
----
-15360
-324
-7296

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT - + col2 * + col0 + col0 * - col2 + - col1 / 91 AS col0 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT ALL + 24 * + col2 FROM tab1
----
1296
1368
2304

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8194
SELECT tab2.col0 * + CAST( col1 AS SIGNED ) + col0 * - col0 FROM tab2
----
-1482
-4898
168

skipif mysql # not compatible
query I rowsort label-8194
SELECT tab2.col0 * + CAST ( col1 AS INTEGER ) + col0 * - col0 FROM tab2
----
-1482
-4898
168

query I rowsort
SELECT ALL 84 * cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 743e9804e2d2b75c29f9d7eca3aa4fd7

query I rowsort
SELECT - col0 + col2 * cor0.col2 FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT ALL col1 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-8198
SELECT 2 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8198
SELECT 2 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8199
SELECT + - cor0.col2 DIV + col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8199
SELECT + - cor0.col2 / + col1 FROM tab2 AS cor0
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8200
SELECT ALL - cor0.col0 + col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - cor0.col0 + col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8201
SELECT + ( col1 ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT + ( col1 ) * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) * 82 AS col0 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT ALL ( col0 ) * - col1 + - tab1.col1 * tab1.col2 FROM tab1
----
-1210
-1482
-2288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8204
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 + tab2.col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + tab2.col1 FROM tab2
----
NULL

query I rowsort
SELECT ( col0 ) * + col2 AS col0 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8206
SELECT col2 + - tab1.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT col2 + - tab1.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8207
SELECT - CAST( NULL AS DECIMAL ) * 48 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8207
SELECT - CAST ( NULL AS REAL ) * 48 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 73 * col2 + + 46 + - cor0.col2 * + col1 FROM tab2 cor0
----
1180
2174
410

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8210
SELECT ALL col2 DIV col2 + - 47 FROM tab1 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL col2 / col2 + - 47 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - 66 * + col0 + 63 FROM tab1 AS cor0
----
-135
-4161
-5217

query I rowsort
SELECT ALL col2 * 59 + - col2 AS col1 FROM tab2
----
1508
1566
2204

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd

onlyif mysql # use DIV operator for integer division
query I rowsort label-8214
SELECT DISTINCT + col2 DIV - col0 + col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT + col2 / - col0 + col1 FROM tab2
----
17
28
59

query I rowsort
SELECT + 27 FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 12 col1 FROM tab1
----
22
25
38

query I rowsort
SELECT - col2 * - 7 FROM tab0
----
231
574
7

query I rowsort
SELECT - col2 * + 52 - col1 * col0 AS col0 FROM tab0 cor0
----
-12363
-3447
-3780

query I rowsort
SELECT DISTINCT - col0 + ( ( + col2 ) ) FROM tab2 cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - col2 ) * - tab1.col0 col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT col0 + - 60 AS col2 FROM tab1
----
-57
20
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 + col1 col2 FROM tab1 cor0
----
31
34
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-8223
SELECT ALL + col0 * col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + col0 * col0 / cor0.col2 AS col2 FROM tab0 AS cor0
----
1225
17
96

query I rowsort
SELECT DISTINCT + col1 * - col0 * cor0.col2 + + 18 FROM tab1 AS cor0
----
-36462
-4194
-99822

query I rowsort
SELECT + col2 + 12 AS col0 FROM tab0
----
13
45
94

query I rowsort
SELECT DISTINCT + col1 - - col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL 28 * + 61 + - col0 FROM tab2 AS cor0
----
1629
1630
1701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * - cor0.col0 * - col1 col0 FROM tab0 AS cor0
----
148608
244440
583128

query I rowsort
SELECT DISTINCT 28 - col2 * + col0 FROM tab1 AS cor0
----
-134
-3620
-7652

onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT - - ( + 34 ) + + col0 DIV 2 FROM tab1 AS cor0
----
35
66
74

skipif mysql # not compatible
query I rowsort label-8230
SELECT - - ( + 34 ) + + col0 / 2 FROM tab1 AS cor0
----
35
66
74

query I rowsort
SELECT DISTINCT - + cor0.col2 + 15 FROM tab0 AS cor0
----
-18
-67
14

query I rowsort
SELECT ALL 62 * 56 + + col2 AS col1 FROM tab0 AS cor0
----
3473
3505
3554

query I rowsort
SELECT ALL + ( 78 ) FROM tab2
----
78
78
78

query I rowsort
SELECT 54 * + tab0.col2 * col2 + + col2 AS col2 FROM tab0
----
363178
55
58839

query I rowsort
SELECT - ( 57 ) + + col0 FROM tab0 AS cor0
----
-22
-33
32

query I rowsort
SELECT ALL - 5 * + cor0.col0 FROM tab0 AS cor0
----
-120
-175
-445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - 24 * - cor0.col1 + col2 * + cor0.col2 FROM tab1 AS cor0
----
3489
3540
9528

query I rowsort
SELECT + col2 * - col0 + col1 * ( + col2 ) * ( + col0 + col1 ) FROM tab0 AS cor0
----
12769
1335862
311388

onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT DISTINCT col2 DIV 92 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT col2 / 92 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + col1 * col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - col0 * 77 FROM tab1 AS cor0
----
-231
-4928
-6160

query I rowsort
SELECT - col0 - 54 FROM tab1 cor0
----
-118
-134
-57

query I rowsort
SELECT 39 * - cor0.col0 FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT - 56 + ( col1 ) FROM tab2 AS cor0
----
-25
-39
3

query I rowsort
SELECT - + 31 AS col0 FROM tab1 AS cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL tab1.col1 * + col2 + col0 + + col2 FROM tab1
----
1424
1461
691

onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT ALL - col0 DIV 32 + col1 AS col1 FROM tab2
----
15
31
57

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - col0 / 32 + col1 AS col1 FROM tab2
----
15
31
57

query I rowsort
SELECT col1 + ( - ( + col2 ) * + col0 ) + col2 FROM tab2
----
-131
-1943
-2947

onlyif mysql # use DIV operator for integer division
query I rowsort label-8251
SELECT DISTINCT col1 + tab1.col2 DIV + tab1.col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT col1 + tab1.col2 / + tab1.col2 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL col0 * 88 + col0 + - col0 FROM tab2
----
616
6864
6952

query I rowsort
SELECT + col2 * - ( col0 ) + col0 + col2 AS col0 FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT ALL - col0 * 14 AS col2 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT DISTINCT + + 32 + - cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
-27
1
15

query I rowsort
SELECT col1 * 85 + col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
15115
8135
8281

query I rowsort
SELECT + cor0.col1 + + ( - col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8258
SELECT ALL + col0 DIV CAST( col0 AS SIGNED ) + tab1.col0 DIV + col0 AS col1 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL + col0 / CAST ( col0 AS INTEGER ) + tab1.col0 / + col0 AS col1 FROM tab1
----
2
2
2

query I rowsort
SELECT + col0 * 78 FROM tab1
----
234
4992
6240

query I rowsort
SELECT 6 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ALL - col0 + + col1 + 26 FROM tab1
----
-28
-41
49

query I rowsort
SELECT DISTINCT ( 20 ) AS col0 FROM tab2
----
20

query I rowsort
SELECT DISTINCT - 8 FROM tab2, tab0 AS cor0
----
-8

query I rowsort
SELECT ALL - ( + 55 ) AS col0 FROM tab1
----
-55
-55
-55

query I rowsort
SELECT 52 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2968
3301
9268

query I rowsort
SELECT 72 - col2 * ( - col1 * col2 ) FROM tab0 AS cor0
----
169
611956
93726

query I rowsort
SELECT + 92 * - col2 AS col2 FROM tab0 AS cor0
----
-3036
-7544
-92

query I rowsort
SELECT + col1 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - - col2 + - col0 * 12 FROM tab0 AS cor0
----
-255
-419
-986

query I rowsort
SELECT DISTINCT col1 + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - 31 - - cor0.col1 * - 7 FROM tab1 AS cor0
----
-101
-122
-213

query I rowsort
SELECT ALL - - 83 + col2 * 22 + col0 AS col1 FROM tab1 cor0
----
1274
1401
2275

query I rowsort
SELECT + 11 * + col2 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT - - col2 - - col2 * col0 FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort
SELECT - col2 * col1 / CAST ( 64 AS REAL ) + col2 FROM tab0
----
-11
-34
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + tab2.col2 col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - 93 + col1 AS col0 FROM tab2 AS cor0
----
-34
-62
-76

query I rowsort
SELECT ( col1 ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - col0 + 79 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT + col1 * - col1 - - 75 * col1 FROM tab0 AS cor0
----
-1456
-2134
-946

query I rowsort
SELECT + + col2 * + ( - ( cor0.col2 ) ) - - 66 AS col2 FROM tab2 AS cor0
----
-1378
-610
-663

query I rowsort
SELECT ALL + - col2 + col0 * 0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - + col2 + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-8284
SELECT col2 DIV - col0 + col2 AS col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-8284
SELECT col2 / - col0 + col2 AS col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL - col2 + 12 FROM tab1 AS cor0
----
-42
-45
-84

query I rowsort
SELECT - + col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col2 * + 5 AS col1 FROM tab2 AS cor0
----
130
135
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - cor0.col1 + ( cor0.col1 * - col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-1439
-255
-4739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col2 * - 77 col2 FROM tab0 AS cor0
----
-174
-2627
-6405

query I rowsort
SELECT ALL col2 + 72 FROM tab1 AS cor0
----
126
129
168

onlyif mysql # use DIV operator for integer division
query I rowsort label-8293
SELECT col0 - col1 * col0 DIV + col0 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-8293
SELECT col0 - col1 * col0 / + col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT 78 * + col2 FROM tab0
----
2574
6396
78

query I rowsort
SELECT + ( col2 ) - - ( - col1 ) AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL col1 * + col2 * - ( col2 ) AS col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT - - col2 + + 4 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT + col1 * - 46 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-156135
-372465
-94920

query I rowsort
SELECT ALL + - col0 * col2 - - col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-8300
SELECT - - col0 DIV - ( col0 ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-8300
SELECT - - col0 / - ( col0 ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT DISTINCT col0 + 2 AS col1 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT DISTINCT 21 FROM tab2 cor0
----
21

query I rowsort
SELECT + col2 * 34 FROM tab1 cor0
----
1836
1938
3264

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + col1 * 20 FROM tab0 cor0
----
1720
1820
1940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col2 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + 69 * - 48 AS col1 FROM tab2 AS cor0
----
-3312

onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT DISTINCT 0 DIV + cor0.col2 col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT 0 / + cor0.col2 col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8309
SELECT DISTINCT - - 83 DIV + col1 FROM tab2 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT - - 83 / + col1 FROM tab2 cor0
----
1
2
4

query I rowsort
SELECT DISTINCT + 0 * cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8311
SELECT DISTINCT cor0.col2 DIV col0 + col1 * + 89 AS col0 FROM tab1 AS cor0
----
1158
2332
890

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT cor0.col2 / col0 + col1 * + 89 AS col0 FROM tab1 AS cor0
----
1158
2332
890

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 80b3ced88f886d6e15182ebf21c93987

query I rowsort
SELECT ALL - col1 + + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-8314
SELECT ALL - + col2 + col1 DIV col0 + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1508
608
814

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - + col2 + col1 / col0 + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1508
608
814

query I rowsort
SELECT DISTINCT 30 * + col1 AS col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT ALL + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col1 + tab1.col1 * - col0 AS col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT ALL + col1 + + 76 FROM tab1 AS cor0
----
102
86
89

query I rowsort
SELECT DISTINCT - col2 - 84 * + col1 AS col2 FROM tab1 cor0
----
-1188
-2238
-897

query I rowsort
SELECT col1 * - 4 AS col0 FROM tab0
----
-344
-364
-388

query I rowsort
SELECT - col2 + col0 + ( + cor0.col2 ) * + ( col0 ) AS col0 FROM tab1 AS cor0
----
111
3655
7664

onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT ALL - col0 + ( col0 ) DIV col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL - col0 + ( col0 ) / col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT - + col2 + col1 * - col2 * - col0 FROM tab1 cor0
----
36423
4158
99744

skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( col0 + - col0 AS REAL ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col0 * - ( col1 + col2 ) FROM tab2 AS cor0
----
406
4345
6630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8326
SELECT - CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8326
SELECT - CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8327
SELECT CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-8327
SELECT CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL - - col1 + + 32 * + col1 * cor0.col1 FROM tab1 cor0
----
21658
3210
5421

query I rowsort
SELECT ALL + - col0 - + col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - + col1 + 59 AS col2 FROM tab1 AS cor0
----
33
46
49

query I rowsort
SELECT - + col2 + - col1 * col1 FROM tab1 AS cor0
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT col2 * col2 + + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT 50 * col0 AS col0 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT ALL + + ( - col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + col0 * - cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-262144
-27
-512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col1 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + 83 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
1968
2870
7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT cor0.col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8339
SELECT cor0.col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT 28 * cor0.col0 + col2 * - col2 FROM tab0 cor0
----
-417
-4232
979

query I rowsort
SELECT ALL + + col1 + - col1 * 99 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT col2 * cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL col0 * - col1 - - 18 AS col0 FROM tab1 cor0
----
-1022
-60
-622

query I rowsort
SELECT 72 * col1 + + 49 AS col2 FROM tab0 AS cor0
----
6241
6601
7033

query I rowsort
SELECT DISTINCT + 23 + - col0 FROM tab2 AS cor0
----
-55
-56
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-8346
SELECT DISTINCT ( + 25 ) * col1 DIV - tab1.col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT ( + 25 ) * col1 / - tab1.col1 FROM tab1
----
-25

query I rowsort
SELECT + 8 * col1 + col2 * + col1 * col1 AS col2 FROM tab1
----
16328
36712
5780

query I rowsort
SELECT + 1 + col2 * + col0 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT - - 76 AS col2 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT col1 + col0 * col1 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-8351
SELECT + - 96 DIV 2 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

skipif mysql # not compatible
query I rowsort label-8351
SELECT + - 96 / 2 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - col1 * col1 * col1 - cor0.col2 FROM tab2 AS cor0
----
-205405
-29818
-4951

query I rowsort
SELECT 39 AS col2 FROM tab0
----
39
39
39

query I rowsort
SELECT col2 + - ( - col2 ) + col1 AS col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT col0 * + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + cor0.col1 * + ( col1 + col0 ) FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT col1 * - ( - 51 ) + col2 FROM tab1 AS cor0
----
1380
567
759

query I rowsort
SELECT - - col2 * + 66 + - 21 + col1 FROM tab0 AS cor0
----
142
2243
5482

query I rowsort
SELECT - col1 + cor0.col0 + 10 FROM tab2 AS cor0
----
-14
29
72

query I rowsort
SELECT cor0.col1 * + ( col2 * col1 ) - + cor0.col1 FROM tab2 cor0
----
10965
25916
90447

onlyif mysql # use DIV operator for integer division
query I rowsort label-8361
SELECT DISTINCT col1 * col2 + - col0 + ( col1 ) DIV col0 AS col1 FROM tab1 cor0
----
1168
1409
506

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT col1 * col2 + - col0 + ( col1 ) / col0 AS col1 FROM tab1 cor0
----
1168
1409
506

query I rowsort
SELECT ALL 44 AS col2 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 + col0 * + 60 FROM tab0 AS cor0
----
13439
3504
5495

query I rowsort
SELECT ALL col0 - - col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8365
SELECT + CAST( 36 AS SIGNED ) FROM tab0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-8365
SELECT + CAST ( 36 AS INTEGER ) FROM tab0
----
36
36
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-8366
SELECT - ( col2 ) DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8366
SELECT - ( col2 ) / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NULL <> ( cor0.col0 )
----

query I rowsort
SELECT - col2 + 47 AS col1 FROM tab0 AS cor0
----
-35
14
46

query I rowsort
SELECT 15 + + ( - col1 ) FROM tab1 AS cor0
----
-11
2
5

query I rowsort
SELECT + 16 FROM tab0, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT DISTINCT - - 29 + - col1 FROM tab0 AS cor0
----
-57
-62
-68

query I rowsort
SELECT - - 10 + 19 AS col2 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL + 17 * col2 + col2 FROM tab0 cor0
----
1476
18
594

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + 5 AS col2 FROM tab0 AS cor0
----
102
91
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - cor0.col1 ) * - col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL col2 * - ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 + - col2 * + cor0.col2 * + col2 FROM tab1 cor0
----
-157410
-185136
-884640

onlyif mysql # use DIV operator for integer division
query I rowsort label-8379
SELECT DISTINCT - + col1 * col2 - + 37 DIV cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT - + col1 * col2 - + 37 / cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8380
SELECT col2 DIV - col2 - cor0.col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-8380
SELECT col2 / - col2 - cor0.col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT + + col1 + - col1 * 66 FROM tab0 cor0
----
-5590
-5915
-6305

query I rowsort
SELECT ALL + 8 * + col0 * - col0 + col2 * + col2 FROM tab0 AS cor0
----
-3519
-56644
-9799

query I rowsort
SELECT DISTINCT + 0 * + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 58 - col2 FROM tab0 AS cor0
----
-140
-59
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8385
SELECT ALL col0 * + CAST( 27 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1728
2160
81

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL col0 * + CAST ( 27 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT ALL 69 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT DISTINCT 97 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col2 FROM tab2
----
3
3
3

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * 82 AS col1 FROM tab0 AS cor0
----
6966
7371
7857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8390
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + 51 FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT 63 * tab2.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9f630252c31040e5dec67837928fdb1c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-98

query I rowsort
SELECT 56 * - col2 AS col0 FROM tab2 AS cor0
----
-1456
-1512
-2128

query I rowsort
SELECT col2 * + 39 * - 10 + tab2.col1 FROM tab2
----
-10081
-10499
-14803

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT DISTINCT ( + col1 + tab1.col1 ) * - ( - 85 ) FROM tab1
----
1700
2210
4420

query I rowsort
SELECT ALL 53 * - tab2.col1 * + tab2.col1 FROM tab2
----
-15317
-184493
-50933

query I rowsort
SELECT 53 + col0 AS col1 FROM tab0
----
142
77
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8402
SELECT ALL CAST( - 65 AS SIGNED ) * col1 FROM tab1
----
-1690
-650
-845

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL CAST ( - 65 AS INTEGER ) * col1 FROM tab1
----
-1690
-650
-845

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab1
----
37

query I rowsort
SELECT 74 + col1 AS col1 FROM tab2
----
105
133
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col0 FROM tab2
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 + - col1 * + col2 + + col2 col1 FROM tab0 cor0
----
-2787
-7362
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8407
SELECT ALL - col1 DIV + 70 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - col1 / + 70 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( + 75 ) FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - col2 + + col2 * - col0 AS col1 FROM tab2 cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-8410
SELECT col2 * col0 + col1 + col0 DIV - col0 FROM tab2
----
2086
219
3018

skipif mysql # not compatible
query I rowsort label-8410
SELECT col2 * col0 + col1 + col0 / - col0 FROM tab2
----
2086
219
3018

query I rowsort
SELECT col2 + - col2 * col2 AS col1 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT col2 * - col0 + col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT col2 + - col1 + ( - col0 * + tab2.col0 ) FROM tab2
----
-53
-6117
-6220

onlyif mysql # use DIV operator for integer division
query I rowsort label-8414
SELECT ALL col0 DIV col2 + - 37 FROM tab1
----
-36
-37
-37

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL col0 / col2 + - 37 FROM tab1
----
-36
-37
-37

query I rowsort
SELECT ALL 27 + + cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2037
-3368
-8072

query I rowsort
SELECT ALL 34 + - col0 AS col1 FROM tab1
----
-30
-46
31

query I rowsort
SELECT ALL + 87 + col2 * - ( 41 ) AS col1 FROM tab1
----
-2127
-2250
-3849

query I rowsort
SELECT DISTINCT + col0 + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + + col1 * 35 AS col0 FROM tab0 cor0
----
3010
3185
3395

query I rowsort
SELECT DISTINCT - col0 * + 72 + cor0.col2 * - col2 FROM tab2 cor0
----
-1233
-6292
-7132

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8422
SELECT ALL col2 + + CAST( + col1 * - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL col2 + + CAST ( + col1 * - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT - col1 - ( - 86 ) FROM tab2 AS cor0
----
27
55
69

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) + + col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT - col0 + + 36 AS col1 FROM tab1 AS cor0
----
-28
-44
33

query I rowsort
SELECT ALL + cor0.col2 * 86 + + col2 AS col1 FROM tab0 AS cor0
----
2871
7134
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col2 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col1 * - 65 + col2 FROM tab2 AS cor0
----
-1067
-1988
-3809

query I rowsort
SELECT col2 * - 62 + 52 AS col2 FROM tab0 AS cor0
----
-10
-1994
-5032

query I rowsort
SELECT ALL col0 + 92 FROM tab1 AS cor0
----
156
172
95

query I rowsort
SELECT + col1 + + ( - col1 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 + 73 AS col1 FROM tab1 cor0
----
47
60
63

query I rowsort
SELECT col1 * col1 + + cor0.col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL col0 * - col0 + col1 FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL cor0.col0 * 10 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT DISTINCT - - cor0.col0 * ( + 55 ) + - col0 + col1 * + 56 AS col2 FROM tab1 cor0
----
1618
4016
5048

query I rowsort
SELECT ALL 64 * - col2 + - ( - col0 ) FROM tab1
----
-3453
-3584
-6064

query I rowsort
SELECT ALL - col2 + col0 * + col2 AS col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL - 1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT - 65 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8441
SELECT DISTINCT 10 + col2 DIV + col1 AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT 10 + col2 / + col1 AS col2 FROM tab0
----
10

query I rowsort
SELECT DISTINCT + + 84 + col0 AS col2 FROM tab0 AS cor0
----
108
119
173

query I rowsort
SELECT - 71 * col0 AS col0 FROM tab1 AS cor0
----
-213
-4544
-5680

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL col1 * - 19 FROM tab0 AS cor0
----
-1634
-1729
-1843

onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT - col2 DIV + cor0.col0 col2 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8446
SELECT - col2 / + cor0.col0 col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT col1 + col0 * 70 AS col1 FROM tab2 AS cor0
----
521
5519
5547

query I rowsort
SELECT DISTINCT - col1 + + ( col1 ) * + col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT + col2 + + 44 FROM tab0 AS cor0
----
126
45
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8450
SELECT ALL - col2 DIV 61 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - col2 / 61 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 + - 96 AS col0 FROM tab1 AS cor0
----
-106
-109
-122

query I rowsort
SELECT - - col0 * - 33 AS col0 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT + col2 * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 * + 60 FROM tab0
----
1956
25
4831

onlyif mysql # use DIV operator for integer division
query I rowsort label-8455
SELECT + + col0 * col0 + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
1225
577
7921

skipif mysql # not compatible
query I rowsort label-8455
SELECT + + col0 * col0 + col2 / col0 AS col0 FROM tab0 AS cor0
----
1225
577
7921

query I rowsort
SELECT + + col1 + ( - col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8457
SELECT - col2 + col2 DIV tab2.col1 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-8457
SELECT - col2 + col2 / tab2.col1 FROM tab2
----
-26
-27
-36

query I rowsort
SELECT ALL col0 * + col2 + col1 * + col2 FROM tab2
----
1026
3562
3648

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN ( NULL ) AND col2
----
78
59
26
79
17
38

query I rowsort
SELECT DISTINCT col1 * - col1 + + col1 AS col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT ALL col2 * - col2 FROM tab1 WHERE - col2 NOT IN ( + col0 - - col0 )
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col0 - - tab2.col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT + col1 * tab2.col1 AS col0 FROM tab2 WHERE ( + col1 ) NOT BETWEEN col0 AND ( NULL )
----
289
3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 95 * cor0.col1 col0 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT 13 * - col1 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT col2 - + tab1.col2 * + col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT + tab2.col2 * - col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col2 - tab2.col1 FROM tab2
----
-33
-4
21

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col1 + - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1 + + col2 + + col2 )
----

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 AS col1 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT + tab2.col1 + tab2.col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT + tab1.col0 + col0 * tab1.col1 AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL col2 + - col0 * - col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT 85 * + col0 AS col0 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT - - col1 * + col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab0, tab2 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8478
SELECT DISTINCT - 42 DIV + 82 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - 42 / + 82 AS col2 FROM tab0
----
0

query I rowsort
SELECT + 46 * - col1 FROM tab1 AS cor0
----
-1196
-460
-598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8480
SELECT DISTINCT CAST( - 10 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT CAST ( - 10 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT ALL - col1 * - col2 - 34 DIV - col2 FROM tab0 AS cor0
----
131
2839
7462

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - col1 * - col2 - 34 / - col2 FROM tab0 AS cor0
----
131
2839
7462

query I rowsort
SELECT - ( cor0.col1 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT tab2.col0 * - cor0.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 99e52647357b835698a6730896ff820d

query I rowsort
SELECT - ( + col1 ) * - col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - 64 AS col2 FROM tab2
----
-64
-64
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8487
SELECT CAST( - 38 AS SIGNED ) AS col2 FROM tab0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-8487
SELECT CAST ( - 38 AS INTEGER ) AS col2 FROM tab0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 + - col1 AS REAL ) FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + cor0.col1 + 66 * - col0 FROM tab2 AS cor0
----
-431
-5089
-5197

query I rowsort
SELECT - 76 AS col2 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT ALL + 63 * - col0 + + col2 * - 60 FROM tab1 AS cor0
----
-10800
-3429
-7452

query I rowsort
SELECT 3 - tab1.col0 FROM tab1
----
-61
-77
0

query I rowsort
SELECT + ( col0 ) + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT 40 + - col1 AS col0 FROM tab0 AS cor0
----
-46
-51
-57

query I rowsort
SELECT - col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * - col0 + col2 + cor0.col2 FROM tab1 AS cor0
----
-3982
-6208
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + cor0.col1 ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL + col0 + tab2.col2 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8499
SELECT ALL col1 + - col2 DIV + col0 AS col0 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL col1 + - col2 / + col0 AS col0 FROM tab2
----
17
28
59

query I rowsort
SELECT + - 20 AS col2 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - col2 + + 38 FROM tab0 cor0
----
-44
37
5

query I rowsort
SELECT - 39 * col0 + - col2 + - cor0.col1 * col2 FROM tab2 cor0
----
-1137
-3765
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8503
SELECT DISTINCT + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT + col0 / col0 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT 27 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab2, tab2 AS cor0
----
0

query I rowsort
SELECT + col1 + - col2 + + col1 * cor0.col1 FROM tab2 AS cor0
----
268
3514
965

query I rowsort
SELECT ALL 11 * col2 - col1 FROM tab1 cor0
----
1043
568
617

query I rowsort
SELECT ALL + 32 * + col1 * + col2 FROM tab2 AS cor0
----
20672
26784
49088

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8509
SELECT + CAST( NULL AS DECIMAL ) * col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8509
SELECT + CAST ( NULL AS REAL ) * col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT + col1 + - col2 * + col0 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT + cor0.col0 * + col1 * + col2 + col2 AS col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + + 67 + col2 AS col1 FROM tab0 AS cor0
----
100
149
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8514
SELECT CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 22 ) + col0 + col1 FROM tab0
----
110
158
88

query I rowsort
SELECT 80 * col1 AS col0 FROM tab0
----
6880
7280
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8517
SELECT ALL CAST( col0 + col2 AS SIGNED ) * + col1 FROM tab2
----
1054
1989
6136

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL CAST ( col0 + col2 AS INTEGER ) * + col1 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT ALL cor0.col2 + col0 + - col2 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 * + col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8521
SELECT col2 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT col0 * - col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT col0 * col0 + tab2.col2 FROM tab2 WHERE NULL > - col1 * col1
----

query I rowsort
SELECT ALL + col0 - + col1 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT col2 + - col0 DIV - col0 AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8525
SELECT col2 + - col0 / - col0 AS col1 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + tab1.col1 * col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NULL IN ( - col2 + col1 )
----

query I rowsort
SELECT col0 + col2 + + col0 * - col2 FROM tab1
----
-105
-3527
-7504

onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT tab1.col1 DIV - col0 AS col2 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8530
SELECT tab1.col1 / - col0 AS col2 FROM tab1
----
-8
0
0

query I rowsort
SELECT + col1 * col1 * tab0.col0 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 - + col2 col1 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT col1 * + col1 + + col1 + tab2.col0 * + col2 FROM tab2
----
1181
3308
5568

query I rowsort
SELECT ALL col1 * col0 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + cor0.col2 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL - col2 - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 + - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 FROM tab1, tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8540
SELECT ALL + col1 * + col0 - col1 DIV + col1 FROM tab2
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + col1 * + col0 - col1 / + col1 FROM tab2
----
1342
216
4601

query I rowsort
SELECT + col1 + col2 - + col2 FROM tab0
----
86
91
97

query I rowsort
SELECT tab2.col0 + + col0 + + tab2.col1 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8543
SELECT + col1 DIV col2 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2066
3492
8100

skipif mysql # not compatible
query I rowsort label-8543
SELECT + col1 / col2 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2066
3492
8100

query I rowsort
SELECT - col2 - col0 AS col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL col0 + col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT + col2 + + col1 + col0 AS col0 FROM tab0 AS cor0
----
133
143
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + cor0.col2 * col2 col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 + - col0 + col1 AS col0 FROM tab1 AS cor0
----
-1315
-1381
-624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + + cor0.col0 * - cor0.col0 col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT 47 + + 87 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to ff0480b12ff49e1b13f918b2f5937349

query I rowsort
SELECT + - cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - - cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT DISTINCT + tab0.col2 DIV + tab0.col2 + + col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + tab0.col2 / + tab0.col2 + + col1 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT - col1 + tab0.col2 + - col2 * 63 * 40 AS col0 FROM tab0
----
-206649
-2616
-83213

onlyif mysql # use DIV operator for integer division
query I rowsort label-8556
SELECT - tab1.col1 * tab1.col0 DIV - col2 + - ( col2 + + col1 ) AS col0 FROM tab1
----
-56
-79
-99

skipif mysql # not compatible
query I rowsort label-8556
SELECT - tab1.col1 * tab1.col0 / - col2 + - ( col2 + + col1 ) AS col0 FROM tab1
----
-56
-79
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8557
SELECT - CAST( NULL AS SIGNED ) * 0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT - CAST ( NULL AS INTEGER ) * 0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 31 + col2 * - col0 AS col1 FROM tab0 cor0
----
-4
-7267
-761

query I rowsort
SELECT DISTINCT - - cor2.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
24
35
89

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab1
----
-44

query I rowsort
SELECT col2 * - 67 + col0 AS col2 FROM tab2 AS cor0
----
-1664
-1802
-2467

query I rowsort
SELECT ALL tab1.col2 + - tab1.col0 * - col1 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + + cor0.col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - 97 * cor0.col1 + CAST ( - cor0.col1 + + col1 AS REAL ) / col0 AS col0 FROM tab1 AS cor0
----
-1261
-2522
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-8566
SELECT ALL + 5 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + 5 / col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 48 * col0 AS col0 FROM tab0
----
1152
1680
4272

onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT DISTINCT + col1 DIV + ( + col1 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + col1 / + ( + col1 ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - + col1 * - col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col0 * + 42 FROM tab1 AS cor0
----
-126
-2688
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - + col1 * 83 AS col1 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT ALL - cor0.col0 + ( - col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT col1 * 13 FROM tab2 AS cor0
----
221
403
767

query I rowsort
SELECT col0 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT 74 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-8577
SELECT ALL + col2 * col2 DIV col0 AS col0 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + col2 * col2 / col0 AS col0 FROM tab2
----
104
18
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8578
SELECT col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 61 AS col2 FROM tab0 AS cor0
----
-28
26
37

query I rowsort
SELECT - ( ( cor0.col2 ) * 73 ) FROM tab0, tab1 AS cor0
----
9 values hashing to c434289002b834f08997aade7d19bb56

onlyif mysql # use DIV operator for integer division
query I rowsort label-8581
SELECT - 41 DIV col2 FROM tab0 AS cor0
----
-1
-41
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT - 41 / col2 FROM tab0 AS cor0
----
-1
-41
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT + - col0 DIV + 8 FROM tab2 AS cor0
----
-9
-9
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT + - col0 / + 8 FROM tab2 AS cor0
----
-9
-9
0

query I rowsort
SELECT DISTINCT col1 + + 67 AS col2 FROM tab1 AS cor0
----
77
80
93

query I rowsort
SELECT + 96 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL + + col2 * col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - 53 FROM tab1, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ( - cor0.col2 ) + - col1 * - 77 AS col2 FROM tab2 AS cor0
----
1271
2360
4517

query I rowsort
SELECT ALL + ( - col2 ) * col2 * - col1 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT 38 + + col1 FROM tab0 AS cor0
----
124
129
135

query I rowsort
SELECT - 97 + + col2 FROM tab1 AS cor0
----
-1
-40
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 28 - col2 * - col0 FROM tab1 AS cor0
----
190
3676
7708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8593
SELECT ALL + tab0.col2 / CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + tab0.col2 / CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 2 + col1 * - 30 FROM tab1 AS cor0
----
-298
-388
-778

query I rowsort
SELECT + 55 * col1 * + ( - col0 ) + - cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
-120916
-196134
-453726

query I rowsort
SELECT - 43 * + col0 + col1 FROM tab1 AS cor0
----
-103
-2742
-3427

onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT col0 * + col2 + + 83 DIV - col2 AS col1 FROM tab0 AS cor0
----
-48
7297
790

skipif mysql # not compatible
query I rowsort label-8597
SELECT col0 * + col2 + + 83 / - col2 AS col1 FROM tab0 AS cor0
----
-48
7297
790

query I rowsort
SELECT DISTINCT + col0 * - 32 - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1984
-2480
-93

query I rowsort
SELECT + - cor0.col1 * + 72 + - col1 AS col1 FROM tab1 cor0
----
-1898
-730
-949

query I rowsort
SELECT col1 * col2 + 29 FROM tab2 AS cor0
----
1563
675
866

query I rowsort
SELECT col2 + col2 * - col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT 19 * + cor0.col2 * + col2 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
176352
56808
62301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * - col0 col2 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT - 79 * - cor0.col2 + 32 FROM tab0 AS cor0
----
111
2639
6510

query I rowsort
SELECT DISTINCT 13 * col0 FROM tab0 AS cor0
----
1157
312
455

query I rowsort
SELECT DISTINCT 25 + - 25 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT ALL + col1 + + 21 + col1 * - col2 AS col1 FROM tab2
----
-1454
-608
-785

onlyif mysql # use DIV operator for integer division
query I rowsort label-8609
SELECT DISTINCT - 10 DIV col1 + + col1 AS col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - 10 / col1 + + col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT 20 - + 7 AS col2 FROM tab0
----
13
13
13

query I rowsort
SELECT col0 + col1 + + col1 AS col1 FROM tab2
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-8612
SELECT DISTINCT col1 + col2 DIV col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT col1 + col2 / col1 FROM tab2 AS cor0
----
19
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8613
SELECT ALL ( col2 ) DIV 70 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL ( col2 ) / 70 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + ( + col0 ) + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - - col1 * col0 * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL col1 - ( - col2 ) AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + 45 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + + col0 * - col2 - + cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
-1026
-3562
-3648

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab2 cor3
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae

query I rowsort
SELECT - - col1 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + ( + col2 ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - 7 + 59 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 41 * 55 - - cor0.col2 FROM tab2 AS cor0
----
2281
2282
2293

query I rowsort
SELECT DISTINCT - col1 + 77 + col2 * ( col1 + - col0 ) * 47 FROM tab2 AS cor0
----
-110672
-23200
30502

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8626
SELECT - ( col0 ) * + cor0.col2 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8626
SELECT - ( col0 ) * + cor0.col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 16 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-47
-75

query I rowsort
SELECT ALL + ( - 20 ) + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1514
626
817

query I rowsort
SELECT DISTINCT + col2 + 32 AS col0 FROM tab0
----
114
33
65

query I rowsort
SELECT - col1 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * - col2 + col0 col2 FROM tab2 AS cor0
----
-2132
-2288
-3151

query I rowsort
SELECT col1 * col1 + - col2 AS col1 FROM tab1
----
43
622
73

query I rowsort
SELECT ALL + ( col2 * + col0 ) + col0 * 63 FROM tab2
----
630
6942
7979

query I rowsort
SELECT + 84 * col1 + col0 FROM tab1
----
1172
2187
904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 * col1 + + 89 col0 FROM tab2 AS cor0
----
-10893
-25858
-90417

query I rowsort
SELECT + cor0.col1 * + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - + 88 - 38 AS col1 FROM tab0 AS cor0
----
-126
-126
-126

query I rowsort
SELECT - + 15 - 50 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8639
SELECT ALL - CAST( + ( col2 ) AS SIGNED ) * col2 + + 84 * - col2 DIV ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-3000
-3333
-9300

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL - CAST ( + ( col2 ) AS INTEGER ) * col2 + + 84 * - col2 / ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-3000
-3333
-9300

query I rowsort
SELECT DISTINCT - ( - 54 ) * cor0.col2 + - ( - col0 ) * col2 FROM tab1 cor0
----
12864
3078
6726

query I rowsort
SELECT ALL 51 * col2 - - col2 * - 5 FROM tab1 AS cor0
----
2484
2622
4416

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8642
SELECT ALL + CAST( + 77 AS SIGNED ) * col2 FROM tab0 AS cor0
----
2541
6314
77

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + CAST ( + 77 AS INTEGER ) * col2 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT + col1 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - ( + 61 ) + + col0 AS col1 FROM tab2 AS cor0
----
-54
17
18

query I rowsort
SELECT ALL - + col2 * 36 + col2 * col2 AS col1 FROM tab1 AS cor0
----
1197
5760
972

query I rowsort
SELECT 86 + + 26 AS col1 FROM tab0 AS cor0
----
112
112
112

query I rowsort
SELECT DISTINCT + 59 + - 23 * + col0 FROM tab1 AS cor0
----
-10
-1413
-1781

query I rowsort
SELECT + cor0.col2 * cor0.col1 + ( 46 ) AS col1 FROM tab0 AS cor0
----
143
2884
7508

onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT DISTINCT + col2 + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT + col2 + cor0.col0 / + col0 FROM tab2 AS cor0
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + - 59 col2 FROM tab2 cor0
----
-1593
-705
-896

query I rowsort
SELECT - - 15 + - col0 AS col1 FROM tab0 AS cor0
----
-20
-74
-9

query I rowsort
SELECT DISTINCT + 70 * + col2 + col0 FROM tab2 AS cor0
----
1897
1898
2739

query I rowsort
SELECT ALL + col1 + col1 * - cor0.col2 + - col2 AS col1 FROM tab2 cor0
----
-1501
-667
-833

query I rowsort
SELECT - 5 + - col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1439
671
724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8655
SELECT DISTINCT col0 * col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT col0 * col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 - + col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8657
SELECT DISTINCT col1 DIV col0 + + 53 * ( + col2 + + col2 ) FROM tab2 AS cor0
----
2756
2866
4028

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT col1 / col0 + + 53 * ( + col2 + + col2 ) FROM tab2 AS cor0
----
2756
2866
4028

query I rowsort
SELECT ALL col1 + col0 * col2 AS col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT + 25 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
25

query I rowsort
SELECT + col2 * + col2 + ( + cor0.col0 ) AS col2 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT ALL + 62 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8662
SELECT DISTINCT + + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + col2 * + cor0.col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col1 * + 53 AS col1 FROM tab1 AS cor0
----
1378
530
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-8666
SELECT + col0 DIV col0 - col1 * - 82 FROM tab2 AS cor0
----
1395
2543
4839

skipif mysql # not compatible
query I rowsort label-8666
SELECT + col0 / col0 - col1 * - 82 FROM tab2 AS cor0
----
1395
2543
4839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 col2 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT tab1.col2 + 94 FROM tab1, tab0 AS cor0
----
9 values hashing to c7cada3662d7d6ab022e26625f2d9ba4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8669
SELECT ALL - tab2.col2 * - CAST( + 66 AS SIGNED ) FROM tab2
----
1716
1782
2508

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL - tab2.col2 * - CAST ( + 66 AS INTEGER ) FROM tab2
----
1716
1782
2508

query I rowsort
SELECT ALL - 60 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col0 FROM tab1
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8672
SELECT DISTINCT col0 * - CAST( col1 AS SIGNED ) * + col2 AS col0 FROM tab0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT col0 * - CAST ( col1 AS INTEGER ) * + col2 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + col1 - col1 * - col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - cor0.col2 - 68 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ed62d3024ca22108fe079489cfcea90

query I rowsort
SELECT ALL + col0 + col2 * - col0 AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT cor0.col1 + col2 * + col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + 27 * + col2 AS col1 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT ALL - 35 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT ALL tab2.col2 * 49 FROM tab2, tab2 AS cor0
----
9 values hashing to 4a143df2654096d95df8e718411086c1

query I rowsort
SELECT + col1 * + 24 AS col1 FROM tab0 AS cor0
----
2064
2184
2328

query I rowsort
SELECT DISTINCT tab2.col0 * + col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 * + col1 * col2 + col1 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT 50 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT - col0 * col1 + + ( - col1 ) AS col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT + 43 + col1 AS col2 FROM tab1 AS cor0
----
53
56
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8688
SELECT CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8689
SELECT col0 + - 49 - col1 DIV - tab0.col1 col2 FROM tab0
----
-13
-24
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8689
SELECT col0 + - 49 - col1 / - tab0.col1 col2 FROM tab0
----
-13
-24
41

query I rowsort
SELECT + cor0.col0 + - ( - col2 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT col1 + - 54 FROM tab0
----
32
37
43

query I rowsort
SELECT + 97 * - col0 AS col0 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT DISTINCT + + 83 FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL - 61 * col2 + + col2 * 0 FROM tab1 AS cor0
----
-3294
-3477
-5856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8695
SELECT + + CAST( - 28 AS SIGNED ) * col0 + + CAST( col2 * - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1077
-3510
-9954

skipif mysql # not compatible
query I rowsort label-8695
SELECT + + CAST ( - 28 AS INTEGER ) * col0 + + CAST ( col2 * - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1077
-3510
-9954

onlyif mysql # use DIV operator for integer division
query I rowsort label-8696
SELECT DISTINCT tab1.col1 DIV CAST( - 53 * col2 AS SIGNED ) + ( - col2 ) FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT tab1.col1 / CAST ( - 53 * col2 AS INTEGER ) + ( - col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 + + ( - 13 ) * + tab1.col1 FROM tab1
----
-284
-73

query I rowsort
SELECT col2 + - tab2.col1 * tab2.col2 FROM tab2
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col2 FROM tab0
----
-1
-33
-82

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad

query I rowsort
SELECT col1 + + col2 + + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL + 51 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8705
SELECT + col0 DIV ( - col0 ) + 8 + col1 * col0 FROM tab2 AS cor0
----
1350
224
4609

skipif mysql # not compatible
query I rowsort label-8705
SELECT + col0 / ( - col0 ) + 8 + col1 * col0 FROM tab2 AS cor0
----
1350
224
4609

query I rowsort
SELECT + col0 + ( + col1 ) * + col0 AS col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT ALL + 65 + - cor0.col1 * + col1 + - 1 FROM tab1 AS cor0
----
-105
-36
-612

query I rowsort
SELECT DISTINCT - + 79 + - col1 AS col1 FROM tab1 AS cor0
----
-105
-89
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT + ( col1 ) DIV col1 + + col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
10
54
97

skipif mysql # not compatible
query I rowsort label-8709
SELECT + ( col1 ) / col1 + + col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
10
54
97

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab2
----
61

query I rowsort
SELECT + col0 * 39 * col0 AS col2 FROM tab1
----
159744
249600
351

query I rowsort
SELECT ALL - 90 - + 1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8713
SELECT + cor0.col0 + col0 / - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT + cor0.col0 + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8714
SELECT DISTINCT col0 DIV + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT col0 / + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
16
19
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8715
SELECT ALL - col0 + cor0.col0 DIV + 20 FROM tab2 AS cor0
----
-7
-75
-76

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - col0 + cor0.col0 / + 20 FROM tab2 AS cor0
----
-7
-75
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8716
SELECT + CAST( NULL AS SIGNED ) / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT + CAST ( NULL AS INTEGER ) / - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 96 * - col1 FROM tab1
----
-1248
-2496
-960

query I rowsort
SELECT DISTINCT ( + ( col2 ) ) AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT ( - col2 + + col2 ) AS col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT - 97 DIV cor0.col0 + + 95 AS col1 FROM tab1 AS cor0
----
63
94
94

skipif mysql # not compatible
query I rowsort label-8720
SELECT - 97 / cor0.col0 + + 95 AS col1 FROM tab1 AS cor0
----
63
94
94

query I rowsort
SELECT 76 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8722
SELECT + - 69 + col0 * CAST( NULL AS SIGNED ) * 7 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT + - 69 + col0 * CAST ( NULL AS INTEGER ) * 7 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 * - col2 AS col0 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT + 72 FROM tab2 cor0
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-8725
SELECT + col0 DIV - col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8725
SELECT + col0 / - col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 - + 19 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1180
-340
-620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8727
SELECT cor0.col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT cor0.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( col0 ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT DISTINCT - col0 * ( ( col2 ) + col2 ) FROM tab1 cor0
----
-15360
-324
-7296

query I rowsort
SELECT col2 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT 48 - col1 AS col0 FROM tab2 cor0
----
-11
17
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8733
SELECT + CAST( NULL AS SIGNED ) + - 6 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT + CAST ( NULL AS INTEGER ) + - 6 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 29 AS col1 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8735
SELECT DISTINCT + col0 * CAST( NULL AS DECIMAL ) / 79 + + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + col0 * CAST ( NULL AS REAL ) / 79 + + col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - cor1.col1 * cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a68b2420e96feae5e3ca1f4dd4282df

query I rowsort
SELECT + + col2 * 43 + col1 AS col2 FROM tab1 AS cor0
----
2348
2461
4141

query I rowsort
SELECT ALL col0 + col0 * col1 AS col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT - cor0.col0 + + 28 * + col0 FROM tab0 cor0
----
2403
648
945

query I rowsort
SELECT DISTINCT col2 * ( cor0.col2 ) + + col1 + col2 AS col1 FROM tab2 cor0
----
1499
761
787

query I rowsort
SELECT ALL - col2 + 41 FROM tab0 AS cor0
----
-41
40
8

query I rowsort
SELECT ALL - - cor0.col0 * ( 16 ) AS col2 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT ALL + col2 - - cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + + col1 + - col0 * + 14 AS col1 FROM tab2 AS cor0
----
-1033
-1089
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT ALL + col2 DIV - 53 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + col2 / - 53 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 + + 97 * col2 AS col1 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT 12 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8748
SELECT ALL col0 + - CAST( 17 AS SIGNED ) AS col0 FROM tab2
----
-10
61
62

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL col0 + - CAST ( 17 AS INTEGER ) AS col0 FROM tab2
----
-10
61
62

query I rowsort
SELECT - 71 FROM tab2, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT - 34 * cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
-238
-2652
-2686

query I rowsort
SELECT DISTINCT + 2 + 66 FROM tab1, tab1 AS cor0
----
68

query I rowsort
SELECT ALL col0 * - 63 FROM tab2
----
-441
-4914
-4977

onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT ALL - 5 DIV - ( col2 ) FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - 5 / - ( col2 ) FROM tab0
----
0
0
5

query I rowsort
SELECT ALL - + col1 + col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col1 FROM tab1
----
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-8756
SELECT ALL - ( 46 ) DIV - tab0.col2 FROM tab0
----
0
1
46

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - ( 46 ) / - tab0.col2 FROM tab0
----
0
1
46

query I rowsort
SELECT ALL - 21 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 80eac0365e6d606d41afb3303bcb0924

query I rowsort
SELECT col0 + col2 + + 71 AS col1 FROM tab0
----
107
128
242

query I rowsort
SELECT DISTINCT col2 * tab1.col0 * ( + col0 ) - + tab1.col2 FROM tab1
----
233415
432
614304

query I rowsort
SELECT DISTINCT col0 + + col1 - tab2.col2 AS col2 FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT + col2 * - col2 * col1 - - 15 AS col0 FROM tab0
----
-611869
-82
-93639

query I rowsort
SELECT DISTINCT col2 - col0 * + ( col1 ) * + col1 FROM tab1
----
-13424
-1974
-6343

onlyif mysql # use DIV operator for integer division
query I rowsort label-8763
SELECT tab0.col0 * col1 + + ( + col1 ) DIV - col0 + - 79 * + col0 AS col1 FROM tab0
----
1067
165
628

skipif mysql # not compatible
query I rowsort label-8763
SELECT tab0.col0 * col1 + + ( + col1 ) / - col0 + - 79 * + col0 AS col1 FROM tab0
----
1067
165
628

query I rowsort
SELECT - - 70 * cor0.col2 AS col1 FROM tab2 cor0
----
1820
1890
2660

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8767
SELECT ALL col1 + - cor0.col0 + col1 DIV + col1 FROM tab1 AS cor0
----
-53
-66
24

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL col1 + - cor0.col0 + col1 / + col1 FROM tab1 AS cor0
----
-53
-66
24

query I rowsort
SELECT DISTINCT ( col1 ) * col0 + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - 70 * - col0 - col2 * col0 * - col2 AS col0 FROM tab2 AS cor0
----
119606
5593
58188

query I rowsort
SELECT DISTINCT - + 73 * + cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + cor0.col0 * 74 AS col0 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT + - cor0.col1 * cor0.col0 * + 10 + col0 + 90 * col2 FROM tab1 AS cor0
----
-1206
-1680
4083

onlyif mysql # use DIV operator for integer division
query I rowsort label-8774
SELECT DISTINCT + col2 + col1 DIV - col1 FROM tab2 cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT + col2 + col1 / - col1 FROM tab2 cor0
----
25
26
37

query I rowsort
SELECT - - col2 * 56 FROM tab2 AS cor0
----
1456
1512
2128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8776
SELECT + col1 * - CAST( NULL AS SIGNED ) + 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT + col1 * - CAST ( NULL AS INTEGER ) + 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8777
SELECT ALL cor0.col2 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT DISTINCT col0 + + col2 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT col0 + + col2 / + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab0, tab1 cor0
----
47

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL - 61 + cor0.col2 FROM tab0 AS cor0
----
-28
-60
21

query I rowsort
SELECT + 43 * + col2 * col0 + + 28 AS col1 FROM tab1 AS cor0
----
156892
330268
6994

query I rowsort
SELECT ALL + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + ( + col0 ) - - col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + col0 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL 50 FROM tab0, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ( col0 ) + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + + 7 - + col1 AS col2 FROM tab0 AS cor0
----
-79
-84
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8790
SELECT DISTINCT CAST( NULL AS SIGNED ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT CAST ( NULL AS INTEGER ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * cor0.col2 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8792
SELECT DISTINCT - + col2 DIV col0 AS col2 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT - + col2 / col0 AS col2 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL + + 66 * - col2 + col2 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT + + 8 * - col2 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT ALL + + 19 + cor0.col2 AS col2 FROM tab1 AS cor0
----
115
73
76

query I rowsort
SELECT + - col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT ALL col2 DIV - col0 + + 36 FROM tab2 AS cor0
----
33
36
36

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL col2 / - col0 + + 36 FROM tab2 AS cor0
----
33
36
36

query I rowsort
SELECT DISTINCT - 14 + col0 + col2 FROM tab2 AS cor0
----
103
20
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8799
SELECT ALL cor0.col1 - - cor0.col1 * CAST( - cor0.col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL cor0.col1 - - cor0.col1 * CAST ( - cor0.col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * 55 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT ( + col1 ) + 21 * + 3 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT ALL - col0 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT 94 + + cor0.col1 * 10 FROM tab1 AS cor0
----
194
224
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * cor0.col2 + CAST ( - 37 AS REAL ) * - col2 col1 FROM tab1 AS cor0
----
12768
4914
5358

query I rowsort
SELECT 81 FROM tab2 cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - col1 col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-8807
SELECT DISTINCT + - 46 DIV - col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + - 46 / - col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + 26 FROM tab0
----
26

query I rowsort
SELECT ALL - col2 - col0 * col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL tab0.col2 * col0 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT col1 * col2 + + col2 * - col1 AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NOT NULL < + col0 + col1
----

query I rowsort
SELECT - col1 * col2 - col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab1 WHERE - col0 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8815
SELECT ALL col0 DIV - tab2.col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL col0 / - tab2.col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - tab1.col2 - col2 * + col0 FROM tab1
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8817
SELECT DISTINCT col1 + tab1.col1 DIV tab1.col0 - col1 AS col0 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT col1 + tab1.col1 / tab1.col0 - col1 AS col0 FROM tab1
----
0
8

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 - col1 IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE + col1 IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - col1
----

query I rowsort
SELECT - tab2.col0 + tab2.col1 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT tab2.col2 * - col2 + + col2 FROM tab2 WHERE NOT col2 IN ( col1 * - tab2.col2 )
----
-1406
-650
-702

query I rowsort
SELECT - col0 * - col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-8824
SELECT + col2 + - col1 DIV - ( cor0.col0 + - col1 ) FROM tab0 AS cor0
----
0
32
37

skipif mysql # not compatible
query I rowsort label-8824
SELECT + col2 + - col1 / - ( cor0.col0 + - col1 ) FROM tab0 AS cor0
----
0
32
37

query I rowsort
SELECT + 87 + + col1 FROM tab0 cor0
----
173
178
184

query I rowsort
SELECT DISTINCT + col2 + - col1 * col0 * + col2 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL col1 * + tab0.col2 + + tab0.col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col0 * + col1 * col1 AS col0 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8831
SELECT + col2 + - col1 DIV - col0 AS col1 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-8831
SELECT + col2 + - col1 / - col0 AS col1 FROM tab2
----
26
31
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8832
SELECT ALL tab0.col1 - col0 DIV - col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL tab0.col1 - col0 / - col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * - col2 * col0 + - tab0.col2 col1 FROM tab0
----
-1226
-19041
-649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-8834
SELECT col2 + col2 DIV + col2 FROM tab2 AS cor0 WHERE - col2 NOT IN ( col1 * + col2 )
----
27
28
39

skipif mysql # not compatible
query I rowsort label-8834
SELECT col2 + col2 / + col2 FROM tab2 AS cor0 WHERE - col2 NOT IN ( col1 * + col2 )
----
27
28
39

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND ( + col0 / col0 + col2 )
----

query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col1 / - col2 )
----

query I rowsort
SELECT DISTINCT col1 * + col2 * + col0 AS col0 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT ALL tab2.col0 + col0 FROM tab2 WHERE tab2.col2 + + col1 < col1
----

query I rowsort
SELECT - col0 + - tab0.col1 * col0 + + col2 FROM tab0
----
-2055
-3429
-8106

onlyif mysql # use DIV operator for integer division
query I rowsort label-8842
SELECT DISTINCT + col2 DIV + col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + col2 / + col0 AS col2 FROM tab1
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT DISTINCT col2 DIV tab2.col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT col2 / tab2.col1 FROM tab2
----
0
2

query I rowsort
SELECT + col2 - col0 * + col0 FROM tab1
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + + col2 col1 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT - tab2.col0 * col2 + col0 + col1 AS col2 FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT ALL tab0.col0 + - col1 - - tab0.col0 AS col2 FROM tab0
----
-27
-38
87

query I rowsort
SELECT DISTINCT - col2 * + tab0.col0 * col2 FROM tab0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT col1 * + col0 + + col0 DIV col1 FROM tab1 WHERE + col0 + - col0 <> tab1.col1
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-8849
SELECT col1 * + col0 + + col0 / col1 FROM tab1 WHERE + col0 + - col0 <> tab1.col1
----
1046
646
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8850
SELECT + col1 + + col0 DIV + col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-8850
SELECT + col1 + + col0 / + col0 FROM tab0
----
87
92
98

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col2 IN ( - col2 + + col1 )
----

query I rowsort
SELECT DISTINCT col2 * + col1 * + col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL - col1 * col0 * + col2 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col0 * - col0 * - col2 + col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT - + 61 - col1 FROM tab1 AS cor0
----
-71
-74
-87

query I rowsort
SELECT DISTINCT + col0 * + col1 - col0 * + 36 AS col1 FROM tab0 AS cor0
----
1200
2135
4895

query I rowsort
SELECT - ( + ( col0 ) ) + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT - ( 79 ) FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 7 * + cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
22
515
520

query I rowsort
SELECT ALL - 32 * + col0 + - ( + col1 * col1 ) FROM tab0 AS cor0
----
-10529
-11129
-8164

query I rowsort
SELECT - 9 - + col1 FROM tab1
----
-19
-22
-35

query I rowsort
SELECT + 89 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT DISTINCT - col2 * + ( + tab0.col1 ) - ( col0 ) AS col1 FROM tab0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-8865
SELECT col2 DIV 8 AS col0 FROM tab0 AS cor0
----
0
10
4

skipif mysql # not compatible
query I rowsort label-8865
SELECT col2 / 8 AS col0 FROM tab0 AS cor0
----
0
10
4

query I rowsort
SELECT - - cor0.col2 * + cor0.col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - 65 * tab0.col1 AS col1 FROM tab0
----
-5590
-5915
-6305

query I rowsort
SELECT - 98 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 54 col2 FROM tab1 cor0
----
162
3456
4320

query I rowsort
SELECT col1 * col1 * col1 FROM tab1 cor0
----
1000
17576
2197

query I rowsort
SELECT + 12 + 89 * col2 FROM tab1
----
4818
5085
8556

query I rowsort
SELECT tab0.col0 + 85 + col2 * col2 FROM tab0
----
1198
121
6898

query I rowsort
SELECT + col1 * - 61 + col2 FROM tab2
----
-1864
-3573
-999

query I rowsort
SELECT - 22 + + col0 AS col0 FROM tab0 AS cor0
----
13
2
67

query I rowsort
SELECT ALL + - 7 AS col1 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT - col1 + 62 FROM tab0 AS cor0
----
-24
-29
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8877
SELECT ALL + CAST( - col2 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL + CAST ( - col2 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - 72 * - col0 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT DISTINCT 37 + 34 FROM tab1 cor0
----
71

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - 9 * + ( col0 ) FROM tab2 AS cor0
----
63
702
711

onlyif mysql # use DIV operator for integer division
query I rowsort label-8882
SELECT DISTINCT col0 + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT col0 + col1 / col0 AS col2 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT DISTINCT - - ( + col2 ) * col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 * col0 + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL - + 20 + - col0 AS col0 FROM tab1 cor0
----
-100
-23
-84

query I rowsort
SELECT DISTINCT - + 16 * col2 AS col2 FROM tab2 AS cor0
----
-416
-432
-608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col0 col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-774
3298
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT ALL + - 83 + - col2 * + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-116
-165
-84

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + - 83 + - col2 * + col2 / + col2 AS col0 FROM tab0 AS cor0
----
-116
-165
-84

query I rowsort
SELECT - 56 + + col1 AS col2 FROM tab0 AS cor0
----
30
35
41

query I rowsort
SELECT ALL - - col0 + cor0.col1 * col2 * col1 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT ALL - 95 + - col1 FROM tab0 AS cor0
----
-181
-186
-192

query I rowsort
SELECT ALL - + 41 * col0 + col1 AS col2 FROM tab2 AS cor0
----
-256
-3139
-3222

query I rowsort
SELECT - col0 - 16 FROM tab0
----
-105
-40
-51

query I rowsort
SELECT ALL - 62 - col1 AS col2 FROM tab2
----
-121
-79
-93

query I rowsort
SELECT ALL col1 * - 39 * col0 - col2 FROM tab0
----
-132406
-315943
-80529

query I rowsort
SELECT ALL - cor0.col2 * + col1 + col0 * cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-617
2373
553

query I rowsort
SELECT col1 * col1 - col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL + col0 - - col0 AS col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL - col1 * - cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 + 54 * + col2 * col2 FROM tab1 cor0
----
157518
175503
497760

query I rowsort
SELECT DISTINCT col2 - 86 AS col0 FROM tab1 AS cor0
----
-29
-32
10

query I rowsort
SELECT col2 + cor0.col0 AS col0 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col0 FROM tab1
----
23

query I rowsort
SELECT DISTINCT col0 * - ( col2 * col1 ) AS col0 FROM tab2 cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-8907
SELECT ALL - col1 + + col2 DIV col2 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - col1 + + col2 / col2 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT - col0 - ( - col0 ) FROM tab2 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8909
SELECT ALL - col0 + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL - col0 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT col1 * 19 FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT 15 + - col0 * col0 FROM tab2 AS cor0
----
-34
-6069
-6226

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8912
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - - CAST ( NULL AS REAL ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + col1 ) + col1 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT tab0.col0 * - 88 AS col0 FROM tab0
----
-2112
-3080
-7832

query I rowsort
SELECT ALL - cor1.col2 - + cor0.col2 FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to c0042f99b117e1953d822c7d662d5635

query I rowsort
SELECT - col1 + ( - col0 ) FROM tab0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8918
SELECT - col1 * + col0 DIV + col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8918
SELECT - col1 * + col0 / + col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT - - col2 + col0 DIV + col0 col2 FROM tab1 cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8921
SELECT - - col2 + col0 / + col0 col2 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT - col1 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + tab1.col2 * + col1 AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8924
SELECT tab2.col0 DIV col1 + col1 * col0 AS col1 FROM tab2
----
1347
217
4603

skipif mysql # not compatible
query I rowsort label-8924
SELECT tab2.col0 / col1 + col1 * col0 AS col1 FROM tab2
----
1347
217
4603

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> col2
----

query I rowsort
SELECT DISTINCT col1 + - col1 AS col1 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col1 col1 FROM tab1 cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - - col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT col0 * - col0 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT DISTINCT - 87 + tab0.col2 * col0 FROM tab0
----
-52
705
7211

query I rowsort
SELECT - ( col2 ) * col1 AS col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8933
SELECT ALL cor0.col1 DIV col0 col0 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL cor0.col1 / col0 col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL - col1 + - tab1.col1 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT - tab0.col0 + - col0 * tab0.col0 FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT tab1.col1 + + col2 * + col2 AS col2 FROM tab1
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT DISTINCT col0 DIV - tab1.col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT col0 / - tab1.col0 FROM tab1
----
-1

query I rowsort
SELECT - col0 * + col2 + col2 * col2 + + cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
-299
1705
3430

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT col1 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - col2 * cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT col1 + col2 * col2 * - col2 FROM tab0 AS cor0
----
-35851
-551277
96

query I rowsort
SELECT - 45 + col0 FROM tab2
----
-38
33
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8945
SELECT + 86 DIV tab1.col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-8945
SELECT + 86 / tab1.col1 FROM tab1
----
3
6
8

query I rowsort
SELECT ALL col1 * col1 * ( tab0.col1 ) AS col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT cor0.col2 + + cor0.col0 AS col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT ALL col1 * 78 DIV col0 AS col1 FROM tab1
----
12
12
676

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL col1 * 78 / col0 AS col1 FROM tab1
----
12
12
676

query I rowsort
SELECT col0 * + 10 AS col0 FROM tab0
----
240
350
890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 4 * 2 + + cor0.col2 * - col0 col0 FROM tab1 cor0
----
-151
-3576
-7592

query I rowsort
SELECT - col2 + 94 + + 35 FROM tab0 AS cor0
----
128
47
96

query I rowsort
SELECT - + col0 * col1 + 99 * col0 + - cor0.col2 FROM tab2 AS cor0
----
3094
449
6440

query I rowsort
SELECT - ( + 15 ) FROM tab1
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + - col0 - + col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL col0 + col0 - col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT DISTINCT + 18 * cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
-11628
-15066
-27612

query I rowsort
SELECT DISTINCT - ( - col2 ) + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8959
SELECT ( + col1 ) DIV + 6 FROM tab0 AS cor0
----
14
15
16

skipif mysql # not compatible
query I rowsort label-8959
SELECT ( + col1 ) / + 6 FROM tab0 AS cor0
----
14
15
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT DISTINCT + - 69 + - cor0.col2 DIV + ( 80 ) + - col1 AS col2 FROM tab2 AS cor0
----
-100
-128
-86

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + - 69 + - cor0.col2 / + ( 80 ) + - col1 AS col2 FROM tab2 AS cor0
----
-100
-128
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-8961
SELECT DISTINCT - - cor0.col2 DIV col2 - CAST( - col1 * + col2 AS SIGNED ) FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - - cor0.col2 / col2 - CAST ( - col1 * + col2 AS INTEGER ) FROM tab0 AS cor0
----
2839
7463
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col1 + - 92 col2 FROM tab2 AS cor0
----
-1053
-3573
-381

query I rowsort
SELECT DISTINCT 7 + col2 * col1 * - col0 FROM tab2 cor0
----
-119645
-51027
-5852

query I rowsort
SELECT ALL + - col0 + + col2 * cor0.col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT 58 AS col0 FROM tab1
----
58
58
58

query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT 94 + + col2 AS col1 FROM tab1 AS cor0
----
148
151
190

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + + 3 * cor0.col1 FROM tab1 AS cor0
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8971
SELECT DISTINCT - col0 DIV 54 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT - col0 / 54 AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + - cor0.col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8974
SELECT + cor0.col0 + 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-8974
SELECT + cor0.col0 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + ( + ( + col1 ) ) * col1 AS col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - cor0.col1 * 94 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-182
-2366
-300

query I rowsort
SELECT ALL - 75 * - col0 FROM tab2
----
525
5850
5925

query I rowsort
SELECT - 68 AS col1 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT 91 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT + - 1 * - col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col1 * cor0.col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - 5 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-5

query I rowsort
SELECT ALL + col2 * 17 AS col0 FROM tab2
----
442
459
646

onlyif mysql # use DIV operator for integer division
query I rowsort label-8986
SELECT ALL - col0 + + col2 DIV - col0 FROM tab1 AS cor0
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - col0 + + col2 / - col0 FROM tab1 AS cor0
----
-21
-64
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8987
SELECT ALL CAST( NULL AS SIGNED ) + 96 + + col0 * + 72 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL CAST ( NULL AS INTEGER ) + 96 + + col0 * + 72 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col2 + + col2 FROM tab1 cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8989
SELECT - CAST( NULL AS DECIMAL ) * col1 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT - CAST ( NULL AS REAL ) * col1 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT DISTINCT + + ( 17 ) * - cor0.col0 DIV col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT + + ( 17 ) * - cor0.col0 / col0 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT col0 * + 52 AS col2 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT 49 * - col1 AS col1 FROM tab0 cor0
----
-4214
-4459
-4753

query I rowsort
SELECT + col2 * col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - cor0.col2 + - col0 * col0 * - col2 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT + 93 + col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1054
3574
382

query I rowsort
SELECT ALL 53 AS col1 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8997
SELECT ALL + CAST( col1 AS SIGNED ) * col1 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1178
1632
8083

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + CAST ( col1 AS INTEGER ) * col1 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1178
1632
8083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8998
SELECT ALL - 1 * - 88 * - cor0.col2 + CAST( + col0 AS SIGNED ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2112
-53
82

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - 1 * - 88 * - cor0.col2 + CAST ( + col0 AS INTEGER ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2112
-53
82

query I rowsort
SELECT + + col1 * + ( col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + + 71 * cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
201498
529802
6887

query I rowsort
SELECT 26 * col0 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT DISTINCT 97 * col0 + - col1 FROM tab2 AS cor0
----
648
7507
7646

onlyif mysql # use DIV operator for integer division
query I rowsort label-9003
SELECT DISTINCT - 89 DIV - 15 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT - 89 / - 15 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 90 col2 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + col1 - col1 * - ( col1 ) FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - 19 * col1 + + ( - col1 ) + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
-431
2662
848

query I rowsort
SELECT ALL + 9 * - col1 - + ( col1 * + col2 ) FROM tab2 cor0
----
-1116
-2065
-799

query I rowsort
SELECT - col1 * cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + cor0.col1 + - col2 * col0 * + 24 FROM tab1 AS cor0
----
-184307
-3862
-87542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * 0 col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT ALL - col0 * + col2 - + cor0.col0 DIV + cor0.col2 FROM tab1 AS cor0
----
-162
-3649
-7680

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL - col0 * + col2 - + cor0.col0 / + cor0.col2 FROM tab1 AS cor0
----
-162
-3649
-7680

query I rowsort
SELECT cor0.col1 * cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f8894e3f33962cda5901e1c2ce65d5b0

query I rowsort
SELECT col1 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9014
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 * ( - col0 ) + - col0 + + ( + col2 ) FROM tab0 AS cor0
----
1191
585
7914

query I rowsort
SELECT + col0 * cor0.col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
10634
16202
7972

query I rowsort
SELECT DISTINCT + col2 - - 73 AS col0 FROM tab2 AS cor0
----
100
111
99

query I rowsort
SELECT + col1 * - 72 + col0 * col2 FROM tab2 AS cor0
----
-2043
-2220
1778

query I rowsort
SELECT ALL + cor0.col2 * - col2 + + 63 * col0 AS col2 FROM tab0 AS cor0
----
-1117
2204
423

query I rowsort
SELECT cor0.col2 * 16 + - 34 AS col0 FROM tab0 AS cor0
----
-18
1278
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-9021
SELECT ALL cor0.col1 DIV + 61 + + 81 - cor0.col1 FROM tab1 cor0
----
55
68
71

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL cor0.col1 / + 61 + + 81 - cor0.col1 FROM tab1 cor0
----
55
68
71

query I rowsort
SELECT ALL + cor0.col0 * + col1 + + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL + col1 * - 11 AS col0 FROM tab1
----
-110
-143
-286

query I rowsort
SELECT ALL col0 * ( - 60 ) FROM tab0 cor0
----
-1440
-2100
-5340

query I rowsort
SELECT DISTINCT col1 * - 48 + col2 FROM tab1 AS cor0
----
-1194
-423
-528

onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT + col2 DIV - 85 + col2 FROM tab1 cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-9026
SELECT + col2 / - 85 + col2 FROM tab1 cor0
----
54
57
95

query I rowsort
SELECT 91 + + tab0.col2 - ( col0 ) * col2 FROM tab0
----
-668
-7125
57

query I rowsort
SELECT DISTINCT + col2 - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col2 * 10 + - col1 FROM tab1 AS cor0
----
514
560
947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + ( + 76 + col0 ) * ( - col0 + - cor0.col2 ) col0 FROM tab1 cor0
----
-16930
-27443
-4477

query I rowsort
SELECT 40 AS col2 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT + col0 * - 39 * col0 FROM tab2 AS cor0
----
-1911
-237276
-243399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 47 + - col2 col0 FROM tab1 AS cor0
----
-10
-49
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9034
SELECT + col1 + + col1 * 76 DIV - col0 FROM tab2 AS cor0
----
-305
1
2

skipif mysql # not compatible
query I rowsort label-9034
SELECT + col1 + + col1 * 76 / - col0 FROM tab2 AS cor0
----
-305
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 + - col0 col0 FROM tab2 AS cor0
----
-14
-156
-158

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab1, tab0 cor2
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

query I rowsort
SELECT col2 - col0 AS col1 FROM tab1 cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT - 22 DIV + 1 FROM tab0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-9038
SELECT - 22 / + 1 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT ALL col1 + tab1.col0 * col2 * - col2 AS col2 FROM tab1
----
-207926
-737267
-8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL 69 + col1 * 35 FROM tab1
----
419
524
979

query I rowsort
SELECT ALL + col1 + - col1 * col2 + + col0 FROM tab0
----
-2728
-7282
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + tab1.col2 * ( col0 ) col1 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT - col0 + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT DISTINCT + 26 * + col2 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT - - ( - 99 ) * + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-18711
-200772
-297198

query I rowsort
SELECT 59 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT - + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT 86 + 14 * cor0.col0 FROM tab2 AS cor0
----
1178
1192
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * + col1 col2 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab1, tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab2, tab0 AS cor0
----
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9053
SELECT - CAST( NULL AS DECIMAL ) 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-9053
SELECT - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9054
SELECT ALL CAST( 94 AS SIGNED ) DIV tab1.col0 + ( - col1 ) FROM tab1
----
-12
-9
5

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL CAST ( 94 AS INTEGER ) / tab1.col0 + ( - col1 ) FROM tab1
----
-12
-9
5

query I rowsort
SELECT ALL + 38 * col2 - col0 AS col0 FROM tab2 AS cor0
----
1019
1365
910

query I rowsort
SELECT - col2 * col1 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
611966
93687
98

query I rowsort
SELECT DISTINCT + + col1 * - col0 + 25 FROM tab1 cor0
----
-1015
-53
-615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 92 col1 FROM tab2
----
644
7176
7268

onlyif mysql # use DIV operator for integer division
query I rowsort label-9059
SELECT - - col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-9059
SELECT - - col0 / + col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + 72 AS col2 FROM tab2
----
72
72
72

query I rowsort
SELECT + cor1.col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-9062
SELECT DISTINCT - tab0.col2 DIV - 58 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT - tab0.col2 / - 58 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT col1 * ( - col2 + col2 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col2 FROM tab1, tab0 AS cor0
----
10
13
26

query I rowsort
SELECT + + col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9066
SELECT + col2 DIV col0 + col2 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-9066
SELECT + col2 / col0 + col2 FROM tab2 AS cor0
----
26
30
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9067
SELECT col1 + + 90 * - col0 DIV col0 FROM tab1 cor0
----
-64
-77
-80

skipif mysql # not compatible
query I rowsort label-9067
SELECT col1 + + 90 * - col0 / col0 FROM tab1 cor0
----
-64
-77
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + 25 col0 FROM tab0 AS cor0
----
-2150
-2275
-2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col0 col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT col1 * - 70 AS col1 FROM tab0
----
-6020
-6370
-6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-9071
SELECT ALL + col0 DIV - col0 + col1 AS col0 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + col0 / - col0 + col1 AS col0 FROM tab0
----
85
90
96

query I rowsort
SELECT - 30 + col1 FROM tab1
----
-17
-20
-4

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
17
31
59

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 86 AS REAL ) FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT + 35 * col1 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT DISTINCT ( 95 ) * + col1 AS col1 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT ALL - 85 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-163
-164
-92

query I rowsort
SELECT - + col1 + ( - col0 ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL 22 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1188
-1254
-2112

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT tab1.col2 * - col0 - + ( 68 ) FROM tab1
----
-230
-3716
-7748

query I rowsort
SELECT 48 AS col1 FROM tab0
----
48
48
48

query I rowsort
SELECT + 46 + + col1 FROM tab1
----
56
59
72

query I rowsort
SELECT DISTINCT + 34 * - col0 - col2 FROM tab2
----
-265
-2678
-2724

query I rowsort
SELECT - col2 * - col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL - 6 AS col1 FROM tab1
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col0 FROM tab0
----
52
52
52

query I rowsort
SELECT col2 - col0 * col2 AS col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT - - 91 AS col2 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT - cor0.col0 + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif mysql # not compatible
query I rowsort
SELECT + col2 + - CAST ( + col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 * + col0 + 99 AS col1 FROM tab1 cor0
----
-3997
-6301
90

query I rowsort
SELECT + col0 + - ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col0 + col1 * - 17 * col1 AS col2 FROM tab2 AS cor0
----
-16344
-4992
-59255

query I rowsort
SELECT 12 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL + cor0.col2 * col1 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT DISTINCT + col0 * - 32 FROM tab2 AS cor0
----
-224
-2496
-2528

query I rowsort
SELECT ALL col1 * ( col2 * - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9099
SELECT - - col2 DIV - 19 AS col0 FROM tab1 cor0
----
-2
-3
-5

skipif mysql # not compatible
query I rowsort label-9099
SELECT - - col2 / - 19 AS col0 FROM tab1 cor0
----
-2
-3
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col2 FROM tab0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 + + cor0.col1 * 2 + col0 col1 FROM tab0 AS cor0
----
264
7569
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-9102
SELECT DISTINCT col2 DIV + col0 AS col2 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT col2 / + col0 AS col2 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT ALL - - ( col1 ) + - 52 * col1 AS col2 FROM tab0 AS cor0
----
-4386
-4641
-4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col1 * cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + 22 * - col1 AS col2 FROM tab2 AS cor0
----
-1298
-374
-682

onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT + + col0 + col2 DIV - ( col1 ) FROM tab1 cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-9107
SELECT + + col0 + col2 / - ( col1 ) FROM tab1 cor0
----
1
59
73

query I rowsort
SELECT DISTINCT ( + col0 ) + col0 * + 6 - col0 AS col0 FROM tab2 cor0
----
42
468
474

query I rowsort
SELECT + col1 * tab2.col1 + col1 * + 3 FROM tab2
----
1054
340
3658

onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT DISTINCT col1 DIV col1 - - ( col1 ) col0 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT col1 / col1 - - ( col1 ) col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + col0 * - 60 AS col1 FROM tab1
----
-180
-3840
-4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-9112
SELECT DISTINCT col1 * + col0 - + 62 DIV - col0 FROM tab1
----
1040
640
98

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT col1 * + col0 - + 62 / - col0 FROM tab1
----
1040
640
98

query I rowsort
SELECT DISTINCT - col0 * 59 AS col2 FROM tab1 cor0
----
-177
-3776
-4720

query I rowsort
SELECT ALL - + 14 AS col1 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL ( - col1 ) * - cor0.col1 + + ( - col1 ) FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL col2 * - tab2.col2 - + 70 * + col2 FROM tab2
----
-2496
-2619
-4104

query I rowsort
SELECT DISTINCT tab2.col2 + 3 - col0 * col2 AS col0 FROM tab2
----
-159
-1999
-2961

query I rowsort
SELECT + col0 * + col2 + - 51 AS col2 FROM tab1
----
111
3597
7629

query I rowsort
SELECT col1 + col1 + col0 FROM tab0
----
196
229
271

query I rowsort
SELECT + col1 + - col1 * col0 * - col2 + + 28 FROM tab1
----
36518
4266
99881

query I rowsort
SELECT ALL + col0 - col2 * - 47 AS col0 FROM tab1
----
2541
2743
4592

query I rowsort
SELECT DISTINCT + col0 * tab0.col2 + + col1 - col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort
SELECT col2 * - 27 * 49 + col2 - CAST ( 98 * col0 AS REAL ) AS col1 FROM tab0
----
-117126
-45978
-4752

query I rowsort
SELECT col2 * - col0 + col1 * + col1 FROM tab1
----
-3548
-7511
514

query I rowsort
SELECT DISTINCT 67 + 99 AS col2 FROM tab1
----
166

query I rowsort
SELECT - col0 * tab2.col0 + - col1 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT + ( - cor0.col0 ) * col2 + - 52 + col1 FROM tab1 AS cor0
----
-188
-3690
-7719

query I rowsort
SELECT DISTINCT - 83 * col0 AS col2 FROM tab1 AS cor0
----
-249
-5312
-6640

onlyif mysql # use DIV operator for integer division
query I rowsort label-9129
SELECT + col0 + col2 DIV col0 + col0 FROM tab2 AS cor0
----
156
158
17

skipif mysql # not compatible
query I rowsort label-9129
SELECT + col0 + col2 / col0 + col0 FROM tab2 AS cor0
----
156
158
17

query I rowsort
SELECT ALL - 84 * - col1 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT DISTINCT + 86 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT col2 + 69 * - col0 FROM tab1 cor0
----
-153
-4359
-5424

query I rowsort
SELECT ALL 73 + - 60 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT col1 * cor0.col0 + col1 * 29 + - col2 AS col2 FROM tab1 AS cor0
----
1321
778
873

query I rowsort
SELECT ALL 26 AS col0 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT - 39 + - col1 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1399
-287
-4700

query I rowsort
SELECT ALL + + col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT 82 - + col1 AS col0 FROM tab2 cor0
----
23
51
65

query I rowsort
SELECT DISTINCT - col0 * 7 FROM tab2 AS cor0
----
-49
-546
-553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9140
SELECT DISTINCT CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col0 + - ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT ALL - + ( - col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 + + ( col2 ) FROM tab1
----
108
114
192

query I rowsort
SELECT - ( tab0.col1 ) + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + - 27 AS col2 FROM tab1
----
-24
37
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + - tab1.col0 col0 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + col0 + col0 col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * - col0 + tab0.col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL - ( cor0.col2 ) + col0 * + ( - col0 ) * - col2 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col2 * col2 + - col0 FROM tab2
----
6682
7606
771

query I rowsort
SELECT ALL + col2 * + 96 AS col0 FROM tab0
----
3168
7872
96

query I rowsort
SELECT ALL + col1 * - 40 FROM tab1 AS cor0
----
-1040
-400
-520

query I rowsort
SELECT - - 52 + cor0.col0 FROM tab0 AS cor0
----
141
76
87

query I rowsort
SELECT ALL + 1 + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + col0 + - col1 + ( + col0 ) * - col0 * col2 FROM tab2 AS cor0
----
-1347
-158165
-237096

query I rowsort
SELECT - 60 - - col0 AS col0 FROM tab1 AS cor0
----
-57
20
4

query I rowsort
SELECT ALL - col0 + - col1 * - col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + cor0.col2 - tab2.col0 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 5d3783b31e5c4f959adab60b38e1775a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9160
SELECT - + col1 DIV col0 col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9160
SELECT - + col1 / col0 col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT col2 + + col2 + col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT - + col2 * col1 + + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 - col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9165
SELECT ALL col1 + - CAST( 94 AS SIGNED ) FROM tab1 AS cor0
----
-68
-81
-84

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL col1 + - CAST ( 94 AS INTEGER ) FROM tab1 AS cor0
----
-68
-81
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 + + ( 54 ) FROM tab2 AS cor0
----
80
81
92

query I rowsort
SELECT DISTINCT - col1 * - 11 + 19 AS col0 FROM tab1 AS cor0
----
129
162
305

query I rowsort
SELECT DISTINCT + col0 - 46 FROM tab2 AS cor0
----
-39
32
33

query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - col0 + + 64 FROM tab1 AS cor0
----
128
144
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9172
SELECT + CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-9172
SELECT + CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + col2 * col1 + - cor0.col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ( + ( - col1 ) ) FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9175
SELECT DISTINCT + - col0 * col0 * col2 + - col2 DIV + 14 + col2 AS col0 FROM tab1 AS cor0
----
-233419
-435
-614310

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + - col0 * col0 * col2 + - col2 / + 14 + col2 AS col0 FROM tab1 AS cor0
----
-233419
-435
-614310

query I rowsort
SELECT ALL + col2 * col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
14596
1584
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 91 ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + tab0.col2 - - 87 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ce23701de365575718a5e1e526d5ab2b

query I rowsort
SELECT DISTINCT - + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - - col1 + col2 * 84 AS col1 FROM tab2 AS cor0
----
2243
2299
3209

query I rowsort
SELECT - 40 * - col0 FROM tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT ALL + 49 AS col2 FROM tab0
----
49
49
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-9183
SELECT ( + col1 ) * 30 + ( + col2 ) DIV 47 FROM tab0 AS cor0
----
2580
2731
2910

skipif mysql # not compatible
query I rowsort label-9183
SELECT ( + col1 ) * 30 + ( + col2 ) / 47 FROM tab0 AS cor0
----
2580
2731
2910

query I rowsort
SELECT - 18 * cor0.col1 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-3090
-3308
-747

onlyif mysql # use DIV operator for integer division
query I rowsort label-9185
SELECT col2 + - col1 DIV - 18 AS col2 FROM tab0 AS cor0
----
37
6
87

skipif mysql # not compatible
query I rowsort label-9185
SELECT col2 + - col1 / - 18 AS col2 FROM tab0 AS cor0
----
37
6
87

query I rowsort
SELECT + + cor0.col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL ( - 9 ) * col2 FROM tab2 cor0
----
-234
-243
-342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 * + col0 col1 FROM tab1 AS cor0
----
-105
-2240
-2800

query I rowsort
SELECT - - col1 * col1 + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT 48 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + col0 - 23 AS col0 FROM tab2 cor0
----
-16
55
56

query I rowsort
SELECT - cor0.col2 + col0 * col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + 64 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT col0 * col2 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + 25 * col2 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT DISTINCT + - 85 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT 90 * col1 + 96 + - col1 AS col0 FROM tab1 AS cor0
----
1253
2410
986

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * + cor0.col2 + 38 * - col2 AS col2 FROM tab0 AS cor0
----
1560
24
4257

query I rowsort
SELECT 53 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1378
1431
2014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT + col0 * - tab2.col0 - col2 AS col2 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT ALL 52 + col1 AS col2 FROM tab1
----
62
65
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * col1 col2 FROM tab1
----
120
156
312

query I rowsort
SELECT ( + cor0.col2 ) + 28 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2378
29
957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * - col2 col0 FROM tab1
----
-4374
-4617
-7776

query I rowsort
SELECT + - cor0.col2 * - cor0.col0 + - 18 FROM tab0 AS cor0
----
17
7280
774

query I rowsort
SELECT DISTINCT cor0.col2 * 41 FROM tab2, tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT ALL 20 FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + col2 - col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - 39 - 74 FROM tab1 AS cor0
----
-113
-113
-113

query I rowsort
SELECT ALL 47 * + col2 * col0 - + col1 * col2 FROM tab0
----
1548
335544
34386

query I rowsort
SELECT - - col0 + + cor0.col0 + col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT ALL cor0.col2 * 30 AS col0 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT - - 32 - - col0 * cor0.col2 FROM tab0 AS cor0
----
67
7330
824

query I rowsort
SELECT ALL - - col2 * col0 * + col1 + col0 FROM tab0 AS cor0
----
3430
664207
68136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9216
SELECT CAST( - 39 AS SIGNED ) + col2 FROM tab1 cor0
----
15
18
57

skipif mysql # not compatible
query I rowsort label-9216
SELECT CAST ( - 39 AS INTEGER ) + col2 FROM tab1 cor0
----
15
18
57

query I rowsort
SELECT DISTINCT - col1 + + 17 FROM tab0 AS cor0
----
-69
-74
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9218
SELECT ALL + CAST( NULL AS SIGNED ) * col1 + col0 * 50 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 + col0 * 50 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 45 - col1 FROM tab1 AS cor0
----
-55
-58
-71

query I rowsort
SELECT + - 28 - 66 AS col1 FROM tab1 cor0
----
-94
-94
-94

query I rowsort
SELECT + - col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 + + 89 + + 10 FROM tab0
----
123
134
188

onlyif mysql # use DIV operator for integer division
query I rowsort label-9223
SELECT ALL - - col0 DIV + col0 - + col0 * col1 col2 FROM tab1 AS cor0
----
-1039
-639
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - - col0 / + col0 - + col0 * col1 col2 FROM tab1 AS cor0
----
-1039
-639
-77

query I rowsort
SELECT ALL col2 + 96 AS col0 FROM tab2 AS cor0
----
122
123
134

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9225
SELECT ALL + col0 - + CAST( + col1 * col1 + 74 AS SIGNED ) FROM tab2 AS cor0
----
-1028
-284
-3477

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL + col0 - + CAST ( + col1 * col1 + 74 AS INTEGER ) FROM tab2 AS cor0
----
-1028
-284
-3477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - 36 col2 FROM tab2 AS cor0
----
-19
-5
23

query I rowsort
SELECT ALL - col0 + 31 * - col0 AS col1 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT DISTINCT - - col2 * col0 + - col0 * col1 FROM tab2 cor0
----
-2574
-28
1659

query I rowsort
SELECT col2 * cor0.col1 + + 30 FROM tab2 cor0
----
1564
676
867

query I rowsort
SELECT col2 * 30 - + col2 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT DISTINCT + col2 * col0 + 0 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT 20 * + 93 + - col2 FROM tab0 AS cor0
----
1778
1827
1859

query I rowsort
SELECT DISTINCT - + 93 + - 89 FROM tab2 AS cor0
----
-182

query I rowsort
SELECT DISTINCT - - ( + col1 ) + cor0.col0 * - 53 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
10048
107543
159123

query I rowsort
SELECT 77 * cor0.col0 AS col2 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 * + ( col0 ) * cor0.col0 + 45 AS col1 FROM tab0 AS cor0
----
13783
42823
704923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 99 col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + 18 * - col0 * + cor0.col2 FROM tab0 AS cor0
----
-131364
-14256
-630

query I rowsort
SELECT ALL + ( ( col1 ) ) * ( 95 * col1 + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
28101
332229
92132

onlyif mysql # use DIV operator for integer division
query I rowsort label-9240
SELECT + ( 30 ) + cor0.col0 DIV col2 FROM tab0 AS cor0
----
30
31
65

skipif mysql # not compatible
query I rowsort label-9240
SELECT + ( 30 ) + cor0.col0 / col2 FROM tab0 AS cor0
----
30
31
65

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - col2 * + 41 + cor0.col2 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT ALL - + 60 AS col2 FROM tab0 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab0, tab1 AS cor0
----
71

query I rowsort
SELECT + 12 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT - col1 + - 12 FROM tab1
----
-22
-25
-38

query I rowsort
SELECT DISTINCT - col0 + + ( + 0 ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - + 86 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT DISTINCT ( col2 ) + ( - ( col1 ) ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 68 * + col0 FROM tab1 AS cor0
----
204
4352
5440

query I rowsort
SELECT ALL - - 61 + col2 * + col1 * col0 + col0 FROM tab1 AS cor0
----
36605
4276
99981

query I rowsort
SELECT ALL + col2 * col0 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT + + 80 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
115520
54080
58320

query I rowsort
SELECT DISTINCT - ( - col0 ) * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - + col0 * - col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9258
SELECT ALL ( col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL ( col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 4 * - 27 FROM tab1
----
-108

query I rowsort
SELECT + ( + 66 ) * - col2 - + tab1.col1 FROM tab1
----
-3590
-3772
-6349

query I rowsort
SELECT DISTINCT + 74 * - col2 * col0 - + col0 FROM tab1 AS cor0
----
-11991
-270016
-568400

query I rowsort
SELECT DISTINCT - 12 AS col2 FROM tab0, tab1 AS cor0
----
-12

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT col2 + col0 - tab0.col0 AS col2 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9265
SELECT + 78 + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT + 78 + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 AS col1 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT 78 + - col2 FROM tab1
----
-18
21
24

query I rowsort
SELECT col0 + + ( 91 ) * - col2 AS col0 FROM tab2 AS cor0
----
-2288
-2450
-3379

query I rowsort
SELECT col2 + + ( + 29 ) * col2 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT DISTINCT + 79 * col1 FROM tab2
----
1343
2449
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT DISTINCT tab0.col0 * col1 DIV col2 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT tab0.col0 * col1 / col2 FROM tab0
----
3395
62
98

query I rowsort
SELECT ALL - 69 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9273
SELECT + 51 DIV tab2.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 8eac3ef7ebd8dd48948d60f072c60de1

skipif mysql # not compatible
query I rowsort label-9273
SELECT + 51 / tab2.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 8eac3ef7ebd8dd48948d60f072c60de1

query I rowsort
SELECT ALL 20 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9275
SELECT 0 DIV col1 + + 57 AS col1 FROM tab1
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9275
SELECT 0 / col1 + + 57 AS col1 FROM tab1
----
57
57
57

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT + col2 + ( col2 ) * - col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
60

query I rowsort
SELECT + 37 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - tab1.col2 * + col0 + - col0 FROM tab1
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT col1 + col2 DIV cor0.col1 AS col2 FROM tab1 cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-9281
SELECT col1 + col2 / cor0.col1 AS col2 FROM tab1 cor0
----
15
20
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-9282
SELECT - col2 + - col2 DIV - 16 AS col1 FROM tab1 cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-9282
SELECT - col2 + - col2 / - 16 AS col1 FROM tab1 cor0
----
-51
-54
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 95 - + ( col1 ) col2 FROM tab0 AS cor0
----
-2
3049
7699

onlyif mysql # use DIV operator for integer division
query I rowsort label-9284
SELECT + col1 DIV - ( col0 ) - + cor0.col1 FROM tab2 AS cor0
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-9284
SELECT + col1 / - ( col0 ) - + cor0.col1 FROM tab2 AS cor0
----
-17
-35
-59

query I rowsort
SELECT ALL + + col0 * - 16 * col0 FROM tab1 AS cor0
----
-102400
-144
-65536

query I rowsort
SELECT + 66 * tab1.col0 + col1 AS col2 FROM tab1
----
224
4234
5293

query I rowsort
SELECT DISTINCT - - cor0.col2 + - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

query I rowsort
SELECT DISTINCT + col0 * 64 * col1 AS col2 FROM tab2 AS cor0
----
13888
294528
85952

query I rowsort
SELECT ALL + 0 * - 28 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - cor0.col2 * 86 AS col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT ALL + 22 * col2 + col1 AS col1 FROM tab1 AS cor0
----
1214
1264
2125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9292
SELECT ALL + + ( - cor0.col2 ) + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + + ( - cor0.col2 ) + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT + col0 * 1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - 48 * + col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT ALL col1 * col0 + col0 * col1 AS col1 FROM tab0 cor0
----
16198
4128
6790

query I rowsort
SELECT ALL - - 97 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
100
161
177

query I rowsort
SELECT ALL + col2 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + 3 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab1, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 + 15 FROM tab0 AS cor0
----
-1210
-561
-7906

query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 * col1 + + 3 AS col1 FROM tab1 cor0
----
1238
1381
563

query I rowsort
SELECT ALL 61 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT - + 14 AS col2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT tab2.col0 * + tab2.col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT + 79 * col2 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT ALL - 82 + col2 FROM tab0 cor0
----
-49
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9308
SELECT ALL col1 * col1 DIV - col2 AS col0 FROM tab1
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL col1 * col1 / - col2 AS col0 FROM tab1
----
-1
-1
-12

query I rowsort
SELECT + cor1.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9310
SELECT - col1 DIV + 52 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9310
SELECT - col1 / + 52 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 + col0 * - 32 FROM tab1 AS cor0
----
-150
-2105
-2656

query I rowsort
SELECT 29 + - col2 FROM tab0 AS cor0
----
-4
-53
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * - col0 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ( col0 ) * + 95 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT - col0 * col0 + 8 * col1 FROM tab2 AS cor0
----
-5612
-6105
199

query I rowsort
SELECT 58 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT col1 * - 5 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT ALL - 44 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9c887509d218271b9365009eba440976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9319
SELECT - - CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT - - CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + col0 * - col0 * col2 + ( 94 ) AS col0 FROM tab2
----
-1198
-158031
-237047

query I rowsort
SELECT col0 - col1 * col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + + col1 - + col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col0 * 96 - - col0 * 68 AS col0 FROM tab1 AS cor0
----
-1792
-2240
-84

query I rowsort
SELECT ALL tab0.col0 - + col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL + col2 + + col1 * col1 * ( ( + col1 ) * - 90 ) FROM tab2 AS cor0
----
-18484084
-2681163
-442132

query I rowsort
SELECT DISTINCT + col0 + 96 FROM tab1 cor0
----
160
176
99

query I rowsort
SELECT - 92 * - col2 AS col1 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT ALL - - 76 * - col2 + - col1 FROM tab0 AS cor0
----
-173
-2594
-6323

query I rowsort
SELECT DISTINCT - col2 + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 - col2 * + ( 88 ) FROM tab1 cor0
----
-1368
-4590
-768

query I rowsort
SELECT DISTINCT col2 + - ( col1 ) * + 34 * 82 AS col0 FROM tab2 cor0
----
-164466
-47358
-86401

query I rowsort
SELECT ALL ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT 59 * col1 FROM tab0 cor0
----
5074
5369
5723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9334
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( + col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9335
SELECT ALL cor0.col1 * - 65 + - col0 + 47 DIV col0 FROM tab0 AS cor0
----
-5613
-6004
-6339

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL cor0.col1 * - 65 + - col0 + 47 / col0 FROM tab0 AS cor0
----
-5613
-6004
-6339

query I rowsort
SELECT ALL + 44 * cor0.col0 + - col1 * + col0 FROM tab1 cor0
----
2176
2480
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-9337
SELECT + col0 DIV - cor0.col0 - - 9 * 91 FROM tab1 AS cor0
----
818
818
818

skipif mysql # not compatible
query I rowsort label-9337
SELECT + col0 / - cor0.col0 - - 9 * 91 FROM tab1 AS cor0
----
818
818
818

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 DISTINCT col0 * col0 + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT 79 + + col2 FROM tab1 AS cor0
----
133
136
175

query I rowsort
SELECT + - col1 * - cor0.col2 + 51 * col0 FROM tab0 AS cor0
----
12001
1882
4062

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 + - 29 AS col0 FROM tab1 AS cor0
----
133
3619
7651

query I rowsort
SELECT + 99 * + col0 + col1 AS col0 FROM tab0
----
2462
3562
8902

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col2 AS col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT - 16 FROM tab1, tab2 cor0, tab0, tab1 AS cor1
----
81 values hashing to 6a726f8493b62c5d4e1dd657007160c3

query I rowsort
SELECT col2 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( - col1 AS REAL ) * col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + col1 * 30 AS col0 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT ALL + col2 * - tab2.col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - col0 - - col1 * + col1 FROM tab2
----
210
3403
954

query I rowsort
SELECT - 41 AS col2 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT ALL 11 + col1 FROM tab1 AS cor0
----
21
24
37

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT ALL - 49 * + col2 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT ALL - cor0.col2 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col2 * + 63 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT - col2 + + cor0.col2 + 56 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT ALL - + col2 * 4 AS col2 FROM tab1 AS cor0
----
-216
-228
-384

query I rowsort
SELECT ALL - col1 + col2 * tab2.col1 + col1 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 87 * col0 + - cor0.col1 col1 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT + col1 * 91 + - 37 FROM tab0 AS cor0
----
7789
8244
8790

onlyif mysql # use DIV operator for integer division
query I rowsort label-9362
SELECT + col2 DIV col2 - 59 * + col2 AS col2 FROM tab1 AS cor0
----
-3185
-3362
-5663

skipif mysql # not compatible
query I rowsort label-9362
SELECT + col2 / col2 - 59 * + col2 AS col2 FROM tab1 AS cor0
----
-3185
-3362
-5663

query I rowsort
SELECT DISTINCT - cor0.col1 + - 55 FROM tab2 AS cor0
----
-114
-72
-86

query I rowsort
SELECT ALL + col0 + ( cor0.col0 ) * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + cor0.col2 * 29 * + 77 AS col0 FROM tab1 AS cor0
----
120582
127281
214368

query I rowsort
SELECT + col1 + col2 * col1 + col0 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT DISTINCT - 52 + - col0 FROM tab0 AS cor0
----
-141
-76
-87

query I rowsort
SELECT + 94 + + 9 * + col1 AS col1 FROM tab1 AS cor0
----
184
211
328

query I rowsort
SELECT ALL col0 * + col1 + - col0 + - col2 FROM tab0 AS cor0
----
2007
3359
7928

query I rowsort
SELECT ALL 39 - + col1 FROM tab1 AS cor0
----
13
26
29

query I rowsort
SELECT ALL - + cor0.col2 + + 60 * - cor0.col2 - + ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-3268
-3467
-5843

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9372
SELECT DISTINCT + col1 + col1 * cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT + col1 + col1 * cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 86 AS col2 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT ( - col0 ) * 61 FROM tab2 AS cor0
----
-427
-4758
-4819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9375
SELECT DISTINCT col1 * col2 + + CAST( col1 AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
1417
2080
670

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT col1 * col2 + + CAST ( col1 AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
1417
2080
670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9376
SELECT DISTINCT + + col1 * + cor0.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT + + col1 * + cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - - col0 - - col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9378
SELECT 2 + col1 DIV - col1 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9378
SELECT 2 + col1 / - col1 AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL + + cor0.col1 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT + 39 + + cor0.col2 * - col1 FROM tab0 cor0
----
-2799
-58
-7423

query I rowsort
SELECT DISTINCT - col1 * - col2 + ( - col1 * + col2 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col2 - + col0 * - col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab1
----
-4

query I rowsort
SELECT - 15 - col0 FROM tab2
----
-22
-93
-94

query I rowsort
SELECT ALL - 41 * - col2 FROM tab1
----
2214
2337
3936

query I rowsort
SELECT + - 64 * - col2 + + col1 FROM tab0 AS cor0
----
161
2198
5339

query I rowsort
SELECT - ( cor0.col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + + ( - col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - col1 - col2 * - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT + col0 - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + 15 * + 14 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ac73661dd177352ab525d73b45bc0bd0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548

query I rowsort
SELECT 66 * - col0 * 3 + col0 FROM tab0 AS cor0
----
-17533
-4728
-6895

onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT + col0 + col0 DIV col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9395
SELECT + col0 + col0 / col0 FROM tab1
----
4
65
81

query I rowsort
SELECT + col1 + - col0 + - col2 FROM tab2 AS cor0
----
-100
-3
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-9397
SELECT + 49 DIV + col0 + col0 + col0 AS col0 FROM tab0 AS cor0
----
178
50
71

skipif mysql # not compatible
query I rowsort label-9397
SELECT + 49 / + col0 + col0 + col0 AS col0 FROM tab0 AS cor0
----
178
50
71

query I rowsort
SELECT + - 26 AS col2 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + ( col2 ) + + cor0.col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + - 98 + col0 col2 FROM tab0 AS cor0
----
-137
-148
-83

query I rowsort
SELECT + col1 + - col0 + - col2 AS col1 FROM tab0
----
-80
29
61

query I rowsort
SELECT ALL 76 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT tab0.col1 * + col1 * col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT + col1 + 66 AS col0 FROM tab2
----
125
83
97

query I rowsort
SELECT - col0 * - 25 * col1 + + col2 * ( tab2.col2 ) FROM tab2
----
115726
35019
6154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9406
SELECT - CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-9406
SELECT - CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab0
----
2
62
62

query I rowsort
SELECT + 15 + + col2 AS col2 FROM tab0
----
16
48
97

query I rowsort
SELECT DISTINCT + 88 - - col0 * + col2 FROM tab1 AS cor0
----
250
3736
7768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9409
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) - cor0.col1 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
17573
2117
936

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) - cor0.col1 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
17573
2117
936

query I rowsort
SELECT DISTINCT 16 + col1 * col1 AS col2 FROM tab1 AS cor0
----
116
185
692

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

query I rowsort
SELECT DISTINCT + col0 * ( - col2 ) + + cor0.col1 - col2 * - col2 FROM tab1 AS cor0
----
-389
1549
2780

query I rowsort
SELECT - col0 * + col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + - 75 AS col0 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - col0 * + 72 + + col1 FROM tab0 AS cor0
----
-1642
-2423
-6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT col0 DIV - col1 - + col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-9416
SELECT col0 / - col1 - + col0 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( - col1 AS REAL ) FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col1 + - ( - 2 ) AS col1 FROM tab2 AS cor0
----
19
33
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 22 * + col1 col2 FROM tab0 AS cor0
----
178178
45408
74690

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9420
SELECT - cor0.col2 * + CAST( - col0 AS SIGNED ) + col2 FROM tab2 cor0
----
2054
216
3040

skipif mysql # not compatible
query I rowsort label-9420
SELECT - cor0.col2 * + CAST ( - col0 AS INTEGER ) + col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT 52 * col1 AS col2 FROM tab1
----
1352
520
676

query I rowsort
SELECT 8 * col2 FROM tab2
----
208
216
304

query I rowsort
SELECT DISTINCT tab2.col0 + cor0.col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
9 values hashing to a842fe91e5dc1346a95ce3987ec1b2fb

query I rowsort
SELECT ( - 84 ) AS col2 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT ALL col0 + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT 52 FROM tab1 cor0
----
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9427
SELECT - + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9427
SELECT - + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 51 col2 FROM tab1 AS cor0
----
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9429
SELECT + CAST( - 79 AS SIGNED ) FROM tab1 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-9429
SELECT + CAST ( - 79 AS INTEGER ) FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL - ( 48 ) + col0 + + col0 FROM tab2 AS cor0
----
-34
108
110

query I rowsort
SELECT DISTINCT + - 32 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT 19 * col0 AS col1 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT + 41 * - cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 693fdcb666e59382fd45d73cf508292f

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab2
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col1 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT 2 AS col2 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT cor0.col2 + col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + - cor0.col0 * - ( col1 * + col1 ) FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT col0 * ( 45 ) AS col0 FROM tab1 AS cor0
----
135
2880
3600

onlyif mysql # use DIV operator for integer division
query I rowsort label-9440
SELECT + col2 DIV 83 col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9440
SELECT + col2 / 83 col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + - col2 + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT + col0 + ( + col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-9443
SELECT col0 DIV col0 + col1 DIV 98 + + 3 * - col2 FROM tab0 AS cor0
----
-2
-245
-98

skipif mysql # not compatible
query I rowsort label-9443
SELECT col0 / col0 + col1 / 98 + + 3 * - col2 FROM tab0 AS cor0
----
-2
-245
-98

query I rowsort
SELECT - ( - col2 ) * - cor0.col1 + col2 * col2 FROM tab1 AS cor0
----
1512
2679
7968

query I rowsort
SELECT ALL col1 + - 75 FROM tab0
----
11
16
22

query I rowsort
SELECT ALL col1 + + col1 * - tab0.col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + col0 * 87 + - col0 * + col0 FROM tab1
----
1472
252
560

query I rowsort
SELECT ALL - + col1 - ( col1 ) FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab1 AS cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + - col1 col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd

query I rowsort
SELECT + 1 + - 52 FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT ALL ( + ( + col1 ) ) - - 53 AS col1 FROM tab0 AS cor0
----
139
144
150

query I rowsort
SELECT ALL + + 91 AS col0 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL - col0 * - col1 + ( + 97 ) AS col2 FROM tab2 AS cor0
----
1440
314
4699

onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT DISTINCT + 48 + cor0.col2 DIV col0 FROM tab0 AS cor0
----
48
49

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT + 48 + cor0.col2 / col0 FROM tab0 AS cor0
----
48
49

query I rowsort
SELECT ALL 21 + + cor0.col0 + col2 * - col2 FROM tab0 AS cor0
----
-1044
-6614
55

query I rowsort
SELECT ALL + col0 * col0 + - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT col1 * col2 * col1 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + - ( col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col1 * col0 * - col0 AS col1 FROM tab0
----
-118825
-49536
-720811

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9463
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 62 / + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 62 / + col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 + col0 ) col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL 18 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 51 ) + + col0 * col2 col0 FROM tab2
----
2079
240
3053

query I rowsort
SELECT + + 35 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1330
910
945

query I rowsort
SELECT + - col0 * col2 + col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + 22 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-9470
SELECT ALL + + ( ( col1 ) ) + + ( + cor0.col1 ) DIV - col0 - 3 AS col2 FROM tab2 AS cor0
----
14
24
56

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL + + ( ( col1 ) ) + + ( + cor0.col1 ) / - col0 - 3 AS col2 FROM tab2 AS cor0
----
14
24
56

query I rowsort
SELECT DISTINCT - 32 FROM tab2 cor0
----
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9472
SELECT DISTINCT col1 / col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT col1 / col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 82 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
82

query I rowsort
SELECT 18 * - col1 * + col1 + - col2 + col0 FROM tab1
----
-12219
-1793
-3058

query I rowsort
SELECT col1 * + col1 - - 26 FROM tab2
----
315
3507
987

query I rowsort
SELECT DISTINCT + col0 * + col1 + cor0.col0 * col0 * cor0.col2 FROM tab1 AS cor0
----
234112
564
615440

query I rowsort
SELECT ALL 52 + col2 AS col2 FROM tab0
----
134
53
85

query I rowsort
SELECT ALL col0 + + ( - col1 ) * col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + + col1 * + ( 29 ) AS col2 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT ALL + col2 * - col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT col1 + col0 * col1 AS col0 FROM tab1 cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + col2 + col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - cor0.col2 * + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT cor0.col1 + ( - cor0.col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - - col0 * - ( col0 + col2 ) FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT DISTINCT - col0 * - col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9489
SELECT ALL - cor0.col0 - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - cor0.col0 - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - 22 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT ALL + + col1 + 3 AS col0 FROM tab0 AS cor0
----
100
89
94

query I rowsort
SELECT - - cor0.col1 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + + col1 * + col0 + 28 * - col1 AS col0 FROM tab0 AS cor0
----
-344
5551
679

query I rowsort
SELECT + cor0.col2 * + 50 FROM tab0, tab0 AS cor0
----
9 values hashing to 332185024a608e83cd9cb357cb48bdf6

query I rowsort
SELECT + col2 + + col2 AS col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ALL col2 * - 56 AS col0 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT 85 + col0 FROM tab0 cor0
----
109
120
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9499
SELECT col1 + + col2 * col1 DIV col0 + col1 DIV + col0 FROM tab0 AS cor0
----
101
175
207

skipif mysql # not compatible
query I rowsort label-9499
SELECT col1 + + col2 * col1 / col0 + col1 / + col0 FROM tab0 AS cor0
----
101
175
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9501
SELECT - CAST( NULL AS SIGNED ) * col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT - CAST ( NULL AS INTEGER ) * col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9502
SELECT ALL col1 DIV tab0.col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL col1 / tab0.col2 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL col2 + col0 * col0 * col1 FROM tab1 cor0
----
288
41017
83296

query I rowsort
SELECT 56 + - col2 FROM tab0 AS cor0
----
-26
23
55

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + 54 + col0 * - col0 FROM tab1 AS cor0
----
-4042
-6346
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-9507
SELECT ALL + col2 DIV + cor0.col2 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + col2 / + cor0.col2 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9508
SELECT DISTINCT - col0 DIV col2 - 9 FROM tab0 AS cor0
----
-10
-44
-9

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT - col0 / col2 - 9 FROM tab0 AS cor0
----
-10
-44
-9

query I rowsort
SELECT - cor0.col2 + col0 * col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - 67 AS col2 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9511
SELECT DISTINCT + col2 + col2 * CAST( + col0 * + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3396
664200
68145

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + col2 + col2 * CAST ( + col0 * + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT ALL 8 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 8 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 - + col2 * ( 96 ) FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT ALL - col0 * col1 + - 31 FROM tab2 AS cor0
----
-1374
-248
-4633

query I rowsort
SELECT - - ( col0 ) * + ( - 54 ) + + col2 FROM tab1 AS cor0
----
-108
-3399
-4224

query I rowsort
SELECT - col1 * col2 + + 23 * col0 FROM tab0 cor0
----
-2286
-5415
708

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + ( + 61 ) AS col0 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT ( col0 ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ( 85 ) + - col1 * + ( + col1 ) AS col0 FROM tab1 cor0
----
-15
-591
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9522
SELECT + + col1 DIV 65 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9522
SELECT + + col1 / 65 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * col1 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL + 12 + col0 + 41 * + col2 FROM tab0 cor0
----
1389
3463
88

query I rowsort
SELECT DISTINCT + - 33 + cor0.col0 FROM tab2 AS cor0
----
-26
45
46

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * - ( + 47 ) + col2 FROM tab0 AS cor0
----
-4095
-4286
-4655

query I rowsort
SELECT + col2 * + col1 + - col0 * - col1 FROM tab1 cor0
----
1210
1482
2288

query I rowsort
SELECT - 60 + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT - - col2 * col2 + 62 + 68 * col1 AS col2 FROM tab2 AS cor0
----
2662
2899
4750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - cor0.col1 * + 74 * - col2 col2 FROM tab2 AS cor0
----
113575
47821
61969

onlyif mysql # use DIV operator for integer division
query I rowsort label-9531
SELECT ALL - 49 DIV col0 AS col2 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL - 49 / col0 AS col2 FROM tab2
----
-7
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9532
SELECT DISTINCT + + col1 DIV col0 + ( col0 * col2 + - 56 ) FROM tab1 AS cor0
----
114
3592
7624

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT + + col1 / col0 + ( col0 * col2 + - 56 ) FROM tab1 AS cor0
----
114
3592
7624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col1 FROM tab1, tab0, tab0 AS cor0
----
-14

query I rowsort
SELECT DISTINCT + ( col0 + + col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT col1 + 26 FROM tab1 AS cor0
----
36
39
52

query I rowsort
SELECT - - cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col1 * + col2 + 5 AS col0 FROM tab1 AS cor0
----
1253
1409
575

query I rowsort
SELECT + col0 + - 60 AS col1 FROM tab2 cor0
----
-53
18
19

query I rowsort
SELECT col1 * - col0 + 51 * + col1 FROM tab0 AS cor0
----
-3458
1552
2322

query I rowsort
SELECT ALL + 65 AS col1 FROM tab1
----
65
65
65

query I rowsort
SELECT - col1 + + 0 * - ( - col1 + + col0 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - + col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT 49 + cor0.col1 FROM tab0 AS cor0
----
135
140
146

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL + col2 * + tab1.col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + 24 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9547
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
NULL

query I rowsort
SELECT DISTINCT - 90 * + 7 AS col0 FROM tab0 AS cor0
----
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9549
SELECT CAST( - col1 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9549
SELECT CAST ( - col1 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9550
SELECT + 83 + + col1 * + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-14
-3
-8

skipif mysql # not compatible
query I rowsort label-9550
SELECT + 83 + + col1 * + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-14
-3
-8

query I rowsort
SELECT DISTINCT cor0.col2 + 41 FROM tab1 AS cor0
----
137
95
98

query I rowsort
SELECT + 12 * col0 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT ALL - - 77 AS col2 FROM tab0 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 44 col0 FROM tab2 AS cor0
----
103
61
75

query I rowsort
SELECT DISTINCT - col2 + tab1.col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT DISTINCT - col2 + 15 + - col0 DIV col0 AS col2 FROM tab2
----
-12
-13
-24

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT - col2 + 15 + - col0 / col0 AS col2 FROM tab2
----
-12
-13
-24

query I rowsort
SELECT col0 + col2 - + 80 FROM tab0
----
-23
-44
91

query I rowsort
SELECT + col0 * col2 * - col0 AS col0 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT DISTINCT col0 DIV + ( col2 ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT col0 / + ( col2 ) FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - 89 FROM tab1, tab0 AS cor0
----
-89

query I rowsort
SELECT col1 * - 97 AS col0 FROM tab0
----
-8342
-8827
-9409

query I rowsort
SELECT + 54 + + col0 AS col0 FROM tab0
----
143
78
89

query I rowsort
SELECT col1 + ( - col0 ) * ( col0 ) FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT col0 - 33 AS col0 FROM tab0
----
-9
2
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 - + col2 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 * - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT + col2 * - col0 * - col1 + + col1 FROM tab0 cor0
----
3492
664209
68198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 * col2 + col2 * + cor0.col0 col1 FROM tab0 AS cor0
----
1650
61
9430

query I rowsort
SELECT DISTINCT + + col1 - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - col1 * 28 FROM tab1 AS cor0
----
-280
-364
-728

query I rowsort
SELECT ALL ( col1 ) * col1 + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9572
SELECT + cor0.col2 DIV + 77 FROM tab1, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-9572
SELECT + cor0.col2 / + 77 FROM tab1, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT DISTINCT - col1 - tab1.col2 * 87 AS col2 FROM tab1
----
-4724
-4969
-8365

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9574
SELECT ALL - col1 * col1 - CAST( + col1 AS SIGNED ) FROM tab1
----
-110
-182
-702

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL - col1 * col1 - CAST ( + col1 AS INTEGER ) FROM tab1
----
-110
-182
-702

query I rowsort
SELECT ALL - 88 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

onlyif mysql # use DIV operator for integer division
query I rowsort label-9576
SELECT DISTINCT + tab1.col2 DIV - col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + tab1.col2 / - col1 FROM tab1
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT - 50 DIV cor0.col1 - col1 FROM tab1 AS cor0
----
-15
-16
-27

skipif mysql # not compatible
query I rowsort label-9577
SELECT - 50 / cor0.col1 - col1 FROM tab1 AS cor0
----
-15
-16
-27

query I rowsort
SELECT col1 + + col2 + 84 * 29 AS col0 FROM tab2 AS cor0
----
2491
2494
2521

query I rowsort
SELECT DISTINCT col0 * + col2 - + 82 AS col2 FROM tab2
----
107
1946
2920

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

query I rowsort
SELECT - col2 + - col2 + col1 AS col2 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT DISTINCT + col0 * ( - 31 ) FROM tab2 AS cor0
----
-217
-2418
-2449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 + + cor0.col2 col2 FROM tab1 AS cor0
----
105
112
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-9584
SELECT DISTINCT - col1 DIV 9 FROM tab0 AS cor0
----
-10
-9

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - col1 / 9 FROM tab0 AS cor0
----
-10
-9

query I rowsort
SELECT - + col2 + 83 + + 36 AS col2 FROM tab1 AS cor0
----
23
62
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9586
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col1 + col2 * col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - col1 * + 37 + col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT cor0.col0 * + ( - 81 ) + + col0 * - col0 FROM tab2 cor0
----
-12402
-12640
-616

query I rowsort
SELECT DISTINCT + col1 * col1 - 76 AS col1 FROM tab1 AS cor0
----
24
600
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9591
SELECT DISTINCT col0 DIV col0 + - 23 * - col0 FROM tab2 cor0
----
162
1795
1818

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT col0 / col0 + - 23 * - col0 FROM tab2 cor0
----
162
1795
1818

query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 - + col2 col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT + - 3 * + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-120
-203
-89

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab0 AS cor0
----
74

query I rowsort
SELECT - col0 * - col2 + + 72 FROM tab1 cor0
----
234
3720
7752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9597
SELECT + col0 * - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT + col0 * - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col2 - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + 56 * + col1 AS col0 FROM tab0
----
4816
5096
5432

query I rowsort
SELECT 2 + + tab1.col0 AS col0 FROM tab1
----
5
66
82

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

query I rowsort
SELECT - - 6 * - col1 + col2 FROM tab1 AS cor0
----
-102
-3
18

query I rowsort
SELECT - + col1 * col2 - - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT ALL 59 + col1 * cor0.col1 FROM tab1 AS cor0
----
159
228
735

query I rowsort
SELECT ( - col1 ) + + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + 94 + col0 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT ALL 27 + + col2 AS col2 FROM tab1 AS cor0
----
123
81
84

query I rowsort
SELECT ( col1 ) * + col2 - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + 53 * - col0 * - cor0.col0 + 13 FROM tab1 AS cor0
----
217101
339213
490

query I rowsort
SELECT - col1 + - ( col0 * col2 ) + + col1 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ( - 34 ) FROM tab1
----
-34
-34
-34

query I rowsort
SELECT ALL - col1 + - col2 * col1 AS col2 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - col1 + + 49 AS col0 FROM tab0
----
-37
-42
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9614
SELECT CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9615
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9616
SELECT DISTINCT + ( tab0.col2 ) DIV col2 + col2 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT + ( tab0.col2 ) / col2 + col2 AS col0 FROM tab0
----
2
34
83

query I rowsort
SELECT + col2 * - 75 AS col1 FROM tab2 AS cor0
----
-1950
-2025
-2850

onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT ALL + + col2 * - cor0.col0 + - col2 DIV - ( - 24 * + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + + col2 * - cor0.col0 + - col2 / - ( - 24 * + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 50 * 7 + - col0 * - col2 FROM tab0 AS cor0
----
1142
385
7648

query I rowsort
SELECT + 52 + col0 AS col2 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT DISTINCT col2 * - col2 + - col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT col2 * col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - ( col2 ) + - tab0.col1 * + 71 AS col2 FROM tab0
----
-6139
-6543
-6888

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab2, tab0 AS cor0
----
1

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
3645 values hashing to 07504092eb64a26979c0bde05f7718cb

query I rowsort
SELECT - ( + ( col0 ) ) AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL - ( col1 ) * col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - ( col2 ) * + 91 FROM tab0 AS cor0
----
-3003
-7462
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT - 65 * - col0 * CAST( NULL AS SIGNED ) + + 49 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT - 65 * - col0 * CAST ( NULL AS INTEGER ) + + 49 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT 16 + col0 AS col1 FROM tab0 AS cor0
----
105
40
51

query I rowsort
SELECT col1 + - col1 + 77 * - col1 AS col2 FROM tab1 AS cor0
----
-1001
-2002
-770

query I rowsort
SELECT 99 * 69 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 21df034e1b11b5bc8e0c06a1656babba

onlyif mysql # use DIV operator for integer division
query I rowsort label-9634
SELECT col1 + + col1 DIV 31 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9634
SELECT col1 + + col1 / 31 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 * 89 AS col1 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-87

query I rowsort
SELECT DISTINCT + + col2 * - 79 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT ALL - col1 * - ( + 99 ) FROM tab2 AS cor0
----
1683
3069
5841

onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT DISTINCT col0 DIV ( 63 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT col0 / ( 63 ) FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL - col0 * + ( 44 ) FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT - col2 + - cor0.col1 * col1 * + ( col1 + + col2 ) AS col1 FROM tab2 AS cor0
----
-15933
-295911
-55765

query I rowsort
SELECT ALL col2 + + 81 FROM tab0 AS cor0
----
114
163
82

query I rowsort
SELECT + cor0.col1 * 77 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
22253
268037
73997

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9645
SELECT ALL + + CAST( - 62 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL + + CAST ( - 62 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9646
SELECT - CAST( col2 AS SIGNED ) - - col2 * + col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-9646
SELECT - CAST ( col2 AS INTEGER ) - - col2 * + col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + 89 * col0 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT DISTINCT 94 * + col2 AS col1 FROM tab1 AS cor0
----
5076
5358
9024

onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT ALL + + 14 + col1 DIV col2 FROM tab0 cor0
----
111
15
16

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL + + 14 + col1 / col2 FROM tab0 cor0
----
111
15
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * col1 col2 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT DISTINCT - - col0 * 39 AS col2 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT + col1 + - col2 * col0 AS col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT col2 - - col2 * tab1.col0 FROM tab1
----
216
3705
7776

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 / - col1 BETWEEN col0 + + col1 * + col0 + + col1 * col0 AND ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + cor0.col0 * + col1 * + col0 )
----

query I rowsort
SELECT DISTINCT col1 - - col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT - col1 * tab0.col2 + + col1 * col2 + - col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9659
SELECT cor0.col2 DIV + col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9659
SELECT cor0.col2 / + col0 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT ALL tab1.col1 - + col0 * col1 * + col0 FROM tab1
----
-208
-40950
-83187

query I rowsort
SELECT col1 + + col1 * col1 AS col0 FROM tab0
----
7482
8372
9506

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col2 * - col1 >= NULL
----

query I rowsort
SELECT ALL + col2 + col2 * - tab2.col0 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + col1 - - col0 FROM tab2
----
137
38
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * - tab1.col1 col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT cor0.col0 + col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - + col2 + cor0.col1 * col2 * col1 FROM tab1 AS cor0
----
16128
36450
5643

query I rowsort
SELECT - col0 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - col1 NOT IN ( cor0.col1 * col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * col0 AS col0 FROM tab0 WHERE col1 * + col2 = NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9675
SELECT ALL - + col0 + + CAST( - 89 AS SIGNED ) FROM tab2 AS cor0
----
-167
-168
-96

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - + col0 + + CAST ( - 89 AS INTEGER ) FROM tab2 AS cor0
----
-167
-168
-96

query I rowsort
SELECT DISTINCT col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - - col1 + - 69 + col2 FROM tab2 AS cor0
----
-11
-14
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-9678
SELECT - cor0.col1 + - 13 DIV col0 FROM tab1 AS cor0
----
-10
-13
-30

skipif mysql # not compatible
query I rowsort label-9678
SELECT - cor0.col1 + - 13 / col0 FROM tab1 AS cor0
----
-10
-13
-30

query I rowsort
SELECT DISTINCT - + col2 * + ( + 45 ) AS col1 FROM tab1 AS cor0
----
-2430
-2565
-4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9680
SELECT + col1 * CAST( NULL AS SIGNED ) + - 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT + col1 * CAST ( NULL AS INTEGER ) + - 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9681
SELECT - + col0 + 55 DIV ( col2 ) FROM tab0 AS cor0
----
-23
-89
20

skipif mysql # not compatible
query I rowsort label-9681
SELECT - + col0 + 55 / ( col2 ) FROM tab0 AS cor0
----
-23
-89
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-9682
SELECT ALL - col0 + 14 DIV + col2 FROM tab0 AS cor0
----
-21
-24
-89

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL - col0 + 14 / + col2 FROM tab0 AS cor0
----
-21
-24
-89

query I rowsort
SELECT DISTINCT col2 * col0 - - col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col0 * col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT 88 DIV tab2.col0 AS col0 FROM tab2
----
1
1
12

skipif mysql # not compatible
query I rowsort label-9685
SELECT 88 / tab2.col0 AS col0 FROM tab2
----
1
1
12

query I rowsort
SELECT DISTINCT - 90 * + col1 FROM tab1
----
-1170
-2340
-900

query I rowsort
SELECT - + col1 * - col0 + col0 * col1 + + 87 AS col1 FROM tab2 AS cor0
----
2773
521
9291

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * ( ( col1 ) ) + - CAST ( 5 AS REAL ) AS col1 FROM tab1 cor0
----
1243
1399
565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * 26 - 55 * col2 * col1 col1 FROM tab1 AS cor0
----
-31090
-68302
-76544

query I rowsort
SELECT ALL 83 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT ALL 9 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL col0 + - ( - col1 ) AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT ( col2 ) + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + ( - 72 ) + col2 AS col1 FROM tab0 AS cor0
----
-39
-71
10

query I rowsort
SELECT ALL - 32 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT col1 * + col1 + - 53 FROM tab2
----
236
3428
908

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col1 * + 96 - - 4 * col1 FROM tab0
----
8600
9100
9700

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
-7
-78
-79

query I rowsort
SELECT col0 - + col0 * col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL col0 + + col2 * col1 * col0 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT DISTINCT tab2.col0 * col1 + + col0 * col2 AS col2 FROM tab2
----
406
4345
6630

query I rowsort
SELECT DISTINCT - 86 * col1 AS col2 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT - tab2.col2 - col0 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + tab2.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - tab1.col2 + col2 col2 FROM tab1
----
-10
-13
-26

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) NOT IN ( - col1 + col2 + + col0 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL ( + col1 ) + col2 - col0 FROM tab1
----
29
3
77

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab1, tab2, tab0 cor0
----
-43

query I rowsort
SELECT DISTINCT col0 * + col2 - + tab1.col1 FROM tab1
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9712
SELECT ALL - tab1.col1 * - col0 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - tab1.col1 * - col0 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * cor0.col1 + 46 * + cor0.col2 AS col0 FROM tab0 cor0
----
-3349
-4327
-546

query I rowsort
SELECT + col1 * + col2 + cor0.col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col1 + - ( col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 + + 56 AS col2 FROM tab2 AS cor0
----
-22
-23
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9717
SELECT ALL - tab2.col2 + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - tab2.col2 + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 16 + 56 AS col2 FROM tab1 AS cor0
----
1592
920
968

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col1 + - CAST ( cor0.col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col1 + - ( - col0 ) + col2 * col0 * + col0 FROM tab2 AS cor0
----
1361
158321
237254

query I rowsort
SELECT DISTINCT - col1 * 30 + col2 * + col0 FROM tab1 AS cor0
----
-618
3348
7290

query I rowsort
SELECT - + cor0.col2 * col1 + - col0 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT - col0 * col2 + 99 AS col0 FROM tab1 AS cor0
----
-3549
-63
-7581

query I rowsort
SELECT DISTINCT - + col1 - + col1 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT - col1 * col1 * - 92 + + col2 AS col1 FROM tab1 AS cor0
----
15644
62246
9257

query I rowsort
SELECT DISTINCT - + col1 + - 55 * + ( - col2 ) FROM tab2 AS cor0
----
1371
1454
2073

onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9727
SELECT cor0.col2 / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) + col0 * col2 col2 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT col2 * col0 * cor0.col1 + cor0.col2 DIV + cor0.col0 FROM tab2 cor0
----
119652
51034
5862

skipif mysql # not compatible
query I rowsort label-9729
SELECT col2 * col0 * cor0.col1 + cor0.col2 / + cor0.col0 FROM tab2 cor0
----
119652
51034
5862

query I rowsort
SELECT DISTINCT - col2 + - col0 * col1 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL ( - 8 ) * + cor0.col1 + + col1 * col2 FROM tab2 AS cor0
----
1062
510
589

query I rowsort
SELECT ALL + 59 * - col2 FROM tab1 AS cor0
----
-3186
-3363
-5664

query I rowsort
SELECT + ( 32 ) + + col2 FROM tab2 cor0
----
58
59
70

query I rowsort
SELECT ALL tab1.col1 + 85 AS col2 FROM tab1
----
111
95
98

query I rowsort
SELECT DISTINCT col0 + col2 * 7 AS col2 FROM tab0 AS cor0
----
255
42
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9736
SELECT DISTINCT + CAST( 56 AS SIGNED ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + CAST ( 56 AS INTEGER ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
56

query I rowsort
SELECT ALL col1 - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9738
SELECT DISTINCT - col0 DIV - col1 + 60 AS col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - col0 / - col1 + 60 AS col0 FROM tab0 AS cor0
----
60

query I rowsort
SELECT + 20 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL ( col2 ) * - 26 FROM tab1 AS cor0
----
-1404
-1482
-2496

query I rowsort
SELECT + cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - col1 * col0 + col1 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + tab1.col1 * ( + tab1.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to ae5946db6904798b8afac35f5777bb79

query I rowsort
SELECT DISTINCT col1 * + 38 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT ALL - - col1 * - 79 + - col1 FROM tab2 AS cor0
----
-1360
-2480
-4720

query I rowsort
SELECT ALL col2 * + 96 + + col1 + + col2 FROM tab1 AS cor0
----
5264
5539
9325

query I rowsort
SELECT col1 * - col2 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + 58 AS col2 FROM tab0
----
58
58
58

query I rowsort
SELECT ALL - 89 AS col0 FROM tab2
----
-89
-89
-89

query I rowsort
SELECT col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - 54 * - tab0.col2 + col2 FROM tab0
----
1815
4510
55

query I rowsort
SELECT DISTINCT col2 * + col1 + col1 * + col1 AS col2 FROM tab0
----
10234
15743
9506

query I rowsort
SELECT col0 * - tab0.col0 + col0 * col2 * col2 + - col1 * - tab0.col1 AS col2 FROM tab0
----
32956
598796
8219

query I rowsort
SELECT + tab1.col1 * + col1 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT DISTINCT - tab0.col2 * + col1 + - col2 * + col0 FROM tab0
----
-132
-14760
-3630

query I rowsort
SELECT tab1.col1 * + col0 + - col1 AS col2 FROM tab1
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9758
SELECT DISTINCT - tab0.col1 * - col2 DIV col2 + + col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT - tab0.col1 * - col2 / col2 + + col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL col2 + col1 * + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL + col2 * - tab1.col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab1, tab1 AS cor0
----
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9762
SELECT DISTINCT - col1 DIV + 25 AS col0 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - col1 / + 25 AS col0 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT + ( - col1 * - col0 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL tab2.col1 * + col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT ( 87 + col2 ) * - col0 AS col0 FROM tab0
----
-15041
-2880
-3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col1 col2 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL - 55 AS col2 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT ALL - 31 * - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-20956
-22599
-44764

query I rowsort
SELECT ALL - - 15 * + col2 AS col2 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT - - col2 + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + + col1 * col0 * - col1 col2 FROM tab0 AS cor0
----
-177574
-329385
-737079

query I rowsort
SELECT ALL - - 25 + cor0.col2 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT + 71 + - col1 * - col1 * - col0 FROM tab0 cor0
----
-177433
-329244
-736938

query I rowsort
SELECT DISTINCT col0 + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + col1 + + col0 * + 43 FROM tab2 AS cor0
----
332
3413
3414

query I rowsort
SELECT DISTINCT + 85 * col1 AS col1 FROM tab0 cor0
----
7310
7735
8245

query I rowsort
SELECT + col0 * col0 + - ( - col1 ) FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT + cor0.col0 * - col1 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - - ( + col0 ) - - col1 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - + col2 col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + 73 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - ( 41 + col0 ) AS col0 FROM tab1
----
-105
-121
-44

query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + ( col0 * - col0 ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + col1 - tab1.col1 * + 54 FROM tab1
----
-1378
-530
-689

onlyif mysql # use DIV operator for integer division
query I rowsort label-9786
SELECT + 68 DIV - tab1.col0 + - ( 12 ) FROM tab1
----
-12
-13
-34

skipif mysql # not compatible
query I rowsort label-9786
SELECT + 68 / - tab1.col0 + - ( 12 ) FROM tab1
----
-12
-13
-34

query I rowsort
SELECT DISTINCT col1 * col1 + + 23 FROM tab0
----
7419
8304
9432

onlyif mysql # use DIV operator for integer division
query I rowsort label-9788
SELECT DISTINCT + tab0.col0 + + col1 DIV col1 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + tab0.col0 + + col1 / col1 FROM tab0
----
25
36
90

query I rowsort
SELECT - 2 + col0 FROM tab2 cor0
----
5
76
77

query I rowsort
SELECT - col1 * col2 - 90 * + col1 FROM tab2
----
-2176
-3627
-6844

query I rowsort
SELECT 77 FROM tab2, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # use DIV operator for integer division
query I rowsort label-9792
SELECT - col1 DIV + 55 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT - col1 / + 55 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9793
SELECT + col2 DIV + 40 col1 FROM tab1
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9793
SELECT + col2 / + 40 col1 FROM tab1
----
1
1
2

query I rowsort
SELECT - col1 * 69 - + col1 AS col1 FROM tab2
----
-1190
-2170
-4130

query I rowsort
SELECT - col2 * + 58 FROM tab1 cor0
----
-3132
-3306
-5568

query I rowsort
SELECT - 81 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT DISTINCT col1 * - 92 FROM tab2
----
-1564
-2852
-5428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9798
SELECT - col0 * col0 + col0 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1155
-528
-7743

skipif mysql # not compatible
query I rowsort label-9798
SELECT - col0 * col0 + col0 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1155
-528
-7743

query I rowsort
SELECT - 72 + col2 FROM tab1 AS cor0
----
-15
-18
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9800
SELECT - ( + 19 ) * - cor0.col1 * + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT - ( + 19 ) * - cor0.col1 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + - col1 * col1 + - col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-15670
-8274
-9541

query I rowsort
SELECT ALL - col2 * col0 - col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - col1 * cor0.col1 + + cor0.col2 AS col1 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT ALL - - 60 * - cor0.col1 * cor0.col1 FROM tab0 cor0
----
-443760
-496860
-564540

query I rowsort
SELECT - - ( col1 ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9807
SELECT 88 DIV - 98 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9807
SELECT 88 / - 98 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + ( - 39 ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - col0 + col1 * col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT ALL col1 * - 82 FROM tab0 AS cor0
----
-7052
-7462
-7954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9811
SELECT CAST( 31 AS SIGNED ) * col0 + col2 + - col0 FROM tab1 AS cor0
----
144
1977
2496

skipif mysql # not compatible
query I rowsort label-9811
SELECT CAST ( 31 AS INTEGER ) * col0 + col2 + - col0 FROM tab1 AS cor0
----
144
1977
2496

query I rowsort
SELECT + - col0 * ( - cor0.col2 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9813
SELECT col0 DIV + 95 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT col0 / + 95 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 80 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
242
3728
7760

query I rowsort
SELECT ALL - col0 * 24 - + col2 FROM tab1
----
-126
-1593
-2016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9816
SELECT + CAST( 44 AS SIGNED ) AS col0 FROM tab2
----
44
44
44

skipif mysql # not compatible
query I rowsort label-9816
SELECT + CAST ( 44 AS INTEGER ) AS col0 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL - - cor0.col1 * - 46 FROM tab2 AS cor0
----
-1426
-2714
-782

onlyif mysql # use DIV operator for integer division
query I rowsort label-9818
SELECT DISTINCT + col2 DIV 58 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT + col2 / 58 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 46 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - 12 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-204
-372
-708

query I rowsort
SELECT 26 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT + col0 * - col0 * - col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT + col2 + col2 + col0 AS col0 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT ALL + 53 * col0 AS col1 FROM tab0 AS cor0
----
1272
1855
4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-9826
SELECT + col1 - + col1 DIV 91 FROM tab0 AS cor0
----
86
90
96

skipif mysql # not compatible
query I rowsort label-9826
SELECT + col1 - + col1 / 91 FROM tab0 AS cor0
----
86
90
96

query I rowsort
SELECT ALL + + col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-9828
SELECT DISTINCT - 95 * + col0 + 43 DIV col0 FROM tab2 AS cor0
----
-659
-7410
-7505

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT - 95 * + col0 + 43 / col0 FROM tab2 AS cor0
----
-659
-7410
-7505

query I rowsort
SELECT col1 * col1 - col2 * + col0 AS col1 FROM tab1 cor0
----
-3548
-7511
514

query I rowsort
SELECT DISTINCT cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9831
SELECT cor0.col1 DIV + col0 + + col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-9831
SELECT cor0.col1 / + col0 + + col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT ( col2 ) * - 2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9833
SELECT ALL col1 DIV col0 col1 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL col1 / col0 col1 FROM tab1 AS cor0
----
0
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9834
SELECT ALL col2 - ( + col2 * CAST( - 61 AS SIGNED ) ) AS col1 FROM tab0
----
2046
5084
62

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL col2 - ( + col2 * CAST ( - 61 AS INTEGER ) ) AS col1 FROM tab0
----
2046
5084
62

query I rowsort
SELECT ALL col2 * 77 - + col0 AS col1 FROM tab0
----
2517
42
6225

query I rowsort
SELECT 73 + cor0.col2 AS col1 FROM tab0 AS cor0
----
106
155
74

query I rowsort
SELECT DISTINCT - col2 * col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL + ( - col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9839
SELECT ALL + col0 + col1 * + CAST( NULL AS DECIMAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + col0 + col1 * + CAST ( NULL AS REAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - col1 * - col0 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 53 + col1 * + 93 col0 FROM tab0 AS cor0
----
7945
8410
8968

onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT ALL col0 DIV - 11 - + col0 FROM tab1
----
-3
-69
-87

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL col0 / - 11 - + col0 FROM tab1
----
-3
-69
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9843
SELECT DISTINCT + - col0 * - col0 - col2 DIV col2 col0 FROM tab0 AS cor0
----
1224
575
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT + - col0 * - col0 - col2 / col2 col0 FROM tab0 AS cor0
----
1224
575
7920

query I rowsort
SELECT DISTINCT + col0 + 31 * + col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-19776
-2415
-32160

query I rowsort
SELECT ALL - col0 * 20 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT col1 * ( + 52 ) AS col2 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT col2 + + ( - 37 ) FROM tab2
----
-10
-11
1

query I rowsort
SELECT 84 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9849
SELECT DISTINCT + col0 DIV - col2 - col2 AS col1 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT + col0 / - col2 - col2 AS col1 FROM tab0 AS cor0
----
-33
-36
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9850
SELECT ALL + col1 DIV + 19 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + col1 / + 19 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + + col0 + col2 AS col2 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9852
SELECT DISTINCT + col1 DIV ( + col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + col1 / ( + col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT ALL col2 * col1 * + cor0.col2 - col1 FROM tab2 AS cor0
----
22568
24531
39825

query I rowsort
SELECT ALL - + col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + - col1 + + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL + ( 44 ) * col2 AS col1 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT cor0.col0 * + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT - - col0 * ( + cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 74 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9863
SELECT ALL - + col1 / CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - + col1 / CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - ( col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9865
SELECT DISTINCT - - col0 DIV 5 FROM tab2 cor0
----
1
15

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - - col0 / 5 FROM tab2 cor0
----
1
15

query I rowsort
SELECT - - col1 * col2 - + 74 FROM tab0 AS cor0
----
23
2764
7388

query I rowsort
SELECT ALL - - col2 + 17 AS col1 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT col1 + + tab0.col0 * + col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT ALL - 90 + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab0, tab1 cor1
----
81 values hashing to 371fe9324a1f444d452c2a9953a08121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 39 ) * + col1 col0 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT ALL - 52 AS col2 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + - ( 97 ) * + col2 * - col2 AS col2 FROM tab1 cor0
----
282852
315153
893952

query I rowsort
SELECT DISTINCT + - 83 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT 58 + col0 AS col2 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT DISTINCT + 90 * 46 + col1 AS col1 FROM tab2 AS cor0
----
4157
4171
4199

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab1 AS cor0
----
37

query I rowsort
SELECT - + 10 * + col2 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT - 17 + - cor1.col2 + - cor1.col0 * 89 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b57e000f13d19084b662b86c65abdf68

query I rowsort
SELECT ALL + 92 FROM tab2 cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 * + ( col2 * col2 + - col0 ) col1 FROM tab1 AS cor0
----
118781
31860
75764

onlyif mysql # use DIV operator for integer division
query I rowsort label-9881
SELECT DISTINCT col2 + - cor0.col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT col2 + - cor0.col2 / + col0 AS col2 FROM tab0 AS cor0
----
1
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col1 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT 1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9884
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 * col0 col2 FROM tab0 AS cor0
----
-1128
-1645
-4183

query I rowsort
SELECT + - ( - col0 ) + col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9887
SELECT - + col2 DIV - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9887
SELECT - + col2 / - col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 91 * + col1 * 84 FROM tab0
----
657384
695604
741468

query I rowsort
SELECT ALL 4 * col2 FROM tab2
----
104
108
152

query I rowsort
SELECT DISTINCT - - cor0.col1 * ( col0 ) AS col2 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9891
SELECT - col1 + col1 DIV col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-9891
SELECT - col1 + col1 / col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT ALL + - ( col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - 45 + + 46 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort
SELECT + col2 * ( col2 ) + CAST ( - 82 AS REAL ) FROM tab2 AS cor0
----
1362
594
647

query I rowsort
SELECT - + ( col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 15 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT col1 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9898
SELECT ( col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT ( col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 80 * - col0 AS col2 FROM tab1
----
240
5120
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * 22 * + col2 col2 FROM tab2
----
53768
55836
78584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9901
SELECT col1 + ( - col1 + + col0 ) DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9901
SELECT col1 + ( - col1 + + col0 ) / col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - col0 * 77 + - col0 * col2 FROM tab0 AS cor0
----
-14151
-2640
-2730

query I rowsort
SELECT col2 * col2 - ( - col0 + ( - col0 ) ) * col1 AS col0 FROM tab1 AS cor0
----
11296
3072
4529

query I rowsort
SELECT ALL + - col2 + + ( - 61 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT ALL - col0 * col1 + ( cor0.col2 ) + - 43 AS col2 FROM tab2 AS cor0
----
-1348
-233
-4619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 47 col0 FROM tab2 AS cor0
----
73
74
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * col2 col2 FROM tab0 cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + col2 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + col2 + cor0.col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT 81 + - col0 FROM tab2 AS cor0
----
2
3
74

query I rowsort
SELECT - 43 * cor0.col0 + col0 FROM tab1 cor0
----
-126
-2688
-3360

query I rowsort
SELECT + cor0.col2 + 78 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
6741
7180
7567

query I rowsort
SELECT + col1 + - 51 + - col1 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT - col0 * 73 + + col2 + col0 FROM tab2
----
-477
-5590
-5650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9915
SELECT + tab1.col0 - CAST( NULL AS DECIMAL ) / + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT + tab1.col0 - CAST ( NULL AS REAL ) / + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 42 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 58 col0 FROM tab2
----
-1798
-3422
-986

onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT col2 DIV - col2 - 25 * tab1.col0 AS col2 FROM tab1
----
-1601
-2001
-76

skipif mysql # not compatible
query I rowsort label-9918
SELECT col2 / - col2 - 25 * tab1.col0 AS col2 FROM tab1
----
-1601
-2001
-76

query I rowsort
SELECT DISTINCT - col0 - tab0.col2 * - col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT + 15 FROM tab2, tab1 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT - - col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 + cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col0 * - col0 * col0 AS col2 FROM tab0 cor0
----
-13824
-42875
-704969

query I rowsort
SELECT DISTINCT + ( - col2 + col2 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * col2 * + col2 AS col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - 29 + 89 AS col1 FROM tab0, tab2, tab2 AS cor0
----
60

query I rowsort
SELECT - 19 * - col1 * + col2 AS col0 FROM tab1 AS cor0
----
10830
23712
26676

query I rowsort
SELECT DISTINCT - + 98 FROM tab0, tab1, tab0 AS cor0
----
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9930
SELECT DISTINCT - - col1 DIV + 48 AS col2 FROM tab0 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - - col1 / + 48 AS col2 FROM tab0 AS cor0
----
1
2

query I rowsort
SELECT + - col1 * ( - col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - 93 * col1 + + col0 AS col0 FROM tab2 cor0
----
-1502
-2876
-5409

query I rowsort
SELECT DISTINCT col2 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col2 * - 23 * col1 FROM tab1 AS cor0
----
-13110
-28704
-32292

query I rowsort
SELECT + + col0 * 23 FROM tab0 AS cor0
----
2047
552
805

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 * CAST ( col0 AS REAL ) * col0 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - - cor0.col1 + ( + col1 ) FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col1 * col2 * + col1 - + cor0.col1 col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL + col0 * ( + cor0.col2 ) FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - 89 + - 4 * - col1 AS col2 FROM tab0
----
255
275
299

onlyif mysql # use DIV operator for integer division
query I rowsort label-9941
SELECT - CAST( - col0 AS SIGNED ) DIV tab1.col1 + col0 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-9941
SELECT - CAST ( - col0 AS INTEGER ) / tab1.col1 + col0 FROM tab1
----
3
70
86

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - 25 * + 10 FROM tab0 AS cor0
----
-250
-250
-250

query I rowsort
SELECT ALL + 4 + + col0 AS col0 FROM tab2 AS cor0
----
11
82
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9945
SELECT 55 + col0 DIV col1 col2 FROM tab1 AS cor0
----
55
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9945
SELECT 55 + col0 / col1 col2 FROM tab1 AS cor0
----
55
61
61

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + col2 * 6 FROM tab1 AS cor0
----
324
342
576

query I rowsort
SELECT ALL + + 40 FROM tab0 cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 41 col1 FROM tab1 AS cor0
----
137
95
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9950
SELECT + + col1 * col1 * + col2 + - CAST( - col1 * - col2 AS SIGNED ) FROM tab0 AS cor0
----
241230
671580
9312

skipif mysql # not compatible
query I rowsort label-9950
SELECT + + col1 * col1 * + col2 + - CAST ( - col1 * - col2 AS INTEGER ) FROM tab0 AS cor0
----
241230
671580
9312

query I rowsort
SELECT ALL ( - col0 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + col0 + 42 FROM tab1 cor0
----
-22
-38
39

query I rowsort
SELECT + - ( col1 ) + - col1 * col0 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
-22848
-271577
-6758

onlyif mysql # use DIV operator for integer division
query I rowsort label-9954
SELECT - ( - 57 ) DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9954
SELECT - ( - 57 ) / col1 AS col2 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT + 57 * + col0 AS col0 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT 86 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 435f4131b25a0822065966508fa6e31a

query I rowsort
SELECT + - 1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( cor1.col1 ) FROM tab0, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
17
31
59

query I rowsort
SELECT ALL col0 * tab2.col2 * + col2 FROM tab2
----
114076
5103
52728

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * + col1 + - col2 * + CAST ( col2 AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
-113430
-4266
-51194

query I rowsort
SELECT ALL - 49 * + 16 - col1 FROM tab0 cor0
----
-870
-875
-881

query I rowsort
SELECT 0 + col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9963
SELECT ALL 4 * ( col0 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL 4 * ( col0 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9965
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 + 72 FROM tab1 cor0
----
82
85
98

query I rowsort
SELECT DISTINCT - col2 * + 26 + - cor0.col1 * - 71 FROM tab1 AS cor0
----
-1573
-772
442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9968
SELECT + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9968
SELECT + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + ( - 39 ) - col2 AS col2 FROM tab1 AS cor0
----
-135
-93
-96

query I rowsort
SELECT + col0 * + ( col0 ) FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col1 FROM tab1 AS cor0
----
8

query I rowsort
SELECT + col2 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9973
SELECT + CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT + CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor1.col1 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col1 * + 86 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT ALL - cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - - 35 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9978
SELECT - + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT - + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col1 + + 72 AS col1 FROM tab2
----
1606
718
909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * col1 col0 FROM tab0
----
516
546
582

query I rowsort
SELECT - col0 + col0 * + col0 * - col2 FROM tab2
----
-1330
-158262
-237237

onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT + 39 + col2 DIV - ( col0 ) FROM tab2 cor0
----
36
39
39

skipif mysql # not compatible
query I rowsort label-9982
SELECT + 39 + col2 / - ( col0 ) FROM tab2 cor0
----
36
39
39

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 * ( + col0 ) + - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - col1 * + col1 + + ( col0 ) * 41 AS col1 FROM tab0 AS cor0
----
-4632
-6412
-7974

query I rowsort
SELECT + - col1 + 6 AS col2 FROM tab1 AS cor0
----
-20
-4
-7

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) - + col0 * col2 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT - + col0 * 57 + - col0 AS col2 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT DISTINCT - - col0 * + 43 AS col1 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT DISTINCT col1 * ( - ( + cor0.col1 ) ) + + ( - 52 ) - - col2 FROM tab1 AS cor0
----
-125
-674
-95

query I rowsort
SELECT - cor0.col1 + - ( - ( col1 ) ) * - 24 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT + col2 + + col2 * - col0 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col2 * 42 AS col1 FROM tab0 AS cor0
----
1386
3444
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-9995
SELECT DISTINCT - cor0.col2 + col0 DIV + col1 AS col0 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - cor0.col2 + col0 / + col1 AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col1 + - 40 FROM tab1 AS cor0
----
-50
-53
-66

query I rowsort
SELECT - + 18 + - col2 FROM tab2 AS cor0
----
-44
-45
-56

query I rowsort
SELECT ALL 67 + - col0 AS col0 FROM tab0
----
-22
32
43

