sqllogictest

Artifact [e90035bf53]
Login

Artifact e90035bf53f3484f2a202b6605daea9c82db9bae:


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 * col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1
SELECT - col1 DIV 22 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1
SELECT - col1 / 22 FROM tab2
----
-1
-2
0

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

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

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

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

query I rowsort
SELECT - ( - cor0.col1 ) * cor0.col0 * + 46 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to dfed1540452fc9b055ea3ca6f2636c51

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

query I rowsort
SELECT - col0 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

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

skipif mysql # not compatible
query I rowsort label-7
SELECT + - col0 * col1 + + CAST ( ( col0 ) AS INTEGER ) + CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-512
-72
-880

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-10
SELECT ALL + ( - cor0.col0 ) + CAST( - col1 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1456
567
830

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + ( - cor0.col0 ) + CAST ( - col1 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * + cor0.col1 col2 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT ALL tab2.col1 * col1 + - col2 FROM tab2
----
251
3455
934

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

query I rowsort
SELECT DISTINCT - 92 + + col1 * + col1 * + col0 FROM tab2
----
22739
271426
6635

query I rowsort
SELECT DISTINCT col1 + 96 + tab2.col2 FROM tab2
----
151
154
181

query I rowsort
SELECT ALL col1 + 71 FROM tab1
----
81
84
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 + + col1 col2 FROM tab2
----
36
50
78

query I rowsort
SELECT - 43 + col0 FROM tab0
----
-19
-8
46

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

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

query I rowsort
SELECT - col2 - tab1.col2 AS col0 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + + 19 FROM tab0 AS cor0
----
19

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

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

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

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

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

query I rowsort
SELECT + col2 + + cor0.col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL + col0 + - tab0.col1 + - col0 AS col1 FROM tab0
----
-86
-91
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col1 * + col0 col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - tab2.col2 AS col1 FROM tab2 WHERE NULL < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( - col0 ) OR NULL BETWEEN NULL AND NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

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

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

query I rowsort
SELECT ALL + 63 * - col1 FROM tab1 AS cor0
----
-1638
-630
-819

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

query I rowsort
SELECT ALL tab0.col2 * col0 * col2 FROM tab0
----
26136
35
598436

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

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

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE col1 <= NULL
----

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

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

query I rowsort
SELECT ALL + col0 + - col0 * col0 AS col2 FROM tab1 WHERE + col0 < NULL
----

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

query I rowsort
SELECT tab0.col1 + tab0.col0 - col0 * - tab0.col2 AS col0 FROM tab0
----
167
7478
902

query I rowsort
SELECT ALL col2 + - col0 * tab0.col1 * + col0 AS col2 FROM tab0
----
-118824
-49503
-720729

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT + tab0.col0 + + tab0.col0 DIV col2 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-47
SELECT + tab0.col0 + + tab0.col0 / col2 FROM tab0
----
24
70
90

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

query I rowsort
SELECT col1 + - cor0.col1 * - 38 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT ALL + 89 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to bb5bb13eab35a33bb4641905f5e7c9b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) * ( + 38 ) col1 FROM tab1 AS cor0
----
380
494
988

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

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE ( NULL ) >= NULL
----

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col2 FROM tab1 AS cor0 WHERE col0 NOT IN ( + cor0.col2 + col1 )
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-62
SELECT DISTINCT - col2 + col0 * col0 DIV col0 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT - col2 + col0 * col0 / col0 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT DISTINCT col1 DIV - col1 + - col2 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT col1 / - col1 + - col2 FROM tab0
----
-2
-34
-83

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

query I rowsort
SELECT col1 FROM tab0 WHERE - col1 > NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 < col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-68
SELECT ALL col1 * col2 DIV col0 + col2 * col2 * - col0 AS col1 FROM tab0
----
-26018
-33
-598353

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL col1 * col2 / col0 + col2 * col2 * - col0 AS col1 FROM tab0
----
-26018
-33
-598353

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + tab2.col1 AS col2 FROM tab2
----
55
58
85

query III rowsort
SELECT * FROM tab1 WHERE - col1 <= NULL
----

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

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

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

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

query I rowsort
SELECT cor0.col1 * 79 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 37f4941056c1d206e40f0c5d2cffa1a6

query I rowsort
SELECT + - 51 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT + 48 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

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

query I rowsort
SELECT + 58 * - col1 - - tab2.col1 FROM tab2
----
-1767
-3363
-969

query I rowsort
SELECT ALL 39 + + tab2.col0 FROM tab2
----
117
118
46

query I rowsort
SELECT DISTINCT ( col0 ) + 91 FROM tab2
----
169
170
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-87
SELECT 91 DIV tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-87
SELECT 91 / tab0.col0 FROM tab0
----
1
2
3

query I rowsort
SELECT + ( tab1.col2 ) * ( + 10 ) AS col2 FROM tab1
----
540
570
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-89
SELECT + col1 DIV col0 + col2 * + col1 FROM tab1
----
1248
1412
570

skipif mysql # not compatible
query I rowsort label-89
SELECT + col1 / col0 + col2 * + col1 FROM tab1
----
1248
1412
570

query I rowsort
SELECT + 87 * - col2 - + 64 AS col1 FROM tab0
----
-151
-2935
-7198

query I rowsort
SELECT col0 + - tab1.col2 + + ( - 9 ) AS col2 FROM tab1
----
-2
-25
-60

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

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

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

query I rowsort
SELECT DISTINCT - + 18 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL 22 + + col0 + col2 FROM tab2
----
126
139
56

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

query I rowsort
SELECT ALL col2 + + 77 AS col2 FROM tab1
----
131
134
173

query I rowsort
SELECT tab0.col0 - + col2 * - col2 AS col0 FROM tab0
----
1113
36
6813

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

query I rowsort
SELECT + 38 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1572
684
875

onlyif mysql # use DIV operator for integer division
query I rowsort label-102
SELECT ALL - + col0 + - col1 + col1 DIV col0 FROM tab2 AS cor0
----
-137
-34
-96

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL - + col0 + - col1 + col1 / col0 FROM tab2 AS cor0
----
-137
-34
-96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-104
SELECT - col1 DIV 36 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-104
SELECT - col1 / 36 FROM tab0 AS cor0
----
-2
-2
-2

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 + col1 col0 FROM tab0 AS cor0
----
-1
-12
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 * - col1 col2 FROM tab2 AS cor0
----
-17
-31
-59

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

query I rowsort
SELECT ALL col2 + + col0 + - col0 AS col2 FROM tab1 cor0
----
54
57
96

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

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

query I rowsort
SELECT - 1 * + col2 + col2 AS col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT + 46 + + col0 AS col2 FROM tab1
----
110
126
49

query I rowsort
SELECT - ( 58 + col2 ) FROM tab0
----
-140
-59
-91

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

query I rowsort
SELECT DISTINCT - ( - 23 ) * + col0 AS col0 FROM tab1 AS cor0
----
1472
1840
69

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

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + - CAST ( - col2 AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-121
SELECT ( + col0 ) DIV + cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-121
SELECT ( + col0 ) / + cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
102
54
63

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

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

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

query I rowsort
SELECT DISTINCT - - 21 + + col0 AS col0 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT 11 + - 33 AS col1 FROM tab0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col0 * - col0 col0 FROM tab1 AS cor0
----
12
4160
6480

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

query I rowsort
SELECT ALL col0 * ( 4 ) AS col1 FROM tab1 AS cor0
----
12
256
320

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-131
SELECT ALL + cor0.col0 DIV col0 + - cor0.col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + cor0.col0 / col0 + - cor0.col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT DISTINCT - col2 * + 46 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT ALL col2 * - cor0.col1 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-2835
-7461
-95

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL col2 * - cor0.col1 + col1 / col0 AS col0 FROM tab0 AS cor0
----
-2835
-7461
-95

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

query I rowsort
SELECT ALL col0 * + 74 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT DISTINCT - 12 - col1 * tab2.col0 FROM tab2
----
-1355
-229
-4614

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 + - 75 AS col0 FROM tab1 AS cor0
----
-1115
-153
-715

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

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

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

query I rowsort
SELECT ALL col2 * 76 FROM tab1 cor0
----
4104
4332
7296

query I rowsort
SELECT + + 88 + 1 AS col1 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT col0 + 20 AS col1 FROM tab0
----
109
44
55

query I rowsort
SELECT DISTINCT col0 + 9 FROM tab1
----
12
73
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 81 col2 FROM tab1
----
-4374
-4617
-7776

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

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

skipif mysql # not compatible
query I rowsort label-147
SELECT + - col1 / ( + col1 * col1 ) + cor0.col2 * 10 AS col0 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT ALL + 98 * - 47 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-119756
-124362
-175028

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

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

query I rowsort
SELECT - 27 + col2 FROM tab0 AS cor0
----
-26
55
6

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

skipif mysql # not compatible
query I rowsort label-151
SELECT ( col2 ) + col2 + + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
130
155
61

query I rowsort
SELECT + - col2 + - 8 * - col0 + col1 FROM tab0 cor0
----
245
376
721

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

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

query I rowsort
SELECT ALL - 20 * 56 + col0 AS col1 FROM tab0 cor0
----
-1031
-1085
-1096

query I rowsort
SELECT + cor0.col0 * col1 - + col2 * + col1 AS col2 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT + col2 + - 72 + col0 AS col1 FROM tab0 AS cor0
----
-15
-36
99

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 + col1 * - col1 AS col0 FROM tab1 cor0
----
-514
3548
7511

query I rowsort
SELECT + 27 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2106
2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 * col0 col1 FROM tab1 AS cor0
----
-162
-3456
-4320

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

query I rowsort
SELECT - 44 * - col0 * ( - col0 * col1 ) AS col2 FROM tab1 AS cor0
----
-10296
-1802240
-3660800

query I rowsort
SELECT DISTINCT cor0.col0 * + 57 AS col2 FROM tab2, tab2 AS cor0
----
399
4446
4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - 59 + - cor1.col1 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dafdf956b3c75a7ba414d7f01f53377c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 11 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

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

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

query I rowsort
SELECT DISTINCT - + cor0.col2 * + 40 * col0 FROM tab1 AS cor0
----
-145920
-307200
-6480

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-175
SELECT + col0 / + ( + col0 ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - cor0.col1 * 30 AS col1 FROM tab2 AS cor0
----
-1770
-510
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - 30 * col0 FROM tab0 AS cor0
----
-1050
-2670
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + - col0 * col0 + CAST ( col2 AS INTEGER ) * + col2 + CAST ( col1 AS REAL ) col2 FROM tab1 AS cor0
----
-837
2829
2933

query I rowsort
SELECT - + 35 AS col0 FROM tab1 AS cor0
----
-35
-35
-35

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

query I rowsort
SELECT + col0 + col2 + 27 FROM tab0 AS cor0
----
198
63
84

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

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

query I rowsort
SELECT DISTINCT - + 12 + + col0 FROM tab1 AS cor0
----
-9
52
68

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

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

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

query I rowsort
SELECT DISTINCT + - col0 + - 73 + - col0 FROM tab2 AS cor0
----
-229
-231
-87

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

query I rowsort
SELECT ALL ( 63 ) + + col2 FROM tab2 AS cor0
----
101
89
90

query I rowsort
SELECT col2 * 43 + - col1 FROM tab1 AS cor0
----
2296
2441
4115

query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab2 cor0
----
7
78
79

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

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

skipif mysql # not compatible
query I rowsort label-194
SELECT + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 79 * col1 + - col1 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-114991
-3410
-49691

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

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

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

query I rowsort
SELECT ALL col2 * 94 FROM tab0 AS cor0
----
3102
7708
94

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

query I rowsort
SELECT + + col1 + + col1 * + 55 FROM tab1 AS cor0
----
1456
560
728

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

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

query I rowsort
SELECT DISTINCT - col1 + ( col0 ) * col0 AS col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT col1 - + col0 * col0 FROM tab1 AS cor0
----
-4086
-6387
17

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

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

query I rowsort
SELECT - + col0 * col1 + - 15 * col1 FROM tab2 AS cor0
----
-1598
-5487
-682

query I rowsort
SELECT col0 + 16 + cor0.col1 AS col2 FROM tab1 cor0
----
109
45
90

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

query I rowsort
SELECT + col2 * - 10 FROM tab0
----
-10
-330
-820

query I rowsort
SELECT ALL - 29 - tab2.col1 * - cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to be28e54ae46e35364e0a575f7298da88

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

skipif mysql # not compatible
query I rowsort label-212
SELECT + + CAST ( + col2 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + ( + 87 ) + col2 AS col2 FROM tab2 AS cor0
----
113
114
125

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

query I rowsort
SELECT DISTINCT col1 * + 11 FROM tab2
----
187
341
649

query I rowsort
SELECT - ( - 37 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1998
-2109
-3552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-217
SELECT CAST( 53 AS SIGNED ) + col2 + 64 FROM tab2 AS cor0
----
143
144
155

skipif mysql # not compatible
query I rowsort label-217
SELECT CAST ( 53 AS INTEGER ) + col2 + 64 FROM tab2 AS cor0
----
143
144
155

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

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

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

query I rowsort
SELECT - 58 + col2 + - ( col1 * col1 ) FROM tab1
----
-101
-131
-680

query I rowsort
SELECT - 64 + + tab0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0a272c257356f3b1dc57ad3aeecdd5ca

query I rowsort
SELECT DISTINCT col2 + - col2 * + ( 52 + + col2 * + col1 ) AS col2 FROM tab1
----
-124704
-35397
-78570

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

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

query I rowsort
SELECT ALL - col2 + col1 * - col1 AS col1 FROM tab0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT DISTINCT 86 + - col0 DIV - tab2.col0 AS col2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT 86 + - col0 / - tab2.col0 AS col2 FROM tab2
----
87

query I rowsort
SELECT DISTINCT col2 + + col1 + ( col2 ) * - tab1.col2 AS col1 FROM tab1
----
-2836
-3182
-9107

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + ( 67 ) AS col0 FROM tab0 AS cor0
----
153
158
164

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT DISTINCT cor0.col0 DIV 37 AS col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT cor0.col0 / 37 AS col2 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT - col2 * 25 FROM tab2 AS cor0
----
-650
-675
-950

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

query I rowsort
SELECT - col2 + + 60 * 74 FROM tab0 cor0
----
4358
4407
4439

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

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

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

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2
----
34

query I rowsort
SELECT ALL + 99 - - col2 AS col2 FROM tab2
----
125
126
137

query I rowsort
SELECT DISTINCT + col0 * - col2 + - ( + 70 ) AS col2 FROM tab2 AS cor0
----
-2098
-259
-3072

query I rowsort
SELECT col1 + 21 AS col0 FROM tab0
----
107
112
118

query I rowsort
SELECT 27 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

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

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

query I rowsort
SELECT + + col2 * 78 + + col0 FROM tab2 AS cor0
----
2106
2113
3043

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

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

query I rowsort
SELECT DISTINCT - col0 + 24 * col0 + col2 FROM tab0 AS cor0
----
2129
585
806

query I rowsort
SELECT 7 * 83 + - cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ae89b8abe030766f8c48367a0c25bc5

query I rowsort
SELECT + col2 * 17 + col0 AS col2 FROM tab2 AS cor0
----
466
520
725

query I rowsort
SELECT col2 * - 79 AS col1 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT - col2 + ( - 14 * col1 ) AS col2 FROM tab0 AS cor0
----
-1237
-1356
-1359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

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

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

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

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

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

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

query I rowsort
SELECT + - 92 AS col1 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT - - 67 * ( - col1 ) + col1 AS col1 FROM tab1 AS cor0
----
-1716
-660
-858

query I rowsort
SELECT ALL - ( 46 * tab1.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 6df1ea1c026b5b3a7c4ad87aa9eaac0d

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

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

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

query I rowsort
SELECT DISTINCT - 34 * col1 FROM tab1 cor0
----
-340
-442
-884

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

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

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

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

query I rowsort
SELECT DISTINCT 59 + + col1 AS col2 FROM tab2
----
118
76
90

query I rowsort
SELECT DISTINCT col2 + - col0 * + 26 AS col0 FROM tab2 AS cor0
----
-155
-2002
-2016

query I rowsort
SELECT - - col0 - + 68 AS col0 FROM tab1 AS cor0
----
-4
-65
12

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

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

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

query I rowsort
SELECT tab2.col1 * 68 AS col1 FROM tab2
----
1156
2108
4012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 * ( tab2.col2 * + col2 ) col0 FROM tab2
----
17576
19683
54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-280
SELECT - col1 - + CAST( ( + col1 ) AS SIGNED ) * + 5 FROM tab2 cor0
----
-102
-186
-354

skipif mysql # not compatible
query I rowsort label-280
SELECT - col1 - + CAST ( ( + col1 ) AS INTEGER ) * + 5 FROM tab2 cor0
----
-102
-186
-354

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

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

query I rowsort
SELECT + 95 + col1 AS col0 FROM tab2
----
112
126
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-284
SELECT + - col0 DIV col2 + ( - col2 ) AS col1 FROM tab1 cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-284
SELECT + - col0 / col2 + ( - col2 ) AS col1 FROM tab1 cor0
----
-54
-58
-96

query I rowsort
SELECT + 49 * - col0 * - 27 + ( - col1 ) FROM tab0 AS cor0
----
117656
31666
46208

query I rowsort
SELECT DISTINCT + 51 * - col1 * col2 - - col0 AS col0 FROM tab2 AS cor0
----
-32867
-42680
-78156

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

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

query I rowsort
SELECT - 38 + cor0.col2 FROM tab2 AS cor0
----
-11
-12
0

query I rowsort
SELECT - col2 * col0 * - col2 + + col2 FROM tab2 cor0
----
114114
5130
52754

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

query I rowsort
SELECT DISTINCT - + 88 - col0 FROM tab2 AS cor0
----
-166
-167
-95

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

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

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

query I rowsort
SELECT ALL - 66 + col2 AS col0 FROM tab0 cor0
----
-33
-65
16

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

query I rowsort
SELECT ALL col1 * 82 FROM tab1 AS cor0
----
1066
2132
820

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT + col0 / - 17 col2 FROM tab0 AS cor0
----
-1
-2
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 * cor0.col2 - - col1 * col2 col0 FROM tab1 AS cor0
----
-156060
-184623
-883488

query I rowsort
SELECT + - 71 * col1 + - col2 AS col2 FROM tab2 cor0
----
-1245
-2228
-4215

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

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

query I rowsort
SELECT + ( col2 ) + cor0.col1 - - col0 FROM tab1 AS cor0
----
131
189
83

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

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + 41 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT col1 * ( + col0 ) + 54 - 68 AS col1 FROM tab1 AS cor0
----
1026
626
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 * - 89 col1 FROM tab2 AS cor0
----
2288
2376
3344

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 - + 34 col1 FROM tab1
----
-31
30
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-312
SELECT + 94 + col0 * ( + col0 ) DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
160
165
94

skipif mysql # not compatible
query I rowsort label-312
SELECT + 94 + col0 * ( + col0 ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
160
165
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * 67 col1 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT ALL 79 + + col1 FROM tab1 cor0
----
105
89
92

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

query I rowsort
SELECT DISTINCT + 43 * col1 + + col2 AS col1 FROM tab0
----
3731
3995
4172

query I rowsort
SELECT DISTINCT col2 + col0 * col2 + 51 FROM tab1
----
267
3756
7827

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + col0 col0 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT ALL + col1 * + col2 + 42 FROM tab1 AS cor0
----
1290
1446
612

query I rowsort
SELECT DISTINCT + col2 * - col0 - + col0 * ( - col2 * - 9 ) AS col0 FROM tab1 AS cor0
----
-1620
-36480
-76800

query I rowsort
SELECT + - col1 * col0 * 8 - cor0.col2 * - col2 * 61 AS col0 FROM tab1 AS cor0
----
177252
193069
553856

query I rowsort
SELECT 36 * - col0 AS col2 FROM tab1
----
-108
-2304
-2880

query I rowsort
SELECT ALL 53 + tab1.col1 FROM tab1
----
63
66
79

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

query I rowsort
SELECT DISTINCT + col2 * - 83 * - tab1.col0 AS col2 FROM tab1
----
13446
302784
637440

query I rowsort
SELECT - 68 * 7 FROM tab0 cor0
----
-476
-476
-476

query I rowsort
SELECT ALL + col0 * 39 FROM tab0
----
1365
3471
936

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL CAST ( - 86 AS INTEGER ) AS col0 FROM tab0 cor0
----
-86
-86
-86

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

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

query I rowsort
SELECT ALL - 1 * - cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 4 + + col1 AS col2 FROM tab0 AS cor0
----
101
218
419

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

skipif mysql # not compatible
query I rowsort label-342
SELECT col1 / 91 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 7 * - 30 FROM tab0 AS cor0
----
-210
-210
-210

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

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

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

query I rowsort
SELECT - - col2 + col1 + - col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col1 * - col0 * - tab2.col1 FROM tab2
----
22831
271518
6727

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

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL - CAST ( col2 AS INTEGER ) * - col2 AS col1 FROM tab1
----
2916
3249
9216

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

query I rowsort
SELECT 8 * col1 AS col1 FROM tab1
----
104
208
80

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

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

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

query I rowsort
SELECT - col2 * - 47 AS col2 FROM tab1
----
2538
2679
4512

query I rowsort
SELECT ALL 97 + 59 FROM tab0 AS cor0
----
156
156
156

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

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

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

query I rowsort
SELECT + col0 * + col1 + col2 * + cor0.col2 * - col1 + col2 FROM tab2 AS cor0
----
-22355
-23167
-35256

query I rowsort
SELECT ALL + col0 * col0 * + col0 AS col0 FROM tab2
----
343
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * col1 * + col2 col0 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT 29 + col1 + cor0.col1 AS col2 FROM tab1 cor0
----
49
55
81

query I rowsort
SELECT DISTINCT col0 * col1 AS col2 FROM tab1 WHERE ( NULL ) <> ( NULL )
----

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

query I rowsort
SELECT ALL col0 + - tab0.col0 + - col0 FROM tab0
----
-24
-35
-89

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

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

skipif mysql # not compatible
query I rowsort label-366
SELECT tab0.col0 + - col0 + col2 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT tab1.col2 * + col1 * col2 + tab1.col0 AS col1 FROM tab1
----
119888
32554
75819

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

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

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

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

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

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( col2 + - col2 * - col1 + col1 )
----

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

query I rowsort
SELECT DISTINCT + col1 + tab1.col0 * - col0 AS col1 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT col0 + - tab1.col0 * - col0 FROM tab1
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab0.col1 + col1 col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT + col0 * tab2.col0 + tab2.col2 + col2 * - tab2.col1 AS col0 FROM tab2
----
-761
4576
5633

query I rowsort
SELECT DISTINCT tab1.col0 * - col0 + col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT col0 * + col2 + + col2 * tab2.col2 AS col0 FROM tab2
----
2704
4446
918

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

query I rowsort
SELECT - tab2.col0 - + col1 * - col1 * - col2 FROM tab2
----
-11061
-25954
-90584

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 * - col0 * + col1 - col0 FROM tab0
----
-3430
-664207
-68136

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT tab1.col0 DIV col1 + col2 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-393
SELECT tab1.col0 / col1 + col2 FROM tab1
----
102
54
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-394
SELECT DISTINCT col2 - - col2 DIV - col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT col2 - - col2 / - col2 FROM tab0
----
0
32
81

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

query I rowsort
SELECT DISTINCT - 35 FROM tab0, tab1 cor0, tab1 cor1
----
-35

query I rowsort
SELECT ALL + ( 26 ) * cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 41b6b26d7cd29c488633bf055b58762b

query I rowsort
SELECT ALL cor0.col0 + - 57 * col0 AS col2 FROM tab0 AS cor0
----
-1344
-1960
-4984

query I rowsort
SELECT DISTINCT - + col0 * + 3 AS col2 FROM tab1 AS cor0
----
-192
-240
-9

query I rowsort
SELECT 76 + col1 AS col0 FROM tab0 AS cor0
----
162
167
173

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

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

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

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

query I rowsort
SELECT ALL 86 + - 7 FROM tab2, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # use DIV operator for integer division
query I rowsort label-405
SELECT - col2 DIV 39 + ( + col1 ) * col2 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-405
SELECT - col2 / 39 + ( + col1 ) * col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + col1 + + 35 AS col1 FROM tab1
----
45
48
61

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

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

query I rowsort
SELECT - col2 + 36 * + tab1.col1 - - col2 FROM tab1
----
360
468
936

query I rowsort
SELECT ALL + col1 + col2 * - col1 + + tab2.col2 AS col2 FROM tab2
----
-1449
-591
-779

query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col1 * 55 AS col1 FROM tab0
----
4763
5087
5336

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

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

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

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

query I rowsort
SELECT + + 88 * 35 * cor0.col0 FROM tab2 AS cor0
----
21560
240240
243320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT 68 + 34 * - col1 FROM tab1 AS cor0
----
-272
-374
-816

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

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

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

query I rowsort
SELECT ALL + - ( 53 ) FROM tab2 cor0
----
-53
-53
-53

query I rowsort
SELECT - 70 + col0 + + col1 FROM tab1 AS cor0
----
-41
23
4

query I rowsort
SELECT DISTINCT ( 11 ) * - col1 FROM tab1 AS cor0
----
-110
-143
-286

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

query I rowsort
SELECT DISTINCT + + col0 * col0 + + 62 + col0 AS col2 FROM tab0 AS cor0
----
1322
662
8072

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 * col0 + col0 * col0 + + col2 FROM tab0 cor0
----
-117599
-48927
-712808

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

query I rowsort
SELECT - col1 * 20 + col0 AS col1 FROM tab1 AS cor0
----
-136
-180
-517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 90 col0 FROM tab0
----
1
55
66

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

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

query I rowsort
SELECT DISTINCT + + col2 + 54 * + col2 AS col1 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT - col1 - col0 * + ( + tab0.col0 ) FROM tab0
----
-1322
-662
-8012

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * - 14 FROM tab0 AS cor0
----
-1204
-1274
-1358

query I rowsort
SELECT - 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT ALL col1 * 12 AS col0 FROM tab0 AS cor0
----
1032
1092
1164

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

query I rowsort
SELECT ALL + col2 * + 40 + - col0 AS col0 FROM tab0 AS cor0
----
1296
3191
5

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

query I rowsort
SELECT - + col2 * - col2 + - cor0.col1 * col0 * col0 AS col0 FROM tab0 AS cor0
----
-118824
-48447
-714087

query I rowsort
SELECT - + 98 - + col1 * col2 FROM tab1 AS cor0
----
-1346
-1502
-668

query I rowsort
SELECT + - 32 + + 63 AS col2 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT - 43 + + 7 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - 28 - 45 FROM tab0 AS cor0
----
-73
-73
-73

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

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT CAST ( - 49 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
-49

query I rowsort
SELECT - 54 + + col0 AS col1 FROM tab0 AS cor0
----
-19
-30
35

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

query I rowsort
SELECT + col2 * - col2 + + col0 + - 94 * + col1 FROM tab2 AS cor0
----
-2963
-3636
-6144

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

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - - 6 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 81 * + cor0.col2 + 99 FROM tab0 AS cor0
----
180
2772
6741

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

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

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

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

query I rowsort
SELECT - + col2 * + col0 + - col1 * 10 AS col2 FROM tab2 cor0
----
-2618
-3172
-499

onlyif mysql # use DIV operator for integer division
query I rowsort label-457
SELECT col0 * + cor0.col2 * + col0 + col1 * + col2 DIV col2 FROM tab1 AS cor0
----
233482
512
614413

skipif mysql # not compatible
query I rowsort label-457
SELECT col0 * + cor0.col2 * + col0 + col1 * + col2 / col2 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT ALL + 1 FROM tab0, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - + ( col2 ) * + 61 AS col1 FROM tab2 AS cor0
----
-1586
-1647
-2318

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT ALL col1 + + col1 * 61 DIV col0 FROM tab0 AS cor0
----
153
266
304

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL col1 + + col1 * 61 / col0 FROM tab0 AS cor0
----
153
266
304

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

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + + 64 FROM tab1 AS cor0
----
1104
142
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-465
SELECT col2 * col0 DIV - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-465
SELECT col2 * col0 / - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT ALL col1 + col1 DIV + col1 + + col1 AS col0 FROM tab1
----
21
27
53

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL col1 + col1 / + col1 + + col1 AS col0 FROM tab1
----
21
27
53

query I rowsort
SELECT + col1 * col1 * + ( ( - col0 ) ) + + 51 FROM tab2
----
-22780
-271467
-6676

query I rowsort
SELECT + 85 * col1 + col2 * 25 AS col1 FROM tab1 AS cor0
----
2275
3505
3560

query I rowsort
SELECT 53 * - col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

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

query I rowsort
SELECT ALL 11 FROM tab0, tab0 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - 17 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * col1 + col2 - col1 col0 FROM tab1 cor0
----
-1165
-1376
-523

query I rowsort
SELECT col1 - + 5 FROM tab2 AS cor0
----
12
26
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT DISTINCT - 67 * tab0.col1 DIV + 20 FROM tab0, tab1 AS cor0
----
-288
-304
-324

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT - 67 * tab0.col1 / + 20 FROM tab0, tab1 AS cor0
----
-288
-304
-324

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

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

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

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

query I rowsort
SELECT ALL - 67 * col1 + + col1 FROM tab1
----
-1716
-660
-858

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 * ( 22 ) FROM tab2 cor0
----
4158
44616
66044

query I rowsort
SELECT + col2 + col1 - - col0 * cor0.col1 FROM tab1 cor0
----
1149
158
707

query I rowsort
SELECT DISTINCT + - 34 + col2 AS col2 FROM tab0 cor0
----
-1
-33
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-486
SELECT DISTINCT - col0 * col1 DIV - ( - col1 ) col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT - col0 * col1 / - ( - col1 ) col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
24
8

query I rowsort
SELECT DISTINCT col1 * col2 * 42 + - 53 AS col0 FROM tab0 cor0
----
119143
313351
4021

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-492
SELECT DISTINCT - 22 * col2 DIV - col0 FROM tab0 AS cor0
----
0
20
30

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT - 22 * col2 / - col0 FROM tab0 AS cor0
----
0
20
30

query I rowsort
SELECT ALL + 44 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1147
504
652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 93 col0 FROM tab0
----
179
184
190

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

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

query I rowsort
SELECT + + col0 * + ( + 21 ) FROM tab0 AS cor0
----
1869
504
735

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

query I rowsort
SELECT DISTINCT ( 63 ) * - col1 + 51 FROM tab0 AS cor0
----
-5367
-5682
-6060

query I rowsort
SELECT ALL - - col1 - 15 FROM tab2 AS cor0
----
16
2
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT ALL cor0.col0 + col2 * + 44 + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1196
1223
1752

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL cor0.col0 + col2 * + 44 + col0 / + col0 AS col0 FROM tab2 AS cor0
----
1196
1223
1752

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

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

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

query I rowsort
SELECT + + cor0.col1 + 77 FROM tab2 AS cor0
----
108
136
94

query I rowsort
SELECT DISTINCT + - col1 + + 0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col2 * - 2 + 86 * col0 FROM tab2 AS cor0
----
656
6760
6870

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

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

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

query I rowsort
SELECT DISTINCT tab1.col1 + col0 - 30 * - col1 FROM tab1
----
374
483
809

query I rowsort
SELECT - - 70 FROM tab0 cor0
----
70
70
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-512
SELECT + col1 * col0 DIV 49 FROM tab2
----
27
4
93

skipif mysql # not compatible
query I rowsort label-512
SELECT + col1 * col0 / 49 FROM tab2
----
27
4
93

query I rowsort
SELECT col2 + ( - 10 ) FROM tab1
----
44
47
86

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab1 WHERE col1 * col0 + col2 + col0 * col1 <= ( NULL )
----

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

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

query I rowsort
SELECT col1 + + tab2.col2 - - col1 FROM tab2
----
144
72
89

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

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

query I rowsort
SELECT tab0.col0 + col2 * + col2 AS col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT DISTINCT col0 * - col2 * - 67 AS col1 FROM tab2 AS cor0
----
12663
135876
201134

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

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

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

query I rowsort
SELECT DISTINCT 11 * - tab1.col0 * col2 AS col1 FROM tab1
----
-1782
-40128
-84480

query I rowsort
SELECT DISTINCT - + 63 * + col0 + - 72 FROM tab1 AS cor0
----
-261
-4104
-5112

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

query I rowsort
SELECT ALL + 88 * - col2 + - 7 AS col0 FROM tab2 cor0
----
-2295
-2383
-3351

query I rowsort
SELECT ALL 51 FROM tab0, tab2 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

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

query I rowsort
SELECT 17 + cor0.col1 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to bef5b58123c69f3b241cd6de00d4ca20

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

query I rowsort
SELECT - ( - 90 ) * - col1 + - cor0.col2 * - col0 * col2 AS col2 FROM tab2 cor0
----
112546
2313
47418

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

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

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

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL - CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - ( 89 ) + - col1 * col2 FROM tab1 cor0
----
-1337
-1493
-659

query I rowsort
SELECT ALL ( col1 ) - + col0 * + col0 FROM tab0 AS cor0
----
-1128
-490
-7830

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

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

query I rowsort
SELECT DISTINCT col2 + - ( col0 + col1 ) AS col0 FROM tab0 cor0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT 16 * col1 + col0 - - ( + col2 ) FROM tab2 AS cor0
----
1048
389
530

query I rowsort
SELECT + - col0 + + col0 * ( col1 ) FROM tab2 cor0
----
1264
210
4524

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

query I rowsort
SELECT ALL + 10 * + col0 + + 87 FROM tab0 cor0
----
327
437
977

onlyif mysql # use DIV operator for integer division
query I rowsort label-546
SELECT ALL + col1 - - col2 DIV + 91 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + col1 - - col2 / + 91 FROM tab0 AS cor0
----
86
91
97

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

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

query I rowsort
SELECT ( + tab2.col1 ) * + col0 + - 24 FROM tab2
----
1319
193
4578

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

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

query I rowsort
SELECT DISTINCT 29 * + cor0.col1 FROM tab0, tab1 AS cor0
----
290
377
754

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

skipif mysql # not compatible
query I rowsort label-552
SELECT - + CAST ( - col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col2 * 28 AS col1 FROM tab1
----
-1512
-1596
-2688

onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT - 94 DIV col0 + + col1 FROM tab2 AS cor0
----
16
18
58

skipif mysql # not compatible
query I rowsort label-554
SELECT - 94 / col0 + + col1 FROM tab2 AS cor0
----
16
18
58

query I rowsort
SELECT col1 + - 32 * - col2 * - 89 AS col2 FROM tab1 AS cor0
----
-153766
-162326
-273395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 - col1 col1 FROM tab1 AS cor0
----
36
49
52

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

query I rowsort
SELECT ALL - 56 * ( + cor0.col1 + 70 ) FROM tab2 AS cor0
----
-4872
-5656
-7224

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

query I rowsort
SELECT ALL + 3 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 + 47 FROM tab1 AS cor0
----
-1201
-1357
-523

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

query I rowsort
SELECT DISTINCT col0 + + 24 AS col0 FROM tab1 AS cor0
----
104
27
88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - 58 * + col0 col0 FROM tab0 cor0
----
-119712
-196910
-469742

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

query I rowsort
SELECT - - 79 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col1 * + cor0.col2 * - cor0.col0 col1 FROM tab1 AS cor0
----
-36490
-4238
-99853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab1.col1 * - 12 ) col1 FROM tab1
----
-120
-156
-312

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

query I rowsort
SELECT ALL cor0.col1 + + 98 AS col2 FROM tab2 AS cor0
----
115
129
157

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

query I rowsort
SELECT ALL + 17 * - col1 AS col1 FROM tab0
----
-1462
-1547
-1649

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

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

query I rowsort
SELECT DISTINCT col0 - 12 AS col0 FROM tab1 AS cor0
----
-9
52
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col2 + + col2 col2 FROM tab0 AS cor0
----
1122
2
6806

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

query I rowsort
SELECT DISTINCT + 57 - + col0 FROM tab1 AS cor0
----
-23
-7
54

query I rowsort
SELECT - 63 * + col0 + col0 + + col0 AS col0 FROM tab2 AS cor0
----
-427
-4758
-4819

query I rowsort
SELECT - 96 * + col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT ALL 14 FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * - col2 col1 FROM tab1
----
-1836
-1938
-3264

query I rowsort
SELECT 79 + + tab2.col0 FROM tab2
----
157
158
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-584
SELECT DISTINCT - col2 + 8 DIV col2 FROM tab0
----
-33
-82
7

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - col2 + 8 / col2 FROM tab0
----
-33
-82
7

query I rowsort
SELECT ALL - col2 * - col0 * + col0 AS col0 FROM tab2
----
1323
158184
237158

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

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

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

query I rowsort
SELECT + 74 * col0 FROM tab0 AS cor0
----
1776
2590
6586

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

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT + tab1.col2 / 71 AS col2 FROM tab1
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-591
SELECT + col2 * + col1 + col2 DIV + tab1.col1 FROM tab1
----
1255
1406
575

skipif mysql # not compatible
query I rowsort label-591
SELECT + col2 * + col1 + col2 / + tab1.col1 FROM tab1
----
1255
1406
575

query I rowsort
SELECT + ( 48 ) * col0 AS col0 FROM tab0 AS cor0
----
1152
1680
4272

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

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

query I rowsort
SELECT - - col1 + 73 AS col2 FROM tab1 AS cor0
----
83
86
99

query I rowsort
SELECT DISTINCT - 29 + col1 AS col0 FROM tab2 AS cor0
----
-12
2
30

query I rowsort
SELECT ALL + - col1 * - col1 + + 60 + 7 FROM tab1 AS cor0
----
167
236
743

query I rowsort
SELECT DISTINCT + + 40 + - col0 FROM tab1 cor0
----
-24
-40
37

query I rowsort
SELECT DISTINCT - + 31 * col1 * + col1 FROM tab2 AS cor0
----
-107911
-29791
-8959

query I rowsort
SELECT ALL + col0 * + col0 + col1 FROM tab1 AS cor0
----
35
4106
6413

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-602
SELECT + col0 * col0 * col2 + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
1327
158184
237158

skipif mysql # not compatible
query I rowsort label-602
SELECT + col0 * col0 * col2 + col1 / col0 AS col0 FROM tab2 AS cor0
----
1327
158184
237158

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

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

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

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

query I rowsort
SELECT ALL + col0 + 32 * - 30 FROM tab0 AS cor0
----
-871
-925
-936

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

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

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT - - col2 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT - + col2 DIV + col1 + cor0.col1 * col1 FROM tab1 AS cor0
----
162
674
95

skipif mysql # not compatible
query I rowsort label-610
SELECT - + col2 / + col1 + cor0.col1 * col1 FROM tab1 AS cor0
----
162
674
95

query I rowsort
SELECT - col0 + - 49 FROM tab0 cor0
----
-138
-73
-84

query I rowsort
SELECT - + col1 * 1 + 65 AS col2 FROM tab1 AS cor0
----
39
52
55

query I rowsort
SELECT + 39 + col1 FROM tab1
----
49
52
65

query I rowsort
SELECT ALL - ( + tab0.col0 ) * + col2 - 61 AS col0 FROM tab0
----
-7359
-853
-96

query I rowsort
SELECT DISTINCT + 52 - + col0 * - col2 AS col0 FROM tab1
----
214
3700
7732

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

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

query I rowsort
SELECT DISTINCT + - col0 - - col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - + col0 + 4 FROM tab1 AS cor0
----
-60
-76
1

query I rowsort
SELECT DISTINCT col1 + - 86 AS col2 FROM tab0 AS cor0
----
0
11
5

query I rowsort
SELECT ALL col0 + + 8 FROM tab0
----
32
43
97

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

query I rowsort
SELECT DISTINCT - col2 + + 70 * + tab1.col0 FROM tab1
----
156
4423
5504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 22 * col0 col0 FROM tab2 AS cor0
----
127
1690
1700

onlyif mysql # use DIV operator for integer division
query I rowsort label-624
SELECT + ( 28 ) + - col0 DIV - col1 FROM tab2 AS cor0
----
28
29
32

skipif mysql # not compatible
query I rowsort label-624
SELECT + ( 28 ) + - col0 / - col1 FROM tab2 AS cor0
----
28
29
32

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

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

query I rowsort
SELECT ( 21 ) + + col2 * + ( - col1 ) FROM tab2 AS cor0
----
-1513
-625
-816

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

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

query I rowsort
SELECT - 75 * 28 AS col2 FROM tab0 cor0
----
-2100
-2100
-2100

onlyif mysql # use DIV operator for integer division
query I rowsort label-629
SELECT DISTINCT col2 * col1 + 27 DIV - col0 col2 FROM tab2
----
1534
646
834

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT col2 * col1 + 27 / - col0 col2 FROM tab2
----
1534
646
834

query I rowsort
SELECT ( - 51 ) FROM tab0
----
-51
-51
-51

query I rowsort
SELECT + ( - 27 ) + cor0.col2 + + col2 FROM tab0 AS cor0
----
-25
137
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-632
SELECT ( col2 ) DIV 48 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-632
SELECT ( col2 ) / 48 AS col1 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-633
SELECT DISTINCT + CAST( 53 AS SIGNED ) * + cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
4558
4823
5141

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT + CAST ( 53 AS INTEGER ) * + cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
4558
4823
5141

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-635
SELECT DISTINCT 80 * - col0 DIV + col0 + + ( col1 ) * + col2 AS col0 FROM tab1
----
1168
1324
490

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT 80 * - col0 / + col0 + + ( col1 ) * + col2 AS col0 FROM tab1
----
1168
1324
490

query I rowsort
SELECT DISTINCT - col1 + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT DISTINCT + col0 + - col1 * - 88 AS col2 FROM tab2 AS cor0
----
1575
2735
5270

query I rowsort
SELECT - col1 * + 2 + col1 * + cor0.col0 FROM tab2 AS cor0
----
1309
155
4484

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

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

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

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

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

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

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

query I rowsort
SELECT - 58 * - tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 539babcdb4cdf7445a2706d8b843e193

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

query I rowsort
SELECT 29 * col0 AS col2 FROM tab2 AS cor0
----
203
2262
2291

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

query I rowsort
SELECT ALL - - col1 + - col1 * - 57 FROM tab1 cor0
----
1508
580
754

query I rowsort
SELECT - 43 + + col2 FROM tab0 cor0
----
-10
-42
39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col2 FROM tab1 AS cor0
----
4096
6400
9

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

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

query I rowsort
SELECT + 73 + col2 FROM tab1 cor0
----
127
130
169

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

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

query I rowsort
SELECT + + col1 * + col1 + 62 FROM tab1 AS cor0
----
162
231
738

query I rowsort
SELECT - + col2 + 22 AS col1 FROM tab1 AS cor0
----
-32
-35
-74

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-659
SELECT + CAST( + 78 AS SIGNED ) DIV - col0 FROM tab2 AS cor0
----
-1
-11
0

skipif mysql # not compatible
query I rowsort label-659
SELECT + CAST ( + 78 AS INTEGER ) / - col0 FROM tab2 AS cor0
----
-1
-11
0

query I rowsort
SELECT 6 * 6 AS col2 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT - - col1 * - 71 + col1 FROM tab2 AS cor0
----
-1190
-2170
-4130

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

query I rowsort
SELECT + col0 * + 11 FROM tab0
----
264
385
979

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

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT CAST ( + 36 AS INTEGER ) FROM tab2 cor0
----
36

query I rowsort
SELECT + col2 + col1 + cor0.col2 FROM tab1 AS cor0
----
124
134
205

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

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

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

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

query I rowsort
SELECT DISTINCT + cor1.col1 + 76 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
107
135
93

query I rowsort
SELECT 4 * 32 FROM tab1 AS cor0
----
128
128
128

query I rowsort
SELECT DISTINCT + col1 + - col0 * col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT - 22 + + col1 AS col1 FROM tab2
----
-5
37
9

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

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

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

query I rowsort
SELECT + - 71 + - 33 AS col2 FROM tab0 AS cor0
----
-104
-104
-104

query I rowsort
SELECT ALL col2 * cor0.col2 + col0 * - col1 FROM tab2 AS cor0
----
-3926
101
512

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

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

query I rowsort
SELECT DISTINCT + - 70 - - col0 FROM tab1 AS cor0
----
-6
-67
10

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

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

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

query I rowsort
SELECT + 64 + col2 * - ( col1 + + col0 ) AS col0 FROM tab2 cor0
----
-3498
-3584
-962

query I rowsort
SELECT ALL col0 * cor0.col1 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + col1 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-684
SELECT ALL + - col1 * col1 + col2 - 27 * col1 DIV - col2 FROM tab1 cor0
----
-39
-609
-70

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + - col1 * col1 + col2 - 27 * col1 / - col2 FROM tab1 cor0
----
-39
-609
-70

query I rowsort
SELECT DISTINCT - 55 + tab2.col2 AS col0 FROM tab2
----
-17
-28
-29

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

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

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

query I rowsort
SELECT - col2 + + 23 * + col0 AS col0 FROM tab1
----
1415
15
1744

query I rowsort
SELECT col0 * + 39 + col1 AS col1 FROM tab0
----
1022
1462
3562

query I rowsort
SELECT 74 - 12 AS col0 FROM tab1
----
62
62
62

query I rowsort
SELECT ALL cor0.col0 * 96 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT ALL + col2 * col0 + - col0 - + cor0.col0 FROM tab0 AS cor0
----
-35
7120
744

query I rowsort
SELECT + col0 * - cor0.col2 * + 21 + - col0 AS col2 FROM tab2 AS cor0
----
-3976
-42666
-63121

query I rowsort
SELECT DISTINCT - cor0.col2 + 19 AS col0 FROM tab0 cor0
----
-14
-63
18

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * - ( - 0 ) + cor0.col0 * - CAST ( - col0 * col1 AS REAL ) FROM tab2 cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col0 * - col1 + col2 * - 95 col1 FROM tab2 AS cor0
----
-26441
-273988
-9292

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

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

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

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

query I rowsort
SELECT + + col0 * ( + 54 ) FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT ALL + - col0 - 69 AS col1 FROM tab0 AS cor0
----
-104
-158
-93

query I rowsort
SELECT - - col1 - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 * - ( 97 ) AS col2 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT ALL + - 53 * col1 * col1 FROM tab1 AS cor0
----
-35828
-5300
-8957

query I rowsort
SELECT col1 * col1 + col2 * + col0 FROM tab2 AS cor0
----
1150
3291
5509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col0 * col2 col0 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT DISTINCT + 81 + + col2 * col2 * + col0 AS col0 FROM tab0
----
116
26217
598517

query I rowsort
SELECT DISTINCT col2 + col0 + - col1 * + col1 AS col0 FROM tab1
----
-619
21
7

query I rowsort
SELECT + 58 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

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

query I rowsort
SELECT ALL + col2 * - col2 + + col1 * - cor0.col0 + col1 * + col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL 49 * - col2 + - ( 87 * col1 ) FROM tab1 cor0
----
-3663
-4908
-5835

query I rowsort
SELECT ( 49 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT - col0 * 51 AS col2 FROM tab2 AS cor0
----
-357
-3978
-4029

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

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

query I rowsort
SELECT ALL - 0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

query I rowsort
SELECT DISTINCT col1 * + 47 AS col0 FROM tab1 AS cor0
----
1222
470
611

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 24 ) + + cor0.col2 col0 FROM tab1 cor0
----
120
78
81

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

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

query I rowsort
SELECT 81 * 2 + cor0.col2 * - ( 88 + - col0 ) FROM tab1 AS cor0
----
-1206
-4428
-606

query I rowsort
SELECT + ( 67 ) * + col1 AS col2 FROM tab0 cor0
----
5762
6097
6499

query I rowsort
SELECT ALL 51 * + col2 - cor0.col1 FROM tab1 AS cor0
----
2728
2897
4883

query I rowsort
SELECT ALL 45 * - col1 * - col0 + - col1 FROM tab1 AS cor0
----
28790
3484
46787

query I rowsort
SELECT ALL + 81 * + col0 + col1 * ( 22 ) FROM tab0 AS cor0
----
3836
4969
9211

query I rowsort
SELECT DISTINCT - - 17 - - col1 AS col0 FROM tab0 AS cor0
----
103
108
114

query I rowsort
SELECT + cor0.col2 - + 99 FROM tab0 cor0
----
-17
-66
-98

query I rowsort
SELECT + - 6 * + col1 + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-147
4036
6322

query I rowsort
SELECT DISTINCT - 24 + ( col0 ) AS col0 FROM tab2 cor0
----
-17
54
55

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

query I rowsort
SELECT DISTINCT - + col1 + - 25 * col0 FROM tab1 AS cor0
----
-101
-1610
-2013

query I rowsort
SELECT + 79 + col2 AS col2 FROM tab0 AS cor0
----
112
161
80

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

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col2 * ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
193
2891
7471

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

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

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

query I rowsort
SELECT DISTINCT 88 + col1 * + ( + 29 ) FROM tab0 AS cor0
----
2582
2727
2901

query I rowsort
SELECT ALL + 94 * col0 - - col2 * - 90 FROM tab0 AS cor0
----
-714
3200
986

query I rowsort
SELECT + - col0 * - col0 + col1 * cor0.col0 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT 81 - - col2 * col1 FROM tab2 AS cor0
----
1615
727
918

query I rowsort
SELECT - cor0.col1 * col2 + 19 AS col1 FROM tab0 cor0
----
-2819
-7443
-78

query I rowsort
SELECT DISTINCT + col2 * - 65 + col1 FROM tab2
----
-1631
-1724
-2453

onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT DISTINCT - col2 DIV 27 + col2 * + 3 FROM tab0
----
243
3
98

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT - col2 / 27 + col2 * + 3 FROM tab0
----
243
3
98

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

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

query I rowsort
SELECT 41 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

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

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

query I rowsort
SELECT ( - cor0.col1 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + col1 col2 FROM tab2 AS cor0
----
1488
2832
816

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

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

query I rowsort
SELECT tab2.col1 * - 46 + - col1 FROM tab2
----
-1457
-2773
-799

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 82 + col1 ) col1 FROM tab2
----
113
141
99

query I rowsort
SELECT 35 + + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a12d43158e0e29425ebbc4ac7df7ce22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-761
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * - col0 col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * - col0 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col2 * + 88 FROM tab0 cor0
----
-2904
-7216
-88

query I rowsort
SELECT ALL ( 24 ) + col1 * col2 * col2 AS col1 FROM tab2 AS cor0
----
22623
24572
39908

query I rowsort
SELECT - 34 * col2 * + col0 FROM tab2 AS cor0
----
-102068
-6426
-68952

query I rowsort
SELECT DISTINCT - ( 8 ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT 1 * col1 AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - - 68 * col2 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
14208
3834
7524

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab1 AS cor0
----
4096
6400
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + ( col0 ) * col0 col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT 53 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
1014
342
3534

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 * + 77 FROM tab1 cor0
----
1001
2002
770

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

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

query I rowsort
SELECT col1 * - 23 FROM tab0 AS cor0
----
-1978
-2093
-2231

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

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

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

query I rowsort
SELECT DISTINCT - 30 * col2 - - col2 * - col2 FROM tab1 AS cor0
----
-12096
-4536
-4959

query I rowsort
SELECT ( 38 ) - - col2 AS col0 FROM tab0
----
120
39
71

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

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

query I rowsort
SELECT - col2 + ( col2 ) * col2 FROM tab1 AS cor0
----
2862
3192
9120

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-786
SELECT + col1 DIV col2 - - col1 * col2 AS col2 FROM tab0
----
194
2840
7463

skipif mysql # not compatible
query I rowsort label-786
SELECT + col1 / col2 - - col1 * col2 AS col2 FROM tab0
----
194
2840
7463

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-788
SELECT + col2 DIV col0 - - col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-788
SELECT + col2 / col0 - - col0 FROM tab0 AS cor0
----
25
35
89

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

skipif mysql # not compatible
query I rowsort label-789
SELECT + - col1 + - ( - col0 ) / + col0 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT col1 + 20 AS col1 FROM tab0
----
106
111
117

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

query I rowsort
SELECT ALL 78 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

query I rowsort
SELECT - + col1 * - 41 + - col1 AS col2 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT DISTINCT + + cor0.col1 + - 32 AS col2 FROM tab2 AS cor0
----
-1
-15
27

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

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

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

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - 95 * 10 FROM tab0 AS cor0
----
-950
-950
-950

query I rowsort
SELECT DISTINCT + + 41 * - 4 AS col2 FROM tab0 cor0
----
-164

query I rowsort
SELECT - 45 + col2 AS col0 FROM tab2 AS cor0
----
-18
-19
-7

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

query I rowsort
SELECT - 81 * + col1 + + col0 * + 27 * col0 + col2 FROM tab1 AS cor0
----
-1809
109839
171843

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
-7
-78
-79

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

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT col0 + col0 DIV col1 col2 FROM tab1 AS cor0
----
3
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT col0 + col0 / col1 col2 FROM tab1 AS cor0
----
3
70
86

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + ( - 59 ) col2 FROM tab1 AS cor0
----
-33
-46
-49

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

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

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + col2 / ( - col2 + - cor0.col0 ) FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-813
SELECT DISTINCT + col0 * col1 + col0 DIV - col1 FROM tab1 AS cor0
----
1034
634
78

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT + col0 * col1 + col0 / - col1 FROM tab1 AS cor0
----
1034
634
78

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-815
SELECT + col1 * CAST( NULL AS SIGNED ) 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-815
SELECT + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - 36 / + col2 AS col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-818
SELECT ALL 75 * col2 DIV - col0 AS col2 FROM tab2
----
-25
-289
-36

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL 75 * col2 / - col0 AS col2 FROM tab2
----
-25
-289
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( col0 ) + + col2 col2 FROM tab1 AS cor0
----
-108
-3591
-7584

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * + col0 - + col1 col0 FROM tab2 AS cor0
----
-542
-5753
-5784

query I rowsort
SELECT + col1 * col2 * + col2 + col1 * + col2 - col1 FROM tab0
----
619255
96406
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT DISTINCT + tab2.col2 * col0 DIV col0 + col2 + col1 AS col2 FROM tab2
----
111
85
93

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + tab2.col2 * col0 / col0 + col2 + col1 AS col2 FROM tab2
----
111
85
93

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT + col0 - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-828
SELECT + col0 - col2 / col2 AS col1 FROM tab0 AS cor0
----
23
34
88

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

query I rowsort
SELECT ALL 76 + + cor0.col0 * + 51 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 83c64011cef2087e12b01eab3896427f

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-831
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + + col1 + - 97 col0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT 25 + - col1 FROM tab0
----
-61
-66
-72

query I rowsort
SELECT - col2 + col2 * 37 FROM tab0 AS cor0
----
1188
2952
36

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

query I rowsort
SELECT ALL 61 AS col2 FROM tab0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * + col1 col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT ALL + col0 * + col1 + col2 * - tab1.col2 FROM tab1
----
-2609
-2838
-8176

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

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

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - col2 + + col1 / col2 FROM tab1
----
-54
-57
-96

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

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

query I rowsort
SELECT DISTINCT col1 + col2 * - col0 FROM tab0 WHERE + col1 * + col0 <> col2
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT col1 + - col2 DIV + col0 AS col1 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-844
SELECT col1 + - col2 / + col0 AS col1 FROM tab1
----
10
12
8

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 96 * 82 * + col0 FROM tab1
----
23616
503808
629760

query I rowsort
SELECT DISTINCT ( + tab1.col0 ) FROM tab1, tab2, tab2 AS cor0
----
3
64
80

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

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

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

query I rowsort
SELECT 92 - - col2 FROM tab0 AS cor0
----
125
174
93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 * tab2.col1 ) - col2 col2 FROM tab2
----
-1560
-684
-864

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

skipif mysql # not compatible
query I rowsort label-858
SELECT + - col1 + - col2 / - ( col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 + - col2 * + 67 FROM tab0 cor0
----
-2125
-5403
30

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * + 15 FROM tab0 AS cor0
----
118815
18375
8640

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

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + col0 * - 79 AS col0 FROM tab2 AS cor0
----
-553
-6162
-6241

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT - col1 DIV + col0 + + 83 AS col2 FROM tab1 AS cor0
----
75
83
83

skipif mysql # not compatible
query I rowsort label-865
SELECT - col1 / + col0 + + 83 AS col2 FROM tab1 AS cor0
----
75
83
83

query I rowsort
SELECT - - col1 + 83 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT col0 * - 70 * col0 + col2 FROM tab2 AS cor0
----
-3403
-425854
-436832

query I rowsort
SELECT ( 15 ) AS col0 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT 66 * - cor0.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 13fd559b80d38b5466f414e70b7a2b4f

query I rowsort
SELECT DISTINCT - col2 * ( + 27 ) * + col0 AS col2 FROM tab2
----
-5103
-54756
-81054

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

query I rowsort
SELECT + - col2 - cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + col0 * + col2 * col1 + col1 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT col0 * - col2 + - 81 AS col1 FROM tab2 AS cor0
----
-2109
-270
-3083

onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT ALL + col2 DIV + col0 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL + col2 / + col0 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT + cor0.col0 + + col0 * + 75 AS col0 FROM tab1 AS cor0
----
228
4864
6080

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

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

query I rowsort
SELECT ALL - + cor0.col0 * col0 + ( + cor0.col2 ) + col0 * ( 66 ) AS col0 FROM tab1 AS cor0
----
-1024
185
243

query I rowsort
SELECT ALL col2 + - col1 - + 61 AS col2 FROM tab1 AS cor0
----
-14
-33
22

query I rowsort
SELECT + - 92 * - col2 + 43 AS col2 FROM tab1 AS cor0
----
5011
5287
8875

query I rowsort
SELECT + col1 + col2 * 14 * col0 AS col2 FROM tab2 AS cor0
----
2677
28451
42045

query I rowsort
SELECT col0 + + 87 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
2112
3080
7832

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

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

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

query I rowsort
SELECT ALL 71 * 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 386761521f507cb3956bfeea9eb52a42

query I rowsort
SELECT ALL cor0.col0 * 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05bb4f6e4320cc780703f038f9a1e57a

query I rowsort
SELECT - 80 * + col2 AS col2 FROM tab1 AS cor0
----
-4320
-4560
-7680

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

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

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

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

query I rowsort
SELECT + 69 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

query I rowsort
SELECT DISTINCT - 33 * cor0.col1 * + 34 - - col1 * - col2 FROM tab2 AS cor0
----
-19720
-35619
-67732

query I rowsort
SELECT col0 + - col0 + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL 31 - - 38 AS col0 FROM tab0
----
69
69
69

query I rowsort
SELECT DISTINCT 40 * col0 * + col1 AS col1 FROM tab0
----
135800
323960
82560

query I rowsort
SELECT col1 + + col0 * col1 - - col2 AS col2 FROM tab0 AS cor0
----
2183
3493
8272

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

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
71

query I rowsort
SELECT + col1 + + col2 * + 3 + 15 AS col0 FROM tab2
----
127
146
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-901
SELECT col1 * col1 DIV col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-901
SELECT col1 * col1 / col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - cor0.col2 ) col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 42 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
-1271
-2419
-697

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

query I rowsort
SELECT ALL - cor0.col0 * 27 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 30daa29f4cd03eb157c2346a198a49f9

query I rowsort
SELECT ALL - 88 * + col1 FROM tab1 cor0
----
-1144
-2288
-880

query I rowsort
SELECT DISTINCT col1 * + 14 FROM tab1
----
140
182
364

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-909
SELECT col1 DIV + 88 - col0 AS col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-909
SELECT col1 / + 88 - col0 AS col0 FROM tab2
----
-7
-78
-79

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

query I rowsort
SELECT DISTINCT + - 87 * - col1 FROM tab2 AS cor0
----
1479
2697
5133

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

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

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

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

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

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

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

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

query I rowsort
SELECT col1 + ( 89 ) AS col1 FROM tab1 AS cor0
----
102
115
99

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

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

query I rowsort
SELECT + - 26 * + 15 - col0 FROM tab1 AS cor0
----
-393
-454
-470

query I rowsort
SELECT DISTINCT - col2 + + tab0.col2 + + col0 * tab0.col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ( + 25 ) * - cor0.col0 * - ( 70 * - col1 ) - - col1 FROM tab0 AS cor0
----
-14173159
-3611914
-5941153

query I rowsort
SELECT - + ( 61 ) * - col1 + + col2 AS col2 FROM tab1 AS cor0
----
1640
667
889

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

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

query I rowsort
SELECT 92 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

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

query I rowsort
SELECT ALL 44 + col0 AS col0 FROM tab0 AS cor0
----
133
68
79

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

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

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL - ( + col1 ) / ( ( col1 ) * - ( col0 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 85 + - col0 * + col0 FROM tab0 cor0
----
-1310
-661
-8006

query I rowsort
SELECT col2 * - tab1.col2 * + col0 + 67 AS col0 FROM tab1
----
-207869
-737213
-8681

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

query I rowsort
SELECT DISTINCT + 66 + col0 * + col0 AS col1 FROM tab2
----
115
6150
6307

query I rowsort
SELECT ALL 33 + tab0.col2 AS col1 FROM tab0
----
115
34
66

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

query I rowsort
SELECT ALL + cor0.col2 - col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + + 63 AS col2 FROM tab1 AS cor0
----
63
63
63

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

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + + col1 + + col0 / + 69 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT - 42 AS col2 FROM tab0
----
-42
-42
-42

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

query I rowsort
SELECT cor0.col0 * + 83 AS col1 FROM tab0 AS cor0
----
1992
2905
7387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-942
SELECT + col0 * + CAST( - 89 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-623
-6942
-7031

skipif mysql # not compatible
query I rowsort label-942
SELECT + col0 * + CAST ( - 89 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-623
-6942
-7031

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

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

query I rowsort
SELECT DISTINCT - 37 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-370
-481
-962

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

query I rowsort
SELECT ALL + col1 * + 3 + cor0.col0 * + 39 FROM tab1 cor0
----
195
2526
3159

query I rowsort
SELECT DISTINCT - + col1 + 91 AS col1 FROM tab0 AS cor0
----
-6
0
5

query I rowsort
SELECT ALL - 33 + + 86 FROM tab2 cor0
----
53
53
53

query I rowsort
SELECT + ( + col2 ) + col0 * col0 + col1 FROM tab2 AS cor0
----
107
6169
6296

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

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT + + col1 * - col1 + - CAST ( col1 * col1 + + ( - col0 ) AS INTEGER ) FROM tab1 cor0
----
-1349
-136
-258

query I rowsort
SELECT ( col0 ) + + ( + col2 ) + + cor0.col1 AS col1 FROM tab2 cor0
----
134
163
65

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

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

query I rowsort
SELECT ALL col0 * - 62 + - 53 - col1 FROM tab0
----
-1627
-2320
-5662

query I rowsort
SELECT DISTINCT + cor0.col1 * + 84 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT ALL + 6 * 21 + col1 FROM tab0 cor0
----
212
217
223

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 40 col2 FROM tab2
----
13
14
2

query I rowsort
SELECT DISTINCT cor0.col2 + tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
9 values hashing to 8d15ca9b890db6bb93b9a05b04326ed3

query I rowsort
SELECT ALL + col1 * + ( 57 + - col2 ) * col1 AS col1 FROM tab0
----
-207025
177504
526904

query I rowsort
SELECT DISTINCT col0 * ( col1 + - tab2.col2 * 72 ) AS col2 FROM tab2
----
-13391
-141414
-214801

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT + ( col0 ) - - col0 DIV + col2 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-965
SELECT + ( col0 ) - - col0 / + col2 FROM tab0 AS cor0
----
24
70
90

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

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

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

query I rowsort
SELECT DISTINCT + 47 + - col2 FROM tab1 AS cor0
----
-10
-49
-7

query I rowsort
SELECT col2 + 89 FROM tab1 AS cor0
----
143
146
185

query I rowsort
SELECT ALL - ( + col1 ) * - col2 + 17 FROM tab0 AS cor0
----
114
2855
7479

query I rowsort
SELECT 99 * cor0.col0 * - col1 FROM tab1 AS cor0
----
-102960
-63360
-7722

query I rowsort
SELECT DISTINCT + 49 - - 46 * col1 AS col0 FROM tab0 cor0
----
4005
4235
4511

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

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

query I rowsort
SELECT - - 56 + + col1 AS col2 FROM tab1 AS cor0
----
66
69
82

query I rowsort
SELECT ( col2 ) + - 13 FROM tab1 cor0
----
41
44
83

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT DISTINCT + - col2 + col0 DIV 67 FROM tab2 AS cor0
----
-25
-27
-37

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT + - col2 + col0 / 67 FROM tab2 AS cor0
----
-25
-27
-37

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

query I rowsort
SELECT ALL - - col2 * 26 + + col0 - col0 * col1 * col0 FROM tab0 AS cor0
----
-118764
-48654
-718590

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT ALL + + col1 * col2 DIV 36 AS col1 FROM tab2 AS cor0
----
17
23
42

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + + col1 * col2 / 36 AS col1 FROM tab2 AS cor0
----
17
23
42

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

query I rowsort
SELECT - col1 + + 9 FROM tab2 AS cor0
----
-22
-50
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT DISTINCT col1 + col1 DIV + col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT col1 + col1 / + col0 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT DISTINCT + col1 * + ( - 37 ) + + col1 FROM tab1 cor0
----
-360
-468
-936

query I rowsort
SELECT ALL col0 + - 59 AS col1 FROM tab2 AS cor0
----
-52
19
20

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

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

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

query I rowsort
SELECT ALL + + cor0.col0 * - col0 * 34 AS col1 FROM tab1 cor0
----
-139264
-217600
-306

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-62

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 81 + + col0 col1 FROM tab2
----
574
6396
6478

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + col1 * 33 FROM tab2 AS cor0
----
1050
1973
599

query I rowsort
SELECT DISTINCT 95 + - col2 * col2 AS col1 FROM tab0
----
-6629
-994
94

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

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

query I rowsort
SELECT - ( 31 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

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

query I rowsort
SELECT - 84 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

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

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 * 86 FROM tab2, tab1 cor0
----
-258
-5504
-6880

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

query I rowsort
SELECT + - 88 * - col1 AS col1 FROM tab0 AS cor0
----
7568
8008
8536

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT DISTINCT col1 DIV 19 + + cor0.col2 FROM tab0 AS cor0
----
37
6
86

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT col1 / 19 + + cor0.col2 FROM tab0 AS cor0
----
37
6
86

query I rowsort
SELECT ALL + - cor0.col2 * + cor0.col0 + - col2 + col1 AS col0 FROM tab1 AS cor0
----
-190
-3695
-7763

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

query I rowsort
SELECT DISTINCT cor0.col2 * - 15 FROM tab1, tab2 AS cor0
----
-390
-405
-570

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 * + ( 31 ) AS col2 FROM tab2 AS cor0
----
-1829
-527
-961

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

query I rowsort
SELECT - col2 + col0 + 57 FROM tab1 AS cor0
----
41
6
64

query I rowsort
SELECT DISTINCT - + col0 * col1 + 74 FROM tab0 AS cor0
----
-1990
-3321
-8025

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

skipif mysql # not compatible
query I rowsort label-1029
SELECT - CAST ( NULL AS REAL ) + + cor0.col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + + col1 * + cor0.col1 col1 FROM tab1 AS cor0
----
4196
6569
685

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

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

query I rowsort
SELECT + ( - cor0.col2 ) * - cor0.col2 + ( cor0.col2 ) + col1 * 38 AS col2 FROM tab2 cor0
----
1934
2128
2944

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

query I rowsort
SELECT - 8 * col2 + + col2 * cor0.col0 FROM tab1 AS cor0
----
-270
3192
6912

query I rowsort
SELECT DISTINCT col0 * ( 19 ) + col0 + 72 * + ( col0 ) AS col1 FROM tab2
----
644
7176
7268

query I rowsort
SELECT col2 + - ( 9 ) FROM tab0
----
-8
24
73

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

query I rowsort
SELECT 2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT 48 + + col2 FROM tab2 AS cor0
----
74
75
86

query I rowsort
SELECT + 10 + 29 AS col2 FROM tab0
----
39
39
39

query I rowsort
SELECT 45 + + col2 * - col0 * - col2 FROM tab2
----
114121
5148
52773

query I rowsort
SELECT + col0 * + col1 * - col0 + 93 AS col1 FROM tab2 cor0
----
-106004
-1426
-358863

query I rowsort
SELECT ALL - 81 + - 82 FROM tab2 AS cor0
----
-163
-163
-163

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-1046
SELECT + col0 + ( + col2 ) DIV col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-1046
SELECT + col0 + ( + col2 ) / col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT DISTINCT col2 + 5 + col1 FROM tab2 AS cor0
----
60
63
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT 77 DIV + col1 + - CAST( + 25 + col0 AS SIGNED ) FROM tab2 AS cor0
----
-100
-102
-30

skipif mysql # not compatible
query I rowsort label-1048
SELECT 77 / + col1 + - CAST ( + 25 + col0 AS INTEGER ) FROM tab2 AS cor0
----
-100
-102
-30

query I rowsort
SELECT ALL - 27 + cor0.col0 FROM tab0 AS cor0
----
-3
62
8

query I rowsort
SELECT ALL - col0 + col1 * - col2 * 14 FROM tab2 AS cor0
----
-11725
-21554
-9123

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

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

query I rowsort
SELECT ALL - col0 + + col0 * + 40 FROM tab2 AS cor0
----
273
3042
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT DISTINCT - col2 DIV col0 + - col0 AS col0 FROM tab0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - col2 / col0 + - col0 AS col0 FROM tab0
----
-25
-35
-89

query I rowsort
SELECT DISTINCT 42 * - col2 + col0 FROM tab2
----
-1014
-1127
-1517

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

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

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

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

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

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

query I rowsort
SELECT + cor0.col1 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + col0 * + 97 - + 50 FROM tab2 AS cor0
----
629
7516
7613

query I rowsort
SELECT ALL + cor0.col2 FROM tab2 AS cor0 WHERE NOT ( col0 BETWEEN NULL AND + col2 * + col0 ) AND + col1 + col0 * col0 NOT IN ( - cor0.col0 ) OR ( col1 - - col1 / col0 ) IN ( + col2 - - col1 * + col0 )
----

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

query I rowsort
SELECT - - 38 * col1 AS col0 FROM tab0 AS cor0
----
3268
3458
3686

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

query I rowsort
SELECT ALL - 95 * - col0 AS col2 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT + 49 + col2 AS col0 FROM tab0
----
131
50
82

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * 47 FROM tab0
----
1551
3854
47

query I rowsort
SELECT ALL + 37 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1075
SELECT ALL col0 * CAST( - 33 * col2 AS SIGNED ) + + col0 FROM tab0
----
-1120
-240745
-26112

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL col0 * CAST ( - 33 * col2 AS INTEGER ) + + col0 FROM tab0
----
-1120
-240745
-26112

query I rowsort
SELECT 45 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - + 92 + - cor0.col0 FROM tab2 AS cor0
----
-170
-171
-99

query I rowsort
SELECT 24 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
10
13
26

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * col2 + tab2.col1 * tab2.col2 col2 FROM tab2
----
1566
2090
2210

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col0 * col0 col1 FROM tab1 cor0
----
4032
6
6320

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

query I rowsort
SELECT + - cor0.col2 + col0 + col0 FROM tab2 AS cor0
----
-13
120
130

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + col1 + + col2 )
----

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

query I rowsort
SELECT DISTINCT col0 * col0 + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
10686
266
7584

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col1 + col2 * - cor0.col0 col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-1096
SELECT DISTINCT + col0 + col2 DIV + col2 + col0 FROM tab0 AS cor0
----
179
49
71

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT + col0 + col2 / + col2 + col0 FROM tab0 AS cor0
----
179
49
71

query I rowsort
SELECT - col1 + - col0 * - col0 * col1 AS col0 FROM tab1 AS cor0
----
208
40950
83187

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

query I rowsort
SELECT + tab2.col0 + - col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1100
SELECT - col2 DIV - col2 + - col0 + col2 AS col0 FROM tab0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-1100
SELECT - col2 / - col2 + - col0 + col2 AS col0 FROM tab0
----
-33
-6
10

query I rowsort
SELECT col2 * col0 + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-1102
SELECT ALL + + col1 DIV + col0 - + col0 * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-70

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL + + col1 / + col0 - + col0 * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT + 75 DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1103
SELECT + 75 / col1 AS col1 FROM tab0
----
0
0
0

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1108
SELECT DISTINCT + - col2 DIV col1 + col2 + col1 FROM tab1 cor0
----
102
62
78

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT + - col2 / col1 + col2 + col1 FROM tab1 cor0
----
102
62
78

query I rowsort
SELECT col1 + + col0 - - col2 AS col2 FROM tab1
----
131
189
83

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

query I rowsort
SELECT DISTINCT - col0 + tab0.col0 - col1 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + - col1 + - col1 + + col0 * + col2 FROM tab0 AS cor0
----
-159
620
7116

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

query I rowsort
SELECT ALL + col2 * col1 + - col1 * + col1 FROM tab1 AS cor0
----
1079
470
728

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT tab0.col2 + + col0 DIV col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-1119
SELECT tab0.col2 + + col0 / col2 FROM tab0
----
33
36
83

query I rowsort
SELECT ALL col2 * - col1 + col1 * col2 * col1 FROM tab0
----
241230
671580
9312

query I rowsort
SELECT ALL + col1 + + col1 + col0 * - col0 FROM tab2
----
-5966
-6207
13

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT + tab1.col1 + + col1 DIV col1 AS col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1123
SELECT + tab1.col1 + + col1 / col1 AS col1 FROM tab1
----
11
14
27

query I rowsort
SELECT + col0 + - col1 + + tab2.col0 AS col0 FROM tab2
----
-17
141
97

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

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

query I rowsort
SELECT DISTINCT + col1 * + 50 FROM tab2
----
1550
2950
850

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

query I rowsort
SELECT + col2 * - tab1.col1 + - 3 AS col1 FROM tab1
----
-1251
-1407
-573

query I rowsort
SELECT + - col0 + 40 FROM tab0 AS cor0
----
-49
16
5

query I rowsort
SELECT + col0 * col2 + + 19 AS col2 FROM tab1 AS cor0
----
181
3667
7699

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

query I rowsort
SELECT ALL - col2 + 74 FROM tab0 AS cor0
----
-8
41
73

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

query I rowsort
SELECT ALL - - col0 - - 15 AS col2 FROM tab1 AS cor0
----
18
79
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1135
SELECT CAST( col1 + + col1 AS SIGNED ) AS col2 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-1135
SELECT CAST ( col1 + + col1 AS INTEGER ) AS col2 FROM tab0
----
172
182
194

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1137
SELECT + 50 DIV - col1 col0 FROM tab2
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1137
SELECT + 50 / - col1 col0 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT col0 * + col1 + - col1 + + 92 AS col0 FROM tab0
----
2070
3390
8100

query I rowsort
SELECT ( + ( col2 ) ) * + 73 AS col0 FROM tab2
----
1898
1971
2774

query I rowsort
SELECT DISTINCT col1 + col0 + col1 FROM tab2
----
113
196
69

query I rowsort
SELECT 98 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL + 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 ALL + + 75 * + col1 col1 FROM tab1 AS cor0
----
1950
750
975

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1145
SELECT ALL col1 + col0 * - col0 + - 84 * 76 DIV + col2 AS col0 FROM tab0
----
-683
-7512
-7907

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL col1 + col0 * - col0 + - 84 * 76 / + col2 AS col0 FROM tab0
----
-683
-7512
-7907

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

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

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

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

query I rowsort
SELECT ALL - + col2 + col0 * 28 * - 28 AS col2 FROM tab2 AS cor0
----
-5515
-61178
-61974

query I rowsort
SELECT DISTINCT + + 15 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT DISTINCT + col0 * - col2 + + 36 * + col2 FROM tab0 AS cor0
----
-4346
1
396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - col0 + 16 * + col2 col0 FROM tab0 AS cor0
----
-1209
-48
-6609

query I rowsort
SELECT 35 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1378
252
4637

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

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

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

query I rowsort
SELECT ALL 32 * + col1 FROM tab0 cor0
----
2752
2912
3104

query I rowsort
SELECT - - 89 * - col0 FROM tab1 cor0
----
-267
-5696
-7120

query I rowsort
SELECT col2 * - col1 + + col1 * 62 AS col1 FROM tab2 cor0
----
1085
2124
408

onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT ( - col0 ) + - col0 DIV ( col0 ) col2 FROM tab0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1160
SELECT ( - col0 ) + - col0 / ( col0 ) col2 FROM tab0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1161
SELECT + - 23 * col1 + col0 DIV + col0 + col2 FROM tab0 AS cor0
----
-1944
-2010
-2229

skipif mysql # not compatible
query I rowsort label-1161
SELECT + - 23 * col1 + col0 / + col0 + col2 FROM tab0 AS cor0
----
-1944
-2010
-2229

query I rowsort
SELECT 15 * col1 AS col1 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT - col1 * + col1 - col0 * + col2 FROM tab1
----
-3748
-7849
-838

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

query I rowsort
SELECT + + ( - cor0.col0 ) + + 14 FROM tab1 AS cor0
----
-50
-66
11

query I rowsort
SELECT 59 - col2 FROM tab2 cor0
----
21
32
33

query I rowsort
SELECT - 31 + + cor0.col2 + 28 AS col2 FROM tab0 AS cor0
----
-2
30
79

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

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

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

query I rowsort
SELECT + - col2 * - col0 + - cor0.col0 + col1 * col1 AS col2 FROM tab2 AS cor0
----
1143
3212
5431

query I rowsort
SELECT ALL - col1 * - 25 FROM tab0 AS cor0
----
2150
2275
2425

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

skipif mysql # not compatible
query I rowsort label-1172
SELECT col2 + col2 / - 99 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - - col2 + 15 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-19
24
8

query I rowsort
SELECT ALL + 35 * + col2 * + ( col1 ) AS col0 FROM tab0
----
261170
3395
99330

query I rowsort
SELECT col1 * + col0 * - ( + col0 ) AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - col2 * ( 86 ) FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT + + col2 + ( - cor0.col1 ) + - col0 FROM tab0 cor0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + 59 col2 FROM tab2 AS cor0
----
-1534
-1593
-2242

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

query I rowsort
SELECT 96 + tab0.col0 FROM tab0
----
120
131
185

query I rowsort
SELECT DISTINCT - 29 * tab1.col2 AS col0 FROM tab1
----
-1566
-1653
-2784

onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT + col0 DIV col2 + col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-1182
SELECT + col0 / col2 + col2 FROM tab0
----
33
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab1.col0 ) * - col0 col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL 96 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
81 values hashing to e03080212e3345d8b37e64e3264019c4

query I rowsort
SELECT ALL + 1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT - - 81 * 64 + col0 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
124009
54720
725995

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

query I rowsort
SELECT + cor0.col0 + 91 AS col2 FROM tab0 AS cor0
----
115
126
180

query I rowsort
SELECT - 20 FROM tab0, tab2 cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

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

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

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

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad

query I rowsort
SELECT ALL - - ( col0 ) + col1 * ( + 1 ) * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

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

query I rowsort
SELECT ALL + 74 * + col1 - col1 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT + + col2 + col2 + col0 * + ( col0 ) FROM tab2 AS cor0
----
103
6136
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT ALL cor0.col1 DIV - 47 FROM tab0 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL cor0.col1 / - 47 FROM tab0 cor0
----
-1
-1
-2

query I rowsort
SELECT ALL - ( + 78 ) * - col0 FROM tab1 AS cor0
----
234
4992
6240

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + cor0.col1 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 33 + + cor0.col1 AS col0 FROM tab1 cor0
----
-20
-23
-7

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1204
SELECT + col2 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

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

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

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

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

query I rowsort
SELECT ALL - - col1 + + 63 AS col0 FROM tab0 AS cor0
----
149
154
160

query I rowsort
SELECT ALL cor0.col1 + - 7 * - col1 AS col1 FROM tab1 AS cor0
----
104
208
80

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

query I rowsort
SELECT DISTINCT - col2 * col2 + + 45 - - col0 AS col2 FROM tab2 cor0
----
-1320
-553
-677

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

query I rowsort
SELECT - col1 * 15 FROM tab2 AS cor0
----
-255
-465
-885

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1216
SELECT + - col0 * - CAST( + 57 AS SIGNED ) + cor0.col2 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-17640
-644449
770

skipif mysql # not compatible
query I rowsort label-1216
SELECT + - col0 * - CAST ( + 57 AS INTEGER ) + cor0.col2 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-17640
-644449
770

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 22 col2 FROM tab1
----
-32
-35
-74

query I rowsort
SELECT ALL + 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

query I rowsort
SELECT tab0.col1 * 11 + 1 AS col1 FROM tab0
----
1002
1068
947

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

query I rowsort
SELECT + 80 - 59 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT + ( + 25 ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1600
2000
75

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

query I rowsort
SELECT DISTINCT - - 31 + col0 * col2 AS col1 FROM tab2 AS cor0
----
2059
220
3033

query I rowsort
SELECT DISTINCT cor0.col2 + 28 * + col1 FROM tab1 AS cor0
----
337
460
782

onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT DISTINCT col0 DIV - ( col0 ) + + col2 * ( - col0 ) FROM tab0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT col0 / - ( col0 ) + + col2 * ( - col0 ) FROM tab0
----
-36
-7299
-793

query I rowsort
SELECT DISTINCT + col1 + + 87 AS col0 FROM tab2
----
104
118
146

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

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

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

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

query I rowsort
SELECT DISTINCT 94 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
94

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1237
SELECT - ( - col0 ) * col2 DIV 97 + col2 * + tab2.col1 * + col2 FROM tab2
----
22600
24578
39904

skipif mysql # not compatible
query I rowsort label-1237
SELECT - ( - col0 ) * col2 / 97 + col2 * + tab2.col1 * + col2 FROM tab2
----
22600
24578
39904

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

query I rowsort
SELECT DISTINCT - ( 91 ) * col0 + col1 FROM tab1 AS cor0
----
-247
-5814
-7267

query I rowsort
SELECT DISTINCT 53 - + ( - col1 * - ( - col1 ) ) AS col0 FROM tab1 cor0
----
153
222
729

query I rowsort
SELECT DISTINCT - + cor0.col0 + + 9 AS col1 FROM tab2 AS cor0
----
-69
-70
2

query I rowsort
SELECT ALL + 57 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-132
-1971
-2945

query I rowsort
SELECT ALL 24 * - 48 AS col1 FROM tab0 AS cor0
----
-1152
-1152
-1152

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

query I rowsort
SELECT - 49 + 73 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - - col2 * + 25 AS col0 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT 79 * - col1 AS col2 FROM tab1
----
-1027
-2054
-790

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

query I rowsort
SELECT DISTINCT - 52 + - 81 AS col0 FROM tab2 AS cor0
----
-133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col0 + - col0 col1 FROM tab2 AS cor0
----
182
1950
2923

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

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

query I rowsort
SELECT ALL + 14 + - col1 FROM tab1 AS cor0
----
-12
1
4

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

query I rowsort
SELECT ALL + col2 * + 18 * - col2 AS col0 FROM tab1 AS cor0
----
-165888
-52488
-58482

query I rowsort
SELECT + col2 + ( 31 ) * - col0 + - ( + col1 + col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-2667
-3593
-793

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

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

query I rowsort
SELECT - col1 * + 96 FROM tab1 cor0
----
-1248
-2496
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - col0 * + 11 + - ( - col0 * col0 ) - + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-757
3928
4550

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

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

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

query I rowsort
SELECT - cor0.col0 * + col2 + + ( 34 ) AS col0 FROM tab2 AS cor0
----
-155
-1994
-2968

query I rowsort
SELECT ALL + ( col2 ) + 28 FROM tab0 AS cor0
----
110
29
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT DISTINCT + ( - col1 ) DIV + cor0.col0 + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2841
-7463
-99

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT + ( - col1 ) / + cor0.col0 + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2841
-7463
-99

query I rowsort
SELECT - + col2 * - col2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1352
1458
2888

query I rowsort
SELECT + 23 - col0 * - cor0.col1 * col1 FROM tab1 cor0
----
13543
2051
6423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + cor0.col2 col1 FROM tab2 AS cor0
----
1560
684
864

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

query I rowsort
SELECT + col0 * col2 + 42 + + col2 AS col2 FROM tab1 AS cor0
----
258
3747
7818

onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT - col1 DIV 26 col0 FROM tab0 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1271
SELECT - col1 / 26 col0 FROM tab0 AS cor0
----
-3
-3
-3

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

query I rowsort
SELECT 72 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
150
151
79

query I rowsort
SELECT ALL + 51 * cor1.col2 + 28 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8114f9870029a0b18f3e6d19aab8d17a

query I rowsort
SELECT - 30 * + 86 + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 719c09cf13757f1b576a7700a2e66457

query I rowsort
SELECT col1 + - 63 * - col0 FROM tab2
----
472
4973
4994

query I rowsort
SELECT col1 + ( col1 ) + col1 AS col0 FROM tab0
----
258
273
291

query I rowsort
SELECT DISTINCT col2 * + col2 + - col1 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT + 77 + col1 FROM tab2
----
108
136
94

query I rowsort
SELECT DISTINCT - + 9 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1525
637
828

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

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

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + cor1.col0 * + 5 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
120
175
445

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT + ( + 81 ) DIV + cor0.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 7029449be6b2f7e59f77b072ac3efe9a

skipif mysql # not compatible
query I rowsort label-1285
SELECT + ( + 81 ) / + cor0.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 7029449be6b2f7e59f77b072ac3efe9a

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

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

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

query I rowsort
SELECT ALL + 99 * col0 FROM tab1
----
297
6336
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT 52 * col1 DIV + col2 FROM tab1
----
25
7
9

skipif mysql # not compatible
query I rowsort label-1290
SELECT 52 * col1 / + col2 FROM tab1
----
25
7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 col2 FROM tab2
----
55
58
85

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

query I rowsort
SELECT + + ( col2 ) * ( - 48 ) * col0 FROM tab2 AS cor0
----
-144096
-9072
-97344

query I rowsort
SELECT ALL + 46 + col2 * ( - col2 ) * col2 AS col0 FROM tab1 AS cor0
----
-157418
-185147
-884690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 - col2 col0 FROM tab2 AS cor0
----
-75
-76
-87

query I rowsort
SELECT + col2 + col1 * 45 FROM tab1 cor0
----
1224
507
681

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

query I rowsort
SELECT - + col1 * - col2 * + col2 AS col2 FROM tab1 AS cor0
----
119808
32490
75816

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

query I rowsort
SELECT - + 59 + col2 * cor0.col1 FROM tab0 AS cor0
----
2779
38
7403

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

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

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1303
SELECT 79 DIV - ( + cor0.col0 ) FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT 79 / - ( + cor0.col0 ) FROM tab0 cor0
----
-2
-3
0

query I rowsort
SELECT col2 + col0 + + col1 * 64 FROM tab0
----
5561
5995
6244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * + tab1.col0 * tab1.col1 col1 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + - col1 * col0 col1 FROM tab1
----
-1019
-57
-619

query I rowsort
SELECT DISTINCT col0 + + tab2.col1 + + col2 AS col2 FROM tab2
----
134
163
65

query I rowsort
SELECT DISTINCT + col0 * col2 * - 11 + col1 AS col2 FROM tab1 AS cor0
----
-1756
-40118
-84467

query I rowsort
SELECT 90 * col1 AS col1 FROM tab1
----
1170
2340
900

query I rowsort
SELECT - 60 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 + - col2 col1 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT + col2 + 83 * - col2 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-117
-14022
-3498

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

query I rowsort
SELECT col0 * - col2 + col1 * - cor0.col2 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
3361
656902
67353

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

query I rowsort
SELECT - - col0 + + col2 * - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-1088
-1398
-442

query I rowsort
SELECT DISTINCT - col0 * + 87 FROM tab1 AS cor0
----
-261
-5568
-6960

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

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL - col1 / + ( - 94 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * 11 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT + + 76 * cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 4bb6c1797f26ff8dff9d187a2a813fa5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT DISTINCT col0 DIV + 78 + col2 * col1 FROM tab0 AS cor0
----
2838
7463
97

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT col0 / + 78 + col2 * col1 FROM tab0 AS cor0
----
2838
7463
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1323
SELECT DISTINCT - - col1 * CAST( col2 AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - - col1 * CAST ( col2 AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
1328
1407
634

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1327
SELECT DISTINCT CAST( 35 AS SIGNED ) * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1092
-2143
-674

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT CAST ( 35 AS INTEGER ) * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1092
-2143
-674

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

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

query I rowsort
SELECT ALL + col2 * 88 AS col0 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT ALL - + col2 * + 34 + col1 FROM tab0 AS cor0
----
-1036
-2697
63

query I rowsort
SELECT DISTINCT + - 6 * + ( col2 ) FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT DISTINCT 65 + col2 * + col1 FROM tab0 AS cor0
----
162
2903
7527

onlyif mysql # use DIV operator for integer division
query I rowsort label-1333
SELECT DISTINCT - col1 DIV - col0 + 96 AS col0 FROM tab0 AS cor0
----
97
98
99

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT - col1 / - col0 + 96 AS col0 FROM tab0 AS cor0
----
97
98
99

query I rowsort
SELECT DISTINCT ( + col2 ) * 53 FROM tab2 AS cor0
----
1378
1431
2014

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT DISTINCT + col0 DIV col1 + + cor0.col1 * col1 DIV - col1 col2 FROM tab1 AS cor0
----
-26
-4
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT + col0 / col1 + + cor0.col1 * col1 / - col1 col2 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT + ( 61 ) FROM tab0
----
61
61
61

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 * col1 * col2 col1 FROM tab1 AS cor0
----
36416
4209
99760

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

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

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

query I rowsort
SELECT ALL + 4 * - col1 AS col1 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT + 55 * cor0.col0 - col2 * col1 FROM tab2 AS cor0
----
-452
2756
3699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * ( col0 ) + + col0 col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + + ( col0 ) - + 22 FROM tab1 AS cor0
----
-19
42
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1347
SELECT col1 - - col1 * ( + col0 ) DIV 97 AS col2 FROM tab0 AS cor0
----
107
132
174

skipif mysql # not compatible
query I rowsort label-1347
SELECT col1 - - col1 * ( + col0 ) / 97 AS col2 FROM tab0 AS cor0
----
107
132
174

query I rowsort
SELECT ALL - - ( col0 ) + - 20 * - col0 AS col0 FROM tab2 AS cor0
----
147
1638
1659

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

query I rowsort
SELECT - col0 * 29 + - tab0.col0 * + col0 * 30 AS col0 FROM tab0
----
-17976
-240211
-37765

query I rowsort
SELECT + col1 * 28 AS col1 FROM tab1 cor0
----
280
364
728

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

query I rowsort
SELECT + col2 * - tab0.col0 * - 7 + col1 AS col1 FROM tab0
----
342
51177
5630

query I rowsort
SELECT - col2 - ( - 17 ) FROM tab0
----
-16
-65
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1355
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1355
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT + tab2.col2 + 26 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
52
53
64

query I rowsort
SELECT 21 * - ( col2 * ( + col0 ) ) FROM tab2 cor0
----
-3969
-42588
-63042

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1359
SELECT ALL + CAST( 2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + CAST ( 2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - 47 * cor0.col2 AS col0 FROM tab1 cor0
----
-2538
-2679
-4512

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

query I rowsort
SELECT + + 3 * col0 FROM tab2 cor0
----
21
234
237

onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT col0 + - ( - 4 ) DIV cor0.col2 FROM tab0 AS cor0
----
24
39
89

skipif mysql # not compatible
query I rowsort label-1363
SELECT col0 + - ( - 4 ) / cor0.col2 FROM tab0 AS cor0
----
24
39
89

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

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

query I rowsort
SELECT ALL + col0 + col0 + - 27 FROM tab1 AS cor0
----
-21
101
133

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

query I rowsort
SELECT ALL + + col2 * + 65 AS col0 FROM tab2 AS cor0
----
1690
1755
2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-1368
SELECT DISTINCT col1 + - 82 DIV - ( + col2 ) col0 FROM tab1 AS cor0
----
11
13
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT col1 + - 82 / - ( + col2 ) col0 FROM tab1 AS cor0
----
11
13
27

query I rowsort
SELECT + ( cor0.col1 ) * col2 + 50 - + col0 FROM tab2 AS cor0
----
1506
617
880

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

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

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

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

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

query I rowsort
SELECT + col0 * 3 - col0 AS col0 FROM tab2 AS cor0
----
14
156
158

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

query I rowsort
SELECT ALL - - 73 + col2 * ( col0 ) AS col1 FROM tab0 AS cor0
----
108
7371
865

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

query I rowsort
SELECT + - col1 * col2 + 62 FROM tab2 AS cor0
----
-1472
-584
-775

query I rowsort
SELECT ALL - 10 AS col1 FROM tab1
----
-10
-10
-10

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 41 FROM tab0, tab0 AS cor0
----
-41

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

query I rowsort
SELECT col0 + + col0 * + 69 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT + ( ( col1 ) + + 82 ) AS col2 FROM tab1
----
108
92
95

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

query I rowsort
SELECT ALL 21 * + col2 FROM tab0
----
1722
21
693

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

query I rowsort
SELECT + ( col1 ) * - col1 + cor0.col0 * col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT - + 13 + - col0 AS col0 FROM tab0 AS cor0
----
-102
-37
-48

query I rowsort
SELECT DISTINCT 16 * - col0 + col2 * - col1 FROM tab2 AS cor0
----
-1910
-2782
-949

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 92 ) col0 FROM tab1, tab0 AS cor0
----
92

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

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

query I rowsort
SELECT DISTINCT + 46 + + 34 AS col0 FROM tab2
----
80

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

query I rowsort
SELECT - 1 + - 97 AS col1 FROM tab1
----
-98
-98
-98

query I rowsort
SELECT ALL + 32 + + col1 * tab1.col0 AS col2 FROM tab1
----
1072
110
672

query I rowsort
SELECT DISTINCT + - col2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT 85 * 81 AS col0 FROM tab0 AS cor0
----
6885

onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT ALL - col0 + + col1 DIV - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-172
-37
-58

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - col0 + + col1 / - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-172
-37
-58

query I rowsort
SELECT - + 75 * 64 + - col2 * - col2 * + col0 AS col0 FROM tab2 AS cor0
----
109276
303
47928

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

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

query I rowsort
SELECT DISTINCT + + cor0.col2 * - 97 + + col0 AS col1 FROM tab2 AS cor0
----
-2444
-2612
-3607

query I rowsort
SELECT - 27 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - col1 + tab2.col1 + + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + 73 + - col0 FROM tab2
----
-5
-6
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col0 + cor0.col2 * col0 col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT DISTINCT + 96 * + col2 FROM tab2
----
2496
2592
3648

query I rowsort
SELECT ALL + + col0 * - 99 AS col0 FROM tab0 AS cor0
----
-2376
-3465
-8811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 5 col1 FROM tab2 AS cor0
----
155
295
85

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * col0 col1 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL col2 - col0 * ( col1 * col1 ) FROM tab1 AS cor0
----
-13424
-1974
-6343

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 42 col2 FROM tab2 AS cor0
----
294
3276
3318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + 40 * + col1 col2 FROM tab2 AS cor0
----
1213
2334
642

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

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

query I rowsort
SELECT DISTINCT col1 * 78 - col2 FROM tab2 AS cor0
----
1288
2391
4576

query I rowsort
SELECT ALL - col1 * col2 * col2 AS col0 FROM tab1
----
-119808
-32490
-75816

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT + col1 DIV + cor0.col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1433
SELECT + col1 / + cor0.col1 FROM tab1 cor0
----
1
1
1

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ( + cor0.col2 ) * col2 + - col1 * - cor0.col1 FROM tab0 cor0
----
15005
8485
9410

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

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

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

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

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

query I rowsort
SELECT ALL - - col2 + cor0.col1 - + col2 * col0 AS col2 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT ALL 10 + - col0 AS col1 FROM tab0 AS cor0
----
-14
-25
-79

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

query I rowsort
SELECT 7 + col1 + - col0 * - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-233455
-453
-614380

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

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + col1 / cor0.col1 FROM tab0 cor0
----
1
1
1

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

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

query I rowsort
SELECT DISTINCT ( + 3 * tab1.col2 + + tab1.col0 ) FROM tab1
----
165
235
368

query I rowsort
SELECT ALL - ( + 35 ) AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

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

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

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

query I rowsort
SELECT + 29 + cor0.col0 * ( + cor0.col2 ) FROM tab0 cor0
----
64
7327
821

query I rowsort
SELECT 21 * col0 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT ALL - col1 * - 91 * + ( + col0 ) AS col2 FROM tab2
----
122213
19747
418782

query I rowsort
SELECT + col2 * 76 * 70 FROM tab2
----
138320
143640
202160

query I rowsort
SELECT DISTINCT - ( 65 ) AS col1 FROM tab0, tab1 cor0
----
-65

query I rowsort
SELECT - col2 - + col0 * 77 FROM tab0 AS cor0
----
-1881
-2696
-6935

onlyif mysql # use DIV operator for integer division
query I rowsort label-1465
SELECT ALL + col0 DIV - 5 FROM tab2 AS cor0
----
-1
-15
-15

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL + col0 / - 5 FROM tab2 AS cor0
----
-1
-15
-15

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 28 - - col2 AS col2 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT ALL col2 * + col1 + - col1 + 86 * - 56 FROM tab0
----
-2064
-4816
2555

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 23 * + col2 AS col2 FROM tab2 cor0
----
598
621
874

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 98 AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT cor0.col0 * + col2 + col2 + col0 DIV - col0 col0 FROM tab0 cor0
----
35
7379
824

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1482
SELECT cor0.col0 * + col2 + col2 + col0 / - col0 col0 FROM tab0 cor0
----
35
7379
824

query I rowsort
SELECT + col2 * col0 - - ( - col0 ) * - col2 * col0 FROM tab1 AS cor0
----
237120
622080
648

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1485
SELECT col0 DIV + 15 + - col0 FROM tab1 AS cor0
----
-3
-60
-75

skipif mysql # not compatible
query I rowsort label-1485
SELECT col0 / + 15 + - col0 FROM tab1 AS cor0
----
-3
-60
-75

query I rowsort
SELECT ALL - col2 * + 86 - - col0 * col1 AS col0 FROM tab0 AS cor0
----
-774
1047
3309

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

query I rowsort
SELECT DISTINCT col0 - 42 * + cor0.col2 * + col1 FROM tab1 AS cor0
----
-23876
-52336
-58965

query I rowsort
SELECT + + 96 * - col1 - + col0 FROM tab0 AS cor0
----
-8280
-8825
-9347

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 83 + - col2 + 22 * col1 AS col2 FROM tab2 AS cor0
----
2896
3430
3490

onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT col0 * - col1 DIV - col1 + col1 + + col2 col1 FROM tab1 AS cor0
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1493
SELECT col0 * - col1 / - col1 + col1 + + col2 col1 FROM tab1 AS cor0
----
131
189
83

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

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

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

query I rowsort
SELECT ALL col0 * 13 * tab0.col2 + + col2 - - col0 * 24 FROM tab0
----
10905
1296
97092

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

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

query I rowsort
SELECT DISTINCT - col2 * 65 AS col0 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT ALL + col0 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL + cor0.col0 * - 11 FROM tab0 AS cor0
----
-264
-385
-979

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

query I rowsort
SELECT ALL cor0.col1 + ( 1 ) * col0 + + col0 * + 96 FROM tab0 AS cor0
----
2414
3492
8724

query I rowsort
SELECT col1 * 20 - + col0 AS col2 FROM tab0
----
1696
1731
1905

query I rowsort
SELECT ALL - ( 60 ) + col2 * col2 FROM tab1 AS cor0
----
2856
3189
9156

query I rowsort
SELECT 17 + - col2 AS col2 FROM tab0 AS cor0
----
-16
-65
16

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

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

query I rowsort
SELECT DISTINCT - + 71 * col2 + - col2 * + col1 FROM tab0 AS cor0
----
-13284
-168
-5181

query I rowsort
SELECT DISTINCT - col0 - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT 35 * col2 + - col2 * - col2 FROM tab2 cor0
----
1586
1674
2774

query I rowsort
SELECT ALL 96 * col2 - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-985
1631
3359

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

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

query I rowsort
SELECT 93 + + col0 + + tab2.col1 AS col1 FROM tab2
----
131
189
230

query I rowsort
SELECT 49 * + 25 * col1 + - col2 FROM tab1
----
12193
15829
31796

query I rowsort
SELECT ALL col1 * - col1 * - col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - col2 + col1 * 25 AS col1 FROM tab2 AS cor0
----
1449
387
748

query I rowsort
SELECT + ( cor0.col1 ) * 39 + col0 * col2 FROM tab1 cor0
----
1176
4038
8187

query I rowsort
SELECT ALL + 46 + - col1 FROM tab0 AS cor0
----
-40
-45
-51

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

query I rowsort
SELECT DISTINCT col2 * - col1 + 65 * + col0 FROM tab2 cor0
----
-382
3536
4489

query I rowsort
SELECT - tab2.col1 + - col1 * ( col2 ) AS col2 FROM tab2
----
-1593
-663
-868

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

query I rowsort
SELECT 20 + col0 * - 71 FROM tab1 AS cor0
----
-193
-4524
-5660

query I rowsort
SELECT DISTINCT - 6 + col1 * - 9 AS col1 FROM tab0
----
-780
-825
-879

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

query I rowsort
SELECT DISTINCT 42 + + col0 * col0 * 84 AS col0 FROM tab0
----
102942
48426
665406

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

query I rowsort
SELECT ALL + - col0 + + col0 * + ( + cor0.col0 ) FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT + - col0 + - col2 + + 60 DIV - col1 FROM tab2 AS cor0
----
-105
-120
-35

skipif mysql # not compatible
query I rowsort label-1531
SELECT + - col0 + - col2 + + 60 / - col1 FROM tab2 AS cor0
----
-105
-120
-35

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

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

query I rowsort
SELECT - + col1 * - ( col1 ) + col2 * col1 * col0 FROM tab1 AS cor0
----
100009
36580
4888

query I rowsort
SELECT DISTINCT col1 * cor0.col0 * col0 + - col1 FROM tab1 AS cor0
----
208
40950
83187

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

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

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT + CAST ( col2 AS INTEGER ) * + cor0.col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 + + 25 FROM tab2 AS cor0
----
-34
-6
8

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

query I rowsort
SELECT - 93 * col1 AS col2 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT DISTINCT + col0 + ( col0 ) * 97 * + col2 FROM tab0 AS cor0
----
3430
707995
76848

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + + cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
310
3448
957

onlyif mysql # use DIV operator for integer division
query I rowsort label-1542
SELECT ALL + col2 + col1 * - col0 DIV ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + col2 + col1 * - col0 / ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + 43 - + 52 AS col2 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - ( col0 ) * col2 - - ( 61 ) AS col1 FROM tab1 AS cor0
----
-101
-3587
-7619

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1548
SELECT cor0.col2 * col2 - col2 * col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
3257
3384
9231

skipif mysql # not compatible
query I rowsort label-1548
SELECT cor0.col2 * col2 - col2 * col1 / - col0 AS col1 FROM tab1 AS cor0
----
3257
3384
9231

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

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - + col0 + col1 / col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + + col1 * - 33 AS col2 FROM tab0 AS cor0
----
-2805
-2921
-3200

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

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

query I rowsort
SELECT - 45 + col0 * ( col0 ) + col0 * 37 AS col0 FROM tab1 AS cor0
----
6419
75
9315

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

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

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

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

query I rowsort
SELECT - col0 * col0 + - col2 * col1 AS col2 FROM tab2
----
-6887
-7618
-886

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

query I rowsort
SELECT col2 * - tab1.col2 + - col2 - - col0 * col1 * + tab1.col1 FROM tab1
----
-942
3094
4208

query I rowsort
SELECT + tab0.col1 + col1 FROM tab0 WHERE col2 * col1 + col0 / - col2 <= col1 * col2 + + col0
----
172
182
194

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

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

query I rowsort
SELECT DISTINCT + col1 * col1 + - col2 FROM tab2
----
251
3455
934

query I rowsort
SELECT ALL + col0 * col0 + tab0.col0 * col0 AS col0 FROM tab0
----
1152
15842
2450

query I rowsort
SELECT col1 FROM tab1 WHERE ( NULL ) >= ( col2 + - col0 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL + col0 * col2 * + col0 AS col0 FROM tab0 WHERE NOT col2 NOT IN ( col2 )
----
1225
19008
649522

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

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

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

query I rowsort
SELECT DISTINCT + tab1.col1 * col2 FROM tab1 WHERE NOT NULL <> NULL
----

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

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

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

query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 * col0 + - col1 AS col0 FROM tab2
----
1299
158203
237220

query I rowsort
SELECT ALL tab2.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - col1 BETWEEN - col0 + col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1588
SELECT DISTINCT + col1 - col0 DIV col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT + col1 - col0 / col0 FROM tab2
----
16
30
58

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

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

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

query I rowsort
SELECT - col1 - + col2 * - col2 * col0 FROM tab2
----
114059
5072
52669

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT - col0 * + col0 - + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-48
-6083
-6240

skipif mysql # not compatible
query I rowsort label-1593
SELECT - col0 * + col0 - + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-48
-6083
-6240

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

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

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

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

query I rowsort
SELECT col0 + col2 * ( + col0 ) * + 60 FROM tab0
----
2135
437969
47544

query I rowsort
SELECT - 40 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT + - col2 * - ( 73 ) + cor0.col0 - + col1 * cor0.col1 FROM tab0 AS cor0
----
-2206
-4963
-9301

query I rowsort
SELECT + + cor0.col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - - col2 * + col0 - cor0.col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT DISTINCT + col1 + 21 * - col0 FROM tab2 AS cor0
----
-116
-1579
-1642

query I rowsort
SELECT 6 * + col0 - col2 AS col1 FROM tab2 AS cor0
----
15
436
442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1604
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - ( ( - col0 ) ) + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1606
SELECT ALL - CAST( NULL AS SIGNED ) + 84 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-1606
SELECT ALL - CAST ( NULL AS INTEGER ) + 84 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT - - CAST( col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1607
SELECT - - CAST ( col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
82

query I rowsort
SELECT ALL + 39 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT + col1 - - col1 * 49 FROM tab1
----
1300
500
650

query I rowsort
SELECT + + cor0.col0 * col0 + 75 AS col0 FROM tab2 AS cor0
----
124
6159
6316

onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT DISTINCT + + ( + col1 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT + + ( + col1 ) / + col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL - col1 * 91 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT ALL col2 + + 94 + col1 * col0 FROM tab1 AS cor0
----
1230
226
791

query I rowsort
SELECT DISTINCT col0 * + 92 AS col2 FROM tab2 AS cor0
----
644
7176
7268

onlyif mysql # use DIV operator for integer division
query I rowsort label-1616
SELECT DISTINCT - col1 * tab2.col2 DIV + 42 AS col0 FROM tab2
----
-15
-19
-36

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT - col1 * tab2.col2 / + 42 AS col0 FROM tab2
----
-15
-19
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1617
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * + col0 AS col2 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * + col0 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 55 + - 65 FROM tab0 AS cor0
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-1619
SELECT ALL + col1 + - col2 DIV + col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL + col1 + - col2 / + col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT - - ( - col0 ) + + col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 87 * - col1 + col0 * 10 AS col0 FROM tab1 AS cor0
----
-2232
-230
-331

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1622
SELECT ALL CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col1 * col1 + + col2 * - 23 + + col2 AS col1 FROM tab0 AS cor0
----
6477
6670
9387

query I rowsort
SELECT ALL + ( - 15 ) * col1 FROM tab2 AS cor0
----
-255
-465
-885

onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT 85 * col0 + - col2 + + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
2005
2877
7482

skipif mysql # not compatible
query I rowsort label-1625
SELECT 85 * col0 + - col2 + + col1 / - col2 AS col0 FROM tab0 AS cor0
----
2005
2877
7482

query I rowsort
SELECT ALL - 23 + col0 FROM tab0 cor0
----
1
12
66

query I rowsort
SELECT ALL - col1 * + col2 * + ( + col2 ) FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - 30 * - col2 FROM tab2 cor0
----
1140
780
810

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + - col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT + - 16 FROM tab1 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * 91 col1 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT ALL + - col2 + ( - col1 ) * col0 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT - col1 + 51 DIV cor0.col0 AS col2 FROM tab2 cor0
----
-17
-24
-59

skipif mysql # not compatible
query I rowsort label-1635
SELECT - col1 + 51 / cor0.col0 AS col2 FROM tab2 cor0
----
-17
-24
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1636
SELECT ALL col1 + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * ( - 91 ) * + col0 + + 78 FROM tab1 AS cor0
----
14820
332046
698958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - 52 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1728f1934ede678f4b7c9d5f44acf1f4

query I rowsort
SELECT DISTINCT col1 + col1 * - 77 + col1 AS col1 FROM tab1
----
-1950
-750
-975

query I rowsort
SELECT + col0 * 13 + cor0.col1 + col2 AS col1 FROM tab2 cor0
----
1082
1099
149

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1641
SELECT DISTINCT cor0.col2 * - CAST( - col0 AS SIGNED ) + col1 col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT cor0.col2 * - CAST ( - col0 AS INTEGER ) + col1 col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 76 + - 69 col1 FROM tab1 AS cor0
----
-47
-50
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1643
SELECT col0 + CAST( NULL AS SIGNED ) * 45 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1643
SELECT col0 + CAST ( NULL AS INTEGER ) * 45 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + 37 * col1 FROM tab2 AS cor0
----
1120
2157
591

query I rowsort
SELECT ALL + + col2 * col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + + col0 - col1 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL - col1 + 52 AS col1 FROM tab0 AS cor0
----
-34
-39
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT ALL - cor0.col2 + - 97 DIV - 62 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - cor0.col2 + - 97 / - 62 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT + col0 * col1 - 28 FROM tab0 AS cor0
----
2036
3367
8071

query I rowsort
SELECT - col2 * 17 + col1 + - col1 FROM tab1 AS cor0
----
-1632
-918
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 * col2 col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT col1 - - 1 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1653
SELECT DISTINCT - + 30 + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT - + 30 + col1 / + col1 AS col1 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT - 49 * + col2 + + col0 + col2 AS col2 FROM tab2 AS cor0
----
-1170
-1289
-1745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col2 col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT + col2 * - tab2.col1 - - col2 AS col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT tab1.col2 + ( + col0 ) AS col1 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 81 AS REAL ) FROM tab1, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT + tab1.col1 + col0 + 35 FROM tab1
----
109
128
64

query I rowsort
SELECT DISTINCT col1 * - ( col2 ) + + tab0.col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1661
SELECT col2 + 13 + 5 DIV col1 FROM tab1
----
109
67
70

skipif mysql # not compatible
query I rowsort label-1661
SELECT col2 + 13 + 5 / col1 FROM tab1
----
109
67
70

query I rowsort
SELECT col2 + col1 + col2 AS col1 FROM tab1
----
124
134
205

query I rowsort
SELECT 16 * col1 - col2 AS col2 FROM tab0 AS cor0
----
1343
1374
1551

onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT - col0 + col0 DIV cor0.col0 col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1664
SELECT - col0 + col0 / cor0.col0 col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + ( col0 ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
15

query I rowsort
SELECT + - col1 * col0 - + col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL - col0 * + 87 + - col2 FROM tab0
----
-2121
-3046
-7825

query I rowsort
SELECT tab1.col1 + + 40 FROM tab1
----
50
53
66

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) * + col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ( 76 ) * col0 AS col2 FROM tab1
----
228
4864
6080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1672
SELECT DISTINCT - CAST( 36 AS SIGNED ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT - CAST ( 36 AS INTEGER ) FROM tab2
----
-36

query I rowsort
SELECT col0 * col1 + + 64 + col0 AS col1 FROM tab1 AS cor0
----
1184
145
768

query I rowsort
SELECT - - cor0.col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 49 * - col0 + 14 * col2 * col0 FROM tab2
----
2303
24570
38157

query I rowsort
SELECT DISTINCT 16 * col0 AS col2 FROM tab0
----
1424
384
560

query I rowsort
SELECT ALL - 61 * col0 FROM tab0
----
-1464
-2135
-5429

query I rowsort
SELECT - cor0.col0 * - cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT ALL + cor0.col0 * - 82 - - col0 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT DISTINCT - col0 + + 94 AS col2 FROM tab0 AS cor0
----
5
59
70

query I rowsort
SELECT DISTINCT + col1 + + 56 FROM tab1 AS cor0
----
66
69
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1682
SELECT ALL + + col1 + CAST( - 8 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-182
-70
-91

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + + col1 + CAST ( - 8 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT - col2 + col1 * col0 * + col1 FROM tab2 cor0
----
22793
271492
6700

query I rowsort
SELECT ALL - + col1 * cor0.col2 - - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT DISTINCT - + col1 DIV + 76 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT - + col1 / + 76 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col0 * - col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT - col2 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1687
SELECT - col2 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - tab2.col0 col1 FROM tab1, tab0, tab1 AS cor0, tab2
----
-7
-78
-79

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - col2 * + col1 - - 54 FROM tab1 AS cor0
----
-1194
-1350
-516

query I rowsort
SELECT col1 * - col0 - - col2 * + cor0.col2 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT - 19 + cor0.col0 AS col2 FROM tab2 cor0
----
-12
59
60

query I rowsort
SELECT - col1 * - 80 AS col0 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT + + col0 * 22 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT - cor0.col1 + col2 AS col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT + - cor0.col0 * + ( - col2 ) + col0 + - 73 * + 2 FROM tab2 cor0
----
1960
2935
50

query I rowsort
SELECT ALL + - 70 FROM tab0, tab2, tab2 cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT - tab2.col0 * + tab2.col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT cor0.col0 + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col0 * - ( + col1 ) FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + - 20 * 35 FROM tab0 AS cor0
----
-700
-700
-700

query I rowsort
SELECT - 55 + - col0 AS col1 FROM tab2 AS cor0
----
-133
-134
-62

query I rowsort
SELECT + ( + col0 ) * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - ( col1 ) + + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 75 * col2 AS col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT - col0 + 8 AS col2 FROM tab1 AS cor0
----
-56
-72
5

query I rowsort
SELECT + + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col0 * + col1 - + col2 * 33 FROM tab2 AS cor0
----
-674
3744
89

query I rowsort
SELECT DISTINCT 31 * + col2 AS col1 FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
-90

query I rowsort
SELECT ALL - cor0.col0 * + col2 + 1 * col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + 54 + cor0.col2 FROM tab0 AS cor0
----
136
55
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT ALL - + col2 + - col2 - - cor0.col1 DIV col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL - + col2 + - col2 - - cor0.col1 / col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - + col1 + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT DISTINCT + + col1 + - col2 DIV ( ( - col0 ) ) FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + + col1 + - col2 / ( ( - col0 ) ) FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL 27 * col0 FROM tab1 cor0
----
1728
2160
81

query I rowsort
SELECT ALL ( - col0 ) * + ( - 95 ) + + col1 + col1 AS col2 FROM tab2 AS cor0
----
727
7528
7539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1719
SELECT + + ( col0 ) * - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-1719
SELECT + + ( col0 ) * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ( col1 * + col0 ) + + 64 AS col0 FROM tab2
----
1407
281
4666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1721
SELECT + col0 * col0 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT + col0 * col0 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + tab0.col2 AS col0 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col1 FROM tab1
----
28
28
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT + col0 DIV + col0 + 42 FROM tab0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-1724
SELECT + col0 / + col0 + 42 FROM tab0
----
43
43
43

query I rowsort
SELECT ALL + 11 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT + 86 FROM tab1, tab0 cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 59 * col1 col2 FROM tab0 cor0
----
5107
5451
5724

query I rowsort
SELECT + - col1 * + 43 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT ALL + 91 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + 77 AS col0 FROM tab0 cor0
----
77
77
77

query I rowsort
SELECT ALL - col2 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT 16 * + col1 + col0 * col0 + + col2 AS col2 FROM tab0 AS cor0
----
1985
2778
9459

query I rowsort
SELECT - tab1.col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT col1 * + col1 - col2 AS col1 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL 37 + col2 AS col1 FROM tab1
----
133
91
94

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * - ( + 19 ) FROM tab1 AS cor0
----
-1280
-1600
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1737
SELECT + col1 * CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT + col1 * CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 10 * - tab2.col1 + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ee6990a04f5198d1c214dbb323161885

query I rowsort
SELECT ALL cor0.col0 * - tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec78515ecc610830fe02f4a5c8d4e4d5

query I rowsort
SELECT + + col0 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL - col2 + - col1 * - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - col0 + 25 FROM tab2 AS cor0
----
-53
-54
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - 86 * col0 * col0 col2 FROM tab2 cor0
----
-4187
-523198
-536688

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL - + col1 + - 73 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
21080
254054
70122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL + + 22 * - 77 FROM tab1 AS cor0
----
-1694
-1694
-1694

query I rowsort
SELECT ALL 90 * - col1 AS col0 FROM tab2 AS cor0
----
-1530
-2790
-5310

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1749
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col2 + - cor0.col1 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col2 + - cor0.col1 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 72 * - col2 col2 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT + cor0.col1 DIV col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1752
SELECT + cor0.col1 / col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT + - col1 + col0 * - 1 - col0 AS col0 FROM tab2 AS cor0
----
-175
-215
-45

query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL - cor0.col2 + col1 * col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - + 68 + - col2 AS col1 FROM tab0 AS cor0
----
-101
-150
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT DISTINCT - 18 DIV - col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT - 18 / - col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL ( - col1 * tab1.col2 ) AS col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ( cor0.col0 ) * ( 60 ) + col0 - col2 AS col1 FROM tab1 AS cor0
----
129
3847
4784

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 + - 35 * - col2 + 36 + - col0 col0 FROM tab2 AS cor0
----
1287
868
974

query I rowsort
SELECT - 96 + + col0 - 52 AS col2 FROM tab2 AS cor0
----
-141
-69
-70

query I rowsort
SELECT DISTINCT col0 * col2 * tab0.col1 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT + ( col1 + col2 ) DIV - ( - col1 + col0 * - col2 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT + ( col1 + col2 ) / - ( - col1 + col0 * - col2 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1766
SELECT DISTINCT + ( col1 ) * col0 DIV + col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + ( col1 ) * col0 / + col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + 90 * - cor0.col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT + cor0.col0 + - col1 * col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + ( + col0 ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1770
SELECT + col2 * + col1 + - col0 * - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT + col2 * + col1 + - col0 * - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * + 83 * col0 - col0 * ( + cor0.col1 ) FROM tab2 AS cor0
----
-112812
-18228
-386568

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1772
SELECT - + col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT - + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col1 + col2 * + col0 AS col1 FROM tab0
----
167
7478
902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1774
SELECT DISTINCT - 94 + col0 * - CAST( col0 AS SIGNED ) + - col0 FROM tab2
----
-150
-6256
-6414

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - 94 + col0 * - CAST ( col0 AS INTEGER ) + - col0 FROM tab2
----
-150
-6256
-6414

query I rowsort
SELECT - ( col1 ) + col0 + + 5 FROM tab1
----
-18
59
72

query I rowsort
SELECT + col0 + - col1 + ( + col2 ) * col0 AS col0 FROM tab2
----
165
2047
3064

query I rowsort
SELECT - tab1.col0 + - col1 AS col1 FROM tab1
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 46 col1 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT + col1 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1780
SELECT ALL - 38 DIV - col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - 38 / - col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT 17 + 46 AS col1 FROM tab2 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col2 ) + col1 + + cor0.col2 col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 91 + + col2 AS col2 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT DISTINCT col1 + - tab1.col2 * + 66 FROM tab1
----
-3538
-3752
-6323

query I rowsort
SELECT tab1.col0 + tab1.col2 * col1 AS col1 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT DISTINCT col2 * col0 DIV cor0.col0 + 92 * - col2 AS col2 FROM tab1 AS cor0
----
-4914
-5187
-8736

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT col2 * col0 / cor0.col0 + 92 * - col2 AS col2 FROM tab1 AS cor0
----
-4914
-5187
-8736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1788
SELECT DISTINCT - - col0 + col0 + col2 * CAST( + cor0.col1 + cor0.col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
14938
202
3678

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT - - col0 + col0 + col2 * CAST ( + cor0.col1 + cor0.col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
14938
202
3678

query I rowsort
SELECT DISTINCT - + ( + 20 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT col0 * + col2 + + col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - - tab2.col0 + 2 AS col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
80
81
9

query I rowsort
SELECT - 48 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT ALL col0 DIV 52 col2 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL col0 / 52 col2 FROM tab2
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1794
SELECT DISTINCT - col1 * ( col0 * - col0 + CAST( - 12 AS SIGNED ) ) AS col1 FROM tab1
----
41080
546
83356

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - col1 * ( col0 * - col0 + CAST ( - 12 AS INTEGER ) ) AS col1 FROM tab1
----
41080
546
83356

query I rowsort
SELECT - cor0.col0 * + cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662

query I rowsort
SELECT + + col0 * + 3 AS col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL + col2 * 56 * - 1 FROM tab1
----
-3024
-3192
-5376

query I rowsort
SELECT - + ( + col1 ) * + col1 - - col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT col2 + + 31 FROM tab2 AS cor0
----
57
58
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1801
SELECT + + CAST( NULL AS DECIMAL ) / 70 - + col0 * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT + + CAST ( NULL AS REAL ) / 70 - + col0 * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + col2 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + col1 + 60 * col0 - + 48 FROM tab1 AS cor0
----
158
3802
4765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + - col0 col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + cor0.col1 * col1 + - col1 - + ( col2 ) AS col0 FROM tab2 cor0
----
234
3396
903

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 ALL 38 * col1 FROM tab1
----
380
494
988

query I rowsort
SELECT + cor0.col0 - - 49 * + 18 FROM tab2, tab0 AS cor0
----
9 values hashing to b59d180dcd1ebd2b4dedf667acf8fb86

query I rowsort
SELECT 10 + - col2 FROM tab2 AS cor0
----
-16
-17
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT + + cor0.col0 * col1 DIV ( - col2 + col1 ) AS col2 FROM tab2 AS cor0
----
-63
139
54

skipif mysql # not compatible
query I rowsort label-1810
SELECT + + cor0.col0 * col1 / ( - col2 + col1 ) AS col2 FROM tab2 AS cor0
----
-63
139
54

query I rowsort
SELECT + cor0.col0 * ( cor0.col2 + + cor0.col0 ) * col2 FROM tab0 AS cor0
----
1247958
1260
45144

query I rowsort
SELECT cor0.col0 + ( col1 ) FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + + col0 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - col0 + 58 * col1 AS col0 FROM tab0 AS cor0
----
4964
5189
5591

query I rowsort
SELECT + col2 + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-1816
SELECT DISTINCT + + col2 DIV - col1 - - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT + + col2 / - col1 - - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 * ( cor0.col1 * + col2 + 50 * + ( col0 ) ) FROM tab1 AS cor0
----
-37700
-40404
-68224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1818
SELECT + col0 / + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT + col0 / + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + cor0.col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col0 + ( + 54 ) FROM tab1 AS cor0
----
-10
-26
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT ALL + - col2 * 61 AS col1 FROM tab1 cor0
----
-3294
-3477
-5856

query I rowsort
SELECT DISTINCT - - cor0.col1 + + 76 FROM tab1 AS cor0
----
102
86
89

query I rowsort
SELECT ALL - col2 * + ( - col2 * + col0 ) FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - col1 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
-17
4086
6387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + + col2 * - col0 col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT col1 * + 50 AS col1 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT + 11 - col2 * + 72 FROM tab1 AS cor0
----
-3877
-4093
-6901

query I rowsort
SELECT - 6 * + ( + col2 * 95 ) FROM tab2
----
-14820
-15390
-21660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 + - col2 col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 59 * col1 + - col0 FROM tab0
----
5050
5280
5688

query I rowsort
SELECT + cor0.col0 + col1 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col1 + col1 * + ( + col0 ) FROM tab1
----
104
1053
650

query I rowsort
SELECT 1 + col2 AS col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + + cor0.col1 * col2 * - col1 + + 40 AS col0 FROM tab0 cor0
----
-244028
-679002
-9369

onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT DISTINCT + col2 DIV col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT + col2 / col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT ALL + 59 * col0 * 83 + + col2 FROM tab1 AS cor0
----
14745
313465
391856

onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT ALL 59 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL 59 / col0 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT + 21 + - col1 * col1 * + 75 AS col0 FROM tab1 AS cor0
----
-12654
-50679
-7479

query I rowsort
SELECT + col1 + + col1 + 87 AS col1 FROM tab1 AS cor0
----
107
113
139

onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT DISTINCT col2 * col0 DIV - col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT col2 * col0 / - col2 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1842
SELECT ALL CAST( - col1 AS SIGNED ) * col0 col1 FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL CAST ( - col1 AS INTEGER ) * col0 col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 13 * col0 + + 19 AS col0 FROM tab1 AS cor0
----
1059
58
851

query I rowsort
SELECT + + 32 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT col2 * - col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + 43 * cor0.col0 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT 85 - col0 * - 96 FROM tab0 AS cor0
----
2389
3445
8629

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - col0 * col2 + + col2 AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL cor0.col0 * + 33 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT + - ( ( + col1 ) ) * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + + 56 FROM tab1 cor0
----
56
56
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-1853
SELECT DISTINCT + col1 DIV + cor0.col2 AS col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT + col1 / + cor0.col2 AS col2 FROM tab0 cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * 37 + col1 col2 FROM tab2 AS cor0
----
3495
3509
3537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * 5 + col2 col1 FROM tab1
----
377
496
69

query I rowsort
SELECT DISTINCT + col0 * + col1 * - col0 AS col2 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + ( col1 ) + - col2 + - 49 AS col0 FROM tab0 AS cor0
----
-40
4
47

query I rowsort
SELECT DISTINCT 38 * 33 AS col1 FROM tab1 AS cor0
----
1254

onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT DISTINCT - 31 DIV 87 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT - 31 / 87 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( - col1 ) * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + 48 * col0 AS col0 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT ALL + col2 + 68 FROM tab2 AS cor0
----
106
94
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 * cor0.col1 col0 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT ALL - col1 * - 48 + + col0 - - col2 FROM tab0 AS cor0
----
4185
4539
4692

query I rowsort
SELECT + 50 * - col1 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
-28500
-62400
-70200

query I rowsort
SELECT ( 70 ) FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT 70 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT DISTINCT 58 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
58

query I rowsort
SELECT ALL cor0.col1 + - ( col0 ) * + col2 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col0 + 17 * + col0 * col0 + col1 FROM tab2 AS cor0
----
103565
106193
871

query I rowsort
SELECT DISTINCT + + col2 + 68 AS col2 FROM tab2 AS cor0
----
106
94
95

query I rowsort
SELECT - col1 * + 95 + - col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT - + ( - col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT + + 93 DIV + col1 + cor0.col2 FROM tab0 AS cor0
----
1
34
83

skipif mysql # not compatible
query I rowsort label-1876
SELECT + + 93 / + col1 + cor0.col2 FROM tab0 AS cor0
----
1
34
83

query I rowsort
SELECT - col2 + ( - col1 + - col0 ) * 0 * 59 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL tab2.col2 * 61 * + col1 FROM tab2
----
39406
51057
93574

query I rowsort
SELECT col2 * ( col2 ) * col1 + tab0.col2 AS col1 FROM tab0
----
611966
93687
98

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 * - col1 * + col2 + cor0.col0 * col1 )
----

query I rowsort
SELECT ALL - col0 * col1 + cor0.col1 + - col0 FROM tab1 AS cor0
----
-1107
-55
-694

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT ALL - col1 * cor0.col0 + col0 DIV col1 FROM tab2 cor0
----
-1339
-217
-4601

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - col1 * cor0.col0 + col0 / col1 FROM tab2 cor0
----
-1339
-217
-4601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col0 - col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT ALL + col0 * col2 + - col1 FROM tab0 WHERE NOT col0 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 * - col2 ) <= NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT - col0 <> + col1 * + col1 + col0 * - col2 + - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT col2 DIV - tab1.col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT col2 / - tab1.col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT DISTINCT tab0.col1 * tab0.col0 + + tab0.col1 * - col1 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT ALL col1 * col2 + - col0 * + col1 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT DISTINCT tab2.col0 * col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - + col2 + + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + + col0 * col1 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + col1 + col1 * + col1 FROM tab0 WHERE col1 <> col1 + col2
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT ALL + col2 + + col2 DIV - col2 AS col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + col2 + + col2 / - col2 AS col1 FROM tab1
----
53
56
95

query I rowsort
SELECT cor0.col2 + + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - ( - col1 ) * ( + col2 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + 64 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT DISTINCT - ( + col2 ) DIV ( tab1.col2 ) + col1 * + 48 AS col0 FROM tab1
----
1247
479
623

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - ( + col2 ) / ( tab1.col2 ) + col1 * + 48 AS col0 FROM tab1
----
1247
479
623

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT cor1.col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + col1 + + col2 AS col0 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1903
SELECT 17 * + col0 * CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT 17 * + col0 * CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * col0 + - cor0.col0 * 7 col0 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT - + cor0.col0 * - col1 + col2 * - col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT 87 + - col1 * tab1.col0 + + 42 FROM tab1
----
-511
-911
51

query I rowsort
SELECT - tab0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1908
SELECT ALL - col0 DIV + col1 + col0 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - col0 / + col1 + col0 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT ALL - - col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 38 + + col0 * col1 col2 FROM tab2 AS cor0
----
4345
483
7566

onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT ALL - col0 * - col0 - + col0 DIV col1 AS col2 FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL - col0 * - col0 - + col0 / col1 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + col1 * cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + - col2 * cor0.col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT cor0.col0 + ( + col2 ) - col1 * 75 AS col1 FROM tab1 AS cor0
----
-1893
-629
-799

query I rowsort
SELECT ALL - col0 - ( 39 * col0 ) AS col2 FROM tab0 cor0
----
-1400
-3560
-960

query I rowsort
SELECT col2 * + 58 AS col2 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT - + cor0.col1 * + 99 AS col2 FROM tab0 AS cor0
----
-8514
-9009
-9603

onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT - + col1 DIV + ( - 50 ) + + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1918
SELECT - + col1 / + ( - 50 ) + + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col1 + 39 * col0 FROM tab0 cor0
----
1022
1462
3562

query I rowsort
SELECT - col0 + col1 + - col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort
SELECT - col0 * + CAST ( col1 * + col0 AS REAL ) + - col0 * col2 FROM tab1 AS cor0
----
-396
-44608
-90880

query I rowsort
SELECT col0 + col0 * + col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1923
SELECT DISTINCT + col2 * col2 DIV - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT + col2 * col2 / - col2 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + col1 + tab2.col1 * + col2 * col2 col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + col0 * col0 * col0 AS col1 FROM tab2
----
343
474552
493039

query I rowsort
SELECT ALL tab1.col1 + col2 + + col2 AS col1 FROM tab1
----
124
134
205

query I rowsort
SELECT - col0 - + col1 * col1 FROM tab2 WHERE NOT NULL IN ( col2 * col2 )
----

query I rowsort
SELECT col2 * + tab1.col0 * col1 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - col2 + - tab0.col2 AS col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - col2 * tab1.col1 + + col1 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT DISTINCT - col0 + tab1.col0 DIV + tab1.col2 FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - col0 + tab1.col0 / + tab1.col2 FROM tab1
----
-3
-63
-80

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + 9 * col0 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT DISTINCT + + 29 + + col2 FROM tab1 cor0
----
125
83
86

query I rowsort
SELECT DISTINCT col1 + + col2 + + col1 * + col2 FROM tab1
----
1357
1484
637

query I rowsort
SELECT DISTINCT col0 + - tab1.col2 + + col1 AS col0 FROM tab1
----
-25
-3
17

query I rowsort
SELECT - col0 * col2 - col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT col0 + - tab1.col1 - col1 * - tab1.col0 FROM tab1
----
1107
55
694

onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT DISTINCT + col1 + + col1 DIV col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT + col1 + + col1 / col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT - + col2 * - 13 * + col2 AS col2 FROM tab2 AS cor0
----
18772
8788
9477

onlyif mysql # use DIV operator for integer division
query I rowsort label-1941
SELECT cor0.col1 DIV + 21 AS col2 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1941
SELECT cor0.col1 / + 21 AS col2 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT ALL col0 * - col1 + col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - - col0 + + ( 44 ) * - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-28345
-36821
-67418

query I rowsort
SELECT ALL - cor0.col0 + col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - col0 + 58 FROM tab2 AS cor0
----
-20
-21
51

query I rowsort
SELECT ALL ( + col1 ) * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1947
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col2 + + ( - col0 ) AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1950
SELECT ( + col2 ) DIV 72 + - col2 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-1950
SELECT ( + col2 ) / 72 + - col2 FROM tab0 AS cor0
----
-1
-33
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT ALL - 56 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - 56 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT 8 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
247
267
321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * + col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 17 + - col2 AS col2 FROM tab1
----
-37
-40
-79

query I rowsort
SELECT ALL cor0.col1 * - col1 * cor0.col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT 41 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT + 52 + + col0 FROM tab1
----
116
132
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + col2 col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT col0 * col1 + + tab2.col0 * + col1 FROM tab2
----
2686
434
9204

query I rowsort
SELECT col2 + col2 * 20 FROM tab2 AS cor0
----
546
567
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 49 + col0 col0 FROM tab2 AS cor0
----
-42
29
30

query I rowsort
SELECT 2 + col1 * col2 FROM tab2
----
1536
648
839

query I rowsort
SELECT ALL + - ( cor0.col0 ) * cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662

query I rowsort
SELECT - - col2 * - 87 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT - col1 + tab0.col1 * + ( - col1 ) * col2 AS col1 FROM tab0
----
-244154
-679133
-9506

query I rowsort
SELECT cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1967
SELECT DISTINCT + col0 DIV - 92 - + 75 AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT + col0 / - 92 - + 75 AS col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL - col0 * + col0 - - col0 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT - 12 + - col0 + + tab0.col0 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT 67 * col0 AS col1 FROM tab2
----
469
5226
5293

query I rowsort
SELECT - col1 + 22 * col1 FROM tab0
----
1806
1911
2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT DISTINCT ( + 91 ) DIV col2 + + ( - 56 ) FROM tab0
----
-54
-55
35

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT ( + 91 ) / col2 + + ( - 56 ) FROM tab0
----
-54
-55
35

query I rowsort
SELECT 39 * - 2 + tab0.col2 + - 41 FROM tab0
----
-118
-37
-86

query I rowsort
SELECT - ( col0 * col1 + - col2 * col0 ) AS col0 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT 42 + - cor0.col1 FROM tab2 AS cor0
----
-17
11
25

query I rowsort
SELECT DISTINCT ( 89 ) * col0 + col2 FROM tab0 AS cor0
----
2169
3116
8003

query I rowsort
SELECT DISTINCT + - ( - col0 ) + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * col1 col0 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT - ( - col1 ) - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - 95 FROM tab0, tab0 AS cor0
----
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1982
SELECT CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 * col0 col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT + 24 + - col0 * + col1 FROM tab0 AS cor0
----
-2040
-3371
-8075

query I rowsort
SELECT ALL + 24 - col2 FROM tab0 AS cor0
----
-58
-9
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT + + 77 + col1 DIV + 21 FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-1986
SELECT + + 77 + col1 / + 21 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - 27 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
51
52

query I rowsort
SELECT DISTINCT 66 * col0 AS col1 FROM tab0 cor0
----
1584
2310
5874

query I rowsort
SELECT 80 * - col2 - col0 * col0 AS col2 FROM tab2 cor0
----
-2209
-8164
-9281

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT DISTINCT + ( + cor0.col1 ) DIV - col0 AS col2 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT + ( + cor0.col1 ) / - col0 AS col2 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL - col2 * col2 + - col0 FROM tab2 AS cor0
----
-1523
-736
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col2 - + 6 col2 FROM tab1 AS cor0
----
103
61
74

query I rowsort
SELECT - 8 + col0 * + ( + 99 ) FROM tab1 AS cor0
----
289
6328
7912

query I rowsort
SELECT + col0 * + col0 + - col0 * - 18 FROM tab2 AS cor0
----
175
7488
7663

query I rowsort
SELECT 35 * col0 * - tab0.col2 + + col2 * 30 AS col1 FROM tab0
----
-1195
-252970
-26730

query I rowsort
SELECT - cor0.col2 + - col1 AS col0 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT - cor0.col1 + 74 + + col0 AS col1 FROM tab2 AS cor0
----
136
50
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col1 + col1 col0 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT - 12 + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fe9133bcabc648a6930b1894471288a6

query I rowsort
SELECT ( + col2 ) + - col2 + + col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 53 + + cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
101
123
231

query I rowsort
SELECT - 27 + cor0.col2 AS col2 FROM tab2 cor0
----
-1
0
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT ALL + ( col2 ) DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL + ( col2 ) / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - ( - 17 ) * col2 FROM tab0
----
1394
17
561

query I rowsort
SELECT - ( - col2 * col0 + - ( col2 ) ) FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT - + cor0.col1 DIV 11 - - col0 AS col2 FROM tab1 AS cor0
----
1
64
79

skipif mysql # not compatible
query I rowsort label-2007
SELECT - + cor0.col1 / 11 - - col0 AS col2 FROM tab1 AS cor0
----
1
64
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2008
SELECT + + cor0.col2 + + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2008
SELECT + + cor0.col2 + + col1 / col1 AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT cor0.col2 * + ( 78 ) AS col2 FROM tab1 AS cor0
----
4212
4446
7488

query I rowsort
SELECT col2 * col2 - cor0.col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2011
SELECT + - col0 - 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-2011
SELECT + - col0 - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 27 * - col1 FROM tab0
----
-2322
-2457
-2619

query I rowsort
SELECT + col1 * 97 - cor0.col2 FROM tab1 AS cor0
----
1165
2468
913

query I rowsort
SELECT - col2 * 65 + col2 * + col1 AS col0 FROM tab1
----
-2106
-3135
-4992

query I rowsort
SELECT ALL + col2 * col0 * 59 FROM tab0
----
2065
430582
46728

query I rowsort
SELECT ALL + - col0 + cor0.col1 * - col2 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT - 9 AS col1 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - ( tab1.col0 + col0 ) * 92 * col0 col1 FROM tab1
----
-1177680
-1659
-753728

query I rowsort
SELECT col0 + + ( - 57 ) * col2 AS col2 FROM tab2
----
-1404
-1532
-2087

query I rowsort
SELECT + 64 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL 43 + 69 AS col2 FROM tab1
----
112
112
112

query I rowsort
SELECT ALL - ( + 92 ) * - col1 AS col1 FROM tab2 AS cor0
----
1564
2852
5428

onlyif mysql # use DIV operator for integer division
query I rowsort label-2024
SELECT DISTINCT + 59 DIV - col2 AS col2 FROM tab0 cor0
----
-1
-59
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + 59 / - col2 AS col2 FROM tab0 cor0
----
-1
-59
0

query I rowsort
SELECT ALL - col1 * 29 + + col1 FROM tab0 AS cor0
----
-2408
-2548
-2716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2026
SELECT - CAST( NULL AS DECIMAL ) + 10 * - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT - CAST ( NULL AS REAL ) + 10 * - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 80 * col1 + cor0.col0 * cor0.col2 + + col0 AS col0 FROM tab1 cor0
----
2245
4512
8800

query I rowsort
SELECT ALL col0 * - col2 + col1 - 71 AS col2 FROM tab1 AS cor0
----
-207
-3709
-7738

query I rowsort
SELECT ALL + col1 - + col2 * - col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2030
SELECT CAST( NULL AS SIGNED ) * - 36 + + col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT CAST ( NULL AS INTEGER ) * - 36 + + col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 6 + 66 * cor0.col2 FROM tab0 cor0
----
2172
5406
60

query I rowsort
SELECT ALL col2 * col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - - tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT 32 * col1 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT - 96 * col0 AS col0 FROM tab2 cor0
----
-672
-7488
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT - 90 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2036
SELECT - 90 / - col2 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + + col1 * 59 FROM tab2 AS cor0
----
1003
1829
3481

onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT cor0.col2 DIV 53 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2038
SELECT cor0.col2 / 53 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - col2 * + 32 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT DISTINCT - 65 FROM tab0, tab1, tab2 AS cor0
----
-65

query I rowsort
SELECT - col1 + 9 AS col0 FROM tab2
----
-22
-50
-8

query I rowsort
SELECT ALL - 28 * col0 AS col2 FROM tab1
----
-1792
-2240
-84

query I rowsort
SELECT ALL - col0 * + cor0.col0 + + col0 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT - - 2 * - col0 * - 31 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT + col1 * col2 * - col1 + - 72 * col1 * + col2 FROM tab1 cor0
----
-106080
-137592
-46740

query I rowsort
SELECT DISTINCT - - col2 + col0 * - ( - col0 ) + - col0 * - col0 * + col0 AS col0 FROM tab2 AS cor0
----
419
480662
499318

query I rowsort
SELECT col1 + + cor0.col0 * ( 98 ) FROM tab2 AS cor0
----
717
7703
7759

query I rowsort
SELECT + 25 * + col1 + 58 FROM tab1 AS cor0
----
308
383
708

query I rowsort
SELECT cor0.col2 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - 74 * - col2 + col1 * col1 AS col1 FROM tab0 cor0
----
14349
9483
9838

query I rowsort
SELECT + col0 * + ( col1 ) + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT - - col1 DIV col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2052
SELECT - - col1 / col1 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL + cor0.col0 + 8 * + col0 AS col1 FROM tab1 AS cor0
----
27
576
720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2054
SELECT - col0 + CAST( NULL AS SIGNED ) * col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT - col0 + CAST ( NULL AS INTEGER ) * col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT DISTINCT + col2 + ( 40 ) DIV + cor0.col0 FROM tab0 AS cor0
----
2
34
82

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT + col2 + ( 40 ) / + cor0.col0 FROM tab0 AS cor0
----
2
34
82

query I rowsort
SELECT col1 * col0 - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - col0 + ( col2 ) * col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - + col1 + 79 AS col2 FROM tab1 AS cor0
----
53
66
69

skipif mysql # not compatible
query I rowsort
SELECT + col0 * CAST ( 30 AS REAL ) + + col0 / 75 - - col1 AS col2 FROM tab1 AS cor0
----
116
1930
2414

query I rowsort
SELECT col1 + 86 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT DISTINCT + + cor0.col0 * + 52 FROM tab1 cor0
----
156
3328
4160

query I rowsort
SELECT - 70 FROM tab2, tab1 cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL + 86 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
48
59
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2066
SELECT ALL - CAST( NULL AS DECIMAL ) / col2 - + col1 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-2066
SELECT ALL - CAST ( NULL AS REAL ) / col2 - + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col1 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2070
SELECT ALL + + cor0.col2 * + 64 - - col1 * CAST( + col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
1945
3775
6266

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL + + cor0.col2 * + 64 - - col1 * CAST ( + col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
1945
3775
6266

query I rowsort
SELECT DISTINCT + col0 + 59 AS col2 FROM tab2
----
137
138
66

query I rowsort
SELECT + - col1 * - col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2073
SELECT + col2 + - col0 * col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT + col2 + - col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 25 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT ALL + - cor1.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2076
SELECT + - col2 DIV 29 + col2 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-2
17

skipif mysql # not compatible
query I rowsort label-2076
SELECT + - col2 / 29 + col2 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-2
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2077
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) + - 17 * - col0 col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) + - 17 * - col0 col2 FROM tab1
----
NULL

query I rowsort
SELECT + col1 * col2 - - col0 * + col0 FROM tab0 cor0
----
1322
15383
3414

query I rowsort
SELECT - + 24 + - col1 * + col1 FROM tab1 AS cor0
----
-124
-193
-700

query I rowsort
SELECT - col0 - + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2081
SELECT - col0 * cor0.col1 + CAST( NULL AS SIGNED ) * col2 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-2081
SELECT - col0 * cor0.col1 + CAST ( NULL AS INTEGER ) * col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col0 * col2 * col2 AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT tab2.col0 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + 60 FROM tab2, tab0 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - col0 * + col0 + + col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + col0 * + tab1.col1 + 93 + col2 * + 10 AS col1 FROM tab1
----
1303
2093
711

query I rowsort
SELECT ALL tab0.col1 + + 80 + 68 AS col1 FROM tab0
----
234
239
245

onlyif mysql # use DIV operator for integer division
query I rowsort label-2088
SELECT DISTINCT + tab1.col2 DIV + 31 + col2 * - col1 AS col2 FROM tab1
----
-1245
-1403
-569

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT + tab1.col2 / + 31 + col2 * - col1 AS col2 FROM tab1
----
-1245
-1403
-569

query I rowsort
SELECT col0 * - ( tab2.col2 + + col2 ) AS col1 FROM tab2
----
-378
-4056
-6004

query I rowsort
SELECT 61 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2091
SELECT + col0 * CAST( + col1 AS SIGNED ) + col2 FROM tab2
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-2091
SELECT + col0 * CAST ( + col1 AS INTEGER ) + col2 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT - col2 DIV - col0 col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2092
SELECT - col2 / - col0 col1 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2093
SELECT ALL + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + - ( col1 ) col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL + 8 FROM tab2, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT 28 * col2 + cor0.col1 * col2 - col1 AS col2 FROM tab1 AS cor0
----
2156
2890
3923

query I rowsort
SELECT - 54 - - col1 AS col0 FROM tab1
----
-28
-41
-44

query I rowsort
SELECT + cor0.col0 * 1 + col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2099
SELECT col1 * + cor0.col1 + cor0.col2 * - col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT col1 * + cor0.col1 + cor0.col2 * - col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + 23 FROM tab0
----
112
47
58

query I rowsort
SELECT DISTINCT - col1 * 55 * - cor0.col2 FROM tab0 AS cor0
----
156090
410410
5335

query I rowsort
SELECT DISTINCT col1 - - 41 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT ALL - col2 * - ( 74 + col1 ) AS col1 FROM tab1 AS cor0
----
4788
5400
8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 49 - - col1 col0 FROM tab2 AS cor0
----
-1215
-1292
-1845

query I rowsort
SELECT ALL 89 * + tab1.col0 AS col2 FROM tab1
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2106
SELECT ALL - 84 DIV cor0.col1 FROM tab1 AS cor0
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - 84 / cor0.col1 FROM tab1 AS cor0
----
-3
-6
-8

query I rowsort
SELECT col0 * 49 AS col2 FROM tab1 AS cor0
----
147
3136
3920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - 81 * col1 FROM tab1 AS cor0
----
-1053
-2106
-810

query I rowsort
SELECT - - col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT DISTINCT - cor0.col2 DIV col0 + col2 * - col2 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-763

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT - cor0.col2 / col0 + col2 * - col2 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-763

onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT DISTINCT - 31 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - 31 / col1 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2113
SELECT - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2113
SELECT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 col2 FROM tab2
----
17
17
17

query I rowsort
SELECT DISTINCT - - 73 * - cor0.col1 + - 92 AS col0 FROM tab0 cor0
----
-6370
-6735
-7173

query I rowsort
SELECT DISTINCT + - col2 * col1 + col1 AS col0 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT 12 * cor0.col0 AS col1 FROM tab2 AS cor0
----
84
936
948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - tab1.col0 - - col1 AS col0 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col1 FROM tab0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - tab1.col0 * + 46 AS col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
-138
-2944
-3680

query I rowsort
SELECT - tab1.col0 - - col1 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - - cor0.col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - + col1 * col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 + - ( col2 + + col2 ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2127
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 * - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 * - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 29 * 17 AS col2 FROM tab2 AS cor0
----
493

query I rowsort
SELECT - 71 * tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9833a394608eb95f7b45e83cd73a91ae

query I rowsort
SELECT ALL - - col0 * col1 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2131
SELECT - + col1 DIV 7 FROM tab2 AS cor0
----
-2
-4
-8

skipif mysql # not compatible
query I rowsort label-2131
SELECT - + col1 / 7 FROM tab2 AS cor0
----
-2
-4
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2132
SELECT ALL - CAST( NULL AS DECIMAL ) + 64 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - CAST ( NULL AS REAL ) + 64 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2133
SELECT DISTINCT + + col0 DIV col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + + col0 / col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL col1 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + + 51 AS col2 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT tab1.col0 * + col2 + - col0 AS col1 FROM tab1
----
159
3584
7600

query I rowsort
SELECT + col2 + col0 * col0 AS col1 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT col0 + - 7 FROM tab0
----
17
28
82

query I rowsort
SELECT col0 + 35 AS col1 FROM tab2
----
113
114
42

query I rowsort
SELECT col2 + - col0 + + col1 AS col0 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL tab0.col2 + + col2 * 46 AS col1 FROM tab0
----
1551
3854
47

query I rowsort
SELECT DISTINCT - 25 * col1 + - col2 + + col0 * 14 AS col2 FROM tab2 cor0
----
-409
-704
643

query I rowsort
SELECT ALL - 44 * cor0.col2 + col2 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT ALL col1 - 71 FROM tab0 AS cor0
----
15
20
26

query I rowsort
SELECT ALL col2 + 28 AS col0 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT DISTINCT - col1 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col0 FROM tab0 cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - 47 * col2 FROM tab2 AS cor0
----
-1222
-1269
-1786

query I rowsort
SELECT + - col2 + + 90 AS col2 FROM tab2 AS cor0
----
52
63
64

query I rowsort
SELECT - col2 - - 29 FROM tab2 AS cor0
----
-9
2
3

query I rowsort
SELECT ALL tab0.col0 + + col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + + col2 + + col0 * 15 FROM tab2 AS cor0
----
1196
1223
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 66 + cor0.col1 col0 FROM tab1 AS cor0
----
-172
-4214
-5267

query I rowsort
SELECT - col0 * - col0 + + col0 * + col0 + col1 AS col2 FROM tab1
----
12813
44
8202

onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT tab0.col0 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2155
SELECT tab0.col0 / + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 41 + col2 + 67 FROM tab0
----
108
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - col1 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 89 * col1 + col0 * - col1 FROM tab1
----
-1530
-2197
-2392

query I rowsort
SELECT + 85 + - col2 AS col1 FROM tab2
----
47
58
59

query I rowsort
SELECT DISTINCT - col0 * col2 + 65 * 89 * - col0 FROM tab0
----
-139632
-202510
-522163

query I rowsort
SELECT - col0 * - ( 56 + - col2 ) AS col0 FROM tab1
----
-3200
-64
6

query I rowsort
SELECT ALL + + col2 + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col2 + - col1 * 3 FROM tab2 AS cor0
----
-13
-151
-66

query I rowsort
SELECT ALL col1 + - col1 * 32 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-238693
-3007
-90730

query I rowsort
SELECT - + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + + col2 * - 31 - 35 * col0 AS col2 FROM tab1 AS cor0
----
-1779
-4007
-5776

query I rowsort
SELECT DISTINCT + cor0.col0 * 44 AS col2 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT ALL - col2 + - 16 * cor0.col2 * - col0 FROM tab0 AS cor0
----
116686
12639
559

query I rowsort
SELECT ALL - - cor0.col0 + - col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - col1 * - 88 + col2 FROM tab0 AS cor0
----
7601
8090
8537

query I rowsort
SELECT ALL - col2 + col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - ( 55 ) + col1 * col1 FROM tab0
----
7341
8226
9354

query I rowsort
SELECT ( tab1.col0 ) - col2 * col2 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - ( - 2 ) AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL - - col2 * + 23 FROM tab0 AS cor0
----
1886
23
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2177
SELECT ALL + CAST( - ( - col0 ) AS SIGNED ) + col1 FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL + CAST ( - ( - col0 ) AS INTEGER ) + col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + + col1 * 11 * + col0 FROM tab0 AS cor0
----
22704
37345
89089

query I rowsort
SELECT ALL - 27 FROM tab2, tab2 cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - col2 - + col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + col1 + - col2 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
-19
4049
6317

query I rowsort
SELECT cor0.col0 * cor0.col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT col1 + - col2 * - col0 + + 80 * + cor0.col1 FROM tab0 cor0
----
14669
7758
7892

onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT + col1 * col0 DIV ( col2 ) AS col1 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-2184
SELECT + col1 * col0 / ( col2 ) AS col1 FROM tab0
----
3395
62
98

query I rowsort
SELECT DISTINCT - ( + col1 ) + ( + 93 ) FROM tab1
----
67
80
83

query I rowsort
SELECT ALL col1 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col0 * + col0 * + cor0.col0 + 68 - col1 * col0 FROM tab0 AS cor0
----
11828
39548
696938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) + + col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT ( + col2 ) * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col1 FROM tab0 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col0 * + col2 col1 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - - 58 * + col2 AS col1 FROM tab1 AS cor0
----
3132
3306
5568

query I rowsort
SELECT col1 + cor0.col2 * col0 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT - + 48 * + col1 FROM tab2 AS cor0
----
-1488
-2832
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT 26 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2195
SELECT 26 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - col1 * - col0 + col0 * col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT col2 * col1 * col0 + - col0 AS col1 FROM tab1 cor0
----
36416
4209
99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT DISTINCT + tab2.col2 DIV - col0 + + col1 * col2 col0 FROM tab2
----
1534
646
834

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + tab2.col2 / - col0 + + col1 * col2 col0 FROM tab2
----
1534
646
834

query I rowsort
SELECT - col1 * col0 - col0 AS col2 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT 38 * - col2 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT DISTINCT - 55 * + col0 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT + ( + col1 ) + + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - 56 * ( + col0 * - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
12152
257712
75208

query I rowsort
SELECT + 47 + - col1 AS col1 FROM tab2 AS cor0
----
-12
16
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - ( + col1 ) col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - ( tab2.col1 ) * col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab1, tab1 AS cor0
----
-73

query I rowsort
SELECT + 77 * col1 AS col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT DISTINCT - ( 0 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - 72 * col2 FROM tab0
----
-2376
-5904
-72

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( 47 AS REAL ) FROM tab2 cor0
----
-47
-47
-47

query I rowsort
SELECT ALL - col1 * - 57 + - col1 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT col2 + col1 * ( - col0 ) AS col1 FROM tab1
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + tab2.col2 col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL + col2 * col2 - + col0 * col0 AS col2 FROM tab0
----
-1197
-1224
513

query I rowsort
SELECT ALL col0 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + + ( col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 52 * + col2 * + 81 FROM tab0
----
138996
345384
4212

query I rowsort
SELECT col1 + cor0.col2 + + 79 * + col2 AS col2 FROM tab0 cor0
----
177
2726
6651

query I rowsort
SELECT col0 * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + tab0.col2 * - tab0.col1 + col2 FROM tab0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col1 + + col0 * cor0.col2 col0 FROM tab1 AS cor0
----
191
3722
7773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * - cor0.col0 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1305f54a2326fd0029e50c162dc182b1

query I rowsort
SELECT 23 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT + col0 + cor0.col2 * + col2 + 67 FROM tab0 AS cor0
----
103
1180
6880

query I rowsort
SELECT - col2 - - tab1.col2 * - 73 FROM tab1
----
-3996
-4218
-7104

query I rowsort
SELECT - col0 + - 65 AS col2 FROM tab1 AS cor0
----
-129
-145
-68

query I rowsort
SELECT DISTINCT - col1 * - 28 AS col0 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT 43 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT col1 * + ( 30 ) FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT DISTINCT - col0 * + col0 * + col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + cor0.col2 * + 41 AS col0 FROM tab1 AS cor0
----
2214
2337
3936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT - col0 DIV - col0 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2235
SELECT - col0 / - col0 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT ALL col1 DIV 54 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL col1 / 54 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
55

query I rowsort
SELECT DISTINCT - + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2239
SELECT DISTINCT col2 DIV 99 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT col2 / 99 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT - col2 DIV ( + col0 ) + col0 * + col1 + - col2 FROM tab0 AS cor0
----
2030
3394
8017

skipif mysql # not compatible
query I rowsort label-2240
SELECT - col2 / ( + col0 ) + col0 * + col1 + - col2 FROM tab0 AS cor0
----
2030
3394
8017

query I rowsort
SELECT DISTINCT + 86 + + col2 FROM tab0 AS cor0
----
119
168
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2242
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + col2 * 69 AS col2 FROM tab1 AS cor0
----
-3726
-3933
-6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - ( col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - cor0.col2 + 61 FROM tab1 AS cor0
----
-35
4
7

query I rowsort
SELECT + - ( 86 ) + - col1 AS col2 FROM tab1 AS cor0
----
-112
-96
-99

query I rowsort
SELECT DISTINCT - cor0.col2 * 49 - col0 FROM tab0 AS cor0
----
-1641
-4107
-84

query I rowsort
SELECT DISTINCT col0 + + col1 * + col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - 82 * 63 FROM tab1 AS cor0
----
-5166
-5166
-5166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2251
SELECT - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2251
SELECT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2252
SELECT ALL + - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2253
SELECT DISTINCT col0 * + CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT col0 * + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT 83 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT + col2 + + 88 FROM tab1
----
142
145
184

query I rowsort
SELECT col1 - tab0.col2 * - col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT - ( cor0.col1 ) + cor0.col0 + col1 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col2 + col2 + + col0 * - cor0.col2 FROM tab2 AS cor0
----
-135
-1976
-2926

query I rowsort
SELECT + + 97 + + col2 * cor0.col2 * col2 + cor0.col2 * 29 AS col0 FROM tab0 AS cor0
----
127
36991
553843

onlyif mysql # use DIV operator for integer division
query I rowsort label-2260
SELECT DISTINCT - + col1 DIV - col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - + col1 / - col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 87 * col1 * - 86 + + col1 AS col0 FROM tab0 AS cor0
----
643538
680953
725851

query I rowsort
SELECT 96 * col0 + ( - 81 * - col2 ) FROM tab2 AS cor0
----
10662
2859
9594

onlyif mysql # use DIV operator for integer division
query I rowsort label-2263
SELECT - + ( + col1 ) + ( + col2 ) * col0 + col2 DIV cor0.col1 AS col0 FROM tab2 cor0
----
158
1969
2987

skipif mysql # not compatible
query I rowsort label-2263
SELECT - + ( + col1 ) + ( + col2 ) * col0 + col2 / cor0.col1 AS col0 FROM tab2 cor0
----
158
1969
2987

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2264
SELECT + ( - col1 ) - CAST( col2 + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-124
-134
-205

skipif mysql # not compatible
query I rowsort label-2264
SELECT + ( - col1 ) - CAST ( col2 + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-124
-134
-205

query I rowsort
SELECT DISTINCT - - col2 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT 75 * - cor0.col2 + - 45 + + 73 * + col1 FROM tab2 AS cor0
----
-1654
193
2312

query I rowsort
SELECT ALL + 78 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 15 + col0 * ( - col2 ) ) col1 FROM tab2
----
-174
-2013
-2987

query I rowsort
SELECT DISTINCT + 48 FROM tab1, tab2 AS cor0
----
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2270
SELECT ALL - 50 + + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - 50 + + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 51 * + col2 + + col0 * + 91 + cor0.col2 * + 81 AS col0 FROM tab2 cor0
----
10530
12205
4201

query I rowsort
SELECT + 29 AS col0 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT ALL + cor0.col2 * col0 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT 22 + col1 * col0 FROM tab2 cor0
----
1365
239
4624

query I rowsort
SELECT - 41 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT DISTINCT + cor1.col0 * 80 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
560
6240
6320

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 * - col2 + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - 56 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT + col0 + tab1.col2 + ( - col1 ) FROM tab1
----
111
163
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col1 * 6 col2 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT col0 + - ( col0 ) * col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2283
SELECT DISTINCT col1 * col0 + CAST( - col2 AS SIGNED ) col0 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT col1 * col0 + CAST ( - col2 AS INTEGER ) col0 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * col2 col0 FROM tab0
----
3267
8118
99

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + col2 col1 FROM tab2
----
23
24
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 + - 61 AS col2 FROM tab0 AS cor0
----
-147
-152
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col2 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT + + cor0.col1 * 33 AS col1 FROM tab1 AS cor0
----
330
429
858

query I rowsort
SELECT + col1 * - col1 + col1 * col2 AS col1 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT col0 - - col2 * - tab1.col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * - col0 col2 FROM tab1
----
-30
-640
-800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2295
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 53 * col2 + + cor0.col0 + 57 FROM tab0 AS cor0
----
145
1830
4492

onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT ALL ( col0 ) + - col1 DIV + col1 FROM tab2 cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL ( col0 ) + - col1 / + col1 FROM tab2 cor0
----
6
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2298
SELECT DISTINCT + col1 * - col0 DIV - col0 + - ( col1 + - col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
-77
-799
815

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + col1 * - col0 / - col0 + - ( col1 + - col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
-77
-799
815

query I rowsort
SELECT ALL ( ( - tab0.col1 ) ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col2 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col2 * - col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL + 63 AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT - ( col0 ) * + 55 FROM tab0 AS cor0
----
-1320
-1925
-4895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * + 97 col1 FROM tab1
----
291
6208
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT col1 + - col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2305
SELECT col1 + - col0 / + col0 AS col2 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2306
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - 23 FROM tab1 AS cor0
----
31
34
73

query I rowsort
SELECT + col0 * + 61 * col2 AS col0 FROM tab2 AS cor0
----
11529
123708
183122

query I rowsort
SELECT - col1 * - col0 + - 22 * col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-12869
-18197
-29146

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2, tab2 AS cor0
----
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT - ( 36 ) * - col0 * CAST( NULL AS SIGNED ) + ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT - ( 36 ) * - col0 * CAST ( NULL AS INTEGER ) + ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 58 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

onlyif mysql # use DIV operator for integer division
query I rowsort label-2313
SELECT + + cor0.col1 DIV 47 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-2313
SELECT + + cor0.col1 / 47 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT ALL + - col0 + col1 * col2 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ALL - col2 * 21 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT - + col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + cor0.col0 * 3 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL - col0 + ( - col2 ) AS col0 FROM tab1 cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + ( + 83 ) col0 FROM tab1 AS cor0
----
-13
26
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2320
SELECT DISTINCT + col0 + + ( + col1 ) DIV col1 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + col0 + + ( + col1 ) / col1 AS col2 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2321
SELECT + cor0.col0 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2321
SELECT + cor0.col0 / col1 AS col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2322
SELECT DISTINCT + tab0.col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT + tab0.col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT CAST( + cor0.col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2323
SELECT CAST ( + cor0.col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + col2 + - col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + col1 - - col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2327
SELECT 39 / - cor0.col2 + + CAST( NULL AS SIGNED ) + + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT 39 / - cor0.col2 + + CAST ( NULL AS INTEGER ) + + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + col0 col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT - col2 DIV col0 + ( ( col2 ) ) + col1 AS col1 FROM tab0 AS cor0
----
118
173
98

skipif mysql # not compatible
query I rowsort label-2329
SELECT - col2 / col0 + ( ( col2 ) ) + col1 AS col1 FROM tab0 AS cor0
----
118
173
98

query I rowsort
SELECT + 0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 + 73 col2 FROM tab1 AS cor0
----
-5
-567
-967

query I rowsort
SELECT cor0.col2 + col2 * + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - ( - col1 ) + 46 * col1 + + col0 FROM tab2
----
1464
2851
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 * col0 * + 53 + - col1 * - col0 * + col0 + + col2 * + col0 * col0 col0 FROM tab1
----
243
358400
57344

onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT DISTINCT col1 + col2 DIV - col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT col1 + col2 / - col1 FROM tab1
----
24
5
6

query I rowsort
SELECT ALL - - 47 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT - + 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + col1 col1 FROM tab1 AS cor0
----
-10
-23
-26

query I rowsort
SELECT - 76 * - col1 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT ALL + 80 * col0 + tab0.col1 FROM tab0
----
2006
2897
7211

query I rowsort
SELECT ALL + 33 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * - col0 col0 FROM tab0 cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 24 col0 FROM tab0
----
1968
24
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT ALL col0 - - 62 DIV + col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL col0 - - 62 / + col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + + col2 + col2 * + 42 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT + cor0.col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - - col0 * + ( - 59 ) FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT DISTINCT col2 * 7 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT col1 + + tab2.col1 * col0 AS col1 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT - tab2.col1 DIV 90 + col1 * + 74 FROM tab2
----
1258
2294
4366

skipif mysql # not compatible
query I rowsort label-2351
SELECT - tab2.col1 / 90 + col1 * + 74 FROM tab2
----
1258
2294
4366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2352
SELECT ALL 36 * + ( - col2 ) - + CAST( - 73 AS SIGNED ) FROM tab2
----
-1295
-863
-899

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL 36 * + ( - col2 ) - + CAST ( - 73 AS INTEGER ) FROM tab2
----
-1295
-863
-899

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0

query I rowsort
SELECT ALL col2 * ( col1 + - 36 ) AS col1 FROM tab1 AS cor0
----
-1482
-2208
-540

query I rowsort
SELECT ALL - 87 * 32 AS col1 FROM tab1 cor0
----
-2784
-2784
-2784

onlyif mysql # use DIV operator for integer division
query I rowsort label-2356
SELECT + + 37 DIV 26 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2356
SELECT + + 37 / 26 AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT - + cor0.col0 + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - col1 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 * col0 + col0 * col1 col1 FROM tab1 AS cor0
----
231
3904
5120

query I rowsort
SELECT col1 * col1 - ( + col0 * + col0 ) AS col0 FROM tab1 AS cor0
----
-3996
-6231
667

query I rowsort
SELECT DISTINCT 78 + + col1 FROM tab2 cor0
----
109
137
95

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 - 45 AS col0 FROM tab2 AS cor0
----
-11
59
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT ALL + 84 - col0 DIV - 57 FROM tab0 AS cor0
----
84
84
85

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL + 84 - col0 / - 57 FROM tab0 AS cor0
----
84
84
85

query I rowsort
SELECT DISTINCT 21 + - col1 FROM tab0 AS cor0
----
-65
-70
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 + - col0 col1 FROM tab1 cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2366
SELECT ALL + + col0 * + cor0.col2 + - CAST( - 66 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
14016
3726
7410

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL + + col0 * + cor0.col2 + - CAST ( - 66 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
14016
3726
7410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2367
SELECT ALL - 34 + + col0 + + CAST( - col2 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
36
7353
782

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - 34 + + col0 + + CAST ( - col2 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
36
7353
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * - col1 col2 FROM tab2 AS cor0
----
-1003
-289
-527

query I rowsort
SELECT DISTINCT tab1.col0 * col2 + - col1 - col0 FROM tab1
----
133
3574
7587

query I rowsort
SELECT 88 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-8
31
34

query I rowsort
SELECT DISTINCT + 44 * cor0.col1 * - ( col2 ) + col0 FROM tab2 AS cor0
----
-28345
-36821
-67418

query I rowsort
SELECT col2 * col2 + col0 * - col0 AS col1 FROM tab0 cor0
----
-1197
-1224
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 + + col1 * col2 - col0 * - 90 col2 FROM tab0 AS cor0
----
23393
4472
5574

query I rowsort
SELECT - - col0 + + col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + 62 + + 24 * tab2.col2 + + col2 FROM tab2
----
1012
712
737

query I rowsort
SELECT ALL + 11 FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - col1 * + col0 * + ( col0 + col2 ) FROM tab1 AS cor0
----
-183040
-4446
-77440

onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
SELECT ALL col2 DIV - 29 FROM tab1 cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL col2 / - 29 FROM tab1 cor0
----
-1
-1
-3

query I rowsort
SELECT - col1 * 32 AS col0 FROM tab1 AS cor0
----
-320
-416
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col2 * cor0.col2 col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT 39 + + col1 AS col2 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT 42 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7438
8323
9451

query I rowsort
SELECT - - 11 AS col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT + 11 AS col2 FROM tab0 cor0
----
11
11
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT ALL - CAST( NULL AS DECIMAL ) + - col0 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL - CAST ( NULL AS REAL ) + - col0 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 36 ) FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + + col1 * + col0 - - col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + - ( + 46 ) AS col1 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - col1 + + 95 * + col2 * + ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-277046
-308665
-875533

query I rowsort
SELECT - 81 * - 57 * col2 AS col2 FROM tab0 AS cor0
----
152361
378594
4617

query I rowsort
SELECT - + 95 * col1 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT - col0 + - col1 + + 98 AS col0 FROM tab0 AS cor0
----
-12
-34
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2394
SELECT DISTINCT + 47 + col0 * - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2075
236
3049

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + 47 + col0 * - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2075
236
3049

query I rowsort
SELECT ALL - 51 * col2 FROM tab1 AS cor0
----
-2754
-2907
-4896

query I rowsort
SELECT + 87 + col1 * + col1 FROM tab1 AS cor0
----
187
256
763

query I rowsort
SELECT ALL - col1 * - cor0.col1 + - col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT + col2 * col0 + - 73 AS col2 FROM tab1 AS cor0
----
3575
7607
89

query I rowsort
SELECT DISTINCT col2 * col1 * 24 FROM tab2 AS cor0
----
15504
20088
36816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 + 93 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT DISTINCT cor0.col2 DIV 80 FROM tab1, tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT cor0.col2 / 80 FROM tab1, tab0 AS cor0
----
0
1

query I rowsort
SELECT + col1 + - 59 AS col2 FROM tab2 AS cor0
----
-28
-42
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2405
SELECT col1 * + col2 + + ( - col0 ) + CAST( NULL AS DECIMAL ) * + ( + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT col1 * + col2 + + ( - col0 ) + CAST ( NULL AS REAL ) * + ( + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT + - col2 + - 23 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-39

skipif mysql # not compatible
query I rowsort label-2406
SELECT + - col2 + - 23 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-39

query I rowsort
SELECT - col0 + 0 + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 28 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT 12 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - col0 * - col2 * col0 col1 FROM tab0 AS cor0
----
1226
19041
649604

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT + 41 AS col2 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT ALL col0 * col0 DIV ( 58 ) FROM tab2
----
0
104
107

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL col0 * col0 / ( 58 ) FROM tab2
----
0
104
107

query I rowsort
SELECT + 55 * + col1 - 53 * - col0 AS col0 FROM tab1 AS cor0
----
1589
3942
4955

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col0 - col0 * - col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - 6 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1450
-682
-735

query I rowsort
SELECT - col2 + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 * - col2 col0 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT DISTINCT ( - col0 ) DIV col0 + + col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT ( - col0 ) / col0 + + col1 FROM tab1
----
12
25
9

query I rowsort
SELECT - col1 + - cor0.col2 * col2 * col2 FROM tab2 AS cor0
----
-17635
-19714
-54889

query I rowsort
SELECT DISTINCT - + ( - cor0.col2 ) * - col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + 15 + col2 * col2 FROM tab0 AS cor0
----
-14
1074
6709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 + + col2 col1 FROM tab0 AS cor0
----
116
165
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT + cor0.col0 + - col2 DIV + col0 + col2 AS col2 FROM tab1 AS cor0
----
121
175
39

skipif mysql # not compatible
query I rowsort label-2425
SELECT + cor0.col0 + - col2 / + col0 + col2 AS col2 FROM tab1 AS cor0
----
121
175
39

query I rowsort
SELECT ALL + cor0.col1 * - 48 AS col2 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT - - col0 + col2 + cor0.col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT + cor0.col2 * 81 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
2184
2194
3157

query I rowsort
SELECT + col2 * col1 - - col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - + 34 * col1 AS col0 FROM tab1 AS cor0
----
-340
-442
-884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * + 93 * col1 col0 FROM tab2
----
-23715
-43245
-82305

query I rowsort
SELECT DISTINCT tab0.col2 * + 26 * col1 + col0 * col2 * - col0 + - tab0.col2 FROM tab0
----
-455592
1296
54747

query I rowsort
SELECT - + 33 + col1 AS col0 FROM tab2 AS cor0
----
-16
-2
26

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab0
----
-27

query I rowsort
SELECT + col1 + + 5 AS col1 FROM tab1 AS cor0
----
15
18
31

query I rowsort
SELECT DISTINCT + tab0.col0 * - tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + cor0.col2 * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2438
SELECT + col1 + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT + col1 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * ( + col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + + col2 + - 70 FROM tab1 AS cor0
----
-13
-16
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 50 col0 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT DISTINCT + - ( - ( + cor0.col0 ) ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT DISTINCT - col1 DIV + 6 AS col0 FROM tab2
----
-2
-5
-9

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - col1 / + 6 AS col0 FROM tab2
----
-2
-5
-9

query I rowsort
SELECT DISTINCT - + cor0.col2 + col2 * + cor0.col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2445
SELECT + CAST( 36 AS SIGNED ) - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1408
-640
-693

skipif mysql # not compatible
query I rowsort label-2445
SELECT + CAST ( 36 AS INTEGER ) - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1408
-640
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + cor0.col1 col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col2 + - 43 AS col0 FROM tab2 cor0
----
-16
-17
-5

query I rowsort
SELECT - tab2.col0 + - tab2.col1 AS col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ALL - + 35 * + col2 - + col1 * 28 AS col2 FROM tab0 AS cor0
----
-2751
-3563
-5418

query I rowsort
SELECT col0 * cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - + col0 * cor0.col2 - col0 * 97 AS col1 FROM tab0 AS cor0
----
-15931
-3120
-3430

query I rowsort
SELECT DISTINCT col1 * 75 - - col2 * col2 AS col2 FROM tab0
----
13549
7276
7539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - ( + col1 ) + - col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT col2 + ( - col1 ) AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT tab0.col2 * + col0 * - col2 AS col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + ( - col0 ) * + col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT ( + col0 ) * + col2 + + cor0.col2 * 9 * + col0 AS col2 FROM tab1 AS cor0
----
1620
36480
76800

query I rowsort
SELECT - cor0.col2 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + 54 * cor0.col2 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 + + col1 + + col2 AS col2 FROM tab0 AS cor0
----
1208
6897
99

query I rowsort
SELECT DISTINCT + col1 + - ( + col1 * - col1 + col0 ) AS col2 FROM tab1
----
102
46
699

query I rowsort
SELECT ALL col2 + + 22 AS col1 FROM tab2
----
48
49
60

query I rowsort
SELECT ALL - col1 + ( cor0.col2 ) * + col0 + col0 FROM tab1 cor0
----
139
3702
7747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 35 + - 17 col2 FROM tab0 AS cor0
----
1138
18
2853

query I rowsort
SELECT DISTINCT + col0 * - 91 FROM tab2 AS cor0
----
-637
-7098
-7189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col0 FROM tab1
----
-16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2468
SELECT ( + col2 ) - CAST( + col2 AS SIGNED ) * col1 * - col1 AS col2 FROM tab2
----
11020
25974
90532

skipif mysql # not compatible
query I rowsort label-2468
SELECT ( + col2 ) - CAST ( + col2 AS INTEGER ) * col1 * - col1 AS col2 FROM tab2
----
11020
25974
90532

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 08000767d0a951e4a7a7f8edda07fb64

query I rowsort
SELECT + col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 95 + col1 FROM tab2
----
112
126
154

query I rowsort
SELECT - tab0.col2 + + col0 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT ( col0 * col0 ) AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL col2 * + 46 FROM tab2 AS cor0
----
1196
1242
1748

onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT DISTINCT + col0 + col2 DIV 77 AS col0 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT + col0 + col2 / 77 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + cor0.col0 * 78 + ( + col1 ) FROM tab1 AS cor0
----
260
5002
6253

query I rowsort
SELECT + + col2 * - col1 + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 * - col1 col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + cor0.col2 + 85 * 16 FROM tab2 AS cor0
----
1386
1387
1398

query I rowsort
SELECT DISTINCT col0 + + 60 AS col2 FROM tab1 AS cor0
----
124
140
63

query I rowsort
SELECT ALL - col0 * col1 + 15 * + col0 FROM tab2 AS cor0
----
-112
-158
-3432

query I rowsort
SELECT DISTINCT col0 * 4 * - cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
-18349
-5355
-837

query I rowsort
SELECT ALL + - cor0.col2 + 4 - - ( col2 ) * - col2 FROM tab2 AS cor0
----
-1478
-698
-752

onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT ALL - - cor0.col2 * ( 53 ) + col1 DIV + col0 FROM tab2 AS cor0
----
1378
1435
2014

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - - cor0.col2 * ( 53 ) + col1 / + col0 FROM tab2 AS cor0
----
1378
1435
2014

query I rowsort
SELECT ALL + + col0 * 72 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
13639
146075
216161

query I rowsort
SELECT DISTINCT + col0 * + 66 + cor0.col2 AS col2 FROM tab2 AS cor0
----
489
5174
5252

query I rowsort
SELECT DISTINCT col0 - 41 * + 61 AS col2 FROM tab0 AS cor0
----
-2412
-2466
-2477

query I rowsort
SELECT 69 + + col2 FROM tab2
----
107
95
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT col1 DIV col0 col2 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2490
SELECT col1 / col0 col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT - col1 * ( tab0.col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL tab0.col0 * col2 * - col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + 92 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT DISTINCT 44 * + col2 AS col1 FROM tab0
----
1452
3608
44

query I rowsort
SELECT ALL + tab2.col0 * - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 99e52647357b835698a6730896ff820d

query I rowsort
SELECT - - cor0.col2 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col0 * cor0.col0 * + ( - col2 ) FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT col1 DIV - ( + col0 ) FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT col1 / - ( + col0 ) FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL - 73 FROM tab1, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ALL + + col2 + cor0.col1 * col2 + + cor0.col1 * - 54 FROM tab0 cor0
----
-1773
-5140
2630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab0, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL + + col0 * + ( + 40 ) + - col1 FROM tab0 AS cor0
----
1303
3469
874

query I rowsort
SELECT DISTINCT - - cor0.col2 * 87 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT DISTINCT - - ( col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT DISTINCT - ( col2 ) * + col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT - ( col2 ) * + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 30 + + col0 FROM tab0 AS cor0
----
119
54
65

query I rowsort
SELECT DISTINCT col1 + ( col0 + - col2 ) AS col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT - - 48 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
145
1670
4027

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2509
SELECT - + CAST( NULL AS SIGNED ) + ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT - + CAST ( NULL AS INTEGER ) + ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 98 AS col0 FROM tab0
----
3234
8036
98

query I rowsort
SELECT ( + col2 ) + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - 77 * col0 FROM tab1 cor0
----
-231
-4928
-6160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2513
SELECT - CAST( NULL AS SIGNED ) / 83 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT - CAST ( NULL AS INTEGER ) / 83 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 * + col1 AS col2 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT + 29 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT - col1 * + col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - tab2.col2 * - col1 - col0 * col1 * + col2 AS col0 FROM tab2
----
-118118
-5022
-50388

query I rowsort
SELECT col0 + - ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT ALL - ( - tab2.col1 ) DIV + tab2.col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - ( - tab2.col1 ) / + tab2.col0 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL - tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT ( - 46 ) * cor0.col1 + col2 FROM tab2 AS cor0
----
-1399
-2688
-744

onlyif mysql # use DIV operator for integer division
query I rowsort label-2523
SELECT col1 DIV - col1 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1445
-677
-730

skipif mysql # not compatible
query I rowsort label-2523
SELECT col1 / - col1 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1445
-677
-730

query I rowsort
SELECT ALL 78 + col2 * col0 * col1 FROM tab2 AS cor0
----
119730
51112
5937

query I rowsort
SELECT DISTINCT + - ( + cor0.col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT ALL - cor0.col1 + - col1 DIV col0 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - cor0.col1 + - col1 / col0 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT DISTINCT + + col1 * + col2 + - col1 AS col1 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + col1 * + 31 AS col0 FROM tab1
----
310
403
806

query I rowsort
SELECT ( - 39 ) * col2 AS col1 FROM tab2
----
-1014
-1053
-1482

query I rowsort
SELECT ALL - col2 * + cor0.col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 - + col0 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col0 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + 51 * col2 - col1 * + col2 FROM tab0 AS cor0
----
-1155
-3280
-46

query I rowsort
SELECT - + ( + col0 ) + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL 48 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2790
-49
-7414

query I rowsort
SELECT + col2 * ( 81 ) AS col2 FROM tab1 AS cor0
----
4374
4617
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2537
SELECT - col0 DIV - col1 + + tab2.col1 AS col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-2537
SELECT - col0 / - col1 + + tab2.col1 AS col1 FROM tab2
----
21
31
60

query I rowsort
SELECT col1 + 21 * + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
193549
61262
68239

onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT - col1 DIV + 93 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2539
SELECT - col1 / + 93 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 + + col0 * 23 FROM tab0 cor0
----
1958
528
770

query I rowsort
SELECT col2 + + 85 - + col2 * - col0 FROM tab1 AS cor0
----
301
3790
7861

query I rowsort
SELECT + 14 + - ( + col2 ) FROM tab2 AS cor0
----
-12
-13
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT - col0 + cor0.col0 DIV col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-2543
SELECT - col0 + cor0.col0 / col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT DISTINCT + 82 * col0 * - col2 FROM tab1 AS cor0
----
-13284
-299136
-629760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - cor0.col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + + 36 AS col2 FROM tab1 AS cor0
----
10
23
26

query I rowsort
SELECT DISTINCT tab2.col2 - col0 * col2 AS col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT col1 + col0 + + 54 FROM tab0
----
164
186
234

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2549
SELECT ALL col1 * + col1 - CAST( NULL AS SIGNED ) / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL col1 * + col1 - CAST ( NULL AS INTEGER ) / col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col0 + col0 * col0 * cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
14433
44101
712972

query I rowsort
SELECT ALL + col0 * - ( - col2 * col1 ) - col0 * cor0.col1 FROM tab0 AS cor0
----
0
656019
66048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2552
SELECT ALL - - cor0.col1 * CAST( ( col0 ) AS SIGNED ) FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - - cor0.col1 * CAST ( ( col0 ) AS INTEGER ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + - col1 * + col2 + col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT DISTINCT - 76 - col0 AS col2 FROM tab1
----
-140
-156
-79

query I rowsort
SELECT + col1 * + col0 + - ( col0 ) * + col2 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT ALL + 68 * - col2 - col0 AS col1 FROM tab0
----
-103
-2268
-5665

query I rowsort
SELECT ALL - 49 - - col2 AS col0 FROM tab1
----
47
5
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2558
SELECT ALL col2 + - CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + 43 + + col1 FROM tab0 AS cor0
----
153
175
223

query I rowsort
SELECT DISTINCT col2 + + col0 * 78 FROM tab1
----
288
5049
6336

query I rowsort
SELECT DISTINCT + col2 + - ( + 63 ) FROM tab1 AS cor0
----
-6
-9
33

query I rowsort
SELECT ALL + col2 + 92 * + 48 + cor0.col1 FROM tab1 AS cor0
----
4483
4496
4525

query I rowsort
SELECT + col2 * + 57 + - col1 FROM tab1 AS cor0
----
3052
3239
5459

query I rowsort
SELECT + + col1 * 45 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT DISTINCT + col0 + - ( col0 ) AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT cor0.col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col2 + - col2 * - 81 AS col1 FROM tab2 AS cor0
----
2132
2214
3116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2568
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + col1 * - 93 FROM tab2 AS cor0
----
-1619
-2910
-5513

query I rowsort
SELECT DISTINCT + - cor0.col1 + + 38 FROM tab1 AS cor0
----
12
25
28

query I rowsort
SELECT ALL col1 * - col0 + - col0 * cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
-15315
-2823
-3429

query I rowsort
SELECT + - col1 * - 52 FROM tab0 AS cor0
----
4472
4732
5044

query I rowsort
SELECT ALL + col2 + + 58 FROM tab0 AS cor0
----
140
59
91

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-2575
SELECT DISTINCT + col1 DIV - cor0.col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT + col1 / - cor0.col1 FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + ( - col1 ) AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - col1 + col0 * 36 FROM tab0 AS cor0
----
1163
3113
778

query I rowsort
SELECT DISTINCT 87 * col1 + + col2 AS col0 FROM tab0 cor0
----
7515
7999
8440

query I rowsort
SELECT ( - col1 ) * - ( cor0.col2 ) * col0 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 78 * + col2 AS col1 FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT ALL 24 * tab2.col1 FROM tab2
----
1416
408
744

query I rowsort
SELECT ALL 60 + col0 FROM tab0 AS cor0
----
149
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col2 * + ( col2 ) col1 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL - + cor0.col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + + col1 - cor0.col0 AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL 97 * - col1 FROM tab2 AS cor0
----
-1649
-3007
-5723

query I rowsort
SELECT DISTINCT + - 5 * - col1 FROM tab1 cor0
----
130
50
65

query I rowsort
SELECT DISTINCT - + 15 * col2 AS col2 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT - col0 + col2 * + col0 - - col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2590
SELECT + col2 + - cor0.col2 DIV - col1 + - cor0.col0 * col1 * - col2 col1 FROM tab2 AS cor0
----
119678
51074
5886

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2590
SELECT + col2 + - cor0.col2 / - col1 + - cor0.col0 * col1 * - col2 col1 FROM tab2 AS cor0
----
119678
51074
5886

query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + - ( - 8 ) FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT + 48 + ( col2 ) AS col1 FROM tab0 AS cor0
----
130
49
81

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - - 65 + col1 * col1 FROM tab1 AS cor0
----
165
234
741

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 66 + - col0 * - col2 AS col1 FROM tab2
----
2094
255
3068

query I rowsort
SELECT - ( - tab1.col1 ) + + col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT + 13 + col2 FROM tab0
----
14
46
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT + 11 DIV - col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2600
SELECT + 11 / - col1 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 59 + col2 * + col0 FROM tab1 cor0
----
221
3707
7739

query I rowsort
SELECT - ( col2 ) + col0 + col1 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT DISTINCT + tab0.col2 * + 48 FROM tab0
----
1584
3936
48

query I rowsort
SELECT - col1 * + 97 + tab2.col0 FROM tab2
----
-1570
-3000
-5645

query I rowsort
SELECT + ( cor0.col1 ) + col2 * cor0.col2 + + 68 FROM tab2 AS cor0
----
1529
803
828

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT - ( + col1 ) + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + ( + 42 ) AS col2 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT 61 + - col1 AS col0 FROM tab1
----
35
48
51

query I rowsort
SELECT - ( + col1 ) * ( cor0.col2 * col1 ) FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2611
SELECT ALL CAST( - col2 AS SIGNED ) DIV col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL CAST ( - col2 AS INTEGER ) / col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT + col1 + + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT - col0 * - col0 + col1 * col0 + + 42 AS col2 FROM tab1 cor0
----
129
4778
7482

query I rowsort
SELECT DISTINCT - 59 + col0 FROM tab2 AS cor0
----
-52
19
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 col2 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + col1 + col2 * col1 ) col1 FROM tab1 AS cor0
----
16393
37180
5800

query I rowsort
SELECT ALL col2 * + col1 * + col1 FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + col2 * + col2 col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT - + 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

query I rowsort
SELECT ALL + ( 49 + - tab2.col2 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cfd0937a2d6d645641ff8e0c9b737544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2621
SELECT DISTINCT col2 + + CAST( 7 AS SIGNED ) FROM tab0
----
40
8
89

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT col2 + + CAST ( 7 AS INTEGER ) FROM tab0
----
40
8
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT DISTINCT + - col1 * CAST( NULL AS DECIMAL ) + 27 * + col2 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT + - col1 * CAST ( NULL AS REAL ) + 27 * + col2 AS col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col1 * 43 col0 FROM tab0 AS cor0
----
3665
3831
4170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2624
SELECT ALL col2 + - CAST( col0 + + col1 * 29 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2485
-2646
-2847

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL col2 + - CAST ( col0 + + col1 * 29 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2485
-2646
-2847

query I rowsort
SELECT - col1 - + 39 * cor0.col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT ALL + col1 * + cor0.col0 + + 20 FROM tab2 cor0
----
1363
237
4622

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * - 10 AS col2 FROM tab1 AS cor0
----
-29160
-32490
-92160

query I rowsort
SELECT DISTINCT - col1 * + ( + 66 ) + - col0 * + 47 AS col0 FROM tab0 AS cor0
----
-10189
-6804
-8047

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT ALL + col1 DIV + 65 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + col1 / + 65 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + tab0.col0 + + 44 FROM tab0, tab1 AS cor0
----
133
68
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2631
SELECT + col0 + - col1 DIV + col1 AS col2 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2631
SELECT + col0 + - col1 / + col1 AS col2 FROM tab2
----
6
77
78

query I rowsort
SELECT - 84 + col1 * - col1 FROM tab0 cor0
----
-7480
-8365
-9493

query I rowsort
SELECT - col2 * - col0 - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - 50 - col1 col0 FROM tab0 AS cor0
----
-1286
-1847
-4541

onlyif mysql # use DIV operator for integer division
query I rowsort label-2635
SELECT + - 62 * col1 + cor0.col0 DIV 46 AS col2 FROM tab0 AS cor0
----
-5332
-5641
-6014

skipif mysql # not compatible
query I rowsort label-2635
SELECT + - 62 * col1 + cor0.col0 / 46 AS col2 FROM tab0 AS cor0
----
-5332
-5641
-6014

query I rowsort
SELECT col0 + col0 - - col1 * - col2 * - col1 FROM tab2
----
11140
25961
90662

query I rowsort
SELECT + col0 - - 75 FROM tab0 cor0
----
110
164
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2638
SELECT ALL - - col1 * - col2 + + cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL - - col1 * - col2 + + cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT cor0.col0 * 30 - col2 FROM tab2 cor0
----
183
2314
2332

query I rowsort
SELECT DISTINCT + col1 * - col0 - col0 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - 51 col0 FROM tab2 AS cor0
----
-129
-130
-58

query I rowsort
SELECT DISTINCT + 51 * col0 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT ALL col2 * + col1 * + col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT col1 * col1 + col1 + - col2 FROM tab1 AS cor0
----
53
648
86

query I rowsort
SELECT + col0 + col0 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-512
-72
-880

query I rowsort
SELECT DISTINCT - 40 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2648
SELECT DISTINCT ( cor1.col1 ) DIV + cor1.col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0
8

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT ( cor1.col1 ) / + cor1.col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0
8

query I rowsort
SELECT ALL cor0.col2 - + col1 * - col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL - 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + cor0.col1 * + col2 FROM tab2 AS cor0
----
1054
1989
6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT - col2 * col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-115
-50
-972

skipif mysql # not compatible
query I rowsort label-2652
SELECT - col2 * col2 / + col0 AS col2 FROM tab1 AS cor0
----
-115
-50
-972

onlyif mysql # use DIV operator for integer division
query I rowsort label-2653
SELECT - col0 + - col0 DIV cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2653
SELECT - col0 + - col0 / cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col2 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL col1 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col2 * col0 + + col0 * - col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT DISTINCT - tab0.col2 DIV col1 - - col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT - tab0.col2 / col1 - - col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col2 * - col2 - tab2.col1 * + col1 AS col1 FROM tab2
----
-232
-2805
1155

query I rowsort
SELECT 25 * + col0 AS col1 FROM tab1 cor0
----
1600
2000
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - tab2.col2 col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col2 - col2 * col0 AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - tab2.col1 * + col1 AS col2 FROM tab2 WHERE NOT ( - col1 ) < NULL
----

query I rowsort
SELECT ALL + col2 + col0 * - col1 AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL + col2 + + col0 FROM tab0 WHERE NOT ( NULL ) IN ( - col2 + - tab0.col0 )
----

query I rowsort
SELECT + col2 + col2 - + col1 FROM tab2
----
-7
23
59

query I rowsort
SELECT DISTINCT + col2 * col2 + col2 * col0 AS col2 FROM tab2
----
2704
4446
918

query I rowsort
SELECT col2 - + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 + + col1 * + col2 * + tab1.col1 col0 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT DISTINCT - col2 + + tab2.col2 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 - + col0 FROM tab0 WHERE ( col0 ) NOT IN ( col2 + col2 + col0 * + col0 )
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * col0 AS col1 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT 99 * + col2 AS col2 FROM tab0 AS cor0
----
3267
8118
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2676
SELECT + col1 * col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT + col1 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT - col2 + col1 DIV - col0 FROM tab1
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-2677
SELECT - col2 + col1 / - col0 FROM tab1
----
-57
-62
-96

query I rowsort
SELECT 88 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT - 45 + col1 AS col0 FROM tab0 AS cor0
----
41
46
52

query I rowsort
SELECT col0 + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT DISTINCT + tab2.col0 - + col2 * - tab2.col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL - col2 + - col1 * - tab1.col2 * + tab1.col0 AS col1 FROM tab1
----
36423
4158
99744

query I rowsort
SELECT DISTINCT - col0 * col1 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col0 - - col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) = ( tab0.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + col1 + - col2 + col2 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL IN ( col1 - col0 )
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NULL <= ( - col1 / + col2 )
----

query I rowsort
SELECT - col0 * + col1 + - col2 AS col1 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL - col2 * - tab0.col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT tab2.col2 * col1 FROM tab2 WHERE NULL = + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN ( NULL ) AND ( col0 + col0 * + col2 )
----

query I rowsort
SELECT + col2 * col2 + - col1 AS col0 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT + col0 * col2 * col1 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT tab2.col2 + col2 * + col2 + col2 AS col0 FROM tab2
----
1520
728
783

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( col1 + + col0 + - col0 )
----

query I rowsort
SELECT tab0.col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col0 - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 + - col2 * - col1 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 + + tab2.col2 + col2 FROM tab2
----
111
85
93

query I rowsort
SELECT ALL col1 + + col1 + col0 FROM tab1
----
106
55
84

query I rowsort
SELECT ALL - col1 * col1 + col0 * tab0.col1 - col2 FROM tab0
----
-264
-5365
-6015

query I rowsort
SELECT 2 * - col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - 95 + + col1 FROM tab0 AS cor0
----
-4
-9
2

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 + + col1 + col2 AS col1 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT col2 + col2 * - ( + cor0.col1 ) FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 - 7 col1 FROM tab0 cor0
----
-42
-7305
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT + col0 - col1 DIV 51 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2709
SELECT + col0 - col1 / 51 AS col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT - col0 * - ( col0 ) * + col0 + col2 AS col2 FROM tab1 AS cor0
----
262201
512096
81

query I rowsort
SELECT - + cor0.col0 * 45 + 71 * col0 AS col2 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT - col2 * + col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - col2 + + 8 AS col1 FROM tab1 cor0
----
-46
-49
-88

query I rowsort
SELECT DISTINCT + + 64 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
64

query I rowsort
SELECT DISTINCT - 30 + col0 AS col1 FROM tab2
----
-23
48
49

query I rowsort
SELECT ALL - + ( + 81 ) * + col0 + + col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
-165
-4544
-5440

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + - 77 + 34 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT - + col0 DIV 52 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT - + col0 / 52 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT - - cor0.col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL 48 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + col1 * + 10 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT - 12 + col2 AS col2 FROM tab0
----
-11
21
70

query I rowsort
SELECT + 75 + + col0 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT - col1 + col2 * - 62 AS col0 FROM tab1 AS cor0
----
-3374
-3544
-5965

query I rowsort
SELECT + 15 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT DISTINCT + ( - 43 * col2 ) AS col2 FROM tab0
----
-1419
-3526
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( tab2.col0 ) col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL tab0.col1 * + tab0.col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT - col0 * col2 DIV CAST( 86 AS SIGNED ) FROM tab2 AS cor0
----
-2
-23
-34

skipif mysql # not compatible
query I rowsort label-2730
SELECT - col0 * col2 / CAST ( 86 AS INTEGER ) FROM tab2 AS cor0
----
-2
-23
-34

query I rowsort
SELECT 39 * + col1 FROM tab1
----
1014
390
507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 * - col0 col2 FROM tab2 AS cor0
----
-28
-312
-316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 * col0 col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 6 - col1 * - 39 FROM tab2
----
1203
2295
657

query I rowsort
SELECT + col1 * col2 + tab2.col2 * - col0 * col0 AS col0 FROM tab2
----
-156650
-236512
-486

onlyif mysql # use DIV operator for integer division
query I rowsort label-2736
SELECT ALL ( + col1 ) DIV 54 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL ( + col1 ) / 54 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT 82 + + cor0.col1 * - 27 AS col1 FROM tab0 AS cor0
----
-2240
-2375
-2537

query I rowsort
SELECT - + 85 * col2 FROM tab2 AS cor0
----
-2210
-2295
-3230

query I rowsort
SELECT ALL - tab2.col1 * + col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - col2 * col2 * - 63 AS col2 FROM tab1
----
183708
204687
580608

query I rowsort
SELECT + 49 + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1089
127
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-2742
SELECT + col2 * - col0 + - col1 DIV + col1 FROM tab0 AS cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-2742
SELECT + col2 * - col0 + - col1 / + col1 FROM tab0 AS cor0
----
-36
-7299
-793

query I rowsort
SELECT DISTINCT - col2 * 58 + - cor0.col0 FROM tab1 AS cor0
----
-3135
-3370
-5648

query I rowsort
SELECT ALL - col1 * - 82 AS col2 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT ALL ( 36 ) FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT col0 * - col1 + + col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT ( col0 * col2 ) - col0 AS col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT + col2 * 4 AS col2 FROM tab2 AS cor0
----
104
108
152

query I rowsort
SELECT + + ( col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 + + col0 col2 FROM tab0 AS cor0
----
-33
-44
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT col1 DIV + ( + cor0.col1 ) + cor0.col0 * ( - col2 + - cor0.col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-1328235
-136223
-6789

skipif mysql # not compatible
query I rowsort label-2751
SELECT col1 / + ( + cor0.col1 ) + cor0.col0 * ( - col2 + - cor0.col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-1328235
-136223
-6789

query I rowsort
SELECT DISTINCT - 7 + - col2 * + col2 FROM tab2 AS cor0
----
-1451
-683
-736

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT - + CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT - + CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT col2 * col2 DIV - col0 FROM tab1 AS cor0
----
-115
-50
-972

skipif mysql # not compatible
query I rowsort label-2755
SELECT col2 * col2 / - col0 FROM tab1 AS cor0
----
-115
-50
-972

query I rowsort
SELECT + col1 * 89 AS col1 FROM tab2 cor0
----
1513
2759
5251

query I rowsort
SELECT DISTINCT - + col1 * ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col1 * 33 + - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-1240
-1904
-6549

query I rowsort
SELECT DISTINCT col2 + 78 * col1 - + col0 * + 61 FROM tab2 AS cor0
----
-130
-3455
2018

query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col2 - cor0.col2 * col2 * col0 AS col2 FROM tab0 AS cor0
----
-26017
-598263
63

query I rowsort
SELECT + ( - 90 ) FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL - col1 * + cor0.col2 + cor0.col1 AS col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT + 93 * + col2 AS col2 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT ALL + col2 * 64 * - col2 FROM tab0 AS cor0
----
-430336
-64
-69696

onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT DISTINCT - 45 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - 45 / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 46 + col0 AS col2 FROM tab1 AS cor0
----
110
126
49

query I rowsort
SELECT ALL ( col0 ) * col0 * + col0 FROM tab1 AS cor0
----
262144
27
512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 col2 FROM tab1 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + - 25 * col0 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT tab1.col0 * col2 + 38 FROM tab1
----
200
3686
7718

query I rowsort
SELECT + tab0.col1 * + 81 FROM tab0, tab2, tab0 cor0
----
27 values hashing to f35183e92b95d83214fa5d40535efddb

query I rowsort
SELECT col1 * + col1 - col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT col2 + col0 * - col2 AS col2 FROM tab1
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2775
SELECT DISTINCT + - 96 * + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT + - 96 * + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - cor0.col0 * col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - 80 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT DISTINCT 65 * col1 FROM tab2 AS cor0
----
1105
2015
3835

query I rowsort
SELECT - - ( col1 ) + col2 * - ( col0 ) + - col1 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - 34 + - col0 FROM tab2 AS cor0
----
-112
-113
-41

query I rowsort
SELECT ALL - + col2 + col1 * 70 AS col2 FROM tab0 AS cor0
----
5987
6288
6789

query I rowsort
SELECT ALL - 46 FROM tab0, tab2 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT + 96 * col2 - col0 FROM tab0 AS cor0
----
3144
61
7783

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) AS col1 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2785
SELECT DISTINCT col1 * CAST( + 14 AS SIGNED ) FROM tab1 AS cor0
----
140
182
364

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT col1 * CAST ( + 14 AS INTEGER ) FROM tab1 AS cor0
----
140
182
364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2786
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - + col1 * - 66 AS col1 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT - + col0 + col1 * ( col1 ) FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT + 43 * - cor0.col2 FROM tab1 cor0
----
-2322
-2451
-4128

query I rowsort
SELECT + + col1 * ( col0 ) FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT - cor0.col0 + + 46 + - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-33
-34
38

skipif mysql # not compatible
query I rowsort label-2791
SELECT - cor0.col0 + + 46 + - col1 / col1 AS col1 FROM tab2 AS cor0
----
-33
-34
38

query I rowsort
SELECT cor0.col1 + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + - col2 * - col0 + - ( - cor0.col2 ) FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT + cor0.col2 + - 59 AS col2 FROM tab2 AS cor0
----
-21
-32
-33

query I rowsort
SELECT - tab1.col0 + + 72 - + cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 86ecbba427d9d66c9fbd909327d4c147

onlyif mysql # use DIV operator for integer division
query I rowsort label-2796
SELECT - col0 DIV col2 + 47 + 87 * col2 FROM tab1
----
4745
5005
8399

skipif mysql # not compatible
query I rowsort label-2796
SELECT - col0 / col2 + 47 + 87 * col2 FROM tab1
----
4745
5005
8399

onlyif mysql # use DIV operator for integer division
query I rowsort label-2797
SELECT + tab0.col1 + col2 + 37 DIV - tab0.col1 AS col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2797
SELECT + tab0.col1 + col2 + 37 / - tab0.col1 AS col2 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT col1 + + col2 + col2 DIV ( col0 + - 57 ) FROM tab1
----
113
75
79

skipif mysql # not compatible
query I rowsort label-2798
SELECT col1 + + col2 + col2 / ( col0 + - 57 ) FROM tab1
----
113
75
79

query I rowsort
SELECT 78 + 24 FROM tab0, tab1 cor0
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT - - col2 + col1 + col0 FROM tab2 cor0
----
134
163
65

query I rowsort
SELECT ALL - - col1 * cor0.col1 + + col2 AS col2 FROM tab2 cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + col1 + - col1 col1 FROM tab2 AS cor0
----
3500
351
937

query I rowsort
SELECT DISTINCT + col2 * ( 19 ) AS col1 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT - - col1 + col1 + + col2 AS col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT DISTINCT + col0 + 48 FROM tab2 cor0
----
126
127
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT - col0 DIV col0 + + col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2806
SELECT - col0 / col0 + + col0 FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col1 * col0 * - ( + 8 ) col1 FROM tab2
----
10761
1767
36875

onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT ALL - 74 + col2 DIV cor0.col1 FROM tab1 AS cor0
----
-67
-69
-72

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL - 74 + col2 / cor0.col1 FROM tab1 AS cor0
----
-67
-69
-72

query I rowsort
SELECT DISTINCT + + 94 * cor0.col1 + - col0 FROM tab2 AS cor0
----
1519
2907
5468

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 + 95 col0 FROM tab1
----
95
95
95

query I rowsort
SELECT - cor0.col1 + 96 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 64f3599068f55ac327c651bfcfc9128f

query I rowsort
SELECT ALL + - 71 * + col2 + 0 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT col2 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + col1 + col1 + + col2 AS col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT + cor0.col1 * + col1 + - col0 * - col0 + - col1 FROM tab1 AS cor0
----
4186
6556
659

onlyif mysql # use DIV operator for integer division
query I rowsort label-2817
SELECT ALL - col1 + - col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - col1 + - col1 / + col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col0 * + col1 * + 92 FROM tab2
----
-123556
-19964
-423384

query I rowsort
SELECT ALL + 37 + col0 * - ( - col2 ) + col0 AS col1 FROM tab2 cor0
----
2143
233
3118

query I rowsort
SELECT + 2 * - col0 - col1 FROM tab0 AS cor0
----
-134
-167
-269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2821
SELECT - + col2 / - col2 - - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT - + col2 / - col2 - - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - cor0.col0 ) * + col0 + 46 AS col1 FROM tab2 AS cor0
----
-3
-6038
-6195

query I rowsort
SELECT DISTINCT - + col0 * col1 + - cor0.col0 * - col2 * col1 FROM tab1 AS cor0
----
35840
4134
98800

query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 18 FROM tab1, tab0 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * col0 col2 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + + col1 + + 7 AS col0 FROM tab2 AS cor0
----
24
38
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2828
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col0 + col2 - - 84 AS col1 FROM tab0 AS cor0
----
120
141
255

query I rowsort
SELECT DISTINCT + col2 + 96 * + col0 AS col0 FROM tab0 AS cor0
----
2337
3361
8626

query I rowsort
SELECT ALL - - 38 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - + col0 + - 72 FROM tab1 AS cor0
----
-136
-152
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT + col1 DIV 18 FROM tab0 AS cor0
----
4
5
5

skipif mysql # not compatible
query I rowsort label-2833
SELECT + col1 / 18 FROM tab0 AS cor0
----
4
5
5

query I rowsort
SELECT ALL col0 * col2 - - col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - - 16 FROM tab2, tab0, tab1 AS cor0
----
16

query I rowsort
SELECT ALL 49 * - tab0.col1 FROM tab0
----
-4214
-4459
-4753

query I rowsort
SELECT DISTINCT + - 28 * col1 - 94 AS col0 FROM tab0 AS cor0
----
-2502
-2642
-2810

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT 11 + - col2 DIV + col0 FROM tab2 AS cor0
----
11
11
8

skipif mysql # not compatible
query I rowsort label-2838
SELECT 11 + - col2 / + col0 FROM tab2 AS cor0
----
11
11
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT - - cor0.col2 DIV col1 + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-2839
SELECT - - cor0.col2 / col1 + col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT DISTINCT - 80 * + cor1.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-1360
-2480
-4720

query I rowsort
SELECT + col1 * - 79 AS col1 FROM tab0
----
-6794
-7189
-7663

query I rowsort
SELECT + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col2 * + col1 + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col1 + + col1 - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab0, tab0 AS cor0
----
81

query I rowsort
SELECT ALL 30 * + col1 FROM tab2 AS cor0
----
1770
510
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2848
SELECT ALL - CAST( 84 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-2772
-6888
-84

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - CAST ( 84 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-2772
-6888
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT ALL + - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL + - col0 / col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT + ( col1 ) DIV col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2850
SELECT + ( col1 ) / col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + col1 + + ( + tab2.col1 ) FROM tab2
----
118
34
62

query I rowsort
SELECT ALL + col0 * + 97 FROM tab2
----
679
7566
7663

query I rowsort
SELECT ALL - col0 * ( - col0 ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT - + 55 + + col1 + - ( 20 ) AS col1 FROM tab1 AS cor0
----
-49
-62
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2856
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 51 + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 51 + col1 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2858
SELECT - ( - col2 ) * CAST( + 46 AS SIGNED ) + col1 FROM tab1 AS cor0
----
2510
2632
4429

skipif mysql # not compatible
query I rowsort label-2858
SELECT - ( - col2 ) * CAST ( + 46 AS INTEGER ) + col1 FROM tab1 AS cor0
----
2510
2632
4429

query I rowsort
SELECT - 7 + col0 AS col2 FROM tab0
----
17
28
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT + 25 DIV + 61 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT + 25 / + 61 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + 60 + col0 * + 25 * - col2 AS col1 FROM tab1 AS cor0
----
-191940
-3990
-91140

query I rowsort
SELECT 68 + + cor0.col0 * + 88 AS col0 FROM tab2 cor0
----
684
6932
7020

onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT ( col2 ) DIV - ( + col0 ) + - tab2.col1 FROM tab2
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-2864
SELECT ( col2 ) / - ( + col0 ) + - tab2.col1 FROM tab2
----
-17
-34
-59

query I rowsort
SELECT + + 41 * col0 * 12 FROM tab1 AS cor0
----
1476
31488
39360

query I rowsort
SELECT ALL - 91 + col2 * + col0 FROM tab2
----
1937
2911
98

query I rowsort
SELECT ALL col2 + - 24 AS col0 FROM tab0
----
-23
58
9

query I rowsort
SELECT + col1 * - tab0.col2 - + col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT ALL 10 FROM tab1, tab1 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT 17 * + 68 + col2 * - 53 FROM tab2
----
-222
-275
-858

query I rowsort
SELECT ALL + 4 * cor0.col0 - - col0 AS col0 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT ALL - cor0.col0 * ( + cor0.col2 ) * - col1 + 96 FROM tab0 AS cor0
----
3491
664214
68208

query I rowsort
SELECT + ( + ( + col0 ) ) AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT - col1 + 89 + col1 FROM tab0
----
89
89
89

query I rowsort
SELECT + col0 * + 85 FROM tab2
----
595
6630
6715

onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT + cor0.col1 * col1 + - col0 DIV - 41 FROM tab1 cor0
----
101
170
676

skipif mysql # not compatible
query I rowsort label-2876
SELECT + cor0.col1 * col1 + - col0 / - 41 FROM tab1 cor0
----
101
170
676

query I rowsort
SELECT ALL - + col1 - - col1 * 15 FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT 16 + + col1 * col0 FROM tab1 AS cor0
----
1056
656
94

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - + 19 * + col2 FROM tab0 AS cor0
----
-1558
-19
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT ALL - 69 DIV col0 FROM tab1 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - 69 / col0 FROM tab1 AS cor0
----
-1
-23
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT 22 * + col0 + + col1 DIV ( col1 ) AS col1 FROM tab1 AS cor0
----
1409
1761
67

skipif mysql # not compatible
query I rowsort label-2882
SELECT 22 * + col0 + + col1 / ( col1 ) AS col1 FROM tab1 AS cor0
----
1409
1761
67

query I rowsort
SELECT DISTINCT + 73 + + col2 * 10 * 57 AS col2 FROM tab0 AS cor0
----
18883
46813
643

query I rowsort
SELECT ALL cor0.col2 * + col0 * col1 + - 62 FROM tab1 AS cor0
----
36418
4150
99778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2885
SELECT DISTINCT + - col2 * col2 - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1482
-702
-756

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT + - col2 * col2 - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT cor0.col1 + + col0 * + 55 AS col0 FROM tab1 AS cor0
----
191
3530
4413

query I rowsort
SELECT DISTINCT col1 * col1 + col1 + 28 AS col2 FROM tab0 AS cor0
----
7510
8400
9534

query I rowsort
SELECT ALL + ( - col0 ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT DISTINCT 2 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT 2 / - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col2 * + 87 + col0 AS col2 FROM tab1
----
-4695
-4895
-8272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 41 + + col2 col1 FROM tab1 AS cor0
----
13
16
55

query I rowsort
SELECT ALL col1 * + col0 * ( col2 ) AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - 90 * - col1 + 38 AS col1 FROM tab1 AS cor0
----
1208
2378
938

onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT ALL + cor0.col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL + cor0.col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 21 + cor0.col0 * 81 AS col0 FROM tab0 AS cor0
----
1965
2856
7230

query I rowsort
SELECT DISTINCT - - 51 + col1 * col1 FROM tab1 AS cor0
----
151
220
727

query I rowsort
SELECT + cor0.col1 + ( + col0 ) FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2898
SELECT + col1 - - 40 DIV - 44 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2898
SELECT + col1 - - 40 / - 44 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col1 - col0 * + col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT ALL col2 * + 30 AS col1 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT ALL + col0 * - 27 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT DISTINCT + col1 + col2 * - 41 AS col0 FROM tab1 AS cor0
----
-2188
-2327
-3923

query I rowsort
SELECT ALL + + col1 * + 87 AS col0 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT col2 * - 26 FROM tab1 AS cor0
----
-1404
-1482
-2496

query I rowsort
SELECT DISTINCT + col1 * + 29 FROM tab0 AS cor0
----
2494
2639
2813

onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT ALL col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 12 * - cor0.col2 AS col1 FROM tab0 cor0
----
-12
-396
-984

query I rowsort
SELECT - + 91 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-253
-3739
-7771

query I rowsort
SELECT DISTINCT + 42 * + col0 AS col1 FROM tab0 cor0
----
1008
1470
3738

query I rowsort
SELECT 93 * - col2 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-15088
-190
-5907

query I rowsort
SELECT - 48 FROM tab2, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) * - col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT cor0.col1 * - 69 AS col1 FROM tab2 cor0
----
-1173
-2139
-4071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2914
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / - 40 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / - 40 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT + col0 DIV 2 - - col0 DIV 70 FROM tab0 AS cor0
----
12
17
45

skipif mysql # not compatible
query I rowsort label-2915
SELECT + col0 / 2 - - col0 / 70 FROM tab0 AS cor0
----
12
17
45

query I rowsort
SELECT DISTINCT - 9 * 57 FROM tab0 cor0
----
-513

query I rowsort
SELECT + 49 * - col2 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT - - 62 * - col1 AS col2 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT - + col2 * + 80 AS col0 FROM tab1 AS cor0
----
-4320
-4560
-7680

query I rowsort
SELECT + cor0.col0 * 4 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT 46 - col1 FROM tab2 cor0
----
-13
15
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2922
SELECT + col2 DIV + 73 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT + col2 / + 73 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2923
SELECT DISTINCT - col0 DIV 55 + + col0 AS col0 FROM tab1 AS cor0
----
3
63
79

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT - col0 / 55 + + col0 AS col0 FROM tab1 AS cor0
----
3
63
79

query I rowsort
SELECT - - ( 19 ) * col2 AS col1 FROM tab0 AS cor0
----
1558
19
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT DISTINCT + 56 + + 93 DIV col0 AS col1 FROM tab0 AS cor0
----
57
58
59

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT + 56 + + 93 / col0 AS col1 FROM tab0 AS cor0
----
57
58
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT - col2 DIV ( - 69 ) + - col1 * ( - col2 ) FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-2926
SELECT - col2 / ( - 69 ) + - col1 * ( - col2 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 37 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL - col0 * + 84 FROM tab2
----
-588
-6552
-6636

query I rowsort
SELECT - 30 - cor0.col1 * col0 FROM tab1 AS cor0
----
-1070
-108
-670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2931
SELECT - + CAST( col0 AS SIGNED ) * col1 + + CAST( 85 + - col2 AS SIGNED ) * col1 FROM tab2 cor0
----
-1121
-544
1581

skipif mysql # not compatible
query I rowsort label-2931
SELECT - + CAST ( col0 AS INTEGER ) * col1 + + CAST ( 85 + - col2 AS INTEGER ) * col1 FROM tab2 cor0
----
-1121
-544
1581

query I rowsort
SELECT - ( cor0.col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT tab2.col0 * - col1 + col2 DIV col0 AS col1 FROM tab2
----
-1343
-214
-4602

skipif mysql # not compatible
query I rowsort label-2933
SELECT tab2.col0 * - col1 + col2 / col0 AS col1 FROM tab2
----
-1343
-214
-4602

query I rowsort
SELECT ALL + col2 + ( col1 ) FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - col2 + - ( 63 ) * - col1 AS col2 FROM tab0 AS cor0
----
5385
5651
6110

query I rowsort
SELECT - cor0.col2 * ( col0 ) AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT ALL + - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + tab1.col2 + 44 AS col0 FROM tab1
----
206
3692
7724

query I rowsort
SELECT ALL + tab1.col2 * - col0 * - col2 AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - - col0 + 14 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT col2 + - 4 AS col0 FROM tab0
----
-3
29
78

query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col0 + tab0.col1 * 96 FROM tab0
----
8280
8825
9347

query I rowsort
SELECT DISTINCT ( - col1 + - 99 ) * 89 FROM tab1
----
-11125
-9701
-9968

query I rowsort
SELECT - 13 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT - col0 + col2 + - col1 FROM tab1 AS cor0
----
-17
25
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2948
SELECT ALL + CAST( 78 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + CAST ( 78 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
46

query I rowsort
SELECT ALL - col2 + - col1 * tab0.col1 AS col2 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT tab0.col0 + col2 * col1 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT + 61 * - col1 FROM tab2 AS cor0
----
-1037
-1891
-3599

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 IN ( + col0 * - col1 + - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col1
----

query I rowsort
SELECT DISTINCT + col2 + - col0 * tab0.col0 * col0 AS col2 FROM tab0
----
-13791
-42874
-704887

query I rowsort
SELECT DISTINCT 78 FROM tab1, tab0 cor0, tab1 AS cor1
----
78

query I rowsort
SELECT DISTINCT ( + 97 ) AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
97

query I rowsort
SELECT + col2 + cor0.col2 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-33
-7134
-726

query I rowsort
SELECT + - col2 * - col2 + - col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + - col0 col2 FROM tab2 AS cor0
----
11
12
83

query I rowsort
SELECT + col1 * col1 - + 52 AS col2 FROM tab1 AS cor0
----
117
48
624

query I rowsort
SELECT - ( + cor0.col1 ) AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT col0 - col0 * + 51 FROM tab2 AS cor0
----
-350
-3900
-3950

query I rowsort
SELECT - 5 * col0 AS col1 FROM tab0
----
-120
-175
-445

query I rowsort
SELECT ALL - col2 * col1 + 67 FROM tab1 AS cor0
----
-1181
-1337
-503

query I rowsort
SELECT + cor0.col2 * + col0 + + 50 + + col2 AS col2 FROM tab2 cor0
----
2104
266
3090

query I rowsort
SELECT ALL + col2 + - ( + col2 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2969
SELECT col0 * CAST( 88 * col0 AS SIGNED ) + 59 FROM tab0
----
107859
50747
697107

skipif mysql # not compatible
query I rowsort label-2969
SELECT col0 * CAST ( 88 * col0 AS INTEGER ) + 59 FROM tab0
----
107859
50747
697107

query I rowsort
SELECT - col0 + - 15 * cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
-20224
-3262
-69108

query I rowsort
SELECT ALL col2 + - 26 AS col2 FROM tab2 cor0
----
0
1
12

query I rowsort
SELECT DISTINCT + 7 FROM tab2, tab2 AS cor0
----
7

query I rowsort
SELECT DISTINCT tab2.col0 * + 11 AS col2 FROM tab2
----
77
858
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT ALL - - 28 DIV col1 AS col0 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL - - 28 / col1 AS col0 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + ( 81 ) AS col1 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT 49 + 31 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT - 23 AS col0 FROM tab1 cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + + 29 * + col0 AS col0 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT + - col2 * col1 * col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - col0 + - col2 * + ( - ( + col0 ) * col1 ) FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT - + cor0.col2 * + col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col1 * - col1 * ( + ( col1 ) * col2 ) + 22 AS col1 FROM tab1 AS cor0
----
210934
57022
949126

query I rowsort
SELECT DISTINCT - + 19 - cor0.col1 FROM tab1 cor0
----
-29
-32
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2985
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
24
35
89

query I rowsort
SELECT + col2 * + col1 - + col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + + cor0.col2 * + col1 * cor0.col1 - - col2 * col1 FROM tab1 AS cor0
----
17472
37908
6270

onlyif mysql # use DIV operator for integer division
query I rowsort label-2989
SELECT DISTINCT - col1 + + col0 * col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-148
-189
-3492

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - col1 + + col0 * col1 / - col2 AS col0 FROM tab0 AS cor0
----
-148
-189
-3492

query I rowsort
SELECT DISTINCT - col2 * col1 - col2 * col0 AS col2 FROM tab2
----
-1026
-3562
-3648

query I rowsort
SELECT ALL + col1 * - col2 + - tab1.col1 + - col1 * col2 FROM tab1
----
-1150
-2509
-2834

query I rowsort
SELECT DISTINCT col1 * + tab2.col1 + - col2 FROM tab2
----
251
3455
934

query I rowsort
SELECT + col2 + - col1 * + col2 + col1 FROM tab2
----
-1449
-591
-779

query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 + + col0 FROM tab1
----
-1088
-1398
-442

query I rowsort
SELECT ALL - col1 + - tab0.col2 * + tab0.col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + col0 * - col2 + col2 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL col1 * col0 + + tab0.col2 + + col2 AS col2 FROM tab0
----
2130
3397
8263

query I rowsort
SELECT col0 + tab2.col2 + + col0 FROM tab2
----
182
196
41

query I rowsort
SELECT - col2 * col2 + col0 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT col1 * col2 + col0 * tab1.col1 AS col0 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT col1 + col2 * - cor0.col1 + col1 FROM tab2 AS cor0
----
-1416
-612
-775

query I rowsort
SELECT 43 + + 6 AS col0 FROM tab1
----
49
49
49

query I rowsort
SELECT tab0.col0 * + 26 * col1 - col0 FROM tab0
----
210485
53640
88235

query I rowsort
SELECT 99 - 14 FROM tab2
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col1 FROM tab0
----
82

query I rowsort
SELECT ALL ( + ( tab0.col0 ) ) FROM tab0
----
24
35
89

query I rowsort
SELECT col1 * col1 - + col1 AS col0 FROM tab2
----
272
3422
930

query I rowsort
SELECT ( + 51 ) + col2 FROM tab2
----
77
78
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT col2 DIV - col2 + col0 * col1 AS col2 FROM tab1
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-3009
SELECT col2 / - col2 + col0 * col1 AS col2 FROM tab1
----
1039
639
77

query I rowsort
SELECT - ( - tab2.col0 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * - col0 col1 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3012
SELECT DISTINCT 18 * cor0.col0 + col2 + col0 * col2 DIV + col2 AS col1 FROM tab0 cor0
----
1773
489
666

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT 18 * cor0.col0 + col2 + col0 * col2 / + col2 AS col1 FROM tab0 cor0
----
1773
489
666

query I rowsort
SELECT ALL + - 50 * col2 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT - + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + 76 * col0 + - col0 FROM tab0 AS cor0
----
1800
2625
6675

onlyif mysql # use DIV operator for integer division
query I rowsort label-3016
SELECT + col2 + cor0.col1 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-3016
SELECT + col2 + cor0.col1 / cor0.col1 AS col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT 4 * - col2 AS col0 FROM tab0 AS cor0
----
-132
-328
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT + - 24 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3018
SELECT + - 24 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 - col1 * col2 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - tab0.col0 FROM tab0 WHERE NOT col0 IN ( + col1 )
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 + - col0 col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col1 AS col2 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL + col2 * col2 + col0 AS col2 FROM tab2
----
1523
736
754

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col0 + col1 AND col2
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE + tab1.col0 IN ( - cor0.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + - col2 col2 FROM tab2
----
-6110
-6279
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT col1 + + col2 DIV + col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3027
SELECT col1 + + col2 / + col2 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL - tab1.col1 * col1 - col1 FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + tab2.col1 * col1 + - tab2.col1 * - col1 FROM tab2
----
1922
578
6962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 * col1 * tab1.col2 col0 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT ALL col0 * col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( - tab0.col0 )
----

query I rowsort
SELECT DISTINCT + col1 + col2 * col1 * - col1 AS col0 FROM tab1
----
-16211
-36478
-5690

query I rowsort
SELECT - col1 * + col2 + col0 * - col0 - col0 AS col2 FROM tab1
----
-1416
-4730
-7728

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col0 * col1 + tab0.col1 FROM tab0
----
2150
3492
8190

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col1 + + col2 * + col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT + col0 * tab2.col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - col0 * col2 + tab0.col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT + + col1 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3041
SELECT col2 DIV col2 + - cor0.col2 DIV col0 + col1 AS col1 FROM tab0 AS cor0
----
86
92
98

skipif mysql # not compatible
query I rowsort label-3041
SELECT col2 / col2 + - cor0.col2 / col0 + col1 AS col1 FROM tab0 AS cor0
----
86
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT ALL col0 DIV - col2 - + cor0.col0 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL col0 / - col2 - + cor0.col0 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT + col1 + - col0 + col1 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT + col0 + cor0.col0 * cor0.col2 + - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - - col0 + - cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + col0 + cor0.col2 + - col1 * - col1 * col0 FROM tab1 AS cor0
----
13696
2085
6521

query I rowsort
SELECT - cor0.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) - - col1 col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - - ( ( col0 ) ) * ( - col0 * - col1 ) FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + + 68 - + ( col1 ) FROM tab2 AS cor0
----
37
51
9

query I rowsort
SELECT DISTINCT col2 * - ( col2 ) AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + - ( cor0.col1 ) + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3054
SELECT + + CAST( + col1 AS SIGNED ) - + col0 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-3054
SELECT + + CAST ( + col1 AS INTEGER ) - + col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL 18 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT ALL + - 2 * col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 15 * col2 AS col0 FROM tab0
----
1230
15
495

query I rowsort
SELECT + col0 * - col2 * - tab2.col2 AS col2 FROM tab2
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3060
SELECT + col1 * CAST( 93 + col1 AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0
----
-1373008
-18430
-508002

skipif mysql # not compatible
query I rowsort label-3060
SELECT + col1 * CAST ( 93 + col1 AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0
----
-1373008
-18430
-508002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3061
SELECT DISTINCT col1 DIV col1 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT col1 / col1 AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab2 AS cor0, tab2, tab1 cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT DISTINCT - col2 DIV + tab1.col2 col2 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT - col2 / + tab1.col2 col2 FROM tab1
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3064
SELECT DISTINCT - col2 * + CAST( + col0 AS SIGNED ) FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - col2 * + CAST ( + col0 AS INTEGER ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col0 * 43 AS col1 FROM tab2
----
301
3354
3397

query I rowsort
SELECT 42 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 5fc25b60fd90da23ba5e7be7e868d4d7

query I rowsort
SELECT ALL ( + 9 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT ALL col1 * + col0 + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL col1 * + col0 + col1 / col0 AS col1 FROM tab1 AS cor0
----
1040
640
86

query I rowsort
SELECT ALL - 1 * + col0 * col1 + 32 FROM tab1 AS cor0
----
-1008
-46
-608

query I rowsort
SELECT - cor0.col2 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL 46 + + 81 AS col0 FROM tab2 cor0
----
127
127
127

query I rowsort
SELECT DISTINCT + + 2 AS col2 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
2

query I rowsort
SELECT ALL 28 - + 33 AS col0 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT - tab2.col2 * + col1 - col1 FROM tab2
----
-1593
-663
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3077
SELECT ALL CAST( NULL AS SIGNED ) - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col1 ) * col1 + - cor0.col0 * + ( - col1 ) FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT - col0 + - 16 FROM tab2 AS cor0
----
-23
-94
-95

query I rowsort
SELECT DISTINCT 35 + 52 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL + col2 + + 2 AS col0 FROM tab2 AS cor0
----
28
29
40

query I rowsort
SELECT + 9 * col1 AS col1 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT + ( tab1.col1 ) * col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL ( + col1 ) * + col1 + + 39 FROM tab2
----
1000
328
3520

query I rowsort
SELECT - col1 * col1 * + col2 + + cor0.col1 * col0 * col2 AS col2 FROM tab0 AS cor0
----
-14924
-175956
-6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( + ( - col2 ) ) col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 18 col2 FROM tab1 AS cor0
----
-5
-8
8

query I rowsort
SELECT ALL - col0 * - ( - col1 ) + cor0.col2 + cor0.col1 * + 86 AS col0 FROM tab1 AS cor0
----
174
2212
277

query I rowsort
SELECT ALL + - 36 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col0 + cor0.col2 FROM tab2 cor0
----
-29
-6136
-6282

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT DISTINCT - cor0.col2 + cor0.col2 DIV col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - cor0.col2 + cor0.col2 / col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + col1 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - col2 + + col1 * - ( - col0 ) FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT - + col2 + col0 DIV 59 AS col0 FROM tab2 AS cor0
----
-25
-27
-37

skipif mysql # not compatible
query I rowsort label-3094
SELECT - + col2 + col0 / 59 AS col0 FROM tab2 AS cor0
----
-25
-27
-37

query I rowsort
SELECT DISTINCT 45 * - col0 + ( - 62 * col2 ) - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-15813
-1638
-4215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) * - col2 col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT DISTINCT + col1 * - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT + col1 * - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 41 * col2 FROM tab2 cor0
----
1066
1107
1558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT DISTINCT + cor0.col0 DIV + cor1.col0 FROM tab0, tab1 cor0, tab2 cor1
----
0
1
11
9

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT + cor0.col0 / + cor1.col0 FROM tab0, tab1 cor0, tab2 cor1
----
0
1
11
9

query I rowsort
SELECT DISTINCT 45 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
45

query I rowsort
SELECT - 45 + - col0 * 64 AS col0 FROM tab0 AS cor0
----
-1581
-2285
-5741

onlyif mysql # use DIV operator for integer division
query I rowsort label-3102
SELECT ALL 21 * - col1 - - 48 DIV + col0 FROM tab0
----
-1804
-1911
-2036

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL 21 * - col1 - - 48 / + col0 FROM tab0
----
-1804
-1911
-2036

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3103
SELECT tab1.col2 - + tab1.col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT tab1.col2 - + tab1.col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab2.col0 - col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + + col0 - + ( col2 ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + col1 * - col0 - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-2686
-434
-9204

query I rowsort
SELECT - col1 * + ( + 52 ) + col2 - + 36 AS col2 FROM tab1 AS cor0
----
-1334
-499
-616

query I rowsort
SELECT + + cor0.col0 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col1 * tab2.col0 * + col2 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col1 + 88 * + col0 FROM tab2 cor0
----
585
6805
6935

query I rowsort
SELECT DISTINCT - + cor0.col1 * col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ( + 22 ) FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3113
SELECT DISTINCT + - ( + cor0.col1 ) * + col0 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT + - ( + cor0.col1 ) * + col0 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + - 63 + - col0 AS col2 FROM tab2 AS cor0
----
-141
-142
-70

query I rowsort
SELECT DISTINCT 17 + + col1 AS col2 FROM tab2 cor0
----
34
48
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 * col1 col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + - col0 * + col2 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - col2 * col1 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-3119
SELECT DISTINCT col1 + 56 DIV + tab1.col1 AS col0 FROM tab1
----
15
17
28

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT col1 + 56 / + tab1.col1 AS col0 FROM tab1
----
15
17
28

query I rowsort
SELECT DISTINCT tab1.col1 * + col2 + + 86 * col0 * + col0 FROM tab1
----
2178
352826
551648

query I rowsort
SELECT - col0 * 92 AS col1 FROM tab1
----
-276
-5888
-7360

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
21

query I rowsort
SELECT ALL + col0 * col0 + ( col2 + col2 ) FROM tab1
----
117
4210
6592

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT ALL + col1 * ( tab2.col0 ) DIV + tab2.col0 + + col2 + col1 * col0 FROM tab2
----
1398
275
4687

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + col1 * ( tab2.col0 ) / + tab2.col0 + + col2 + col1 * col0 FROM tab2
----
1398
275
4687

query I rowsort
SELECT DISTINCT col1 * 36 + 83 FROM tab0
----
3179
3359
3575

query I rowsort
SELECT ALL + col0 + 57 FROM tab0
----
146
81
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT tab2.col2 DIV 31 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-3127
SELECT tab2.col2 / 31 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT DISTINCT - col2 DIV - 80 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT - col2 / - 80 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT - 96 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT - + cor0.col2 + - col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT + - 35 * - col2 * col2 + - cor0.col0 * col2 FROM tab0 cor0
----
0
228042
37323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 75 * - cor0.col2 col1 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT DISTINCT col1 + + col0 * col0 * + cor0.col2 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT - ( col2 ) * col1 + + cor0.col0 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + - col1 + col0 * col1 AS col1 FROM tab2 cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT - 40 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 40 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
5

query I rowsort
SELECT DISTINCT ( - col2 ) * col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col1 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 90 col0 FROM tab2
----
116
117
128

query I rowsort
SELECT DISTINCT + 78 * 55 AS col1 FROM tab0 AS cor0
----
4290

query I rowsort
SELECT + ( - col2 ) + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * - col1 col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - ( + col2 ) + - 3 AS col0 FROM tab2 AS cor0
----
-29
-30
-41

query I rowsort
SELECT DISTINCT - 26 FROM tab2 cor0
----
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT 27 + + cor0.col1 DIV - col0 FROM tab2 cor0
----
23
27
27

skipif mysql # not compatible
query I rowsort label-3145
SELECT 27 + + cor0.col1 / - col0 FROM tab2 cor0
----
23
27
27

query I rowsort
SELECT ALL + + 56 * col1 AS col2 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT 87 + + col0 FROM tab1 cor0
----
151
167
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3148
SELECT DISTINCT + 78 DIV col1 FROM tab1 AS cor0
----
3
6
7

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + 78 / col1 FROM tab1 AS cor0
----
3
6
7

query I rowsort
SELECT - 76 + tab0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 9d2e349c21294c1a3632d6abd4cfe7f0

query I rowsort
SELECT - - cor0.col0 * col1 - - col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL col0 + - 57 AS col1 FROM tab2 AS cor0
----
-50
21
22

query I rowsort
SELECT ALL cor0.col2 + col0 - col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3154
SELECT + + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT + + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 - cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT DISTINCT col2 * cor0.col2 + 89 - - col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT col2 * cor0.col2 + 89 - - col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col0 + + 78 * col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT col1 * - 5 + col1 AS col2 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT DISTINCT - col1 * col0 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col2 * + 94 + - col2 AS col0 FROM tab0 AS cor0
----
3069
7626
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3161
SELECT ( 9 ) * col0 + CAST( + 49 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
625
76
769

skipif mysql # not compatible
query I rowsort label-3161
SELECT ( 9 ) * col0 + CAST ( + 49 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
625
76
769

query I rowsort
SELECT ALL cor0.col0 + + ( col2 ) FROM tab1 AS cor0
----
121
176
57

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 + 17 * - 58 + - col2 * + col1 col0 FROM tab1 cor0
----
-1556
-2234
-2390

query I rowsort
SELECT DISTINCT - 47 FROM tab2, tab2 AS cor0
----
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT DISTINCT + + col0 DIV ( + col0 ) - + ( col1 ) * + col1 FROM tab1 cor0
----
-168
-675
-99

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT + + col0 / ( + col0 ) - + ( col1 ) * + col1 FROM tab1 cor0
----
-168
-675
-99

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( 19 AS REAL ) AS col1 FROM tab2
----
26
97
98

query I rowsort
SELECT 44 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + 10 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - col1 * - tab2.col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col1 * - col1 + + col2 AS col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - col0 - ( + col1 * cor0.col0 ) FROM tab2 cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3175
SELECT col1 + + ( + ( - col1 ) + - CAST( ( col2 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3175
SELECT col1 + + ( + ( - col1 ) + - CAST ( ( col2 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col1 * col0 * col2 - col1 FROM tab0 AS cor0
----
3298
664027
68026

query I rowsort
SELECT - col1 * col2 + cor0.col1 * + col2 + - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3179
SELECT ALL - col0 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 + - ( - col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT - - col2 * + ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 * + 93 AS col1 FROM tab0 AS cor0
----
113925
53568
736653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * - cor0.col0 col0 FROM tab2 AS cor0
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * cor0.col1 + + col0 + 35 col1 FROM tab1 AS cor0
----
-241
-327
-846

query I rowsort
SELECT 60 + - col2 AS col2 FROM tab0 AS cor0
----
-22
27
59

query I rowsort
SELECT - + 76 + + col0 FROM tab1 AS cor0
----
-12
-73
4

query I rowsort
SELECT - col0 + + 36 FROM tab0 cor0
----
-53
1
12

query I rowsort
SELECT DISTINCT + 74 * - col2 AS col1 FROM tab2 AS cor0
----
-1924
-1998
-2812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3189
SELECT ALL + col2 * - cor0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + col2 * - cor0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 * + col0 * + col2 + - col0 FROM tab2
----
-10213
-109590
-162187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - 56 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT DISTINCT + - col2 + - col2 * + 89 AS col0 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT ALL + - ( + col1 ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - - col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - cor0.col1 - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + - col0 + col2 * ( + 29 ) AS col2 FROM tab1 AS cor0
----
1563
1589
2704

query I rowsort
SELECT DISTINCT - col2 + col1 * - cor0.col1 - col1 FROM tab2 AS cor0
----
-1019
-344
-3566

query I rowsort
SELECT + 33 + col0 AS col2 FROM tab1 AS cor0
----
113
36
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 20 col2 FROM tab1 AS cor0
----
30
33
46

query I rowsort
SELECT ALL - col2 + - cor0.col0 * ( - col1 ) + - ( + col1 ) FROM tab0 AS cor0
----
1945
3297
7926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 71 col0 FROM tab2 AS cor0
----
-12
-40
-54

query I rowsort
SELECT - cor0.col1 * ( + col0 + - col0 * cor0.col2 ) AS col1 FROM tab1 AS cor0
----
35840
4134
98800

query I rowsort
SELECT DISTINCT col2 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 70 col1 FROM tab0 cor0
----
2310
5740
70

query I rowsort
SELECT - ( - 43 ) + col0 FROM tab0 AS cor0
----
132
67
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3207
SELECT + - CAST( - ( + cor0.col2 ) AS SIGNED ) * - col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3207
SELECT + - CAST ( - ( + cor0.col2 ) AS INTEGER ) * - col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - - col2 * + col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL col1 * ( col2 * - col1 ) FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - col2 + - col0 + + col0 AS col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - ( + 78 * col1 ) + 59 * - col0 AS col0 FROM tab0
----
-12349
-8124
-9631

query I rowsort
SELECT 79 * + 95 + + tab1.col1 FROM tab1
----
7515
7518
7531

query I rowsort
SELECT + 41 * 44 - + col2 * 8 AS col0 FROM tab0
----
1148
1540
1796

query I rowsort
SELECT ALL col0 + 30 * - tab1.col0 FROM tab1
----
-1856
-2320
-87

query I rowsort
SELECT - col1 - - tab0.col2 FROM tab0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( col2 ) col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 10 + - col0 + - col1 * 63 FROM tab0 cor0
----
-5432
-5812
-6136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT ALL - CAST( NULL AS SIGNED ) * - 29 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL - CAST ( NULL AS INTEGER ) * - 29 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 14 - + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6c8e0965c675d69b605dd8f5ee836301

query I rowsort
SELECT ALL cor0.col1 + - col2 * - ( col1 + + col0 ) * + col1 FROM tab2 AS cor0
----
210217
31837
62033

query I rowsort
SELECT + + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT DISTINCT - - col2 + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - - col2 + col1 / col0 AS col1 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT col2 + + 66 AS col1 FROM tab1 AS cor0
----
120
123
162

onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT ALL - col1 - - col2 DIV - col1 AS col0 FROM tab2 cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - col1 - - col2 / - col1 AS col0 FROM tab2 cor0
----
-19
-31
-59

query I rowsort
SELECT ALL col1 * - col2 + - col1 * + col1 * col0 FROM tab2 AS cor0
----
-23477
-273052
-7564

onlyif mysql # use DIV operator for integer division
query I rowsort label-3226
SELECT col2 + 33 DIV col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3226
SELECT col2 + 33 / col2 FROM tab1
----
54
57
96

query I rowsort
SELECT + 51 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3228
SELECT - col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT - col0 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * 74 AS col2 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT DISTINCT col1 * 42 + col1 + + col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT - - 15 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - 84 + col2 * col1 FROM tab1 AS cor0
----
1164
1320
486

query I rowsort
SELECT ALL + 85 * - col2 FROM tab2 AS cor0
----
-2210
-2295
-3230

query I rowsort
SELECT DISTINCT + 40 * + col2 + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
1377
3451
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3235
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - 34 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - 34 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 17 + + 37 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT ALL + - 67 AS col2 FROM tab2 AS cor0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * + col1 * - cor0.col2 col2 FROM tab2 AS cor0
----
40052
51894
95108

query I rowsort
SELECT - - col1 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL cor0.col1 * col2 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + + col0 * - col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - col1 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL - 45 + col1 * - col2 FROM tab0 AS cor0
----
-142
-2883
-7507

query I rowsort
SELECT - 17 + - tab0.col1 FROM tab0
----
-103
-108
-114

query I rowsort
SELECT 5 AS col1 FROM tab0
----
5
5
5

query I rowsort
SELECT ALL cor0.col1 * col1 - + 52 AS col2 FROM tab1 cor0
----
117
48
624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + cor0.col2 * - cor0.col2 col0 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT - col1 + 25 FROM tab1 AS cor0
----
-1
12
15

query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
86
91
97

query I rowsort
SELECT ALL - 31 + tab1.col2 + 85 FROM tab1
----
108
111
150

query I rowsort
SELECT ALL + - col0 + col1 * + col2 + - col0 FROM tab1 AS cor0
----
1088
1398
442

query I rowsort
SELECT - col2 + + ( - 28 ) AS col0 FROM tab2 cor0
----
-54
-55
-66

query I rowsort
SELECT ALL + col1 + 69 FROM tab1 AS cor0
----
79
82
95

query I rowsort
SELECT DISTINCT col0 + 6 * col0 AS col0 FROM tab0 cor0
----
168
245
623

query I rowsort
SELECT DISTINCT col0 * col2 - - col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-3257
SELECT ALL + - col1 DIV 93 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + - col1 / 93 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col2 * ( + 32 ) * col2 + - cor0.col0 AS col1 FROM tab1 cor0
----
103904
294832
93309

query I rowsort
SELECT DISTINCT + col2 - + 44 FROM tab0 cor0
----
-11
-43
38

skipif mysql # not compatible
query I rowsort
SELECT + col1 * - CAST ( + col2 AS REAL ) + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 + col0 * - tab0.col1 * - ( tab0.col0 + + col0 ) FROM tab0
----
1441704
237651
99105

query I rowsort
SELECT DISTINCT + 46 + + col1 FROM tab2
----
105
63
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT ALL col2 DIV + col1 + col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL col2 / + col1 + col2 FROM tab1
----
103
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3264
SELECT DISTINCT + col0 DIV - col0 + + ( 11 ) * + col0 AS col2 FROM tab2
----
76
857
868

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT + col0 / - col0 + + ( 11 ) * + col0 AS col2 FROM tab2
----
76
857
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3265
SELECT DISTINCT col2 * CAST( + ( col1 ) AS SIGNED ) AS col2 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT col2 * CAST ( + ( col1 ) AS INTEGER ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col0 * col0 * col2 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 94 col0 FROM tab1
----
-282
-6016
-7520

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + tab0.col1 * + 85 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to afe41043ca9af5e0cd03d3d29f67906f

query I rowsort
SELECT + tab1.col2 * 74 AS col1 FROM tab1
----
3996
4218
7104

query I rowsort
SELECT col0 * col1 * col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - tab0.col1 + tab0.col0 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * + col2 col1 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT ALL col2 * + col1 DIV tab2.col1 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL col2 * + col1 / tab2.col1 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL ( col2 * + col2 ) AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT - ( - col0 ) + - col1 AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT 95 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3278
SELECT ALL + CAST( col2 + + col0 AS SIGNED ) FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + CAST ( col2 + + col0 AS INTEGER ) FROM tab0
----
171
36
57

query I rowsort
SELECT ALL col1 * - ( + col2 ) FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col2 FROM tab2, tab2 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT + + 34 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-3281
SELECT + + 34 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
11

query I rowsort
SELECT ALL + + 92 * + col0 AS col0 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT + - col1 * - col0 - - ( col0 * col2 ) FROM tab0 cor0
----
15397
2856
3430

query I rowsort
SELECT + + col0 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL - ( 93 ) * cor0.col1 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT ALL + col2 * col0 * tab2.col2 AS col1 FROM tab2
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3287
SELECT - CAST( 64 AS SIGNED ) FROM tab2 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-3287
SELECT - CAST ( 64 AS INTEGER ) FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT + - ( - col1 ) + col1 * - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3288
SELECT + - ( - col1 ) + col1 * - col1 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( - col1 ) + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3290
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 + - cor0.col0 + - 48 / + 68 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 + - cor0.col0 + - 48 / + 68 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3291
SELECT DISTINCT - - ( 41 ) DIV cor0.col2 + - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - - ( 41 ) / cor0.col2 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3292
SELECT DISTINCT - col1 * CAST( col1 AS SIGNED ) FROM tab1
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT - col1 * CAST ( col1 AS INTEGER ) FROM tab1
----
-100
-169
-676

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 cor0, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT + - 40 * col1 AS col2 FROM tab0 AS cor0
----
-3440
-3640
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col0 + cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + 77 * + cor0.col0 AS col2 FROM tab1 cor0
----
231
4928
6160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col0 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - - cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT DISTINCT 92 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT 92 / col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col0 * ( + ( col2 ) ) col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3303
SELECT - + col2 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT - + col2 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # use DIV operator for integer division
query I rowsort label-3305
SELECT - - col0 * col2 DIV + col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3305
SELECT - - col0 * col2 / + col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 + ( + col2 + col0 ) * col0 AS col0 FROM tab0
----
1295
1392
15308

query I rowsort
SELECT col2 * - 50 + - col0 * + col1 AS col2 FROM tab1 cor0
----
-2778
-3490
-5840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT DISTINCT + col1 + col0 * cor0.col2 DIV col2 + col1 FROM tab0 AS cor0
----
196
229
271

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT + col1 + col0 * cor0.col2 / col2 + col1 FROM tab0 AS cor0
----
196
229
271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 32 col1 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT DISTINCT col0 + col2 + - col1 * col2 AS col1 FROM tab1 cor0
----
-1072
-1347
-449

query I rowsort
SELECT ALL + - col2 - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + - col2 * 85 + col0 * col1 * - col1 AS col1 FROM tab1 cor0
----
-11245
-21680
-6618

query I rowsort
SELECT DISTINCT - - col2 * - 13 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-10464
-3618
-3990

query I rowsort
SELECT ALL + col0 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL + - ( + col0 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - - 79 * + ( - col0 ) FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT DISTINCT 74 * - col2 AS col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - - col0 + 40 + col0 FROM tab1 AS cor0
----
168
200
46

query I rowsort
SELECT DISTINCT ( 25 ) FROM tab1, tab1 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 86 - + col1 * - col2 col2 FROM tab1 AS cor0
----
1162
1318
484

query I rowsort
SELECT ALL 26 + col1 * + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-143
-650
-74

query I rowsort
SELECT DISTINCT + + ( col2 ) + cor0.col2 * + col0 - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT DISTINCT col1 DIV col1 - - col0 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT col1 / col1 - - col0 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - 11 + col1 AS col2 FROM tab1 AS cor0
----
-1
15
2

query I rowsort
SELECT + + col2 - + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-3327
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-3327
SELECT ALL col1 / col0 col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + 98 * col0 AS col0 FROM tab1
----
294
6272
7840

query I rowsort
SELECT ALL 14 * col0 AS col2 FROM tab0
----
1246
336
490

query I rowsort
SELECT DISTINCT + col1 + 51 * + col2 AS col1 FROM tab1 cor0
----
2780
2917
4909

query I rowsort
SELECT ALL + + col2 + + 85 AS col2 FROM tab2 AS cor0
----
111
112
123

query I rowsort
SELECT col2 * col0 + 51 AS col0 FROM tab1 AS cor0
----
213
3699
7731

onlyif mysql # use DIV operator for integer division
query I rowsort label-3333
SELECT ALL + col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3334
SELECT - cor0.col0 * CAST( + col0 * - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-3334
SELECT - cor0.col0 * CAST ( + col0 * - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL tab0.col2 * col1 - col0 AS col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT ALL 95 + - tab0.col1 * - col2 * - col1 - + col1 AS col0 FROM tab0
----
-244059
-679038
-9411

query I rowsort
SELECT - col2 + - cor0.col1 AS col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT 94 * col0 + - 25 AS col2 FROM tab1
----
257
5991
7495

query I rowsort
SELECT ALL - 56 + col0 * col2 * + col0 FROM tab2
----
1267
158128
237102

query I rowsort
SELECT col2 + + 99 AS col2 FROM tab2
----
125
126
137

query I rowsort
SELECT ALL - ( 37 ) FROM tab0, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3342
SELECT - CAST( col0 AS SIGNED ) * - col1 + - ( + col0 ) + tab1.col0 AS col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3342
SELECT - CAST ( col0 AS INTEGER ) * - col1 + - ( + col0 ) + tab1.col0 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT DISTINCT - col1 DIV - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT - col1 / - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT - ( col2 + - col0 ) AS col0 FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT DISTINCT - + 75 DIV - col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - + 75 / - col1 AS col0 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT ALL tab1.col2 + col2 * col1 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - col0 * col0 + 27 AS col2 FROM tab2
----
-22
-6057
-6214

query I rowsort
SELECT DISTINCT col2 - 10 FROM tab2
----
16
17
28

query I rowsort
SELECT ( + 43 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3350
SELECT DISTINCT + CAST( + tab1.col2 AS SIGNED ) FROM tab1, tab2 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT + CAST ( + tab1.col2 AS INTEGER ) FROM tab1, tab2 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col1 * 68 + col0 FROM tab2 AS cor0
----
1235
2115
4090

onlyif mysql # use DIV operator for integer division
query I rowsort label-3353
SELECT DISTINCT col2 DIV + 54 + + 33 AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT col2 / + 54 + + 33 AS col2 FROM tab2 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * ( cor0.col2 ) * col2 + - ( 19 * col2 ) col2 FROM tab0 AS cor0
----
-18
35310
549810

query I rowsort
SELECT ALL col2 * - col0 + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT ALL + 84 + - col1 FROM tab2 AS cor0
----
25
53
67

query I rowsort
SELECT + col2 * + 73 + cor0.col2 FROM tab1 AS cor0
----
3996
4218
7104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + col0 + 27 * cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
15390
33696
37908

query I rowsort
SELECT ALL + + 11 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT - 67 * cor0.col0 - - col1 AS col2 FROM tab2 AS cor0
----
-438
-5167
-5276

query I rowsort
SELECT + 10 + col1 AS col2 FROM tab0 cor0
----
101
107
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col0 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - ( - col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + - col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + ( ( + col2 ) ) * - 65 + ( col1 ) + ( - 84 + + col2 ) FROM tab1 AS cor0
----
-3514
-3722
-6215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3366
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * cor0.col2 * + col0 + col0 + 73 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * cor0.col2 * + col0 + col0 + 73 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT tab1.col1 + ( col2 ) - - col2 * ( tab1.col0 ) AS col2 FROM tab1
----
242
3715
7789

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( + ( - col1 ) ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT + CAST( col2 AS SIGNED ) * - col1 + col0 DIV - col1 FROM tab1 AS cor0
----
-1254
-1404
-576

skipif mysql # not compatible
query I rowsort label-3370
SELECT + CAST ( col2 AS INTEGER ) * - col1 + col0 / - col1 FROM tab1 AS cor0
----
-1254
-1404
-576

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col0 FROM tab1 cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3372
SELECT + col1 * col2 + col0 * CAST( NULL AS SIGNED ) * + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT + col1 * col2 + col0 * CAST ( NULL AS INTEGER ) * + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT + ( - col1 ) * cor0.col1 DIV - col0 + ( col2 ) * + col1 FROM tab0 cor0
----
3146
365
7555

skipif mysql # not compatible
query I rowsort label-3373
SELECT + ( - col1 ) * cor0.col1 / - col0 + ( col2 ) * + col1 FROM tab0 cor0
----
3146
365
7555

query I rowsort
SELECT ALL 69 FROM tab2, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT ( cor0.col1 ) DIV - 13 + 23 AS col0 FROM tab1 AS cor0
----
21
22
23

skipif mysql # not compatible
query I rowsort label-3375
SELECT ( cor0.col1 ) / - 13 + 23 AS col0 FROM tab1 AS cor0
----
21
22
23

query I rowsort
SELECT ALL - 26 * - col0 + col0 AS col2 FROM tab2
----
189
2106
2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-3377
SELECT col1 DIV col1 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3377
SELECT col1 / col1 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 11 col2 FROM tab0 AS cor0
----
-264
-385
-979

query I rowsort
SELECT - col2 * - cor0.col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT col2 DIV ( 28 * col1 ) col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3380
SELECT col2 / ( 28 * col1 ) col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 42 * cor0.col2 col2 FROM tab1 cor0
----
2322
2451
4128

query I rowsort
SELECT ALL - tab1.col0 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3383
SELECT col0 + - col2 * CAST( col2 AS SIGNED ) col2 FROM tab0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3383
SELECT col0 + - col2 * CAST ( col2 AS INTEGER ) col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT + 37 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - 15 * + 74 AS col1 FROM tab0 AS cor0
----
-1110
-1110
-1110

query I rowsort
SELECT ALL col0 * + 9 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT ALL + cor0.col1 * + col1 * col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + - col1 * 53 AS col2 FROM tab1 AS cor0
----
-1378
-530
-689

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT col2 DIV - 5 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
27
66

skipif mysql # not compatible
query I rowsort label-3389
SELECT col2 / - 5 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
27
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3390
SELECT col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col0 * 3 FROM tab0
----
105
267
72

query I rowsort
SELECT - - col0 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + 15 col1 FROM tab2 AS cor0
----
-63
-64
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT DISTINCT - + col0 DIV + col1 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1440
675
729

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - + col0 / + col1 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1440
675
729

query I rowsort
SELECT - col0 + 91 AS col0 FROM tab0 AS cor0
----
2
56
67

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - - col2 - + col2 AS col0 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3399
SELECT col1 DIV 97 + - col1 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3399
SELECT col1 / 97 + - col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT ( + 89 ) * - col1 + + 86 * cor0.col1 - - col2 * - 94 FROM tab2 AS cor0
----
-2621
-2631
-3623

query I rowsort
SELECT + - ( col1 ) * col0 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT DISTINCT - - CAST( col1 AS SIGNED ) DIV + col2 + col2 FROM tab0 cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) / + col2 + col2 FROM tab0 cor0
----
35
83
98

query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) * - col2 AS col2 FROM tab1
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + col0 col0 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT ALL - col2 * 31 - - col1 * col1 FROM tab0 cor0
----
5739
6373
9378

query I rowsort
SELECT ALL - col1 * col1 + - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT + cor0.col1 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col2 + + col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col0 * tab2.col2 + + col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT 84 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL - col0 + ( - tab0.col1 + col0 * + ( - col0 ) ) AS col1 FROM tab0
----
-1357
-686
-8101

query I rowsort
SELECT - - col1 * col0 + - 9 * + 62 * - col1 AS col0 FROM tab1 cor0
----
14586
6220
8294

query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 * 18 AS col0 FROM tab1 AS cor0
----
-11520
-1404
-18720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT ALL - + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - + col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3415
SELECT - + col0 + - col0 * CAST( NULL AS SIGNED ) + col2 / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT - + col0 + - col0 * CAST ( NULL AS INTEGER ) + col2 / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col2 * - cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - 85 - + col2 AS col2 FROM tab1 AS cor0
----
-139
-142
-181

query I rowsort
SELECT 3 * - col0 FROM tab1
----
-192
-240
-9

query I rowsort
SELECT 10 * + cor0.col0 + 83 FROM tab0, tab0 AS cor0
----
9 values hashing to 3c32280c8829b1a9ce283ad00b9d1336

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab1, tab2 AS cor0
----
1

query I rowsort
SELECT ALL 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + + col1 * cor0.col0 + - ( cor0.col1 ) FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + col0 * - col2 + + col1 * + 54 FROM tab2 cor0
----
-2084
1158
1485

query I rowsort
SELECT + - 37 * + col1 AS col2 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT 37 - - col2 FROM tab0
----
119
38
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT col2 - col1 * + col1 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - cor0.col0 * - col2 * - col1 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + + col0 * - cor0.col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - - cor0.col2 + col2 + - col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-3534
-54
-7488

query I rowsort
SELECT DISTINCT col0 * + 3 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT DISTINCT + cor0.col2 * - 70 AS col1 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT ALL - + col2 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col1 * col1 + + ( ( col0 ) * 68 ) AS col1 FROM tab0
----
11789
14333
9028

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3436
SELECT ALL + col2 - col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + col2 - col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + tab0.col2 + col0 * col0 AS col0 FROM tab0
----
1323
695
8094

onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT DISTINCT - tab0.col0 + col0 DIV - col2 - col0 FROM tab0
----
-105
-179
-48

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - tab0.col0 + col0 / - col2 - col0 FROM tab0
----
-105
-179
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 - 61 col1 FROM tab2
----
-27
43
56

query I rowsort
SELECT ALL col1 * tab1.col2 - - 78 FROM tab1
----
1326
1482
648

query I rowsort
SELECT ALL - col0 + - ( + col2 ) + tab0.col2 * 43 AS col1 FROM tab0
----
1362
3355
7

query I rowsort
SELECT + + col1 + + 43 AS col2 FROM tab1 AS cor0
----
53
56
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT DISTINCT - col2 + col0 DIV - ( tab2.col0 + col2 ) AS col0 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT - col2 + col0 / - ( tab2.col0 + col2 ) AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - cor0.col1 * 69 AS col1 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT + col1 * - col1 - - 36 FROM tab0 AS cor0
----
-7360
-8245
-9373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 * + 3 col1 FROM tab1 AS cor0
----
10944
23040
486

query I rowsort
SELECT DISTINCT + + col2 + col1 * + 5 FROM tab0 AS cor0
----
463
486
537

query I rowsort
SELECT + col1 + - 74 * 8 + cor0.col0 * col1 FROM tab2 AS cor0
----
-344
4069
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-3449
SELECT col0 * + col1 DIV col1 + - col0 + - col1 * col2 DIV col0 FROM tab1 AS cor0
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-3449
SELECT col0 * + col1 / col1 + - col0 + - col1 * col2 / col0 FROM tab1 AS cor0
----
-15
-468
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3450
SELECT DISTINCT - col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT - col0 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT col0 + CAST( NULL AS SIGNED ) * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT col0 + CAST ( NULL AS INTEGER ) * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col1 ) + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + 98 * - 46 FROM tab0 AS cor0
----
-4508
-4508
-4508

query I rowsort
SELECT DISTINCT 79 * col2 + col2 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT ALL + 55 * - col0 + - col2 - - 33 AS col2 FROM tab0 cor0
----
-1320
-1893
-4944

query I rowsort
SELECT + 17 * - 82 AS col2 FROM tab2 AS cor0
----
-1394
-1394
-1394

query I rowsort
SELECT + col1 + 40 * - col1 AS col0 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT ALL + col1 * - col0 * + 65 AS col1 FROM tab1 AS cor0
----
-41600
-5070
-67600

query I rowsort
SELECT ALL + cor0.col0 + - col0 * 11 FROM tab2 AS cor0
----
-70
-780
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT ALL ( col2 ) + col2 * col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
162
42

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL ( col2 ) + col2 * col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
162
42

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 AS col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - + 27 + col2 FROM tab0 AS cor0
----
-26
55
6

query I rowsort
SELECT - col2 + + col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 + 42 FROM tab2 AS cor0
----
-6042
-6199
-7

query I rowsort
SELECT - cor0.col1 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT 3 + ( col0 ) * + 86 AS col2 FROM tab2 AS cor0
----
605
6711
6797

query I rowsort
SELECT - 18 * + col2 FROM tab1 AS cor0
----
-1026
-1728
-972

query I rowsort
SELECT - - ( col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 37 + + 7 * - col1 AS col1 FROM tab2 cor0
----
-180
-376
-82

query I rowsort
SELECT ALL + 6 - col0 FROM tab0 cor0
----
-18
-29
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT col1 DIV + cor0.col1 - - col0 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3471
SELECT col1 / + cor0.col1 - - col0 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL - col0 * col1 * 20 - tab1.col1 AS col1 FROM tab1
----
-12810
-1586
-20813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * 91 + col1 - cor0.col0 col0 FROM tab2 AS cor0
----
-1609
-2797
-5388

query I rowsort
SELECT + col0 * col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + col1 * 38 - - col0 * - 34 AS col0 FROM tab2 AS cor0
----
-2040
-410
940

query I rowsort
SELECT + 18 + col0 FROM tab0
----
107
42
53

query I rowsort
SELECT 37 + col0 AS col2 FROM tab0 AS cor0
----
126
61
72

query I rowsort
SELECT - 78 + + col0 AS col2 FROM tab2 cor0
----
-71
0
1

query I rowsort
SELECT DISTINCT col0 * 81 + col2 - col0 * col0 FROM tab2 AS cor0
----
196
260
545

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3481
SELECT + col0 / CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3481
SELECT + col0 / CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + ( col2 + col1 ) FROM tab0 cor0
----
10234
15743
9506

query I rowsort
SELECT DISTINCT - + col0 + - 43 * - 73 AS col1 FROM tab2 AS cor0
----
3060
3061
3132

onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT DISTINCT ( col1 ) DIV + ( + ( col1 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT ( col1 ) / + ( + ( col1 ) ) FROM tab2
----
1

query I rowsort
SELECT ALL - tab1.col1 * + col1 AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL ( + cor1.col1 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT col2 * + 58 FROM tab1 AS cor0
----
3132
3306
5568

query I rowsort
SELECT DISTINCT - cor0.col0 * ( cor0.col1 ) + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-540
-871
598

query I rowsort
SELECT + col1 * + 95 AS col2 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT ALL + col1 + 2 FROM tab1 AS cor0
----
12
15
28

query I rowsort
SELECT + col1 * 35 * + col2 FROM tab1 AS cor0
----
19950
43680
49140

query I rowsort
SELECT ALL col1 + col1 + - 90 AS col0 FROM tab2 AS cor0
----
-28
-56
28

query I rowsort
SELECT 24 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + cor3.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3495
SELECT + CAST( - col0 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3495
SELECT + CAST ( - col0 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT cor1.col2 + - cor0.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 43bebaccf3e4914c5ac972d20674aff2

query I rowsort
SELECT col0 * - 94 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT - - cor0.col2 * + 86 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT ALL + + 3 - col0 FROM tab2 AS cor0
----
-4
-75
-76

query I rowsort
SELECT ALL - 49 - col1 AS col2 FROM tab0 cor0
----
-135
-140
-146

query I rowsort
SELECT ALL + 53 * - col0 AS col2 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT 15 + - tab1.col2 AS col2 FROM tab1
----
-39
-42
-81

query I rowsort
SELECT DISTINCT cor0.col2 * + ( + cor0.col2 ) AS col0 FROM tab2, tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + col2 - - col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - 64 - col0 * - col2 FROM tab0
----
-29
7234
728

query I rowsort
SELECT 44 * + 28 AS col1 FROM tab0
----
1232
1232
1232

query I rowsort
SELECT 62 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT col2 - - col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col0 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT - - cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - + ( col2 ) - ( - 60 * col2 ) FROM tab2 AS cor0
----
1534
1593
2242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 * ( + col0 ) + + col2 col1 FROM tab0 AS cor0
----
-3394
-664036
-68079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 col2 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * cor0.col2 + col1 col2 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col0 + - 79 * - col0 col2 FROM tab0 AS cor0
----
15130
3960
6160

query I rowsort
SELECT DISTINCT ( - 61 * col1 ) FROM tab2
----
-1037
-1891
-3599

query I rowsort
SELECT ALL - - col1 * col1 * + col0 - + ( col2 ) AS col1 FROM tab2 AS cor0
----
22793
271492
6700

query I rowsort
SELECT DISTINCT - 77 + col0 FROM tab2 AS cor0
----
-70
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3519
SELECT + 2 * - col2 + ( col2 ) DIV col1 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-3519
SELECT + 2 * - col2 + ( col2 ) / col1 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - col2 * ( - 87 ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-14094
-317376
-668160

query I rowsort
SELECT - - cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 + - col2 * + col2 col1 FROM tab0 cor0
----
-14186
-3927
-98

query I rowsort
SELECT - col1 * - ( col2 ) AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 * - col1 * col2 + cor0.col2 - + col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - cor0.col1 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT 1 * col0 - col1 AS col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 30b3ee36c95bb84d1f6a640c4d41cf15

query I rowsort
SELECT - 35 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + cor0.col1 * - col2 + - col0 + + col1 FROM tab0 cor0
----
-2776
-35
-7460

query I rowsort
SELECT - col0 + col0 * + col1 AS col2 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT 71 + - col0 FROM tab1 AS cor0
----
-9
68
7

query I rowsort
SELECT + ( - col2 ) * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3534
SELECT DISTINCT + - col0 DIV col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT + - col0 / col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL - 4 AS col0 FROM tab1 cor0
----
-4
-4
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3536
SELECT + ( + col1 ) + col2 * - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-136
-3638
-7667

skipif mysql # not compatible
query I rowsort label-3536
SELECT + ( + col1 ) + col2 * - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col1 * + 76 - + tab1.col1 * col1 FROM tab1
----
1300
660
819

query I rowsort
SELECT col0 + + col0 * col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT - col2 * - tab2.col2 * + 20 FROM tab2
----
13520
14580
28880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT ALL + col0 DIV 84 - + col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + col0 / 84 - + col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - + col0 * - 51 AS col2 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab1 cor0
----
9

query I rowsort
SELECT 16 + col1 AS col2 FROM tab2
----
33
47
75

query I rowsort
SELECT DISTINCT + ( col1 ) * tab2.col1 + col0 * 36 FROM tab2
----
1213
3133
6289

query I rowsort
SELECT - - col1 * + cor0.col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - 31 - + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a384ace994f014d4f098a146af9e2a77

query I rowsort
SELECT 77 - + col1 AS col2 FROM tab0
----
-14
-20
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3548
SELECT DISTINCT - col0 DIV + 46 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - col0 / + 46 FROM tab0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3549
SELECT - col2 + CAST( NULL AS SIGNED ) * + 55 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT - col2 + CAST ( NULL AS INTEGER ) * + 55 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + cor0.col1 * - ( col0 ) * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT col0 * 85 AS col2 FROM tab0 cor0
----
2040
2975
7565

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3
64
80

query I rowsort
SELECT DISTINCT - cor0.col1 + - col1 * 99 * - 70 AS col1 FROM tab1 AS cor0
----
180154
69290
90077

query I rowsort
SELECT ALL col1 * col2 + - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - 59 + col1 * - ( col1 ) FROM tab0 AS cor0
----
-7455
-8340
-9468

query I rowsort
SELECT DISTINCT - + col2 * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + col2 + - col2 * 89 AS col1 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT DISTINCT col1 * col1 * + 82 + + col0 * col1 FROM tab0 AS cor0
----
608536
687141
774933

query I rowsort
SELECT + 62 * col0 + ( - col1 ) AS col2 FROM tab1 AS cor0
----
160
3958
4947

onlyif mysql # use DIV operator for integer division
query I rowsort label-3560
SELECT DISTINCT - col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT - col1 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + + cor0.col0 * col0 * + 44 + col2 FROM tab1 AS cor0
----
180281
281696
450

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT + col0 - CAST( - 73 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
108
162
97

skipif mysql # not compatible
query I rowsort label-3562
SELECT + col0 - CAST ( - 73 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
108
162
97

query I rowsort
SELECT + cor0.col2 - - col2 FROM tab2 cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3564
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) + 50 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) + 50 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + 33 FROM tab1 cor0
----
43
46
59

query I rowsort
SELECT + ( ( + cor0.col2 ) ) * - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c440a304f6abc2ed68f0784f7d7d3bf

query I rowsort
SELECT ALL - ( + cor0.col1 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - + col2 * - col1 + col2 + + col2 * - col0 FROM tab1 cor0
----
-3021
-6336
1296

query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT ALL - col2 * 62 DIV col2 AS col2 FROM tab1 cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - col2 * 62 / col2 AS col2 FROM tab1 cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - ( 10 ) AS col2 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT - cor0.col1 * 45 AS col2 FROM tab1 cor0
----
-1170
-450
-585

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT col1 - 8 AS col1 FROM tab1
----
18
2
5

query I rowsort
SELECT + tab1.col2 * 67 + - col1 FROM tab1
----
3592
3809
6419

query I rowsort
SELECT DISTINCT - col0 * + 73 AS col0 FROM tab0
----
-1752
-2555
-6497

query I rowsort
SELECT cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col1 - 74 FROM tab1
----
-48
-61
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 - - col1 col2 FROM tab0 AS cor0
----
184
189
195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3580
SELECT ALL - - CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL - - CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - ( 23 ) * + col1 AS col2 FROM tab0
----
-1978
-2093
-2231

query I rowsort
SELECT tab2.col0 + - tab2.col1 * tab2.col1 AS col0 FROM tab2
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT + 34 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT + 34 / cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 78 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to afa1a417c354fab37e0e421ec67035c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col2 FROM tab2, tab1 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col0 * col1 * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT col0 + ( 90 ) FROM tab2
----
168
169
97

query I rowsort
SELECT ALL tab1.col1 * + 10 + col0 FROM tab1
----
164
210
263

onlyif mysql # use DIV operator for integer division
query I rowsort label-3589
SELECT DISTINCT + - col1 DIV + 22 + col2 * - col0 * 67 + ( + col2 ) * col2 FROM tab1 AS cor0
----
-241167
-505344
-7939

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT + - col1 / + 22 + col2 * - col0 * 67 + ( + col2 ) * col2 FROM tab1 AS cor0
----
-241167
-505344
-7939

query I rowsort
SELECT - cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT + tab2.col1 DIV 57 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3591
SELECT + tab2.col1 / 57 AS col0 FROM tab2
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3592
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - ( - 47 ) * col1 + + 3 FROM tab0 cor0
----
4045
4280
4562

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3594
SELECT ALL - + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( - col1 ) + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 15 * + col0 + - col0 * 70 + cor0.col0 FROM tab2 AS cor0
----
-588
-6552
-6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-3597
SELECT + + col0 + - col0 DIV col1 + - col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT + + col0 + - col0 / col1 + - col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT 42 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
139
1472
3535

query I rowsort
SELECT col0 + - 74 * + col0 + + 59 FROM tab1 AS cor0
----
-160
-4613
-5781

query I rowsort
SELECT col1 + col1 - 26 FROM tab2 AS cor0
----
36
8
92

query I rowsort
SELECT ALL + - col0 * ( 77 * + cor0.col0 ) FROM tab1 AS cor0
----
-315392
-492800
-693

query I rowsort
SELECT ALL ( col1 + col1 ) AS col2 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL tab2.col0 * + 58 * col0 + + col2 * 31 * - 1 + + col0 FROM tab2
----
2012
352144
360879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col2 FROM tab0, tab0 cor0
----
70

query I rowsort
SELECT DISTINCT col0 - - col1 * 75 AS col2 FROM tab0
----
6474
6914
7310

query I rowsort
SELECT ALL col0 * + col2 - col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT col2 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - col1 + - ( 75 ) FROM tab1 AS cor0
----
-101
-85
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + tab0.col1 col0 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + - col2 col1 FROM tab2
----
17
18
6

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2, tab1 AS cor0
----
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT - - CAST( + col1 AS SIGNED ) * col2 + CAST( NULL AS SIGNED ) / - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - - CAST ( + col1 AS INTEGER ) * col2 + CAST ( NULL AS INTEGER ) / - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + tab0.col2 * col2 AS col0 FROM tab0
----
1122
2
6806

query I rowsort
SELECT - + col0 * + col1 + cor0.col1 * + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT + 94 DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
13

skipif mysql # not compatible
query I rowsort label-3617
SELECT + 94 / col0 AS col2 FROM tab2 AS cor0
----
1
1
13

query I rowsort
SELECT col0 * - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3619
SELECT - - col2 DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3619
SELECT - - col2 / col1 FROM tab1 cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT + col0 + cor0.col2 DIV + col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-3620
SELECT + col0 + cor0.col2 / + col1 FROM tab1 AS cor0
----
5
69
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3621
SELECT - + col0 * cor0.col2 * - CAST( - 57 AS SIGNED ) FROM tab2 AS cor0
----
-10773
-115596
-171114

skipif mysql # not compatible
query I rowsort label-3621
SELECT - + col0 * cor0.col2 * - CAST ( - 57 AS INTEGER ) FROM tab2 AS cor0
----
-10773
-115596
-171114

query I rowsort
SELECT + + col2 + - col2 * 27 FROM tab1 cor0
----
-1404
-1482
-2496

query I rowsort
SELECT DISTINCT + col2 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT 94 * col1 + - ( - col0 + - cor0.col1 ) * col2 * col0 FROM tab0 AS cor0
----
1322194
13738
95204

query I rowsort
SELECT col0 * - col1 + - 81 FROM tab0 AS cor0
----
-2145
-3476
-8180

query I rowsort
SELECT ALL + 67 * + col1 + cor0.col1 + col1 FROM tab1 cor0
----
1794
690
897

query I rowsort
SELECT ALL + - cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * col1 + ( - cor0.col0 ) - col2 FROM tab2 AS cor0
----
1430
529
803

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3629
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT + 99 * + col2 AS col1 FROM tab2 AS cor0
----
2574
2673
3762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
16

query I rowsort
SELECT ALL - - 12 AS col0 FROM tab0 cor0
----
12
12
12

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + col0 + ( col0 ) FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL - col2 * 12 + col2 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT DISTINCT + + 63 FROM tab2, tab0, tab2 AS cor0
----
63

query I rowsort
SELECT - + 52 + col1 * col2 * + col0 FROM tab0 cor0
----
3343
664066
68060

query I rowsort
SELECT DISTINCT + 5 + + col1 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT - ( ( col1 ) ) * 77 + + ( col0 ) FROM tab2 AS cor0
----
-1230
-2380
-4465

query I rowsort
SELECT 17 + - col0 * - col2 FROM tab0 AS cor0
----
52
7315
809

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col2 AS col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT 6 * col2 - col2 AS col1 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT ALL - + col1 * col0 - col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT col1 - col0 * col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT col0 * + 6 FROM tab0
----
144
210
534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col0 * col2 col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - tab1.col2 AS col2 FROM tab1, tab0, tab2 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col2 + cor0.col1 + - col2 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3650
SELECT + + CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-3650
SELECT + + CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col1 col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3652
SELECT - + CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT - + CAST ( NULL AS REAL ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3653
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - tab1.col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT - CAST ( NULL AS REAL ) + - tab1.col0 AS col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT + ( col0 ) DIV - col2 - col2 DIV + tab0.col2 FROM tab0
----
-1
-2
-36

skipif mysql # not compatible
query I rowsort label-3654
SELECT + ( col0 ) / - col2 - col2 / + tab0.col2 FROM tab0
----
-1
-2
-36

query I rowsort
SELECT ALL - col0 + cor0.col1 * ( 86 ) + - col2 FROM tab0 AS cor0
----
7339
7655
8306

query I rowsort
SELECT 86 * 80 + + col0 FROM tab2
----
6887
6958
6959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + + col2 col1 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col2 FROM tab0
----
110
132
180

query I rowsort
SELECT col2 * + col1 + + 42 * col1 AS col0 FROM tab2
----
1360
2139
4012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3660
SELECT - col1 + - CAST( NULL AS SIGNED ) * - tab1.col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3660
SELECT - col1 + - CAST ( NULL AS INTEGER ) * - tab1.col1 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 0c15ce053d5d7b134ad52c973e726cba

query I rowsort
SELECT - col1 * col1 + 3 FROM tab1
----
-166
-673
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3663
SELECT ALL col0 DIV 37 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL col0 / 37 FROM tab2
----
0
2
2

query I rowsort
SELECT DISTINCT - + col2 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col0 + col1 * + tab1.col2 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + col2 + 21 AS col0 FROM tab2
----
47
48
59

query I rowsort
SELECT DISTINCT + tab0.col1 * - ( col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - 46 * col1 FROM tab0 cor0
----
-3956
-4186
-4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT col0 * col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3669
SELECT col0 * col0 / - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + ( + col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - - 76 + - col0 AS col2 FROM tab2 AS cor0
----
-2
-3
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 * - col2 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 * - col2 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT cor0.col1 * tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + + col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - col0 * col1 + + ( - col1 ) FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 + 73 FROM tab1 AS cor0
----
124
66
89

query I rowsort
SELECT col2 * - col1 + - 35 AS col1 FROM tab2 AS cor0
----
-1569
-681
-872

query I rowsort
SELECT DISTINCT - - 34 - col2 FROM tab1 AS cor0
----
-20
-23
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + - 82 - - col0 * col2 col2 FROM tab2 AS cor0
----
324
4263
6548

query I rowsort
SELECT DISTINCT + col1 * - col0 + + 47 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-12373
-3278
-5137

query I rowsort
SELECT DISTINCT + + cor0.col1 + 53 AS col0 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + col1 * 77 + + 73 FROM tab2 AS cor0
----
1382
2460
4616

query I rowsort
SELECT - col2 + - 51 FROM tab2 AS cor0
----
-77
-78
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + 2 * tab1.col2 - col2 col2 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 77 col1 FROM tab0 AS cor0
----
101
112
166

query I rowsort
SELECT ALL - + 3 * 41 AS col2 FROM tab2 AS cor0
----
-123
-123
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - ( + 63 ) + col2 * ( + col0 ) FROM tab0 AS cor0
----
7361
855
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 75 ) * col1 + + ( 40 ) col2 FROM tab0 AS cor0
----
-6410
-6785
-7235

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3694
SELECT ALL - col2 * + CAST( col1 + - col2 AS SIGNED ) AS col0 FROM tab0
----
-1749
-738
-96

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - col2 * + CAST ( col1 + - col2 AS INTEGER ) AS col0 FROM tab0
----
-1749
-738
-96

query I rowsort
SELECT ALL - cor2.col0 FROM tab2, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT DISTINCT - tab0.col0 * ( + col1 ) FROM tab0
----
-2064
-3395
-8099

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 7781e11d4a9fc844b7b93d320748f7c1

query I rowsort
SELECT DISTINCT col1 * col0 * ( col2 * col0 ) FROM tab0
----
118825
1634688
59106502

onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT - 92 DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3699
SELECT - 92 / col2 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab0, tab1, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT 64 * - col2 FROM tab2
----
-1664
-1728
-2432

query I rowsort
SELECT ALL col1 + - col0 * col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT - 75 + col2 FROM tab2 cor0
----
-37
-48
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 + - col1 col1 FROM tab0 AS cor0
----
-158
-163
-169

query I rowsort
SELECT 20 * - tab0.col1 FROM tab0
----
-1720
-1820
-1940

query I rowsort
SELECT ALL ( cor0.col2 ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + + 48 * col2 FROM tab2 AS cor0
----
1248
1296
1824

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 IN ( tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col1 + col0 AS col2 FROM tab0 WHERE NOT ( col0 ) IN ( col1 + + col1 )
----
110
132
180

query I rowsort
SELECT DISTINCT col1 + + tab2.col1 AS col2 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT ALL col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL col0 / + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT cor0.col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT 72 * + col2 - col1 DIV 74 FROM tab0
----
2375
5903
71

skipif mysql # not compatible
query I rowsort label-3713
SELECT 72 * + col2 - col1 / 74 FROM tab0
----
2375
5903
71

query I rowsort
SELECT DISTINCT - col2 * col0 - - col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ( col0 ) + ( + col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT + col2 + - col1 * - col1 * col1 AS col1 FROM tab2
----
205405
29818
4951

query I rowsort
SELECT DISTINCT - 0 * col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL col2 + tab1.col2 * col1 AS col2 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT DISTINCT tab1.col2 - col0 DIV col2 AS col2 FROM tab1
----
54
56
96

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT tab1.col2 - col0 / col2 AS col2 FROM tab1
----
54
56
96

query I rowsort
SELECT + col1 * col2 - col1 * - col0 AS col2 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT col1 * col0 * tab2.col2 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 / col0 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT - col1 + col0 + col2 * col0 FROM tab0
----
-27
7296
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT ALL col2 * + col0 DIV + col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL col2 * + col0 / + col0 FROM tab2
----
26
27
38

query I rowsort
SELECT col0 FROM tab1 WHERE NULL IN ( - col0 * col2 )
----

query I rowsort
SELECT ALL col2 * col2 - col1 * col1 AS col0 FROM tab0
----
-1557
-6307
-9408

query I rowsort
SELECT tab0.col2 * + tab0.col2 + tab0.col0 * col0 FROM tab0
----
1226
14645
1665

query I rowsort
SELECT ALL + col0 * col0 * col2 FROM tab2
----
1323
158184
237158

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col2 * col2 + - tab0.col0 )
----

query I rowsort
SELECT col1 * + col2 * col1 + + col2 * - col2 FROM tab1
----
2451
33588
7008

query I rowsort
SELECT col2 + tab0.col0 * col2 - + tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + tab2.col1 * + col1 * col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT ALL - col0 + col0 * col1 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NULL >= ( col2 / col0 )
----

query I rowsort
SELECT col2 * - col2 + + col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE + col0 IN ( - col1 )
----

query I rowsort
SELECT ( + col1 ) + - col1 - col0 AS col1 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT col2 DIV col2 + - tab0.col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3739
SELECT col2 / col2 + - tab0.col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ALL 0 + - col1 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col0 * col0 + - col2 AS col1 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT ALL 59 + tab1.col0 AS col1 FROM tab1
----
123
139
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3743
SELECT + 99 + col0 DIV col1 col1 FROM tab0 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3743
SELECT + 99 + col0 / col1 col1 FROM tab0 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 * cor0.col2 * col1 col1 FROM tab2 cor0
----
-119626
-50996
-5832

query I rowsort
SELECT ALL - 22 * - ( col0 ) + ( + 97 ) AS col1 FROM tab0 cor0
----
2055
625
867

query I rowsort
SELECT DISTINCT - - ( + ( - col1 ) ) + + col0 + - col2 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT + col1 + - 51 * - col0 FROM tab0
----
1310
1882
4630

query I rowsort
SELECT DISTINCT + 34 * 30 AS col2 FROM tab2, tab1, tab1 AS cor0
----
1020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + - col2 * col2 col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3750
SELECT DISTINCT 24 * col2 DIV ( col0 ) AS col2 FROM tab1 AS cor0
----
21
28
432

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT 24 * col2 / ( col0 ) AS col2 FROM tab1 AS cor0
----
21
28
432

query I rowsort
SELECT ALL + 33 * col1 * col2 + + col0 * - col1 FROM tab1 AS cor0
----
18170
40144
46254

query I rowsort
SELECT - - 74 AS col0 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - - 34 + - col0 AS col1 FROM tab1 AS cor0
----
-30
-46
31

query I rowsort
SELECT + + 16 + col0 FROM tab0 AS cor0
----
105
40
51

query I rowsort
SELECT ALL - ( col2 ) * - 27 + col2 FROM tab0 cor0
----
2296
28
924

onlyif mysql # use DIV operator for integer division
query I rowsort label-3756
SELECT ( col0 ) DIV 21 FROM tab0 AS cor0
----
1
1
4

skipif mysql # not compatible
query I rowsort label-3756
SELECT ( col0 ) / 21 FROM tab0 AS cor0
----
1
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT - cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3757
SELECT - cor0.col2 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT - 18 - - ( + col0 ) DIV + col0 AS col0 FROM tab2
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-3758
SELECT - 18 - - ( + col0 ) / + col0 AS col0 FROM tab2
----
-17
-17
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT ALL 91 + + col0 + col1 DIV + col0 FROM tab0
----
118
128
181

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL 91 + + col0 + col1 / + col0 FROM tab0
----
118
128
181

query I rowsort
SELECT DISTINCT - + 89 AS col0 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT - col2 * 17 + - 61 FROM tab1 AS cor0
----
-1030
-1693
-979

query I rowsort
SELECT ALL col2 * + col0 * + col0 - - col2 FROM tab0
----
1226
19041
649604

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d

query I rowsort
SELECT ALL + cor0.col1 + col0 * + 77 FROM tab2 AS cor0
----
570
6065
6100

query I rowsort
SELECT DISTINCT - col0 - ( - ( + cor0.col0 ) * cor0.col2 ) AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT col2 * + 83 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT ALL + col0 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3768
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) + - ( + col0 ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) + - ( + col0 ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + 55 * col0 AS col2 FROM tab2 AS cor0
----
378
4212
4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-3770
SELECT + cor0.col1 + 28 DIV col0 - col1 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3770
SELECT + cor0.col1 + 28 / col0 - col1 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col2 * 7 + cor0.col2 AS col1 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT ALL - cor0.col0 + ( + ( - cor0.col0 ) ) AS col1 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT - + 33 * col2 FROM tab1 AS cor0
----
-1782
-1881
-3168

query I rowsort
SELECT - - ( col2 ) * + col1 + - col1 * + col1 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT DISTINCT + 36 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-13
-6048
-6205

query I rowsort
SELECT DISTINCT + cor0.col1 + 84 FROM tab2, tab2 AS cor0, tab0 cor1
----
101
115
143

query I rowsort
SELECT DISTINCT - col1 + col2 AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - 38 * + col0 AS col0 FROM tab0 AS cor0
----
-1330
-3382
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - ( - col0 * ( col2 ) ) col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col1 * 78 + col0 * + col2 - - 0 * col0 AS col0 FROM tab1 AS cor0
----
2190
4428
8694

query I rowsort
SELECT DISTINCT col0 - col2 * - 54 AS col1 FROM tab0
----
1806
4517
89

query I rowsort
SELECT - 23 FROM tab0, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 33 * 30 col1 FROM tab1
----
-964
-977
-980

query I rowsort
SELECT col0 * + col1 + col1 * col1 FROM tab1 cor0
----
1209
740
754

query I rowsort
SELECT + col2 + + col1 + col1 AS col1 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT ALL cor0.col0 + cor1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e30c1547d66313ce1b3436c5eda1349c

query I rowsort
SELECT 1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL + col1 + 80 * + col1 * col1 FROM tab2
----
23137
278539
76911

query I rowsort
SELECT ( col0 + col1 ) * + col1 * + tab1.col0 FROM tab1
----
2262
47360
96720

query I rowsort
SELECT + 2 FROM tab1, tab0 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL col1 * - col1 * + col0 + - tab2.col2 * col0 FROM tab2
----
-25833
-273546
-6916

query I rowsort
SELECT ALL + tab1.col0 + + col1 + - col2 AS col1 FROM tab1
----
-25
-3
17

query I rowsort
SELECT 63 * - col2 + + col1 * col1 FROM tab2
----
-2105
-740
1843

query I rowsort
SELECT tab2.col0 * - col1 * tab2.col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL 57 * col2 FROM tab2
----
1482
1539
2166

query I rowsort
SELECT ALL col1 * + cor0.col2 + + col2 AS col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - 7 + cor0.col0 - + col1 FROM tab1 AS cor0
----
-30
47
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - 73 * col2 FROM tab2 AS cor0
----
-1898
-1971
-2774

query I rowsort
SELECT + 57 * - col0 * + cor0.col0 + - col0 FROM tab0 AS cor0
----
-32856
-451586
-69860

query I rowsort
SELECT col0 + - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-3802
SELECT + + cor0.col2 DIV col1 + + col2 col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3802
SELECT + + cor0.col2 / col1 + + col2 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col1 * col1 + + col1 * - cor0.col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT col2 + col2 * col0 DIV + col2 AS col1 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3804
SELECT col2 + col2 * col0 / + col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - tab1.col1 - - col2 * + col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL - col0 * + 6 FROM tab0 cor0
----
-144
-210
-534

query I rowsort
SELECT - + col2 * + 61 FROM tab1 cor0
----
-3294
-3477
-5856

query I rowsort
SELECT ALL + col1 * - ( + col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3809
SELECT ALL col2 DIV + 98 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL col2 / + 98 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + + col2 * + 79 FROM tab2 cor0
----
2080
2160
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT ALL + 65 + + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
67
70
72

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + 65 + + col2 / col1 AS col0 FROM tab1 AS cor0
----
67
70
72

query I rowsort
SELECT DISTINCT - - 60 AS col0 FROM tab1 AS cor0
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3813
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 65 + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 65 + col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * col1 - col2 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3815
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col1 + cor0.col2 FROM tab1 AS cor0
----
157
265
730

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col1 + cor0.col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - ( + tab1.col2 ) * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT col0 * ( - col0 * - tab1.col1 ) AS col2 FROM tab1
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3818
SELECT + CAST( NULL AS SIGNED ) * ( + col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT + CAST ( NULL AS INTEGER ) * ( + col2 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col2 * - col2 + col1 * col0 FROM tab0 AS cor0
----
-603785
-91590
3298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3820
SELECT - CAST( col1 AS SIGNED ) * cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

skipif mysql # not compatible
query I rowsort label-3820
SELECT - CAST ( col1 AS INTEGER ) * cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col2 BETWEEN ( NULL ) AND + col0 * col0
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE col1 * col0 NOT IN ( col2 + - col0 )
----
1
33
82

query I rowsort
SELECT + cor0.col1 + col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT col1 - cor0.col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT col2 / col1 - cor0.col2 AS col2 FROM tab0 cor0 WHERE NOT ( cor0.col0 ) >= col0
----

query I rowsort
SELECT cor0.col1 * - col0 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-12804
-16380
-9460

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT - col0 + col1 DIV col0 + + col0 AS col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3827
SELECT - col0 + col1 / col0 + + col0 AS col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT col0 - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col2 - col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( col1 * col0 - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + - col1 * col2 col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + tab1.col1 + + 33 + - col1 FROM tab1
----
33
33
33

query I rowsort
SELECT ALL + col0 * col0 * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-233408
-483
-614320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * - 40 col1 FROM tab1 AS cor0
----
-1014
-390
-507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT ALL + + col1 * CAST( NULL AS SIGNED ) + - 89 * cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + + col1 * CAST ( NULL AS INTEGER ) + - 89 * cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * 61 AS col2 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT col1 * 54 + - col0 FROM tab2 AS cor0
----
1667
3108
839

query I rowsort
SELECT ALL + 84 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3841
SELECT + CAST( - col2 AS SIGNED ) * + col0 + 47 * + col0 col1 FROM tab2 AS cor0
----
140
1638
711

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3841
SELECT + CAST ( - col2 AS INTEGER ) * + col0 + 47 * + col0 col1 FROM tab2 AS cor0
----
140
1638
711

query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT DISTINCT 69 DIV 98 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT 69 / 98 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - - ( + col1 ) AS col0 FROM tab2 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3846
SELECT ALL - - CAST( col0 AS SIGNED ) + + cor0.col0 * 57 FROM tab2 cor0
----
406
4524
4582

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - - CAST ( col0 AS INTEGER ) + + cor0.col0 * 57 FROM tab2 cor0
----
406
4524
4582

query I rowsort
SELECT + 42 * - 84 FROM tab0 AS cor0
----
-3528
-3528
-3528

query I rowsort
SELECT ALL ( cor0.col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col1 * + 31 FROM tab1
----
310
403
806

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + 10 + cor0.col1 AS col2 FROM tab0 AS cor0
----
101
107
96

query I rowsort
SELECT ALL + ( - cor0.col2 ) * cor0.col1 - - 25 AS col2 FROM tab1 AS cor0
----
-1223
-1379
-545

query I rowsort
SELECT ALL + 98 * + cor0.col0 FROM tab0 AS cor0
----
2352
3430
8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + cor0.col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 19 + - col1 FROM tab0 AS cor0
----
-67
-72
-78

query I rowsort
SELECT DISTINCT - 5 * cor0.col0 FROM tab0 AS cor0
----
-120
-175
-445

onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT + - col1 + + col1 * + CAST( ( + col2 ) AS SIGNED ) - - col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-97
2750
7370

skipif mysql # not compatible
query I rowsort label-3857
SELECT + - col1 + + col1 * + CAST ( ( + col2 ) AS INTEGER ) - - col1 / - col2 AS col1 FROM tab0 AS cor0
----
-97
2750
7370

query I rowsort
SELECT + col0 * col0 + + 79 - - 50 AS col1 FROM tab2 AS cor0
----
178
6213
6370

query I rowsort
SELECT DISTINCT - + col1 + + ( + col2 ) FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - col2 * + ( cor0.col1 ) * col1 + 14 * col2 FROM tab2 AS cor0
----
-10450
-25569
-90142

query I rowsort
SELECT ALL - col0 * + 93 AS col0 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT - + cor0.col2 + 16 AS col2 FROM tab1 AS cor0
----
-38
-41
-80

query I rowsort
SELECT ALL 55 + tab0.col1 AS col2 FROM tab0
----
141
146
152

query I rowsort
SELECT ALL tab0.col2 - - col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 * col0 - - col0 AS col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col0 * + col2 + + col2 * + col0 FROM tab2 AS cor0
----
378
4056
6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT ALL - cor0.col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - cor0.col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 16 + + col2 * col1 col0 FROM tab0 cor0
----
113
3366
8774

query I rowsort
SELECT + col0 * 72 * col0 FROM tab0 AS cor0
----
41472
570312
88200

query I rowsort
SELECT ALL 58 * tab0.col0 * - col0 - + tab0.col1 * - tab0.col2 AS col0 FROM tab0
----
-30570
-451956
-70953

query I rowsort
SELECT - col1 + + col2 * col0 AS col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT 79 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT ALL - col2 DIV CAST( col0 AS SIGNED ) - - col2 * col0 FROM tab0 AS cor0
----
35
7298
791

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - col2 / CAST ( col0 AS INTEGER ) - - col2 * col0 FROM tab0 AS cor0
----
35
7298
791

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col1 + col2 AS REAL ) * - 64 * - col2 FROM tab2
----
-51072
54912
6912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3876
SELECT - CAST( col2 AS SIGNED ) - tab2.col2 AS col2 FROM tab2
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-3876
SELECT - CAST ( col2 AS INTEGER ) - tab2.col2 AS col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - 10 * - col0 FROM tab0
----
240
350
890

query I rowsort
SELECT + ( + 51 ) FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT col2 + - 68 * + tab2.col2 AS col2 FROM tab2
----
-1742
-1809
-2546

query I rowsort
SELECT + col1 * col0 * - 96 AS col1 FROM tab0 AS cor0
----
-198144
-325920
-777504

query I rowsort
SELECT ALL + + 4 + col2 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT ALL - + cor0.col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3883
SELECT DISTINCT 46 + - col1 + CAST( - col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-2104
-3446
-8144

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT 46 + - col1 + CAST ( - col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-2104
-3446
-8144

query I rowsort
SELECT ALL + col0 + + col2 * 39 AS col1 FROM tab0 AS cor0
----
1311
3287
74

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab2 cor0
----
67

query I rowsort
SELECT ALL col1 * col1 + col1 * + ( 40 ) + + col2 * - col0 FROM tab2 AS cor0
----
-2033
2012
3813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 * col0 col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - 12 - + col1 FROM tab1 cor0
----
-22
-25
-38

query I rowsort
SELECT - ( + col2 ) * col2 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3891
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3891
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + cor0.col0 * + 57 + col0 FROM tab2 cor0
----
406
4524
4582

query I rowsort
SELECT + cor0.col0 - col2 * - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
208000
737360
8751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3894
SELECT - col1 * col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT - col1 * col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col2 + 15 AS col1 FROM tab0 AS cor0
----
22
49
6

query I rowsort
SELECT - 32 + - col1 AS col2 FROM tab1 AS cor0
----
-42
-45
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3897
SELECT DISTINCT cor0.col1 DIV + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT cor0.col1 / + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
0
4

query I rowsort
SELECT ALL + ( + 37 ) + + col1 FROM tab1
----
47
50
63

query I rowsort
SELECT ALL tab2.col2 * col0 + tab2.col0 FROM tab2
----
196
2106
3081

skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( cor0.col2 AS REAL ) * - col2 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT - col2 * - 79 AS col1 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT ALL cor0.col1 - + cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - col0 * 25 AS col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT DISTINCT - - cor0.col1 + + 17 * cor0.col2 FROM tab0 AS cor0
----
114
1485
647

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 - CAST ( + ( + col0 ) AS REAL ) FROM tab1 cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab0.col1 ) * - 61 * - tab0.col0 + - col2 col2 FROM tab0
----
125871
207094
493957

query I rowsort
SELECT + col0 * col2 + + col2 FROM tab1
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col1 FROM tab2
----
74

query I rowsort
SELECT 52 + col2 AS col1 FROM tab0
----
134
53
85

query I rowsort
SELECT DISTINCT ( col1 ) * tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT col0 + + 34 FROM tab0
----
123
58
69

query I rowsort
SELECT + - col1 * 14 FROM tab0 AS cor0
----
-1204
-1274
-1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + + ( - col1 ) col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col2 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - col0 + ( + 21 ) FROM tab1 AS cor0
----
-43
-59
18

query I rowsort
SELECT 55 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT DISTINCT - + 21 AS col2 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + 82 * + ( + cor0.col0 ) * - ( col0 + + col2 ) FROM tab2 AS cor0
----
-19516
-665184
-757926

query I rowsort
SELECT ALL 12 AS col0 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT ALL 27 * cor0.col2 + - col2 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT DISTINCT + ( 57 ) * + col2 + col0 AS col1 FROM tab0 AS cor0
----
1905
4763
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT ALL - tab0.col1 DIV - 26 AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL - tab0.col1 / - 26 AS col0 FROM tab0
----
3
3
3

query I rowsort
SELECT tab0.col2 - tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 92ef426526338653e88acd4aba639c47

query I rowsort
SELECT - 80 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
-31
6004
6161

onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT - + 29 + + 49 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-27
-28
-29

skipif mysql # not compatible
query I rowsort label-3925
SELECT - + 29 + + 49 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-27
-28
-29

query I rowsort
SELECT DISTINCT ( 46 * + cor0.col0 ) AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
1104
1610
4094

query I rowsort
SELECT + - ( cor0.col2 ) + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - 79 + col2 * 32 + col1 * + cor0.col2 * + 89 AS col1 FROM tab2 AS cor0
----
137279
58631
75278

query I rowsort
SELECT + col2 + ( col0 ) * col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL tab2.col0 + + tab2.col2 * col0 + + col2 FROM tab2
----
2132
223
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT - - col0 DIV col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3931
SELECT - - col0 / col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + 75 * + col1 + col2 * - cor0.col0 FROM tab2 AS cor0
----
-1727
2136
2397

query I rowsort
SELECT + + col0 - + ( col2 ) AS col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + 83 * col0 + + col2 * - ( + col1 * + cor0.col2 ) + + col1 FROM tab2 AS cor0
----
-17974
-21987
-33351

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 * - col0 + - 82 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
100906
37300
6344

query I rowsort
SELECT - col1 * - col0 + - 50 + ( col1 ) * + 87 * cor0.col0 AS col1 FROM tab0 AS cor0
----
181582
298710
712662

query I rowsort
SELECT + + col2 + col1 + - ( col1 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 83 + + col0 FROM tab0
----
107
118
172

query I rowsort
SELECT + 19 + col0 + col2 AS col0 FROM tab1 AS cor0
----
140
195
76

query I rowsort
SELECT ALL - - col1 + cor0.col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT col2 * + 93 AS col2 FROM tab0 cor0
----
3069
7626
93

query I rowsort
SELECT + tab0.col0 - col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT col0 DIV + 16 + 9 * + col1 FROM tab0
----
775
824
875

skipif mysql # not compatible
query I rowsort label-3943
SELECT col0 / + 16 + 9 * + col1 FROM tab0
----
775
824
875

query I rowsort
SELECT + col1 * + col2 + + col2 * col1 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT DISTINCT cor0.col1 * - ( col2 ) + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + col0 * col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT ALL + ( - col2 ) + - col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col0 + col2 * + col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT 99 FROM tab0 cor0
----
99

query I rowsort
SELECT - - 89 * 68 - col0 FROM tab1 AS cor0
----
5972
5988
6049

query I rowsort
SELECT DISTINCT - ( 66 ) + col1 * + col1 FROM tab1 AS cor0
----
103
34
610

query I rowsort
SELECT DISTINCT + 37 + + 3 FROM tab2 AS cor0
----
40

query I rowsort
SELECT col2 - ( + col0 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL 45 + - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-128
-53
-74

query I rowsort
SELECT + col2 + ( col0 ) * cor0.col1 + - ( + cor0.col1 + + col2 ) AS col0 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL 27 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
37
40
53

query I rowsort
SELECT + - ( - 58 ) FROM tab1 cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - ( 43 ) col0 FROM tab0
----
-10
-42
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT DISTINCT - col0 - + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - col0 - + col2 / col1 AS col1 FROM tab1 AS cor0
----
-5
-69
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3960
SELECT + CAST( NULL AS SIGNED ) * col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT + CAST ( NULL AS INTEGER ) * col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 79 * - 80 AS col2 FROM tab0 cor0
----
-6320
-6320
-6320

query I rowsort
SELECT DISTINCT - ( col1 ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + col1 * + 91 + + cor0.col1 * col0 FROM tab0 AS cor0
----
12222
16380
9890

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

query I rowsort
SELECT + - cor0.col2 * - 5 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-3230
-4185
-7670

query I rowsort
SELECT ALL - col0 + col1 * col2 AS col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ALL - + col2 + 66 AS col0 FROM tab2 AS cor0
----
28
39
40

query I rowsort
SELECT ( + 5 ) AS col1 FROM tab2
----
5
5
5

query I rowsort
SELECT 78 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - cor0.col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-1
-33
-82

query I rowsort
SELECT ALL + cor1.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + tab2.col2 - 87 AS col0 FROM tab2
----
-49
-60
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + col1 * - tab1.col2 + col1 col2 FROM tab1
----
-1200
-1456
-2275

query I rowsort
SELECT - col0 * - col1 - + ( col1 ) AS col0 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT 54 + col0 * col2 AS col1 FROM tab2 AS cor0
----
2082
243
3056

query I rowsort
SELECT + 40 + col1 * - col0 FROM tab1 cor0
----
-1000
-38
-600

query I rowsort
SELECT DISTINCT + tab0.col0 - ( col2 + col2 ) FROM tab0
----
-42
-75
33

query I rowsort
SELECT ALL col2 + + 45 * col1 AS col2 FROM tab1
----
1224
507
681

query I rowsort
SELECT + col1 * - ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT cor0.col2 * + col0 + 33 * cor0.col0 + - 78 * col0 FROM tab0 cor0
----
-1540
-288
3293

query I rowsort
SELECT + ( 50 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col1 + + 69 * - col2 AS col2 FROM tab2 cor0
----
-1735
-1832
-2605

query I rowsort
SELECT DISTINCT - col0 + - ( col2 ) FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col0 * col1 * col0 + + col1 FROM tab0
----
118922
49622
720902

query I rowsort
SELECT + 48 * col1 * - col0 + 89 AS col1 FROM tab0
----
-162871
-388663
-98983

query I rowsort
SELECT ALL col1 + - col0 * 16 FROM tab2
----
-1189
-1247
-81

query I rowsort
SELECT ALL - col2 * col0 + 85 * + col1 AS col2 FROM tab0
----
437
6518
8210

query I rowsort
SELECT ALL col2 * + ( - tab0.col0 ) FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT DISTINCT - cor0.col0 * col1 - col2 DIV - col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - cor0.col0 * col1 - col2 / - col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * 76 col1 FROM tab2 AS cor0
----
532
5928
6004

query I rowsort
SELECT ALL + col1 + 65 AS col2 FROM tab2 AS cor0
----
124
82
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3995
SELECT ALL - col0 + + col2 DIV - 51 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - col0 + + col2 / - 51 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + cor0.col2 - cor0.col2 * - col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + 94 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL - 71 * + col2 AS col0 FROM tab2
----
-1846
-1917
-2698

query I rowsort
SELECT ALL 94 * col0 AS col1 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT - - 57 * + col0 FROM tab2 AS cor0
----
399
4446
4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + col0 col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - col1 * + 2 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT + col1 + - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4003
SELECT + col1 + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * cor0.col2 AS col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT + - cor0.col1 * + ( ( - col2 ) ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT ALL + 26 * + tab1.col0 DIV - col0 FROM tab1
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL + 26 * + tab1.col0 / - col0 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT - col0 + - 45 AS col2 FROM tab2 cor0
----
-123
-124
-52

query I rowsort
SELECT cor0.col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + + col1 * + col2 + - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - + col2 + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( col2 ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - ( + col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - 8 * col0 AS col2 FROM tab0 AS cor0
----
-192
-280
-712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col1 col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - - cor0.col2 - 77 * - col0 * 0 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - col2 * - 96 * cor0.col2 AS col1 FROM tab1 cor0
----
279936
311904
884736

query I rowsort
SELECT - col2 + + col1 * - col2 AS col0 FROM tab0 cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - - col1 + cor0.col2 + - cor0.col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4019
SELECT ALL - - 5 DIV 95 + col0 + - col1 DIV ( + col2 * col2 ) FROM tab0 AS cor0
----
-62
24
89

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - - 5 / 95 + col0 + - col1 / ( + col2 * col2 ) FROM tab0 AS cor0
----
-62
24
89

query I rowsort
SELECT + + 83 * + col1 + col2 FROM tab0 AS cor0
----
7171
7635
8052

onlyif mysql # use DIV operator for integer division
query I rowsort label-4021
SELECT DISTINCT - col2 DIV 81 + tab2.col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT - col2 / 81 + tab2.col0 FROM tab2
----
7
78
79

query I rowsort
SELECT + 81 * col2 * col1 FROM tab1 AS cor0
----
101088
113724
46170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4023
SELECT DISTINCT + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 56 * ( + col1 ) - - 41 * col2 FROM tab0 AS cor0
----
5473
6169
8458

query I rowsort
SELECT ALL - - col1 * - ( col1 ) AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT 85 * + 66 FROM tab1 AS cor0
----
5610
5610
5610

query I rowsort
SELECT + col0 * + col0 + col0 AS col0 FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4028
SELECT ALL - cor0.col0 DIV - 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - cor0.col0 / - 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT col2 * cor0.col0 + col2 * - col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT + + col1 + + col1 + col1 FROM tab0 AS cor0
----
258
273
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( tab1.col2 * + col1 ) col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col1 * cor0.col1 + - ( + col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
7286
8101
9277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * + col0 col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + 0 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT 29 * col0 + col1 AS col0 FROM tab2 AS cor0
----
2308
2321
234

onlyif mysql # use DIV operator for integer division
query I rowsort label-4037
SELECT DISTINCT col0 DIV + col0 + col0 * col1 AS col0 FROM tab0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT col0 / + col0 + col0 * col1 AS col0 FROM tab0
----
2065
3396
8100

query I rowsort
SELECT - ( - col2 ) * + col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL 43 * - col2 * - tab2.col2 FROM tab2
----
29068
31347
62092

query I rowsort
SELECT ALL - - 13 + - 66 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query I rowsort
SELECT ALL + 12 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT 31 + cor0.col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
27
52

query I rowsort
SELECT col1 * + 84 AS col0 FROM tab2
----
1428
2604
4956

skipif mysql # not compatible
query I rowsort
SELECT col2 + - col0 + cor0.col2 * + CAST ( + col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
1264
1455
563

query I rowsort
SELECT - tab1.col2 - - col1 * + col1 FROM tab1
----
43
622
73

query III rowsort
SELECT * FROM tab2 WHERE - tab2.col1 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT col1 * col1 * col0 + - col2 FROM tab2
----
22793
271492
6700

query I rowsort
SELECT DISTINCT - col2 * + col2 + - col0 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT col2 * + tab1.col0 + col0 * col1 FROM tab1 WHERE NOT col0 + - tab1.col0 * - tab1.col2 <= col2 * col0
----
240
4288
8720

query I rowsort
SELECT col2 * col2 + col2 + col1 FROM tab2
----
1499
761
787

query I rowsort
SELECT ALL tab0.col2 + + col1 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab2.col0 * - tab2.col1 / + tab2.col2 col2 FROM tab2 WHERE ( NULL ) IN ( col2 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT DISTINCT tab1.col2 DIV - col1 + col0 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT tab1.col2 / - col1 + col0 FROM tab1
----
1
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT - col0 + + col2 * col0 + + tab2.col2 AS col0 FROM tab2
----
1976
209
2961

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col2 )
----

query I rowsort
SELECT ALL tab0.col2 * + col1 + col0 + col1 FROM tab0
----
229
2948
7642

query I rowsort
SELECT DISTINCT col1 * col2 * col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + col1 * col1 * - col2 AS col0 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT - col2 + - col0 * col0 + + col2 * col1 FROM tab0
----
-1129
-541
2229

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT + col2 * col2 DIV - col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4062
SELECT + col2 * col2 / - col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4063
SELECT ALL + col0 DIV - col0 + col2 * col0 + - tab0.col2 FROM tab0
----
33
7215
758

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + col0 / - col0 + col2 * col0 + - tab0.col2 FROM tab0
----
33
7215
758

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT ALL + tab0.col1 DIV + col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + tab0.col1 / + col0 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT - tab2.col0 + tab2.col0 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + tab0.col2 - col2 col1 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT ALL + col2 * col2 + - tab0.col0 AS col0 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT col0 FROM tab1 WHERE NULL NOT BETWEEN ( + col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * + col1 col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT tab2.col0 * - col1 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT tab1.col0 * col1 * tab1.col2 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - col2 * + col2 + col1 * col2 + col2 FROM tab1
----
-1458
-2622
-7872

query I rowsort
SELECT tab1.col2 + col0 * + col1 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT - cor0.col1 * col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col2 * tab0.col0 + col1 * col2 AS col0 FROM tab0
----
132
14760
3630

query I rowsort
SELECT ALL + tab0.col0 * tab0.col0 * col0 + col2 AS col2 FROM tab0 WHERE NULL NOT IN ( + col2 / col0 + col0 + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND ( col0 )
----

query I rowsort
SELECT ALL cor0.col2 + + col0 * cor0.col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL cor0.col2 FROM tab1 AS cor0 WHERE NOT col0 >= col0 + col0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT ALL + col2 DIV col0 col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + col2 / col0 col2 FROM tab0 AS cor0
----
0
0
1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT col1 * col2 + + col2 DIV + col0 AS col1 FROM tab2 cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-4085
SELECT col1 * col2 + + col2 / + col0 AS col1 FROM tab2 cor0
----
1534
646
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 17 + + col2 * cor0.col1 col2 FROM tab0 AS cor0
----
113
2822
7397

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT DISTINCT - - col0 DIV + col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - - col0 / + col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - + cor0.col1 * col0 + + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - 96 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT - col2 + 50 * col2 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT + 66 * - col1 FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT + + col1 + ( + col0 ) * - ( col0 * col2 ) AS col0 FROM tab0 AS cor0
----
-1128
-18922
-649431

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4093
SELECT DISTINCT CAST( - 65 AS SIGNED ) * tab0.col1 AS col2 FROM tab0
----
-5590
-5915
-6305

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT CAST ( - 65 AS INTEGER ) * tab0.col1 AS col2 FROM tab0
----
-5590
-5915
-6305

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

query I rowsort
SELECT ( ( - col1 ) ) * col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL ( col2 ) * ( col0 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4097
SELECT - col2 * col2 + cor0.col1 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
-2924
-3249
-9216

skipif mysql # not compatible
query I rowsort label-4097
SELECT - col2 * col2 + cor0.col1 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
-2924
-3249
-9216

query I rowsort
SELECT DISTINCT + - 67 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2131
-3462
-8166

onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT DISTINCT + + ( - col2 ) DIV - col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT + + ( - col2 ) / - col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - - ( + col1 ) * 27 FROM tab1 cor0
----
270
351
702

query I rowsort
SELECT ALL - col0 + cor0.col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 92 * - tab1.col0 FROM tab1
----
-276
-5888
-7360

onlyif mysql # use DIV operator for integer division
query I rowsort label-4103
SELECT + col2 + col1 DIV + 30 AS col2 FROM tab2 AS cor0
----
27
28
38

skipif mysql # not compatible
query I rowsort label-4103
SELECT + col2 + col1 / + 30 AS col2 FROM tab2 AS cor0
----
27
28
38

query I rowsort
SELECT ALL - cor0.col1 * + col1 - ( - col2 ) FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + col0 * 78 col1 FROM tab2 AS cor0
----
544
6082
6160

query I rowsort
SELECT DISTINCT + - col1 * col1 + ( + cor0.col0 ) - + col1 FROM tab2 AS cor0
----
-227
-3462
-985

query I rowsort
SELECT - + 59 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT - - col0 * col1 + col1 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col2 col1 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT col1 + 77 * - ( cor0.col0 + + cor0.col1 ) FROM tab1 AS cor0
----
-2207
-5688
-7148

query I rowsort
SELECT - col2 * 12 + col1 FROM tab2 AS cor0
----
-253
-293
-439

query I rowsort
SELECT DISTINCT + - col1 + col1 * - 75 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT - col2 + ( col0 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT ALL + col0 + CAST( ( - col1 ) AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + col0 + CAST ( ( - col1 ) AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL 25 + - col2 FROM tab1
----
-29
-32
-71

query I rowsort
SELECT ALL col2 * col1 + + ( 39 ) FROM tab2
----
1573
685
876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT ALL + col0 * + 11 FROM tab1
----
33
704
880

query I rowsort
SELECT ALL - 80 * col0 FROM tab0
----
-1920
-2800
-7120

query I rowsort
SELECT ALL - ( + col0 * col0 ) AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL 76 * + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1e77ed7a8ee287b8c9c5c5d2355250

query I rowsort
SELECT DISTINCT + 78 + + col2 FROM tab1
----
132
135
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4124
SELECT ALL - 51 + - col2 * CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL - 51 + - col2 * CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT - col1 * col0 + cor0.col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL col1 + + col0 * + col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT ( - col2 ) * col2 DIV - 67 + + col1 + col0 AS col0 FROM tab0 AS cor0
----
126
132
280

skipif mysql # not compatible
query I rowsort label-4128
SELECT ( - col2 ) * col2 / - 67 + + col1 + col0 AS col0 FROM tab0 AS cor0
----
126
132
280

query I rowsort
SELECT + 68 * cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 035a8c90fab1eae9d6ad64680f5ef50c

query I rowsort
SELECT - 95 * 61 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 53ec340097e788d92a7ff0b33c6d27b5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 81 * 21 col2 FROM tab2 AS cor0
----
100359
28917
52731

query I rowsort
SELECT + - col1 * col0 + - col2 + col1 FROM tab1 AS cor0
----
-106
-1123
-687

query I rowsort
SELECT cor0.col0 + 11 * col2 + col0 AS col2 FROM tab1 AS cor0
----
1216
600
755

query I rowsort
SELECT col2 + - 88 AS col0 FROM tab2 cor0
----
-50
-61
-62

query I rowsort
SELECT col0 * - ( + ( col1 ) ) + cor0.col0 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col0 + - col0 + + 19 AS col1 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT col1 * tab1.col1 + + col0 + col2 * col1 * tab1.col1 AS col0 FROM tab1
----
16473
37183
5864

query I rowsort
SELECT ALL col1 * + col2 + - col2 AS col1 FROM tab2
----
1508
608
810

query I rowsort
SELECT ALL col0 + + col1 - - col2 FROM tab1
----
131
189
83

query I rowsort
SELECT DISTINCT col2 + - tab1.col2 * col1 * col2 - + col0 AS col1 FROM tab1
----
-119792
-32497
-75765

query I rowsort
SELECT cor0.col0 * cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT DISTINCT - col2 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT - col2 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT ALL col2 + - col2 * - col0 AS col2 FROM tab0 cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4144
SELECT - - col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4144
SELECT - - col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * - col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT + col1 + + col2 DIV + col0 + col1 * + col1 FROM tab0 AS cor0
----
7483
8372
9506

skipif mysql # not compatible
query I rowsort label-4146
SELECT + col1 + + col2 / + col0 + col1 * + col1 FROM tab0 AS cor0
----
7483
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT DISTINCT - - col0 * col2 DIV col0 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT - - col0 * col2 / col0 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + ( col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 13 + + cor0.col0 FROM tab1 cor0
----
16
77
93

query I rowsort
SELECT 20 + cor0.col2 FROM tab1 AS cor0
----
116
74
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT ALL col2 DIV col2 + + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL col2 / col2 + + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - + col1 * col2 + col2 * col2 * + col2 FROM tab2 AS cor0
----
16042
18846
54226

query I rowsort
SELECT ALL + col2 + + col1 * + col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + + col1 + - col0 * col2 + col1 FROM tab1 AS cor0
----
-110
-3628
-7654

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 * col1 + - 49 - + col0 FROM tab1 cor0
----
36367
4160
99711

query I rowsort
SELECT DISTINCT ( - col1 ) * + 64 + - col2 AS col0 FROM tab1 AS cor0
----
-1718
-697
-928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4157
SELECT - col0 + - cor0.col1 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-164
-249
-679

skipif mysql # not compatible
query I rowsort label-4157
SELECT - col0 + - cor0.col1 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL + 56 * + col2 + col1 FROM tab2 AS cor0
----
1515
1543
2145

query I rowsort
SELECT - 78 * - col2 + col0 FROM tab1 AS cor0
----
4215
4510
7568

query I rowsort
SELECT + + col0 + col2 * 48 FROM tab1 AS cor0
----
2595
2800
4688

query I rowsort
SELECT DISTINCT - - cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - 80 AS col2 FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + - 10 + col0 * + col1 FROM tab0 AS cor0
----
2054
3385
8089

query I rowsort
SELECT DISTINCT + 69 * + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
483
5382
5451

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT ALL + col2 DIV cor0.col2 + - 27 FROM tab1 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + col2 / cor0.col2 + - 27 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + 32 * cor0.col2 FROM tab2, tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT ALL col1 * 46 + - col2 FROM tab2 AS cor0
----
1399
2688
744

query I rowsort
SELECT ALL + cor0.col1 * col1 + col1 * cor0.col2 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT cor0.col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + ( + tab1.col0 * + 43 ) FROM tab1
----
129
2752
3440

query I rowsort
SELECT ALL - col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - + col1 * col2 - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT + + 58 + - col0 * col0 FROM tab0 AS cor0
----
-1167
-518
-7863

onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT DISTINCT - ( + col0 ) DIV - col2 - + 87 col2 FROM tab1 cor0
----
-86
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT - ( + col0 ) / - col2 - + 87 col2 FROM tab1 cor0
----
-86
-87

query I rowsort
SELECT - - col2 * cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + 16 * + 10 + - col2 FROM tab0 AS cor0
----
127
159
78

query I rowsort
SELECT ALL + 62 + cor0.col2 FROM tab2 AS cor0
----
100
88
89

query I rowsort
SELECT DISTINCT - tab1.col0 - col2 * + col1 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT ( cor1.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL 74 + + col1 FROM tab0
----
160
165
171

query I rowsort
SELECT ALL 4 * - col1 + tab0.col2 AS col1 FROM tab0
----
-282
-311
-387

query I rowsort
SELECT ( - col2 ) * col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - tab1.col0 + - ( col0 * 16 + col1 ) FROM tab1
----
-1098
-1373
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4184
SELECT - + CAST( NULL AS SIGNED ) * 35 + + cor0.col2 + - 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT - + CAST ( NULL AS INTEGER ) * 35 + + cor0.col2 + - 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT ALL 72 * - col2 * col0 + - col2 DIV 19 + col1 FROM tab0
----
-2423
-525369
-56939

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL 72 * - col2 * col0 + - col2 / 19 + col1 FROM tab0
----
-2423
-525369
-56939

query I rowsort
SELECT DISTINCT + + 17 + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2047
-3378
-8082

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col0 * + ( col0 ) + - col1 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT ALL tab2.col2 + - 21 * 98 AS col0 FROM tab2
----
-2020
-2031
-2032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT + col0 * - 67 + - col0 - + col0 AS col0 FROM tab1
----
-207
-4416
-5520

query I rowsort
SELECT DISTINCT col0 * ( col0 ) + + col0 * tab0.col2 + 89 * col1 AS col2 FROM tab0
----
23318
9022
9893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * col1 col0 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1413
-4666
-7648

query I rowsort
SELECT DISTINCT + col0 + - 32 AS col1 FROM tab1 AS cor0
----
-29
32
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 34 * + col0 AS col1 FROM tab1 AS cor0
----
102
2176
2720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4198
SELECT ALL - CAST( NULL AS SIGNED ) * ( col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - ( col1 ) - - col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT 77 * - 34 + - col2 * - ( - col1 * - col2 ) FROM tab0 AS cor0
----
-2521
609266
91036

query I rowsort
SELECT ALL ( 37 ) + + col0 FROM tab2 cor0
----
115
116
44

query I rowsort
SELECT ALL + - ( 94 ) AS col1 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - + col2 * + ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 + + 83 - 84 * + col0 col2 FROM tab1
----
-115
-5236
-6541

onlyif mysql # use DIV operator for integer division
query I rowsort label-4206
SELECT + col0 DIV - 92 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4206
SELECT + col0 / - 92 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + 83 FROM tab1 cor0
----
19
3
80

query I rowsort
SELECT - col0 * - col2 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - + 94 * col2 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT ALL - ( 88 ) FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + + 53 * col0 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT + ( - cor0.col1 ) * col2 + 72 FROM tab2 cor0
----
-1462
-574
-765

query I rowsort
SELECT + col0 * col1 + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT col1 * col2 + - cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
-124
-1947
357

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT DISTINCT col2 + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT col2 + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * 13 col2 FROM tab0
----
-1066
-226
-358

query I rowsort
SELECT 93 * tab1.col1 AS col1 FROM tab1
----
1209
2418
930

query I rowsort
SELECT + 97 * + 63 * cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 993db62196238f01c073b10dab88d7cd

query I rowsort
SELECT - - 38 + + col0 FROM tab1 AS cor0
----
102
118
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 + - 4 col0 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to b367033d2867a8ca951e3972e9b13154

query I rowsort
SELECT ALL + col2 * - ( + col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col0 * + col0 + + col2 * + ( + col1 ) - + ( - cor0.col1 ) AS col1 FROM tab0 cor0
----
-1031
-368
2348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + 18 - - 12 col1 FROM tab1 AS cor0
----
1164
1452
66

query I rowsort
SELECT - ( cor0.col1 ) * - col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT cor0.col1 * col2 - - col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - + col2 - + col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL ( col2 + col2 ) * col1 FROM tab2
----
1292
1674
3068

query I rowsort
SELECT - ( cor1.col1 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT 83 * - col0 AS col2 FROM tab0
----
-1992
-2905
-7387

query I rowsort
SELECT 36 * - col2 FROM tab2
----
-1368
-936
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 * col2 col0 FROM tab2
----
676
702
988

query I rowsort
SELECT ALL + 24 * cor0.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to cac8976e86a80df9f79fe0a19c4247fb

query I rowsort
SELECT + + col1 * 72 * - col2 AS col2 FROM tab1 AS cor0
----
-101088
-41040
-89856

query I rowsort
SELECT col0 - ( - col0 * + col0 ) FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4235
SELECT + col2 + CAST( NULL AS SIGNED ) * col0 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT + col2 + CAST ( NULL AS INTEGER ) * col0 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 49 FROM tab1, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT + col1 DIV + ( col2 ) FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4237
SELECT + col1 / + ( col2 ) FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL cor0.col0 + ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4239
SELECT ALL - + col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - + col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col2 + - 85 * - 26 FROM tab0 cor0
----
2128
2177
2209

query I rowsort
SELECT DISTINCT + - col0 * + 89 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT - cor0.col0 + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4243
SELECT - col2 * col1 + - ( + col2 ) * - CAST( 96 AS SIGNED ) FROM tab2 AS cor0
----
1755
3002
962

skipif mysql # not compatible
query I rowsort label-4243
SELECT - col2 * col1 + - ( + col2 ) * - CAST ( 96 AS INTEGER ) FROM tab2 AS cor0
----
1755
3002
962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4244
SELECT ALL - col2 + CAST( - col2 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - col2 + CAST ( - col2 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4245
SELECT CAST( NULL AS SIGNED ) + + cor0.col0 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4245
SELECT CAST ( NULL AS INTEGER ) + + cor0.col0 col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col2 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col2 FROM tab1, tab0 AS cor0
----
89

query I rowsort
SELECT col1 + + tab2.col2 * - col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL - col1 + 79 * - 87 * - col1 AS col1 FROM tab1
----
178672
68720
89336

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 * - col0 + + 36 FROM tab2
----
-334
-474542
-493041

query I rowsort
SELECT DISTINCT col2 + ( + col1 ) + - col1 * - 87 AS col1 FROM tab0 AS cor0
----
7601
8090
8537

query I rowsort
SELECT ALL col2 * col1 + col0 * - col1 * + ( + cor0.col0 ) FROM tab1 AS cor0
----
-40390
-81952
1170

query I rowsort
SELECT ALL + - col0 + + cor0.col0 * col0 + + col0 * col1 FROM tab0 AS cor0
----
15931
2616
4585

query I rowsort
SELECT col1 + 87 AS col2 FROM tab0
----
173
178
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - ( - cor0.col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4257
SELECT + + ( ( - col1 ) ) * 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-4257
SELECT + + ( ( - col1 ) ) * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 * col2 + - col1 * ( + 32 * - cor0.col0 ) FROM tab1 AS cor0
----
22019
35872
3954

query I rowsort
SELECT DISTINCT + - 13 + cor0.col2 AS col0 FROM tab1 AS cor0
----
41
44
83

query I rowsort
SELECT 40 * + 49 AS col2 FROM tab1 cor0
----
1960
1960
1960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col1 FROM tab0
----
85
85
85

query I rowsort
SELECT DISTINCT ( 85 ) + + col1 AS col1 FROM tab1 cor0
----
111
95
98

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4264
SELECT ALL CAST( 98 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL CAST ( 98 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - ( + col0 ) col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT + col1 * - col1 - ( col2 + + 20 ) AS col2 FROM tab2
----
-1008
-347
-3527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT ALL + - 62 DIV col1 FROM tab1 AS cor0
----
-2
-4
-6

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + - 62 / col1 FROM tab1 AS cor0
----
-2
-4
-6

query I rowsort
SELECT + - 84 * + col0 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT ( cor0.col0 ) * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - 89 * + col2 FROM tab0 AS cor0
----
-2937
-7298
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - tab1.col2 + 23 col0 FROM tab1
----
-24
-5
-60

query I rowsort
SELECT DISTINCT + + col0 + col1 * + ( - ( col2 ) ) FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT + - col0 DIV col2 + - 21 AS col2 FROM tab0 AS cor0
----
-21
-22
-56

skipif mysql # not compatible
query I rowsort label-4274
SELECT + - col0 / col2 + - 21 AS col2 FROM tab0 AS cor0
----
-21
-22
-56

query I rowsort
SELECT ALL - + cor0.col0 - - col1 * - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-244092
-679131
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4276
SELECT DISTINCT - col2 + - col0 + - 83 DIV col2 FROM tab0 AS cor0
----
-119
-172
-59

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - col2 + - col0 + - 83 / col2 FROM tab0 AS cor0
----
-119
-172
-59

query I rowsort
SELECT + col1 * col2 - + col2 * + col2 FROM tab2 AS cor0
----
-798
108
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * col1 col0 FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT ALL ( col1 ) DIV ( + cor0.col0 ) - col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL ( col1 ) / ( + cor0.col0 ) - col0 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT - col1 * + col2 + - 54 * 96 AS col2 FROM tab2 AS cor0
----
-5830
-6021
-6718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( cor0.col0 ) col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col1 * 37 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT - col2 + col1 * + ( col0 ) FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + col2 * 8 + - col1 AS col0 FROM tab1 AS cor0
----
406
446
755

query I rowsort
SELECT DISTINCT - col2 + col2 * + col2 * col2 AS col1 FROM tab1 AS cor0
----
157410
185136
884640

query I rowsort
SELECT - col1 + ( col0 ) * col0 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT ALL + + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + + col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT ALL - CAST( NULL AS SIGNED ) + tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - CAST ( NULL AS INTEGER ) + tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4290
SELECT DISTINCT + col1 + CAST( 50 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1326
510
663

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + col1 + CAST ( 50 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1326
510
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4291
SELECT ALL - cor0.col1 * - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - cor0.col1 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col0 + - 10 * cor0.col0 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT - col2 * - ( + ( + col2 ) ) + - col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - cor0.col1 + 69 FROM tab2 AS cor0
----
10
38
52

query I rowsort
SELECT DISTINCT + + col2 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT - col0 + col1 DIV - col0 + col0 * col1 * + 75 AS col0 FROM tab0 AS cor0
----
154773
254588
607335

skipif mysql # not compatible
query I rowsort label-4296
SELECT - col0 + col1 / - col0 + col0 * col1 * + 75 AS col0 FROM tab0 AS cor0
----
154773
254588
607335

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4297
SELECT col0 + - CAST( + 85 + - col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-3634
-399
-4524

skipif mysql # not compatible
query I rowsort label-4297
SELECT col0 + - CAST ( + 85 + - col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-3634
-399
-4524

query I rowsort
SELECT ALL - col2 + + 95 AS col2 FROM tab2 AS cor0
----
57
68
69

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1, tab2, tab1 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 - - col2 col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4301
SELECT + - col0 - ( + 45 ) DIV col1 AS col1 FROM tab1 AS cor0
----
-4
-68
-83

skipif mysql # not compatible
query I rowsort label-4301
SELECT + - col0 - ( + 45 ) / col1 AS col1 FROM tab1 AS cor0
----
-4
-68
-83

query I rowsort
SELECT + col0 - - col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - 88 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT DISTINCT + col2 + - cor0.col1 DIV 10 + + col1 AS col1 FROM tab1 AS cor0
----
108
66
78

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + col2 + - cor0.col1 / 10 + + col1 AS col1 FROM tab1 AS cor0
----
108
66
78

query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col0 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT ALL ( col1 ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL ( col1 ) / col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col0 FROM tab1
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4308
SELECT DISTINCT + 18 / col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT + 18 / col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 60 + col1 * + 63 FROM tab2 AS cor0
----
1011
1893
3657

query I rowsort
SELECT DISTINCT 60 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
5193
5542
5821

query I rowsort
SELECT ALL 21 * col1 * cor0.col0 FROM tab1 AS cor0
----
13440
1638
21840

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - col1 * + col0 col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col2 col2 FROM tab2 AS cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - ( + col1 ) ) * + col0 + 70 col1 FROM tab0 AS cor0
----
2134
3465
8169

query I rowsort
SELECT + 96 + 99 FROM tab2 AS cor0
----
195
195
195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4317
SELECT - + ( col1 ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT - + ( col1 ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 + + col1 + - col1 * col1 FROM tab1 AS cor0
----
-143
-624
-80

query I rowsort
SELECT - + ( col0 ) * + col1 * 30 + - cor0.col2 FROM tab1 AS cor0
----
-19257
-2394
-31296

query I rowsort
SELECT + 95 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT - 35 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
-22400
-2730
-36400

query I rowsort
SELECT DISTINCT + - col2 * - 91 AS col2 FROM tab2 AS cor0
----
2366
2457
3458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4324
SELECT - col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT - col2 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor2.col0 FROM tab0, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
7
78
79

query I rowsort
SELECT tab0.col1 + ( col2 ) * col2 AS col0 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT col1 + 1 DIV tab0.col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4328
SELECT col1 + 1 / tab0.col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT + cor0.col1 * col0 DIV - col0 AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4329
SELECT + cor0.col1 * col0 / - col0 AS col2 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT + ( + col0 ) DIV - col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT + ( + col0 ) / - col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL - 13 * - tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3173f4c955714cd55e41fb27274aa6bb

onlyif mysql # use DIV operator for integer division
query I rowsort label-4332
SELECT ALL - col1 * col1 DIV cor0.col1 + - 78 FROM tab1 AS cor0
----
-104
-88
-91

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - col1 * col1 / cor0.col1 + - 78 FROM tab1 AS cor0
----
-104
-88
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4333
SELECT ALL CAST( 11 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
28
42
70

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL CAST ( 11 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
28
42
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT CAST( NULL AS SIGNED ) + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT DISTINCT - col2 * CAST( col0 AS SIGNED ) col1 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - col2 * CAST ( col0 AS INTEGER ) col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4336
SELECT DISTINCT ( + cor0.col2 ) * - col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT ( + cor0.col2 ) * - col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 51 AS col0 FROM tab1 AS cor0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + col1 col1 FROM tab2 AS cor0
----
-32
-4
-46

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( ( + col2 ) ) + CAST ( col2 AS REAL ) * col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + - ( + col1 ) - col2 * 9 * col1 AS col0 FROM tab0 cor0
----
-25628
-67249
-970

query I rowsort
SELECT + col2 + - col2 * - col0 * col1 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT ALL + 19 + - col2 * + col1 FROM tab2 AS cor0
----
-1515
-627
-818

query I rowsort
SELECT ALL + col2 * + col1 + + 35 FROM tab2 AS cor0
----
1569
681
872

query I rowsort
SELECT 97 + + col1 FROM tab0 AS cor0
----
183
188
194

query I rowsort
SELECT DISTINCT + 71 FROM tab2, tab0 AS cor0
----
71

query I rowsort
SELECT - + 41 * - 83 AS col2 FROM tab0 AS cor0
----
3403
3403
3403

query I rowsort
SELECT + 60 + col2 * col1 * - 39 FROM tab2 AS cor0
----
-25134
-32583
-59766

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4348
SELECT CAST( - 70 AS SIGNED ) * col0 * - col1 + - col2 * tab2.col0 AS col0 FROM tab2
----
15001
320112
91008

skipif mysql # not compatible
query I rowsort label-4348
SELECT CAST ( - 70 AS INTEGER ) * col0 * - col1 + - col2 * tab2.col0 AS col0 FROM tab2
----
15001
320112
91008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 53 * tab2.col1 AS col2 FROM tab2
----
1643
3127
901

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4351
SELECT CAST( NULL AS DECIMAL ) + 84 col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4351
SELECT CAST ( NULL AS REAL ) + 84 col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4352
SELECT DISTINCT col0 * col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT col0 * col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4353
SELECT ALL - - col2 + cor0.col1 DIV - col2 - col1 col2 FROM tab0 AS cor0
----
-10
-193
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - - col2 + cor0.col1 / - col2 - col1 col2 FROM tab0 AS cor0
----
-10
-193
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4354
SELECT DISTINCT col1 DIV 70 + cor0.col2 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT col1 / 70 + cor0.col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL cor0.col0 * + col0 + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
4196
6569
685

onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT 4 DIV - col2 - ( + col1 + + col1 ) FROM tab1
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-4356
SELECT 4 / - col2 - ( + col1 + + col1 ) FROM tab1
----
-20
-26
-52

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL col0 + col1 + + col1 * col2 AS col2 FROM tab2
----
1671
742
875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col1 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT col0 * col1 * col1 AS col2 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - + col1 * 42 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT - - col0 + - col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT + col0 * + ( ( col1 ) ) + col2 DIV 85 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-4363
SELECT + col0 * + ( ( col1 ) ) + col2 / 85 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab1, tab0, tab1 cor0
----
-41

query I rowsort
SELECT 20 * + col0 + - col2 - 29 AS col2 FROM tab2
----
1505
1513
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT CAST( col1 * col2 AS SIGNED ) + col2 col0 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4366
SELECT CAST ( col1 * col2 AS INTEGER ) + col2 col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + col0 + - 47 FROM tab0
----
-12
-23
42

query I rowsort
SELECT ALL ( - col0 ) - cor0.col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + 30 * col0 AS col0 FROM tab1 cor0
----
1920
2400
90

query I rowsort
SELECT + 57 * + col0 AS col2 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT ALL - col2 * cor0.col1 * ( col0 ) + col2 + - cor0.col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + 12 * col0 + + ( col2 ) FROM tab0 cor0
----
1150
321
421

query I rowsort
SELECT ( - tab2.col0 ) * col1 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL col0 + + col0 - - col0 * + 76 FROM tab1
----
234
4992
6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT + 53 DIV - col1 FROM tab1
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 53 / - col1 FROM tab1
----
-2
-4
-5

query I rowsort
SELECT DISTINCT 25 + - col0 FROM tab2
----
-53
-54
18

query I rowsort
SELECT + cor0.col0 * - col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT 80 + col0 FROM tab1 AS cor0
----
144
160
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 * col1 + col2 col1 FROM tab0 AS cor0
----
636089
753653
912674

query I rowsort
SELECT - - 51 AS col1 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT ALL + + ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col0 * + col1 + + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - + 13 + col1 * - col1 FROM tab0 AS cor0
----
-7409
-8294
-9422

query I rowsort
SELECT ALL + + 59 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + + col1 * + ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - cor0.col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + ( tab1.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT + ( + 89 ) AS col2 FROM tab0 cor0
----
89

query I rowsort
SELECT cor0.col1 * - col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + + 77 - cor0.col0 FROM tab0 AS cor0
----
-12
42
53

query I rowsort
SELECT + - 84 * col0 + col0 FROM tab1 AS cor0
----
-249
-5312
-6640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4393
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col1 ) + - col0 AS col0 FROM tab0 cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 74 + col0 col1 FROM tab1 AS cor0
----
-10
-71
6

query I rowsort
SELECT ALL 12 * ( col0 ) AS col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT cor0.col1 * ( - 90 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e761f859a7f0d3dd0629c2a99d2be84c

query I rowsort
SELECT ALL col2 * - 10 * + col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1594
-36470
-76787

query I rowsort
SELECT ALL - 98 + + col2 AS col0 FROM tab0 AS cor0
----
-16
-65
-97

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT DISTINCT + col2 DIV cor0.col1 + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + col2 / cor0.col1 + col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT + col0 + 81 AS col0 FROM tab2 AS cor0
----
159
160
88

query I rowsort
SELECT ALL - col0 * + 37 FROM tab0 AS cor0
----
-1295
-3293
-888

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - col0 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - col2 + + ( - cor0.col1 + ( 99 ) ) AS col1 FROM tab2 AS cor0
----
14
41
44

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT ALL + - 24 DIV + col2 + + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + - 24 / + col2 + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 30 * col2 - + 55 AS col2 FROM tab0 cor0
----
-1045
-2515
-85

query I rowsort
SELECT ( - col0 ) - - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 1 * + cor0.col2 - + col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - - 0 * + col1 + col1 + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4414
SELECT ALL - col1 + 33 DIV 19 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - col1 + 33 / 19 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT cor0.col0 * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT cor0.col0 DIV + 94 + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif mysql # not compatible
query I rowsort label-4417
SELECT cor0.col0 / + 94 + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 67 col0 FROM tab1 AS cor0
----
-1742
-670
-871

onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT + tab1.col1 + col0 DIV col1 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-4420
SELECT + tab1.col1 + col0 / col1 FROM tab1
----
16
19
26

query I rowsort
SELECT - col0 * ( - 44 ) + col0 FROM tab2
----
315
3510
3555

query I rowsort
SELECT + col2 * col1 - col2 AS col0 FROM tab1
----
1152
1350
513

query I rowsort
SELECT col0 + 72 FROM tab2
----
150
151
79

query I rowsort
SELECT DISTINCT + 3 * - col2 * 0 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 8 * - col1 + + cor0.col1 FROM tab1 AS cor0
----
-182
-70
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 col2 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + col0 * 6 + + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1024
1520
96

query I rowsort
SELECT cor0.col2 * - 80 FROM tab0 AS cor0
----
-2640
-6560
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4430
SELECT + cor0.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT + cor0.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 57 - + tab1.col0 AS col2 FROM tab1
----
-103
-71
51

query I rowsort
SELECT col2 + 89 * 52 AS col1 FROM tab1 cor0
----
4682
4685
4724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4433
SELECT - col0 + col1 DIV col1 AS col2 FROM tab1 cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4433
SELECT - col0 + col1 / col1 AS col2 FROM tab1 cor0
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT col0 DIV 74 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT col0 / 74 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT cor1.col1 * + cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
2838
7462
97

query I rowsort
SELECT - 24 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 29 col2 FROM tab1
----
-1856
-2320
-87

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) AS col2 FROM tab2, tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL col2 * 50 + + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
12480
2862
6498

query I rowsort
SELECT + ( + col0 ) * tab2.col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - 46 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-208
-3694
-7726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 + + 32 col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT - 28 * - 68 + col1 * col1 FROM tab2 AS cor0
----
2193
2865
5385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4444
SELECT + + CAST( - 17 AS SIGNED ) * + col0 + - col1 AS col1 FROM tab2 cor0
----
-1360
-1385
-150

skipif mysql # not compatible
query I rowsort label-4444
SELECT + + CAST ( - 17 AS INTEGER ) * + col0 + - col1 AS col1 FROM tab2 cor0
----
-1360
-1385
-150

onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT + cor0.col2 DIV - col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4445
SELECT + cor0.col2 / - col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab2
----
30

query I rowsort
SELECT + 52 + col1 AS col2 FROM tab1 AS cor0
----
62
65
78

query I rowsort
SELECT ( tab1.col2 ) - col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT 27 * col0 + + col0 FROM tab2
----
196
2184
2212

query I rowsort
SELECT ALL 49 + - col2 FROM tab2 AS cor0
----
11
22
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * 14 + cor0.col0 col2 FROM tab1 AS cor0
----
214
275
393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * col1 col1 FROM tab2 AS cor0
----
102
186
354

onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT - + col0 * 58 DIV col1 FROM tab0 AS cor0
----
-16
-20
-56

skipif mysql # not compatible
query I rowsort label-4453
SELECT - + col0 * 58 / col1 FROM tab0 AS cor0
----
-16
-20
-56

query I rowsort
SELECT ALL - cor0.col2 * 82 FROM tab0 AS cor0
----
-2706
-6724
-82

query I rowsort
SELECT + col1 * - 83 AS col1 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT ALL - + col2 + - ( col0 ) FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT + col2 DIV ( 31 * col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT + col2 / ( 31 * col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4458
SELECT ALL - col2 DIV + col1 + col0 col1 FROM tab2
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL - col2 / + col1 + col0 col1 FROM tab2
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 90 ) + col0 * col2 col0 FROM tab2 AS cor0
----
1938
2912
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4460
SELECT DISTINCT + 59 + - col1 DIV col0 FROM tab1 AS cor0
----
51
59

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT + 59 + - col1 / col0 FROM tab1 AS cor0
----
51
59

query I rowsort
SELECT - + col1 + col0 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL - ( - col2 ) - col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4464
SELECT + ( col1 ) DIV - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-4464
SELECT + ( col1 ) / - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-3
-36
-83

query I rowsort
SELECT + - col1 + + 19 * - col0 AS col2 FROM tab1 AS cor0
----
-1226
-1533
-83

query I rowsort
SELECT ALL col2 * ( col2 ) * + tab2.col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + 16 * col0 + col0 AS col0 FROM tab2 cor0
----
119
1326
1343

query I rowsort
SELECT 67 - + cor0.col2 AS col0 FROM tab1 cor0
----
-29
10
13

query I rowsort
SELECT - col2 * 38 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-1329
-277242
-30063

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4471
SELECT col0 / + col1 + + col1 * - CAST( NULL AS SIGNED ) * tab1.col1 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT col0 / + col1 + + col1 * - CAST ( NULL AS INTEGER ) * tab1.col1 + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 76 * - col1 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab2, tab1 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4474
SELECT DISTINCT ( + col1 ) * col1 DIV - col0 FROM tab1 AS cor0
----
-1
-2
-225

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT ( + col1 ) * col1 / - col0 FROM tab1 AS cor0
----
-1
-2
-225

query I rowsort
SELECT + - ( 61 ) AS col1 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - col1 + - 67 FROM tab2 AS cor0
----
-126
-84
-98

query I rowsort
SELECT DISTINCT + col1 * - col2 + - col0 * - col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT + 22 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT col0 * - 63 FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT + 72 + col1 FROM tab2 AS cor0
----
103
131
89

query I rowsort
SELECT DISTINCT col1 * + col2 - - col2 FROM tab2
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4482
SELECT - 41 * + col1 + CAST( col2 * - col0 AS SIGNED ) + col2 FROM tab1 cor0
----
-1174
-4001
-8117

skipif mysql # not compatible
query I rowsort label-4482
SELECT - 41 * + col1 + CAST ( col2 * - col0 AS INTEGER ) + col2 FROM tab1 cor0
----
-1174
-4001
-8117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + - col2 col2 FROM tab1
----
-12
-15
-54

query I rowsort
SELECT DISTINCT col2 + - col0 - - col0 AS col0 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT + col2 * - col1 * col2 + CAST( col1 AS SIGNED ) + + col2 AS col0 FROM tab0
----
-611711
-93535
1

skipif mysql # not compatible
query I rowsort label-4485
SELECT + col2 * - col1 * col2 + CAST ( col1 AS INTEGER ) + + col2 AS col0 FROM tab0
----
-611711
-93535
1

query I rowsort
SELECT col0 + col2 * col0 + - 55 * col0 FROM tab1
----
0
192
3360

query I rowsort
SELECT 62 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT ALL - 58 + - 41 AS col0 FROM tab2
----
-99
-99
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT ALL col1 DIV + 7 + col2 * col1 FROM tab0
----
110
2850
7475

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL col1 / + 7 + col2 * col1 FROM tab0
----
110
2850
7475

query I rowsort
SELECT DISTINCT + 41 * - col2 + + col1 FROM tab0
----
-1267
-3271
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-4491
SELECT - CAST( + col1 AS SIGNED ) DIV + tab1.col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT - CAST ( + col1 AS INTEGER ) / + tab1.col0 FROM tab1
----
-8
0
0

query I rowsort
SELECT ALL cor0.col0 + + ( 17 ) * col1 + + col2 FROM tab2 AS cor0
----
1107
406
561

query I rowsort
SELECT + col1 + ( - 9 * - col1 ) FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT + - col0 + - col0 + col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - col0 + - 85 AS col2 FROM tab0 AS cor0
----
-109
-120
-174

query I rowsort
SELECT ALL - 61 + - col1 * tab1.col2 FROM tab1
----
-1309
-1465
-631

query I rowsort
SELECT ALL + col2 * + col2 + ( col1 ) * + col0 * - 44 FROM tab2 AS cor0
----
-201812
-57648
-8819

query I rowsort
SELECT + col1 + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4499
SELECT ALL + col2 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + col2 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col0 * 36 FROM tab0 cor0
----
1260
3204
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 - - col1 * col1 col1 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT col1 + + tab1.col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT cor0.col0 * + 91 FROM tab2 AS cor0
----
637
7098
7189

onlyif mysql # use DIV operator for integer division
query I rowsort label-4504
SELECT 28 DIV cor0.col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4504
SELECT 28 / cor0.col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + cor0.col0 - 24 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to b9a0c7f82043cfa6aeca6a3e89d22c62

query I rowsort
SELECT DISTINCT - col2 * - 82 FROM tab1
----
4428
4674
7872

query I rowsort
SELECT ALL - 40 * ( col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-307
-3146
-3198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * - col2 col0 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT DISTINCT - ( - 83 ) * col1 AS col2 FROM tab2 cor0
----
1411
2573
4897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * - 20 col2 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT ALL - - 99 + col1 AS col1 FROM tab0 AS cor0
----
185
190
196

query I rowsort
SELECT + - 87 + 54 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT + + cor0.col1 - - col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - + ( 39 ) AS col1 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL + col2 * + col0 * col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + - col1 * col1 + - 7 AS col1 FROM tab1 AS cor0
----
-107
-176
-683

onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT DISTINCT + col0 DIV col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + col0 / col0 FROM tab2 cor0
----
1

query I rowsort
SELECT ALL - col0 * + col1 + - 11 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-111
-1344
-1920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4519
SELECT + 46 - - col1 * CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 46 - - col1 * CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 + + 29 + col2 * col0 AS col1 FROM tab0 AS cor0
----
-135
-2017
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT - 81 + col2 + col1 FROM tab1 cor0
----
-1
-14
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT ALL - - 36 + col1 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
47
50
63

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL - - 36 + col1 + col0 / col0 AS col2 FROM tab1 AS cor0
----
47
50
63

query I rowsort
SELECT + + col0 + - 59 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1923
-24
-4749

query I rowsort
SELECT + + ( - cor0.col1 ) * 57 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b1e807eeef9377dda7f27d358d84877

onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT - cor0.col0 DIV - 69 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4526
SELECT - cor0.col0 / - 69 AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - + col0 * col0 + col2 + - col2 * - col1 FROM tab1 AS cor0
----
-3469
-5056
1449

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4528
SELECT DISTINCT - col0 + + col2 * CAST( + col1 AS SIGNED ) FROM tab2
----
1456
567
830

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - col0 + + col2 * CAST ( + col1 AS INTEGER ) FROM tab2
----
1456
567
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4529
SELECT ( + col2 ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ( + col2 ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + - cor0.col1 AS col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT + - 35 * col1 FROM tab0 AS cor0
----
-3010
-3185
-3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 + - col0 ) col0 FROM tab1
----
0

query I rowsort
SELECT ALL + ( col2 ) + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL 88 + col0 AS col1 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT DISTINCT col2 * ( + col0 ) + - col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT + ( - col2 ) + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
75

query I rowsort
SELECT col1 + 74 FROM tab2
----
105
133
91

query I rowsort
SELECT col1 - col1 * - col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + tab2.col1 col1 FROM tab2
----
1534
646
837

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2, tab2 AS cor3
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 7 col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT ALL 52 + + col2 AS col0 FROM tab0
----
134
53
85

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2, tab1 AS cor0
----
-29

query I rowsort
SELECT 40 * - col0 * col2 FROM tab2
----
-120080
-7560
-81120

query I rowsort
SELECT DISTINCT - cor0.col2 - + cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ( + col2 ) + - col2 * + cor0.col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + + cor0.col1 * ( 95 ) AS col2 FROM tab1, tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT - tab1.col2 AS col2 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT 25 * col1 FROM tab2 AS cor0
----
1475
425
775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4552
SELECT - + CAST( 88 AS SIGNED ) + - col2 + col0 AS col1 FROM tab2 AS cor0
----
-108
-36
-47

skipif mysql # not compatible
query I rowsort label-4552
SELECT - + CAST ( 88 AS INTEGER ) + - col2 + col0 AS col1 FROM tab2 AS cor0
----
-108
-36
-47

query I rowsort
SELECT + 94 + col1 * - col1 FROM tab1 cor0
----
-582
-6
-75

query I rowsort
SELECT - cor0.col1 - - col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col1 * - col2 + - col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT + 22 AS col0 FROM tab2 cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT DISTINCT - col2 - col2 DIV - ( col1 * col1 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - col2 - col2 / - ( col1 * col1 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4559
SELECT cor0.col2 * - col0 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-4559
SELECT cor0.col2 * - col0 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + 40 + col1 * + col1 * - tab2.col0 + - col0 * + col2 * col2 AS col1 FROM tab2
----
-11790
-136867
-324206

query I rowsort
SELECT ALL + - 73 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT ALL - col0 + - col2 AS col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT col0 * + col0 + + col2 * tab1.col2 * col1 AS col0 FROM tab1
----
126208
36586
75825

query I rowsort
SELECT + 3 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT col1 * + col0 + ( tab0.col2 + col0 ) DIV col0 FROM tab0
----
2066
3396
8100

skipif mysql # not compatible
query I rowsort label-4565
SELECT col1 * + col0 + ( tab0.col2 + col0 ) / col0 FROM tab0
----
2066
3396
8100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - ( tab0.col1 * col2 ) col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT ALL + - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL + - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + ( cor0.col2 ) + + col1 * col1 FROM tab1 cor0
----
221
345
733

query I rowsort
SELECT + col0 * + ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col0 * cor0.col1 col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + 87 * col0 FROM tab2 cor0
----
609
6786
6873

query I rowsort
SELECT ALL + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col1 * + 57 + - col0 AS col0 FROM tab1 cor0
----
1479
506
661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * - col0 + cor0.col1 col0 FROM tab1 AS cor0
----
266
333
38

query I rowsort
SELECT - - ( + col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT DISTINCT - + CAST( - 19 AS SIGNED ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - + CAST ( - 19 AS INTEGER ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - + 31 * col1 AS col0 FROM tab2 cor0
----
-1829
-527
-961

query I rowsort
SELECT - 28 * 34 - col2 AS col0 FROM tab0 AS cor0
----
-1034
-953
-985

query I rowsort
SELECT col2 + + 60 AS col2 FROM tab0
----
142
61
93

query I rowsort
SELECT + ( 70 ) * + col1 - 65 FROM tab1 AS cor0
----
1755
635
845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col0 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL - 84 + - 32 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 31376c7f1863d250080719d2f729249d

query I rowsort
SELECT ALL col2 * - col0 + cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-7296
-730
27

query I rowsort
SELECT ALL - col2 * - cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + col1 col0 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4587
SELECT - col2 * + CAST( - 3 AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
567
6084
9006

skipif mysql # not compatible
query I rowsort label-4587
SELECT - col2 * + CAST ( - 3 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
567
6084
9006

query I rowsort
SELECT + col2 * 9 FROM tab1 cor0
----
486
513
864

query I rowsort
SELECT DISTINCT - col2 * ( 30 ) FROM tab0 cor0
----
-2460
-30
-990

query I rowsort
SELECT DISTINCT - col0 + 1 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT DISTINCT - col2 DIV 93 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT - col2 / 93 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - col1 * 63 AS col1 FROM tab2 cor0
----
-1071
-1953
-3717

query I rowsort
SELECT col1 * ( col2 + - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 99 + col0 * + tab0.col2 * - col2 FROM tab0
----
-134
-26235
-598535

query I rowsort
SELECT - col0 * + col0 + + col1 * 69 FROM tab2 AS cor0
----
-2013
-5068
2090

onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT + col0 DIV ( - cor0.col2 ) + 91 AS col1 FROM tab0 AS cor0
----
56
90
91

skipif mysql # not compatible
query I rowsort label-4597
SELECT + col0 / ( - cor0.col2 ) + 91 AS col1 FROM tab0 AS cor0
----
56
90
91

query I rowsort
SELECT ALL 88 + - cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
1622
734
925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4599
SELECT DISTINCT - CAST( - 24 AS SIGNED ) + col0 FROM tab1 AS cor0
----
104
27
88

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT - CAST ( - 24 AS INTEGER ) + col0 FROM tab1 AS cor0
----
104
27
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT ALL col0 + col2 DIV col1 col0 FROM tab2 AS cor0
----
7
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL col0 + col2 / col1 col0 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT DISTINCT + + ( + 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-4602
SELECT ALL + + CAST( - col2 AS SIGNED ) * - col1 col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + + CAST ( - col2 AS INTEGER ) * - col1 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + ( col1 ) + - col1 * - col0 * - 38 AS col0 FROM tab2 cor0
----
-174935
-51051
-8277

onlyif mysql # use DIV operator for integer division
query I rowsort label-4604
SELECT + 1 + - col0 DIV col1 col2 FROM tab2 AS cor0
----
-3
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4604
SELECT + 1 + - col0 / col1 col2 FROM tab2 AS cor0
----
-3
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT - + 98 DIV - col0 FROM tab2 cor0
----
1
1
14

skipif mysql # not compatible
query I rowsort label-4605
SELECT - + 98 / - col0 FROM tab2 cor0
----
1
1
14

query I rowsort
SELECT DISTINCT - col2 + - 93 * col2 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT ALL - 98 * cor0.col2 * - col0 AS col2 FROM tab0 cor0
----
3430
715204
77616

query I rowsort
SELECT DISTINCT col1 * 14 AS col1 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT DISTINCT + col0 + 53 - tab0.col0 FROM tab0
----
53

query I rowsort
SELECT - - 58 AS col1 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT ALL - ( + col0 ) * + col1 - col2 * - col2 FROM tab0 AS cor0
----
-1375
-3394
-975

query I rowsort
SELECT DISTINCT - 68 * cor0.col1 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT DISTINCT + + 8 * 35 FROM tab1 AS cor0
----
280

query I rowsort
SELECT + - cor0.col2 * - col0 - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + - ( + col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 89 + - col2 * + col2 col1 FROM tab0 AS cor0
----
-1178
-6813
-90

query I rowsort
SELECT DISTINCT - 51 * col0 - cor0.col2 FROM tab2 AS cor0
----
-384
-4004
-4067

query I rowsort
SELECT DISTINCT 8 + col2 * col1 FROM tab1
----
1256
1412
578

query I rowsort
SELECT DISTINCT + - col0 + - col1 * 23 AS col1 FROM tab0 AS cor0
----
-2002
-2182
-2266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT + CAST( NULL AS SIGNED ) + ( cor0.col2 + ( cor0.col2 ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT + CAST ( NULL AS INTEGER ) + ( cor0.col2 + ( cor0.col2 ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 49 + col0 * 67 AS col2 FROM tab1 AS cor0
----
250
4337
5409

query I rowsort
SELECT + - 56 * col2 + col2 * - cor0.col1 FROM tab1 AS cor0
----
-3762
-4428
-6624

query I rowsort
SELECT col2 + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + 14 + + col2 FROM tab2
----
40
41
52

query I rowsort
SELECT ALL - + col1 + - col2 * col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - 70 * - col2 - - ( - col1 ) FROM tab0 AS cor0
----
-27
2224
5649

query I rowsort
SELECT + col0 + - col2 * 99 FROM tab0 cor0
----
-3243
-64
-8029

query I rowsort
SELECT col0 * col0 + col1 FROM tab1 cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 75 - + col2 col1 FROM tab2 AS cor0
----
37
48
49

query I rowsort
SELECT DISTINCT col2 + ( - 83 ) * + tab1.col0 AS col0 FROM tab1
----
-195
-5255
-6544

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT ALL col0 * ( tab1.col0 ) * col1 - + CAST( col1 AS SIGNED ) DIV col2 FROM tab1
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL col0 * ( tab1.col0 ) * col1 - + CAST ( col1 AS INTEGER ) / col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL - 46 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
81 values hashing to ae4d442ff589a18fe7c7777464d5970c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT col2 DIV + 45 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4633
SELECT col2 / + 45 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + - col0 * + col1 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4635
SELECT DISTINCT col0 DIV col1 + + 41 + + col0 col2 FROM tab2 AS cor0
----
120
124
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT col0 / col1 + + 41 + + col0 col2 FROM tab2 AS cor0
----
120
124
48

query I rowsort
SELECT DISTINCT col2 + 87 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
1323
2370
984

query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * - col0 - col0 col0 FROM tab0 AS cor0
----
-1400
-3560
-960

query I rowsort
SELECT ALL col1 * 96 + col2 AS col1 FROM tab2 AS cor0
----
1670
3003
5690

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4640
SELECT + + ( + 26 ) * col1 / CAST( NULL AS SIGNED ) - col1 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT + + ( + 26 ) * col1 / CAST ( NULL AS INTEGER ) - col1 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - col2 ) + + col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4642
SELECT 91 DIV tab0.col2 FROM tab0
----
1
2
91

skipif mysql # not compatible
query I rowsort label-4642
SELECT 91 / tab0.col2 FROM tab0
----
1
2
91

query I rowsort
SELECT ALL 67 AS col2 FROM tab0
----
67
67
67

query I rowsort
SELECT + col2 + col2 - + cor0.col0 FROM tab1 AS cor0
----
105
112
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col2 ) * - col2 + col1 col2 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL ( - 8 ) FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT col0 * cor0.col1 + cor0.col2 DIV col0 FROM tab1 cor0
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-4647
SELECT col0 * cor0.col1 + cor0.col2 / col0 FROM tab1 cor0
----
1041
640
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4648
SELECT col0 DIV ( 36 ) AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4648
SELECT col0 / ( 36 ) AS col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT col0 + + 45 AS col2 FROM tab0 AS cor0
----
134
69
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT + col2 DIV col1 + col2 AS col0 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-4650
SELECT + col2 / col1 + col2 AS col0 FROM tab1 AS cor0
----
103
56
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 37 * + 75 col1 FROM tab0 AS cor0
----
-2686
-2740
-2751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + col2 + - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - + col0 * + ( - col1 ) - cor0.col2 * + 34 * col1 FROM tab0 AS cor0
----
-245609
-94428
97

query I rowsort
SELECT col1 + - col2 * col1 * - col0 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT + col2 * + col0 + + col2 * col1 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT 77 AS col1 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT ( cor0.col1 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT 87 DIV col1 + col2 * - 37 FROM tab0 AS cor0
----
-1220
-3034
-37

skipif mysql # not compatible
query I rowsort label-4659
SELECT 87 / col1 + col2 * - 37 FROM tab0 AS cor0
----
-1220
-3034
-37

query I rowsort
SELECT ALL + 27 * - col0 FROM tab0
----
-2403
-648
-945

query I rowsort
SELECT - ( 58 ) AS col0 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT 1 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

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-4664
SELECT - col2 * + col2 + ( 38 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-1088
-6724
37

skipif mysql # not compatible
query I rowsort label-4664
SELECT - col2 * + col2 + ( 38 ) / col2 AS col1 FROM tab0 AS cor0
----
-1088
-6724
37

query I rowsort
SELECT col1 * + col2 + col1 * + ( cor0.col0 * 79 ) FROM tab1 AS cor0
----
51130
7566
83408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4666
SELECT - cor0.col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT - cor0.col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT col2 - ( cor0.col2 ) DIV col0 AS col2 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-4667
SELECT col2 - ( cor0.col2 ) / col0 AS col2 FROM tab1 AS cor0
----
36
57
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4668
SELECT DISTINCT - col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + cor0.col1 + - col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 * 68 + - col2 AS col0 FROM tab2 AS cor0
----
-12879
-137930
-204174

query I rowsort
SELECT - 29 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT + cor1.col2 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - tab2.col2 + col0 * - col2 FROM tab2
----
-2054
-216
-3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4674
SELECT tab2.col1 + + CAST( NULL AS DECIMAL ) + - tab2.col0 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT tab2.col1 + + CAST ( NULL AS REAL ) + - tab2.col0 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col2 col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT col1 + + col1 - + tab2.col1 * col0 * + ( 70 * col0 + ( col0 ) ) FROM tab2
----
-107787
-25485758
-7532853

query I rowsort
SELECT - col1 * - col1 * 8 + tab2.col1 AS col2 FROM tab2
----
2329
27907
7719

query I rowsort
SELECT ALL col1 - + ( col2 ) AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col0 + + 1 * - col0 FROM tab2
----
-14
-156
-158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4680
SELECT DISTINCT + - cor0.col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + - cor0.col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * col1 - + 76 AS col0 FROM tab2 AS cor0
----
-1037
-3557
-365

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( + col1 AS REAL ) - col1 AS col2 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + 41 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT ALL - 16 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

query I rowsort
SELECT ALL 51 * 93 + + col2 AS col2 FROM tab1
----
4797
4800
4839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - 45 * + col1 * 3 FROM tab2 AS cor0
----
-2295
-4185
-7965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4690
SELECT ALL - col0 + col0 * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
576
75
960

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - col0 + col0 * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT DISTINCT col2 DIV + col2 col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT col2 / + col2 col0 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4692
SELECT - 49 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4692
SELECT - 49 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL 60 * + 16 AS col1 FROM tab1
----
960
960
960

query I rowsort
SELECT - 8 * + col1 FROM tab1 cor0
----
-104
-208
-80

query I rowsort
SELECT ALL - - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT cor0.col0 * ( - cor0.col0 ) AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
-4096
-6400
-9

query I rowsort
SELECT + cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + col2 - - 17 FROM tab0 AS cor0
----
18
50
99

query I rowsort
SELECT - 48 * + col2 + + col1 * + ( + col2 * - col1 ) FROM tab2
----
-12806
-27243
-91754

query I rowsort
SELECT - ( + cor0.col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - col0 + - col1 AS col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT + col0 * + col1 + + col2 AS col2 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT DISTINCT + col1 DIV + col0 + col1 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + col1 / + col0 + col1 FROM tab0
----
89
92
99

query I rowsort
SELECT ALL + col1 + tab1.col0 * + col0 AS col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT 14 + + col0 * + col1 FROM tab0
----
2078
3409
8113

query I rowsort
SELECT ( + col0 ) * tab2.col1 * + 90 + tab2.col0 + + ( - 44 + tab2.col2 ) FROM tab2
----
120943
19520
414240

query I rowsort
SELECT ALL - ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL ( + col0 ) * + ( col0 * + col1 ) + 82 + - 37 FROM tab2
----
106142
1564
359001

query I rowsort
SELECT DISTINCT 74 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT ALL - + col0 * cor0.col2 - + cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - col1 + + 21 * col0 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
28169
4495
96524

query I rowsort
SELECT ALL + - col0 * ( - col0 ) * + cor0.col2 + + col1 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT + + col1 + - 67 FROM tab2 AS cor0
----
-36
-50
-8

query I rowsort
SELECT - - col1 + + cor0.col0 * col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col1 + + 79 * 73 FROM tab2 AS cor0
----
5784
5798
5826

query I rowsort
SELECT col2 + - ( cor0.col1 ) + col0 AS col1 FROM tab2 cor0
----
100
3
45

query I rowsort
SELECT ALL - col0 * 82 AS col1 FROM tab2 cor0
----
-574
-6396
-6478

query I rowsort
SELECT DISTINCT tab1.col1 * + col0 - ( - col2 ) AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT + 14 * col1 AS col1 FROM tab2
----
238
434
826

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT ALL + col0 + - col1 - + CAST( - col0 * col2 AS SIGNED ) FROM tab2
----
165
2047
3064

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + col0 + - col1 - + CAST ( - col0 * col2 AS INTEGER ) FROM tab2
----
165
2047
3064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4722
SELECT - col0 * - col1 - - CAST( NULL AS SIGNED ) * ( - col1 ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - col0 * - col1 - - CAST ( NULL AS INTEGER ) * ( - col1 ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - ( - 66 ) AS col2 FROM tab0 AS cor0
----
101
155
90

query I rowsort
SELECT ALL col2 * + ( col2 + col2 ) FROM tab0 AS cor0
----
13448
2
2178

onlyif mysql # use DIV operator for integer division
query I rowsort label-4725
SELECT DISTINCT - cor0.col0 * col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - cor0.col0 * col2 / col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 10 + col0 * col1 * + col1 + col0 col2 FROM tab0 AS cor0
----
177768
329700
737988

query I rowsort
SELECT - - col1 * 19 FROM tab2 AS cor0
----
1121
323
589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 48 col2 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT + cor0.col2 * col1 - + col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + col0 * 90 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT + col0 * - col1 - + 94 * col0 AS col0 FROM tab2 AS cor0
----
-11934
-875
-8769

query I rowsort
SELECT - col0 * 63 AS col2 FROM tab2
----
-441
-4914
-4977

query I rowsort
SELECT tab1.col1 * + 34 FROM tab1
----
340
442
884

query I rowsort
SELECT - + col0 * 42 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-2788
-3529
-802

query I rowsort
SELECT + - col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + - 88 AS col2 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT + 16 + + cor0.col0 FROM tab2 AS cor0
----
23
94
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4738
SELECT - CAST( NULL AS SIGNED ) * 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT - CAST ( NULL AS INTEGER ) * 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT - - col2 * - col0 + - col2 DIV 37 + col0 * col0 DIV col0 FROM tab1 AS cor0
----
-160
-3585
-7602

skipif mysql # not compatible
query I rowsort label-4739
SELECT - - col2 * - col0 + - col2 / 37 + col0 * col0 / col0 FROM tab1 AS cor0
----
-160
-3585
-7602

query I rowsort
SELECT - col2 + col2 * col2 AS col0 FROM tab0 cor0
----
0
1056
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col2 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT - - cor0.col2 + + cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 64 col2 FROM tab2
----
-26
-37
-38

query I rowsort
SELECT DISTINCT - + 53 * - col2 AS col2 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT ALL - 74 FROM tab1 cor0
----
-74
-74
-74

query I rowsort
SELECT + col1 * col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT + col1 DIV col2 + tab0.col1 * col1 * col0 AS col2 FROM tab0
----
177506
329412
737010

skipif mysql # not compatible
query I rowsort label-4747
SELECT + col1 / col2 + tab0.col1 * col1 * col0 AS col2 FROM tab0
----
177506
329412
737010

query I rowsort
SELECT ALL + + 32 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT ALL - + 4 - col1 AS col2 FROM tab0 AS cor0
----
-101
-90
-95

query I rowsort
SELECT ALL + + 43 + + col2 AS col0 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT DISTINCT col1 + - col2 * - ( col1 ) FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT ALL ( + col2 ) + - ( - col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - + 31 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4754
SELECT DISTINCT ( + col2 + - col0 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT ( + col2 + - col0 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT - 93 - col2 DIV ( + col0 ) FROM tab0 AS cor0
----
-93
-93
-94

skipif mysql # not compatible
query I rowsort label-4755
SELECT - 93 - col2 / ( + col0 ) FROM tab0 AS cor0
----
-93
-93
-94

query I rowsort
SELECT DISTINCT ( - 0 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-4758
SELECT + ( 3 ) DIV col1 col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4758
SELECT + ( 3 ) / col1 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 91 * - col0 + + col1 FROM tab2
----
668
7157
7206

onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT col1 DIV col1 + + 33 col0 FROM tab0 cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4760
SELECT col1 / col1 + + 33 col0 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT - cor0.col1 * - col1 + - ( col0 ) FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-4762
SELECT + cor0.col0 + cor0.col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4762
SELECT + cor0.col0 + cor0.col0 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4763
SELECT col0 + col0 - + ( col0 + col0 ) DIV + 85 AS col0 FROM tab1
----
127
159
6

skipif mysql # not compatible
query I rowsort label-4763
SELECT col0 + col0 - + ( col0 + col0 ) / + 85 AS col0 FROM tab1
----
127
159
6

query I rowsort
SELECT ALL 97 + - cor0.col1 AS col2 FROM tab1 cor0
----
71
84
87

query I rowsort
SELECT - col1 * cor0.col1 + - cor0.col0 AS col2 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT - 50 * col0 * 43 AS col1 FROM tab2 AS cor0
----
-15050
-167700
-169850

query I rowsort
SELECT DISTINCT + - col0 + - col2 * 76 AS col2 FROM tab1 cor0
----
-4107
-4396
-7376

onlyif mysql # use DIV operator for integer division
query I rowsort label-4768
SELECT ALL col1 * + col0 - col0 DIV - col0 FROM tab2 AS cor0
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL col1 * + col0 - col0 / - col0 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT + col0 * ( + cor0.col2 + col2 ) FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT + + 68 * + col1 AS col1 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT - 67 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL - - col2 * - 40 AS col0 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT DISTINCT - col0 * + 88 * - col0 FROM tab1 AS cor0
----
360448
563200
792

query I rowsort
SELECT + col0 * col2 * col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * cor0.col1 col2 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT ( 70 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT ( 70 ) / - col0 AS col1 FROM tab1 AS cor0
----
-1
-23
0

query I rowsort
SELECT ALL ( col1 * col1 ) FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab1 cor0
----
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4779
SELECT DISTINCT + + 31 * + col0 + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + + 31 * + col0 + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 90 * col1 + + col0 FROM tab0 AS cor0
----
7764
8279
8765

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4782
SELECT ALL CAST( NULL AS SIGNED ) + col2 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 50 + - 39 + - col2 AS col0 FROM tab1 AS cor0
----
-43
-46
-85

query I rowsort
SELECT DISTINCT - 51 FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT ( 64 ) * col1 * + col2 AS col2 FROM tab1 AS cor0
----
36480
79872
89856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4786
SELECT + - CAST( NULL AS DECIMAL ) + 22 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT + - CAST ( NULL AS REAL ) + 22 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 22 * + col0 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
178260
45441
74691

query I rowsort
SELECT + 36 AS col2 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT ALL + col1 * - col1 + col2 AS col0 FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT - 10 * col1 + + 61 FROM tab1 AS cor0
----
-199
-39
-69

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL 30 * - col2 AS col0 FROM tab2 AS cor0
----
-1140
-780
-810

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 + + col0 * - col2 * col2 AS col2 FROM tab1 cor0
----
-207946
-737293
-8774

query I rowsort
SELECT tab0.col1 * 88 FROM tab0, tab0 AS cor0
----
9 values hashing to 954f91ff7152437761ac30591b71cbe4

query I rowsort
SELECT ALL - col1 + + 95 + col1 AS col1 FROM tab1
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT ALL col1 DIV - 50 + 79 * - col2 FROM tab2
----
-2055
-2133
-3002

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL col1 / - 50 + 79 * - col2 FROM tab2
----
-2055
-2133
-3002

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4800
SELECT col0 + + CAST( 98 AS SIGNED ) * - col1 col1 FROM tab1
----
-1194
-2545
-916

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT col0 + + CAST ( 98 AS INTEGER ) * - col1 col1 FROM tab1
----
-1194
-2545
-916

query I rowsort
SELECT - col2 - + col2 * col0 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
0
611793
93568

query I rowsort
SELECT DISTINCT col2 + col0 + - col0 AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT ALL col0 - col1 DIV col0 AS col1 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL col0 - col1 / col0 AS col1 FROM tab0
----
21
33
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * col1 col2 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT col2 + col1 * col2 * + col1 NOT BETWEEN NULL AND col2 * col1
----

query I rowsort
SELECT + col2 * + col0 + tab2.col0 * - tab2.col1 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT col1 * - col1 FROM tab0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4810
SELECT col2 DIV + col0 + + col1 + + col0 AS col0 FROM tab1
----
47
74
94

skipif mysql # not compatible
query I rowsort label-4810
SELECT col2 / + col0 + + col1 + + col0 AS col0 FROM tab1
----
47
74
94

query I rowsort
SELECT ALL - col0 * + tab2.col2 * col1 AS col1 FROM tab2 WHERE - col2 + col1 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 * + col0 col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - col0 * col1 AS col1 FROM tab0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT col1 * col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 - + col1 * + cor0.col1 col0 FROM tab2 AS cor0
----
-744
1054
1121

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( col2 ) NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT DISTINCT col0 DIV - tab0.col1 + tab0.col0 col0 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT col0 / - tab0.col1 + tab0.col0 col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT DISTINCT - col1 * col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - col1 * col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col2 * tab0.col0 * + col1 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col1 + + col2 col2 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * + cor0.col1 * col2 col0 FROM tab0 AS cor0
----
244101
679124
9410

query I rowsort
SELECT - col0 - - col2 AS col1 FROM tab1 AS cor0 WHERE ( - col0 ) <> + col2 OR - col0 <> NULL
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT DISTINCT col1 + col0 DIV col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT col1 + col0 / col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL col1 * cor0.col2 + + col2 + col0 FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT ALL + col1 + col2 * + col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 * col1 FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( col1 * + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT ALL col2 + col1 * col0 DIV col1 AS col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL col2 + col1 * col0 / col1 AS col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col1 * + col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ALL - col2 - + col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - - col0 * - col2 - + col0 * col0 AS col2 FROM tab0 AS cor0
----
-1260
-1368
-15219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col2 FROM tab2, tab0 cor0
----
26
27
38

query I rowsort
SELECT ALL + 7 + col2 FROM tab2 cor0
----
33
34
45

query I rowsort
SELECT ALL col1 + + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT cor0.col1 + ( col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT + - cor0.col0 * - CAST( 14 AS SIGNED ) * + col2 + - col2 AS col2 FROM tab2 AS cor0
----
2619
28366
41990

skipif mysql # not compatible
query I rowsort label-4840
SELECT + - cor0.col0 * - CAST ( 14 AS INTEGER ) * + col2 + - col2 AS col2 FROM tab2 AS cor0
----
2619
28366
41990

query I rowsort
SELECT + - col2 + - cor0.col1 * 60 AS col0 FROM tab0 AS cor0
----
-5193
-5542
-5821

query I rowsort
SELECT + col1 - 8 FROM tab2 AS cor0
----
23
51
9

query I rowsort
SELECT - + col1 * + 39 * cor0.col0 FROM tab1 AS cor0
----
-24960
-3042
-40560

query I rowsort
SELECT - + cor0.col1 + 51 FROM tab1 AS cor0
----
25
38
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = + tab1.col1 + col2 * col0
----

query I rowsort
SELECT ALL - col0 + + tab0.col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4847
SELECT DISTINCT - col0 + tab1.col0 DIV - tab1.col2 AS col1 FROM tab1
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT - col0 + tab1.col0 / - tab1.col2 AS col1 FROM tab1
----
-3
-65
-80

query I rowsort
SELECT DISTINCT col2 * - tab1.col2 + - col2 FROM tab1
----
-2970
-3306
-9312

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col0 BETWEEN col1 AND - col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col2 + col0 + col0 / col2 FROM tab1 WHERE NOT NULL IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT DISTINCT - col2 + col0 DIV - col2 AS col2 FROM tab1
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - col2 + col0 / - col2 AS col2 FROM tab1
----
-54
-58
-96

query I rowsort
SELECT DISTINCT col0 * col2 + - tab1.col2 AS col1 FROM tab1
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT - col1 DIV tab0.col1 + + tab0.col1 - col0 FROM tab0
----
1
61
61

skipif mysql # not compatible
query I rowsort label-4853
SELECT - col1 / tab0.col1 + + tab0.col1 - col0 FROM tab0
----
1
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * + col1 col1 FROM tab1
----
1027
52
630

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * + col0 + col0 * + col0 col1 FROM tab1
----
4726
61
7427

query I rowsort
SELECT DISTINCT - col2 * col1 / tab2.col0 FROM tab2 WHERE NOT col2 + - col2 NOT IN ( - col2 )
----

query I rowsort
SELECT - + cor0.col0 + - col2 * - cor0.col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - col0 + + col1 * - col1 * col2 FROM tab0
----
-244092
-679131
-9444

query I rowsort
SELECT ALL col0 * + tab0.col1 + tab0.col0 FROM tab0
----
2088
3430
8188

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT IN ( col2 * - col1 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 + tab1.col1 col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT DISTINCT - col0 DIV ( - col0 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - col0 / ( - col0 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col2 + - 39 AS col0 FROM tab0 AS cor0
----
-38
-6
43

skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 + - CAST ( + ( + col0 ) AS REAL ) * - col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL - col1 * + col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col2 * + ( 36 ) FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT ALL - ( tab2.col2 ) AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT + - col2 * - col0 * + col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + - col1 * - ( + col0 * col2 ) FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( 86 ) * + col1 col2 FROM tab0 AS cor0
----
244068
641732
8342

query I rowsort
SELECT DISTINCT - 37 FROM tab0, tab2 AS cor0
----
-37

query I rowsort
SELECT DISTINCT 22 FROM tab2, tab1 AS cor0
----
22

query I rowsort
SELECT 65 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT col1 * + 50 AS col0 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col0 AS col1 FROM tab1
----
-17
25
3

query I rowsort
SELECT - 69 + - col0 FROM tab1 cor0
----
-133
-149
-72

query I rowsort
SELECT + - col1 + - cor0.col2 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
0
611793
93568

query I rowsort
SELECT DISTINCT 25 * + tab1.col2 FROM tab1
----
1350
1425
2400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4880
SELECT + col0 * col0 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
1128
490
7830

skipif mysql # not compatible
query I rowsort label-4880
SELECT + col0 * col0 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - 37 * - cor0.col0 + - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-1176
-2100
-4806

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 + col2 AS col1 FROM tab1
----
1424
1461
691

query I rowsort
SELECT 82 - col0 * col2 FROM tab1
----
-3566
-7598
-80

query I rowsort
SELECT - col1 * col0 + - col2 AS col0 FROM tab2
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * col0 * col2 col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT ALL + + col1 + - col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 78 * col0 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT DISTINCT + 95 * + col2 FROM tab1 cor0
----
5130
5415
9120

query I rowsort
SELECT ALL 3 + col0 * col2 AS col0 FROM tab1 AS cor0
----
165
3651
7683

onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT DISTINCT - + col1 DIV col0 + - col1 DIV - col2 FROM tab0 AS cor0
----
-1
0
95

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - + col1 / col0 + - col1 / - col2 FROM tab0 AS cor0
----
-1
0
95

query I rowsort
SELECT + col2 * - cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 AS col2 FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT + 46 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4893
SELECT + 46 / col1 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - + col2 * - col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + - col2 col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - 80 * col2 + col0 + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1618
-1936
2600

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + + col1 * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT DISTINCT + col2 * + col0 + col0 DIV + tab0.col0 + col0 col2 FROM tab0
----
71
7388
817

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + col2 * + col0 + col0 / + tab0.col0 + col0 col2 FROM tab0
----
71
7388
817

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab0, tab2 AS cor0
----
-97

query I rowsort
SELECT ALL + col2 * - 56 + + col0 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-2488
-2943
-4256

query I rowsort
SELECT - col2 - + 0 * col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - col1 + col2 * + col0 AS col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT + 38 * col2 + col1 + cor0.col1 FROM tab1 AS cor0
----
2104
2186
3674

query I rowsort
SELECT - col1 * + col0 - col1 * - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4908
SELECT DISTINCT - col1 DIV - col1 + col2 DIV - col2 + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - col1 / - col1 + col2 / - col2 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - - cor0.col0 - 87 AS col0 FROM tab0 AS cor0
----
-52
-63
2

query I rowsort
SELECT - cor0.col1 * + 78 - - col0 AS col1 FROM tab1 AS cor0
----
-2025
-716
-934

query I rowsort
SELECT + ( - col0 ) * col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 27 * + col2 AS col2 FROM tab1
----
-1458
-1539
-2592

query I rowsort
SELECT DISTINCT + col1 * + ( - tab2.col1 * - col0 ) FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL 73 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT ALL - col1 * + col2 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + + 84 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1259
-133
-4518

query I rowsort
SELECT + 68 - tab0.col0 * + col2 FROM tab0
----
-7230
-724
33

query I rowsort
SELECT DISTINCT 91 * ( tab0.col0 ) + tab0.col2 FROM tab0
----
2217
3186
8181

query I rowsort
SELECT 83 * - 66 * col0 + - col1 - - col2 FROM tab1
----
-16406
-350545
-438157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 91 AS col1 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL - col0 + + 24 * - col0 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT DISTINCT - + 66 + - 86 AS col0 FROM tab0 AS cor0
----
-152

query I rowsort
SELECT DISTINCT ( col2 + tab1.col0 ) * - col0 AS col1 FROM tab1
----
-14080
-171
-7744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT - CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4925
SELECT - CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col1 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL ( 56 ) + - cor0.col1 FROM tab0 AS cor0
----
-30
-35
-41

query I rowsort
SELECT DISTINCT + 34 + + cor0.col2 * col1 FROM tab2 AS cor0
----
1568
680
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT + - col0 * col0 DIV col1 FROM tab1 AS cor0
----
-409
-492
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT + - col0 * col0 / col1 FROM tab1 AS cor0
----
-409
-492
0

query I rowsort
SELECT ALL + - ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + col2 - col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 + + ( + 41 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 469f7c465d4de19ee80b8b6b03f60787

query I rowsort
SELECT - col0 + 11 * + col1 AS col1 FROM tab1 AS cor0
----
283
46
63

query I rowsort
SELECT ALL + cor0.col2 * 50 AS col1 FROM tab2 AS cor0
----
1300
1350
1900

onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT DISTINCT cor0.col1 + CAST( - col1 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT cor0.col1 + CAST ( - col1 AS INTEGER ) / col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT DISTINCT 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL tab2.col0 + + tab2.col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT + 69 + + col0 FROM tab0
----
104
158
93

query I rowsort
SELECT ALL + 94 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT + col0 * 37 + - 18 * - col1 AS col2 FROM tab0 cor0
----
2436
3041
4931

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 35 AS REAL ) * + cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to af4a3869a089cb943e738c530ee1a2b9

query I rowsort
SELECT DISTINCT col2 * 89 * col2 AS col2 FROM tab2
----
128516
60164
64881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4944
SELECT DISTINCT + - col1 + - 96 DIV col1 FROM tab2 AS cor0
----
-22
-34
-60

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + - col1 + - 96 / col1 FROM tab2 AS cor0
----
-22
-34
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT tab1.col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT tab1.col0 + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 27 + 58 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL + ( - 21 ) AS col1 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT + 95 * - col2 AS col1 FROM tab2 AS cor0
----
-2470
-2565
-3610

onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT 44 DIV - tab2.col1 + 23 FROM tab2
----
21
22
23

skipif mysql # not compatible
query I rowsort label-4949
SELECT 44 / - tab2.col1 + 23 FROM tab2
----
21
22
23

query I rowsort
SELECT ALL + tab0.col2 * cor0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 3a284e2c11914d1b470b4242a365931a

query I rowsort
SELECT ALL - col1 + - col0 * + 0 FROM tab0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4952
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
58

query I rowsort
SELECT + 76 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - - col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - + cor0.col2 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + col2 + + 74 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1296
2321
4392

query I rowsort
SELECT - - col1 * + col1 + - col2 * col0 AS col1 FROM tab0 cor0
----
6604
9374
983

query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * + cor0.col1 + - 18 col0 FROM tab2 AS cor0
----
-307
-3499
-979

onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT + col2 * CAST( col2 AS SIGNED ) + col0 DIV 30 FROM tab1 AS cor0
----
2916
3251
9218

skipif mysql # not compatible
query I rowsort label-4962
SELECT + col2 * CAST ( col2 AS INTEGER ) + col0 / 30 FROM tab1 AS cor0
----
2916
3251
9218

query I rowsort
SELECT + col2 + cor0.col1 * col0 AS col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT - + 18 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT ( col1 ) - - col2 * tab2.col1 FROM tab2
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4966
SELECT col2 * col1 + CAST( col2 AS SIGNED ) * - col0 FROM tab1
----
-3078
-6432
1242

skipif mysql # not compatible
query I rowsort label-4966
SELECT col2 * col1 + CAST ( col2 AS INTEGER ) * - col0 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT ALL + 55 * col2 AS col2 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT ALL + - 85 * col1 AS col0 FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT ALL - cor0.col2 * - 98 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d385b854e222f7a1a9ebbeeae167bcf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4970
SELECT ALL + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL + col2 / + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT - 66 * + col1 FROM tab2 cor0
----
-1122
-2046
-3894

query I rowsort
SELECT + col2 * - 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + + 69 FROM tab2 AS cor0
----
-10
-9
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + ( + col1 ) * col1 * + ( 59 ) col1 FROM tab2 AS cor0
----
17013
205353
56672

query I rowsort
SELECT DISTINCT - col0 * + 68 FROM tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT - col0 * 3 AS col0 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT DISTINCT - + col0 + + col1 * - col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL - cor0.col0 + ( + col0 ) * - col0 FROM tab0 cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4980
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4981
SELECT ALL - cor0.col0 DIV 56 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL - cor0.col0 / 56 AS col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT DISTINCT tab0.col1 DIV cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
1
28
30
32

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT tab0.col1 / cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
1
28
30
32

query I rowsort
SELECT col0 * col2 + cor0.col2 FROM tab1 cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT col0 * col2 - + col1 * - col0 AS col1 FROM tab2 AS cor0
----
406
4345
6630

skipif mysql # not compatible
query I rowsort
SELECT ALL 34 * 65 + + col1 * CAST ( + col1 * - col1 AS REAL ) + cor0.col1 * col1 AS col0 FROM tab1 cor0
----
-14690
1310
182

query I rowsort
SELECT + 77 * ( + cor0.col0 ) FROM tab0 AS cor0
----
1848
2695
6853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4988
SELECT + col2 * CAST( 95 AS SIGNED ) AS col0 FROM tab2
----
2470
2565
3610

skipif mysql # not compatible
query I rowsort label-4988
SELECT + col2 * CAST ( 95 AS INTEGER ) AS col0 FROM tab2
----
2470
2565
3610

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1, tab0 AS cor0
----
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4990
SELECT ALL CAST( NULL AS SIGNED ) + + tab0.col2 + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL CAST ( NULL AS INTEGER ) + + tab0.col2 + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 50 FROM tab2, tab0 AS cor0
----
-50

query I rowsort
SELECT - + col2 * + cor0.col2 + - col2 * + 82 FROM tab2 AS cor0
----
-2808
-2943
-4560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4993
SELECT + + CAST( NULL AS SIGNED ) * - 40 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT + + CAST ( NULL AS INTEGER ) * - 40 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 2 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT 51 - - col1 FROM tab2
----
110
68
82

query I rowsort
SELECT DISTINCT - col1 - 94 FROM tab0
----
-180
-185
-191

query I rowsort
SELECT ALL + col2 * col0 - ( + col1 ) FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ( + col2 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + col1 * col0 + ( 79 ) * - col0 FROM tab1 AS cor0
----
-159
-4416
-5280

query I rowsort
SELECT DISTINCT + 37 * col1 AS col0 FROM tab0 cor0
----
3182
3367
3589

query I rowsort
SELECT ( col2 ) * - col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - - col2 * + col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL 0 * col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 91 * - col0 + col2 FROM tab1 AS cor0
----
-219
-5767
-7184

query I rowsort
SELECT 31 + cor0.col1 FROM tab0 AS cor0
----
117
122
128

query I rowsort
SELECT - 15 * col0 FROM tab2
----
-105
-1170
-1185

query I rowsort
SELECT ALL - - 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col1 * 46 * + 52 col2 FROM tab0 AS cor0
----
-205736
-217761
-232059

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - col0 * col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT - 67 * - col2 + - col0 DIV 16 AS col1 FROM tab1 AS cor0
----
3618
3815
6427

skipif mysql # not compatible
query I rowsort label-5011
SELECT - 67 * - col2 + - col0 / 16 AS col1 FROM tab1 AS cor0
----
3618
3815
6427

query I rowsort
SELECT - + col0 * + col0 * 48 + + col2 * + col2 FROM tab0 AS cor0
----
-26559
-373484
-58799

query I rowsort
SELECT ALL + - col2 + col2 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - 71 * + col2 FROM tab2 cor0
----
-1846
-1917
-2698

query I rowsort
SELECT DISTINCT + col1 * col1 * + col2 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT 14 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2, tab2 cor3
----
243 values hashing to 0e43d6abbc32df70da8bf349ba973cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT - + col1 DIV 48 - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5017
SELECT - + col1 / 48 - col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5018
SELECT ALL CAST( col1 AS SIGNED ) - col2 FROM tab1 cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL CAST ( col1 AS INTEGER ) - col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col0 * + 7 + + col2 AS col2 FROM tab2 AS cor0
----
572
591
76

query I rowsort
SELECT cor0.col2 * col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT DISTINCT + 96 DIV - cor0.col0 col0 FROM tab1 AS cor0
----
-1
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + 96 / - cor0.col0 col0 FROM tab1 AS cor0
----
-1
-32

query I rowsort
SELECT - cor0.col2 * + cor0.col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5023
SELECT ALL CAST( NULL AS DECIMAL ) * cor0.col2 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL CAST ( NULL AS REAL ) * cor0.col2 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col1 FROM tab2
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT DISTINCT col2 * col1 DIV col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT col2 * col1 / col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT ALL - ( - cor0.col2 ) * 58 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
53
79

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - ( - cor0.col2 ) * 58 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
53
79

query I rowsort
SELECT DISTINCT col1 * - col0 + col0 * col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + - 86 * - col2 FROM tab0 cor0
----
121
2862
7141

query I rowsort
SELECT col2 * - 92 AS col1 FROM tab0 AS cor0
----
-3036
-7544
-92

query I rowsort
SELECT col1 * + ( cor0.col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT ( col1 + col2 ) * - col1 FROM tab2
----
-1798
-5015
-935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5033
SELECT CAST( NULL AS SIGNED ) * col0 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT CAST ( NULL AS INTEGER ) * col0 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL + col0 + + cor0.col1 DIV + col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL + col0 + + cor0.col1 / + col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT - col1 * - 67 + tab2.col0 FROM tab2
----
1218
2084
4031

query I rowsort
SELECT DISTINCT - col0 * - col1 + col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT ALL + ( + ( - cor0.col1 ) ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 17 + col2 AS col0 FROM tab1 AS cor0
----
113
71
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT ALL + + col1 DIV - col1 + col1 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
-1476
-630
-807

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + + col1 / - col1 + col1 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
-1476
-630
-807

onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT + CAST( col0 AS SIGNED ) * - col1 + - ( col2 ) DIV + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
-25
-584
-945

skipif mysql # not compatible
query I rowsort label-5040
SELECT + CAST ( col0 AS INTEGER ) * - col1 + - ( col2 ) / + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
-25
-584
-945

query I rowsort
SELECT DISTINCT + 57 * - col1 AS col2 FROM tab2 AS cor0
----
-1767
-3363
-969

onlyif mysql # use DIV operator for integer division
query I rowsort label-5042
SELECT - ( col2 ) * col2 + + 64 + cor0.col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-1380
-612
-661

skipif mysql # not compatible
query I rowsort label-5042
SELECT - ( col2 ) * col2 + + 64 + cor0.col1 / col0 AS col1 FROM tab2 AS cor0
----
-1380
-612
-661

query I rowsort
SELECT DISTINCT - 10 * - col1 + + col0 + - 44 * 15 AS col1 FROM tab1 cor0
----
-397
-450
-496

query I rowsort
SELECT ALL + col0 + + 69 FROM tab2 AS cor0
----
147
148
76

query I rowsort
SELECT 97 * - col1 FROM tab0 AS cor0
----
-8342
-8827
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5046
SELECT - + 98 + col1 DIV col2 FROM tab1 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-5046
SELECT - + 98 + col1 / col2 FROM tab1 AS cor0
----
-98
-98
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5047
SELECT ALL - 12 DIV + col2 + + col0 + - col2 FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - 12 / + col2 + + col0 + - col2 FROM tab1
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * + 58 col0 FROM tab2
----
5452
5452
5452

onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT 66 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT 66 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * - 73 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2cdada4ff1957b40d54c501b61f99ecf

query I rowsort
SELECT ALL - - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + 93 * col2 AS col2 FROM tab2 AS cor0
----
2418
2511
3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT DISTINCT - ( col2 ) DIV - col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - ( col2 ) / - col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL col1 * col1 - - col1 FROM tab1 cor0
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5056
SELECT 22 * col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT 22 * col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 8 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT + col1 + - 59 FROM tab0 AS cor0
----
27
32
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5059
SELECT DISTINCT col1 DIV tab2.col1 + + 87 AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT col1 / tab2.col1 + + 87 AS col1 FROM tab2
----
88

query I rowsort
SELECT - 55 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT - 25 * col1 FROM tab0 cor0
----
-2150
-2275
-2425

query I rowsort
SELECT ALL - 89 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT - col2 + ( 25 ) FROM tab0
----
-57
-8
24

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT - 68 * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3452369445287b3fdb4ef1c2f2be37af

query I rowsort
SELECT + - cor0.col0 - col1 * + col1 * + col0 FROM tab1 AS cor0
----
-13600
-2031
-6464

query I rowsort
SELECT - 94 - - 4 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + - 2 * cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT ALL - - col0 * 95 AS col2 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT DISTINCT + cor0.col0 + 89 + - col2 FROM tab2 AS cor0
----
130
141
69

query I rowsort
SELECT - col2 + tab2.col2 + tab2.col1 FROM tab2
----
17
31
59

query I rowsort
SELECT - col2 * ( + col0 ) AS col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT DISTINCT + col0 DIV ( + col2 + + col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + col0 / ( + col2 + + col0 ) AS col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT DISTINCT - col1 + col0 * - 68 + col2 DIV - col0 col2 FROM tab1
----
-248
-4362
-5454

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - col1 + col0 * - 68 + col2 / - col0 col2 FROM tab1
----
-248
-4362
-5454

query I rowsort
SELECT cor0.col0 * + 30 + - 64 + col1 FROM tab0 cor0
----
1083
2697
742

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT - col0 DIV col0 + col1 AS col0 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-5076
SELECT - col0 / col0 + col1 AS col0 FROM tab2 AS cor0
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5077
SELECT col1 + + ( col1 ) DIV + col2 + ( + 65 ) FROM tab0 AS cor0
----
153
157
259

skipif mysql # not compatible
query I rowsort label-5077
SELECT col1 + + ( col1 ) / + col2 + ( + 65 ) FROM tab0 AS cor0
----
153
157
259

query I rowsort
SELECT - - col1 * + 97 FROM tab2 AS cor0
----
1649
3007
5723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5079
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + ( - 65 ) - col2 FROM tab2 AS cor0
----
-103
-91
-92

query I rowsort
SELECT + 57 + 13 * + cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
105
1212
510

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5083
SELECT + CAST( NULL AS SIGNED ) + + 82 + - col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT + CAST ( NULL AS INTEGER ) + + 82 + - col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col2 * ( - tab1.col0 ) FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5085
SELECT - CAST( NULL AS SIGNED ) * 19 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5085
SELECT - CAST ( NULL AS INTEGER ) * 19 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT ( + col0 ) + col0 DIV ( cor0.col1 + - col2 ) FROM tab2 AS cor0
----
76
8
80

skipif mysql # not compatible
query I rowsort label-5086
SELECT ( + col0 ) + col0 / ( cor0.col1 + - col2 ) FROM tab2 AS cor0
----
76
8
80

query I rowsort
SELECT ALL - ( col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT DISTINCT ( + 65 ) DIV + col2 AS col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT ( + 65 ) / + col2 AS col2 FROM tab1 cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - cor0.col0 + - cor0.col0 * col0 col0 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT DISTINCT - col1 * col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col1 * + col0 + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - - col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT cor0.col2 * cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + 51 + + col0 AS col1 FROM tab0 cor0
----
140
75
86

query I rowsort
SELECT DISTINCT col2 * + col1 + col1 * - col0 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT + col1 - 18 FROM tab2 AS cor0
----
-1
13
41

query I rowsort
SELECT ALL - col2 + + 51 FROM tab0 cor0
----
-31
18
50

query I rowsort
SELECT + col0 * - 70 * - col1 + + col1 FROM tab2 cor0
----
15221
322199
94027

query I rowsort
SELECT + + col2 * + 43 * col0 FROM tab1 AS cor0
----
156864
330240
6966

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5102
SELECT - col2 * + CAST( col2 AS SIGNED ) - col1 AS col1 FROM tab2 cor0
----
-1461
-735
-760

skipif mysql # not compatible
query I rowsort label-5102
SELECT - col2 * + CAST ( col2 AS INTEGER ) - col1 AS col1 FROM tab2 cor0
----
-1461
-735
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5103
SELECT ALL + col2 DIV col0 + 1 * - col0 * - col0 + - col2 DIV - col2 col1 FROM tab1 AS cor0
----
28
4097
6402

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + col2 / col0 + 1 * - col0 * - col0 + - col2 / - col2 col1 FROM tab1 AS cor0
----
28
4097
6402

query I rowsort
SELECT ALL - col0 * + col2 * + 37 + col1 * + col2 AS col2 FROM tab2 cor0
----
-110428
-6156
-73502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col0 + - col1 + col0 col0 FROM tab1 AS cor0
----
1107
55
694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - col1 * - col1 * 9 - col2 AS col2 FROM tab0 AS cor0
----
66531
74447
84680

query I rowsort
SELECT ALL + + col2 + + 15 + - col2 AS col0 FROM tab1 AS cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 24 col2 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT DISTINCT + col1 - - 92 FROM tab1 cor0
----
102
105
118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT + col2 * 84 - col0 * - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT + col2 * 84 - col0 * - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - + col1 col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + 96 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ( tab0.col0 * col2 ) + tab0.col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT + + col2 + - col0 AS col1 FROM tab1 cor0
----
-7
16
51

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 cor0 WHERE NULL > NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT ALL - col1 * CAST( col1 AS SIGNED ) + + col0 FROM tab2
----
-210
-3403
-954

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - col1 * CAST ( col1 AS INTEGER ) + + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT 54 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT - col2 + ( + col0 ) DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-5120
SELECT - col2 + ( + col0 ) / cor0.col1 AS col0 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 * - col1 + - col2 + col2 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + - col1 + - 26 * 50 AS col0 FROM tab1 AS cor0
----
-1310
-1313
-1326

query I rowsort
SELECT ALL col1 + 42 * col1 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT - + col1 * + col2 + + 47 FROM tab0 cor0
----
-2791
-50
-7415

query I rowsort
SELECT + col2 * - 85 AS col2 FROM tab1
----
-4590
-4845
-8160

query I rowsort
SELECT + tab2.col0 * ( - col0 ) - col1 FROM tab2
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 + - col2 ) col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT ALL 10 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab2
----
9

query I rowsort
SELECT 20 + + col1 AS col1 FROM tab0
----
106
111
117

query I rowsort
SELECT + 76 * - col1 + col2 FROM tab0
----
-6503
-6834
-7371

query I rowsort
SELECT - 43 + + col1 * + cor0.col0 FROM tab1 AS cor0
----
35
597
997

onlyif mysql # use DIV operator for integer division
query I rowsort label-5133
SELECT + col1 + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-5133
SELECT + col1 + col0 / - col1 AS col1 FROM tab2 AS cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col0 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT col0 + col2 * - col0 * col0 FROM tab2
----
-1316
-158106
-237079

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col1 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 WHERE ( NULL ) < ( - col0 / col2 )
----

query I rowsort
SELECT ALL col0 * + col2 FROM tab0 WHERE NOT NULL IN ( - col0 * col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT ALL - col1 DIV col1 col2 FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - col1 / col1 col2 FROM tab0 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE - col2 - col2 * col0 IN ( col2 + + col2 )
----

query I rowsort
SELECT DISTINCT + - col2 + - col0 * + col0 FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 + - col2 col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT - 88 * + col2 AS col1 FROM tab1 cor0
----
-4752
-5016
-8448

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT DISTINCT col0 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT col0 + col2 / col0 AS col1 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT - 82 + - col1 AS col0 FROM tab0 AS cor0
----
-168
-173
-179

query I rowsort
SELECT - + col1 * - col1 * - col0 AS col2 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT 2 * col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - cor0.col1 * + col1 + + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT - + col2 DIV - col0 - - col2 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-5152
SELECT - + col2 / - col0 - - col2 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT - - col2 * col2 - - col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - cor0.col0 * col0 + col2 * - col2 FROM tab1 AS cor0
----
-15616
-2925
-7345

query I rowsort
SELECT - col1 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - col2 * + tab1.col2 * col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT - col2 * col2 + - col1 AS col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT ( - col2 * col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT - col0 + col0 AS col0 FROM tab1 WHERE NULL > col1 * tab1.col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * - tab2.col0 col1 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT ALL col2 + col1 * col0 + tab1.col2 AS col1 FROM tab1
----
1232
186
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col1 FROM tab2 WHERE + col2 + col2 - col0 NOT IN ( col1 )
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 + tab2.col1 col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT + col2 - - col0 IN ( col2 )
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT DISTINCT + tab1.col0 DIV - col2 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + tab1.col0 / - col2 AS col2 FROM tab1
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT ALL tab0.col2 DIV tab0.col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL tab0.col2 / tab0.col0 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT col2 * tab0.col1 * col0 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col1 + col2 * + tab0.col0 AS col2 FROM tab0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * col1 col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + col0 BETWEEN + col1 * - col2 AND ( col0 )
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT col1 DIV - tab0.col0 - - col2 AS col2 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-5171
SELECT col1 / - tab0.col0 - - col2 AS col2 FROM tab0
----
-1
30
81

query I rowsort
SELECT - tab2.col2 * col0 + col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col2 - col1 * col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + 1 * col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + - 28 * col1 AS col1 FROM tab1 AS cor0
----
-280
-364
-728

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT tab2.col2 + col1 * tab2.col1 AS col0 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL col1 * col2 + col2 * col1 FROM tab0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5179
SELECT ALL - col2 DIV col1 + + col0 col0 FROM tab2
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL - col2 / col1 + + col0 col0 FROM tab2
----
7
77
78

query I rowsort
SELECT DISTINCT + col2 - + tab1.col1 FROM tab1
----
28
47
83

query I rowsort
SELECT + col0 AS col0 FROM tab1 cor0 WHERE NOT col0 * - col1 * - col1 NOT IN ( + col1 * col1 )
----

query I rowsort
SELECT ALL - col1 * + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col0 * + col2 + cor0.col2 )
----

query I rowsort
SELECT DISTINCT col1 + tab2.col0 * + col2 / col0 FROM tab2 WHERE NOT NULL <> col1
----

query I rowsort
SELECT col1 - - col0 * col1 * - col2 FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL col0 + tab2.col2 * col1 AS col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT ALL col2 + col1 DIV + tab1.col1 AS col0 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL col2 + col1 / + tab1.col1 AS col0 FROM tab1
----
55
58
97

query I rowsort
SELECT col1 * - col2 + col1 - - col0 AS col2 FROM tab2
----
-1397
-550
-799

query I rowsort
SELECT DISTINCT tab1.col0 + + tab1.col0 * col2 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT col1 + - col1 * col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + tab1.col0 - - col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + col2 * col0 + + col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
15397
2856
3430

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT ALL - col2 + col0 * 87 * + cor0.col1 - col2 FROM tab2 AS cor0
----
116765
18825
400322

query I rowsort
SELECT + + col2 - - col1 * + 6 AS col2 FROM tab2 AS cor0
----
140
213
380

query I rowsort
SELECT ALL - col0 - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + 20 - - 74 FROM tab1
----
94
94
94

query I rowsort
SELECT col1 * col1 + tab2.col2 + 75 FROM tab2
----
1063
3582
402

query I rowsort
SELECT 60 + - col0 AS col2 FROM tab0
----
-29
25
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT DISTINCT - col2 DIV col0 + 26 DIV - 83 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - col2 / col0 + 26 / - 83 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT col2 * tab0.col0 + - col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT - tab2.col2 + col0 + ( 60 * tab2.col2 ) FROM tab2
----
1600
1612
2321

query I rowsort
SELECT + ( + col2 ) + ( col1 ) * + col2 * - cor0.col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT DISTINCT col2 * + col0 + - col2 + col1 FROM tab2 AS cor0
----
193
2061
2981

query I rowsort
SELECT ALL - 21 + - col1 AS col0 FROM tab1 AS cor0
----
-31
-34
-47

query I rowsort
SELECT ALL - 52 - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 93a05c1bd803c3256b3876259ecbcaeb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col0 + + col1 col1 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5209
SELECT CAST( NULL AS SIGNED ) * tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5209
SELECT CAST ( NULL AS INTEGER ) * tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 11 + cor1.col0 * ( + 57 ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 437c02f36eec9183c345aef736a548ce

query I rowsort
SELECT ALL - 20 FROM tab2, tab2 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT ALL + - ( + col1 ) * + col2 + col2 + col2 AS col2 FROM tab0 AS cor0
----
-2772
-7298
-95

query I rowsort
SELECT + - 96 AS col2 FROM tab1 cor0
----
-96
-96
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5214
SELECT DISTINCT - CAST( NULL AS SIGNED ) * cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( + col2 ) - + col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5216
SELECT ALL - CAST( 17 AS SIGNED ) + - cor0.col0 col0 FROM tab0 cor0
----
-106
-41
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - CAST ( 17 AS INTEGER ) + - cor0.col0 col0 FROM tab0 cor0
----
-106
-41
-52

query I rowsort
SELECT - - ( col2 ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col0 * col2 col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT ( col2 ) * col1 - - cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5220
SELECT - + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5220
SELECT - + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - + 45 + - col0 FROM tab1 cor0
----
-109
-125
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5222
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( - col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5223
SELECT DISTINCT + CAST( + 73 AS SIGNED ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + CAST ( + 73 AS INTEGER ) FROM tab2 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col1 col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 24 + col0 * cor0.col0 FROM tab1 AS cor0
----
-15
4072
6376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5226
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + + cor0.col0 * ( + 1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + + cor0.col0 * ( + 1 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT col2 DIV - col2 + - tab1.col1 AS col2 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-5227
SELECT col2 / - col2 + - tab1.col1 AS col2 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT DISTINCT col0 * + 68 FROM tab1 AS cor0
----
204
4352
5440

query I rowsort
SELECT DISTINCT + 98 * col1 * col0 AS col0 FROM tab1
----
101920
62720
7644

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5230
SELECT ALL CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 70 FROM tab2, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL cor0.col1 * + 50 FROM tab0 cor0
----
4300
4550
4850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col0 FROM tab1 cor0
----
-67
-67
-67

query I rowsort
SELECT ALL 38 + col1 * col0 * col1 AS col1 FROM tab0 AS cor0
----
177542
329353
737047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 * col1 col0 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT DISTINCT - ( col1 + tab1.col1 ) * col1 AS col1 FROM tab1
----
-1352
-200
-338

onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT col1 * 91 + + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
7827
8281
8827

skipif mysql # not compatible
query I rowsort label-5237
SELECT col1 * 91 + + col2 / + col0 AS col0 FROM tab0 AS cor0
----
7827
8281
8827

query I rowsort
SELECT DISTINCT - col1 + - 82 FROM tab1 AS cor0
----
-108
-92
-95

query I rowsort
SELECT DISTINCT - + col0 * + 46 - col1 AS col2 FROM tab0 AS cor0
----
-1190
-1707
-4185

onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT - col0 DIV ( col1 ) + + col1 * col2 FROM tab2 AS cor0
----
1533
642
837

skipif mysql # not compatible
query I rowsort label-5240
SELECT - col0 / ( col1 ) + + col1 * col2 FROM tab2 AS cor0
----
1533
642
837

query I rowsort
SELECT + cor0.col1 * col2 + - ( col0 ) * col0 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT - col0 * col0 * 89 AS col2 FROM tab2 AS cor0
----
-4361
-541476
-555449

query I rowsort
SELECT DISTINCT + - col0 + 81 FROM tab0 AS cor0
----
-8
46
57

query I rowsort
SELECT ALL + + col2 + ( - 19 ) * cor0.col1 * + col2 FROM tab0 cor0
----
-141696
-1842
-53889

query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + + col0 * ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col0 - - col1 * col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT ALL 95 - - col0 * col2 FROM tab0
----
130
7393
887

query I rowsort
SELECT - ( col2 + + col1 ) AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT col1 * col0 - - ( - col0 ) FROM tab1
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5251
SELECT - - col2 DIV 81 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5251
SELECT - - col2 / 81 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col1 + ( col1 ) FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + ( + col2 ) * + cor0.col2 + + col0 * + cor0.col2 * col2 col0 FROM tab2 cor0
----
115537
53463
5863

query I rowsort
SELECT ALL + col0 + - col0 * 21 FROM tab0 AS cor0
----
-1780
-480
-700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5255
SELECT col2 + CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-5255
SELECT col2 + CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + tab1.col2 + - 65 FROM tab1
----
-11
-8
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * tab1.col2 + - col0 col0 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT + - 17 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT + - 17 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 23 FROM tab2
----
15
3
4

query I rowsort
SELECT col2 * 70 FROM tab1
----
3780
3990
6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT DISTINCT tab2.col0 DIV - tab2.col1 col2 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT tab2.col0 / - tab2.col1 col2 FROM tab2
----
-1
-4
0

query I rowsort
SELECT DISTINCT - cor0.col0 - + cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT - col0 * - col0 + + col1 DIV col1 FROM tab2 AS cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-5263
SELECT - col0 * - col0 + + col1 / col1 FROM tab2 AS cor0
----
50
6085
6242

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 + + ( - col2 ) * col1 * - col2 col2 FROM tab0 cor0
----
194
611975
93740

query I rowsort
SELECT ALL col2 + + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + + col2 + 10 + + 14 FROM tab2 AS cor0
----
50
51
62

query I rowsort
SELECT - cor0.col0 * - cor0.col2 - + col0 * - col0 AS col2 FROM tab2 AS cor0
----
238
8112
9243

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT - col0 DIV - col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5269
SELECT - col0 / - col1 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - tab0.col1 * col0 + + 69 * 1 * col1 FROM tab0
----
-1820
3298
3870

query I rowsort
SELECT - col2 * col1 + + tab1.col0 AS col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - - 49 * + tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f3a02ab157a3c34620f918ade3e3d173

onlyif mysql # use DIV operator for integer division
query I rowsort label-5273
SELECT col1 DIV ( + 96 ) - + col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5273
SELECT col1 / ( + 96 ) - + col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col1 * - col2 + - 92 * - col0 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-522
376319
587648

query I rowsort
SELECT cor0.col0 * ( - col0 ) - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT ALL - col2 * col2 DIV + 15 AS col1 FROM tab1
----
-194
-216
-614

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - col2 * col2 / + 15 AS col1 FROM tab1
----
-194
-216
-614

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5277
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + tab0.col2 + col0 AS col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT ALL tab1.col2 DIV tab1.col1 + ( - tab1.col1 ) DIV + col0 AS col1 FROM tab1
----
-6
5
7

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL tab1.col2 / tab1.col1 + ( - tab1.col1 ) / + col0 AS col1 FROM tab1
----
-6
5
7

query I rowsort
SELECT + 17 * - cor0.col1 * - 39 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c96c77c3619fe35be5610c908ca2df8f

query I rowsort
SELECT + 13 * + col1 + col1 FROM tab1
----
140
182
364

query I rowsort
SELECT DISTINCT + 1 + col1 * tab0.col0 FROM tab0
----
2065
3396
8100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5284
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + + col1 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + - 72 + col2 FROM tab2 AS cor0
----
-34
-45
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col1 FROM tab0, tab1 AS cor0
----
11

query I rowsort
SELECT ( + col1 ) * + ( + col2 ) * cor0.col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT col0 + + col1 DIV ( col0 ) - + col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5289
SELECT col0 + + col1 / ( col0 ) - + col0 FROM tab1
----
0
0
8

query I rowsort
SELECT col1 * - 40 AS col2 FROM tab1 AS cor0
----
-1040
-400
-520

query I rowsort
SELECT - col0 + ( 92 ) * col1 AS col0 FROM tab0 cor0
----
7888
8283
8889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 * + 57 col0 FROM tab0
----
-383268
-57
-62073

query I rowsort
SELECT + col2 + ( - col2 ) * tab2.col1 * - col0 + 93 FROM tab2
----
119771
51165
5979

query I rowsort
SELECT + + cor0.col1 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - 97 FROM tab0, tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT ( + col0 ) * + tab1.col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 49 + 44 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT - 43 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT + - col0 * + col2 + cor0.col0 * + cor0.col0 * 57 AS col1 FROM tab0 AS cor0
----
32040
444199
69790

query I rowsort
SELECT - cor0.col2 + + col0 * ( + 77 * col0 ) AS col0 FROM tab1 AS cor0
----
315335
492704
639

query I rowsort
SELECT - 63 * - col0 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT cor0.col2 + + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

query I rowsort
SELECT DISTINCT 4 + - col1 AS col2 FROM tab2 AS cor0
----
-13
-27
-55

query I rowsort
SELECT col2 * col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - col1 + - col2 AS col1 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + + 25 * + cor0.col0 + col1 FROM tab0 AS cor0
----
2316
686
972

query I rowsort
SELECT ALL 97 * - ( cor0.col0 ) * - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1addc45f3b0c26def778157ab0ce9bd1

query I rowsort
SELECT - 30 * col0 * + cor0.col1 FROM tab1 AS cor0
----
-19200
-2340
-31200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col1 FROM tab0
----
41
41
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT ALL 44 * col2 DIV + 49 AS col0 FROM tab0 AS cor0
----
0
29
73

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL 44 * col2 / + 49 AS col0 FROM tab0 AS cor0
----
0
29
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5311
SELECT - CAST( NULL AS SIGNED ) + col1 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT - CAST ( NULL AS INTEGER ) + col1 * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 12 * - tab0.col2 AS col0 FROM tab0
----
-12
-396
-984

query I rowsort
SELECT DISTINCT 30 * + col0 AS col1 FROM tab1
----
1920
2400
90

query I rowsort
SELECT - col2 * + col0 + - tab2.col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + col0 - - 73 * col1 FROM tab2 AS cor0
----
1320
2270
4385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5316
SELECT - - col0 + - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT - - col0 + - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col1 * + 69 * col1 FROM tab1 AS cor0
----
-11661
-46644
-6900

query I rowsort
SELECT DISTINCT - + col1 * - col0 + col2 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1267
1536
2384

query I rowsort
SELECT ALL - col2 - 84 FROM tab1 AS cor0
----
-138
-141
-180

query I rowsort
SELECT tab1.col0 + col1 * - col2 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - col2 + - col1 - + 3 FROM tab1
----
-112
-70
-83

query I rowsort
SELECT - 9 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT + col1 + col1 * + col0 AS col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + col0 + + 44 AS col0 FROM tab2 AS cor0
----
122
123
51

query I rowsort
SELECT DISTINCT - + col0 * col2 * - 72 - col1 FROM tab2 AS cor0
----
13577
145957
216127

query I rowsort
SELECT ALL + col1 * - ( - cor0.col2 ) + - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT col2 + 82 * - col0 AS col1 FROM tab1 AS cor0
----
-192
-5191
-6464

query I rowsort
SELECT col2 + - 20 AS col1 FROM tab0
----
-19
13
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5329
SELECT DISTINCT - col0 + + col0 DIV tab0.col0 AS col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - col0 + + col0 / tab0.col0 AS col0 FROM tab0
----
-23
-34
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + - col0 * + col2 + + 91 col1 FROM tab1
----
-308
1627
2845

query I rowsort
SELECT ALL - + col2 + col0 * 87 FROM tab0 cor0
----
2055
3044
7661

query I rowsort
SELECT - col0 + + 52 AS col2 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT DISTINCT cor0.col1 * 92 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT ALL 96 + col0 * + cor0.col2 FROM tab1 cor0
----
258
3744
7776

query I rowsort
SELECT DISTINCT - col2 * col2 + + cor0.col1 * + col1 * col0 + - col2 FROM tab1 AS cor0
----
-942
3094
4208

query I rowsort
SELECT col1 * - 98 + col2 FROM tab1 AS cor0
----
-1178
-2494
-923

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 * - col0 AS col2 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT + - ( + ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + 97 + col2 FROM tab1 AS cor0
----
151
154
193

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col2 ) + + col2 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - 91 + col2 - - col1 FROM tab0 AS cor0
----
28
7
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 17 + - col2 * - col2 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-26153
-52
-598453

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5347
SELECT DISTINCT - cor0.col1 + col2 * CAST( NULL AS SIGNED ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT - cor0.col1 + col2 * CAST ( NULL AS INTEGER ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col0 * col2 + col0 + 52 AS col0 FROM tab0 AS cor0
----
-7157
-716
52

query I rowsort
SELECT ALL - 58 AS col1 FROM tab0 cor0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + cor0.col0 * col1 col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - - 44 AS col2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-5352
SELECT DISTINCT - col2 DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT - col2 / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( col1 ) + + col1 + + 21 * + col0 AS col2 FROM tab2 AS cor0
----
1693
1756
209

query I rowsort
SELECT 4 + - col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
37
8

query I rowsort
SELECT + col0 + + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT col1 + 73 * col0 AS col2 FROM tab2 AS cor0
----
542
5753
5784

query I rowsort
SELECT DISTINCT + cor0.col1 * - 51 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT ALL + col0 + - ( + col2 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + + ( 54 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT tab2.col0 * col2 + + ( + col1 ) AS col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL + 91 * - tab0.col1 * ( col1 ) - col1 * - col2 FROM tab0
----
-670198
-746109
-856122

query I rowsort
SELECT ALL ( col2 ) * - col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + 80 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL + 5 * - col1 AS col1 FROM tab2
----
-155
-295
-85

query I rowsort
SELECT + ( - 94 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-658
-7332
-7426

onlyif mysql # use DIV operator for integer division
query I rowsort label-5366
SELECT DISTINCT + 56 * col2 + + col2 DIV col2 FROM tab1 AS cor0
----
3025
3193
5377

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT + 56 * col2 + + col2 / col2 FROM tab1 AS cor0
----
3025
3193
5377

query I rowsort
SELECT + cor0.col2 - - col1 * + 59 FROM tab1 AS cor0
----
1588
647
863

query I rowsort
SELECT + 63 * col1 + col0 FROM tab2 AS cor0
----
1150
1960
3795

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 DISTINCT + col1 * col0 * - col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT + - 67 * + cor0.col0 - - ( ( - col1 ) ) FROM tab1 AS cor0
----
-227
-4298
-5373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 - + col1 col0 FROM tab2 AS cor0
----
-11
-39
3

query I rowsort
SELECT + 33 - + col0 FROM tab1 AS cor0
----
-31
-47
30

query I rowsort
SELECT ALL + col1 * + cor0.col0 + cor0.col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT col0 + col0 * - 46 FROM tab0 cor0
----
-1080
-1575
-4005

onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT ALL + cor0.col1 DIV cor0.col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + cor0.col1 / cor0.col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT + + col2 * - 67 + col0 FROM tab0 AS cor0
----
-2187
-32
-5405

query I rowsort
SELECT + col0 + 94 FROM tab0 cor0
----
118
129
183

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT - col1 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5379
SELECT - col1 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT cor0.col0 + 21 AS col1 FROM tab1 AS cor0
----
101
24
85

query I rowsort
SELECT + col0 * - col1 + - 99 FROM tab2 AS cor0
----
-1442
-316
-4701

query I rowsort
SELECT - col2 + 81 AS col2 FROM tab2 AS cor0
----
43
54
55

query I rowsort
SELECT col2 * - 18 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT - + col1 * ( - 53 ) AS col2 FROM tab1 AS cor0
----
1378
530
689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT + + col1 * + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT + + col1 * + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5386
SELECT - 84 DIV col0 col1 FROM tab1 AS cor0
----
-1
-1
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5386
SELECT - 84 / col0 col1 FROM tab1 AS cor0
----
-1
-1
-28

query I rowsort
SELECT ( + col2 ) * - col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT - col2 * 40 AS col1 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT - - 78 * - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-2730
-569244
-61776

query I rowsort
SELECT ALL - - col1 * + 4 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT DISTINCT - 10 * 65 AS col1 FROM tab0 cor0
----
-650

query I rowsort
SELECT ALL col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - ( + 4 ) + col1 * + 26 AS col1 FROM tab1 cor0
----
256
334
672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5395
SELECT DISTINCT + CAST( ( + cor0.col1 ) AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + CAST ( ( + cor0.col1 ) AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 72 + 75 FROM tab2 AS cor0
----
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT + col1 + cor0.col1 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-5397
SELECT + col1 + cor0.col1 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
83
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT ALL - col1 * col0 DIV + tab1.col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL - col1 * col0 / + tab1.col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * - cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5400
SELECT - tab0.col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5400
SELECT - tab0.col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5401
SELECT - col2 * CAST( - col1 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
1456
567
830

skipif mysql # not compatible
query I rowsort label-5401
SELECT - col2 * CAST ( - col1 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab1.col2 col1 FROM tab1
----
108
114
192

query I rowsort
SELECT tab2.col0 * ( - 38 + - col1 ) FROM tab2
----
-4345
-483
-7566

query I rowsort
SELECT + + col0 + + col2 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5405
SELECT + + col2 DIV + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-5405
SELECT + + col2 / + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT DISTINCT - - 99 * - col2 AS col1 FROM tab1 AS cor0
----
-5346
-5643
-9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 col1 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - + 6 AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + - col0 * col0 * 53 - + 29 AS col1 FROM tab1 AS cor0
----
-217117
-339229
-506

query I rowsort
SELECT 89 * + col1 + col1 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT DISTINCT - 41 - - col2 FROM tab2 AS cor0
----
-14
-15
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT ALL + + col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + + col0 / cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 * 31 * + col0 AS col1 FROM tab2 AS cor0
----
-142662
-41633
-6727

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT cor0.col1 * 76 AS col0 FROM tab0 cor0
----
6536
6916
7372

query I rowsort
SELECT + col0 * + 92 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT DISTINCT col2 + col0 * col2 AS col1 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT - tab1.col1 - col1 * col1 DIV - tab1.col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5418
SELECT - tab1.col1 - col1 * col1 / - tab1.col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - 56 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT - col2 * col1 + 7 * col2 FROM tab2 AS cor0
----
-1352
-380
-648

query I rowsort
SELECT - 38 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT ALL - col1 + + 98 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
-11
-14
-58

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - col1 + + 98 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
-11
-14
-58

query I rowsort
SELECT ALL - 34 + + col0 * + cor0.col2 + col2 FROM tab2 AS cor0
----
182
2020
3006

query I rowsort
SELECT - + col1 - + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + - col2 * col1 + col2 AS col1 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT 6 - 63 FROM tab1 cor0
----
-57
-57
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT DISTINCT + ( tab2.col1 + + col1 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT + ( tab2.col1 + + col1 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + ( - ( col1 ) ) * + col1 AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col0 + col1 * ( col0 * col2 ) FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT 11 + cor0.col0 + col2 FROM tab1 AS cor0
----
132
187
68

query I rowsort
SELECT + tab1.col0 * 60 AS col1 FROM tab1
----
180
3840
4800

query I rowsort
SELECT ALL tab0.col1 + + 69 AS col2 FROM tab0
----
155
160
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT CAST( + col0 AS SIGNED ) + - col0 * + 89 * + col1 AS col1 FROM tab1
----
-56896
-6939
-92480

skipif mysql # not compatible
query I rowsort label-5433
SELECT CAST ( + col0 AS INTEGER ) + - col0 * + 89 * + col1 AS col1 FROM tab1
----
-56896
-6939
-92480

query I rowsort
SELECT col2 - 74 FROM tab1
----
-17
-20
22

query I rowsort
SELECT - cor0.col0 - - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 79 * - col1 AS col0 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT ALL - cor0.col0 * - col0 + + cor0.col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT ALL 96 * tab0.col2 DIV - ( - col2 ) + col2 * 76 FROM tab0
----
172
2604
6328

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL 96 * tab0.col2 / - ( - col2 ) + col2 * 76 FROM tab0
----
172
2604
6328

onlyif mysql # use DIV operator for integer division
query I rowsort label-5439
SELECT ALL col2 + cor0.col0 DIV - ( col2 ) AS col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL col2 + cor0.col0 / - ( col2 ) AS col2 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * 84 * - col2 FROM tab0 AS cor0
----
-238306
-626717
-8051

query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 * 80 AS col1 FROM tab1 AS cor0
----
-1136
-2134
-857

query I rowsort
SELECT ALL + + col2 + - col2 * - 99 FROM tab0 cor0
----
100
3300
8200

query I rowsort
SELECT + col0 * - ( col1 ) + col1 * col2 AS col1 FROM tab1
----
-70
1326
208

query I rowsort
SELECT tab2.col0 * tab2.col1 + + col1 * tab2.col2 FROM tab2
----
1054
1989
6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT ALL + ( - col0 ) + - col1 DIV ( - 58 ) FROM tab2 cor0
----
-7
-77
-79

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + ( - col0 ) + - col1 / ( - 58 ) FROM tab2 cor0
----
-7
-77
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + cor0.col1 col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + ( 89 ) + - col0 FROM tab0 AS cor0
----
0
54
65

query I rowsort
SELECT 62 * 66 * col0 AS col0 FROM tab2
----
28644
319176
323268

query I rowsort
SELECT DISTINCT + tab0.col2 + + 84 AS col1 FROM tab0
----
117
166
85

query I rowsort
SELECT DISTINCT - 75 + col1 FROM tab1
----
-49
-62
-65

query I rowsort
SELECT ALL + + cor0.col1 + - ( cor0.col2 * ( - col2 ) ) FROM tab2 cor0
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5452
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + col0 + col1 * - col1 * ( + 45 ) FROM tab2 AS cor0
----
-12926
-156567
-43238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT - - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT - - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 51 + + 18 FROM tab2 cor0
----
69
69
69

query I rowsort
SELECT ALL + - col1 + 53 * - col2 FROM tab0 AS cor0
----
-150
-1835
-4437

query I rowsort
SELECT + + ( + col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5459
SELECT DISTINCT - - col0 / col0 + - col0 * CAST( NULL AS SIGNED ) * - col0 + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - - col0 / col0 + - col0 * CAST ( NULL AS INTEGER ) * - col0 + col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + col0 + col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT + col1 * cor0.col0 - + col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - col2 * col2 + + col2 AS col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - 86 * + col1 FROM tab0 AS cor0
----
-7396
-7826
-8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab1.col0 + ( + 82 ) * + tab1.col0 * - ( col2 ) col1 FROM tab1
----
-13206
-298496
-628720

query I rowsort
SELECT - col1 * - 16 FROM tab2 AS cor0
----
272
496
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * + col2 * - col2 col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT + 64 + - col2 AS col2 FROM tab1 AS cor0
----
-32
10
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 - col2 col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT DISTINCT - col2 DIV col1 + + cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - col2 / col1 + + cor0.col2 / - col0 AS col0 FROM tab2 AS cor0
----
-2
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT - col0 DIV + ( - 6 * col0 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT - col0 / + ( - 6 * col0 ) FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 18 * 76 * col0 col2 FROM tab2 AS cor0
----
106763
108089
9607

query I rowsort
SELECT + col1 + + col1 * ( col1 ) * - ( col0 ) FROM tab0 AS cor0
----
-177418
-329218
-736918

query I rowsort
SELECT ALL + 80 * - col0 FROM tab0
----
-1920
-2800
-7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT 3 + col2 DIV tab0.col2 AS col2 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5474
SELECT 3 + col2 / tab0.col2 AS col2 FROM tab0
----
4
4
4

query I rowsort
SELECT 80 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT DISTINCT col2 - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + 55 * col2 * + col1 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
36176
46872
85904

query I rowsort
SELECT DISTINCT + + ( + col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT col0 + - col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab1 AS cor0
----
67

query I rowsort
SELECT col1 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + 9 + col0 + ( + col0 + - col0 ) * 70 AS col1 FROM tab1 AS cor0
----
12
73
89

query I rowsort
SELECT + - 85 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT - col0 + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-113
-196
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5486
SELECT + col0 * - col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT + col0 * - col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 * col0 col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT 52 * col0 * col0 FROM tab0
----
29952
411892
63700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT DISTINCT col1 + - col1 DIV + col0 + - 56 AS col0 FROM tab2
----
-29
-39
3

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT col1 + - col1 / + col0 + - 56 AS col0 FROM tab2
----
-29
-39
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5490
SELECT + - col0 * cor0.col1 + + CAST( col0 AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
-2016
-3325
-7921

skipif mysql # not compatible
query I rowsort label-5490
SELECT + - col0 * cor0.col1 + + CAST ( col0 AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
-2016
-3325
-7921

query I rowsort
SELECT - - col1 + col1 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1892
-3201
-7917

query I rowsort
SELECT - ( + cor0.col2 ) * + col1 + - col2 FROM tab1 cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT - - col2 + + col2 + + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
53
54
80

skipif mysql # not compatible
query I rowsort label-5493
SELECT - - col2 + + col2 + + col0 / col1 AS col1 FROM tab2 AS cor0
----
53
54
80

query I rowsort
SELECT ALL col0 * 93 AS col1 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT col0 * 66 AS col1 FROM tab0 AS cor0
----
1584
2310
5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT + + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5496
SELECT + + col0 / + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5497
SELECT DISTINCT + cor0.col2 DIV - ( cor0.col0 * col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT + cor0.col2 / - ( cor0.col0 * col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 * + col0 * 80 FROM tab0
----
2800
583840
63360

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + ( - col0 ) AS REAL ) + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT - + col0 * col2 - col0 * - 70 AS col0 FROM tab2 AS cor0
----
2528
301
3432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * 81 - - col0 col0 FROM tab0 AS cor0
----
6990
7460
7892

query I rowsort
SELECT + ( col2 ) * cor0.col0 - col0 * col1 * - cor0.col0 FROM tab2 AS cor0
----
109099
1708
360984

query I rowsort
SELECT + - 22 * + col2 * + col2 FROM tab0 AS cor0
----
-147928
-22
-23958

query I rowsort
SELECT ALL 23 * 15 FROM tab2
----
345
345
345

query I rowsort
SELECT DISTINCT col0 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + + 86 AS col1 FROM tab2, tab1, tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT 7 * cor0.col1 FROM tab1, tab0 AS cor0
----
602
637
679

query I rowsort
SELECT tab1.col1 * tab1.col0 * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + ( 67 ) AS col0 FROM tab1
----
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5511
SELECT ALL col0 DIV col2 + + 95 * tab1.col1 AS col1 FROM tab1
----
1235
2470
951

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL col0 / col2 + + 95 * tab1.col1 AS col1 FROM tab1
----
1235
2470
951

query I rowsort
SELECT - col0 + 79 FROM tab2 AS cor0
----
0
1
72

query I rowsort
SELECT + cor0.col2 * col1 - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5515
SELECT ALL + ( + 20 ) * col2 + - ( - ( + col0 ) ) * CAST( NULL AS SIGNED ) + col1 * + col2 * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + ( + 20 ) * col2 + - ( - ( + col0 ) ) * CAST ( NULL AS INTEGER ) + col1 * + col2 * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * col0 AS col1 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5517
SELECT DISTINCT - - CAST( + 91 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
7826
8281
8827

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT - - CAST ( + 91 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT + tab0.col0 * - col0 + - col2 * - col1 FROM tab0
----
-1128
-459
2262

query I rowsort
SELECT ALL col0 * - col0 + + col0 - + tab1.col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - col2 + + col0 * 79 FROM tab0
----
1863
2764
6949

query I rowsort
SELECT ( - 39 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5522
SELECT - col1 DIV - CAST( ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5522
SELECT - col1 / - CAST ( ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 + 61 * - 24 AS col2 FROM tab1 AS cor0
----
-1467
-1528
-1544

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + - cor0.col0 + col1 * 69 AS col2 FROM tab0 cor0
----
5910
6190
6658

onlyif mysql # use DIV operator for integer division
query I rowsort label-5526
SELECT + + col1 DIV col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5526
SELECT + + col1 / col2 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5527
SELECT + + col0 - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT + + col0 - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - - col2 * - 67 AS col1 FROM tab2 cor0
----
-1742
-1809
-2546

query I rowsort
SELECT ALL + - col1 * 65 AS col2 FROM tab2 AS cor0
----
-1105
-2015
-3835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * - col1 col0 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-5532
SELECT ALL col1 * col1 DIV col0 FROM tab1 AS cor0
----
1
2
225

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL col1 * col1 / col0 FROM tab1 AS cor0
----
1
2
225

query I rowsort
SELECT - + col0 * + 3 FROM tab1 AS cor0
----
-192
-240
-9

query I rowsort
SELECT ALL + + col1 + col0 - cor0.col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - col1 + - 48 FROM tab0 AS cor0
----
-134
-139
-145

query I rowsort
SELECT ALL + + col0 * + ( cor0.col2 ) + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + ( - cor0.col0 ) + - tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to bf101804f9dfd3a9ab127a66a196b731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5538
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5538
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col1 - - 5 AS col1 FROM tab0 cor0
----
-81
-86
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5540
SELECT ALL - col0 DIV tab0.col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL - col0 / tab0.col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 48 * col1 + + 50 FROM tab0
----
4178
4418
4706

query I rowsort
SELECT DISTINCT col2 + col0 * ( + col1 ) * col2 FROM tab1 AS cor0
----
36537
4266
99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT ( 47 ) DIV col0 FROM tab1 AS cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-5543
SELECT ( 47 ) / col0 FROM tab1 AS cor0
----
0
0
15

query I rowsort
SELECT + col0 * col2 * tab0.col2 AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT + col2 + - col0 + + tab1.col0 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT 18 * - 70 + - col1 AS col1 FROM tab1 cor0
----
-1270
-1273
-1286

query I rowsort
SELECT + col0 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT ALL - col0 + - tab2.col1 * - ( tab2.col1 ) DIV col1 + - col2 AS col1 FROM tab2
----
-100
-3
-45

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - col0 + - tab2.col1 * - ( tab2.col1 ) / col1 + - col2 AS col1 FROM tab2
----
-100
-3
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5549
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT + col1 DIV - ( 68 ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5550
SELECT + col1 / - ( 68 ) AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - col1 + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5552
SELECT ALL - ( col1 ) DIV col2 + - col0 - cor0.col1 FROM tab0 AS cor0
----
-112
-181
-229

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - ( col1 ) / col2 + - col0 - cor0.col1 FROM tab0 AS cor0
----
-112
-181
-229

query I rowsort
SELECT ALL + col0 + + col1 * - col1 AS col1 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - + 3 - + col1 AS col2 FROM tab2 AS cor0
----
-20
-34
-62

query I rowsort
SELECT + col0 - col1 * - col0 * col2 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT ALL + 2 + tab0.col1 * - col1 FROM tab0
----
-7394
-8279
-9407

query I rowsort
SELECT DISTINCT - col0 + col0 + + col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + ( + col1 ) + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - ( col2 ) * 32 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1754
-1834
-3085

query I rowsort
SELECT DISTINCT - - col1 * + col2 + - 57 AS col1 FROM tab0 AS cor0
----
2781
40
7405

query I rowsort
SELECT ALL 32 + 50 * col0 AS col1 FROM tab2
----
382
3932
3982

query I rowsort
SELECT ALL 14 + - col0 * col1 FROM tab1
----
-1026
-626
-64

query I rowsort
SELECT + 4 + + tab0.col0 FROM tab0
----
28
39
93

query I rowsort
SELECT ALL - - 61 + col1 + 0 FROM tab0 AS cor0
----
147
152
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col1 col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab2 AS cor0
----
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5567
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-5567
SELECT - col2 / cor0.col0 col2 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT + cor0.col2 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5568
SELECT + cor0.col2 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT cor0.col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT 74 + 60 AS col2 FROM tab0
----
134
134
134

onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT - - col2 DIV col1 + + col1 * + col1 col2 FROM tab1 AS cor0
----
105
176
678

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5571
SELECT - - col2 / col1 + + col1 * + col1 col2 FROM tab1 AS cor0
----
105
176
678

onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT col2 DIV 68 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5572
SELECT col2 / 68 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + + col0 + 23 * col2 AS col0 FROM tab0 cor0
----
1975
58
783

query I rowsort
SELECT - col2 * ( - col0 * col0 ) AS col0 FROM tab0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT - CAST( 96 AS SIGNED ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-5184
-5472
-9216

skipif mysql # not compatible
query I rowsort label-5575
SELECT - CAST ( 96 AS INTEGER ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT col0 * + col1 * + col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT 81 * tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
1377
2511
4779

query I rowsort
SELECT 95 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT - ( 69 ) * + col1 + + col0 + 41 FROM tab0 AS cor0
----
-5869
-6149
-6617

query I rowsort
SELECT 44 + col2 + col2 FROM tab1 AS cor0
----
152
158
236

query I rowsort
SELECT + ( col1 ) * col2 * - col0 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + ( tab0.col0 ) * - 62 AS col2 FROM tab0, tab2 AS cor0
----
-1488
-2170
-5518

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe

query I rowsort
SELECT ALL + - 12 * col1 + + col1 - col2 * - ( + col1 ) FROM tab0 AS cor0
----
-970
1892
6461

query I rowsort
SELECT - col1 - - 67 * col1 AS col2 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT col0 * 90 + col0 AS col0 FROM tab1 AS cor0
----
273
5824
7280

query I rowsort
SELECT col1 + 20 - col0 FROM tab0
----
22
82
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT + 52 DIV + 50 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5588
SELECT + 52 / + 50 FROM tab0
----
1
1
1

query I rowsort
SELECT - 96 - - col1 FROM tab0
----
-10
-5
1

query I rowsort
SELECT DISTINCT col0 * col1 + ( + ( - col1 ) ) AS col1 FROM tab2
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 - + ( - col0 ) col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-5592
SELECT - 32 DIV + col0 + + col1 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-5592
SELECT - 32 / + col0 + + col1 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT + 49 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2789
-48
-7413

query I rowsort
SELECT 84 + col0 * + col0 AS col2 FROM tab0
----
1309
660
8005

query I rowsort
SELECT ALL - + 79 * col2 FROM tab0 AS cor0
----
-2607
-6478
-79

query I rowsort
SELECT - col0 - cor0.col2 * 71 FROM tab2 AS cor0
----
-1924
-1924
-2777

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5597
SELECT DISTINCT col2 * + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT col2 * + col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 45 + col1 FROM tab2 AS cor0
----
-14
-28
14

query I rowsort
SELECT DISTINCT - ( - col2 ) * + cor0.col0 + 40 + col2 * 48 AS col2 FROM tab2 cor0
----
1525
3316
4866

query I rowsort
SELECT ALL - ( col0 ) + col1 + + col2 FROM tab1 AS cor0
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT - col2 * col1 * + 51 + 63 DIV col1 AS col0 FROM tab0 cor0
----
-144738
-380562
-4947

skipif mysql # not compatible
query I rowsort label-5601
SELECT - col2 * col1 * + 51 + 63 / col1 AS col0 FROM tab0 cor0
----
-144738
-380562
-4947

query I rowsort
SELECT + col1 * col0 + ( - 9 ) FROM tab1 AS cor0
----
1031
631
69

query I rowsort
SELECT + col2 * col0 + + ( + cor0.col0 ) FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ( col2 ) * + 49 + - 11 AS col1 FROM tab2 AS cor0
----
1263
1312
1851

query I rowsort
SELECT ALL - + 58 * + col2 + 87 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
-12408
-3006
-3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT + col1 DIV - cor0.col1 + col0 FROM tab0 cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5606
SELECT + col1 / - cor0.col1 + col0 FROM tab0 cor0
----
23
34
88

query I rowsort
SELECT ALL + 95 * - col0 + - ( - ( - col0 ) ) FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT + tab1.col0 + + 51 FROM tab1
----
115
131
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT + + col1 DIV 52 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5609
SELECT + + col1 / 52 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT + cor0.col1 * ( col2 ) FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col2 * ( cor0.col2 + + col0 ) AS col0 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT col0 + 94 AS col0 FROM tab0 AS cor0
----
118
129
183

onlyif mysql # use DIV operator for integer division
query I rowsort label-5613
SELECT - col2 DIV 86 col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5613
SELECT - col2 / 86 col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - ( + col1 ) * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + cor0.col1 ) col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5617
SELECT ALL + CAST( - col2 AS SIGNED ) + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + CAST ( - col2 AS INTEGER ) + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col1 + 4 * + col2 FROM tab0 AS cor0
----
101
218
419

query I rowsort
SELECT DISTINCT - - 2 * col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col2 * cor0.col0 + - 72 * col2 * cor0.col1 FROM tab2 cor0
----
-108420
-43510
-60075

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + col2 * + col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT col2 + - 68 AS col2 FROM tab1 AS cor0
----
-11
-14
28

query I rowsort
SELECT ALL + col0 + 26 FROM tab1 AS cor0
----
106
29
90

query I rowsort
SELECT ALL + col1 * 40 FROM tab1 cor0
----
1040
400
520

query I rowsort
SELECT DISTINCT + col0 * ( - col1 ) FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + cor0.col0 - 76 AS col0 FROM tab1 AS cor0
----
-12
-73
4

query I rowsort
SELECT cor0.col0 * + col2 + - col0 * col0 FROM tab2 cor0
----
-3239
-4056
140

query I rowsort
SELECT ALL + col2 * ( - cor0.col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 - + ( - ( - col2 ) ) FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5630
SELECT ALL - ( + cor0.col0 ) + cor0.col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - ( + cor0.col0 ) + cor0.col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col0 * 45 + + 23 * - col2 FROM tab0
----
1552
2119
321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col2 * - col2 + - cor0.col0 col0 FROM tab1 AS cor0
----
2887
3175
9123

query I rowsort
SELECT - col0 + - col1 * - 6 AS col1 FROM tab2 AS cor0
----
179
23
276

query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-5635
SELECT DISTINCT col2 DIV + col0 + - col1 FROM tab2
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT col2 / + col0 + - col1 FROM tab2
----
-17
-28
-59

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) <= col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 + + col1 * - col1 col2 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT tab1.col2 FROM tab1 WHERE ( NULL ) NOT IN ( col1 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
9

query I rowsort
SELECT ALL cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE col1 NOT IN ( col2 / col1 )
----
24
35
89

query I rowsort
SELECT - col1 + + col1 + col1 * - tab1.col0 FROM tab1
----
-1040
-640
-78

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1 + + col2
----

query I rowsort
SELECT + tab0.col2 + - col1 * col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NULL > col2 / + col1
----

query I rowsort
SELECT col1 + col0 + col2 * col2 AS col0 FROM tab0
----
1199
133
6904

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 * col1 ) col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL 43 FROM tab2 cor0
----
43
43
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5650
SELECT ALL + col2 * - cor0.col0 * + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + col2 * - cor0.col0 * + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5651
SELECT - 44 DIV 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif mysql # not compatible
query I rowsort label-5651
SELECT - 44 / 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT + col2 * + col0 + 75 * - col0 FROM tab0
----
-1008
-2590
623

query I rowsort
SELECT ALL - 48 * col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2589
-2672
-4528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - col2 + cor0.col1 - col1 * + col2 FROM tab0 AS cor0
----
-1
-2785
-7453

query I rowsort
SELECT + 24 + - col1 FROM tab0 cor0
----
-62
-67
-73

query I rowsort
SELECT ALL - col0 * 0 + - col1 + col1 * col2 * col2 AS col1 FROM tab2 cor0
----
22568
24531
39825

query I rowsort
SELECT col2 * - 34 * col2 FROM tab2 AS cor0
----
-22984
-24786
-49096

query I rowsort
SELECT ALL - col0 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col2 FROM tab1 cor0
----
78

query I rowsort
SELECT ALL - col1 + col1 * + col0 AS col2 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT col0 * - col2 * cor0.col2 + col0 + 98 * col1 AS col1 FROM tab2 cor0
----
-112331
-2058
-46868

query I rowsort
SELECT DISTINCT col1 * col0 + cor0.col1 * ( + col2 ) FROM tab0 AS cor0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT ALL + col1 * col1 + - col0 + + ( - col1 ) DIV col1 FROM tab0 AS cor0
----
7371
8191
9373

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL + col1 * col1 + - col0 + + ( - col1 ) / col1 FROM tab0 AS cor0
----
7371
8191
9373

query I rowsort
SELECT DISTINCT - + ( col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + cor0.col1 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 20 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-7
6

query I rowsort
SELECT ALL - 38 * col1 + col1 * col0 AS col1 FROM tab2 AS cor0
----
-961
2360
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5669
SELECT - col1 + col2 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif mysql # not compatible
query I rowsort label-5669
SELECT - col1 + col2 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL col1 * col1 - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT ALL - ( + col0 ) * 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 78 * - col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

query I rowsort
SELECT cor0.col2 * 33 + cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b6d6819da3f9b1811b0a4e09c778edd8

query I rowsort
SELECT ALL + col1 * + ( + col0 ) * 69 FROM tab0
----
142416
234255
558831

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT ALL + 21 DIV + col0 + + col0 AS col1 FROM tab1
----
10
64
80

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + 21 / + col0 + + col0 AS col1 FROM tab1
----
10
64
80

query I rowsort
SELECT ALL - 46 + 21 AS col2 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT ALL col2 * 83 AS col2 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT - col1 + - 61 + ( - col0 ) FROM tab1 AS cor0
----
-135
-154
-90

query I rowsort
SELECT DISTINCT + col1 * + ( tab2.col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT col0 * - 90 - col0 AS col0 FROM tab1 AS cor0
----
-273
-5824
-7280

query I rowsort
SELECT col1 * - ( 66 ) * col0 - + ( + col0 ) * col0 FROM tab1 AS cor0
----
-46336
-5157
-75040

query I rowsort
SELECT + 25 * - col2 + col0 + col1 AS col2 FROM tab2 AS cor0
----
-513
-637
-854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 22 col1 FROM tab1
----
1188
1254
2112

query I rowsort
SELECT DISTINCT + - 95 FROM tab2 cor0
----
-95

query I rowsort
SELECT - - cor0.col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 80 * - col1 FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT ( tab0.col0 * col2 ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT 96 * + cor0.col2 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT col2 * + col2 + col0 * 95 FROM tab0
----
15179
3326
3369

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT + - col0 * - col0 - - col0 * - col1 DIV col1 AS col1 FROM tab0 cor0
----
1190
552
7832

skipif mysql # not compatible
query I rowsort label-5690
SELECT + - col0 * - col0 - - col0 * - col1 / col1 AS col1 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT + - 67 * + col2 * cor0.col1 FROM tab2 cor0
----
-102778
-43282
-56079

query I rowsort
SELECT - 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL - 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) * - col2 col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + col1 + 12 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT ALL - - col0 * col1 - - col0 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT DISTINCT + + col1 + col0 * col0 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT DISTINCT + col0 * - col0 + - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-50
-6085
-6242

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT + col0 * - col0 + - col0 / + col0 AS col0 FROM tab2 AS cor0
----
-50
-6085
-6242

query I rowsort
SELECT cor0.col0 + 37 AS col1 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT DISTINCT - col1 * + ( col0 ) - + col0 FROM tab2 cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col0 FROM tab0
----
70
70
70

query I rowsort
SELECT DISTINCT - col2 * - 75 - tab0.col1 AS col2 FROM tab0
----
-22
2389
6059

onlyif mysql # use DIV operator for integer division
query I rowsort label-5704
SELECT - + col1 DIV ( + cor0.col1 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5704
SELECT - + col1 / ( + cor0.col1 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + ( 72 + - col1 ) * col1 * - col1 FROM tab2
----
-15895
-39401
-45253

query I rowsort
SELECT - ( - tab0.col2 + tab0.col0 ) * tab0.col1 AS col2 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT - 3 + - col1 AS col0 FROM tab2 AS cor0
----
-20
-34
-62

query I rowsort
SELECT - 50 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT DISTINCT ( - col0 ) + cor0.col1 * + col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL - ( - col0 ) * col2 + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + 84 * col0 AS col2 FROM tab2 AS cor0
----
588
6552
6636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col1 ) + col0 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL 48 * - col2 FROM tab2 AS cor0
----
-1248
-1296
-1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT DISTINCT ( - col1 ) DIV col2 + + col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT ( - col1 ) / col2 + + col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT ALL + + col2 + - 80 * cor0.col2 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT - col2 * + 56 * col2 FROM tab0 AS cor0
----
-376544
-56
-60984

query I rowsort
SELECT ALL + 22 * 13 AS col1 FROM tab1 AS cor0
----
286
286
286

query I rowsort
SELECT ALL - - 54 FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - ( - col2 ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT + + ( col0 ) * col1 + + ( 20 ) FROM tab0 AS cor0
----
2084
3415
8119

query I rowsort
SELECT DISTINCT col0 + col0 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + 65 + col1 FROM tab1 AS cor0
----
75
78
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + - 24 + + col1 FROM tab2 AS cor0
----
-7
35
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT ALL col1 + + col1 DIV 84 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL col1 + + col1 / 84 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 9 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT + 34 AS col0 FROM tab1
----
34
34
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT ALL - col2 + - col0 DIV + col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - col2 + - col0 / + col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - - col1 * + ( 70 * cor0.col0 ) + - col0 AS col0 FROM tab1 cor0
----
44736
5457
72720

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
98

query I rowsort
SELECT DISTINCT col0 + 62 FROM tab0 AS cor0
----
151
86
97

query I rowsort
SELECT - tab1.col1 * + col0 + 57 AS col2 FROM tab1
----
-21
-583
-983

query I rowsort
SELECT + + 1 FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab1 cor2
----
243 values hashing to 6072a0adcb59c3ae44ae979eb233dece

query I rowsort
SELECT ALL - col1 * ( col1 ) FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT - col2 * 42 AS col0 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT DISTINCT + 93 FROM tab2, tab1 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 6 ) col0 FROM tab1, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + col1 * - col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + col2 + + ( col0 ) FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5745
SELECT DISTINCT CAST( col1 AS SIGNED ) + col2 * col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col2 * col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + cor0.col1 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ( - col2 ) + 93 + + 22 AS col1 FROM tab2
----
77
88
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT - col0 + col2 * col1 * - col1 + + col1 DIV 73 AS col1 FROM tab2
----
-11061
-25954
-90584

skipif mysql # not compatible
query I rowsort label-5748
SELECT - col0 + col2 * col1 * - col1 + + col1 / 73 AS col1 FROM tab2
----
-11061
-25954
-90584

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT ALL - + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + + col0 - - col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + 42 - col2 FROM tab2 AS cor0
----
15
16
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + - col0 col1 FROM tab2 AS cor0
----
-10
-81
-82

query I rowsort
SELECT ALL + col2 * col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + 42 * col0 - 55 FROM tab1 AS cor0
----
2633
3305
71

query I rowsort
SELECT DISTINCT col2 + col2 + col0 AS col2 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT ALL - + cor0.col1 DIV + col0 - col0 AS col2 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL - + cor0.col1 / + col0 - col0 AS col2 FROM tab2 AS cor0
----
-11
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + ( + cor0.col0 ) col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + - col1 * 99 * - col1 FROM tab1 AS cor0
----
16731
66924
9900

query I rowsort
SELECT - col2 + 61 * col2 AS col2 FROM tab0 cor0
----
1980
4920
60

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) + col2 + - cor0.col1 FROM tab2 AS cor0
----
-1423
-709
-733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5762
SELECT - col1 * CAST( + 69 AS SIGNED ) + col1 col2 FROM tab2 AS cor0
----
-1156
-2108
-4012

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5762
SELECT - col1 * CAST ( + 69 AS INTEGER ) + col1 col2 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col0 + 48 * 54 AS col2 FROM tab2 AS cor0
----
2599
2670
2671

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT DISTINCT + col2 DIV col1 + tab0.col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + col2 / col1 + tab0.col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col0 col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT cor0.col2 * col0 DIV col1 + + col1 AS col1 FROM tab2 AS cor0
----
193
37
93

skipif mysql # not compatible
query I rowsort label-5767
SELECT cor0.col2 * col0 / col1 + + col1 AS col1 FROM tab2 AS cor0
----
193
37
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 23 col0 FROM tab1 cor0
----
-23

query I rowsort
SELECT DISTINCT + col0 * col0 + + 35 AS col0 FROM tab2 AS cor0
----
6119
6276
84

query I rowsort
SELECT + ( + cor0.col0 ) - ( col1 * - col0 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - tab0.col2 * - tab0.col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT tab1.col1 + - col2 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col1 * - col1 - + 1 AS col2 FROM tab1 AS cor0
----
-101
-170
-677

onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT col1 + col1 DIV ( cor0.col2 * - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5774
SELECT col1 + col1 / ( cor0.col2 * - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - tab1.col0 * col0 * 68 AS col2 FROM tab1
----
-278528
-435200
-612

query I rowsort
SELECT ALL + 4 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5777
SELECT CAST( NULL AS SIGNED ) * col1 + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT CAST ( NULL AS INTEGER ) * col1 + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 28 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2384
2459
2681

query I rowsort
SELECT - ( - cor0.col0 ) * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - 42 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab2, tab1 cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT - ( col1 ) * + cor0.col0 * - 17 AS col1 FROM tab0 AS cor0
----
137683
35088
57715

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab0, tab0 AS cor0
----
90

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT 84 * - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2027acce54418cd6be1f9bdb349717c0

query I rowsort
SELECT DISTINCT + col1 * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + 50 * + col2 AS col1 FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT DISTINCT + + col2 * - col2 + + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT + + 3 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5790
SELECT + + 3 / col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5791
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - 72 + - col1 * - 27 FROM tab0 AS cor0
----
2250
2385
2547

query I rowsort
SELECT DISTINCT + 42 * + col0 * + 58 AS col1 FROM tab2 AS cor0
----
17052
190008
192444

query I rowsort
SELECT + - col0 * + cor0.col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + col1 * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + 15 + - col1 * 52 FROM tab0 AS cor0
----
-4457
-4717
-5029

query I rowsort
SELECT DISTINCT ( col1 + + col0 ) * col2 AS col2 FROM tab2
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 + + col2 + cor0.col0 col2 FROM tab1 AS cor0
----
-2859
-3128
-9040

query I rowsort
SELECT DISTINCT - col0 + col1 * ( col1 + col0 ) AS col2 FROM tab2 AS cor0
----
1171
1553
8005

onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT - col2 DIV - col2 + 40 FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-5800
SELECT - col2 / - col2 + 40 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT - - cor0.col1 * - col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5803
SELECT DISTINCT + - col1 + CAST( + 25 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
12
15

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT + - col1 + CAST ( + 25 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
12
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT ALL - col2 * CAST( + 22 * - col2 AS SIGNED ) + - 49 * - ( col2 ) FROM tab1 AS cor0
----
207456
66798
74271

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - col2 * CAST ( + 22 * - col2 AS INTEGER ) + - 49 * - ( col2 ) FROM tab1 AS cor0
----
207456
66798
74271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 43 col2 FROM tab2 AS cor0
----
-16
-17
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5806
SELECT cor0.col2 + - ( + 56 ) DIV + col0 + + cor0.col2 * - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-3395
-664036
-68081

skipif mysql # not compatible
query I rowsort label-5806
SELECT cor0.col2 + - ( + 56 ) / + col0 + + cor0.col2 * - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-3395
-664036
-68081

query I rowsort
SELECT DISTINCT - - col1 + 7 + col0 * col1 FROM tab2 AS cor0
----
1367
255
4668

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + col2 + - col0 * 95 AS col0 FROM tab0
----
-2247
-3324
-8373

query I rowsort
SELECT ALL col2 * col2 + - col1 * col1 FROM tab2 AS cor0
----
-232
-2805
1155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col1 + - cor0.col2 col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT 17 + tab2.col1 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1f93a3d03849e78cf13da7a157ab4183

query I rowsort
SELECT + col1 * - 69 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5815
SELECT DISTINCT - col2 * CAST( NULL AS DECIMAL ) + - 37 * - col1 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - col2 * CAST ( NULL AS REAL ) + - 37 * - col1 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - 10 + - 26 * - col1 col0 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT + + col0 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT ALL col0 DIV col0 + ( col1 ) FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL col0 / col0 + ( col1 ) FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - + col1 + + ( + col2 ) * + col0 - + col2 FROM tab0 cor0
----
-63
673
7125

onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT ALL + col0 * col0 + + col2 + col0 * + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
4089
60
6416

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + col0 * col0 + + col2 + col0 * + col0 / - cor0.col0 FROM tab1 AS cor0
----
4089
60
6416

query I rowsort
SELECT col2 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - col0 + col2 * - 57 FROM tab1 AS cor0
----
-3081
-3313
-5552

query I rowsort
SELECT - 15 * col1 - 76 AS col0 FROM tab1
----
-226
-271
-466

query I rowsort
SELECT ALL 56 * col0 + - col1 FROM tab0
----
1258
1863
4893

query I rowsort
SELECT ALL col0 + + col0 * - 41 + - col2 * 70 FROM tab1 AS cor0
----
-3900
-6550
-9920

query I rowsort
SELECT + col1 * + col1 * col0 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + col1 - - 57 FROM tab0 cor0
----
143
148
154

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * col1 - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 + - col1 * col1 col0 FROM tab1 AS cor0
----
-667
3996
6231

query I rowsort
SELECT ( + col2 ) * col1 * cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + + col1 * 57 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT ALL + col1 + - 64 AS col2 FROM tab0
----
22
27
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5833
SELECT CAST( col2 * - col2 AS SIGNED ) + ( - col0 ) + col1 * + col1 AS col0 FROM tab0
----
1468
6283
9373

skipif mysql # not compatible
query I rowsort label-5833
SELECT CAST ( col2 * - col2 AS INTEGER ) + ( - col0 ) + col1 * + col1 AS col0 FROM tab0
----
1468
6283
9373

query I rowsort
SELECT ALL 97 - - col0 AS col2 FROM tab0 AS cor0
----
121
132
186

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5836
SELECT CAST( col1 AS SIGNED ) * - col0 - 22 AS col0 FROM tab0 cor0
----
-2086
-3417
-8121

skipif mysql # not compatible
query I rowsort label-5836
SELECT CAST ( col1 AS INTEGER ) * - col0 - 22 AS col0 FROM tab0 cor0
----
-2086
-3417
-8121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5837
SELECT ALL - - col0 + + 28 * col1 * CAST( col2 + - col1 * 10 AS SIGNED ) FROM tab2 AS cor0
----
-245637
-62753
-931650

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - - col0 + + 28 * col1 * CAST ( col2 + - col1 * 10 AS INTEGER ) FROM tab2 AS cor0
----
-245637
-62753
-931650

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ( col0 ) - col1 AS col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL - col1 * 37 FROM tab0 cor0
----
-3182
-3367
-3589

query I rowsort
SELECT - col2 * - 98 AS col1 FROM tab2 cor0
----
2548
2646
3724

query I rowsort
SELECT ALL + - 91 AS col2 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + col0 * 63 FROM tab0 AS cor0
----
1512
2205
5607

query I rowsort
SELECT DISTINCT + + 0 + col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 44 - - col1 AS col0 FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT DISTINCT - - 52 AS col0 FROM tab0 cor0
----
52

query I rowsort
SELECT + 37 + 29 * + col1 * + ( 46 ) AS col1 FROM tab2 AS cor0
----
22715
41391
78743

query I rowsort
SELECT DISTINCT - 67 * + col0 + - col0 * 48 AS col0 FROM tab2 AS cor0
----
-805
-8970
-9085

query I rowsort
SELECT ALL + 61 AS col1 FROM tab0, tab1 cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1

query I rowsort
SELECT ALL 81 * - col0 FROM tab1 AS cor0
----
-243
-5184
-6480

query I rowsort
SELECT 1 * - cor0.col2 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL - col2 - col2 * 93 * col0 AS col1 FROM tab0 AS cor0
----
-3256
-678796
-73689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 * - col0 + - ( col1 ) col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT 93 * + col0 - + col2 FROM tab1
----
225
5895
7344

query I rowsort
SELECT 24 * + col2 + 15 + col0 FROM tab1 AS cor0
----
1314
1447
2399

onlyif mysql # use DIV operator for integer division
query I rowsort label-5856
SELECT + + col1 + + col1 + + 45 DIV 68 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-5856
SELECT + + col1 + + col1 + + 45 / 68 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - 22 * col0 AS col1 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT cor0.col0 * col0 - - col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - ( col1 ) * - col1 + + ( + col0 ) + 91 AS col2 FROM tab2 cor0
----
1059
3650
459

query I rowsort
SELECT - col1 + - ( - col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT 30 + 3 AS col2 FROM tab1
----
33
33
33

query I rowsort
SELECT 88 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-3560
-74
-7592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * - col1 col1 FROM tab1
----
-260
-338
-676

query I rowsort
SELECT + ( - col0 ) * col1 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT + 58 * - col1 + 14 DIV col0 AS col0 FROM tab0
----
-4988
-5278
-5626

skipif mysql # not compatible
query I rowsort label-5866
SELECT + 58 * - col1 + 14 / col0 AS col0 FROM tab0
----
-4988
-5278
-5626

query I rowsort
SELECT - col0 + - 13 FROM tab2
----
-20
-91
-92

query I rowsort
SELECT - cor0.col1 * - ( col2 ) * col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL 99 + col1 AS col2 FROM tab1
----
109
112
125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5871
SELECT ALL ( + tab1.col1 ) + col1 * + CAST( + 19 AS SIGNED ) + col0 FROM tab1
----
264
340
523

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL ( + tab1.col1 ) + col1 * + CAST ( + 19 AS INTEGER ) + col0 FROM tab1
----
264
340
523

query I rowsort
SELECT - 29 * tab2.col0 + col0 FROM tab2
----
-196
-2184
-2212

query I rowsort
SELECT - col1 + col0 + - col0 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT - col1 DIV + cor0.col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5874
SELECT - col1 / + cor0.col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 74 AS col2 FROM tab2 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col0 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL + + 69 + - col1 FROM tab2 AS cor0
----
10
38
52

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE ( NULL >= NULL ) AND col0 >= ( col0 )
----

query I rowsort
SELECT ALL + col1 * + ( + tab1.col1 * + col2 + tab1.col1 ) AS col2 FROM tab1
----
16393
37180
5800

query I rowsort
SELECT + col0 + - 98 * col0 FROM tab0
----
-2328
-3395
-8633

query I rowsort
SELECT DISTINCT tab1.col0 * col1 + - col0 AS col1 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab2
----
7

query I rowsort
SELECT DISTINCT - ( + 1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL + + col0 * - col0 + cor0.col2 * cor0.col0 FROM tab1 cor0
----
-448
1280
153

query I rowsort
SELECT DISTINCT - ( col2 ) - col1 * col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT - 55 + 66 * col2 FROM tab0 AS cor0
----
11
2123
5357

query I rowsort
SELECT DISTINCT - 95 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
-638
-7384
-7467

query I rowsort
SELECT ALL ( ( tab0.col0 ) ) AS col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) * col1 + - col1 col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - col0 + - col1 * col1 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT 39 * col0 AS col0 FROM tab1
----
117
2496
3120

query I rowsort
SELECT DISTINCT 30 + + col0 * - col0 + + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-3426
-5330
99

query I rowsort
SELECT + 26 + col0 FROM tab0 AS cor0
----
115
50
61

query I rowsort
SELECT + + col2 * + col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT - col2 * cor0.col0 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT + 2 * + col1 + + col2 AS col0 FROM tab0 AS cor0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-5897
SELECT - col0 * tab0.col0 DIV - col2 FROM tab0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-5897
SELECT - col0 * tab0.col0 / - col2 FROM tab0
----
1225
17
96

query I rowsort
SELECT ALL col1 + + col2 * + col2 + - col2 FROM tab1
----
2888
3202
9133

query I rowsort
SELECT ALL col1 + col2 * col0 - col2 * col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - tab1.col2 * + col0 * col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + col0 * col2 - col2 * col1 * - col1 AS col1 FROM tab1
----
23904
36666
9348

query I rowsort
SELECT DISTINCT - col1 * + col1 + tab0.col2 - - col2 AS col0 FROM tab0
----
-7330
-8117
-9407

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT col1 + col2 > NULL
----

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 + + col0 AS col1 FROM tab1
----
107
1133
714

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - col0 * - col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL - tab2.col1 + + col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 NOT IN ( tab1.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col1 * - tab0.col2 + - col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT + col1 > NULL
----

query I rowsort
SELECT + col0 - - col1 * + col2 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-5912
SELECT DISTINCT col0 DIV col1 + + col1 AS col0 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT col0 / col1 + + col1 AS col0 FROM tab2
----
21
31
60

query I rowsort
SELECT col0 * - col0 * + col0 + col1 FROM tab1
----
-1
-262134
-511987

query I rowsort
SELECT DISTINCT + col0 * - col2 + col2 * col2 AS col2 FROM tab0
----
-34
-574
297

query I rowsort
SELECT col0 * - col1 + + col1 AS col0 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT DISTINCT col1 + col0 DIV + col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT col1 + col0 / + col1 FROM tab2
----
21
31
60

query I rowsort
SELECT + col1 * col0 * - col0 + + col2 * - col2 FROM tab2
----
-107541
-2248
-359632

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - tab1.col2 ) IN ( + col1 + col0 * col0 - col1 * + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - - col1 * col2 - + cor0.col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - col0 + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - col1 + - tab2.col1 * col2 * col2 - col2 * col1 FROM tab2
----
-23467
-25211
-41477

query I rowsort
SELECT col2 + + col0 + tab0.col1 FROM tab0
----
133
143
262

query I rowsort
SELECT + tab2.col0 AS col1 FROM tab2 WHERE col1 * - col0 <= col0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT col1 DIV - 72 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5925
SELECT col1 / - 72 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT DISTINCT col1 DIV + 69 + ( + col1 ) * 16 AS col1 FROM tab1
----
160
208
416

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT col1 / + 69 + ( + col1 ) * 16 AS col1 FROM tab1
----
160
208
416

query I rowsort
SELECT + 23 * cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
652
657
891

query I rowsort
SELECT ALL - col2 + 26 FROM tab0 AS cor0
----
-56
-7
25

skipif mysql # not compatible
query I rowsort
SELECT ALL ( col2 ) + + col2 * - CAST ( - col1 * col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
36537
4266
99936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5930
SELECT ALL - CAST( NULL AS SIGNED ) * 37 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - CAST ( NULL AS INTEGER ) * 37 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5931
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 66 * + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6cf4adfb5543c925127ece34baf521bb

onlyif mysql # use DIV operator for integer division
query I rowsort label-5933
SELECT - col1 DIV 66 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5933
SELECT - col1 / 66 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 + col2 * - ( col1 ) AS col1 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT col2 + - ( col1 ) AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT - tab0.col2 + + col2 - + col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col0 * 35 * - tab1.col1 + - col0 AS col2 FROM tab1
----
-22464
-2733
-36480

query I rowsort
SELECT + 31 * col0 FROM tab2
----
217
2418
2449

query I rowsort
SELECT 6 AS col1 FROM tab0, tab2 cor0, tab1, tab2 AS cor1
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5940
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 90 * + col0 AS col1 FROM tab1
----
270
5760
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT DISTINCT ( 57 ) DIV col2 AS col1 FROM tab0
----
0
1
57

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT ( 57 ) / col2 AS col1 FROM tab0
----
0
1
57

query I rowsort
SELECT 10 + + col1 FROM tab1 AS cor0
----
20
23
36

query I rowsort
SELECT cor0.col1 * 37 AS col1 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT - col2 * 84 + col1 FROM tab2 AS cor0
----
-2125
-2237
-3175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5946
SELECT ALL - CAST( NULL AS SIGNED ) * col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT + + 60 DIV + 25 + col2 * - 83 AS col0 FROM tab1 AS cor0
----
-4480
-4729
-7966

skipif mysql # not compatible
query I rowsort label-5947
SELECT + + 60 / + 25 + col2 * - 83 AS col0 FROM tab1 AS cor0
----
-4480
-4729
-7966

query I rowsort
SELECT ALL - 21 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-147
-1638
-1659

query I rowsort
SELECT - - 63 * + col1 + col0 FROM tab1 AS cor0
----
1641
694
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT DISTINCT - col1 DIV 73 + + col1 AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - col1 / 73 + + col1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 * 24 + col0 FROM tab1 AS cor0
----
-1472
-1840
-69

query I rowsort
SELECT ALL col2 * 1 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5953
SELECT DISTINCT + CAST( + 48 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1248
480
624

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + CAST ( + 48 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT ALL 50 * cor0.col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
28500
62400
70200

query I rowsort
SELECT - col2 + ( col0 ) * col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

query I rowsort
SELECT DISTINCT col1 * - col2 - ( col2 + - col2 * - col0 ) FROM tab0 AS cor0
----
-133
-14842
-3663

query I rowsort
SELECT ALL + col2 * - col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT - col2 * cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - ( + cor0.col0 ) + + 63 FROM tab0 AS cor0
----
-26
28
39

query I rowsort
SELECT ALL col2 - - col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + 8 * col2 AS col1 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT ALL - cor0.col0 * + 41 + - 91 * col0 + 71 AS col1 FROM tab0 cor0
----
-11677
-3097
-4549

query I rowsort
SELECT + - col1 * + col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + cor0.col1 + - ( + col2 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - col2 + - 75 AS col1 FROM tab1 AS cor0
----
-129
-132
-171

query I rowsort
SELECT DISTINCT col0 * ( - col2 ) + + col1 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
176712
329280
729711

query I rowsort
SELECT ALL col0 * col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-5969
SELECT col1 DIV cor0.col1 - 68 AS col0 FROM tab0 cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-5969
SELECT col1 / cor0.col1 - 68 AS col0 FROM tab0 cor0
----
-67
-67
-67

query I rowsort
SELECT ALL - - col1 + + 87 * - ( col1 ) FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT DISTINCT 36 * 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col2 col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - + col1 + 34 - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1509
663
840

query I rowsort
SELECT cor0.col0 * col2 - - col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - col1 + + 68 AS col0 FROM tab2 AS cor0
----
37
51
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5976
SELECT DISTINCT - cor0.col2 + CAST( NULL AS SIGNED ) * - ( col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) * - ( col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - tab2.col2 + ( col1 + col0 ) FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT - + 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5979
SELECT col0 DIV - 51 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT col0 / - 51 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5980
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) * 5 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) * 5 * col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT DISTINCT col2 + + ( col2 ) DIV col1 AS col2 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT col2 + + ( col2 ) / col1 AS col2 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT DISTINCT + cor0.col0 * ( + col2 ) + col1 - + col2 AS col2 FROM tab2 AS cor0
----
193
2061
2981

query I rowsort
SELECT - col1 + ( cor0.col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - - ( + ( - col1 ) ) - col0 * - col2 * cor0.col0 FROM tab1 cor0
----
233462
460
614387

query I rowsort
SELECT col0 - + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - col1 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 77 * col2 AS col0 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT ( col0 ) * col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + + 25 FROM tab1 AS cor0
----
35
38
51

query I rowsort
SELECT - ( cor0.col1 ) * ( + col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 61 * - col2 AS col2 FROM tab2 cor0
----
1586
1647
2318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) + + col0 col2 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5994
SELECT - col2 DIV tab1.col0 + 21 FROM tab1
----
20
21
3

skipif mysql # not compatible
query I rowsort label-5994
SELECT - col2 / tab1.col0 + 21 FROM tab1
----
20
21
3

query I rowsort
SELECT DISTINCT + col0 * + tab2.col1 * tab2.col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT ALL 90 * col2 AS col2 FROM tab2
----
2340
2430
3420

query I rowsort
SELECT + tab2.col1 * col2 + + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL + 15 * + col0 AS col2 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT + 58 FROM tab2 cor0
----
58
58
58

query I rowsort
SELECT + 4 * + col0 * ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
2304
31684
4900

query I rowsort
SELECT ALL - 54 * tab1.col2 + col2 AS col2 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT ALL 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT 99 + + col0 DIV cor0.col2 + + 72 AS col0 FROM tab1 AS cor0
----
171
171
172

skipif mysql # not compatible
query I rowsort label-6003
SELECT 99 + + col0 / cor0.col2 + + 72 AS col0 FROM tab1 AS cor0
----
171
171
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 3 * col2 AS col0 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT - - 52 * col1 AS col2 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT ALL 28 - col1 AS col2 FROM tab0 cor0
----
-58
-63
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT ALL - + col2 DIV col0 + col2 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1135
114
697

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - + col2 / col0 + col2 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1135
114
697

query I rowsort
SELECT DISTINCT - - col1 - - col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT cor0.col2 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - + col0 + 54 FROM tab1 AS cor0
----
-10
-26
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6012
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 63 - - col0 AS col2 FROM tab0 AS cor0
----
152
87
98

query I rowsort
SELECT + + 49 * col2 - col1 FROM tab2 AS cor0
----
1215
1292
1845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT - CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT - CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * + cor0.col2 * - col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL 13 * 77 AS col2 FROM tab0
----
1001
1001
1001

query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6019
SELECT DISTINCT - col2 * - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT - col2 * - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT - 72 DIV + 81 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT - 72 / + 81 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT + col1 * col2 * tab0.col1 + + col0 * col2 - col1 DIV ( - 69 ) FROM tab0
----
244861
686341
9445

skipif mysql # not compatible
query I rowsort label-6022
SELECT + col1 * col2 * tab0.col1 + + col0 * col2 - col1 / ( - 69 ) FROM tab0
----
244861
686341
9445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col1 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to e587c122dea39a2488ff88b884cea462

query I rowsort
SELECT ALL + 50 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT ( - 75 ) * col0 AS col1 FROM tab0
----
-1800
-2625
-6675

query I rowsort
SELECT DISTINCT + 21 FROM tab2, tab1 cor0
----
21

query I rowsort
SELECT - - col1 * - col2 - col0 * col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 + col1 * cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
12325
26164
95108

query I rowsort
SELECT ALL 79 * col1 AS col1 FROM tab1
----
1027
2054
790

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 - + col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - tab0.col0 + - col1 + - ( - col2 + col1 ) * col1 FROM tab0
----
-4668
-9444
-999

query I rowsort
SELECT col1 + tab0.col0 + - col2 AS col0 FROM tab0
----
131
77
98

query I rowsort
SELECT + col2 + cor0.col1 + 87 * col2 AS col0 FROM tab2 AS cor0
----
2347
2407
3361

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
30

query I rowsort
SELECT cor0.col0 * + 87 FROM tab1, tab0 AS cor0
----
9 values hashing to 43e812f295563e16ec5f372043a8e684

query I rowsort
SELECT DISTINCT col0 * - col2 + + 60 * col1 AS col1 FROM tab0 AS cor0
----
-1838
4368
5785

query I rowsort
SELECT + - cor0.col0 * - col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL + + col2 * - 0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6039
SELECT ALL + CAST( 59 AS SIGNED ) * col1 + 72 FROM tab0 AS cor0
----
5146
5441
5795

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + CAST ( 59 AS INTEGER ) * col1 + 72 FROM tab0 AS cor0
----
5146
5441
5795

query I rowsort
SELECT 47 * col2 AS col1 FROM tab2 AS cor0
----
1222
1269
1786

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 90 * - cor0.col2 FROM tab2 AS cor0
----
2340
2430
3420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT ALL + ( col1 ) DIV col0 + col1 FROM tab0 cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL + ( col1 ) / col0 + col1 FROM tab0 cor0
----
89
92
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT + + 93 DIV + col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-6045
SELECT + + 93 / + col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT ALL - 43 + col1 * col2 * - col0 FROM tab0 AS cor0
----
-3438
-664161
-68155

query I rowsort
SELECT DISTINCT 71 * - cor0.col2 * col2 FROM tab2 AS cor0
----
-102524
-47996
-51759

query I rowsort
SELECT DISTINCT col0 + - 22 FROM tab1 AS cor0
----
-19
42
58

query I rowsort
SELECT ALL + + ( col0 ) * col0 * 68 + col1 AS col0 FROM tab0 AS cor0
----
39254
538719
83397

query I rowsort
SELECT ALL + - 65 - + cor0.col0 FROM tab2 cor0
----
-143
-144
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6051
SELECT ALL - - CAST( NULL AS DECIMAL ) * col2 + - col0 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - - CAST ( NULL AS REAL ) * col2 + - col0 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 9 * col0 - cor0.col2 FROM tab2 cor0
----
36
673
676

query I rowsort
SELECT DISTINCT col1 + + 26 * 75 FROM tab0 AS cor0
----
2036
2041
2047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT DISTINCT - col1 * + 17 FROM tab1 AS cor0
----
-170
-221
-442

onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT - + cor0.col2 + - 10 * col0 DIV - col1 FROM tab0 AS cor0
----
-31
-73
2

skipif mysql # not compatible
query I rowsort label-6056
SELECT - + cor0.col2 + - 10 * col0 / - col1 FROM tab0 AS cor0
----
-31
-73
2

query I rowsort
SELECT + col1 * col2 - ( col0 ) * + ( 96 * cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-195306
-325823
-770042

query I rowsort
SELECT + + cor0.col2 * - ( - col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT + + col1 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col1 * 23 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT + col1 * 70 * - col1 FROM tab0 AS cor0
----
-517720
-579670
-658630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6063
SELECT DISTINCT tab2.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT tab2.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 3 + - col2 FROM tab2 AS cor0
----
-23
-24
-35

query I rowsort
SELECT + col0 * + col0 + - col0 * - tab1.col0 + + ( - tab1.col2 ) AS col2 FROM tab1
----
-36
12704
8135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6066
SELECT + tab0.col0 + CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT + tab0.col0 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( ( - cor0.col0 ) ) * cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT 21 + col2 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT + 94 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT + col1 * - 24 * 30 + + col2 AS col0 FROM tab2
----
-12202
-22293
-42454

query I rowsort
SELECT + col0 + col2 + col1 FROM tab1
----
131
189
83

query I rowsort
SELECT DISTINCT col2 + - 47 AS col1 FROM tab2
----
-20
-21
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6074
SELECT DISTINCT - col1 + + CAST( col2 + - col2 AS SIGNED ) * + col1 col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT - col1 + + CAST ( col2 + - col2 AS INTEGER ) * + col1 col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - col2 * ( - 0 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 + 76 + - col0 AS col2 FROM tab0
----
-102
28
6

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * 81 FROM tab2 AS cor0
----
-2047
-2156
-3061

query I rowsort
SELECT DISTINCT + 8 * col0 * - col0 FROM tab2 AS cor0
----
-392
-48672
-49928

query I rowsort
SELECT ALL - + 97 AS col0 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - - 38 * + col2 FROM tab0 AS cor0
----
1254
3116
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT DISTINCT - 91 + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-90
-91

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT - 91 + col2 / col0 AS col2 FROM tab0 AS cor0
----
-90
-91

query I rowsort
SELECT ALL + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT + ( col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT + ( col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * + col1 - col1 col0 FROM tab0
----
516
546
582

query I rowsort
SELECT ALL ( + col2 * col1 ) FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT - tab0.col0 - + col0 DIV + col0 AS col0 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6086
SELECT - tab0.col0 - + col0 / + col0 AS col0 FROM tab0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT - 12 DIV + 74 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6087
SELECT - 12 / + 74 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 32 * col1 + + col2 col0 FROM tab0 AS cor0
----
-2719
-2830
-3103

query I rowsort
SELECT DISTINCT cor0.col1 * col0 * col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - cor0.col0 + - col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + col1 + + col0 * 44 AS col0 FROM tab0 AS cor0
----
1142
1637
4007

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - + col2 * ( + 22 ) AS col1 FROM tab2 AS cor0
----
-572
-594
-836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
10
13
26

query I rowsort
SELECT ALL col0 * - ( 40 ) + - col2 AS col1 FROM tab2 AS cor0
----
-307
-3146
-3198

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + col0 * col2 * 89 FROM tab1 AS cor0
----
-14418
-324672
-683520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6098
SELECT + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 9 AS col0 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT ALL + cor1.col1 * + 66 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6efa615455e6f9a8401d9aca573746e9

query I rowsort
SELECT - col1 * - col0 + col0 + - 47 * + col2 FROM tab2 AS cor0
----
-1045
-364
3458

query I rowsort
SELECT ALL ( + cor0.col0 ) + - col1 * + 61 FROM tab1 AS cor0
----
-1583
-546
-713

query I rowsort
SELECT - - col2 * col1 + col2 * - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + col0 + cor0.col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL + - col1 * + 73 AS col2 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + + 21 + + ( col1 ) AS col2 FROM tab0 cor0
----
-685
-7186
83

query I rowsort
SELECT - 78 + + col2 FROM tab2 AS cor0
----
-40
-51
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT DISTINCT + col1 * col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + col1 * col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 80 AS col0 FROM tab1 cor0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 43 col2 FROM tab1
----
-129
-2752
-3440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 * - ( - col0 ) - cor0.col2 col2 FROM tab0 AS cor0
----
-1226
-19041
-649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT + cor0.col0 + col1 DIV + col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6113
SELECT + cor0.col0 + col1 / + col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL col1 * col1 * 15 - + col0 FROM tab2
----
14408
4256
52137

query I rowsort
SELECT cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6116
SELECT + col2 DIV 6 + + col1 DIV - cor0.col1 col0 FROM tab0 AS cor0
----
-1
12
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6116
SELECT + col2 / 6 + + col1 / - cor0.col1 col0 FROM tab0 AS cor0
----
-1
12
4

query I rowsort
SELECT + - ( 97 ) FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + col1 + col1 * + tab0.col0 AS col2 FROM tab0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT CAST( NULL AS SIGNED ) + - col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT CAST ( NULL AS INTEGER ) + - col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( + col1 ) - - cor0.col0 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL + + col2 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + - cor0.col2 * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6124
SELECT + cor0.col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6124
SELECT + cor0.col1 / + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1, tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6126
SELECT - ( cor0.col1 ) + - col0 DIV - col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-6126
SELECT - ( cor0.col1 ) + - col0 / - col2 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT DISTINCT + - col0 * 76 FROM tab0 AS cor0
----
-1824
-2660
-6764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col0 col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col2 AS col0 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT ( + col0 ) + 74 FROM tab0
----
109
163
98

query I rowsort
SELECT DISTINCT - tab1.col1 * col0 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 44 AS col0 FROM tab2
----
44
44
44

query I rowsort
SELECT + + cor0.col2 * - col1 + col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT + cor0.col1 * 92 FROM tab2 cor0
----
1564
2852
5428

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL 99 * col2 AS col2 FROM tab2
----
2574
2673
3762

query I rowsort
SELECT ALL col2 + 90 * - col2 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT DISTINCT - col0 * + 11 AS col1 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT DISTINCT - ( + 20 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

query I rowsort
SELECT DISTINCT - + col2 + - cor0.col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
40

query I rowsort
SELECT ALL - col0 * ( + tab2.col0 ) - col0 * - tab2.col1 AS col1 FROM tab2
----
-1482
-4898
168

query I rowsort
SELECT + - cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL 78 + - col2 AS col2 FROM tab2 AS cor0
----
40
51
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT DISTINCT - col1 + ( col0 ) DIV - ( - 61 ) col0 FROM tab1 AS cor0
----
-12
-26
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT - col1 + ( col0 ) / - ( - 61 ) col0 FROM tab1 AS cor0
----
-12
-26
-9

query I rowsort
SELECT ALL + ( + col0 ) * 60 FROM tab1 AS cor0
----
180
3840
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col1 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - 82 + col1 FROM tab1 cor0
----
-56
-69
-72

query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 AS col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col2 - 72 AS col0 FROM tab2
----
-34
-45
-46

query I rowsort
SELECT + ( col1 ) + col1 * - col1 AS col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT 1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT + 98 - - col0 * + 92 * + 18 FROM tab2
----
11690
129266
130922

query I rowsort
SELECT + 38 + - cor0.col2 FROM tab1 AS cor0
----
-16
-19
-58

query I rowsort
SELECT col1 + col0 * + col1 * - 10 AS col1 FROM tab2 AS cor0
----
-13413
-2139
-45961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6156
SELECT + CAST( col0 * + col0 AS SIGNED ) FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-6156
SELECT + CAST ( col0 * + col0 AS INTEGER ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL col0 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + col2 * + 47 + - col1 FROM tab0 AS cor0
----
-50
1465
3763

query I rowsort
SELECT DISTINCT + col2 * col0 + col1 * 38 AS col2 FROM tab2 AS cor0
----
1367
3648
4270

query I rowsort
SELECT - - cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - ( col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT DISTINCT col0 + + col1 DIV cor0.col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT col0 + + col1 / cor0.col1 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 * + col2 col1 FROM tab0 AS cor0
----
-165
-410
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6164
SELECT + CAST( + 1 * + cor0.col0 AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

skipif mysql # not compatible
query I rowsort label-6164
SELECT + CAST ( + 1 * + cor0.col0 AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - - col1 * col2 * cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT 51 + col0 FROM tab2 AS cor0
----
129
130
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + - col0 col1 FROM tab1 AS cor0
----
-22
-6
55

query I rowsort
SELECT ALL cor0.col0 * - col1 + + 44 FROM tab1 AS cor0
----
-34
-596
-996

query I rowsort
SELECT col2 + col0 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + ( - col0 ) + + ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col1 + + col0 + 60 FROM tab0 AS cor0
----
170
192
240

query I rowsort
SELECT ALL + col2 + - col0 + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col2 * col2 + - col2 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
129024
35739
78732

query I rowsort
SELECT + + 4 + + cor0.col1 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT ALL + 56 * + col0 * ( + 98 ) + + col1 * + col1 FROM tab0 AS cor0
----
139108
201489
496713

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab0 cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col2 FROM tab1
----
28
28
28

query I rowsort
SELECT + - col2 + + col1 * - 47 AS col2 FROM tab1 AS cor0
----
-1276
-527
-707

query I rowsort
SELECT - + col0 * col0 + + cor0.col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-3968
-6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6181
SELECT DISTINCT cor0.col2 * CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT cor0.col2 * CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col2 + 37 * cor0.col0 + col0 * - col1 FROM tab2 cor0
----
-1742
15
1542

query I rowsort
SELECT DISTINCT - col0 * 36 + col2 FROM tab2 AS cor0
----
-225
-2782
-2806

query I rowsort
SELECT + + col0 + + col0 * + ( col2 + ( + col2 ) ) FROM tab2 AS cor0
----
385
4134
6083

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + col0 * + 32 * col1 AS col1 FROM tab1 AS cor0
----
20480
2496
33280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6187
SELECT DISTINCT + col2 DIV - 64 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT + col2 / - 64 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col1 + 11 FROM tab1 cor0
----
21
24
37

query I rowsort
SELECT col2 + col2 * 88 AS col0 FROM tab0
----
2937
7298
89

query I rowsort
SELECT ALL + col1 + - 30 * + 55 FROM tab0 AS cor0
----
-1553
-1559
-1564

query I rowsort
SELECT - - col0 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - cor0.col1 * 59 * 39 AS col2 FROM tab2 AS cor0
----
-135759
-39117
-71331

query I rowsort
SELECT cor0.col1 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col1 + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6195
SELECT ALL + CAST( NULL AS SIGNED ) - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6196
SELECT DISTINCT col1 DIV + ( - 58 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT col1 / + ( - 58 ) FROM tab1
----
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to 19a23ac6b759f8988954bf75ba7c431a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT + + 6 DIV + col0 + + cor0.col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6198
SELECT + + 6 / + col0 + + cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + 32 + col0 AS col1 FROM tab0 AS cor0
----
121
56
67

query I rowsort
SELECT + col0 + 27 AS col2 FROM tab1 AS cor0
----
107
30
91

query I rowsort
SELECT col0 * col1 * cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + + 48 + col0 * col0 FROM tab2 AS cor0
----
6132
6289
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6203
SELECT + ( + col0 ) + + col1 DIV col1 AS col1 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-6203
SELECT + ( + col0 ) + + col1 / col1 AS col1 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT ALL 83 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT + 80 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 40 ) * + col0 col2 FROM tab2
----
-280
-3120
-3160

query I rowsort
SELECT 50 AS col1 FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT 78 * - 32 AS col2 FROM tab1
----
-2496

query I rowsort
SELECT ALL ( + 50 ) FROM tab2 AS cor0
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6210
SELECT ALL CAST( 58 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-28
-33
-39

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL CAST ( 58 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-28
-33
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col1 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT + - ( col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ( - 61 ) FROM tab1
----
-61
-61
-61

query I rowsort
SELECT + tab0.col1 * col2 * col0 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
86
91
97

query I rowsort
SELECT - 69 * col0 + + 23 * col2 FROM tab1 AS cor0
----
-3105
-3312
1035

query I rowsort
SELECT DISTINCT + - col0 * - col0 + 82 AS col0 FROM tab1 AS cor0
----
4178
6482
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6218
SELECT cor0.col2 DIV col1 + 44 FROM tab0 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-6218
SELECT cor0.col2 / col1 + 44 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6219
SELECT + 35 * col2 - + ( + col0 * col0 + CAST( + col1 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
-1287
-5142
493

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6219
SELECT + 35 * col2 - + ( + col0 * col0 + CAST ( + col1 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
-1287
-5142
493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT col1 * CAST( NULL AS SIGNED ) + - col1 * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT col1 * CAST ( NULL AS INTEGER ) + - col1 * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + 13 col2 FROM tab1 AS cor0
----
-51
-67
10

query I rowsort
SELECT + col0 * + 89 - cor0.col1 * - cor0.col2 AS col1 FROM tab1 cor0
----
1671
6266
8368

query I rowsort
SELECT - col0 * ( ( - col1 ) ) AS col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT ALL - tab1.col1 DIV col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL - tab1.col1 / col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 * ( + col1 * - col0 ) + - 89 FROM tab1 AS cor0
----
145
40871
83111

query I rowsort
SELECT ALL - + col0 * + 52 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT ALL + - 20 + col1 FROM tab0 cor0
----
66
71
77

query I rowsort
SELECT DISTINCT 15 * col0 AS col0 FROM tab1
----
1200
45
960

query I rowsort
SELECT ALL - + 49 * + col0 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT DISTINCT + 74 * + col2 AS col0 FROM tab2 AS cor0
----
1924
1998
2812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 23 * + col0 col2 FROM tab0 AS cor0
----
-2047
-552
-805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col0 ) ) * + col2 + col0 * + col1 col0 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT + col2 + - 68 AS col2 FROM tab0
----
-35
-67
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col2 col1 FROM tab2
----
0

query I rowsort
SELECT - 62 * - tab1.col0 FROM tab1
----
186
3968
4960

query I rowsort
SELECT + 35 - col2 FROM tab2 AS cor0
----
-3
8
9

query I rowsort
SELECT col2 * 86 + - col2 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1, tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 81 FROM tab1, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT ( col1 ) + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * + 65 * col1 FROM tab1
----
41600
5070
67600

query I rowsort
SELECT ALL + 54 * + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
1465
1482
2131

query I rowsort
SELECT - + 21 + col2 AS col2 FROM tab1 AS cor0
----
33
36
75

query I rowsort
SELECT col1 + + col2 * col2 * tab1.col2 AS col0 FROM tab1
----
157490
185203
884749

query I rowsort
SELECT - col0 * col2 - col1 AS col0 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL cor0.col0 * - col2 * cor0.col2 AS col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col2 + + cor0.col1 + col0 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT + col1 * + col1 + + cor0.col0 + + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1185
1711
8161

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL - col2 * col0 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + col1 * + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
157
265
730

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + cor0.col1 * - col0 + col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col1 / col0 IN ( col2 )
----

query I rowsort
SELECT + col2 * - col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( cor0.col2 )
----

query I rowsort
SELECT DISTINCT + col0 - - col1 * + col1 * col1 FROM tab2 cor0
----
205457
29798
4992

query I rowsort
SELECT + col2 + + tab2.col1 + col1 AS col0 FROM tab2
----
144
72
89

query I rowsort
SELECT col2 + col2 * col1 AS col2 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT col2 * - cor0.col0 DIV col0 + - col0 FROM tab1 cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-6261
SELECT col2 * - cor0.col0 / col0 + - col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + + cor0.col2 * cor0.col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col0 - col1 * col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT col1 * + col0 + + col1 * + col0 - + col0 FROM tab1
----
1216
153
2000

query I rowsort
SELECT DISTINCT - - col1 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col0 * col1 * - col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT ALL col2 * - col0 - col0 AS col2 FROM tab2 cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * - tab1.col2 col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * col0 - - col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT tab0.col0 + - tab0.col0 + tab0.col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + tab2.col2 * tab2.col0 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col2 + tab0.col1 * col2 + + col0 AS col2 FROM tab0
----
133
2895
7633

query I rowsort
SELECT + col0 + col1 * col0 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT tab2.col0 + + tab2.col0 * - col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col0 + + col0 + + col2 AS col1 FROM tab0
----
260
71
81

query I rowsort
SELECT ALL + col1 + col1 + ( col2 * - tab2.col0 ) AS col1 FROM tab2
----
-127
-1910
-2968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6278
SELECT DISTINCT 43 DIV - col0 FROM tab1
----
-14
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT 43 / - col0 FROM tab1
----
-14
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT DISTINCT col1 DIV 40 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT col1 / 40 AS col0 FROM tab2
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT + col1 DIV 2 AS col1 FROM tab0 AS cor0
----
43
45
48

skipif mysql # not compatible
query I rowsort label-6280
SELECT + col1 / 2 AS col1 FROM tab0 AS cor0
----
43
45
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + col2 col0 FROM tab2
----
1950
2025
2850

query I rowsort
SELECT ALL 36 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL + tab1.col1 * + col1 + - col1 FROM tab1
----
156
650
90

query I rowsort
SELECT 41 * 8 + - col0 + tab2.col0 FROM tab2
----
328
328
328

query I rowsort
SELECT - 75 + col2 AS col0 FROM tab2
----
-37
-48
-49

query I rowsort
SELECT 85 * + 57 AS col2 FROM tab0
----
4845
4845
4845

query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 * 77 AS col2 FROM tab0
----
-13577
-2696
-2937

query I rowsort
SELECT DISTINCT col2 + 82 FROM tab2
----
108
109
120

query I rowsort
SELECT - col0 * + ( cor0.col1 ) * cor0.col2 + col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT 6 + col0 * col1 FROM tab2 AS cor0
----
1349
223
4608

query I rowsort
SELECT ALL + + ( + col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - col1 * + 51 AS col2 FROM tab0 AS cor0
----
4386
4641
4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 * col2 col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab2, tab1 AS cor0
----
30

query I rowsort
SELECT ALL 57 + - 61 * col1 FROM tab2
----
-1834
-3542
-980

query I rowsort
SELECT col1 * - 87 + - col1 * 16 FROM tab0 AS cor0
----
-8858
-9373
-9991

query I rowsort
SELECT - 90 FROM tab0, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL 19 AS col1 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT ALL - - 50 + cor0.col2 FROM tab1 AS cor0
----
104
107
146

onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT DISTINCT + - cor0.col1 DIV col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + - cor0.col1 / col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - - 16 * col1 FROM tab0 AS cor0
----
1376
1456
1552

onlyif mysql # use DIV operator for integer division
query I rowsort label-6302
SELECT ALL col2 DIV + col2 + col0 * + 17 AS col0 FROM tab1 AS cor0
----
1089
1361
52

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL col2 / + col2 + col0 * + 17 AS col0 FROM tab1 AS cor0
----
1089
1361
52

query I rowsort
SELECT - 14 * col0 FROM tab1
----
-1120
-42
-896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * cor0.col0 + + 95 col1 FROM tab1 AS cor0
----
335
5215
6495

query I rowsort
SELECT - 28 - + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1472
-704
-757

skipif mysql # not compatible
query I rowsort
SELECT - - col2 * - CAST ( + col1 AS REAL ) + col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT - col2 + - 9 AS col0 FROM tab2 AS cor0
----
-35
-36
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + - col2 + - col1 * col0 + col0 AS col2 FROM tab1 AS cor0
----
-1056
-129
-633

query I rowsort
SELECT ( - 97 ) + + cor0.col0 * + col0 FROM tab0 cor0
----
1128
479
7824

query I rowsort
SELECT DISTINCT ( col1 ) * col2 - - 36 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
23610
38688
4212

query I rowsort
SELECT DISTINCT + col1 * - 35 * tab1.col0 AS col1 FROM tab1
----
-22400
-2730
-36400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6313
SELECT col0 + - CAST( col0 * + col2 AS SIGNED ) AS col0 FROM tab2
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-6313
SELECT col0 + - CAST ( col0 * + col2 AS INTEGER ) AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT - - 53 * + 19 AS col1 FROM tab0 AS cor0
----
1007
1007
1007

query I rowsort
SELECT - - 52 * - col2 AS col2 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT 30 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6318
SELECT ALL CAST( NULL AS SIGNED ) + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 42 + col0 FROM tab1
----
106
122
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT ALL - col2 DIV - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL - col2 / - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6321
SELECT - CAST( - col1 AS SIGNED ) * col1 * 7 AS col1 FROM tab2 AS cor0
----
2023
24367
6727

skipif mysql # not compatible
query I rowsort label-6321
SELECT - CAST ( - col1 AS INTEGER ) * col1 * 7 AS col1 FROM tab2 AS cor0
----
2023
24367
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - - col1 * col2 col0 FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 85 col1 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT - + 50 + + 2 FROM tab1 cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( tab2.col0 * tab2.col0 ) col2 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - + 40 FROM tab0 AS cor0
----
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6327
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 10 + ( + cor0.col2 ) FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT 44 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL ( + 65 ) AS col2 FROM tab0
----
65
65
65

query I rowsort
SELECT + 98 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL + col0 * + col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - - 84 + 75 * col2 FROM tab0 AS cor0
----
159
2559
6234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 - col2 col0 FROM tab1
----
-102
-105
-144

query I rowsort
SELECT - cor0.col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT DISTINCT col1 DIV 34 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT col1 / 34 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 61 + + 92 col0 FROM tab2
----
48
62
90

query I rowsort
SELECT 89 + + 61 FROM tab1, tab0, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to dfee05b15a69291b4e9bddbfa8562c25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col1 FROM tab2, tab1 cor0
----
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6341
SELECT - - col2 + - col0 DIV cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
54
57
84

skipif mysql # not compatible
query I rowsort label-6341
SELECT - - col2 + - col0 / cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
54
57
84

query I rowsort
SELECT ALL + + 79 * + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
22831
274999
75919

query I rowsort
SELECT 51 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + col0 col1 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT - col2 DIV ( col1 ) + col0 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-6345
SELECT - col2 / ( col1 ) + col0 FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT DISTINCT ( col0 ) * col0 + - col2 * 61 FROM tab1 AS cor0
----
-3285
544
619

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 * + col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - ( - col2 ) + cor0.col0 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL - 50 * col2 * - col0 AS col1 FROM tab0
----
1750
364900
39600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6350
SELECT DISTINCT + CAST( - 41 AS SIGNED ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT + CAST ( - 41 AS INTEGER ) FROM tab2 AS cor0
----
-41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6351
SELECT + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6351
SELECT + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - ( col1 ) + - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + + 85 * - col1 * + col2 FROM tab1 AS cor0
----
-106080
-119340
-48450

query I rowsort
SELECT col0 + col1 * 87 AS col2 FROM tab1
----
1211
2265
934

query I rowsort
SELECT 28 + col0 AS col1 FROM tab0
----
117
52
63

query I rowsort
SELECT ALL + tab1.col0 * col2 - - ( + 10 * col0 ) FROM tab1
----
192
4288
8480

query I rowsort
SELECT ALL + col0 - + col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col2 * + ( - col0 ) col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT + 51 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT DISTINCT + - col2 - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - - col1 * - col0 + - col2 * 38 AS col0 FROM tab0 cor0
----
-11215
-3318
-3433

query I rowsort
SELECT DISTINCT - col1 * - col2 + + 42 AS col1 FROM tab1 AS cor0
----
1290
1446
612

onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT DISTINCT col1 + cor0.col0 * col0 DIV - col0 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT col1 + cor0.col0 * col0 / - col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col0 + + 97 FROM tab1 AS cor0
----
17
33
94

query I rowsort
SELECT - col1 - - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + + col2 * col1 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT col0 - + ( col2 ) AS col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6368
SELECT - cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + 33 AS col2 FROM tab1 AS cor0
----
129
87
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6370
SELECT ALL - col1 * - cor0.col2 * col1 + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - col1 * - cor0.col2 * col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col2 * col0 + col0 * + col0 FROM tab1 AS cor0
----
-32384
-4203
-93440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - ( 22 ) * + col2 col1 FROM tab1 AS cor0
----
-1185
-1190
-2032

query I rowsort
SELECT ALL 13 - - tab1.col0 FROM tab1
----
16
77
93

query I rowsort
SELECT + - col0 - 40 AS col1 FROM tab1 AS cor0
----
-104
-120
-43

query I rowsort
SELECT DISTINCT col1 * ( - 17 ) + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-1684
-2254
-8845

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT DISTINCT col0 DIV - col1 + col2 AS col0 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT col0 / - col1 + col2 AS col0 FROM tab1 AS cor0
----
51
54
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT ALL cor0.col0 + col2 DIV 21 FROM tab1 AS cor0
----
5
66
84

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL cor0.col0 + col2 / 21 FROM tab1 AS cor0
----
5
66
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + + col1 + cor0.col2 * + col0 + - 33 FROM tab1 AS cor0
----
155
3625
7660

onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT DISTINCT + - ( col1 ) DIV + col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT + - ( col1 ) / + col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6382
SELECT col1 + col2 DIV tab2.col1 - - col2 * col2 AS col2 FROM tab2
----
1463
735
760

skipif mysql # not compatible
query I rowsort label-6382
SELECT col1 + col2 / tab2.col1 - - col2 * col2 AS col2 FROM tab2
----
1463
735
760

query I rowsort
SELECT ALL - col1 * - tab1.col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab2 WHERE NOT col1 + - col1 NOT IN ( tab2.col2 * - col1 )
----

query I rowsort
SELECT - col1 * - col2 * - col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 + - col1 col0 FROM tab1
----
-131
-189
-83

query I rowsort
SELECT ALL + col0 * tab0.col0 AS col1 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col0 * col1 )
----

query I rowsort
SELECT DISTINCT col2 * col1 * + col1 AS col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - col0 + col1 - col0 * col1 FROM tab1
----
-1107
-55
-694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col2 col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + 86 + + col0 FROM tab1
----
150
166
89

query I rowsort
SELECT - cor0.col0 FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + 62 + - col2 + - col0 AS col2 FROM tab0 cor0
----
-109
26
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6395
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN - col0 AND col1 - + col2
----
24
86
33
35
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 col1 FROM tab2 WHERE NOT + col1 NOT IN ( + col1 * col2 * + col2 + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 <= + col2
----

query I rowsort
SELECT DISTINCT tab1.col2 + - tab1.col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL col2 * col1 + tab0.col2 * - col0 AS col2 FROM tab0
----
164
2046
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col2 * col0 + col2 col0 FROM tab0
----
-1223
-18942
-649358

onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT DISTINCT + tab1.col0 DIV - col0 - - col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + tab1.col0 / - col0 - - col1 FROM tab1
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT - col0 + + col1 DIV + col1 AS col2 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-6403
SELECT - col0 + + col1 / + col1 AS col2 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT col1 + - col2 * col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col0 + + col0 * col2 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL - tab2.col0 + tab2.col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT col1 * - col1 + - col0 * col0 * - col2 FROM tab1 WHERE NOT ( col0 + col2 * col0 + - col0 ) >= ( col2 + - col1 )
----

query I rowsort
SELECT ALL tab0.col0 + - col0 * + col1 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + tab0.col2 * col2 + - tab0.col2 AS col0 FROM tab0
----
0
1056
6642

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( col0 ) AND + col2 * col0
----

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 DISTINCT col1 * - col0 * tab2.col0 FROM tab2
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL col0 + - tab0.col1 AS col1 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + tab1.col0 col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL - col1 + col0 * col1 * col1 FROM tab1
----
13507
2002
6390

onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT col1 DIV col2 + + col0 DIV - col2 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT col1 / col2 + + col0 / - col2 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT - ( - cor0.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + tab0.col0 + - 48 * col0 * + col1 FROM tab0
----
-162925
-388663
-99048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT ALL + 19 * ( + col1 ) DIV col1 AS col2 FROM tab1 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL + 19 * ( + col1 ) / col1 AS col2 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT + + col1 * col0 - cor0.col0 DIV cor0.col2 FROM tab0 AS cor0
----
2064
3360
8098

skipif mysql # not compatible
query I rowsort label-6423
SELECT + + col1 * col0 - cor0.col0 / cor0.col2 FROM tab0 AS cor0
----
2064
3360
8098

query I rowsort
SELECT 16 + col0 AS col2 FROM tab2 AS cor0
----
23
94
95

query I rowsort
SELECT 34 * col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT 80 + + col1 AS col1 FROM tab2
----
111
139
97

query I rowsort
SELECT col1 * col0 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + cor0.col1 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - + col2 * - ( 58 ) FROM tab1 cor0
----
3132
3306
5568

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6431
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + 25 + col1 AS col1 FROM tab2 AS cor0
----
143
59
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6433
SELECT col2 DIV - 16 FROM tab1 AS cor0
----
-3
-3
-6

skipif mysql # not compatible
query I rowsort label-6433
SELECT col2 / - 16 FROM tab1 AS cor0
----
-3
-3
-6

query I rowsort
SELECT - col1 * - ( - col2 + col1 ) AS col2 FROM tab0 AS cor0
----
4558
819
9312

query I rowsort
SELECT DISTINCT + 27 FROM tab0, tab2 cor0
----
27

query I rowsort
SELECT DISTINCT 20 * col2 + + ( col2 ) * tab1.col0 FROM tab1
----
1242
4788
9600

query I rowsort
SELECT - 38 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6438
SELECT col2 + + col0 * col0 + 11 * col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT col2 + + col0 * col0 + 11 * col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 + + 89 * 78 FROM tab1, tab0 AS cor0
----
9 values hashing to ffb67ba5edeedc9b0e0c54cc3da754d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + tab2.col0 col1 FROM tab2
----
168
169
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - col2 + + col2 col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + 38 * col0 + col2 FROM tab0 AS cor0
----
1331
3464
945

onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT DISTINCT col1 * - col0 + - ( - ( tab2.col2 ) ) DIV + 43 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT col1 * - col0 + - ( - ( tab2.col2 ) ) / + 43 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 4 * + cor0.col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
131
147
314

query I rowsort
SELECT + col0 * - ( + ( + col1 ) ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col0 * + ( col0 ) * cor0.col2 + ( + ( + col2 ) ) * - col1 FROM tab0 AS cor0
----
1128
16170
642060

query I rowsort
SELECT ALL col1 + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + ( - 67 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab1, tab0 AS cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT col2 + + 3 * col2 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT - + cor0.col1 * col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - col1 * col1 + - ( - col2 ) AS col1 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT - col1 * - cor0.col2 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT DISTINCT + col0 + - col1 * 40 DIV col1 FROM tab0 cor0
----
-16
-5
49

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT + col0 + - col1 * 40 / col1 FROM tab0 cor0
----
-16
-5
49

query I rowsort
SELECT + 56 * ( - col1 ) FROM tab0 AS cor0
----
-4816
-5096
-5432

query I rowsort
SELECT + ( 8 ) - col2 * + ( col0 + col1 ) FROM tab2 AS cor0
----
-1018
-3554
-3640

query I rowsort
SELECT + + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6458
SELECT - ( + col1 ) + - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT - ( + col1 ) + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 23 * col0 + - col0 FROM tab1 cor0
----
-1536
-1920
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT - ( - col0 ) DIV + col0 + + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6460
SELECT - ( - col0 ) / + col0 + + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL + 11 * - cor0.col2 FROM tab1 cor0
----
-1056
-594
-627

query I rowsort
SELECT ALL + 14 * + col2 AS col1 FROM tab2 AS cor0
----
364
378
532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - col0 * - col0 * col0 col0 FROM tab1 AS cor0
----
-27
262087
511904

query I rowsort
SELECT - col2 * - col2 - cor0.col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT + col2 + - 64 FROM tab2 AS cor0
----
-26
-37
-38

query I rowsort
SELECT - - 60 AS col1 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT ALL - 8 + + 93 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT ALL - - col2 * - col1 - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT ALL 32 * col1 AS col0 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT - 9 + - 31 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT 13 + tab2.col2 * - col1 - 86 FROM tab2
----
-1607
-719
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col2 FROM tab0
----
81

query I rowsort
SELECT col1 * 65 FROM tab2
----
1105
2015
3835

query I rowsort
SELECT - col2 * - col0 * 82 FROM tab1 AS cor0
----
13284
299136
629760

query I rowsort
SELECT ALL + 82 * - col1 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * col0 * 95 FROM tab1 AS cor0
----
60800
7410
98800

query I rowsort
SELECT - 35 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT - col1 * col1 + col0 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
-3748
-7849
-838

onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT ALL col1 DIV cor0.col1 + + col2 * - col2 * - col0 FROM tab1 AS cor0
----
207937
737281
8749

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL col1 / cor0.col1 + + col2 * - col2 * - col0 FROM tab1 AS cor0
----
207937
737281
8749

query I rowsort
SELECT DISTINCT + + col1 * - col0 - 15 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
-123
-1600
-2240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - cor0.col2 col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT + col1 * - col0 + 83 FROM tab1 AS cor0
----
-557
-957
5

query I rowsort
SELECT ALL + col2 * cor0.col1 + ( cor0.col1 ) + - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * + col1 - 96 AS col0 FROM tab0 AS cor0
----
1
2742
7366

query I rowsort
SELECT - + 26 - + col1 FROM tab2 AS cor0
----
-43
-57
-85

query I rowsort
SELECT ALL + ( + tab1.col1 ) * + col2 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + - ( - col0 ) col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT - 24 * + col0 - - col1 AS col0 FROM tab0 AS cor0
----
-2045
-490
-743

query I rowsort
SELECT ALL - - 55 * col2 FROM tab1 cor0
----
2970
3135
5280

query I rowsort
SELECT DISTINCT 70 - + 96 FROM tab1
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col1 + + ( - 35 ) col0 FROM tab2 AS cor0
----
1308
182
4567

onlyif mysql # use DIV operator for integer division
query I rowsort label-6493
SELECT - + col2 DIV cor0.col1 + col1 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-6493
SELECT - + col2 / cor0.col1 + col1 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT col1 * - col1 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT ALL - col2 * - cor0.col2 * - cor0.col1 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + + 14 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT DISTINCT + - col0 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + - col0 / col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6498
SELECT CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-6498
SELECT CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab1 cor0
----
99

query I rowsort
SELECT 97 * col1 * + col2 AS col0 FROM tab1 AS cor0
----
121056
136188
55290

query I rowsort
SELECT 11 + col2 FROM tab0
----
12
44
93

query I rowsort
SELECT cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT ( 58 ) + - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2006
-3337
-8041

query I rowsort
SELECT - col1 + - ( + col1 ) FROM tab0 cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col1 col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + tab0.col0 * - ( col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col1 + col2 + col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL + 78 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - cor0.col2 * col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col0 + + col1 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL - col2 + - ( col0 ) * col0 FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col2 FROM tab0 cor0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT - CAST( NULL AS DECIMAL ) * + cor0.col2 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT - CAST ( NULL AS REAL ) * + cor0.col2 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + - col1 + col0 AS col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + + 62 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 * col1 col2 FROM tab2 AS cor0
----
-1593
-459
-837

query I rowsort
SELECT DISTINCT + 69 * col2 + + col0 * col2 + + col2 * + col2 * 51 FROM tab2 AS cor0
----
38298
39231
79268

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6520
SELECT ALL - cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + 53 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT ALL - col1 * + tab2.col0 * + col1 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + tab1.col0 * - col1 * + col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT col1 * - ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + tab2.col1 * 90 FROM tab2
----
1530
2790
5310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 + col0 ) col1 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - ( col2 ) * col2 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - col2 * - col1 + + cor0.col2 FROM tab2 cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + cor0.col1 * col1 col2 FROM tab0 cor0
----
7363
8199
9408

query I rowsort
SELECT + cor1.col2 - + cor1.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 546a494e1798cb1c65d1510d48d04dff

query I rowsort
SELECT DISTINCT + tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + 4 * col0 FROM tab2
----
28
312
316

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6533
SELECT CAST( col2 * - col1 + 8 AS SIGNED ) FROM tab2
----
-1526
-638
-829

skipif mysql # not compatible
query I rowsort label-6533
SELECT CAST ( col2 * - col1 + 8 AS INTEGER ) FROM tab2
----
-1526
-638
-829

query I rowsort
SELECT ( col2 ) + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * col2 col0 FROM tab0 AS cor0
----
-1066
-13
-429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT + 55 + + cor0.col2 FROM tab2 cor0
----
81
82
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT col0 * col1 + ( col0 ) * - col0 DIV ( col0 ) FROM tab1 AS cor0
----
576
75
960

skipif mysql # not compatible
query I rowsort label-6538
SELECT col0 * col1 + ( col0 ) * - col0 / ( col0 ) FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT 50 * col1 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT ALL + tab0.col0 * - col2 - + col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL col2 + + ( + col2 ) * 0 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT - - cor0.col0 + - ( col0 ) DIV - 12 AS col0 FROM tab1 AS cor0
----
3
69
86

skipif mysql # not compatible
query I rowsort label-6542
SELECT - - cor0.col0 + - ( col0 ) / - 12 AS col0 FROM tab1 AS cor0
----
3
69
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6543
SELECT ALL + col0 * CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab1.col1 * 97 FROM tab1
----
-1261
-2522
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT DISTINCT col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6546
SELECT ALL + col1 - 11 DIV col0 FROM tab1
----
10
13
23

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + col1 - 11 / col0 FROM tab1
----
10
13
23

query I rowsort
SELECT tab2.col2 - + ( - col0 ) AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT - col0 + 31 + cor0.col2 FROM tab2 AS cor0
----
-10
-21
51

query I rowsort
SELECT ALL col1 * tab2.col1 + - col0 + - col1 AS col0 FROM tab2
----
193
3344
923

query I rowsort
SELECT DISTINCT + 96 + col0 * col1 + col2 FROM tab1
----
1232
228
793

query I rowsort
SELECT + + col2 * 42 AS col2 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT ALL + 4 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
101
218
419

query I rowsort
SELECT DISTINCT - ( - 39 ) AS col1 FROM tab1 AS cor0
----
39

query I rowsort
SELECT - - col2 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6555
SELECT ALL + CAST( col2 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + CAST ( col2 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 - col2 AS col2 FROM tab2 cor0
----
-6110
-6279
-76

query I rowsort
SELECT ALL 4 * + cor0.col0 * - col2 FROM tab0 AS cor0
----
-140
-29192
-3168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col1 * col0 + 14 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col1 * col0 + 14 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6559
SELECT + cor0.col2 + 54 + + col1 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT + cor0.col2 + 54 + + col1 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 * - col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT - 14 + col0 AS col2 FROM tab0 AS cor0
----
10
21
75

query I rowsort
SELECT + 75 + col2 FROM tab2
----
101
102
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 50 * + col2 * 8 FROM tab0 AS cor0
----
13200
32800
400

query I rowsort
SELECT col2 * - col2 * ( col0 ) FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - col2 + + col0 * - ( + col1 * col0 ) AS col1 FROM tab0 AS cor0
----
-118826
-49569
-720893

query I rowsort
SELECT + + col0 + + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - ( + 82 ) col2 FROM tab2 AS cor0
----
-44
-55
-56

query I rowsort
SELECT + 69 * - 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 987bcca44f149c346c528276dc135cc3

query I rowsort
SELECT col1 + 57 AS col0 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT ALL + col0 * - ( col0 ) FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col2 - ( + col2 + col1 ) AS col1 FROM tab0 AS cor0
----
-152
-255
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col2 * 13 AS col1 FROM tab0 AS cor0
----
1066
13
429

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6575
SELECT - cor0.col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT - cor0.col1 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col1 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col0 + col1 * + cor0.col2 * cor0.col1 FROM tab1 cor0
----
16304
36507
5764

query I rowsort
SELECT - - col0 * 68 AS col1 FROM tab0 cor0
----
1632
2380
6052

query I rowsort
SELECT col2 + - col0 * - 4 AS col0 FROM tab1 AS cor0
----
313
416
66

query I rowsort
SELECT ( - ( + cor0.col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT cor0.col2 * - cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT ALL + 13 * col1 DIV + col0 + 0 + - ( col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-132
-2019
-3000

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL + 13 * col1 / + col0 + 0 + - ( col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-132
-2019
-3000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT ALL + col1 DIV + col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + col1 / + col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 17 - + col1 FROM tab1 AS cor0
----
-27
-30
-43

query I rowsort
SELECT + 54 * col1 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT - col1 + cor0.col0 * - ( - col1 ) FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL 44 * col1 + + col2 AS col0 FROM tab0
----
3817
4086
4269

query I rowsort
SELECT ALL - ( + col1 ) * + col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL tab0.col1 * 25 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ddbbad196d6cb93f9b5d0c5d288ae538

query I rowsort
SELECT ALL - tab1.col2 + 56 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5dc815336c379945dcfdae0956a704a6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + tab1.col0 col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT + 16 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT + 16 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT + + cor0.col0 * + col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6593
SELECT + + cor0.col0 * + col1 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT + + col0 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6594
SELECT + + col0 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 40 + - tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4d69a8e346e6186d3c9d51c4ae8680fd

query I rowsort
SELECT DISTINCT + ( - 86 ) AS col0 FROM tab1
----
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT ALL - col2 * 37 DIV + col1 FROM tab2
----
-16
-32
-82

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - col2 * 37 / + col1 FROM tab2
----
-16
-32
-82

query I rowsort
SELECT ALL - - 17 * + col1 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT DISTINCT + - 61 + cor0.col1 * + col0 FROM tab0 AS cor0
----
2003
3334
8038

onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT ALL - col1 DIV col2 + col1 - col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - col1 / col2 + col1 - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 * col2 * - 33 - 19 FROM tab2 AS cor0
----
-22405
-24083
-47750

query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL - ( col0 * + col1 ) AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT ALL - - 4 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - - 4 / col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - + col2 - 98 * + cor0.col0 FROM tab0 AS cor0
----
-2385
-3431
-8804

query I rowsort
SELECT + col1 * 11 FROM tab2 cor0
----
187
341
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-6609
SELECT ALL - col0 DIV - col1 - 13 * + col1 AS col1 FROM tab2 cor0
----
-217
-403
-766

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - col0 / - col1 - 13 * + col1 AS col1 FROM tab2 cor0
----
-217
-403
-766

query I rowsort
SELECT DISTINCT - - col2 + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + - col1 + ( col1 ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + 78 col1 FROM tab2 AS cor0
----
7410
7410
7410

query I rowsort
SELECT - - col0 + + 93 * + col2 FROM tab2 AS cor0
----
2496
2518
3613

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * 72 col2 FROM tab1 cor0
----
1080
1080
1080

query I rowsort
SELECT ALL col2 * - 7 * - col0 FROM tab2 AS cor0
----
1323
14196
21014

onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT + + col0 * + col0 * - col1 + - cor0.col2 DIV - 24 col2 FROM tab2 AS cor0
----
-106096
-1518
-358955

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6617
SELECT + + col0 * + col0 * - col1 + - cor0.col2 / - 24 col2 FROM tab2 AS cor0
----
-106096
-1518
-358955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + tab0.col1 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 51855bb230a34802a628192d3e332a79

query I rowsort
SELECT 24 FROM tab0, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT DISTINCT col1 + col1 DIV ( - col2 ) FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT col1 + col1 / ( - col2 ) FROM tab0
----
0
84
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT col2 DIV col1 + col0 * col2 AS col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6621
SELECT col2 / col1 + col0 * col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor1.col2 * 33 FROM tab2, tab0 cor0, tab1 AS cor1
----
1782
1881
3168

query I rowsort
SELECT - 64 + col1 AS col0 FROM tab2 AS cor0
----
-33
-47
-5

query I rowsort
SELECT + col0 * cor0.col0 + - col1 * cor0.col2 FROM tab1 cor0
----
-1395
3526
5152

onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT + + 88 DIV 59 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-6625
SELECT + + 88 / 59 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT - col1 + 41 * - col2 AS col0 FROM tab1 AS cor0
----
-2240
-2347
-3949

query I rowsort
SELECT ( - col0 + + tab2.col2 ) FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6629
SELECT DISTINCT - - col2 DIV col0 AS col1 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - - col2 / col0 AS col1 FROM tab2 cor0
----
0
3

query I rowsort
SELECT + 72 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6631
SELECT CAST( + 70 AS SIGNED ) * + col1 col1 FROM tab2
----
1190
2170
4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6631
SELECT CAST ( + 70 AS INTEGER ) * + col1 col1 FROM tab2
----
1190
2170
4130

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT ALL col1 + - col2 + col0 DIV 2 FROM tab1
----
-15
-27
-43

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL col1 + - col2 + col0 / 2 FROM tab1
----
-15
-27
-43

query I rowsort
SELECT col2 + + tab0.col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT + col0 * 26 - - 53 FROM tab2 AS cor0
----
2081
2107
235

query I rowsort
SELECT + col2 * col0 - 84 FROM tab2 AS cor0
----
105
1944
2918

query I rowsort
SELECT + col2 + col1 + - col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col2 * + col0 * col2 AS col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col0 + col1 + + 9 AS col0 FROM tab1
----
-45
-58
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT - 78 DIV col0 AS col2 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6639
SELECT - 78 / col0 AS col2 FROM tab0
----
-2
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * col1 col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + col2 * ( - 98 ) AS col2 FROM tab0
----
-3234
-8036
-98

query I rowsort
SELECT - col1 * - 37 * - tab2.col2 FROM tab2
----
-23902
-30969
-56758

query I rowsort
SELECT col1 * ( col0 ) * col0 AS col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL 28 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + tab0.col0 * + col2 AS col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6646
SELECT + col0 + 38 DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6646
SELECT + col0 + 38 / col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col1 * - 86 AS col0 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT ALL - col1 * 38 - col1 FROM tab2 AS cor0
----
-1209
-2301
-663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6649
SELECT ALL + col1 + + CAST( - cor0.col1 AS SIGNED ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + col1 + + CAST ( - cor0.col1 AS INTEGER ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 * 23 FROM tab0, tab0 AS cor0
----
9 values hashing to 804526bae2040ddaed37312e1a646472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6651
SELECT ALL - cor0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - cor0.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col0 * col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6654
SELECT - - col0 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-6654
SELECT - - col0 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL 9 * - tab2.col1 FROM tab2
----
-153
-279
-531

query I rowsort
SELECT DISTINCT + - col1 * ( 85 ) FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT DISTINCT col2 * 47 FROM tab2 AS cor0
----
1222
1269
1786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6659
SELECT ALL - col1 * col2 DIV - col2 - - col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL - col1 * col2 / - col2 - - col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL col0 - col2 * - ( col2 ) * + col0 AS col0 FROM tab2
----
114155
5110
52806

query I rowsort
SELECT ALL 96 * 57 FROM tab2 AS cor0
----
5472
5472
5472

query I rowsort
SELECT DISTINCT - - 48 + + col1 AS col2 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT ALL - ( 11 ) FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + - col1 * - col2 AS col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT col0 * + col2 DIV col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6665
SELECT col0 * + col2 / col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL col1 - + 75 AS col1 FROM tab2
----
-16
-44
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT - col0 DIV - 48 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6667
SELECT - col0 / - 48 FROM tab2
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT - col1 + col2 DIV 2 - - col2 AS col0 FROM tab1
----
131
55
75

skipif mysql # not compatible
query I rowsort label-6668
SELECT - col1 + col2 / 2 - - col2 AS col0 FROM tab1
----
131
55
75

query I rowsort
SELECT 60 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT - tab1.col0 + ( col2 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL - col0 * 64 AS col1 FROM tab1
----
-192
-4096
-5120

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col2 AS col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL + col2 + - col2 * - ( col2 ) * - col2 FROM tab2 AS cor0
----
-17550
-19656
-54834

query I rowsort
SELECT ( - cor0.col2 ) + 27 AS col2 FROM tab1 AS cor0
----
-27
-30
-69

query I rowsort
SELECT ALL cor0.col1 * - col2 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 + col1 col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT DISTINCT 18 DIV col1 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT 18 / col1 FROM tab1 cor0
----
0
1

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab1, tab1 AS cor0
----
4

query I rowsort
SELECT 96 * col2 + tab1.col1 AS col1 FROM tab1
----
5210
5482
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 + + col2 col0 FROM tab0
----
-16
-48
33

query I rowsort
SELECT 31 * col1 * + tab1.col2 - + col0 AS col2 FROM tab1
----
17606
38608
43521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 36 ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-6683
SELECT - ( col1 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6683
SELECT - ( col1 ) / + col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 81 + col1 * col1 * + 77 FROM tab1 AS cor0
----
12932
51971
7619

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT ALL - 73 DIV - cor0.col0 AS col0 FROM tab1 cor0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL - 73 / - cor0.col0 AS col0 FROM tab1 cor0
----
0
1
24

query I rowsort
SELECT DISTINCT + + ( - col1 ) + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - 78 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-45
-77
4

query I rowsort
SELECT - ( col0 ) + + col0 * + 97 FROM tab2
----
672
7488
7584

query I rowsort
SELECT + ( col0 ) - tab1.col0 * col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT ALL tab0.col0 * + col2 * - col0 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6691
SELECT ALL - 14 DIV 62 + tab1.col2 + 97 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 336fb63a320e212d13252d9ca12f607c

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL - 14 / 62 + tab1.col2 + 97 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 336fb63a320e212d13252d9ca12f607c

query I rowsort
SELECT DISTINCT + col1 + ( col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col1 + 31 FROM tab1 AS cor0
----
41
44
57

query I rowsort
SELECT ALL col0 * ( + col2 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT cor0.col2 + col0 * + 67 AS col2 FROM tab1 AS cor0
----
255
4345
5456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6696
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) * - col2 + col0 * - 20 + + 54 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) * - col2 + col0 * - 20 + + 54 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * ( col1 * + col1 ) FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT DISTINCT col2 DIV cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT col2 / cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6699
SELECT col0 + cor0.col2 DIV - 31 FROM tab1 cor0
----
2
63
77

skipif mysql # not compatible
query I rowsort label-6699
SELECT col0 + cor0.col2 / - 31 FROM tab1 cor0
----
2
63
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT + 48 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6700
SELECT + 48 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - - 24 * - col2 + - col1 * ( + col0 ) FROM tab0 AS cor0
----
-10067
-2856
-3419

query I rowsort
SELECT DISTINCT + col2 * col2 - col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col1 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT 53 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1290
-164
-4549

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 + col0 AS col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + + col1 + ( col0 ) FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 - - cor0.col0 col0 FROM tab2 AS cor0
----
-9
62
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6709
SELECT - - 59 * + 44 + + cor0.col1 * CAST( 48 + + col1 AS SIGNED ) FROM tab0 AS cor0
----
14120
15245
16661

skipif mysql # not compatible
query I rowsort label-6709
SELECT - - 59 * + 44 + + cor0.col1 * CAST ( 48 + + col1 AS INTEGER ) FROM tab0 AS cor0
----
14120
15245
16661

query I rowsort
SELECT 65 * 3 FROM tab0 AS cor0
----
195
195
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 + col2 col1 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 - - col0 col1 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT + 65 * + col2 - - col1 AS col1 FROM tab2 cor0
----
1749
1786
2487

query I rowsort
SELECT ALL - - col1 - - col2 * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT col2 * 24 * cor0.col0 + col2 FROM tab1 AS cor0
----
184416
3942
87609

query I rowsort
SELECT DISTINCT col1 + 41 FROM tab0 cor0
----
127
132
138

query I rowsort
SELECT ALL + - ( - col1 ) + - 35 * + col0 FROM tab0 AS cor0
----
-1128
-3024
-754

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col2 * col2 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE ( col1 + col0 ) NOT BETWEEN ( + col1 ) AND + col2
----
57

query I rowsort
SELECT DISTINCT - col2 + + col2 / + col1 AS col2 FROM tab0 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT col0 * + col1 + - tab1.col0 AS col0 FROM tab1
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT ALL + col2 + - col0 DIV col1 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL + col2 + - col0 / col1 FROM tab1
----
51
54
90

query I rowsort
SELECT - col1 + + col0 * - col0 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( col1 * col2 )
----

query I rowsort
SELECT + col0 + + col0 AS col0 FROM tab1 WHERE NOT col2 * + col1 + col1 * - col0 NOT BETWEEN + col2 + + col1 AND ( NULL )
----

query I rowsort
SELECT tab0.col2 * col2 - - col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - col1 - col2 * - col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT + tab0.col1 * tab0.col2 - + col0 * + col0 FROM tab0
----
-1128
-459
2262

query I rowsort
SELECT + col1 * - tab2.col2 + - col1 AS col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT col1 + col1 * col1 AS col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT + tab2.col1 * + col0 AS col0 FROM tab2
----
1343
217
4602

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IN ( col2 - col2 )
----

query I rowsort
SELECT col1 + col1 * + tab1.col2 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT ALL col1 DIV - col2 + + col1 DIV + col1 FROM tab0
----
-1
-96
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL col1 / - col2 + + col1 / + col1 FROM tab0
----
-1
-96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * tab1.col0 + - tab1.col2 col1 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND col0 * + col2
----

query I rowsort
SELECT ALL tab0.col0 - + col1 * col1 AS col2 FROM tab0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * col2 col2 FROM tab1
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6739
SELECT ALL + col0 + tab2.col1 DIV col0 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL + col0 + tab2.col1 / col0 FROM tab2
----
11
78
79

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * col0 col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col2 + + col0 * - col1 FROM tab2 WHERE NOT NULL BETWEEN col1 + col0 AND + col1 * + col1
----

query I rowsort
SELECT ALL col2 * col0 + + col0 - col1 FROM tab1 WHERE ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT col1 * + col1 + - col0 AS col1 FROM tab1
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT DISTINCT col2 DIV col2 + col2 AS col0 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT col2 / col2 + col2 AS col0 FROM tab1
----
55
58
97

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE - col2 NOT IN ( col0 / tab1.col1 + tab1.col0 )
----
10
13
26

query I rowsort
SELECT + col1 * + col0 * - col1 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - + cor0.col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT col0 * cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * - col2 * col0 FROM tab2 cor0
----
-119626
-50996
-5832

query I rowsort
SELECT - cor0.col1 * col0 - + col2 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT ALL col1 DIV tab1.col1 + col1 * tab1.col0 + + tab1.col2 AS col1 FROM tab1
----
1137
133
698

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL col1 / tab1.col1 + col1 * tab1.col0 + + tab1.col2 AS col1 FROM tab1
----
1137
133
698

query I rowsort
SELECT col1 + + col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT DISTINCT col2 * + tab1.col0 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT col1 * col2 + tab0.col0 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT col1 * col0 + + col1 * - col1 * col0 AS col0 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT col1 + + col2 FROM tab1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT ALL + cor0.col2 + col2 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) > + col0
----
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT + col1 + - col2 * col2 DIV + col0 + - col2 * col2 FROM tab1 AS cor0
----
-3289
-3862
-9318

skipif mysql # not compatible
query I rowsort label-6762
SELECT + col1 + - col2 * col2 / + col0 + - col2 * col2 FROM tab1 AS cor0
----
-3289
-3862
-9318

query I rowsort
SELECT ALL + cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 * 74 FROM tab0
----
6364
6734
7178

query I rowsort
SELECT cor0.col0 * ( col1 ) - - col0 AS col2 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT + 74 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - + col0 * ( col1 ) + + col1 * col1 FROM tab2 cor0
----
-1054
-1121
744

query I rowsort
SELECT - - cor0.col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6769
SELECT CAST( + col2 AS SIGNED ) DIV cor0.col0 + - col2 * cor0.col2 + - col2 FROM tab1 AS cor0
----
-2952
-3306
-9311

skipif mysql # not compatible
query I rowsort label-6769
SELECT CAST ( + col2 AS INTEGER ) / cor0.col0 + - col2 * cor0.col2 + - col2 FROM tab1 AS cor0
----
-2952
-3306
-9311

query I rowsort
SELECT + col1 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT cor0.col1 + 38 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 0d5111297ba0ed20c68997c9e30d4278

onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT 72 DIV + col1 + col2 + - 9 AS col2 FROM tab2 AS cor0
----
18
20
33

skipif mysql # not compatible
query I rowsort label-6772
SELECT 72 / + col1 + col2 + - 9 AS col2 FROM tab2 AS cor0
----
18
20
33

query I rowsort
SELECT ALL + col1 * col2 * + col2 + 66 AS col1 FROM tab1 AS cor0
----
119874
32556
75882

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT ALL + col2 DIV - 8 FROM tab1 AS cor0
----
-12
-6
-7

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + col2 / - 8 FROM tab1 AS cor0
----
-12
-6
-7

query I rowsort
SELECT DISTINCT 53 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
53

query I rowsort
SELECT + 59 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT 14 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT - 81 * + cor0.col0 * ( col2 + - col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + col1 * 39 AS col1 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * 15 FROM tab1 AS cor0
----
1017
1296
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6781
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT tab0.col1 + + tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT + + col2 * col0 - - col2 DIV - col0 col2 FROM tab0 AS cor0
----
35
7298
791

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6784
SELECT + + col2 * col0 - - col2 / - col0 col2 FROM tab0 AS cor0
----
35
7298
791

query I rowsort
SELECT col1 - + ( - cor0.col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - ( tab2.col2 ) AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 88 ) col0 FROM tab0 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col2 ) + col1 col0 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6789
SELECT DISTINCT CAST( - 31 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
55
60
66

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT CAST ( - 31 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
55
60
66

query I rowsort
SELECT col1 * 14 FROM tab2 cor0
----
238
434
826

query I rowsort
SELECT ALL - 8 * col2 AS col0 FROM tab0 AS cor0
----
-264
-656
-8

query I rowsort
SELECT DISTINCT 21 * + col2 * - col1 + col0 * + col1 * + cor0.col0 FROM tab0 AS cor0
----
-10062
116788
564109

onlyif mysql # use DIV operator for integer division
query I rowsort label-6793
SELECT ALL cor0.col0 + col2 DIV col0 FROM tab2 cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL cor0.col0 + col2 / col0 FROM tab2 cor0
----
10
78
79

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL 18 * col2 AS col1 FROM tab0 cor0
----
1476
18
594

query I rowsort
SELECT + ( + col0 ) + + 15 FROM tab2 AS cor0
----
22
93
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col0 col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + ( + 46 ) + + col0 AS col1 FROM tab2
----
124
125
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 35 * tab2.col1 col0 FROM tab2
----
-1058
-2039
-557

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT ( - col1 ) DIV + col0 - col0 FROM tab2
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-6800
SELECT ( - col1 ) / + col0 - col0 FROM tab2
----
-11
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6801
SELECT + CAST( NULL AS SIGNED ) + - 70 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT + CAST ( NULL AS INTEGER ) + - 70 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 + 70 * - col0 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT col1 * col1 * col1 + - cor0.col0 + 46 AS col0 FROM tab1 AS cor0
----
17619
2163
982

query I rowsort
SELECT DISTINCT - col0 + 51 * 86 AS col0 FROM tab0 AS cor0
----
4297
4351
4362

query I rowsort
SELECT + col0 * ( 65 + col2 ) FROM tab2 AS cor0
----
644
7098
8137

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - - col1 + + 5 FROM tab2 AS cor0
----
22
36
64

query I rowsort
SELECT + col0 * - ( - col1 * col0 ) AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - col1 * 1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6811
SELECT + + col0 + CAST( NULL AS SIGNED ) / + col2 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT + + col0 + CAST ( NULL AS INTEGER ) / + col2 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + ( - col2 * + col1 ) + col1 * - 9 FROM tab2 AS cor0
----
-1143
-2091
-837

query I rowsort
SELECT - col2 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 - ( - ( - col2 ) ) * col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT + col1 + col1 + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1419
748
8103

query I rowsort
SELECT ALL 53 + - 54 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6817
SELECT ALL - 79 DIV - 10 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - 79 / - 10 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT DISTINCT + + ( + col1 ) DIV + col2 + - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT + + ( + col1 ) / + col2 + - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6819
SELECT CAST( NULL AS DECIMAL ) * cor0.col2 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT CAST ( NULL AS REAL ) * cor0.col2 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( + col0 ) * - col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ( + col1 ) * col0 * ( col1 ) FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT tab2.col1 + col1 * col1 * col2 AS col1 FROM tab2
----
10999
25978
90565

query I rowsort
SELECT + col1 + 87 * + col2 * - col2 AS col1 FROM tab1
----
-253666
-282653
-801779

query I rowsort
SELECT ALL col2 * col0 + + col0 * col1 AS col0 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT 26 * - tab2.col0 FROM tab2, tab0 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT ALL 19 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + col0 + + 62 AS col1 FROM tab1
----
126
142
65

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT - col1 * - 91 + + col2 DIV + col0 AS col2 FROM tab1
----
1184
2384
910

skipif mysql # not compatible
query I rowsort label-6829
SELECT - col1 * - 91 + + col2 / + col0 AS col2 FROM tab1
----
1184
2384
910

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT - + 36 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6831
SELECT - + 36 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-5
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT DISTINCT 97 * col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-116
-1746
-86

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT 97 * col2 / - col0 AS col2 FROM tab1 AS cor0
----
-116
-1746
-86

query I rowsort
SELECT - col1 * + 3 * col0 + col1 + 58 AS col2 FROM tab1 AS cor0
----
-150
-1852
-3049

query I rowsort
SELECT - ( col0 ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6835
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT ALL - - 60 DIV - 39 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - - 60 / - 39 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + col0 - col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT + 42 + + col2 * - 56 * 29 FROM tab0 AS cor0
----
-133126
-1582
-53550

query I rowsort
SELECT DISTINCT 65 * col1 + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
13377
6402
8428

query I rowsort
SELECT DISTINCT - col0 * + 10 AS col2 FROM tab2 AS cor0
----
-70
-780
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT + + col1 DIV - 15 + + col0 + + col1 FROM tab1 AS cor0
----
28
74
93

skipif mysql # not compatible
query I rowsort label-6843
SELECT + + col1 / - 15 + + col0 + + col1 FROM tab1 AS cor0
----
28
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT DISTINCT col1 DIV 84 + - col1 DIV col0 col1 FROM tab1 cor0
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT col1 / 84 + - col1 / col0 col1 FROM tab1 cor0
----
-8
0

query I rowsort
SELECT DISTINCT + 66 * - cor0.col1 + 6 * + 74 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
-1602
-3450
-678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6846
SELECT + col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT + col0 - 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-6847
SELECT DISTINCT + col0 + col0 DIV ( + col1 * ( col2 ) ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT + col0 + col0 / ( + col1 * ( col2 ) ) FROM tab0
----
24
35
89

query I rowsort
SELECT + - cor0.col1 - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - - col2 * + ( ( - col2 ) ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col2 * - 84 - col0 AS col2 FROM tab0 AS cor0
----
-119
-2796
-6977

onlyif mysql # use DIV operator for integer division
query I rowsort label-6851
SELECT DISTINCT - - cor0.col0 DIV col0 + + col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT - - cor0.col0 / col0 + + col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL col1 * + 34 + 13 * col0 FROM tab0 AS cor0
----
3236
3753
4251

query I rowsort
SELECT ALL - col0 * - col0 + 6 FROM tab0 AS cor0
----
1231
582
7927

query I rowsort
SELECT DISTINCT col0 * + 74 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT 74 + + col2 AS col1 FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT DISTINCT 94 * cor0.col2 * 29 FROM tab2 AS cor0
----
103588
70876
73602

query I rowsort
SELECT col1 * + cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - col0 * - col2 * - col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT col2 * - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - - ( + col0 ) * + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT col1 * - col1 + + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-289
-3481
-957

skipif mysql # not compatible
query I rowsort label-6862
SELECT col1 * - col1 + + col1 / col0 AS col2 FROM tab2 AS cor0
----
-289
-3481
-957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col1 + 50 col1 FROM tab0 AS cor0
----
-2788
-47
-7412

query I rowsort
SELECT + + cor0.col2 - + col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6865
SELECT - ( - col2 ) + col0 DIV + col1 col1 FROM tab1
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6865
SELECT - ( - col2 ) + col0 / + col1 col1 FROM tab1
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * - col2 * tab0.col0 + col0 col2 FROM tab0
----
-26112
-598347
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT ALL col2 DIV - col2 + tab0.col0 * ( + tab0.col1 ) FROM tab0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL col2 / - col2 + tab0.col0 * ( + tab0.col1 ) FROM tab0
----
2063
3394
8098

query I rowsort
SELECT - - col0 + cor0.col0 * col2 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + col2 * col2 * col0 col2 FROM tab2 cor0
----
117078
5292
54756

query I rowsort
SELECT - col0 * col0 + + ( 58 + col1 ) FROM tab2
----
-5967
-6166
40

query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab1
----
11

query I rowsort
SELECT 6 * + col2 * + col0 FROM tab1 AS cor0
----
21888
46080
972

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT DISTINCT - col1 * col2 DIV - col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - col1 * col2 / - col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT col1 + ( col2 ) AS col1 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + 21 AS REAL ) + - col0 + col1 AS col0 FROM tab1
----
-33
-46
44

query I rowsort
SELECT DISTINCT 56 + 96 * col1 + ( - 12 * - col2 ) FROM tab0
----
8708
9380
9776

query I rowsort
SELECT - col0 + + col0 + col1 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT 91 * + col0 AS col0 FROM tab0
----
2184
3185
8099

query I rowsort
SELECT ALL - 53 AS col0 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT 3 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT + + 51 * col2 AS col1 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT 85 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( tab2.col1 AS REAL ) col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6886
SELECT ALL 51 + col1 * CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
148
2889
7513

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL 51 + col1 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
148
2889
7513

query I rowsort
SELECT ALL - 70 * col1 FROM tab0
----
-6020
-6370
-6790

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab1, tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab2
----
79

query I rowsort
SELECT col0 * cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6891
SELECT - col2 * - col0 + - CAST( NULL AS SIGNED ) * + col1 / - col1 + + col2 * 31 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT - col2 * - col0 + - CAST ( NULL AS INTEGER ) * + col1 / - col1 + + col2 * 31 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 col1 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab0, tab1, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col1 * cor0.col0 - - col2 * col1 * + col1 AS col2 FROM tab2 cor0
----
12325
26164
95108

query I rowsort
SELECT - col0 - cor0.col2 AS col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + + col1 * col0 + - 45 FROM tab1 AS cor0
----
33
595
995

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
46

query I rowsort
SELECT col1 * ( + col2 ) * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT - + col0 * + col2 * col1 + - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-672217
-6790
-70176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6900
SELECT DISTINCT - - col2 * - CAST( col2 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT - - col2 * - CAST ( col2 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - col2 * ( + col1 * + col1 ) AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - col2 * - cor0.col1 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT - 96 + ( col0 ) DIV 81 FROM tab2 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-6903
SELECT - 96 + ( col0 ) / 81 FROM tab2 AS cor0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col0 FROM tab0 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c1d8c77b0e6bc9ad17ff454238300856

query I rowsort
SELECT 75 * - col1 AS col0 FROM tab1
----
-1950
-750
-975

query I rowsort
SELECT ( + col1 ) * ( - tab0.col2 ) AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col1 * - col2 * ( - col2 * - col1 ) - - col2 * col0 AS col0 FROM tab1 AS cor0
----
-1549824
-1971054
-321252

query I rowsort
SELECT DISTINCT - col0 + col0 * 43 FROM tab0 AS cor0
----
1008
1470
3738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6910
SELECT DISTINCT + col0 * CAST( + 8 AS SIGNED ) FROM tab1 AS cor0
----
24
512
640

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + col0 * CAST ( + 8 AS INTEGER ) FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT ALL + 33 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT ALL tab2.col0 DIV 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL tab2.col0 / 98 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 * col2 * 2 AS col2 FROM tab2
----
-1292
-1674
-3068

query I rowsort
SELECT DISTINCT + 43 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
43

query I rowsort
SELECT DISTINCT - - col2 * 71 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT ALL + 15 * + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ac680aff82caf7343f960fd6256b27a2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6917
SELECT DISTINCT - col0 + - CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - col0 + - CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT ALL - - col0 DIV - 94 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - - col0 / - 94 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT - + cor0.col0 DIV + 57 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6919
SELECT - + cor0.col0 / + 57 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT + col2 + + 82 DIV - col0 col1 FROM tab0 AS cor0
----
-1
30
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6921
SELECT + col2 + + 82 / - col0 col1 FROM tab0 AS cor0
----
-1
30
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6922
SELECT col2 + - 14 + tab1.col2 DIV - 48 FROM tab1
----
39
42
80

skipif mysql # not compatible
query I rowsort label-6922
SELECT col2 + - 14 + tab1.col2 / - 48 FROM tab1
----
39
42
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * col2 - tab0.col2 col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6924
SELECT ALL cor0.col0 DIV - ( + col2 * - 10 ) + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL cor0.col0 / - ( + col2 * - 10 ) + + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col2 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( - col2 ) + col0 col2 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT - col1 - - ( + cor0.col2 * 91 ) FROM tab1 AS cor0
----
4888
5177
8723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 * + 1 + - col0 col1 FROM tab1 AS cor0
----
-53
-69
8

query I rowsort
SELECT ( - col1 ) - cor0.col2 AS col1 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT + ( + 98 ) AS col0 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT ALL - 0 * + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6932
SELECT col0 + + col0 * CAST( + col1 AS SIGNED ) + col0 * col1 FROM tab1 AS cor0
----
1344
159
2160

skipif mysql # not compatible
query I rowsort label-6932
SELECT col0 + + col0 * CAST ( + col1 AS INTEGER ) + col0 * col1 FROM tab1 AS cor0
----
1344
159
2160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 + 54 * - col0 + - col1 col0 FROM tab2 AS cor0
----
-360
1813
1958

onlyif mysql # use DIV operator for integer division
query I rowsort label-6934
SELECT DISTINCT + 52 * - col1 + CAST( + col1 AS SIGNED ) DIV + col1 + col0 * + col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
12845
5881
677

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT + 52 * - col1 + CAST ( + col1 AS INTEGER ) / + col1 + col0 * + col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
12845
5881
677

query I rowsort
SELECT DISTINCT + ( col2 ) * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL 11 + - col1 FROM tab2 AS cor0
----
-20
-48
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6937
SELECT DISTINCT col1 + col2 * + CAST( + 78 AS SIGNED ) + col2 FROM tab2 AS cor0
----
2113
2164
3019

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT col1 + col2 * + CAST ( + 78 AS INTEGER ) + col2 FROM tab2 AS cor0
----
2113
2164
3019

query I rowsort
SELECT - col2 * col0 + 80 FROM tab1 AS cor0
----
-3568
-7600
-82

query I rowsort
SELECT ALL col2 * + cor0.col0 - 89 AS col1 FROM tab1 AS cor0
----
3559
73
7591

query I rowsort
SELECT ALL - 47 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1222
-470
-611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 + - cor0.col0 col2 FROM tab1 AS cor0
----
-17
-33
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6942
SELECT ALL col2 * + 33 - + tab0.col0 * + tab0.col0 DIV + col0 AS col0 FROM tab0
----
-2
1065
2617

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL col2 * + 33 - + tab0.col0 * + tab0.col0 / + col0 AS col0 FROM tab0
----
-2
1065
2617

query I rowsort
SELECT - 96 * + col0 + 76 FROM tab1 cor0
----
-212
-6068
-7604

query I rowsort
SELECT col2 * + 7 AS col1 FROM tab1
----
378
399
672

query I rowsort
SELECT ALL + col0 * - col1 + + col2 + - cor0.col0 FROM tab0 AS cor0
----
-2055
-3429
-8106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 - - 81 col1 FROM tab1 AS cor0
----
-3567
-7599
-81

query I rowsort
SELECT ALL - 14 * col2 * - col1 FROM tab1
----
17472
19656
7980

query I rowsort
SELECT ALL - + col1 * + col1 + + col2 + - col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 + col1 - 43 AS col1 FROM tab1 AS cor0
----
-126
-71
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col2 col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT DISTINCT - col2 + cor0.col2 DIV + col0 - + 27 AS col0 FROM tab0 cor0
----
-109
-28
-59

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT - col2 + cor0.col2 / + col0 - + 27 AS col0 FROM tab0 cor0
----
-109
-28
-59

query I rowsort
SELECT col2 * - col2 * 55 - + col0 FROM tab0 AS cor0
----
-369909
-59919
-90

query I rowsort
SELECT DISTINCT - ( tab1.col2 ) + + ( - 0 ) AS col0 FROM tab1, tab0, tab2 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col1 * - col1 + - tab2.col1 AS col2 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT - col2 + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT col2 * + 90 * + col1 FROM tab1 AS cor0
----
112320
126360
51300

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT + + cor0.col2 + col0 DIV + col1 col1 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6958
SELECT + + cor0.col2 + col0 / + col1 col1 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col0 * - ( col2 ) col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL + 12 + 32 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL 31 + 41 FROM tab2 AS cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT 71 * ( - cor0.col0 ) - 18 * col0 AS col1 FROM tab2 AS cor0
----
-623
-6942
-7031

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 85 * - col0 AS col0 FROM tab2 cor0
----
-595
-6630
-6715

query I rowsort
SELECT DISTINCT - 87 + + col0 FROM tab0 AS cor0
----
-52
-63
2

query I rowsort
SELECT ALL - - 5 - cor0.col0 * col1 AS col0 FROM tab0 cor0
----
-2059
-3390
-8094

query I rowsort
SELECT - col1 + - 76 * + 14 AS col1 FROM tab0
----
-1150
-1155
-1161

query I rowsort
SELECT DISTINCT tab2.col0 * 28 FROM tab2
----
196
2184
2212

query I rowsort
SELECT - col0 * 7 * cor0.col2 FROM tab0 AS cor0
----
-245
-51086
-5544

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 + - 47 AS col0 FROM tab2
----
-106
-64
-78

query I rowsort
SELECT col2 * 37 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT - 43 - - col0 AS col0 FROM tab2 AS cor0
----
-36
35
36

query I rowsort
SELECT - + 92 + col2 + - col2 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT 34 + col2 FROM tab0 cor0
----
116
35
67

query I rowsort
SELECT + - col1 * 73 + col1 FROM tab2 AS cor0
----
-1224
-2232
-4248

onlyif mysql # use DIV operator for integer division
query I rowsort label-6979
SELECT 85 DIV col1 - col0 FROM tab2 AS cor0
----
-5
-74
-77

skipif mysql # not compatible
query I rowsort label-6979
SELECT 85 / col1 - col0 FROM tab2 AS cor0
----
-5
-74
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT 88 DIV - col1 + - col2 * cor0.col1 + col1 FROM tab2 AS cor0
----
-1476
-634
-808

skipif mysql # not compatible
query I rowsort label-6980
SELECT 88 / - col1 + - col2 * cor0.col1 + col1 FROM tab2 AS cor0
----
-1476
-634
-808

query I rowsort
SELECT - cor0.col1 * + 74 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT DISTINCT - 72 + + col2 FROM tab2 AS cor0
----
-34
-45
-46

query I rowsort
SELECT ALL + + col1 * col1 + ( + col0 ) AS col1 FROM tab0 cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 * - 99 * - col1 col2 FROM tab1 AS cor0
----
16811
66927
9964

query I rowsort
SELECT col0 + col2 * + 94 FROM tab1 AS cor0
----
5079
5422
9104

query I rowsort
SELECT - + 42 + col0 FROM tab1 AS cor0
----
-39
22
38

query I rowsort
SELECT + 42 + col1 FROM tab1 AS cor0
----
52
55
68

query I rowsort
SELECT 90 + + col0 AS col0 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT + - col0 * ( - col0 ) FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT + col0 * CAST( + 88 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
3080
642224
69696

skipif mysql # not compatible
query I rowsort label-6990
SELECT + col0 * CAST ( + 88 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
3080
642224
69696

query I rowsort
SELECT - 64 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT DISTINCT + + col0 - col0 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT + + col0 - col0 / + col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 + col0 col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - ( tab2.col0 + col1 ) * - col2 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT + + col0 * 76 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT DISTINCT col1 * + col0 + 7 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2666
4074
8736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6997
SELECT DISTINCT - + cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT - + cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 65 FROM tab2, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6999
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 / + col2 + + ( 5 ) * col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 / + col2 + + ( 5 ) * col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 95 - col0 FROM tab1 AS cor0
----
5127
5351
9040

query I rowsort
SELECT cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT ALL col2 * col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7004
SELECT DISTINCT CAST( col2 * col0 AS SIGNED ) AS col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT CAST ( col2 * col0 AS INTEGER ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col0 * 30 AS col0 FROM tab2
----
-210
-2340
-2370

query I rowsort
SELECT 47 - + col0 FROM tab0
----
-42
12
23

query I rowsort
SELECT DISTINCT col0 * col1 * ( tab0.col2 ) FROM tab0
----
3395
664118
68112

query I rowsort
SELECT tab0.col0 * + tab0.col2 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT cor0.col0 * - col1 + 64 * col0 + - col1 FROM tab0 AS cor0
----
-1252
-2494
-614

query I rowsort
SELECT ALL 83 + - col2 FROM tab0
----
1
50
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + - col2 * 14 col2 FROM tab0 AS cor0
----
-1141
-455
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7012
SELECT ALL + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col2 * ( col0 ) * + col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + 39 * - col1 AS col0 FROM tab1 cor0
----
-1014
-390
-507

query I rowsort
SELECT DISTINCT - col2 * col0 - ( col0 ) AS col2 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT col2 + - col2 * - tab1.col2 AS col0 FROM tab1
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT + 40 DIV 30 + col1 col0 FROM tab0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7017
SELECT + 40 / 30 + col1 col0 FROM tab0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7018
SELECT DISTINCT CAST( + col0 AS SIGNED ) + tab0.col0 AS col0 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + tab0.col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - 57 + col1 * col1 FROM tab1
----
112
43
619

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * col0 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7021
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + - col1 + + col2 AS col1 FROM tab1
----
111
163
31

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + - col1 + + col2 AS col1 FROM tab1
----
111
163
31

query I rowsort
SELECT - ( + col0 ) - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT ALL 43 DIV - col2 col1 FROM tab0 cor0
----
-1
-43
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL 43 / - col2 col1 FROM tab0 cor0
----
-1
-43
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7024
SELECT DISTINCT - CAST( + 90 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT - CAST ( + 90 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT ( - 70 ) + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1178
1334
500

query I rowsort
SELECT ALL 53 * - col2 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT ALL col0 + 58 * col0 AS col2 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT - 33 * col2 FROM tab2
----
-1254
-858
-891

query I rowsort
SELECT DISTINCT + 63 + ( col2 ) * col0 * + col2 FROM tab1
----
207999
737343
8811

query I rowsort
SELECT tab2.col1 - col1 * - col0 AS col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL + 97 AS col0 FROM tab1
----
97
97
97

query I rowsort
SELECT 92 * col0 - col1 AS col2 FROM tab1
----
250
5878
7347

query I rowsort
SELECT - col1 * ( 20 ) AS col2 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT ALL col0 * col2 - tab1.col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT col0 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + - col0 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + + col1 * col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7038
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) + col0 * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) + col0 * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7039
SELECT ALL col0 * + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT col0 + - 94 DIV - col1 FROM tab2 AS cor0
----
10
79
84

skipif mysql # not compatible
query I rowsort label-7040
SELECT col0 + - 94 / - col1 FROM tab2 AS cor0
----
10
79
84

query I rowsort
SELECT DISTINCT col1 + + col1 * ( cor0.col2 ) FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - - col2 * - 19 * col0 FROM tab0 AS cor0
----
-138662
-15048
-665

onlyif mysql # use DIV operator for integer division
query I rowsort label-7044
SELECT + cor0.col0 DIV ( + ( + col0 ) ) col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7044
SELECT + cor0.col0 / ( + ( + col0 ) ) col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 * 78 FROM tab0 cor0
----
6708
7098
7566

onlyif mysql # use DIV operator for integer division
query I rowsort label-7046
SELECT - col0 DIV col1 + tab0.col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7046
SELECT - col0 / col1 + tab0.col2 AS col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7047
SELECT ALL col2 DIV + col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL col2 / + col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT DISTINCT + col0 DIV col0 + col1 AS col0 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + col0 / col0 + col1 AS col0 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT col0 + col0 * cor0.col2 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT + + col2 * col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-7051
SELECT + + col2 * col2 / col1 AS col1 FROM tab0 AS cor0
----
0
12
73

query I rowsort
SELECT DISTINCT + + col1 + col0 + + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1155
-1375
-496

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT DISTINCT col2 DIV col2 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT col2 / col2 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT col0 + col1 DIV - col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7054
SELECT col0 + col1 / - col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL col0 * + cor0.col1 - + cor0.col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL col0 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - 73 * - col2 + col1 * - col1 AS col1 FROM tab0 cor0
----
-2295
-4987
-9336

query I rowsort
SELECT ALL 54 + + col2 - - col2 * cor0.col2 FROM tab0 AS cor0
----
1176
56
6860

query I rowsort
SELECT + col0 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - - 64 + col1 * cor0.col2 FROM tab0 cor0
----
161
2902
7526

onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT ALL + + col0 * - cor0.col0 - + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + + col0 * - cor0.col0 - + col2 / + col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col2 * col2 * + col1 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL - 11 + + col2 FROM tab0 AS cor0
----
-10
22
71

query I rowsort
SELECT ALL col2 * cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col2 + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 FROM tab1
----
156
650
90

query I rowsort
SELECT DISTINCT - - ( + col0 ) * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col2 * col2 + col1 AS col0 FROM tab2
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT + tab0.col2 + col0 DIV - tab0.col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-7069
SELECT + tab0.col2 + col0 / - tab0.col2 FROM tab0
----
-34
33
81

query I rowsort
SELECT ALL + col1 + col2 + col0 * col1 FROM tab1
----
1149
158
707

query I rowsort
SELECT - col0 + + ( col2 ) + + tab2.col2 * - col0 FROM tab2
----
-169
-2080
-3043

query I rowsort
SELECT col2 * ( - col1 ) * col2 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + + ( + cor0.col2 ) + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + - col0 col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT 68 * + col1 + - col1 FROM tab2
----
1139
2077
3953

query I rowsort
SELECT - 8 AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

query I rowsort
SELECT ALL col2 * - 24 AS col0 FROM tab1
----
-1296
-1368
-2304

query I rowsort
SELECT ( 81 + col1 ) FROM tab0
----
167
172
178

query I rowsort
SELECT ( ( col0 ) ) AS col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col0 FROM tab2
----
-26
-26
-26

query I rowsort
SELECT - - col0 * + col2 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + + 6 * cor0.col1 FROM tab1 AS cor0
----
156
60
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT DISTINCT + tab2.col1 DIV 48 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + tab2.col1 / 48 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT col1 * ( - 35 ) FROM tab1
----
-350
-455
-910

query I rowsort
SELECT DISTINCT + col1 + - 32 * col2 FROM tab0 AS cor0
----
-2533
-970
65

query I rowsort
SELECT ALL + col1 + ( col2 ) * col2 FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * cor0.col0 + cor0.col2 * col0 col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT + col2 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT ALL col1 DIV + 75 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL col1 / + 75 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col1 + - 42 * + cor0.col2 FROM tab1 AS cor0
----
-2294
-2404
-4045

query I rowsort
SELECT DISTINCT cor0.col2 * - 71 + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1080
-2052
-312

query I rowsort
SELECT + cor0.col1 * - 9 FROM tab1 AS cor0
----
-117
-234
-90

query I rowsort
SELECT + 62 * + col2 AS col1 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT DISTINCT + 17 FROM tab0, tab0 cor0
----
17

query I rowsort
SELECT + - 45 * + col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT + ( - 17 ) + - cor0.col2 * + col1 AS col0 FROM tab1 cor0
----
-1265
-1421
-587

query I rowsort
SELECT + col2 * - cor0.col0 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
-3078
-6432
1242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7098
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 * cor0.col0 * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 * cor0.col0 * + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 - + col1 * + col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7100
SELECT ALL + CAST( NULL AS SIGNED ) - col0 * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + CAST ( NULL AS INTEGER ) - col0 * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col2 + 48 FROM tab1 AS cor0
----
-48
-6
-9

query I rowsort
SELECT col1 + + 89 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT DISTINCT col1 + col0 * + 84 AS col0 FROM tab1 AS cor0
----
278
5386
6733

query I rowsort
SELECT + 70 * + col2 AS col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT ALL col2 * col2 + + 35 * + 21 FROM tab0 AS cor0
----
1824
736
7459

query I rowsort
SELECT DISTINCT + tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + cor0.col1 - + 57 AS col1 FROM tab2 AS cor0
----
-116
-74
-88

query I rowsort
SELECT ALL + tab2.col2 + col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT - col0 * 99 - + col1 AS col0 FROM tab0 AS cor0
----
-2462
-3562
-8902

query I rowsort
SELECT + col2 * cor0.col1 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT col0 * ( 4 ) FROM tab0
----
140
356
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + tab0.col0 col2 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7114
SELECT col1 * + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7114
SELECT col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 10 * tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
170
310
590

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7117
SELECT + - col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + - col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 * + 47 FROM tab2 cor0
----
-329
-3666
-3713

query I rowsort
SELECT ALL col1 + + col1 * 46 AS col0 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT DISTINCT cor0.col1 + ( ( + col2 ) ) AS col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT ALL - - col1 - col0 DIV 55 AS col2 FROM tab1 AS cor0
----
12
26
9

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - - col1 - col0 / 55 AS col2 FROM tab1 AS cor0
----
12
26
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7122
SELECT ALL + + col2 * - ( col0 ) + 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-7122
SELECT ALL + + col2 * - ( col0 ) + col1 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( col0 ) + - col0 * - ( + col1 + + col0 ) * col0 FROM tab0 AS cor0
----
1433879
165095
65424

query I rowsort
SELECT DISTINCT - - col1 - + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col2 + col1 * 1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + cor0.col2 + - col0 * + 37 FROM tab1 AS cor0
----
-2311
-2864
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT ALL col1 * CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + ( cor0.col2 ) FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col2 * ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col1 + - 74 AS col1 FROM tab1 AS cor0
----
-100
-84
-87

query I rowsort
SELECT col1 * + col1 * + col1 - - 45 FROM tab2 AS cor0
----
205424
29836
4958

query I rowsort
SELECT - 58 * col0 - - col0 AS col1 FROM tab1 AS cor0
----
-171
-3648
-4560

query I rowsort
SELECT - ( + col2 ) * col1 + 32 FROM tab0 AS cor0
----
-2806
-65
-7430

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT ALL col0 * col2 - - col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT DISTINCT 27 DIV - col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT 27 / - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 88 + col2 AS col0 FROM tab0 AS cor0
----
121
170
89

query I rowsort
SELECT + 9 AS col0 FROM tab1
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col2 FROM tab2
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL + 69 + + col2 * 74 FROM tab0 AS cor0
----
143
2511
6137

query I rowsort
SELECT + col0 + + cor0.col1 * 19 FROM tab1 AS cor0
----
254
327
497

onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT ALL ( col0 ) DIV - cor0.col1 AS col0 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL ( col0 ) / - cor0.col1 AS col0 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT 72 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT ALL tab0.col1 * col1 AS col0 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 74 ) col0 FROM tab0, tab2 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL - 56 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT - - 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + - col2 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + col1 * - col2 + col0 + - col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) + col2 * 72 AS col0 FROM tab1 AS cor0
----
-768
3726
456

query I rowsort
SELECT DISTINCT + col0 * + 44 + col1 AS col0 FROM tab1
----
158
2826
3533

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT col0 DIV 27 + col0 + col0 col1 FROM tab0
----
181
48
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7153
SELECT col0 / 27 + col0 + col0 col1 FROM tab0
----
181
48
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7154
SELECT DISTINCT tab0.col0 + col2 + - col0 DIV 47 FROM tab0
----
170
36
57

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT tab0.col0 + col2 + - col0 / 47 FROM tab0
----
170
36
57

query I rowsort
SELECT - col0 * 30 + - tab2.col0 AS col1 FROM tab2
----
-217
-2418
-2449

query I rowsort
SELECT DISTINCT - ( col0 ) + col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT + 80 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c

query I rowsort
SELECT ALL - col2 * + col0 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT + col1 + + col1 * + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL - cor0.col2 - + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 72844961641a3f6d21e0110ae40f640c

query I rowsort
SELECT ALL - 8 * col2 FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT ALL - + col1 * - col1 * col0 + + 27 * + col2 + + col1 FROM tab0 AS cor0
----
178481
329439
739314

onlyif mysql # use DIV operator for integer division
query I rowsort label-7163
SELECT - ( - ( - col1 ) ) DIV 82 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7163
SELECT - ( - ( - col1 ) ) / 82 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 53 FROM tab2, tab0 AS cor0
----
53

query I rowsort
SELECT ALL - - col1 + - cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT - 52 * col2 FROM tab2 AS cor0
----
-1352
-1404
-1976

query I rowsort
SELECT DISTINCT + 5 * + col0 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT DISTINCT + 8 * + col1 AS col1 FROM tab0 AS cor0
----
688
728
776

onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT DISTINCT - 9 DIV col2 AS col1 FROM tab0 AS cor0
----
-9
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT - 9 / col2 AS col1 FROM tab0 AS cor0
----
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 + - ( col0 ) col2 FROM tab2 cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT + col1 + col0 * ( - col0 ) DIV + col1 FROM tab1 AS cor0
----
-399
-479
26

skipif mysql # not compatible
query I rowsort label-7171
SELECT + col1 + col0 * ( - col0 ) / + col1 FROM tab1 AS cor0
----
-399
-479
26

query I rowsort
SELECT + col0 * + col0 + cor0.col0 + - col1 AS col0 FROM tab0 cor0
----
1163
514
7919

query I rowsort
SELECT DISTINCT - 78 * + col0 * + ( col2 ) + - cor0.col1 FROM tab0 AS cor0
----
-2827
-569335
-61862

query I rowsort
SELECT ALL 78 + + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2992782538af61bfb9ccb3542d018345

query I rowsort
SELECT - - col1 * col0 + + ( - cor0.col2 ) FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + 14 * col0 AS col2 FROM tab2 cor0
----
1092
1106
98

query I rowsort
SELECT ALL + - 91 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to ef93c6bfa06f5a2259971541054317e0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7178
SELECT CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7178
SELECT CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - + cor0.col0 + - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL - col1 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT tab1.col1 * - ( col0 ) * - 70 AS col0 FROM tab1
----
44800
5460
72800

query I rowsort
SELECT DISTINCT + 40 + col2 FROM tab0
----
122
41
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT - col2 * col2 DIV col1 + col1 FROM tab1
----
-314
-695
-86

skipif mysql # not compatible
query I rowsort label-7183
SELECT - col2 * col2 / col1 + col1 FROM tab1
----
-314
-695
-86

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + ( + col2 * ( 10 ) ) + - tab1.col0 FROM tab1
----
506
537
880

query I rowsort
SELECT col2 * + col2 + - col0 + + col2 FROM tab0 AS cor0
----
-33
1098
6717

query I rowsort
SELECT - + col1 - + 28 FROM tab2 AS cor0
----
-45
-59
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * - col0 col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 * tab2.col2 + - col2 AS col1 FROM tab2
----
1406
650
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 89 col2 FROM tab2
----
-2314
-2403
-3382

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 + col0 + - col1 * col2 FROM tab1 AS cor0
----
-1155
-1375
-496

onlyif mysql # use DIV operator for integer division
query I rowsort label-7194
SELECT col2 DIV 60 - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-79

skipif mysql # not compatible
query I rowsort label-7194
SELECT col2 / 60 - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-79

query I rowsort
SELECT + col0 * - ( - col0 ) + + col2 FROM tab0 AS cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + 9 col0 FROM tab1 cor0
----
-55
-71
6

query I rowsort
SELECT ALL - tab2.col2 - + col1 AS col2 FROM tab2
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT - - col1 * + col2 + col1 + cor0.col0 DIV col0 col2 FROM tab1 AS cor0
----
1262
1431
581

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7198
SELECT - - col1 * + col2 + col1 + cor0.col0 / col0 col2 FROM tab1 AS cor0
----
1262
1431
581

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT 20 + + 35 * col0 FROM tab2 AS cor0
----
265
2750
2785

query I rowsort
SELECT DISTINCT tab1.col1 + - 11 - 22 AS col2 FROM tab1
----
-20
-23
-7

query I rowsort
SELECT DISTINCT + col2 * col1 - 13 * - tab0.col0 * + col1 AS col2 FROM tab0
----
112749
29670
44232

query I rowsort
SELECT ALL col1 - 62 AS col1 FROM tab0
----
24
29
35

query I rowsort
SELECT col2 + + 16 FROM tab1
----
112
70
73

query I rowsort
SELECT col0 + ( col0 ) + + col2 FROM tab1
----
185
256
60

query I rowsort
SELECT ALL 8 + col1 + col1 FROM tab2
----
126
42
70

query I rowsort
SELECT - - ( col0 ) * - col0 + - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - - 44 + col0 AS col1 FROM tab0 AS cor0
----
133
68
79

query I rowsort
SELECT ALL + - col1 + + col2 * col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL - 96 FROM tab1 cor0
----
-96
-96
-96

query I rowsort
SELECT ALL - - 93 + + col1 FROM tab0 AS cor0
----
179
184
190

query I rowsort
SELECT - cor0.col0 + - col1 * + col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - ( - 94 ) FROM tab2 cor0
----
94
94
94

query I rowsort
SELECT - + ( + 45 ) * - cor0.col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL 82 * col0 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT col1 + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - - col0 * col1 - + 35 AS col0 FROM tab2 cor0
----
1308
182
4567

query I rowsort
SELECT - + cor0.col1 + + 42 AS col0 FROM tab0 AS cor0
----
-44
-49
-55

query I rowsort
SELECT - col2 + 24 AS col2 FROM tab2 AS cor0
----
-14
-2
-3

query I rowsort
SELECT ALL + - col0 * ( + col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - 51 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + + col2 col0 FROM tab2
----
123
124
135

query I rowsort
SELECT DISTINCT + 5 + col0 AS col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT DISTINCT + col2 * - ( - col2 ) + ( 24 ) AS col1 FROM tab2 AS cor0
----
1468
700
753

query I rowsort
SELECT + ( + 46 ) AS col2 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - - cor0.col1 * 20 + col1 * + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
1521
1950
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 * + ( - col2 ) col0 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT DISTINCT + ( col2 ) + - col2 * 29 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT + col2 * ( col0 ) + + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 * + 49 col0 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col2 + - 34 AS col2 FROM tab2 AS cor0
----
1347
210
4594

query I rowsort
SELECT ALL - 51 + col0 AS col2 FROM tab2 AS cor0
----
-44
27
28

query I rowsort
SELECT DISTINCT + ( col0 ) + + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + 73 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2

query I rowsort
SELECT ( + col1 ) * 90 AS col1 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT DISTINCT col2 + col2 * ( + col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
119904
32547
75870

onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT col0 + + col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-7238
SELECT col0 + + col1 / + col0 AS col2 FROM tab1 AS cor0
----
11
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT + col1 DIV - col0 + cor0.col2 * + col2 col0 FROM tab0 AS cor0
----
-1
1086
6723

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7239
SELECT + col1 / - col0 + cor0.col2 * + col2 col0 FROM tab0 AS cor0
----
-1
1086
6723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + ( col0 ) * cor0.col2 col1 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) + - cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL col0 + 78 FROM tab1 AS cor0
----
142
158
81

query I rowsort
SELECT col0 - 85 * - 86 FROM tab1 cor0
----
7313
7374
7390

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT col2 DIV - col1 + - 23 AS col2 FROM tab1
----
-25
-28
-30

skipif mysql # not compatible
query I rowsort label-7245
SELECT col2 / - col1 + - 23 AS col2 FROM tab1
----
-25
-28
-30

query I rowsort
SELECT DISTINCT - - col1 * + 25 AS col2 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT - ( 66 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7249
SELECT - col0 * ( - col2 ) + col0 DIV cor0.col1 FROM tab1 cor0
----
162
3654
7686

skipif mysql # not compatible
query I rowsort label-7249
SELECT - col0 * ( - col2 ) + col0 / cor0.col1 FROM tab1 cor0
----
162
3654
7686

query I rowsort
SELECT ALL cor0.col0 + 52 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT + col0 - 4 FROM tab2 AS cor0
----
3
74
75

query I rowsort
SELECT DISTINCT + + col0 * + col2 - + col0 * - cor0.col1 FROM tab1 AS cor0
----
240
4288
8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7253
SELECT ALL - - CAST( + ( + col0 ) AS SIGNED ) * + col1 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL - - CAST ( + ( + col0 ) AS INTEGER ) * + col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - col1 + col2 - + 83 AS col2 FROM tab0
----
-136
-179
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7255
SELECT ALL - col0 * col0 - - col1 / CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - col0 * col0 - - col1 / CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - col2 + col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 * + col1 - - col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + col2 + col1 - + col2 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - ( - cor1.col0 ) AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - tab2.col1 + - ( ( tab2.col1 ) + 3 ) FROM tab2
----
-121
-37
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7261
SELECT + col2 DIV 98 + col0 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7261
SELECT + col2 / 98 + col0 AS col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + 16 col1 FROM tab0
----
105
40
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7263
SELECT - col2 + ( - tab1.col1 ) * col1 DIV - col0 + - tab1.col2 DIV col1 FROM tab1
----
-101
-61
169

skipif mysql # not compatible
query I rowsort label-7263
SELECT - col2 + ( - tab1.col1 ) * col1 / - col0 + - tab1.col2 / col1 FROM tab1
----
-101
-61
169

query I rowsort
SELECT ALL - 28 FROM tab2 cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - + 96 AS col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - 81 * 64 AS col1 FROM tab0 AS cor0
----
-5184
-5184
-5184

query I rowsort
SELECT tab0.col0 * ( - tab0.col1 ) - col1 AS col1 FROM tab0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - tab2.col2 * + col2 ) col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT 90 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL - - ( 30 ) AS col2 FROM tab2 cor0
----
30
30
30

query I rowsort
SELECT - col2 + 61 + col1 * 6 * - 5 FROM tab0 AS cor0
----
-2552
-2751
-2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + col0 * col2 col2 FROM tab0 AS cor0
----
70
7333
827

query I rowsort
SELECT - 60 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7274
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( tab2.col0 ) * ( 56 ) AS col2 FROM tab2
----
392
4368
4424

query I rowsort
SELECT DISTINCT 5 * + col1 AS col2 FROM tab0
----
430
455
485

query I rowsort
SELECT ( + col2 ) + 84 FROM tab2
----
110
111
122

query I rowsort
SELECT ( col0 ) + col2 * ( col2 ) FROM tab1
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7279
SELECT DISTINCT + - col1 + + CAST( 70 AS SIGNED ) * - cor0.col2 FROM tab2 cor0
----
-1879
-1921
-2677

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT + - col1 + + CAST ( 70 AS INTEGER ) * - cor0.col2 FROM tab2 cor0
----
-1879
-1921
-2677

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7280
SELECT + + cor0.col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT + + cor0.col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col1 + 15 FROM tab2 AS cor0
----
1358
232
4617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 * - 61 col1 FROM tab0 AS cor0
----
-1464
-2135
-5429

query I rowsort
SELECT + + col2 * col0 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + col0 * 77 + col0 FROM tab0 cor0
----
1872
2730
6942

query I rowsort
SELECT - - cor0.col0 * 55 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT + cor0.col1 * + 39 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col0 * 67 * 57 FROM tab2 AS cor0
----
-26733
-297882
-301701

query I rowsort
SELECT col2 - ( col1 * col1 + 0 ) AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + cor0.col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 * + 14 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ef3784805f9e930a260b08af3d5c78e4

query I rowsort
SELECT ( + 5 ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT + col1 - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - 6 * + col1 * col0 + + col1 * - col0 * 57 AS col1 FROM tab2 AS cor0
----
-13671
-289926
-84609

query I rowsort
SELECT - col0 * col2 + - 90 FROM tab1 AS cor0
----
-252
-3738
-7770

query I rowsort
SELECT col0 * + 98 + - ( col0 ) AS col2 FROM tab1 cor0
----
291
6208
7760

query I rowsort
SELECT - col2 * + 95 * col1 AS col0 FROM tab2 AS cor0
----
-145730
-61370
-79515

query I rowsort
SELECT DISTINCT col2 * ( 41 ) FROM tab2 AS cor0
----
1066
1107
1558

query I rowsort
SELECT + - col2 * - col1 * + col1 + - col2 FROM tab2 AS cor0
----
10944
25920
90480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7300
SELECT DISTINCT + tab1.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT + tab1.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7301
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col2 * - col2 + + col2 * + col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 82 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT + + 41 * - col0 * col1 AS col0 FROM tab1 AS cor0
----
-26240
-3198
-42640

query I rowsort
SELECT + + cor0.col2 + 98 AS col0 FROM tab1 cor0
----
152
155
194

query I rowsort
SELECT - + ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ( + cor0.col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - 43 * + col0 AS col2 FROM tab2 cor0
----
-301
-3354
-3397

query I rowsort
SELECT col1 * + 19 + col2 FROM tab2
----
1147
361
616

query I rowsort
SELECT - 19 + + col0 FROM tab0 AS cor0
----
16
5
70

query I rowsort
SELECT + col1 * 54 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT ALL - col2 + 86 FROM tab1
----
-10
29
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 * - col1 ) col0 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7314
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 55 * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 55 * col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 73 + + col1 * col2 + col0 * - col1 FROM tab0 AS cor0
----
-3225
-564
847

query I rowsort
SELECT DISTINCT + col2 * col1 * - 57 AS col0 FROM tab0 AS cor0
----
-161766
-425334
-5529

query I rowsort
SELECT ALL + col1 - col2 * - col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL + col0 * - col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL + + col0 + - cor0.col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 30 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1770
-510
-930

query I rowsort
SELECT ALL - - 15 AS col2 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-7323
SELECT + col1 DIV + col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7323
SELECT + col1 / + col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - + 30 * - col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT - 97 + - col1 FROM tab1
----
-107
-110
-123

onlyif mysql # use DIV operator for integer division
query I rowsort label-7326
SELECT DISTINCT 46 DIV - col0 FROM tab1
----
-15
0

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT 46 / - col0 FROM tab1
----
-15
0

query I rowsort
SELECT ALL 5 * tab2.col2 AS col1 FROM tab2
----
130
135
190

query I rowsort
SELECT ( - 20 ) AS col2 FROM tab0
----
-20
-20
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7329
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + - col0 * col1 + 91 AS col2 FROM tab0 AS cor0
----
-1973
-3304
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7331
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7331
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7332
SELECT - col1 DIV 37 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT - col1 / 37 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - 57 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7334
SELECT ALL - - 39 DIV col0 AS col0 FROM tab2 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - - 39 / col0 AS col0 FROM tab2 cor0
----
0
0
5

query I rowsort
SELECT + + ( 48 ) * col2 FROM tab0 AS cor0
----
1584
3936
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-7336
SELECT + col2 + + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7336
SELECT + col2 + + col2 / col2 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - + col0 + ( col0 ) * cor0.col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - col1 + 17 AS col0 FROM tab2 AS cor0
----
-14
-42
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 + + col1 + + col1 col1 FROM tab2
----
124
152
208

query I rowsort
SELECT DISTINCT - 40 FROM tab1, tab0, tab0 AS cor0
----
-40

query I rowsort
SELECT col0 + col2 + tab1.col1 FROM tab1
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 + - col1 col2 FROM tab0
----
-69
-74
-80

query I rowsort
SELECT - col0 * + col2 + ( 70 ) FROM tab1
----
-3578
-7610
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT tab0.col1 * col1 + col0 DIV 20 FROM tab0
----
7397
8285
9410

skipif mysql # not compatible
query I rowsort label-7344
SELECT tab0.col1 * col1 + col0 / 20 FROM tab0
----
7397
8285
9410

query I rowsort
SELECT + 76 * col2 FROM tab1
----
4104
4332
7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-7346
SELECT DISTINCT - col0 DIV + 26 AS col0 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - col0 / + 26 AS col0 FROM tab2
----
-3
0

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 1 * - tab0.col1 + - col2 col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT + tab2.col0 * col0 + + 9 FROM tab2
----
58
6093
6250

query I rowsort
SELECT ALL + col0 + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - cor0.col2 col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7352
SELECT col2 + col1 DIV col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-7352
SELECT col2 + col1 / col1 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-7353
SELECT + col0 DIV + col1 + - col1 + + cor0.col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7353
SELECT + col0 / + col1 + - col1 + + cor0.col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT + + col1 * 30 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT ALL + 70 * + 16 FROM tab1, tab1 AS cor0
----
9 values hashing to 57cb793d9b4843ec07a65e0be2670e49

query I rowsort
SELECT DISTINCT col0 * + 64 AS col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT DISTINCT col2 + - 92 FROM tab2 AS cor0
----
-54
-65
-66

query I rowsort
SELECT ALL col1 * col0 - 39 * - col2 FROM tab0 AS cor0
----
11297
3351
3434

query I rowsort
SELECT cor0.col2 + 45 FROM tab0 cor0
----
127
46
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT DISTINCT col1 + ( col2 ) DIV + col2 - + col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT col1 + ( col2 ) / + col2 - + col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col0 * 27 + col1 FROM tab0
----
-2312
-562
-848

query I rowsort
SELECT - col2 * col0 * col1 AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + col0 * - col0 - - col1 AS col2 FROM tab1
----
-4086
-6387
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col1 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + + col1 * - 58 FROM tab2 AS cor0
----
-1798
-3422
-986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 45 + + col0 * col0 col0 FROM tab2 AS cor0
----
1444
7006
8739

query I rowsort
SELECT DISTINCT - 40 * - col1 AS col0 FROM tab2
----
1240
2360
680

query I rowsort
SELECT DISTINCT + + 11 + col1 FROM tab2 AS cor0
----
28
42
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT DISTINCT col0 + + tab2.col2 * tab2.col0 DIV - col0 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT col0 + + tab2.col2 * tab2.col0 / - col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT + 4 + - col1 + + cor0.col1 * 5 AS col2 FROM tab2 AS cor0
----
128
240
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7371
SELECT ALL + + cor0.col2 DIV cor0.col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL + + cor0.col2 / cor0.col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 96 * col1 - cor0.col2 * col0 FROM tab0 cor0
----
1438
7464
9277

query I rowsort
SELECT DISTINCT + col1 * + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT + col2 + + col0 + - col1 AS col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT tab1.col0 FROM tab1, tab2 AS cor0, tab0 cor1 WHERE NOT ( - cor0.col2 ) <= NULL
----

query I rowsort
SELECT + - col2 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT ALL + 71 + - col0 FROM tab1 AS cor0
----
-9
68
7

query I rowsort
SELECT ALL - cor0.col2 + col2 * col1 * col0 AS col2 FROM tab2 AS cor0
----
119626
50996
5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 + + col0 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - + col2 * col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col1 + - cor0.col0 + - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2174
-3527
-8279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col1 FROM tab0 AS cor0
----
78

query I rowsort
SELECT + col0 * col2 + col1 + + col1 * col2 FROM tab0 AS cor0
----
14851
229
3716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ( + col2 ) * col2 + + col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT DISTINCT cor0.col2 + tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1b6920525e1810523fdee3171c929510

query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - col0 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + col2 * - ( + col0 ) * col2 AS col1 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL 28 * + cor0.col0 FROM tab2 AS cor0
----
196
2184
2212

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + cor0.col1 AS REAL ) * - col0 * - cor0.col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT cor0.col1 * col0 + col1 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 * cor0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a4c03ca6c2bf093d444de067328ee864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7394
SELECT ALL CAST( col1 AS SIGNED ) col1 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL CAST ( col1 AS INTEGER ) col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + 2 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + 70 * - 48 AS col1 FROM tab0 cor0
----
-3360
-3360
-3360

query I rowsort
SELECT DISTINCT + col1 + + col0 * cor0.col1 AS col1 FROM tab1 cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-7398
SELECT 89 DIV + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-29

skipif mysql # not compatible
query I rowsort label-7398
SELECT 89 / + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-29

query I rowsort
SELECT ALL 20 * col1 + + col2 - + 31 AS col0 FROM tab0
----
1722
1871
1910

query I rowsort
SELECT col2 * 88 FROM tab1
----
4752
5016
8448

query I rowsort
SELECT + ( col2 + - col1 * - 33 ) AS col1 FROM tab0
----
2871
3085
3202

query I rowsort
SELECT col0 * + col2 + col0 AS col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - col1 + col2 - - col2 FROM tab2
----
-7
23
59

query I rowsort
SELECT ALL 36 * - col0 - + col0 * 37 FROM tab1
----
-219
-4672
-5840

query I rowsort
SELECT 0 + tab0.col0 + - 64 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cb7adfb51e92cc5b17c81b0921e7a0d6

query I rowsort
SELECT col2 - - 67 AS col2 FROM tab1 AS cor0
----
121
124
163

query I rowsort
SELECT col2 + - ( - col0 + col1 ) AS col0 FROM tab1 AS cor0
----
111
163
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - col0 col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + col2 + col0 * - col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + 40 * - tab1.col0 FROM tab1
----
-120
-2560
-3200

onlyif mysql # use DIV operator for integer division
query I rowsort label-7411
SELECT - col1 DIV - 48 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT - col1 / - 48 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - ( tab0.col2 ) * 33 AS col1 FROM tab0
----
-1089
-2706
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) * + col2 col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT + + cor0.col1 * - ( ( col2 ) + - 42 ) * col2 FROM tab2 AS cor0
----
12555
24544
2584

query I rowsort
SELECT - col1 + + 79 FROM tab1 AS cor0
----
53
66
69

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + - col0 + + col1 FROM tab2 AS cor0
----
1382
657
753

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - - 25 * col0 * - col1 + 73 AS col1 FROM tab2 AS cor0
----
-114977
-33502
-5352

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * col2 + 47 FROM tab0 cor0
----
-15
7254
753

onlyif mysql # use DIV operator for integer division
query I rowsort label-7421
SELECT DISTINCT col2 DIV 21 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT col2 / 21 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT DISTINCT + - col2 + - 45 DIV - col1 FROM tab2 AS cor0
----
-26
-36

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT + - col2 + - 45 / - col1 FROM tab2 AS cor0
----
-26
-36

query I rowsort
SELECT ALL cor0.col2 * 36 + + col0 FROM tab0 AS cor0
----
1212
3041
71

query I rowsort
SELECT ALL - col0 * col0 + + col1 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col0 + + ( - col0 + + col2 ) AS col1 FROM tab2
----
-120
-130
13

query I rowsort
SELECT col0 * + ( - col1 ) + col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT + tab0.col1 DIV + 5 - col2 AS col1 FROM tab0
----
-16
-64
18

skipif mysql # not compatible
query I rowsort label-7427
SELECT + tab0.col1 / + 5 - col2 AS col1 FROM tab0
----
-16
-64
18

query I rowsort
SELECT DISTINCT - 71 + col1 AS col2 FROM tab1 AS cor0
----
-45
-58
-61

query I rowsort
SELECT - col1 * + col2 + - 78 FROM tab2 AS cor0
----
-1612
-724
-915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col2 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT ALL - ( + col1 ) * + 75 * + col1 AS col1 FROM tab0 AS cor0
----
-554700
-621075
-705675

onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT DISTINCT + col2 + + col0 * ( col2 ) DIV + col2 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + col2 + + col0 * ( col2 ) / + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ( + tab1.col1 ) * - tab1.col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL - ( - 80 ) + + tab0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0d2352c41ee236fe2558e28bdd8c5eff

query I rowsort
SELECT DISTINCT + ( 71 ) AS col2 FROM tab0
----
71

query I rowsort
SELECT ALL - - col0 + col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab1
----
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7438
SELECT + CAST( - col0 AS SIGNED ) col2 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7438
SELECT + CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - cor1.col0 - 77 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-141
-157
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT ALL + 17 DIV col0 + ( + ( - col0 ) + 54 ) AS col0 FROM tab1
----
-10
-26
56

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + 17 / col0 + ( + ( - col0 ) + 54 ) AS col0 FROM tab1
----
-10
-26
56

query I rowsort
SELECT DISTINCT - col2 + col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + col1 col1 FROM tab0 AS cor0
----
118
123
129

query I rowsort
SELECT 18 + + col0 * col2 - col1 * - col2 FROM tab0
----
14778
150
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT col2 DIV - col0 - + col2 * - cor0.col0 * - col0 FROM tab2 AS cor0
----
-1326
-158184
-237158

skipif mysql # not compatible
query I rowsort label-7445
SELECT col2 / - col0 - + col2 * - cor0.col0 * - col0 FROM tab2 AS cor0
----
-1326
-158184
-237158

query I rowsort
SELECT DISTINCT + - 8 AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL 93 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
147
150
189

query I rowsort
SELECT + col0 - col2 * 6 AS col0 FROM tab1 AS cor0
----
-278
-321
-496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7449
SELECT ALL ( col0 ) * CAST( NULL AS SIGNED ) + - ( col1 * col2 + - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL ( col0 ) * CAST ( NULL AS INTEGER ) + - ( col1 * col2 + - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * cor0.col1 col1 FROM tab2 AS cor0
----
221
403
767

query I rowsort
SELECT col0 * - cor0.col2 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL - col1 - col0 AS col0 FROM tab2
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col2 FROM tab0, tab2, tab1 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 - col2 col2 FROM tab0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 + col1 col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - 69 - col2 FROM tab1 AS cor0
----
-123
-126
-165

query I rowsort
SELECT ALL col2 * tab1.col0 - + col1 AS col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL + 11 FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - col1 + + tab1.col0 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT + col2 * col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 + - col1 col1 FROM tab2 AS cor0
----
10
38
52

query I rowsort
SELECT 38 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1178
-2242
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-7464
SELECT ALL - cor0.col2 DIV col1 - - ( col0 ) FROM tab1 cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - cor0.col2 / col1 - - ( col0 ) FROM tab1 cor0
----
1
59
73

query I rowsort
SELECT 5 * + col0 AS col0 FROM tab0
----
120
175
445

query I rowsort
SELECT ALL - 47 + + col1 AS col0 FROM tab1
----
-21
-34
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7467
SELECT ALL + col0 DIV ( tab0.col0 ) AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + col0 / ( tab0.col0 ) AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - 46 * + col2 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT ALL + 47 * cor0.col0 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT + ( - 10 ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to d02dd3860bad8257b8dc483efe370af0

query I rowsort
SELECT col1 + ( + col1 ) * col1 * - col1 AS col0 FROM tab1
----
-17550
-2184
-990

query I rowsort
SELECT DISTINCT + 28 * col2 FROM tab1
----
1512
1596
2688

query I rowsort
SELECT DISTINCT + ( - 44 * + col0 + col1 ) FROM tab0
----
-1443
-3825
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-7474
SELECT ALL + 44 DIV - 6 + - col1 FROM tab0 AS cor0
----
-104
-93
-98

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + 44 / - 6 + - col1 FROM tab0 AS cor0
----
-104
-93
-98

query I rowsort
SELECT ALL 78 - tab1.col0 FROM tab1
----
-2
14
75

query I rowsort
SELECT DISTINCT + 44 * col2 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT + 15 FROM tab2, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT - col0 + 14 * col1 AS col1 FROM tab2 cor0
----
159
427
748

query I rowsort
SELECT - col0 * 79 AS col0 FROM tab1 AS cor0
----
-237
-5056
-6320

query I rowsort
SELECT ALL - col2 * 67 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT ALL - col0 * 9 AS col2 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT + ( cor0.col2 ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7483
SELECT ALL + CAST( NULL AS DECIMAL ) + col0 * col2 * col1 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-7483
SELECT ALL + CAST ( NULL AS REAL ) + col0 * col2 * col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT DISTINCT - cor0.col1 * col0 - - col1 DIV + 34 col1 FROM tab2 cor0
----
-1343
-217
-4601

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - cor0.col1 * col0 - - col1 / + 34 col1 FROM tab2 cor0
----
-1343
-217
-4601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7486
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col1 - ( - col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + - 59 * - 27 AS col0 FROM tab0 cor0
----
1593
1593
1593

onlyif mysql # use DIV operator for integer division
query I rowsort label-7489
SELECT 75 DIV cor0.col1 col2 FROM tab2 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7489
SELECT 75 / cor0.col1 col2 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col2 + - 98 AS col2 FROM tab0 AS cor0
----
-16
-65
-97

query I rowsort
SELECT ALL 47 AS col0 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT 68 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - + col2 * + col1 + + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - - ( + col0 ) * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT 87 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
87

query I rowsort
SELECT ALL + col1 * - ( + 63 ) AS col2 FROM tab2 AS cor0
----
-1071
-1953
-3717

query I rowsort
SELECT DISTINCT col2 + ( + col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 * ( + col1 ) + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col2 + col1 * col0 * + col2 FROM tab2 AS cor0
----
119678
51072
5886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col0 + - cor0.col1 * + col2 * + ( - 94 * + cor0.col0 ) col1 FROM tab0 AS cor0
----
317905
62419171
6401952

query I rowsort
SELECT ALL col2 + ( col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7503
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7503
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 83 + - 50 FROM tab0 cor0
----
33
33
33

query I rowsort
SELECT ALL + col2 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-7506
SELECT DISTINCT tab1.col2 DIV - col2 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT tab1.col2 / - col2 AS col1 FROM tab1
----
-1

query I rowsort
SELECT col1 + 24 FROM tab2
----
41
55
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7508
SELECT col2 * + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-7508
SELECT col2 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col0 * col1 + + col2 FROM tab0
----
-2031
-3394
-8017

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT + col0 DIV col0 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7511
SELECT + col0 / col0 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT cor0.col2 - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < col1 * col0
----

query I rowsort
SELECT col0 - + tab1.col2 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT col0 * + col0 + + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT - tab2.col2 + col2 * col1 AS col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT ALL col1 + col0 * tab2.col0 FROM tab2
----
6143
6258
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT ALL col1 + - col0 FROM tab2 WHERE + col1 NOT IN ( + col0 * + col1 * - col0 )
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT DISTINCT + col0 + tab2.col2 * - col0 DIV col0 AS col1 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + col0 + tab2.col2 * - col0 / col0 AS col1 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT - col0 DIV col1 + + col0 + col2 col0 FROM tab1
----
115
170
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7521
SELECT - col0 / col1 + + col0 + col2 col0 FROM tab1
----
115
170
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT - + col1 DIV - col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7522
SELECT - + col1 / - col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND NULL OR + col1 * - col0 BETWEEN NULL AND col1 + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7524
SELECT - col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT - col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + col0 + col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL - col2 * + col1 + + col0 AS col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT + + col1 * - col1 * col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT + col2 + col0 * + col0 * col0 FROM tab0 cor0
----
13857
42876
705051

query I rowsort
SELECT + col0 * - col0 + + col1 * - col2 FROM tab0
----
-1322
-15383
-3414

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7530
SELECT col1 * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT col1 * col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * col0 + + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT + col1 + + col2 * + col0 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-7533
SELECT DISTINCT col2 DIV col0 + col0 AS col2 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT col2 / col0 + col0 AS col2 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT ALL col2 * + col0 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT cor0.col1 * - 44 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
25090
54925
61802

query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-7537
SELECT + cor0.col1 DIV - col1 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7537
SELECT + cor0.col1 / - col1 AS col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col2 + 12 FROM tab0 AS cor0
----
-21
-70
11

query I rowsort
SELECT ALL + + col2 * ( - col2 + col1 ) AS col0 FROM tab1 cor0
----
-1512
-2679
-7968

query I rowsort
SELECT ALL col1 + col0 + col0 AS col2 FROM tab0
----
134
167
269

query I rowsort
SELECT col2 * tab1.col1 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL col0 + - col0 + col2 * - tab1.col2 * col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT DISTINCT tab0.col0 * col1 + col1 + col2 FROM tab0
----
2183
3493
8272

query I rowsort
SELECT DISTINCT + col0 + + col2 + col0 FROM tab2
----
182
196
41

query I rowsort
SELECT + tab2.col2 * + col2 * - col2 AS col0 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT col2 * tab1.col2 - col1 AS col0 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT ALL col1 * tab2.col1 * col1 AS col2 FROM tab2 WHERE NULL NOT IN ( - col1 / col2 )
----

query I rowsort
SELECT - col1 + + col1 * - col1 FROM tab0
----
-7482
-8372
-9506

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 + col2 ) NOT IN ( col1 + - col2 )
----

query I rowsort
SELECT - col0 + col0 * - col1 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT - col0 + tab2.col1 * col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT ALL col0 * tab0.col0 + col1 AS col1 FROM tab0
----
1322
662
8012

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> ( col2 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE ( - col2 + col1 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= ( col1 / col1 )
----

query I rowsort
SELECT col1 * tab0.col0 * - col1 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7557
SELECT DISTINCT - - 54 * - col2 + + CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1378
-1431
-2014

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT - - 54 * - col2 + + CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT - col1 * tab0.col0 + col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + 75 AS col2 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-7560
SELECT ALL + col2 DIV col0 col0 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + col2 / col0 col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7561
SELECT ALL + col1 DIV + col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + col1 / + col1 AS col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - tab2.col1 * col2 + col1 col0 FROM tab2
----
-1553
-708
-813

query I rowsort
SELECT + col1 * col2 + - col2 * col0 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT + tab1.col2 * + col1 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT - col2 + - col2 * - tab0.col0 FROM tab0 WHERE NOT ( col0 ) BETWEEN - col1 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 86 FROM tab1, tab0 AS cor0, tab1 cor1
----
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7567
SELECT ALL + tab0.col2 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + tab0.col2 / col0 AS col2 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 16 col2 FROM tab0 AS cor0
----
-1312
-16
-528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7569
SELECT DISTINCT + col2 * CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT + col2 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col2 * - 7 FROM tab0 AS cor0
----
-231
-574
-7

query I rowsort
SELECT ALL + + cor0.col0 + - 24 * - 91 AS col1 FROM tab1 AS cor0
----
2187
2248
2264

onlyif mysql # use DIV operator for integer division
query I rowsort label-7572
SELECT ALL - + col1 DIV - col0 AS col1 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - + col1 / - col0 AS col1 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT 67 + 85 * - col2 FROM tab2 AS cor0
----
-2143
-2228
-3163

query I rowsort
SELECT + cor0.col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + ( col2 ) * - col0 - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 + col0 * ( - cor0.col2 ) + - col2 col0 FROM tab1 AS cor0
----
-1620
-4275
-9024

query I rowsort
SELECT - - ( 3 ) * - col2 AS col1 FROM tab2 AS cor0
----
-114
-78
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7578
SELECT ALL CAST( - 0 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL CAST ( - 0 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - 58 ) AS col2 FROM tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT col1 * + ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 92 * - 44 * col0 FROM tab1 AS cor0
----
-12144
-259072
-323840

query I rowsort
SELECT + ( col0 ) + + col2 + 79 AS col0 FROM tab1 AS cor0
----
136
200
255

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7583
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7583
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7584
SELECT ALL + cor1.col0 * + cor1.col2 + - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL + cor1.col0 * + cor1.col2 + - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 22 + ( - cor0.col1 ) * - col1 * ( + col1 + + ( col2 ) ) AS col2 FROM tab0 cor0
----
1432635
880146
922104

onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT - col1 DIV + col1 + col2 AS col2 FROM tab2 cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-7586
SELECT - col1 / + col1 + col2 AS col2 FROM tab2 cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - + col1 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - 79 - col2 AS col0 FROM tab0 cor0
----
-112
-161
-80

query I rowsort
SELECT col2 * - col0 + 27 FROM tab0 AS cor0
----
-7271
-765
-8

query I rowsort
SELECT DISTINCT - + cor0.col2 + col2 + ( - 43 ) AS col0 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT - + col2 * + col0 + 39 FROM tab2 AS cor0
----
-150
-1989
-2963

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - - 59 * + col0 + ( + col0 ) + - cor0.col2 FROM tab0 AS cor0
----
1407
2099
5258

onlyif mysql # use DIV operator for integer division
query I rowsort label-7594
SELECT ALL + + cor0.col1 - + col2 DIV 55 FROM tab0 cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + + cor0.col1 - + col2 / 55 FROM tab0 cor0
----
86
90
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col1 FROM tab1 AS cor0
----
14

query I rowsort
SELECT + - 21 * col1 AS col0 FROM tab0 AS cor0
----
-1806
-1911
-2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-7597
SELECT tab2.col2 DIV 49 + - tab2.col2 * + ( - col0 ) col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7597
SELECT tab2.col2 / 49 + - tab2.col2 * + ( - col0 ) col0 FROM tab2
----
189
2028
3002

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 - + 84 - + col0 AS col0 FROM tab1 AS cor0
----
-148
-164
-87

query I rowsort
SELECT DISTINCT + - col0 + col2 + + ( col0 * col0 ) AS col1 FROM tab0 AS cor0
----
1191
585
7914

query I rowsort
SELECT + + col0 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - col1 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - - col1 + - 53 AS col0 FROM tab2 cor0
----
-22
-36
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7604
SELECT col0 + CAST( NULL AS SIGNED ) * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT col0 + CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col1 + + ( 56 ) * col2 AS col1 FROM tab0
----
12873
9244
9465

query I rowsort
SELECT + col2 + + ( col0 * + cor0.col2 ) + col2 AS col0 FROM tab0 AS cor0
----
37
7462
858

query I rowsort
SELECT 46 + - col2 AS col1 FROM tab1
----
-11
-50
-8

query I rowsort
SELECT ALL ( cor0.col1 ) AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + col2 + - col0 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT 85 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - ( col1 ) * col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 98 - ( col2 + ( + col2 ) ) * col1 FROM tab0 AS cor0
----
-14826
-5578
-96

query I rowsort
SELECT + 33 + - col2 * col2 FROM tab2 AS cor0
----
-1411
-643
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col2 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab2, tab0, tab1 AS cor0
----
-94

query I rowsort
SELECT - 68 + - 97 AS col1 FROM tab2 AS cor0
----
-165
-165
-165

query I rowsort
SELECT ALL col0 + col0 * + col1 + - 82 FROM tab0
----
2006
3348
8106

query I rowsort
SELECT ALL ( 55 ) * col1 + + cor0.col0 AS col1 FROM tab0 cor0
----
4754
5094
5370

query I rowsort
SELECT + + ( 68 ) AS col2 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT + - ( + col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + cor0.col2 * col1 + cor0.col0 * 11 AS col2 FROM tab1 AS cor0
----
1274
1437
2128

onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT + 89 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7623
SELECT + 89 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 + + col0 * - 56 AS col1 FROM tab0 cor0
----
-1287
-1924
-4813

query I rowsort
SELECT + 59 + col1 FROM tab2 AS cor0
----
118
76
90

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT 41 * + cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 0460cb0a4638c7341e74500318b00373

query I rowsort
SELECT DISTINCT + - col2 + col2 AS col1 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7629
SELECT + col2 DIV - 3 - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7407
-8308
-9409

skipif mysql # not compatible
query I rowsort label-7629
SELECT + col2 / - 3 - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7407
-8308
-9409

query I rowsort
SELECT col0 - + col1 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT + + col2 + ( col0 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - 10 * col0 AS col2 FROM tab0
----
-240
-350
-890

onlyif mysql # use DIV operator for integer division
query I rowsort label-7633
SELECT ALL + cor0.col1 + + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + cor0.col1 + + col1 / + col1 AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - 65 + col2 FROM tab1 AS cor0
----
-11
-8
31

query I rowsort
SELECT - col1 * 5 + col2 * + col2 * ( + col1 ) FROM tab0 AS cor0
----
-388
611429
93224

query I rowsort
SELECT DISTINCT + - 31 + col0 FROM tab0 AS cor0
----
-7
4
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT ALL - ( + 74 ) * - col0 + - CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL - ( + 74 ) * - col0 + - CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7638
SELECT DISTINCT + col2 DIV 53 - col1 FROM tab0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT + col2 / 53 - col1 FROM tab0
----
-86
-90
-97

query I rowsort
SELECT + cor0.col1 + - 78 FROM tab2, tab2 cor0
----
9 values hashing to b83705376d65d028205dfe7f6bf77cab

query I rowsort
SELECT ALL + tab0.col2 * - 30 AS col0 FROM tab0
----
-2460
-30
-990

query I rowsort
SELECT + ( - cor0.col0 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT - 95 * - 68 * - col0 FROM tab0 AS cor0
----
-155040
-226100
-574940

query I rowsort
SELECT cor0.col2 * col0 - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT cor0.col0 * 57 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
399
4446
4503

query I rowsort
SELECT DISTINCT + col0 - + 38 AS col0 FROM tab0
----
-14
-3
51

query I rowsort
SELECT - tab1.col0 * tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7647
SELECT DISTINCT - col2 * col0 + col1 DIV - 21 FROM tab1
----
-163
-3648
-7680

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT - col2 * col0 + col1 / - 21 FROM tab1
----
-163
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7648
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * col2 / + col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * col2 / + col1 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col0 * + 10 AS col0 FROM tab2
----
70
780
790

query I rowsort
SELECT ( - col2 ) * + col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - ( + col1 ) + + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ( - col2 * - col1 ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col0 + 6 * + col0 - + 39 AS col0 FROM tab2
----
-4
351
356

query I rowsort
SELECT ( - col1 ) * - tab2.col0 + + 60 AS col1 FROM tab2
----
1403
277
4662

query I rowsort
SELECT + + ( - col1 ) * col1 + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + 27 - 38 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + col1 + - 96 FROM tab0 AS cor0
----
-10
-5
1

query I rowsort
SELECT ALL + - 34 - - col0 AS col0 FROM tab2 AS cor0
----
-27
44
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 69 + col0 col1 FROM tab0
----
5958
6368
6728

query I rowsort
SELECT DISTINCT + ( + 58 ) + col2 AS col0 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT + 81 - + col0 * - ( col2 + col0 ) * + col0 FROM tab2
----
1747
632817
730278

query I rowsort
SELECT - ( - col1 * col1 ) AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT - 27 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775

query I rowsort
SELECT ALL 73 * col2 AS col2 FROM tab0
----
2409
5986
73

query I rowsort
SELECT col1 * ( - col1 ) - + col1 * col1 FROM tab2 AS cor0
----
-1922
-578
-6962

query I rowsort
SELECT + col0 * + 86 * + 23 FROM tab2 AS cor0
----
13846
154284
156262

query I rowsort
SELECT ALL col0 + 44 * col2 AS col1 FROM tab2 cor0
----
1195
1222
1751

query I rowsort
SELECT - + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col1 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + col0 + - ( + col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT - + col2 * col1 + + col1 * col2 * + col0 - 86 FROM tab1 AS cor0
----
2722
35824
98506

query I rowsort
SELECT DISTINCT - col2 * - ( 74 + + col1 ) * + col2 FROM tab1 AS cor0
----
272916
291600
801792

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT col1 + 94 AS col1 FROM tab1 AS cor0
----
104
107
120

query I rowsort
SELECT DISTINCT - col2 * - col1 + 85 AS col0 FROM tab0 AS cor0
----
182
2923
7547

query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab0
----
96

query I rowsort
SELECT ALL - - col1 * ( col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL + col2 * col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - col0 * 41 FROM tab1 AS cor0
----
-123
-2624
-3280

onlyif mysql # use DIV operator for integer division
query I rowsort label-7680
SELECT DISTINCT + cor0.col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT + cor0.col1 / - col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 + ( col2 ) AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - cor0.col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7683
SELECT + col0 * - CAST( col1 + col2 AS SIGNED ) col2 FROM tab2 cor0
----
-406
-4345
-6630

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7683
SELECT + col0 * - CAST ( col1 + col2 AS INTEGER ) col2 FROM tab2 cor0
----
-406
-4345
-6630

query I rowsort
SELECT ALL - col1 + ( col0 + - col0 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7685
SELECT + CAST( 53 * - col2 AS SIGNED ) AS col1 FROM tab1
----
-2862
-3021
-5088

skipif mysql # not compatible
query I rowsort label-7685
SELECT + CAST ( 53 * - col2 AS INTEGER ) AS col1 FROM tab1
----
-2862
-3021
-5088

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7686
SELECT + CAST( 14 + - col0 AS SIGNED ) * - ( col0 + + col0 ) FROM tab1
----
-66
10560
6400

skipif mysql # not compatible
query I rowsort label-7686
SELECT + CAST ( 14 + - col0 AS INTEGER ) * - ( col0 + + col0 ) FROM tab1
----
-66
10560
6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7687
SELECT - CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT - CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 90 + 58 AS col2 FROM tab1
----
148
148
148

query I rowsort
SELECT DISTINCT + 5 * col2 * + col0 FROM tab0
----
175
36490
3960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * - cor0.col1 col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - - col2 + col2 AS col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - + col1 * col2 * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7693
SELECT - col0 + + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT - col0 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 65 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3510
-3705
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * - col1 col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + col1 * col1 - - ( cor0.col1 ) FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + col0 * 29 FROM tab2
----
203
2262
2291

query I rowsort
SELECT ALL col1 * - tab2.col2 + col1 AS col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL - - col2 * + 67 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT ALL - - col1 * 31 + col0 AS col1 FROM tab2 AS cor0
----
1907
606
968

query I rowsort
SELECT ALL tab0.col0 + 56 * + 49 FROM tab0
----
2768
2779
2833

onlyif mysql # use DIV operator for integer division
query I rowsort label-7702
SELECT ALL + col0 DIV + ( + ( col2 ) ) + + col0 * 11 AS col2 FROM tab0 AS cor0
----
264
420
980

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + col0 / + ( + ( col2 ) ) + + col0 * 11 AS col2 FROM tab0 AS cor0
----
264
420
980

query I rowsort
SELECT - - col2 * col0 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL cor0.col2 + 83 + - cor0.col0 FROM tab2 AS cor0
----
103
31
42

query I rowsort
SELECT ALL + col0 * + col2 + cor0.col2 + col1 FROM tab0 cor0
----
133
7471
911

query I rowsort
SELECT - col2 * + col1 - + 0 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col2 * + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + col1 + 6 FROM tab2 cor0
----
23
37
65

query I rowsort
SELECT col0 * - col2 + + cor0.col0 + - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 * + ( col2 ) + col1 + cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
-1960
-73
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7711
SELECT col1 * ( col2 ) + col2 DIV - col0 FROM tab2 AS cor0
----
1534
646
834

skipif mysql # not compatible
query I rowsort label-7711
SELECT col1 * ( col2 ) + col2 / - col0 FROM tab2 AS cor0
----
1534
646
834

onlyif mysql # use DIV operator for integer division
query I rowsort label-7712
SELECT ALL + cor0.col0 DIV + 17 FROM tab2 AS cor0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL + cor0.col0 / + 17 FROM tab2 AS cor0
----
0
4
4

query I rowsort
SELECT DISTINCT - col2 * - 19 FROM tab2 AS cor0
----
494
513
722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * col0 col1 FROM tab1 AS cor0
----
-1024
-1280
-48

query I rowsort
SELECT DISTINCT col2 + 84 * - cor0.col1 FROM tab0 cor0
----
-7191
-7562
-8147

query I rowsort
SELECT + - cor0.col1 * ( cor0.col1 ) FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col0 * - 83 * col0 AS col1 FROM tab0 AS cor0
----
-101675
-47808
-657443

query I rowsort
SELECT + - ( col2 ) * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 + 33 * col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT ALL - - cor2.col2 * 92 + 88 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 0ecbad43f4635c21c64fe3eca3575b32

onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT 35 DIV col0 + col2 FROM tab1 AS cor0
----
57
65
96

skipif mysql # not compatible
query I rowsort label-7721
SELECT 35 / col0 + col2 FROM tab1 AS cor0
----
57
65
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7722
SELECT CAST( NULL AS SIGNED ) * ( col2 ) + - ( + 30 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT CAST ( NULL AS INTEGER ) * ( col2 ) + - ( + 30 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col2 + - cor0.col2 * + 2 FROM tab2 AS cor0
----
-2080
-243
-3078

onlyif mysql # use DIV operator for integer division
query I rowsort label-7724
SELECT ALL + - CAST( col2 AS SIGNED ) + col0 DIV col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL + - CAST ( col2 AS INTEGER ) + col0 / col2 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT col1 * + ( cor0.col2 ) + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL 60 + - 76 * col0 FROM tab2 AS cor0
----
-472
-5868
-5944

onlyif mysql # use DIV operator for integer division
query I rowsort label-7727
SELECT - - col2 DIV col2 + col0 col0 FROM tab1 AS cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7727
SELECT - - col2 / col2 + col0 col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL ( 56 ) AS col2 FROM tab1
----
56
56
56

query I rowsort
SELECT + col0 * + 59 AS col1 FROM tab0 AS cor0
----
1416
2065
5251

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7730
SELECT - col2 * CAST( NULL AS SIGNED ) - + 50 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT - col2 * CAST ( NULL AS INTEGER ) - + 50 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor1.col1 * 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4a21fff066040168fa2a1bf702533e5d

query I rowsort
SELECT + 52 * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c378936897eb3339abc1e15b39a9c48a

query I rowsort
SELECT tab2.col0 * + col0 + - col0 FROM tab2
----
42
6006
6162

query I rowsort
SELECT + col1 * - 84 FROM tab1
----
-1092
-2184
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7735
SELECT DISTINCT + col0 + col0 DIV col0 AS col1 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT + col0 + col0 / col0 AS col1 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL - col0 * col0 - col0 FROM tab0 cor0
----
-1260
-600
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7737
SELECT cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col0 + + 44 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
2382
2636
4384

query I rowsort
SELECT col2 + + col1 + - ( tab0.col0 ) AS col2 FROM tab0
----
63
84
95

query I rowsort
SELECT + col2 + + col0 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-7741
SELECT DISTINCT + tab0.col0 * + tab0.col2 + 82 - col1 DIV + col1 AS col2 FROM tab0
----
116
7379
873

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + tab0.col0 * + tab0.col2 + 82 - col1 / + col1 AS col2 FROM tab0
----
116
7379
873

query I rowsort
SELECT cor0.col1 * col1 * - col2 - + col2 AS col1 FROM tab0 AS cor0
----
-244101
-679124
-9410

query I rowsort
SELECT - - col2 + col1 + + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - - 35 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT DISTINCT + - col0 + col0 * - col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - - cor0.col0 * - col1 + 88 * - 52 FROM tab1 AS cor0
----
-4654
-5216
-5616

query I rowsort
SELECT cor0.col1 * - col2 * 86 + - 21 * col0 FROM tab0 AS cor0
----
-244572
-643601
-9077

query I rowsort
SELECT DISTINCT + col2 + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7750
SELECT ALL col2 * - col2 + ( + col2 ) DIV - col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1057
-6642
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL col2 * - col2 + ( + col2 ) / - col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1057
-6642
0

query I rowsort
SELECT ( + col1 ) * col1 * ( col2 * - col0 ) FROM tab2
----
-181629
-7059468
-867578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col2 * ( col0 * col1 ) - col0 col0 FROM tab1 AS cor0
----
2079296
227445
9584560

query I rowsort
SELECT - - ( col2 ) + + ( col0 ) * - col1 * + 4 AS col1 FROM tab0 AS cor0
----
-13579
-32314
-8223

query I rowsort
SELECT ( - 60 ) FROM tab0
----
-60
-60
-60

query I rowsort
SELECT ALL + col0 * 74 FROM tab0
----
1776
2590
6586

query I rowsort
SELECT DISTINCT - tab1.col2 * col0 * + col2 AS col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL 70 - col0 FROM tab1 AS cor0
----
-10
6
67

query I rowsort
SELECT + col1 * + col2 * 9 AS col1 FROM tab2 AS cor0
----
13806
5814
7533

query I rowsort
SELECT DISTINCT + 4 * col0 + + 61 * - 77 AS col0 FROM tab0 AS cor0
----
-4341
-4557
-4601

onlyif mysql # use DIV operator for integer division
query I rowsort label-7760
SELECT ALL + cor0.col1 DIV col1 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + cor0.col1 / col1 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 + + col2 + ( col1 + - col2 ) FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-7762
SELECT ALL - + col1 * - cor0.col1 + 24 DIV + col1 + + col2 FROM tab2 AS cor0
----
328
3507
988

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - + col1 * - cor0.col1 + 24 / + col1 + + col2 FROM tab2 AS cor0
----
328
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col2 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + 82 + - col0 + ( - col2 * + col2 ) AS col1 FROM tab2 AS cor0
----
-1441
-654
-672

query I rowsort
SELECT + 32 AS col1 FROM tab1, tab1 cor0 CROSS JOIN tab0 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - 62 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + + col1 col0 FROM tab0 cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 - col1 col1 FROM tab2
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT ALL - col1 - col1 DIV 83 AS col1 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL - col1 - col1 / 83 AS col1 FROM tab0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT + col2 * col0 + 64 FROM tab2 AS cor0
----
2092
253
3066

query I rowsort
SELECT + col0 - - ( - 43 + + col0 * col1 ) FROM tab1 AS cor0
----
1077
38
661

onlyif mysql # use DIV operator for integer division
query I rowsort label-7773
SELECT ALL col0 * 49 + col0 DIV col1 AS col0 FROM tab0 cor0
----
1176
1715
4361

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL col0 * 49 + col0 / col1 AS col0 FROM tab0 cor0
----
1176
1715
4361

query I rowsort
SELECT - ( + col1 ) + + col0 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT 35 + col1 + + col1 FROM tab1
----
55
61
87

query I rowsort
SELECT - col0 + col1 - col0 AS col2 FROM tab1
----
-118
-147
20

query I rowsort
SELECT DISTINCT 73 + 55 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
128

onlyif mysql # use DIV operator for integer division
query I rowsort label-7778
SELECT DISTINCT col0 DIV col0 + + ( 31 ) * - col2 AS col0 FROM tab1
----
-1673
-1766
-2975

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT col0 / col0 + + ( 31 ) * - col2 AS col0 FROM tab1
----
-1673
-1766
-2975

query I rowsort
SELECT DISTINCT + col1 * - 14 FROM tab1 cor0
----
-140
-182
-364

query I rowsort
SELECT DISTINCT + ( + 54 ) + + col0 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT ALL + ( + col0 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( + col2 ) col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT tab1.col2 + + col0 * + 2 AS col0 FROM tab1
----
185
256
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col0 + + col1 * 73 ) col2 FROM tab2
----
1399
2277
4463

query I rowsort
SELECT DISTINCT + col2 * - 42 * - col1 FROM tab2
----
27132
35154
64428

query I rowsort
SELECT ALL + col2 + + col0 * + col1 AS col0 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-7787
SELECT DISTINCT - col2 + - ( col0 ) DIV CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - col2 + - ( col0 ) / CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-27
-28
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7788
SELECT + - CAST( NULL AS SIGNED ) * + col2 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT + - CAST ( NULL AS INTEGER ) * + col2 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 * + col2 - + col2 AS col1 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT ALL - 28 + + col1 FROM tab0 AS cor0
----
58
63
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7791
SELECT ALL - CAST( col1 AS SIGNED ) * - cor0.col0 * + ( col2 ) - col2 AS col1 FROM tab2 AS cor0
----
119626
50996
5832

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - CAST ( col1 AS INTEGER ) * - cor0.col0 * + ( col2 ) - col2 AS col1 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT - ( ( col2 ) ) * 90 + + col2 FROM tab0 cor0
----
-2937
-7298
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7793
SELECT CAST( + col1 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-7793
SELECT CAST ( + col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col1 ) col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 80 + col2 AS col1 FROM tab2 cor0
----
-42
-53
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7796
SELECT cor0.col2 DIV col0 + col2 * + 70 FROM tab0 AS cor0
----
2311
5740
70

skipif mysql # not compatible
query I rowsort label-7796
SELECT cor0.col2 / col0 + col2 * + 70 FROM tab0 AS cor0
----
2311
5740
70

query I rowsort
SELECT ALL + + 37 - cor0.col2 FROM tab0 AS cor0
----
-45
36
4

query I rowsort
SELECT col2 + - 50 * - col1 FROM tab1 AS cor0
----
1354
557
746

query I rowsort
SELECT - ( 58 ) * cor0.col1 * - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8f4a23a935067baba3f85f267d8f7784

query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
3
64
80

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3

query I rowsort
SELECT DISTINCT - 30 AS col2 FROM tab2
----
-30

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT 86 * - 63 FROM tab0
----
-5418
-5418
-5418

query I rowsort
SELECT 35 + col0 AS col1 FROM tab1
----
115
38
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL ( 4 ) AS col2 FROM tab2
----
4
4
4

query I rowsort
SELECT ALL - tab2.col2 + tab2.col0 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a6800e768401748ae504acf0ffb720a7

query I rowsort
SELECT col1 * 14 AS col0 FROM tab2 AS cor0
----
238
434
826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col1 + col0 col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT ( - col0 * + ( - col1 ) ) FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + + col1 col2 FROM tab0 AS cor0
----
166
171
177

onlyif mysql # use DIV operator for integer division
query I rowsort label-7814
SELECT + col2 + + col1 DIV + CAST( 16 AS SIGNED ) col2 FROM tab1
----
55
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7814
SELECT + col2 + + col1 / + CAST ( 16 AS INTEGER ) col2 FROM tab1
----
55
57
96

query I rowsort
SELECT + col1 * ( col1 ) + col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT col1 * col0 + 32 * col0 AS col1 FROM tab1 AS cor0
----
174
2688
3600

query I rowsort
SELECT ALL - col1 + col2 - col0 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT - col1 + ( col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col2 * col1 + + 32 FROM tab0 AS cor0
----
129
2870
7494

query I rowsort
SELECT ALL + col1 + - 87 AS col2 FROM tab2 AS cor0
----
-28
-56
-70

query I rowsort
SELECT + col2 * + col2 - col2 * + col0 * 47 FROM tab0 AS cor0
----
-1644
-336282
-36135

query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) + - cor0.col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - - col1 + ( ( - col0 ) + - cor0.col0 ) * + col0 FROM tab2 AS cor0
----
-12109
-12465
-67

query I rowsort
SELECT - + cor0.col1 + + col2 * col1 AS col1 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT ALL col0 * col1 * col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) + col2 AS col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + col1 + 30 FROM tab2 AS cor0
----
47
61
89

query I rowsort
SELECT ALL - + cor0.col2 + 14 * col0 FROM tab2 AS cor0
----
1066
1068
71

query I rowsort
SELECT DISTINCT col0 * col2 + col2 * - col1 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT + ( 78 ) FROM tab1, tab1 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7831
SELECT + col2 DIV - 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT + col2 / - 76 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7832
SELECT DISTINCT col0 DIV - col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT col0 / - col1 AS col1 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 47 col0 FROM tab2
----
-1457
-2773
-799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 col1 FROM tab1, tab0 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7835
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7836
SELECT DISTINCT col1 DIV - 30 col1 FROM tab2
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT col1 / - 30 col1 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT - col0 * + ( col0 ) * col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT - col1 * 41 FROM tab1
----
-1066
-410
-533

query I rowsort
SELECT col2 * ( + col1 ) AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT 74 * + 47 FROM tab2 AS cor0
----
3478
3478
3478

query I rowsort
SELECT - col2 + - cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL 31 + col2 - tab1.col2 * col1 * - 50 AS col2 FROM tab1
----
28588
62527
70285

query I rowsort
SELECT - col2 - col2 * col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT 99 FROM tab1, tab1 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT + col1 + 44 + - 30 FROM tab0
----
100
105
111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7846
SELECT CAST( - col2 AS SIGNED ) * col2 + col0 + - col2 FROM tab1 AS cor0
----
-2967
-3242
-9232

skipif mysql # not compatible
query I rowsort label-7846
SELECT CAST ( - col2 AS INTEGER ) * col2 + col0 + - col2 FROM tab1 AS cor0
----
-2967
-3242
-9232

query I rowsort
SELECT + - col0 - + 50 * - col0 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT - - cor0.col1 * cor0.col0 - col1 * ( + cor0.col2 + + col1 ) FROM tab1 AS cor0
----
-2002
-30
-377

query I rowsort
SELECT ALL - 79 + - col2 FROM tab1 AS cor0
----
-133
-136
-175

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * - col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - 79 * + col0 * 76 AS col1 FROM tab0 AS cor0
----
-144096
-210140
-534356

query I rowsort
SELECT ( + col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7853
SELECT + ( cor0.col0 ) DIV col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7853
SELECT + ( cor0.col0 ) / col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL col2 - + col2 * - col0 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col2 * - col0 * + col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 * col2 * - col2 - + cor0.col0 FROM tab0 AS cor0
----
-26160
-598525
-70

query I rowsort
SELECT - cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7858
SELECT DISTINCT - col0 DIV col0 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT - col0 / col0 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - col2 + col1 - - col2 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - tab0.col0 * col1 + - col1 AS col0 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7861
SELECT - col1 DIV col1 + col1 DIV col0 - col2 AS col2 FROM tab2
----
-24
-27
-39

skipif mysql # not compatible
query I rowsort label-7861
SELECT - col1 / col1 + col1 / col0 - col2 AS col2 FROM tab2
----
-24
-27
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-7862
SELECT DISTINCT col1 - col0 * col1 DIV - col1 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT col1 - col0 * col1 / - col1 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col2 col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - col1 - col1 AS col2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT - col1 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT - col2 + + col2 DIV - col1 + col1 AS col1 FROM tab0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-7866
SELECT - col2 + + col2 / - col1 + col1 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT - col2 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT col2 + - col1 * + col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL col2 * cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col1 * - col1 FROM tab1 WHERE ( col0 ) > + col1 + + col2
----

query I rowsort
SELECT DISTINCT col1 * col2 + col2 * col1 AS col0 FROM tab1
----
1140
2496
2808

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <= + col0
----
7
31
27

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 / + col0 >= NULL
----

query I rowsort
SELECT ALL col2 + tab1.col0 * + col1 FROM tab1
----
1136
132
697

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / - col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * col0 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL col1 * col2 FROM tab2 WHERE NOT col0 * col0 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7878
SELECT ALL - col1 + + col2 * col1 DIV - tab0.col0 FROM tab0
----
-174
-204
-99

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - col1 + + col2 * col1 / - tab0.col0 FROM tab0
----
-174
-204
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - tab1.col2 + - col1 AS col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT ALL + ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 11 * cor0.col1 FROM tab1 AS cor0
----
-110
-143
-286

query I rowsort
SELECT - col0 + + col0 * col2 * + tab0.col1 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col1 * + col2 AND col1
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col0 * col2 + - col0
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7886
SELECT DISTINCT - cor0.col0 + - col0 * CAST( - col2 + col1 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
-117702
-48111
-5677

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT - cor0.col0 + - col0 * CAST ( - col2 + col1 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
-117702
-48111
-5677

onlyif mysql # use DIV operator for integer division
query I rowsort label-7887
SELECT + - cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7887
SELECT + - cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 68 + col2 AS col1 FROM tab2 AS cor0
----
106
94
95

query I rowsort
SELECT ALL col1 * col0 - cor0.col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query III rowsort
SELECT * FROM tab1 WHERE + col0 + col2 NOT BETWEEN ( col0 + + col0 ) AND + col1 * + col2
----
64
10
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * col0 col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT col2 * + col2 + cor0.col2 FROM tab1 cor0
----
2970
3306
9312

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND ( + col1 + - col1 * col0 * col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7894
SELECT DISTINCT + col2 DIV col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * cor0.col2 IN ( - col0 + col0 + col1 )
----
0
1
18

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT + col2 / col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * cor0.col2 IN ( - col0 + col0 + col1 )
----
0
1
18

query I rowsort
SELECT DISTINCT col1 + col2 * + col1 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab1 WHERE NOT col2 = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 * - col0 col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL tab0.col0 * tab0.col0 + col0 * tab0.col0 FROM tab0
----
1152
15842
2450

query I rowsort
SELECT - col1 * col2 + tab2.col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT col0 + - col2 * - col2 AS col1 FROM tab0 WHERE + col1 < NULL
----

query I rowsort
SELECT - col1 * - col0 + + tab1.col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT - tab0.col0 * - col0 * + col1 AS col2 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + col2 * + tab1.col1 * col1 AS col0 FROM tab1 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT tab1.col0 + + col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT tab1.col0 * - col1 FROM tab1 WHERE NOT ( NULL ) > ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 + col2 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN ( col1 * + col2 + - col2 ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT col1 * col1 DIV - tab2.col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7909
SELECT col1 * col1 / - tab2.col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + col0 col0 FROM tab2 cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7911
SELECT DISTINCT - 75 + col0 * CAST( + 75 AS SIGNED ) FROM tab0 cor0
----
1725
2550
6600

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT - 75 + col0 * CAST ( + 75 AS INTEGER ) FROM tab0 cor0
----
1725
2550
6600

onlyif mysql # use DIV operator for integer division
query I rowsort label-7912
SELECT ALL - 65 + col1 * + ( 77 ) + col1 DIV + col2 FROM tab0 AS cor0
----
6559
6943
7501

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - 65 + col1 * + ( 77 ) + col1 / + col2 FROM tab0 AS cor0
----
6559
6943
7501

query I rowsort
SELECT ALL - + col1 * - col2 + - col2 * + 88 + - col1 AS col0 FROM tab1 AS cor0
----
-3374
-4456
-7213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col2 FROM tab0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - 19 * cor0.col2 + col2 FROM tab1 AS cor0
----
-1026
-1728
-972

onlyif mysql # use DIV operator for integer division
query I rowsort label-7916
SELECT - 4 - col2 DIV + 89 FROM tab2 cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7916
SELECT - 4 - col2 / + 89 FROM tab2 cor0
----
-4
-4
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7917
SELECT DISTINCT col2 - + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT col2 - + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 99 + col1 + 73 AS col2 FROM tab0 AS cor0
----
60
65
71

query I rowsort
SELECT + cor0.col1 * + 8 + - col1 + col0 FROM tab2 AS cor0
----
198
224
491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + + cor0.col1 * + col0 col2 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT - col2 + col1 + + col1 AS col0 FROM tab1
----
-2
-37
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7922
SELECT + col0 + col0 DIV - ( tab0.col1 ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7922
SELECT + col0 + col0 / - ( tab0.col1 ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - ( tab1.col0 ) * col0 AS col0 FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7924
SELECT + 52 DIV + tab0.col0 + - 60 * col2 AS col2 FROM tab0
----
-1978
-4920
-59

skipif mysql # not compatible
query I rowsort label-7924
SELECT + 52 / + tab0.col0 + - 60 * col2 AS col2 FROM tab0
----
-1978
-4920
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7925
SELECT - tab0.col2 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT - tab0.col2 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * + 61 FROM tab0 AS cor0
----
-1464
-2135
-5429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + 18 * col0 col2 FROM tab0 AS cor0
----
1605
435
633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7928
SELECT DISTINCT - col1 * col1 * cor0.col0 + - CAST( NULL AS DECIMAL ) / col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT - col1 * col1 * cor0.col0 + - CAST ( NULL AS REAL ) / col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 18 * cor0.col2 AS col2 FROM tab2 AS cor0
----
468
486
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-7930
SELECT DISTINCT + cor0.col1 * 26 + col1 DIV + col0 FROM tab1 AS cor0
----
260
338
684

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT + cor0.col1 * 26 + col1 / + col0 FROM tab1 AS cor0
----
260
338
684

query I rowsort
SELECT DISTINCT + + 98 - - cor0.col1 * + col0 FROM tab0 AS cor0
----
2162
3493
8197

query I rowsort
SELECT ALL - + ( col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col2 + col2 + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 48 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - tab2.col1 * + 66 + col2 AS col0 FROM tab2
----
-1084
-2019
-3868

query I rowsort
SELECT DISTINCT 95 FROM tab1, tab1 cor0, tab0 AS cor1
----
95

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + col1 * col2 - - col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col1 + 67 * - col0 AS col1 FROM tab2
----
-438
-5167
-5276

query I rowsort
SELECT DISTINCT - ( ( + col1 ) * + col1 + col0 ) FROM tab1
----
-164
-249
-679

query I rowsort
SELECT ALL 12 * cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
283
379
786

query I rowsort
SELECT DISTINCT - - col2 + 88 AS col1 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT DISTINCT + - 22 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT ALL + - cor0.col0 + - col2 * cor0.col1 * - col0 FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT ALL - ( 38 ) * - col0 FROM tab0
----
1330
3382
912

query I rowsort
SELECT - ( tab1.col1 + col2 ) FROM tab1
----
-109
-67
-80

query I rowsort
SELECT ( col2 * - col1 ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - - 86 AS col1 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT - cor0.col2 * cor0.col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT col2 * - cor0.col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + col1 * - 58 * + 91 FROM tab2
----
-163618
-311402
-89726

onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT DISTINCT + col2 DIV ( col1 ) AS col2 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + col2 / ( col1 ) AS col2 FROM tab2
----
0
2

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to fb5d2aa390cdec102c3f3fc4485549ca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col0 * + col1 ) col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL cor0.col2 * ( - 82 * + cor0.col0 + col0 ) FROM tab0 AS cor0
----
-2835
-591138
-64152

onlyif mysql # use DIV operator for integer division
query I rowsort label-7956
SELECT + col0 * col2 + 45 DIV + col2 AS col0 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7956
SELECT + col0 * col2 + 45 / + col2 AS col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7957
SELECT DISTINCT + + col0 * + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + + col0 * + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( - col0 ) + col1 col0 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT col2 * 98 + cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
5321
5660
9501

onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT + - col2 DIV - ( - 32 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-7960
SELECT + - col2 / - ( - 32 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7961
SELECT + col2 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7961
SELECT + col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 + 7 * 36 AS col2 FROM tab1 AS cor0
----
306
309
348

query I rowsort
SELECT - - col2 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7964
SELECT + - 77 + + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
-74
-77
-77

skipif mysql # not compatible
query I rowsort label-7964
SELECT + - 77 + + col2 / + col0 AS col2 FROM tab2 AS cor0
----
-74
-77
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7965
SELECT + cor0.col2 DIV - col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7965
SELECT + cor0.col2 / - col1 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT + ( col1 ) * col1 * + col2 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col1 FROM tab0
----
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7968
SELECT + col2 DIV - col1 col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7968
SELECT + col2 / - col1 col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT + 67 * col2 FROM tab2 AS cor0
----
1742
1809
2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-7971
SELECT DISTINCT col2 + col1 DIV col0 - col1 AS col2 FROM tab0 AS cor0
----
-50
-8
-94

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT col2 + col1 / col0 - col1 AS col2 FROM tab0 AS cor0
----
-50
-8
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-7972
SELECT DISTINCT col0 DIV 24 AS col2 FROM tab0 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT col0 / 24 AS col2 FROM tab0 AS cor0
----
1
3

query I rowsort
SELECT ALL + col1 + - 77 * - ( cor0.col1 * - 34 ) FROM tab0 cor0
----
-225062
-238147
-253849

query I rowsort
SELECT ALL - cor0.col2 + 58 AS col0 FROM tab1 AS cor0
----
-38
1
4

query I rowsort
SELECT DISTINCT + + col2 + - ( 52 ) AS col2 FROM tab2 cor0
----
-14
-25
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7976
SELECT - col0 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7976
SELECT - col0 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT cor0.col2 * 12 + col1 + - col2 * col0 * + col2 FROM tab1 AS cor0
----
-207242
-736115
-8074

query I rowsort
SELECT ALL - cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col2 * ( cor0.col0 * - cor0.col2 ) + col0 AS col0 FROM tab0 AS cor0
----
-26112
-598347
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7980
SELECT ALL + col2 DIV 91 + 2 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL + col2 / 91 + 2 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT ALL - ( 43 ) DIV col2 + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL - ( 43 ) / col2 + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - cor0.col1 + 48 AS col2 FROM tab0 AS cor0
----
-38
-43
-49

query I rowsort
SELECT ALL + col0 * 67 * + col2 AS col2 FROM tab1 AS cor0
----
10854
244416
514560

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab1 cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

query I rowsort
SELECT ALL - ( + col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - + col1 * col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab1, tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
-86

query I rowsort
SELECT - 86 + + col0 FROM tab0
----
-51
-62
3

query I rowsort
SELECT DISTINCT - 41 * cor0.col0 FROM tab2, tab2 cor0
----
-287
-3198
-3239

query I rowsort
SELECT - 76 + - tab0.col0 FROM tab0
----
-100
-111
-165

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT ALL col1 + col1 + col2 AS col0 FROM tab1
----
106
122
77

query I rowsort
SELECT + 83 * + 4 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7bb42105aa078e113d4c4a1fbcfa04af

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT col0 + - tab2.col1 DIV - ( - col1 ) + col2 FROM tab2
----
103
116
33

skipif mysql # not compatible
query I rowsort label-7995
SELECT col0 + - tab2.col1 / - ( - col1 ) + col2 FROM tab2
----
103
116
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7996
SELECT DISTINCT ( col1 ) + CAST( + 90 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
-244
-5750
-7187

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT ( col1 ) + CAST ( + 90 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
-244
-5750
-7187

query I rowsort
SELECT + cor0.col2 * col1 + col0 * col0 + - col1 FROM tab2 cor0
----
6870
7559
855

query I rowsort
SELECT ALL 46 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT DISTINCT ( 25 ) AS col1 FROM tab0, tab1 AS cor0
----
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8000
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 33 - - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4c56c2b360ea5c7e2f07af47a08c1367

query I rowsort
SELECT ALL - col2 * - 72 AS col1 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT col1 + + cor0.col2 + + 9 FROM tab2 AS cor0
----
64
67
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8004
SELECT DISTINCT + col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + + 45 col0 FROM tab2 AS cor0
----
6129
6286
94

query I rowsort
SELECT col1 * + 73 FROM tab1 AS cor0
----
1898
730
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT ALL col2 * - col2 + col1 DIV - col0 FROM tab1
----
-2924
-3249
-9216

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL col2 * - col2 + col1 / - col0 FROM tab1
----
-2924
-3249
-9216

query I rowsort
SELECT ALL col0 - - tab1.col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL 92 - - col1 * col2 * ( + col0 * col2 ) AS col0 FROM tab0
----
2247788
3487
54457768

query I rowsort
SELECT DISTINCT + 63 + 13 AS col1 FROM tab0 AS cor0
----
76

query I rowsort
SELECT + 0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 6 * col2 - col2 AS col2 FROM tab0 AS cor0
----
-231
-574
-7

query I rowsort
SELECT ALL + - ( cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 25 + + col1 AS col2 FROM tab1 AS cor0
----
35
38
51

query I rowsort
SELECT ALL col0 * + col2 * - ( - col0 ) FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - 10 * + col0 AS col2 FROM tab0 cor0
----
-240
-350
-890

query I rowsort
SELECT ALL col2 * - cor0.col0 + 54 FROM tab0 AS cor0
----
-7244
-738
19

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + 86 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + col2 + + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col2 + col0 + 76 * col1 AS col2 FROM tab2 AS cor0
----
1333
2336
4536

query I rowsort
SELECT ( - col1 ) * + col0 * - ( col1 * - tab2.col0 ) FROM tab2
----
-1803649
-21178404
-47089

query I rowsort
SELECT - ( col0 ) * - col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT col1 + + ( tab0.col0 ) * + col1 FROM tab0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab1, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL + col0 * - col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8029
SELECT DISTINCT + col1 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col0 * - 59 FROM tab1 AS cor0
----
177
3776
4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 61 - 34 col0 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT ALL ( - col0 ) * + col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + + col2 - ( col1 + col1 ) * 72 FROM tab0 AS cor0
----
-12351
-13022
-13967

query I rowsort
SELECT - col2 - + col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT col1 * + tab1.col0 * col2 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + 64 FROM tab0, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col1 FROM tab2 cor0
----
-53
-53
-53

query I rowsort
SELECT ALL 45 * + col0 FROM tab0 AS cor0
----
1080
1575
4005

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8039
SELECT ALL + ( col1 ) + CAST( col2 AS SIGNED ) * + cor0.col1 col0 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + ( col1 ) + CAST ( col2 AS INTEGER ) * + cor0.col1 col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8040
SELECT DISTINCT - ( col2 ) + - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT - ( col2 ) + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8042
SELECT col2 * + CAST( col1 AS SIGNED ) + - col1 * col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT col2 * + CAST ( col1 AS INTEGER ) + - col1 * col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( tab1.col2 + - col2 ) FROM tab1
----
0

query I rowsort
SELECT + + col2 * col2 * - 96 + col2 AS col2 FROM tab1 AS cor0
----
-279882
-311847
-884640

query I rowsort
SELECT - - col0 * 46 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT col0 * col0 + + col0 + col0 AS col0 FROM tab1 AS cor0
----
15
4224
6560

query I rowsort
SELECT ALL - + col1 + - ( cor0.col2 ) * + col0 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT DISTINCT col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT col0 / - col0 AS col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 98 col1 FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT ALL + 42 * - 50 + col0 AS col0 FROM tab2 AS cor0
----
-2021
-2022
-2093

query I rowsort
SELECT DISTINCT 73 + 89 FROM tab2 cor0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( - cor0.col0 ) ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - ( - 82 ) * cor0.col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT + cor0.col1 + - 94 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to bb92ca30b58ca3fc2679e0377c2a721e

query I rowsort
SELECT - col1 * 88 + col1 FROM tab2
----
-1479
-2697
-5133

query I rowsort
SELECT DISTINCT - col0 + + 78 + 51 * + tab2.col1 * 80 AS col0 FROM tab2
----
126551
240720
69359

onlyif mysql # use DIV operator for integer division
query I rowsort label-8057
SELECT ALL col2 DIV + col1 + + col1 + col2 * + col2 AS col0 FROM tab2
----
1463
735
760

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL col2 / + col1 + + col1 + col2 * + col2 AS col0 FROM tab2
----
1463
735
760

query I rowsort
SELECT 48 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT - + col0 + - col2 * + 49 FROM tab1 AS cor0
----
-2649
-2857
-4784

query I rowsort
SELECT + + 72 - col1 AS col1 FROM tab1 AS cor0
----
46
59
62

query I rowsort
SELECT ALL col0 + ( col1 ) * 66 AS col0 FROM tab1
----
1719
724
938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8062
SELECT + col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT + col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 93 + + 66 * - col1 FROM tab1
----
-1809
-753
-951

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 - tab0.col0 * + 82 AS col1 FROM tab0
----
-1968
-2870
-7298

query I rowsort
SELECT DISTINCT + 41 FROM tab1, tab2 AS cor0
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT DISTINCT col1 + col2 DIV - col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT col1 + col2 / - col2 FROM tab1
----
12
25
9

query I rowsort
SELECT - 99 * col2 FROM tab1
----
-5346
-5643
-9504

query I rowsort
SELECT - cor0.col1 * - col2 + col2 * + cor0.col1 AS col2 FROM tab1 cor0
----
1140
2496
2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT + 79 DIV cor0.col1 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 79 / cor0.col1 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - col1 + - col2 * - 84 FROM tab1 AS cor0
----
4510
4778
8051

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8072
SELECT - col1 * - col2 * CAST( 87 + + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
124800
158652
55290

skipif mysql # not compatible
query I rowsort label-8072
SELECT - col1 * - col2 * CAST ( 87 + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
124800
158652
55290

query I rowsort
SELECT col1 * 11 + col1 FROM tab2
----
204
372
708

query I rowsort
SELECT + col0 * - 97 AS col1 FROM tab2
----
-679
-7566
-7663

query I rowsort
SELECT ( 90 ) AS col1 FROM tab2
----
90
90
90

query I rowsort
SELECT ( 51 ) * col2 FROM tab2
----
1326
1377
1938

query I rowsort
SELECT ALL col0 * col1 + tab0.col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-8078
SELECT DISTINCT - 51 DIV - 39 AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - 51 / - 39 AS col2 FROM tab2 cor0
----
1

query I rowsort
SELECT - - 2 + - 75 FROM tab1 cor0
----
-73
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8080
SELECT DISTINCT col1 DIV 40 + col0 FROM tab2
----
7
79

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT col1 / 40 + col0 FROM tab2
----
7
79

query I rowsort
SELECT - col2 + ( + col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col1 + - col1 + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + - ( col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - 97 * cor0.col0 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT - + 48 * col0 AS col1 FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT DISTINCT + + col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL col1 + + cor0.col1 FROM tab2 cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8088
SELECT DISTINCT + ( col2 ) + + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT + ( col2 ) + + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - col2 ) * + col1 * col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + ( - 19 ) FROM tab1
----
-19

query I rowsort
SELECT ALL + - col0 + - col1 * - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + cor0.col2 * - cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + col1 * 85 + - col1 * + col2 FROM tab1 AS cor0
----
-143
280
806

query I rowsort
SELECT DISTINCT + col2 * + 54 + + 60 + col0 AS col0 FROM tab0 AS cor0
----
149
1866
4577

query I rowsort
SELECT + col2 + + 14 FROM tab2 AS cor0
----
40
41
52

query I rowsort
SELECT + cor0.col1 * 47 - - col2 AS col1 FROM tab2 AS cor0
----
1484
2799
837

query I rowsort
SELECT ALL - col2 * + ( - col0 * col2 ) + col0 AS col2 FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT DISTINCT + + col0 + + 9 * col1 * col2 + 99 FROM tab0 AS cor0
----
1007
25665
67346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - - col2 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ( - 88 ) + col2 FROM tab2 AS cor0
----
-50
-61
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT ALL - CAST( col0 AS SIGNED ) DIV + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL - CAST ( col0 AS INTEGER ) / + col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + ( - 56 ) * + cor0.col0 FROM tab2 AS cor0
----
-392
-4368
-4424

query I rowsort
SELECT ALL - 92 FROM tab0, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT col2 * + ( - col0 ) + col1 + - ( col1 * col2 ) FROM tab2
----
-3503
-3631
-995

query I rowsort
SELECT col2 * tab0.col0 * 14 FROM tab0
----
102172
11088
490

query I rowsort
SELECT ALL - 38 * col2 AS col2 FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT DISTINCT 61 * - col0 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-156
-210
-3476

query I rowsort
SELECT ALL - col0 + - 39 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-210
-75
-96

query I rowsort
SELECT + ( ( + col1 ) ) + 24 AS col1 FROM tab0 AS cor0
----
110
115
121

query I rowsort
SELECT + cor0.col1 + 73 FROM tab2 cor0
----
104
132
90

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + col2 + cor0.col1 FROM tab1 cor0
----
-1139
-1324
-503

onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT DISTINCT ( + 20 ) + - col0 DIV - 76 FROM tab2 AS cor0
----
20
21

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT ( + 20 ) + - col0 / - 76 FROM tab2 AS cor0
----
20
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 col0 FROM tab1 AS cor0
----
99
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8116
SELECT ALL - - CAST( 70 AS SIGNED ) DIV + col1 + + 96 FROM tab0 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - - CAST ( 70 AS INTEGER ) / + col1 + + 96 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8117
SELECT - 16 - col1 DIV col0 FROM tab2 AS cor0
----
-16
-16
-20

skipif mysql # not compatible
query I rowsort label-8117
SELECT - 16 - col1 / col0 FROM tab2 AS cor0
----
-16
-16
-20

query I rowsort
SELECT + ( - col0 ) * - col0 + 6 FROM tab1 AS cor0
----
15
4102
6406

query I rowsort
SELECT ALL + col2 + 6 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT DISTINCT - - col0 + - col2 + col1 FROM tab2 AS cor0
----
11
111
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT DISTINCT col1 DIV 88 col0 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT col1 / 88 col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + + col1 + - 60 AS col2 FROM tab1 cor0
----
-34
-47
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8123
SELECT cor0.col1 DIV + 46 + + col1 FROM tab0 AS cor0
----
87
92
99

skipif mysql # not compatible
query I rowsort label-8123
SELECT cor0.col1 / + 46 + + col1 FROM tab0 AS cor0
----
87
92
99

query I rowsort
SELECT - - ( + col1 ) * col0 + - 9 FROM tab2 AS cor0
----
1334
208
4593

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8125
SELECT ALL - tab1.col1 / CAST( NULL AS SIGNED ) + col0 - tab1.col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - tab1.col1 / CAST ( NULL AS INTEGER ) + col0 - tab1.col0 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - col1 * cor0.col1 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT DISTINCT + tab0.col1 + + col0 DIV col2 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT + tab0.col1 + + col0 / col2 FROM tab0
----
132
86
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8128
SELECT + 47 DIV - col0 FROM tab2 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-8128
SELECT + 47 / - col0 FROM tab2 AS cor0
----
-6
0
0

query I rowsort
SELECT ALL - col1 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8130
SELECT ALL - col2 + col2 * - col0 DIV + col0 col2 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - col2 + col2 * - col0 / + col0 col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8131
SELECT DISTINCT col2 DIV + col1 + + col2 * - col2 FROM tab1 cor0
----
-2914
-3244
-9209

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT col2 / + col1 + + col2 * - col2 FROM tab1 cor0
----
-2914
-3244
-9209

query I rowsort
SELECT DISTINCT col2 * + col2 * col1 - col0 AS col2 FROM tab0 AS cor0
----
611795
62
93630

query I rowsort
SELECT + tab0.col1 + col2 * + col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT col2 * col0 + col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL - cor0.col2 + + col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( + col1 * - cor0.col0 ) + + col2 FROM tab1 cor0
----
13616
2082
6457

query I rowsort
SELECT ALL col2 + + 33 + col1 FROM tab1 AS cor0
----
100
113
142

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab2 AS cor0, tab2, tab2 cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8139
SELECT CAST( NULL AS SIGNED ) * - tab2.col2 + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT CAST ( NULL AS INTEGER ) * - tab2.col2 + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor2.col0 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8142
SELECT ALL - CAST( 36 AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - CAST ( 36 AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT DISTINCT + 46 * - col0 FROM tab1 cor0
----
-138
-2944
-3680

query I rowsort
SELECT - 86 + - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
-1334
-1490
-656

query I rowsort
SELECT ALL - 50 + - cor0.col0 FROM tab0 AS cor0
----
-139
-74
-85

query I rowsort
SELECT DISTINCT 91 * - cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
-1547
-2821
-5369

query I rowsort
SELECT DISTINCT - col2 + - 86 AS col2 FROM tab0
----
-119
-168
-87

query I rowsort
SELECT - tab2.col2 + + col0 AS col1 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8149
SELECT DISTINCT - col0 + + ( + col2 + col2 ) * 24 DIV col1 AS col0 FROM tab1
----
209
274
96

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT - col0 + + ( + col2 + col2 ) * 24 / col1 AS col0 FROM tab1
----
209
274
96

query I rowsort
SELECT ALL - col1 + col2 * - col2 + col1 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-8151
SELECT col2 * col1 + + col0 + col2 DIV 66 AS col2 FROM tab1 AS cor0
----
1329
1407
634

skipif mysql # not compatible
query I rowsort label-8151
SELECT col2 * col1 + + col0 + col2 / 66 AS col2 FROM tab1 AS cor0
----
1329
1407
634

query I rowsort
SELECT col0 * 59 FROM tab1
----
177
3776
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-8153
SELECT DISTINCT col0 DIV ( + 64 ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT col0 / ( + 64 ) FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT col1 * + 19 + col2 + col2 AS col1 FROM tab2 AS cor0
----
1173
399
643

query I rowsort
SELECT ALL + col1 * 75 AS col2 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT ( - ( + col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8158
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT - CAST ( NULL AS REAL ) * - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 21 + col2 + - col2 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL ( + 78 ) * + col2 AS col0 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT DISTINCT col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - cor0.col1 * - col1 * + cor0.col2 + 34 * + col1 AS col0 FROM tab0 AS cor0
----
12707
246992
682136

query I rowsort
SELECT DISTINCT - col1 + 78 * - col1 FROM tab0
----
-6794
-7189
-7663

query I rowsort
SELECT ALL + col1 * 3 + col2 FROM tab0
----
291
292
355

query I rowsort
SELECT ALL 46 FROM tab2, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8166
SELECT + + CAST( NULL AS SIGNED ) + col2 / + col1 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT + + CAST ( NULL AS INTEGER ) + col2 / + col1 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 71 + + 69 * + col0 * col0 FROM tab0 cor0
----
39815
546620
84596

onlyif mysql # use DIV operator for integer division
query I rowsort label-8168
SELECT - tab0.col2 * 33 DIV - col2 + - col1 - - col1 FROM tab0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-8168
SELECT - tab0.col2 * 33 / - col2 + - col1 - - col1 FROM tab0
----
33
33
33

query I rowsort
SELECT ALL + ( col0 * col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT - col1 - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + 27 * 78 + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
2676
3354
3510

query I rowsort
SELECT ALL 14 * col2 + col2 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT DISTINCT - - col2 + - cor0.col0 * + col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + 68 FROM tab2 AS cor0
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT ALL 29 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL 29 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( - tab0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT 42 * + col1 + col2 * col0 + col0 AS col1 FROM tab1 AS cor0
----
1257
4132
8306

query I rowsort
SELECT ALL ( - col0 + col2 ) * - col0 AS col2 FROM tab1
----
-1280
-153
448

query I rowsort
SELECT + tab2.col0 * - ( col1 ) FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT + cor0.col0 DIV + ( + col0 ) - col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-8180
SELECT + cor0.col0 / + ( + col0 ) - col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL + col2 * 44 + 29 AS col1 FROM tab0 AS cor0
----
1481
3637
73

query I rowsort
SELECT + ( - col1 ) + - col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + - col2 * ( 87 ) AS col2 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT - 4 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT - col0 DIV + col0 + col1 - col1 * - cor0.col0 FROM tab1 AS cor0
----
103
1052
649

skipif mysql # not compatible
query I rowsort label-8185
SELECT - col0 / + col0 + col1 - col1 * - cor0.col0 FROM tab1 AS cor0
----
103
1052
649

query I rowsort
SELECT col2 * - ( col2 ) AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab2, tab1, tab2 AS cor0
----
-99

query I rowsort
SELECT ALL 16 + col1 - + ( ( col1 ) ) AS col1 FROM tab2
----
16
16
16

query I rowsort
SELECT ALL 70 - + col2 * - col0 AS col0 FROM tab0
----
105
7368
862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + ( - col2 + + col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-406
-725
-999

query I rowsort
SELECT DISTINCT col1 * col0 + - col0 * col0 + + 2 AS col0 FROM tab0 AS cor0
----
1490
180
2172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 + + col1 ) * - col1 col0 FROM tab2
----
-124
-1947
357

query I rowsort
SELECT - 27 + col0 FROM tab0
----
-3
62
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8195
SELECT DISTINCT col0 DIV col1 + col0 * col0 AS col0 FROM tab1
----
4102
6406
9

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT col0 / col1 + col0 * col0 AS col0 FROM tab1
----
4102
6406
9

query I rowsort
SELECT ALL 30 * - tab0.col0 + tab0.col1 - + col2 FROM tab0
----
-2661
-667
-954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8197
SELECT ALL ( + col0 ) - CAST( NULL AS SIGNED ) * 97 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL ( + col0 ) - CAST ( NULL AS INTEGER ) * 97 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col0 + col0 FROM tab0
----
134
167
269

query I rowsort
SELECT DISTINCT + col0 + 37 FROM tab0
----
126
61
72

query I rowsort
SELECT + col2 * col1 + 7 FROM tab2 AS cor0
----
1541
653
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-8201
SELECT cor0.col1 + - col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-8201
SELECT cor0.col1 + - col0 / + col0 AS col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT col2 + - col0 + 25 FROM tab2 AS cor0
----
-16
-27
45

query I rowsort
SELECT ALL + col1 * + ( + 97 ) FROM tab0 cor0
----
8342
8827
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8204
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8205
SELECT DISTINCT + col0 + + 18 * - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-11
60
61

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT + col0 + + 18 * - col0 / + col0 AS col1 FROM tab2 AS cor0
----
-11
60
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 2 col2 FROM tab2 cor0
----
24
25
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8207
SELECT cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 * cor0.col2 + col0 + + col1 * + cor0.col1 FROM tab0 AS cor0
----
10258
15832
9541

query I rowsort
SELECT cor0.col2 + + 25 * cor0.col0 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
1163
2302
5457

query I rowsort
SELECT DISTINCT + col0 + + 26 * col1 * + col1 AS col1 FROM tab0 AS cor0
----
192320
215395
244669

query I rowsort
SELECT ALL col2 * 63 AS col1 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT + 94 + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1437
311
4696

query I rowsort
SELECT - ( 70 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1190
-2170
-4130

query I rowsort
SELECT + + col2 * col0 - + col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8215
SELECT + col0 * col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT + col0 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * col0 * col2 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT - ( col2 ) * ( col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + col1 * - col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8219
SELECT DISTINCT - 4 * col2 DIV col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT - 4 * col2 / col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT ALL 10 * cor0.col1 + + ( - 38 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col0 * col2 * + col0 AS col2 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8223
SELECT - 75 DIV + col0 FROM tab1 AS cor0
----
-1
-25
0

skipif mysql # not compatible
query I rowsort label-8223
SELECT - 75 / + col0 FROM tab1 AS cor0
----
-1
-25
0

query I rowsort
SELECT - col0 * + col0 * 92 FROM tab1 cor0
----
-376832
-588800
-828

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-8226
SELECT ALL 51 DIV col0 FROM tab1 AS cor0
----
0
0
17

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL 51 / col0 FROM tab1 AS cor0
----
0
0
17

query I rowsort
SELECT ALL - col1 * col2 - + col1 AS col2 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - ( col0 ) + + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 30 * col2 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT DISTINCT 90 + col1 AS col1 FROM tab1 AS cor0
----
100
103
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( - 16 ) * col1 col2 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT - - col0 * ( + col0 ) - - col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + col0 * tab2.col1 - tab2.col2 * - col0 AS col0 FROM tab2
----
406
4345
6630

query I rowsort
SELECT + col0 - + col2 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT col2 * tab0.col0 + + col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL + 37 + - cor0.col2 * - col2 FROM tab2 AS cor0
----
1481
713
766

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + + ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + + col1 + + 25 AS col2 FROM tab2 AS cor0
----
42
56
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT DISTINCT cor0.col1 DIV col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT cor0.col1 / col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + ( - 51 ) + col1 AS col0 FROM tab2 AS cor0
----
-20
-34
8

query I rowsort
SELECT + ( col2 ) * col2 * ( + tab1.col2 ) + + col0 AS col0 FROM tab1
----
157467
185257
884816

query I rowsort
SELECT tab1.col0 + + tab1.col1 * col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT col2 + 17 AS col2 FROM tab2
----
43
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col0 col2 FROM tab0
----
110
132
180

query I rowsort
SELECT + - 26 FROM tab1 cor0
----
-26
-26
-26

query I rowsort
SELECT ALL - + 70 + 34 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT + cor0.col0 * + cor0.col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + + 98 + + cor0.col2 * + col2 FROM tab1 AS cor0
----
3014
3347
9314

query I rowsort
SELECT DISTINCT - + ( 0 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 57 * col2 col2 FROM tab2 cor0
----
-1404
-1532
-2087

onlyif mysql # use DIV operator for integer division
query I rowsort label-8252
SELECT + 66 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT + 66 / - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8253
SELECT + - col2 DIV - col1 + col1 FROM tab2 cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-8253
SELECT + - col2 / - col1 + col1 FROM tab2 cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) * col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT + 3 * tab1.col2 AS col1 FROM tab1
----
162
171
288

query I rowsort
SELECT col1 + ( ( + col2 ) ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + cor0.col1 * col2 * - col0 - - col1 * ( 22 + - col1 * 15 ) AS col1 FROM tab0 AS cor0
----
-142396
-177160
-786331

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( cor0.col0 * cor0.col1 ) AS col0 FROM tab0, tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-8259
SELECT ALL + tab0.col0 + ( tab0.col0 ) DIV col2 + + tab0.col1 AS col0 FROM tab0
----
110
167
181

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL + tab0.col0 + ( tab0.col0 ) / col2 + + tab0.col1 AS col0 FROM tab0
----
110
167
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-8260
SELECT DISTINCT - col1 + col2 * + 64 + col2 DIV - 14 FROM tab2 AS cor0
----
1604
1696
2413

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT - col1 + col2 * + 64 + col2 / - 14 FROM tab2 AS cor0
----
1604
1696
2413

onlyif mysql # use DIV operator for integer division
query I rowsort label-8261
SELECT col0 * + col0 + + col1 * - col0 DIV - col0 FROM tab0 AS cor0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-8261
SELECT col0 * + col0 + + col1 * - col0 / - col0 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8262
SELECT ALL - cor0.col0 + CAST( - col1 AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - cor0.col0 + CAST ( - col1 AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col2 * + ( - col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - col0 * + col2 - ( col0 * + ( 16 ) ) FROM tab0 AS cor0
----
-525
408
5874

query I rowsort
SELECT + col0 * 42 FROM tab0
----
1008
1470
3738

query I rowsort
SELECT + 21 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8267
SELECT ALL - col1 + - col0 DIV - col1 FROM tab1 cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL - col1 + - col0 / - col1 FROM tab1 cor0
----
-26
-4
-7

query I rowsort
SELECT ALL + 13 * col1 + cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
1175
1297
1354

query I rowsort
SELECT - - col0 - + col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8270
SELECT ALL - 30 DIV col0 + col0 FROM tab1 cor0
----
-7
64
80

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - 30 / col0 + col0 FROM tab1 cor0
----
-7
64
80

query I rowsort
SELECT DISTINCT + - 39 AS col0 FROM tab1 AS cor0
----
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8272
SELECT CAST( NULL AS DECIMAL ) * cor0.col0 - cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT CAST ( NULL AS REAL ) * cor0.col0 - cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 85 + - tab1.col1 FROM tab1
----
-4616
-4855
-8173

onlyif mysql # use DIV operator for integer division
query I rowsort label-8274
SELECT 82 DIV + 40 AS col1 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8274
SELECT 82 / + 40 AS col1 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL - col0 + 46 AS col0 FROM tab1
----
-18
-34
43

query I rowsort
SELECT ALL + ( + 42 ) - col1 FROM tab1
----
16
29
32

query I rowsort
SELECT ALL col0 - + col2 * tab2.col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + + 4 * - ( + col0 ) + 75 * col2 * col1 AS col0 FROM tab1 AS cor0
----
105288
42494
93280

onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT DISTINCT + 87 DIV col0 FROM tab2 AS cor0
----
1
12

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT + 87 / col0 FROM tab2 AS cor0
----
1
12

query I rowsort
SELECT cor0.col0 * + 92 * - col0 FROM tab1 AS cor0
----
-376832
-588800
-828

query I rowsort
SELECT ALL - tab0.col0 * - col2 * tab0.col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT - ( col0 ) + 11 * col0 AS col0 FROM tab0 AS cor0
----
240
350
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-8284
SELECT - + col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT - + col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 3 * col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT - + ( + col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col1 + + cor0.col2 * - ( - col1 ) FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + col1 * + cor0.col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT col0 * 47 AS col0 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT DISTINCT - cor0.col2 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT ALL + col2 DIV - cor0.col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL + col2 / - cor0.col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 * + col2 + col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8293
SELECT ALL - col2 * cor0.col1 DIV + 55 FROM tab0 cor0
----
-1
-135
-51

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - col2 * cor0.col1 / + 55 FROM tab0 cor0
----
-1
-135
-51

query I rowsort
SELECT ( - cor0.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT - cor1.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + - col1 - + col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + 0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + cor0.col1 * + 81 AS col0 FROM tab1, tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT DISTINCT + col2 * - col1 * - cor0.col2 + 41 AS col0 FROM tab2 AS cor0
----
22640
24589
39925

query I rowsort
SELECT DISTINCT col2 - + cor0.col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - col0 + - col2 + col1 * - col2 * 30 FROM tab1 AS cor0
----
-17221
-37616
-42177

query I rowsort
SELECT - cor0.col2 + - col2 * - 64 - + col2 FROM tab0 AS cor0
----
2046
5084
62

query I rowsort
SELECT DISTINCT col0 * 39 FROM tab2 AS cor0
----
273
3042
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-8304
SELECT DISTINCT - col1 DIV + col0 col1 FROM tab2 cor0
----
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT - col1 / + col0 col1 FROM tab2 cor0
----
-4
0

query I rowsort
SELECT ALL - 83 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT + cor0.col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 + + tab0.col1 col2 FROM tab0
----
88
93
99

query I rowsort
SELECT 66 * + col2 - + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-3733
-4368
1733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8309
SELECT ALL col2 * + col1 + + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
1593
663
868

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL col2 * + col1 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 75 ) - + cor0.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a74084236c23b9e6b76129ea5988e304

query I rowsort
SELECT DISTINCT - 91 + 66 FROM tab1 cor0
----
-25

query I rowsort
SELECT DISTINCT + + col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL + col2 * 65 AS col2 FROM tab2 AS cor0
----
1690
1755
2470

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8314
SELECT tab2.col2 * + CAST( NULL AS SIGNED ) + col0 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT tab2.col2 * + CAST ( NULL AS INTEGER ) + col0 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT ALL - ( col2 ) - col0 * col0 * + col1 FROM tab2 cor0
----
-106135
-1546
-358982

query I rowsort
SELECT DISTINCT - ( + 82 ) + + col1 * - 16 FROM tab1 AS cor0
----
-242
-290
-498

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 AS REAL ) * col2 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - 48 * + col2 AS col1 FROM tab1 AS cor0
----
-2592
-2736
-4608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT - CAST( - col1 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-8321
SELECT - CAST ( - col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + 95 * cor0.col1 + + 11 * + 97 FROM tab2, tab2 cor0
----
9 values hashing to 5bf9934222a11c84a5edc1169672a5a8

query I rowsort
SELECT - col2 * - 47 * col0 + tab1.col0 FROM tab1
----
171520
361040
7617

query I rowsort
SELECT DISTINCT - + col2 * + 79 AS col0 FROM tab0 cor0
----
-2607
-6478
-79

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - ( - 79 + col0 ) FROM tab2
----
0
1
72

query I rowsort
SELECT DISTINCT + ( col1 ) * + ( - col0 * col1 ) + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-13616
-2082
-6457

query I rowsort
SELECT DISTINCT + + col1 * col1 + - col2 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT ALL + - col1 * - col1 - ( + col2 ) AS col2 FROM tab2 AS cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 + col1 col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT + - col1 * col0 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT ALL - col2 * + col2 DIV + col2 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - col2 * + col2 / + col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) AS col1 FROM tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - col0 * + 26 + col1 AS col0 FROM tab2 AS cor0
----
-151
-1969
-2037

query I rowsort
SELECT + col1 * + ( 0 ) + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - col2 * + col2 + 65 FROM tab1 AS cor0
----
-2851
-3184
-9151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8338
SELECT + + col1 * - CAST( - 55 AS SIGNED ) - - col2 * + col0 FROM tab0 AS cor0
----
12303
5370
5522

skipif mysql # not compatible
query I rowsort label-8338
SELECT + + col1 * - CAST ( - 55 AS INTEGER ) - - col2 * + col0 FROM tab0 AS cor0
----
12303
5370
5522

query I rowsort
SELECT DISTINCT col0 * + ( + ( col1 ) ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col1 * ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col1 + 88 - cor0.col1 AS col2 FROM tab2 AS cor0
----
88
88
88

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 DISTINCT - cor0.col0 + col2 col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col0 + 51 + + 91 * + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-187749
-308859
-736869

query I rowsort
SELECT DISTINCT + + ( - col0 ) + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col1 + - col1 * col2 AS col1 FROM tab1 cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * col2 col0 FROM tab0 AS cor0
----
-1023
-2542
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8348
SELECT ALL + CAST( col0 AS SIGNED ) * col1 col0 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + CAST ( col0 AS INTEGER ) * col1 col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT + col0 - col0 DIV + 60 AS col0 FROM tab1 AS cor0
----
3
63
79

skipif mysql # not compatible
query I rowsort label-8349
SELECT + col0 - col0 / + 60 AS col0 FROM tab1 AS cor0
----
3
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8350
SELECT ALL - 61 + col1 DIV col2 FROM tab0 AS cor0
----
-59
-60
36

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL - 61 + col1 / col2 FROM tab0 AS cor0
----
-59
-60
36

query I rowsort
SELECT DISTINCT 13 * + cor0.col0 + + col2 FROM tab0 cor0
----
1239
345
456

query I rowsort
SELECT + + cor0.col1 * cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT - - col2 - + cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - ( col0 ) * col2 + + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + - 79 + col2 FROM tab2 AS cor0
----
-41
-52
-53

query I rowsort
SELECT ALL cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 * cor0.col1 * ( - col1 ) + cor0.col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 - ( cor0.col0 ) col2 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8359
SELECT + col2 + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT + col2 + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( + 32 ) FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT + 97 + col2 AS col0 FROM tab0 AS cor0
----
130
179
98

query I rowsort
SELECT DISTINCT + + ( + 55 ) AS col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL 68 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da

query I rowsort
SELECT DISTINCT + ( 15 ) * col2 AS col0 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT ALL + 6 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - cor0.col0 + col2 * col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-8367
SELECT ALL ( + col0 ) DIV col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL ( + col0 ) / col1 FROM tab2
----
0
1
4

query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab2, tab2 AS cor0
----
-24

query I rowsort
SELECT ALL col2 * 16 AS col1 FROM tab1
----
1536
864
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-8370
SELECT - + cor0.col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT - + cor0.col0 / col2 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8371
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8371
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + ( col1 ) * col1 * 51 - - cor0.col2 FROM tab1 cor0
----
34530
5157
8715

query I rowsort
SELECT + + 76 + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1610
722
913

query I rowsort
SELECT ALL - 30 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-29
3
52

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

query I rowsort
SELECT DISTINCT + 32 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-32
-48
29

query I rowsort
SELECT DISTINCT ( 89 + + col1 ) * - 75 AS col2 FROM tab2
----
-11100
-7950
-9000

query I rowsort
SELECT ALL - 87 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab0
----
48
48
48

query I rowsort
SELECT col2 * - col0 * 3 - col0 FROM tab2
----
-574
-6162
-9085

query I rowsort
SELECT ALL col2 * tab2.col0 * - col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - 3 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

onlyif mysql # use DIV operator for integer division
query I rowsort label-8383
SELECT DISTINCT + col0 * col2 DIV col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT + col0 * col2 / col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * ( col2 ) * + col0 AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT 59 + + 45 FROM tab2, tab2 cor0
----
9 values hashing to d32adf5fdd5e4096e2c037977ca3f009

query I rowsort
SELECT 40 + cor0.col1 AS col0 FROM tab2 AS cor0
----
57
71
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8387
SELECT - col0 * - col0 + + col1 DIV 80 AS col1 FROM tab0 cor0
----
1226
577
7922

skipif mysql # not compatible
query I rowsort label-8387
SELECT - col0 * - col0 + + col1 / 80 AS col1 FROM tab0 cor0
----
1226
577
7922

query I rowsort
SELECT DISTINCT + col0 * 13 FROM tab2
----
1014
1027
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8389
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - 42 AS col0 FROM tab1 cor0
----
-52
-55
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8391
SELECT + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8392
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) + col1 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) + col1 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 64 AS col0 FROM tab0
----
-1536
-2240
-5696

query I rowsort
SELECT col1 * col1 * col2 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + 74 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ( 40 ) + + col2 FROM tab1 AS cor0
----
136
94
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8397
SELECT + + CAST( NULL AS SIGNED ) + - cor0.col2 * col1 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT + + CAST ( NULL AS INTEGER ) + - cor0.col2 * col1 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8398
SELECT + ( + col0 ) + + col1 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8398
SELECT + ( + col0 ) + + col1 / - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT cor1.col1 * cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e6d1e51162f22414194f33e791083a39

query I rowsort
SELECT DISTINCT col0 * - 35 FROM tab0 AS cor0
----
-1225
-3115
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8401
SELECT ALL + col2 * col2 + 32 DIV col0 + + col2 * col0 * - col2 col1 FROM tab1 cor0
----
-204687
-5822
-728064

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL + col2 * col2 + 32 / col0 + + col2 * col0 * - col2 col1 FROM tab1 cor0
----
-204687
-5822
-728064

query I rowsort
SELECT + + col2 + col2 * col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8403
SELECT DISTINCT + col2 * CAST( - col0 AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT + col2 * CAST ( - col0 AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT 22 FROM tab2, tab1 cor0, tab2 AS cor1
----
22

query I rowsort
SELECT col0 * 70 AS col1 FROM tab1 AS cor0
----
210
4480
5600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 36 * + col2 col0 FROM tab0 AS cor0
----
1188
2952
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-8407
SELECT DISTINCT 76 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT 76 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 16 col2 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT + - ( - 86 ) * - col2 FROM tab1 AS cor0
----
-4644
-4902
-8256

query I rowsort
SELECT + col0 * + 7 AS col2 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT DISTINCT cor0.col0 * col2 * + col1 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + col0 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL 35 * + 66 AS col0 FROM tab2 cor0
----
2310
2310
2310

query I rowsort
SELECT ( 30 ) FROM tab0 AS cor0
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8415
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + - 26 * - 31 FROM tab0 AS cor0
----
806

query I rowsort
SELECT - col0 * 38 FROM tab0 AS cor0
----
-1330
-3382
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * col2 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col2 * + 93 AS col1 FROM tab0
----
3069
7626
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8420
SELECT col0 + + CAST( - col0 * + col0 AS SIGNED ) FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-8420
SELECT col0 + + CAST ( - col0 * + col0 AS INTEGER ) FROM tab2
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT + + 59 DIV - col2 + + col2 * + 19 FROM tab1 AS cor0
----
1025
1082
1824

skipif mysql # not compatible
query I rowsort label-8421
SELECT + + 59 / - col2 + + col2 * + 19 FROM tab1 AS cor0
----
1025
1082
1824

query I rowsort
SELECT ALL + col0 + - col2 * 66 AS col2 FROM tab1 AS cor0
----
-3561
-3698
-6256

onlyif mysql # use DIV operator for integer division
query I rowsort label-8423
SELECT + cor0.col0 + col2 DIV + col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-8423
SELECT + cor0.col0 + col2 / + col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL cor0.col1 * col1 * - 17 FROM tab0 AS cor0
----
-125732
-140777
-159953

query I rowsort
SELECT DISTINCT - + col2 + + col2 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - 31 - + col0 FROM tab2 AS cor0
----
-109
-110
-38

query I rowsort
SELECT ALL + 31 * + col0 AS col0 FROM tab0 AS cor0
----
1085
2759
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-8428
SELECT - - col2 + - col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-8428
SELECT - - col2 + - col1 / cor0.col1 AS col0 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 21 * + col0 FROM tab1 cor0
----
141
1984
2720

query I rowsort
SELECT DISTINCT col0 + col0 * - col2 * col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT - cor0.col1 * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + - col2 - + col2 * + col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT + - cor0.col0 * cor0.col1 + + 55 * 56 FROM tab1 AS cor0
----
2040
2440
3002

query I rowsort
SELECT DISTINCT - 37 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-54
-68
-96

query I rowsort
SELECT col2 * 99 FROM tab2
----
2574
2673
3762

query I rowsort
SELECT DISTINCT 61 * tab0.col1 AS col0 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT - 88 * 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3872

query I rowsort
SELECT DISTINCT - ( col2 ) + col0 FROM tab1
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8439
SELECT cor0.col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8439
SELECT cor0.col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 61 + - col2 * 75 AS col0 FROM tab0
----
-136
-2536
-6211

query I rowsort
SELECT ALL ( col0 ) + - col1 AS col1 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - cor0.col0 * CAST ( + col2 AS REAL ) + col2 AS col1 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - - col2 + + 36 * ( + col1 ) FROM tab2 AS cor0
----
1143
2150
650

query I rowsort
SELECT DISTINCT 7 + + col2 + + tab2.col0 * + col2 AS col2 FROM tab2
----
2061
223
3047

query I rowsort
SELECT - col2 + - col0 * 20 + col1 * col0 AS col2 FROM tab0
----
1551
2694
6237

query I rowsort
SELECT DISTINCT - tab1.col2 + + col2 * + ( 65 ) * col2 FROM tab1
----
189486
211128
598944

query I rowsort
SELECT 27 + col1 * col0 FROM tab0
----
2091
3422
8126

query I rowsort
SELECT tab2.col2 * col1 * + tab2.col2 AS col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + tab2.col0 * ( + ( tab2.col1 ) ) AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL cor0.col0 * - col2 * 25 + + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-4711
-50544
-74892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + + 31 + - col1 FROM tab0 AS cor0
----
-31
29

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 + - col2 FROM tab1 cor0
----
-2
-37
-70

query I rowsort
SELECT DISTINCT + col0 - 99 FROM tab2 AS cor0
----
-20
-21
-92

query I rowsort
SELECT DISTINCT + col2 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + cor0.col1 * - col1 - + col1 AS col1 FROM tab1 cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 + tab0.col2 col0 FROM tab0
----
109
158
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8458
SELECT DISTINCT col2 * + tab2.col2 + + col1 DIV col1 AS col1 FROM tab2
----
1445
677
730

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT col2 * + tab2.col2 + + col1 / col1 AS col1 FROM tab2
----
1445
677
730

query I rowsort
SELECT ALL + ( - tab1.col1 ) AS col2 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT 29 + - tab0.col1 FROM tab0
----
-57
-62
-68

query I rowsort
SELECT - 40 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT 34 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col0 FROM tab2 AS cor0
----
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8465
SELECT + col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 87 ) col1 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + - col2 - col2 AS col0 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + + ( col0 ) * col0 + + 72 AS col0 FROM tab1 AS cor0
----
4168
6472
81

query I rowsort
SELECT DISTINCT - + ( + 12 ) * - col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT ALL + 97 - col0 AS col2 FROM tab1 AS cor0
----
17
33
94

query I rowsort
SELECT + 69 * - cor0.col0 - - col1 * + col0 FROM tab0 AS cor0
----
1958
408
980

query I rowsort
SELECT DISTINCT - 98 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-98

query I rowsort
SELECT + col0 * col0 + + col2 AS col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL - 22 * col2 + 76 FROM tab0 AS cor0
----
-1728
-650
54

query I rowsort
SELECT DISTINCT 24 * col0 - - ( + 22 ) AS col1 FROM tab0 AS cor0
----
2158
598
862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 - 49 col1 FROM tab0 AS cor0
----
2015
3346
8050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * + col1 col1 FROM tab2 cor0
----
-1615
-2945
-5605

query I rowsort
SELECT + ( col0 * - col0 ) + 4 FROM tab1
----
-4092
-5
-6396

query I rowsort
SELECT + col2 + - cor0.col2 * ( + col1 ) AS col0 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - col0 * col1 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8481
SELECT + + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8481
SELECT + + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 37 + - 69 FROM tab1 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 8 col1 FROM tab0
----
-264
-656
-8

query I rowsort
SELECT ALL 18 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT + 19 + + col1 FROM tab2 AS cor0
----
36
50
78

query I rowsort
SELECT - ( ( + cor0.col1 ) ) * - col1 * 93 FROM tab1 cor0
----
15717
62868
9300

query I rowsort
SELECT + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8488
SELECT + - CAST( NULL AS SIGNED ) * col2 * col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8488
SELECT + - CAST ( NULL AS INTEGER ) * col2 * col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 80 * col0 AS col0 FROM tab0
----
-1920
-2800
-7120

query I rowsort
SELECT + col2 * + col0 + 40 AS col0 FROM tab0
----
7338
75
832

query I rowsort
SELECT - col1 * cor0.col0 + - col1 * - col2 * - col2 + + ( ( + col1 ) ) * + cor0.col2 FROM tab1 AS cor0
----
-119600
-32560
-74490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - col0 col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL - 77 * + col1 AS col0 FROM tab1 AS cor0
----
-1001
-2002
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) * 60 + - 14 col0 FROM tab1 AS cor0
----
-1574
-614
-794

onlyif mysql # use DIV operator for integer division
query I rowsort label-8495
SELECT DISTINCT col0 + + col1 DIV 88 col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT col0 + + col1 / 88 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - 70 AS col0 FROM tab2 AS cor0
----
70

query I rowsort
SELECT ALL 71 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT - col0 * + 89 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT - cor0.col0 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT cor1.col1 * 51 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d3b09527c9b4eea78fae2383d1fd9399

query I rowsort
SELECT tab1.col0 * ( col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col2 + + col0 * 78 FROM tab2 AS cor0
----
519
6058
6124

query I rowsort
SELECT + col2 * + 2 * + ( cor0.col1 * col0 ) + cor0.col0 FROM tab1 AS cor0
----
199760
73024
8427

onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT - col2 DIV cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-8504
SELECT - col2 / cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT - cor0.col1 * + 66 AS col1 FROM tab1 AS cor0
----
-1716
-660
-858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 90 + - 12 * + col0 col0 FROM tab1 AS cor0
----
-100
-1037
-848

query I rowsort
SELECT ALL - 62 * + col2 FROM tab0 AS cor0
----
-2046
-5084
-62

query I rowsort
SELECT DISTINCT 8 * + col2 AS col2 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT DISTINCT + 77 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
108108
43890
96096

query I rowsort
SELECT ALL - 52 + col1 AS col0 FROM tab1 cor0
----
-26
-39
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * col2 col2 FROM tab1 cor0
----
-3888
-4104
-6912

query I rowsort
SELECT ALL 18 + col1 AS col1 FROM tab1 AS cor0
----
28
31
44

query I rowsort
SELECT 65 + col0 + cor0.col1 FROM tab2 AS cor0
----
103
161
202

query I rowsort
SELECT + + col0 * - col0 + cor0.col0 + + 5 FROM tab0 AS cor0
----
-1185
-547
-7827

query I rowsort
SELECT + col2 * cor0.col2 + - 47 * 86 * col2 - col1 AS col1 FROM tab2 cor0
----
-104475
-108436
-152169

query I rowsort
SELECT ALL - 84 * + 76 AS col2 FROM tab0
----
-6384
-6384
-6384

query I rowsort
SELECT ( cor0.col2 ) + - ( col1 ) FROM tab2 cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 * col0 col1 FROM tab0
----
2112
3080
7832

query I rowsort
SELECT + col0 + 7 AS col2 FROM tab0 cor0
----
31
42
96

query I rowsort
SELECT col2 + + 24 FROM tab0 AS cor0
----
106
25
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * ( col0 ) col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL col1 - col2 * - col0 AS col0 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-8523
SELECT ALL + col2 - - tab2.col1 DIV col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + col2 - - tab2.col1 / col1 FROM tab2
----
27
28
39

query I rowsort
SELECT 68 * col0 * - col0 AS col2 FROM tab2
----
-3332
-413712
-424388

query I rowsort
SELECT DISTINCT - col2 * - col0 + 8 * + col0 AS col0 FROM tab1 cor0
----
186
4160
8320

query I rowsort
SELECT + col2 - ( + col0 ) FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8527
SELECT DISTINCT - CAST( - 58 AS SIGNED ) + + col0 col1 FROM tab0
----
147
82
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT - CAST ( - 58 AS INTEGER ) + + col0 col1 FROM tab0
----
147
82
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 col0 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8529
SELECT CAST( NULL AS SIGNED ) * col2 * + cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT CAST ( NULL AS INTEGER ) * col2 * + cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT 86 DIV 60 + col0 * - col2 * 9 FROM tab1
----
-1457
-32831
-69119

skipif mysql # not compatible
query I rowsort label-8530
SELECT 86 / 60 + col0 * - col2 * 9 FROM tab1
----
-1457
-32831
-69119

query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - + 41 AS col2 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-21

query I rowsort
SELECT DISTINCT + col2 + col1 * - ( col1 ) FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL + + cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - 6 + - col1 AS col1 FROM tab2 AS cor0
----
-23
-37
-65

query I rowsort
SELECT DISTINCT + 9 * + col1 FROM tab0 AS cor0
----
774
819
873

query I rowsort
SELECT DISTINCT + col2 + - col2 * 18 AS col1 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT DISTINCT - col2 + ( 84 ) AS col1 FROM tab1
----
-12
27
30

query I rowsort
SELECT ALL - col2 + - 23 * col0 AS col0 FROM tab0
----
-2129
-585
-806

query I rowsort
SELECT ALL - col2 + - col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL - - col0 + 11 FROM tab0 cor0
----
100
35
46

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - col2 - + 84 * col0 FROM tab1 AS cor0
----
-306
-5433
-6816

query I rowsort
SELECT ALL - col0 * + 88 AS col0 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT - col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT + + 72 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT - + 10 + col0 AS col2 FROM tab0 AS cor0
----
14
25
79

query I rowsort
SELECT ALL ( + col2 ) + col2 * + col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ( col1 ) + - col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - col1 * col0 - - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col0 AS REAL ) + + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8553
SELECT - - CAST( NULL AS SIGNED ) * 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT - - CAST ( NULL AS INTEGER ) * 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + 21 * col2 + col1 AS col0 FROM tab1 AS cor0
----
1160
1207
2029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 73 ) col1 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT ALL - col2 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 81 ) - col2 * - col2 col0 FROM tab2 AS cor0
----
1525
757
810

query I rowsort
SELECT DISTINCT + col2 - + tab0.col2 AS col0 FROM tab0
----
0

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + col1 * - 81 AS col0 FROM tab1
----
-1053
-2106
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 7 ) * - col2 col1 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT col2 * - ( - col2 ) + + ( + col2 * + col1 ) + col1 * col2 AS col2 FROM tab1 cor0
----
11712
4389
5724

query I rowsort
SELECT ALL col0 * - 15 FROM tab0
----
-1335
-360
-525

query I rowsort
SELECT - 34 * col1 + col0 + col0 * - col1 FROM tab2 AS cor0
----
-1264
-1842
-6530

query I rowsort
SELECT tab1.col1 * ( 86 ) * col2 FROM tab1
----
107328
120744
49020

query I rowsort
SELECT - + col2 * col2 + + col1 + col1 FROM tab0 AS cor0
----
-6542
-917
193

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( ( col0 ) AS REAL ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 * - 44 FROM tab0 cor0
----
-1056
-1540
-3916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8570
SELECT - - CAST( NULL AS DECIMAL ) * - cor0.col0 - - cor0.col0 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8570
SELECT - - CAST ( NULL AS REAL ) * - cor0.col0 - - cor0.col0 col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * - col1 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 68 * 37 AS col2 FROM tab0
----
2516
2516
2516

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8573
SELECT - CAST( - 75 AS SIGNED ) AS col2 FROM tab1
----
75
75
75

skipif mysql # not compatible
query I rowsort label-8573
SELECT - CAST ( - 75 AS INTEGER ) AS col2 FROM tab1
----
75
75
75

query I rowsort
SELECT DISTINCT + 90 + - 84 * - col1 FROM tab1 AS cor0
----
1182
2274
930

query I rowsort
SELECT + cor0.col2 + - cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 81a5cd95f3bf6bcb4ae24bb35bb8df50

query I rowsort
SELECT + 31 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8577
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) - cor0.col0 * - col0 col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - 57 * ( - col1 ) + - col1 FROM tab1 cor0
----
1456
560
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col2 * col0 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - ( - tab0.col0 * col2 ) AS col1 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + cor0.col2 col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + 11 + col0 AS col1 FROM tab1 AS cor0
----
14
75
91

query I rowsort
SELECT + col0 + + 3 AS col1 FROM tab1
----
6
67
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8585
SELECT CAST( - col1 AS SIGNED ) * col0 * col2 FROM tab1
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-8585
SELECT CAST ( - col1 AS INTEGER ) * col0 * col2 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8586
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + - tab0.col2 / - col1 + + 46 col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + - tab0.col2 / - col1 + + 46 col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 64 + - col1 FROM tab1
----
38
51
54

query I rowsort
SELECT 72 + - col1 AS col1 FROM tab0
----
-14
-19
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8589
SELECT DISTINCT - 46 + col1 DIV - col0 + - 27 AS col1 FROM tab2
----
-73
-77

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - 46 + col1 / - col0 + - 27 AS col1 FROM tab2
----
-73
-77

query I rowsort
SELECT - + col0 * + 69 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT ALL cor0.col2 * 85 * - col2 FROM tab0 cor0
----
-571540
-85
-92565

onlyif mysql # use DIV operator for integer division
query I rowsort label-8592
SELECT DISTINCT + cor0.col0 + + 65 DIV col0 FROM tab0 AS cor0
----
26
36
89

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + cor0.col0 + + 65 / col0 FROM tab0 AS cor0
----
26
36
89

query I rowsort
SELECT - col1 * - col1 + tab0.col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT - 97 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
-97

query I rowsort
SELECT DISTINCT + ( - 30 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT DISTINCT + - col0 * + cor0.col0 + col1 * col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT + - col0 * + cor0.col0 + col1 * col2 / + col1 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col0 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT 29 * col0 FROM tab2
----
203
2262
2291

query I rowsort
SELECT - 74 FROM tab2, tab2 cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL - col0 * tab0.col1 AS col1 FROM tab0
----
-2064
-3395
-8099

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * + col2 + - col1 <> NULL
----

query I rowsort
SELECT + col2 * - col2 + col0 AS col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT col1 * + col0 + + col2 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT col0 DIV + col0 - col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-8604
SELECT col0 / + col0 - col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT + tab0.col1 + col1 * + col1 AS col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + col0 + - col0 * col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT - col2 * - col2 + + tab0.col2 AS col0 FROM tab0
----
1122
2
6806

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col2 + col2 * - col0 + col2 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab1, tab0, tab1 AS cor0
----
93

query I rowsort
SELECT ALL - 7 * + col2 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT tab1.col2 * col2 + col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT + 35 * col2 AS col2 FROM tab1 AS cor0
----
1890
1995
3360

query I rowsort
SELECT ALL + 0 * + 41 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col0 + + col1 * + col0 * 70 + + cor0.col2 FROM tab0 AS cor0
----
144537
237686
567101

query I rowsort
SELECT + col0 * + 52 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT + col0 + - col2 * 56 + col0 * ( 53 ) FROM tab1 AS cor0
----
-1056
-2862
264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8618
SELECT DISTINCT - col2 * CAST( 97 AS SIGNED ) + + col2 AS col0 FROM tab2 cor0
----
-2496
-2592
-3648

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT - col2 * CAST ( 97 AS INTEGER ) + + col2 AS col0 FROM tab2 cor0
----
-2496
-2592
-3648

query I rowsort
SELECT DISTINCT - - col0 * col0 + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + 83 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT + col1 * + 25 AS col1 FROM tab0 AS cor0
----
2150
2275
2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 - col0 col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT + ( col0 ) * col1 + 22 * col0 FROM tab1 AS cor0
----
144
2048
2800

query I rowsort
SELECT col1 * col2 + + col1 + + 11 FROM tab1 AS cor0
----
1272
1441
591

query I rowsort
SELECT DISTINCT - + col2 + col1 * col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8627
SELECT + col2 + col2 * + CAST( 66 AS SIGNED ) FROM tab1 AS cor0
----
3618
3819
6432

skipif mysql # not compatible
query I rowsort label-8627
SELECT + col2 + col2 * + CAST ( 66 AS INTEGER ) FROM tab1 AS cor0
----
3618
3819
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-8628
SELECT - 45 DIV - col2 AS col0 FROM tab0
----
0
1
45

skipif mysql # not compatible
query I rowsort label-8628
SELECT - 45 / - col2 AS col0 FROM tab0
----
0
1
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + tab2.col1 * col0 col2 FROM tab2
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT + col2 DIV 65 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8630
SELECT + col2 / 65 FROM tab1
----
0
0
1

query I rowsort
SELECT - col2 * 97 FROM tab1
----
-5238
-5529
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-8632
SELECT - 66 DIV col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 66 / col0 FROM tab0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8633
SELECT DISTINCT + ( ( col1 ) + CAST( NULL AS DECIMAL ) ) * col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + ( ( col1 ) + CAST ( NULL AS REAL ) ) * col0 FROM tab2
----
NULL

query I rowsort
SELECT ( - ( - col0 ) + + 64 ) * col2 FROM tab2
----
1917
3692
5434

onlyif mysql # use DIV operator for integer division
query I rowsort label-8635
SELECT - col1 + + cor0.col1 * col0 DIV col2 FROM tab1 AS cor0
----
-25
-3
1

skipif mysql # not compatible
query I rowsort label-8635
SELECT - col1 + + cor0.col1 * col0 / col2 FROM tab1 AS cor0
----
-25
-3
1

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 + + col1 * col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT DISTINCT col0 + col0 * col0 AS col2 FROM tab0 cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-8638
SELECT DISTINCT col1 - + col1 DIV col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT col1 - + col1 / col1 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT col1 * - col2 + - col0 AS col1 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT col0 + - col2 + - col1 AS col1 FROM tab2
----
-51
-7
24

query I rowsort
SELECT DISTINCT + col2 + tab2.col0 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8642
SELECT ALL col1 * col0 * col1 + col0 DIV col2 + + tab0.col0 * - col1 FROM tab0
----
175440
325955
728911

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL col1 * col0 * col1 + col0 / col2 + + tab0.col0 * - col1 FROM tab0
----
175440
325955
728911

query I rowsort
SELECT DISTINCT col0 * + col2 + col2 * - col1 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT + col0 + + col0 + + col1 AS col1 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL + - cor0.col2 - - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT 23 + - ( col1 + col1 ) * col2 FROM tab1
----
-1117
-2473
-2785

query I rowsort
SELECT col2 - tab1.col0 * + col0 AS col2 FROM tab1
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT - col1 DIV + col0 + + col0 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-8649
SELECT - col1 / + col0 + + col0 FROM tab0
----
21
33
88

query I rowsort
SELECT DISTINCT - tab1.col0 * col2 * - col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - 73 * - 75 - + tab1.col1 FROM tab1
----
5449
5462
5465

query I rowsort
SELECT col0 + col1 * tab1.col2 * col2 AS col1 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT ( ( col2 ) * col1 ) + col0 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + 65 + + col1 * col1 AS col0 FROM tab2 cor0
----
1026
354
3546

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + - 11 AS col2 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + 51 * + cor0.col2 + + col2 FROM tab2 cor0
----
1352
1404
1976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * col0 - col0 * col1 col0 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT + col1 * - col1 + col1 * col0 FROM tab1 AS cor0
----
-598
540
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-8660
SELECT 90 DIV col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8660
SELECT 90 / col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - - col2 + col2 * + col2 * + col0 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT DISTINCT + 5 * col0 AS col1 FROM tab2 cor0
----
35
390
395

query I rowsort
SELECT ALL col2 + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - - 52 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT ALL 21 + + col1 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT ALL col1 + - col1 * - tab1.col0 AS col2 FROM tab1 WHERE NOT ( col2 ) IN ( col1 )
----
104
1053
650

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 AS col2 FROM tab1
----
35
4106
6413

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col2 IN ( + col2 + - col1 * col2 )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL NOT IN ( col1 * + col2 )
----

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 AS cor0 WHERE NULL IN ( + col2 * + col2 + col2 )
----

query I rowsort
SELECT - col0 * tab1.col1 * col2 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8672
SELECT col0 * col1 + + tab0.col1 DIV col2 AS col0 FROM tab0
----
2066
3492
8100

skipif mysql # not compatible
query I rowsort label-8672
SELECT col0 * col1 + + tab0.col1 / col2 AS col0 FROM tab0
----
2066
3492
8100

onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT DISTINCT + col1 DIV - tab0.col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT + col1 / - tab0.col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL - col0 * + col2 FROM tab0 WHERE NOT + col0 - col0 NOT BETWEEN - col2 * + col1 + - col1 + col1 AND col1 + col1
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-8675
SELECT + col2 * col2 DIV col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8675
SELECT + col2 * col2 / col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col1 * col1 + col2 * + col1 FROM tab1
----
1417
2080
670

query I rowsort
SELECT ALL - tab0.col0 + - tab0.col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT - col2 + col0 + + col1 * col1 FROM tab2
----
330
3533
941

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col2 + col1 )
----

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 * - col0 FROM tab2
----
2686
434
9204

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * col0 + - col2 * - col1 col2 FROM tab1
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-8683
SELECT ALL + tab1.col2 DIV + col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL + tab1.col2 / + col2 AS col2 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8684
SELECT DISTINCT + tab0.col0 DIV col0 col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT + tab0.col0 / col0 col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col0 + - col0 * - col2 + col0 * tab0.col0 * tab0.col1 FROM tab0
----
118825
50304
728020

query I rowsort
SELECT col2 + + col2 - col1 FROM tab2
----
-7
23
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8687
SELECT DISTINCT + tab1.col0 DIV + tab1.col2 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT + tab1.col0 / + tab1.col2 AS col0 FROM tab1
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8688
SELECT DISTINCT + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT + col0 / - col0 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col1 * col2 + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT + cor0.col0 + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col1 + col0 * col2 + + col2 FROM tab2
----
2113
247
3057

onlyif mysql # use DIV operator for integer division
query I rowsort label-8692
SELECT ALL + cor0.col2 DIV + col2 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + cor0.col2 / + col2 + col0 FROM tab0 AS cor0
----
25
36
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - col2 + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col1 + col2 )
----

query I rowsort
SELECT ALL - col2 + col0 FROM tab1 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT - 33 + + cor0.col1 FROM tab1 AS cor0
----
-20
-23
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8697
SELECT ALL + CAST( + col0 + col1 AS SIGNED ) FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + CAST ( + col0 + col1 AS INTEGER ) FROM tab0
----
110
132
180

query I rowsort
SELECT + ( - 33 ) FROM tab2 cor0
----
-33
-33
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8699
SELECT + CAST( NULL AS SIGNED ) + - col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT + CAST ( NULL AS INTEGER ) + - col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8700
SELECT DISTINCT + cor0.col2 DIV + 56 AS col0 FROM tab1, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT + cor0.col2 / + 56 AS col0 FROM tab1, tab2 AS cor0
----
0

query I rowsort
SELECT - cor0.col1 + col2 * - col0 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-8702
SELECT DISTINCT + - col1 + - col2 DIV + ( + ( col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + - col1 + - col2 / + ( + ( col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + + col1 + + col0 * 56 FROM tab2 AS cor0
----
423
4427
4441

query I rowsort
SELECT ALL - 69 * - col1 - - col1 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT - col0 * + col2 * + col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT + 29 * col2 * col2 AS col0 FROM tab0
----
194996
29
31581

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8707
SELECT ALL CAST( col2 * + col2 AS SIGNED ) AS col0 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL CAST ( col2 * + col2 AS INTEGER ) AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - col2 * + cor0.col0 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT col0 * - col0 * tab0.col1 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT - ( - 35 ) * + tab2.col1 FROM tab2
----
1085
2065
595

onlyif mysql # use DIV operator for integer division
query I rowsort label-8711
SELECT col1 DIV 57 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8711
SELECT col1 / 57 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col1 * 3 FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT + - col0 * 74 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT + col1 - - col0 * + col0 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT + col2 * + col2 + - col1 + - col0 FROM tab0 AS cor0
----
-131
6544
979

query I rowsort
SELECT + col1 * 1 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT col1 + - col2 * col0 * col2 FROM tab0
----
-26050
-598345
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL col2 + 75 AS col1 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT ALL col2 * 80 FROM tab0
----
2640
6560
80

query I rowsort
SELECT + col0 * + col2 + - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT DISTINCT - 92 * col2 AS col0 FROM tab0 AS cor0
----
-3036
-7544
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8723
SELECT DISTINCT col2 DIV ( + col0 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT col2 / ( + col0 ) FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - - 46 + - cor0.col1 FROM tab0 AS cor0
----
-40
-45
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8725
SELECT ALL - + ( - col0 ) + + col2 DIV + cor0.col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - + ( - col0 ) + + col2 / + cor0.col1 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT DISTINCT 74 * + 44 AS col0 FROM tab2 AS cor0
----
3256

query I rowsort
SELECT DISTINCT + col0 + col2 * col2 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - 96 + + col2 + - col1 FROM tab1 AS cor0
----
-13
-49
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8729
SELECT ALL ( ( col1 ) ) * - CAST( - 69 AS SIGNED ) * cor0.col0 + col1 - col0 * col1 FROM tab1 AS cor0
----
43530
5330
70733

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL ( ( col1 ) ) * - CAST ( - 69 AS INTEGER ) * cor0.col0 + col1 - col0 * col1 FROM tab1 AS cor0
----
43530
5330
70733

query I rowsort
SELECT ALL 82 * + col0 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT - + col2 - + ( + col1 ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - col0 * - 49 AS col2 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT ALL - + 33 AS col1 FROM tab0 cor0
----
-33
-33
-33

query I rowsort
SELECT - cor0.col2 * col2 + + col1 * - ( col0 ) - col1 FROM tab1 cor0
----
-10269
-3020
-3899

query I rowsort
SELECT ALL - + ( 32 ) * - col2 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab0 cor0
----
63

query I rowsort
SELECT - col2 * 9 + col2 FROM tab0 AS cor0
----
-264
-656
-8

query I rowsort
SELECT DISTINCT - - ( - col1 ) + + col2 * - col0 + - 61 AS col2 FROM tab0 AS cor0
----
-193
-7450
-939

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8739
SELECT 77 * col2 + cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT 77 * col2 + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT col2 - + col0 * + col1 * 43 AS col0 FROM tab2 AS cor0
----
-197860
-57711
-9304

query I rowsort
SELECT DISTINCT col1 * 26 * col2 + col0 FROM tab1
----
14884
32528
36507

query I rowsort
SELECT ( + 19 ) * col0 + col0 + 90 FROM tab1
----
1370
150
1690

query I rowsort
SELECT - 88 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT cor0.col0 DIV 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-8745
SELECT cor0.col0 / 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 36 col0 FROM tab0 AS cor0
----
-3096
-3276
-3492

query I rowsort
SELECT + + 39 AS col0 FROM tab0 cor0
----
39
39
39

query I rowsort
SELECT DISTINCT - col2 * + 80 - col2 FROM tab1 cor0
----
-4374
-4617
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8749
SELECT ALL col0 * - col1 + + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL col0 * - col1 + + col2 / col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab0 cor0
----
-71

query I rowsort
SELECT + + 71 * + col0 AS col1 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT ALL col0 * + col2 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 * ( + col1 ) AS col0 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT ( col1 ) + col2 + col2 AS col0 FROM tab1
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-8755
SELECT - col0 DIV - col0 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8755
SELECT - col0 / - col0 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 * col2 + - col1 * col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * - 84 col1 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT - + 80 * col0 AS col1 FROM tab1 cor0
----
-240
-5120
-6400

query I rowsort
SELECT + + cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 30 + + cor0.col1 * + 52 * + col0 col2 FROM tab1 AS cor0
----
33250
4026
54050

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8762
SELECT ALL + col0 - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + col0 - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col1 + - col0 AS col2 FROM tab1
----
-44
-54
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT - - ( - col2 ) DIV col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT - - ( - col2 ) / col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 99 ) * col2 col2 FROM tab0 AS cor0
----
3267
8118
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8766
SELECT + 58 * col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-8766
SELECT + 58 * col1 / + col1 AS col1 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT 75 + cor0.col1 * col2 FROM tab1 AS cor0
----
1323
1479
645

query I rowsort
SELECT ALL - + 89 + - col1 FROM tab1 AS cor0
----
-102
-115
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8769
SELECT ALL CAST( + col1 AS SIGNED ) * col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL CAST ( + col1 AS INTEGER ) * col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT col0 + - 27 FROM tab2
----
-20
51
52

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 + col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT + cor2.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

query I rowsort
SELECT + + 57 AS col2 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8774
SELECT DISTINCT + col2 DIV ( col0 ) + + col0 * + col1 FROM tab2
----
1343
220
4602

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT + col2 / ( col0 ) + + col0 * + col1 FROM tab2
----
1343
220
4602

query I rowsort
SELECT + col2 * - col2 + - tab0.col1 AS col2 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT ( + tab2.col0 * - col0 ) FROM tab2
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8777
SELECT + ( 9 * tab2.col2 + - CAST( col0 AS SIGNED ) ) AS col1 FROM tab2
----
156
236
263

skipif mysql # not compatible
query I rowsort label-8777
SELECT + ( 9 * tab2.col2 + - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2
----
156
236
263

query I rowsort
SELECT ( col0 ) + - col2 * 11 AS col2 FROM tab1
----
-563
-591
-976

query I rowsort
SELECT 39 - 52 AS col0 FROM tab0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 * col0 col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT col2 * - 62 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT - cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT 18 * + col2 * - 68 FROM tab0 AS cor0
----
-100368
-1224
-40392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT CAST( col0 AS SIGNED ) * col1 * tab0.col0 FROM tab0
----
118825
49536
720811

skipif mysql # not compatible
query I rowsort label-8784
SELECT CAST ( col0 AS INTEGER ) * col1 * tab0.col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT 65 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT DISTINCT - col0 + + tab0.col1 DIV col2 AS col0 FROM tab0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT - col0 + + tab0.col1 / col2 AS col0 FROM tab0
----
-22
-88
62

query I rowsort
SELECT tab2.col0 * + col2 * ( col0 + - 98 ) FROM tab2
----
-17199
-40560
-57038

query I rowsort
SELECT - col1 + - tab1.col1 * + tab1.col2 AS col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - tab0.col1 * ( + col0 ) + + col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - - col2 + 89 FROM tab2 AS cor0
----
115
116
127

query I rowsort
SELECT + col2 * - 11 + - cor0.col1 * + col1 FROM tab0 cor0
----
-7759
-9183
-9420

query I rowsort
SELECT ALL + - col1 + col0 * col0 AS col0 FROM tab0 cor0
----
1128
490
7830

query I rowsort
SELECT ( + col0 ) * col0 + + ( + col0 ) FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - col0 + + 11 + - col1 * + col0 FROM tab1 AS cor0
----
-1109
-693
-70

query I rowsort
SELECT ALL + 73 + + col2 * - col0 + + ( 31 + cor0.col2 ) AS col2 FROM tab2 cor0
----
-1898
-2860
-58

query I rowsort
SELECT DISTINCT + + ( col1 ) + col1 + ( + 92 * - cor0.col0 ) FROM tab0 AS cor0
----
-2036
-3026
-8006

query I rowsort
SELECT ALL + 4 * + cor0.col0 + cor0.col1 AS col2 FROM tab2 cor0
----
333
371
59

query I rowsort
SELECT - 6 * col2 FROM tab0 AS cor0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8799
SELECT ALL col1 + col1 DIV col1 AS col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL col1 + col1 / col1 AS col0 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT + col2 + col0 * + 62 + tab1.col2 * - ( col2 ) AS col0 FROM tab1
----
-2676
-4160
776

query I rowsort
SELECT + col2 + - 3 * - col1 FROM tab0 AS cor0
----
291
292
355

query I rowsort
SELECT 17 * - tab2.col0 AS col0 FROM tab2
----
-119
-1326
-1343

query I rowsort
SELECT + 23 * col2 FROM tab1
----
1242
1311
2208

query I rowsort
SELECT + 82 * col1 FROM tab2
----
1394
2542
4838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * col0 col1 FROM tab0 cor0
----
1584
2310
5874

query I rowsort
SELECT ( col1 ) * col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - 73 * col1 FROM tab1
----
-1898
-730
-949

query I rowsort
SELECT + col2 - ( + cor0.col1 * col1 ) AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + cor0.col0 * cor0.col2 * col2 + - cor0.col0 FROM tab2 AS cor0
----
113997
5096
52650

query I rowsort
SELECT - + col1 - - 19 FROM tab2 AS cor0
----
-12
-40
2

query I rowsort
SELECT + col0 * - 93 FROM tab2 AS cor0
----
-651
-7254
-7347

query I rowsort
SELECT DISTINCT - + col0 * ( - 97 ) AS col2 FROM tab1 AS cor0
----
291
6208
7760

query I rowsort
SELECT col0 + - 56 * + col2 AS col2 FROM tab2 AS cor0
----
-1378
-1505
-2049

query I rowsort
SELECT DISTINCT 39 * col0 * col0 FROM tab1 AS cor0
----
159744
249600
351

query I rowsort
SELECT - col2 * + ( col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8816
SELECT CAST( NULL AS SIGNED ) * cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT CAST ( NULL AS INTEGER ) * cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( cor0.col1 ) * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT + 13 * - col2 AS col0 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT - 8 + + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2830
7454
89

query I rowsort
SELECT 1 + + col2 * col1 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT - 81 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917

query I rowsort
SELECT - ( + tab2.col1 + col1 ) AS col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT - col0 * cor0.col2 * 18 FROM tab1 AS cor0
----
-138240
-2916
-65664

onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT 92 DIV col2 col2 FROM tab1 cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8825
SELECT 92 / col2 col2 FROM tab1 cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8827
SELECT 83 + col1 * + 0 DIV - 75 FROM tab0 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8827
SELECT 83 + col1 * + 0 / - 75 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - 63 FROM tab1, tab2, tab0 AS cor0
----
-63

query I rowsort
SELECT DISTINCT col1 + cor0.col2 + col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8830
SELECT ALL - col1 + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - col1 + col1 / col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col2 * - col2 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
2609
2838
8176

query I rowsort
SELECT ALL - col0 * + 31 FROM tab1 AS cor0
----
-1984
-2480
-93

query I rowsort
SELECT ALL + + col0 + - col1 * + col0 FROM tab0 cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
72

query I rowsort
SELECT - col1 * - 38 FROM tab1
----
380
494
988

query I rowsort
SELECT - col2 * cor0.col2 * + col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL - - ( + col0 ) * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col1 * + 33 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col1 * col1 - - col1 FROM tab2
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( - col1 * - col1 ) + 6 FROM tab2
----
295
3487
967

query I rowsort
SELECT DISTINCT - col0 * - 99 FROM tab1 AS cor0
----
297
6336
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT cor0.col0 + ( - ( + col0 ) ) * + col1 FROM tab1 cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + 59 col0 FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT ALL - col2 * - 81 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT ALL - + cor0.col1 + ( + cor0.col2 ) * - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL - ( + 86 ) + - col2 AS col0 FROM tab0 AS cor0
----
-119
-168
-87

query I rowsort
SELECT DISTINCT - 61 + col2 AS col1 FROM tab1 AS cor0
----
-4
-7
35

query I rowsort
SELECT DISTINCT + 64 + 21 FROM tab2 AS cor0
----
85

query I rowsort
SELECT ALL 70 - + col0 * col1 AS col2 FROM tab2 cor0
----
-1273
-147
-4532

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8853
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 84 + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 84 + + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + 70 FROM tab0 AS cor0
----
156
161
167

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8856
SELECT + CAST( col0 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-8856
SELECT + CAST ( col0 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 8 * cor0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 39f0a48b58b158576c4aea577d9b205b

query I rowsort
SELECT ALL col0 * cor0.col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT tab0.col0 * col1 + + tab0.col1 * - col2 AS col1 FROM tab0
----
-774
3298
637

query I rowsort
SELECT - tab1.col1 * + tab1.col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( + col0 ) + 11 AS col2 FROM tab0 AS cor0
----
-13
-24
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT + - 62 DIV col0 + - col1 FROM tab0 cor0
----
-88
-91
-98

skipif mysql # not compatible
query I rowsort label-8862
SELECT + - 62 / col0 + - col1 FROM tab0 cor0
----
-88
-91
-98

query I rowsort
SELECT ALL + - 68 FROM tab2 cor0
----
-68
-68
-68

query I rowsort
SELECT + 71 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - + col0 * col0 + + ( 41 ) - col2 AS col1 FROM tab2 AS cor0
----
-35
-6069
-6238

skipif mysql # not compatible
query I rowsort
SELECT col2 * - CAST ( col1 AS REAL ) FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8867
SELECT ALL + col2 + ( col0 ) * col0 * + CAST( - 61 AS SIGNED ) + + col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-249159
-389264
-417

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + col2 + ( col0 ) * col0 * + CAST ( - 61 AS INTEGER ) + + col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-249159
-389264
-417

query I rowsort
SELECT DISTINCT - col0 * col2 - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - col0 + 19 AS col1 FROM tab0 AS cor0
----
-16
-5
-70

query I rowsort
SELECT + ( + col0 ) + + 34 AS col2 FROM tab2
----
112
113
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-8871
SELECT - tab2.col1 DIV col0 + col1 col0 FROM tab2
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8871
SELECT - tab2.col1 / col0 + col1 col0 FROM tab2
----
17
27
59

query I rowsort
SELECT DISTINCT 58 + col2 * - 23 AS col1 FROM tab1
----
-1184
-1253
-2150

onlyif mysql # use DIV operator for integer division
query I rowsort label-8873
SELECT DISTINCT 74 + col1 + ( - 77 ) DIV - col1 FROM tab1
----
102
91
92

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT 74 + col1 + ( - 77 ) / - col1 FROM tab1
----
102
91
92

query I rowsort
SELECT DISTINCT 17 + + col0 * + col2 * - col2 AS col0 FROM tab2
----
-114059
-5086
-52711

onlyif mysql # use DIV operator for integer division
query I rowsort label-8875
SELECT + + col2 DIV + 40 + col2 AS col1 FROM tab0 AS cor0
----
1
33
84

skipif mysql # not compatible
query I rowsort label-8875
SELECT + + col2 / + 40 + col2 AS col1 FROM tab0 AS cor0
----
1
33
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8876
SELECT - - col1 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT - - col1 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 81 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # use DIV operator for integer division
query I rowsort label-8878
SELECT DISTINCT - col0 DIV - ( col0 + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT - col0 / - ( col0 + col2 ) FROM tab2
----
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

onlyif mysql # use DIV operator for integer division
query I rowsort label-8880
SELECT ALL + cor0.col0 DIV 32 FROM tab2, tab1, tab1 cor0
----
27 values hashing to aa375397622194eb8bb1c3fa8eb66303

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + cor0.col0 / 32 FROM tab2, tab1, tab1 cor0
----
27 values hashing to aa375397622194eb8bb1c3fa8eb66303

query I rowsort
SELECT ALL col0 * 30 FROM tab1 cor0
----
1920
2400
90

query I rowsort
SELECT col2 * 93 + - 39 AS col2 FROM tab0 cor0
----
3030
54
7587

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8883
SELECT - cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - ( + tab0.col1 ) * - col2 AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
88

query I rowsort
SELECT - col2 * col0 + 57 AS col2 FROM tab0 AS cor0
----
-7241
-735
22

query I rowsort
SELECT - col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - cor0.col1 - tab1.col1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 0a7ea7be00eb3b9c9725b4c94d8eb0c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 5 ) col0 FROM tab2
----
5
5
5

query I rowsort
SELECT DISTINCT - - ( - col0 ) + 47 FROM tab2 AS cor0
----
-31
-32
40

query I rowsort
SELECT + col2 + col2 * - 27 FROM tab0 cor0
----
-2132
-26
-858

query I rowsort
SELECT - 99 * + col0 FROM tab0 AS cor0
----
-2376
-3465
-8811

query I rowsort
SELECT DISTINCT + - 11 + - col1 * - col1 * col2 + col0 FROM tab2 cor0
----
11050
25943
90573

onlyif mysql # use DIV operator for integer division
query I rowsort label-8894
SELECT ALL cor0.col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL cor0.col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + col0 + - col2 + col2 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - - col2 col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col2 + - ( cor0.col2 ) * col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT + 86 * cor0.col0 + - 55 * col2 AS col0 FROM tab0 AS cor0
----
249
2955
3144

query I rowsort
SELECT + + cor0.col2 - + col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + - col1 * col1 + ( + col2 ) FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + - 0 * col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 IN ( col0 * col0 + + col0 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8903
SELECT + col1 * col2 DIV 90 AS col2 FROM tab1 AS cor0
----
13
15
6

skipif mysql # not compatible
query I rowsort label-8903
SELECT + col1 * col2 / 90 AS col2 FROM tab1 AS cor0
----
13
15
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * + col0 ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - col2 + - tab2.col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab1
----
-39

query I rowsort
SELECT DISTINCT 39 * + col2 FROM tab2
----
1014
1053
1482

onlyif mysql # use DIV operator for integer division
query I rowsort label-8908
SELECT - 50 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT - 50 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT + ( col0 * + col1 ) - col2 * col0 AS col0 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT ALL - ( - col1 + col2 ) AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT + tab2.col2 * col1 * col1 FROM tab2 WHERE NOT ( + col1 ) NOT IN ( tab2.col1 )
----
10982
25947
90506

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IN ( col2 - - col0 )
----

query I rowsort
SELECT col2 * col2 * - col1 + col1 AS col1 FROM tab1
----
-119795
-32480
-75790

query I rowsort
SELECT + col1 - tab0.col1 * - col1 * col0 AS col1 FROM tab0
----
177590
329412
737100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col1 FROM tab2 WHERE ( NULL ) <= col2
----

query I rowsort
SELECT ALL col2 + + col1 * + col0 AS col2 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-8918
SELECT col0 * - tab0.col1 * col0 + col0 DIV col2 col2 FROM tab0
----
-118790
-49536
-720810

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8918
SELECT col0 * - tab0.col1 * col0 + col0 / col2 col2 FROM tab0
----
-118790
-49536
-720810

query I rowsort
SELECT DISTINCT col0 + col2 * + tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + tab0.col0 * - tab0.col0 - + col0 FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT ALL col0 * col1 + col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL col2 * - col1 * - col0 + col1 * + tab2.col1 AS col2 FROM tab2
----
123133
51323
6820

query I rowsort
SELECT ALL + tab2.col0 / col2 - + col1 / col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 IN ( + tab1.col2 + col2 * - col1 )
----

query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN col0 AND col0
----

query I rowsort
SELECT col2 + - col2 + + col1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 * col2 + - tab2.col1 * col0 * - col2 AS col2 FROM tab2
----
120328
52478
6588

query I rowsort
SELECT DISTINCT - col2 + + 0 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT + col2 DIV - tab0.col0 - col0 FROM tab0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-8930
SELECT + col2 / - tab0.col0 - col0 FROM tab0
----
-25
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col2 FROM tab0, tab2 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8933
SELECT ALL - col1 DIV + col2 + + col2 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL - col1 / + col2 + + col2 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + ( + ( + tab2.col1 ) ) + + 16 FROM tab2
----
33
47
75

query I rowsort
SELECT ALL tab1.col0 + - 40 AS col0 FROM tab1
----
-37
24
40

query I rowsort
SELECT DISTINCT 48 + col2 FROM tab1
----
102
105
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 86 * - 92 + - col1 * col2 col2 FROM tab0 cor0
----
-10750
-15374
-8009

query I rowsort
SELECT ALL - col1 + + col2 * + 93 FROM tab0 AS cor0
----
-4
2983
7535

query I rowsort
SELECT + 16 + col2 * + ( - col2 ) FROM tab2 AS cor0
----
-1428
-660
-713

onlyif mysql # use DIV operator for integer division
query I rowsort label-8940
SELECT ALL - 59 DIV - col0 + ( - col1 ) col1 FROM tab2 cor0
----
-17
-23
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - 59 / - col0 + ( - col1 ) col1 FROM tab2 cor0
----
-17
-23
-59

query I rowsort
SELECT ALL + - cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8942
SELECT ALL - col2 * + col1 + col2 DIV 6 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2809
-62
-7360

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL - col2 * + col1 + col2 / 6 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2809
-62
-7360

query I rowsort
SELECT DISTINCT col2 * cor0.col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT col2 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL cor0.col2 * col1 + 33 AS col1 FROM tab2 cor0
----
1567
679
870

query I rowsort
SELECT + + col2 + col0 * - 86 FROM tab2 AS cor0
----
-575
-6682
-6756

onlyif mysql # use DIV operator for integer division
query I rowsort label-8947
SELECT - col2 DIV col2 + col0 * - cor0.col1 col2 FROM tab1 AS cor0
----
-1041
-641
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8947
SELECT - col2 / col2 + col0 * - cor0.col1 col2 FROM tab1 AS cor0
----
-1041
-641
-79

query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab2, tab2 cor0
----
-53

query I rowsort
SELECT ALL - col0 * + cor0.col0 + - 33 FROM tab2 AS cor0
----
-6117
-6274
-82

query I rowsort
SELECT + 97 + + col1 AS col1 FROM tab0 cor0
----
183
188
194

query I rowsort
SELECT DISTINCT col0 + - col0 * ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT DISTINCT + 61 * + col1 AS col0 FROM tab0 AS cor0
----
5246
5551
5917

onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT ALL + col2 DIV - cor0.col0 AS col1 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + col2 / - cor0.col0 AS col1 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL + ( col1 ) * - 30 * col2 + col2 FROM tab1 AS cor0
----
-17043
-37344
-42066

query I rowsort
SELECT DISTINCT + - 97 * col1 + ( col2 ) * col0 - + col0 FROM tab2 AS cor0
----
-2825
-3773
1274

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8956
SELECT - cor0.col0 / + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT - cor0.col0 / + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - - col0 * + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8958
SELECT DISTINCT col0 + CAST( col2 AS SIGNED ) + + col2 AS col1 FROM tab0
----
253
37
90

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT col0 + CAST ( col2 AS INTEGER ) + + col2 AS col1 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL + 31 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT DISTINCT + cor0.col0 + + 1 DIV + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + cor0.col0 + + 1 / + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - cor0.col2 + + col0 + 49 FROM tab1 AS cor0
----
-2
33
56

query I rowsort
SELECT col1 + - col2 * - col1 + col1 AS col2 FROM tab2 cor0
----
1652
680
899

query I rowsort
SELECT ALL + col1 + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col2 * 25 AS col0 FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT DISTINCT + col0 * + 47 AS col2 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT DISTINCT - 34 * + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-2119
-2624
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * - col0 * col1 + col1 col1 FROM tab2
----
-106080
-1488
-358897

query I rowsort
SELECT ALL + col2 + 65 * tab0.col2 FROM tab0
----
2178
5412
66

query I rowsort
SELECT DISTINCT col0 + col2 + + col1 * col1 FROM tab2 AS cor0
----
3585
406
995

query I rowsort
SELECT DISTINCT - col1 * + col0 - - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + tab2.col1 + tab2.col0 * tab2.col1 FROM tab2
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab0.col0 col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col0 * - 71 FROM tab1
----
-213
-4544
-5680

query I rowsort
SELECT ALL - col2 * + col2 + col0 AS col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ALL col1 * col1 + col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT ALL - + 63 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-25
-36
-37

query I rowsort
SELECT DISTINCT ( + col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - ( + col2 ) * col1 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT 86 * - col0 AS col2 FROM tab2 AS cor0
----
-602
-6708
-6794

query I rowsort
SELECT ALL + ( cor0.col1 ) + - col0 + col2 AS col0 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT + 12 FROM tab0, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # use DIV operator for integer division
query I rowsort label-8983
SELECT DISTINCT col0 * - col1 + tab2.col0 DIV col1 FROM tab2
----
-1339
-217
-4601

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT col0 * - col1 + tab2.col0 / col1 FROM tab2
----
-1339
-217
-4601

query I rowsort
SELECT - tab2.col0 + 10 * 17 FROM tab2
----
163
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8985
SELECT ALL col0 DIV + 71 - col1 * - col0 FROM tab0
----
2064
3395
8100

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL col0 / + 71 - col1 * - col0 FROM tab0
----
2064
3395
8100

query I rowsort
SELECT ALL + cor0.col2 + + col1 * col1 - - col0 AS col1 FROM tab1 AS cor0
----
221
345
733

onlyif mysql # use DIV operator for integer division
query I rowsort label-8987
SELECT ALL - + col1 DIV - col1 + 64 AS col0 FROM tab2 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL - + col1 / - col1 + 64 AS col0 FROM tab2 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + 48 col0 FROM tab0 cor0
----
-38
-43
-49

query I rowsort
SELECT DISTINCT + ( - 95 ) AS col0 FROM tab1, tab2 AS cor0
----
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT col0 DIV 46 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8990
SELECT col0 / 46 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - - cor0.col1 + + ( col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 * + col2 + + col1 col2 FROM tab0 AS cor0
----
-35851
-551277
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * + col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 67 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-66
15

query I rowsort
SELECT ALL - - ( - col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 * 66 + col1 AS col1 FROM tab1 AS cor0
----
-3538
-3752
-6323

query I rowsort
SELECT - 87 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT DISTINCT + - 62 + col0 FROM tab2 AS cor0
----
-55
16
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-8999
SELECT ALL col1 DIV + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL col1 / + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-9000
SELECT DISTINCT 43 DIV cor0.col0 FROM tab2, tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT 43 / cor0.col0 FROM tab2, tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL - cor0.col2 + - cor1.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to bd9416ceffe3b4d31d3a70d7225328c8

query I rowsort
SELECT col1 * + 20 FROM tab1
----
200
260
520

query I rowsort
SELECT col1 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-9004
SELECT DISTINCT - ( + col2 ) DIV - col1 - + col2 col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - ( + col2 ) / - col1 - + col2 col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - 68 * col2 FROM tab0 AS cor0
----
-2244
-5576
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9006
SELECT DISTINCT - - CAST( - cor0.col1 AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT - - CAST ( - cor0.col1 AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL tab2.col1 FROM tab2 WHERE ( + col1 * col2 - col0 ) <= col1 + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - col1 IN ( - tab1.col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9009
SELECT col2 * - col2 + + col2 * col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-1426
-625
-668

skipif mysql # not compatible
query I rowsort label-9009
SELECT col2 * - col2 + + col2 * col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-1426
-625
-668

query I rowsort
SELECT col2 + col1 * - col2 * + col1 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT ALL col1 - col1 * col0 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9012
SELECT - + col2 DIV - col1 + - col1 + + cor0.col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-23
-4
-5

skipif mysql # not compatible
query I rowsort label-9012
SELECT - + col2 / - col1 + - col1 + + cor0.col1 / + col1 AS col2 FROM tab1 AS cor0
----
-23
-4
-5

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 col2 * - col0 + - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-9015
SELECT DISTINCT tab1.col2 DIV col1 + - col0 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT tab1.col2 / col1 + - col0 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab0 WHERE NULL <= - col1 * - col2
----

query I rowsort
SELECT + col1 * - tab1.col0 + tab1.col1 * + col1 FROM tab1
----
-540
-871
598

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col2 * col0 )
----

query I rowsort
SELECT DISTINCT col2 * + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= - col2
----

query I rowsort
SELECT - cor0.col2 / - col0 + col1 FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col0 * col0 - - col1 AS col0 FROM tab2 cor0
----
6143
6258
80

query I rowsort
SELECT + col1 + + col2 * col0 - - col2 AS col0 FROM tab0 AS cor0
----
133
7471
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-9023
SELECT ALL col1 DIV + tab0.col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL col1 / + tab0.col0 AS col0 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9024
SELECT ALL + col2 * col1 DIV - col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL + col2 * col1 / - col1 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col0 * col0 col1 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT DISTINCT + - col0 * + cor0.col1 + - cor0.col1 DIV + col1 FROM tab1 AS cor0
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT + - col0 * + cor0.col1 + - cor0.col1 / + col1 FROM tab1 AS cor0
----
-1041
-641
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9027
SELECT DISTINCT + + col1 * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT + + col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * 83 AS col0 FROM tab2
----
581
6474
6557

onlyif mysql # use DIV operator for integer division
query I rowsort label-9029
SELECT ( 12 ) DIV + col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9029
SELECT ( 12 ) / + col0 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) * + 53 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-30528
-419813
-64925

query I rowsort
SELECT + 86 * - col0 * + col1 FROM tab2 AS cor0
----
-115498
-18662
-395772

query I rowsort
SELECT ALL - col0 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT tab1.col2 * ( - col2 + - col2 ) * + 8 FROM tab1
----
-147456
-46656
-51984

query I rowsort
SELECT ALL + col2 * + 81 AS col2 FROM tab1
----
4374
4617
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9035
SELECT - col2 * cor0.col0 * + CAST( + col0 AS SIGNED ) + col0 AS col0 FROM tab0 cor0
----
-1190
-18984
-649433

skipif mysql # not compatible
query I rowsort label-9035
SELECT - col2 * cor0.col0 * + CAST ( + col0 AS INTEGER ) + col0 AS col0 FROM tab0 cor0
----
-1190
-18984
-649433

query I rowsort
SELECT + + 69 * col0 AS col0 FROM tab1 AS cor0
----
207
4416
5520

query I rowsort
SELECT + 82 * cor0.col2 + 22 + col2 AS col0 FROM tab1 cor0
----
4504
4753
7990

query I rowsort
SELECT - col2 + col0 * 63 - col0 FROM tab0 AS cor0
----
1455
2169
5436

onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT - col1 DIV - col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9039
SELECT - col1 / - col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT + - col1 * col2 + + 0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 99 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
5320
5633
9491

query I rowsort
SELECT DISTINCT - col2 * + col2 + - ( + 99 ) + + col2 AS col0 FROM tab2
----
-1505
-749
-801

query I rowsort
SELECT 73 * + col1 AS col2 FROM tab0
----
6278
6643
7081

query I rowsort
SELECT DISTINCT - - col2 * 49 - - 94 FROM tab0 AS cor0
----
143
1711
4112

query I rowsort
SELECT ALL col0 + + 32 + 18 FROM tab0 AS cor0
----
139
74
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + cor0.col2 + 12 col1 FROM tab0 AS cor0
----
-1077
-6712
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 * col2 - ( col0 ) FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT - col2 * col2 * col1 + + tab0.col0 FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT - col1 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT cor0.col1 + 79 * + col2 AS col2 FROM tab2 AS cor0
----
2113
2164
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-9052
SELECT ALL - - col0 DIV - col0 + col2 + col0 DIV cor0.col2 AS col0 FROM tab1 cor0
----
53
57
95

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - - col0 / - col0 + col2 + col0 / cor0.col2 AS col0 FROM tab1 cor0
----
53
57
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT ALL + col0 * + 35 - cor0.col0 DIV - col0 FROM tab2 AS cor0
----
246
2731
2766

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + col0 * + 35 - cor0.col0 / - col0 FROM tab2 AS cor0
----
246
2731
2766

query I rowsort
SELECT ALL - col1 * + 98 + 31 AS col0 FROM tab0 AS cor0
----
-8397
-8887
-9475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col2 col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT col0 * col2 - 45 FROM tab2 AS cor0
----
144
1983
2957

query I rowsort
SELECT + col0 + + 17 FROM tab2 AS cor0
----
24
95
96

query I rowsort
SELECT ALL + col1 * ( 79 ) FROM tab0 AS cor0
----
6794
7189
7663

query I rowsort
SELECT col1 + 27 AS col0 FROM tab0 cor0
----
113
118
124

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col0 + - CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9061
SELECT + CAST( NULL AS SIGNED ) / - cor0.col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT + CAST ( NULL AS INTEGER ) / - cor0.col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9062
SELECT + CAST( + 44 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
1056
1540
3916

skipif mysql # not compatible
query I rowsort label-9062
SELECT + CAST ( + 44 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
1056
1540
3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT 3 - - col1 DIV - 2 FROM tab2 AS cor0
----
-12
-26
-5

skipif mysql # not compatible
query I rowsort label-9063
SELECT 3 - - col1 / - 2 FROM tab2 AS cor0
----
-12
-26
-5

query I rowsort
SELECT DISTINCT 20 + col2 * 1 AS col1 FROM tab2 cor0
----
46
47
58

query I rowsort
SELECT - - col1 + + col1 * col1 * + 22 FROM tab0 cor0
----
162798
182273
207095

query I rowsort
SELECT DISTINCT col1 * + col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - 16 - + col0 AS col2 FROM tab2 AS cor0
----
-23
-94
-95

query I rowsort
SELECT + col1 + cor0.col2 * col1 * col2 FROM tab2 AS cor0
----
22630
24565
39943

onlyif mysql # use DIV operator for integer division
query I rowsort label-9069
SELECT + 5 - + col2 DIV + ( col2 ) FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9069
SELECT + 5 - + col2 / + ( col2 ) FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT ALL - 59 - col1 * col2 FROM tab0 AS cor0
----
-156
-2897
-7521

query I rowsort
SELECT DISTINCT + + cor0.col1 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9072
SELECT ALL + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT ( + 5 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + 71 + - 41 AS col0 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT ALL + + 77 * col1 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT + ( - 21 ) * + col2 + col0 AS col1 FROM tab2 cor0
----
-468
-560
-719

query I rowsort
SELECT ALL col2 + - cor0.col0 * - col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9078
SELECT DISTINCT - CAST( col0 AS SIGNED ) FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT - CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - + 40 * 93 AS col0 FROM tab0 AS cor0
----
-3720

query I rowsort
SELECT col2 + + 85 * col0 * tab1.col0 + col0 FROM tab1
----
348281
544176
822

query I rowsort
SELECT col2 + cor0.col0 - + col1 AS col2 FROM tab1 cor0
----
111
163
31

query I rowsort
SELECT - col0 * - 31 - + col0 FROM tab0 cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT - col1 * - 6 - col0 AS col0 FROM tab2
----
179
23
276

query I rowsort
SELECT ( col1 ) * - col1 + + col0 AS col1 FROM tab2
----
-210
-3403
-954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9085
SELECT CAST( NULL AS SIGNED ) * - 41 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT CAST ( NULL AS INTEGER ) * - 41 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 98 + + col2 AS col1 FROM tab2 AS cor0
----
124
125
136

onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT DISTINCT - ( - col0 ) + - col2 * 21 DIV col1 AS col1 FROM tab0
----
16
35
71

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - ( - col0 ) + - col2 * 21 / col1 AS col1 FROM tab0
----
16
35
71

query I rowsort
SELECT DISTINCT - - 69 FROM tab1 cor0
----
69

query I rowsort
SELECT ALL - col0 + - tab1.col2 + + col2 AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9091
SELECT ALL - col2 + - 86 DIV - 72 + + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - col2 + - 86 / - 72 + + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 * col2 - + col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT col1 + ( 35 ) AS col0 FROM tab1 AS cor0
----
45
48
61

query I rowsort
SELECT - - col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col1 + 64 FROM tab1 AS cor0
----
74
77
90

query I rowsort
SELECT + 98 + col0 AS col1 FROM tab2
----
105
176
177

onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT ALL col2 DIV + tab2.col1 + + col0 * col1 AS col1 FROM tab2
----
1345
217
4602

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL col2 / + tab2.col1 + + col0 * col1 AS col1 FROM tab2
----
1345
217
4602

query I rowsort
SELECT ALL - col1 + 8 + col1 FROM tab0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 + 80 col2 FROM tab1
----
144
160
83

query I rowsort
SELECT DISTINCT col1 + col2 * 17 + - col2 FROM tab1 cor0
----
1549
890
922

query I rowsort
SELECT DISTINCT - - col1 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL col0 + - 68 AS col2 FROM tab1 AS cor0
----
-4
-65
12

query I rowsort
SELECT DISTINCT + + col0 * 40 + - ( col0 ) FROM tab1 cor0
----
117
2496
3120

query I rowsort
SELECT ALL + - col0 * - 38 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT DISTINCT ( cor0.col0 ) FROM tab0, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 86 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL + + cor0.col0 * cor0.col2 * col0 FROM tab1 AS cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * + 56 col0 FROM tab1 AS cor0
----
163296
181944
516096

query I rowsort
SELECT - col2 * + 78 AS col2 FROM tab2 AS cor0
----
-2028
-2106
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT DISTINCT + + 52 DIV + ( col0 ) + - 12 * - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
1159
376
518

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT + + 52 / + ( col0 ) + - 12 * - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
1159
376
518

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 33 AS REAL ) + + col0 FROM tab2 AS cor0
----
111
112
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9112
SELECT ( col0 ) * + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT ( col0 ) * + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col0 + col1 ) * + col0 AS col2 FROM tab1
----
4736
7440
87

query I rowsort
SELECT ALL + ( col1 ) * col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT + 3 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT - col1 * + ( - col2 * - col0 ) - col1 AS col1 FROM tab0 cor0
----
-3492
-664209
-68198

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - + col0 * + 16 + col1 AS col1 FROM tab0 cor0
----
-1333
-298
-463

query I rowsort
SELECT DISTINCT + col2 * col0 * - cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col2 col0 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * - col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col2 + col2 * - 39 AS col0 FROM tab2 AS cor0
----
-1026
-1444
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9123
SELECT CAST( - col0 * - col1 AS SIGNED ) + - CAST( NULL AS SIGNED ) - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT CAST ( - col0 * - col1 AS INTEGER ) + - CAST ( NULL AS INTEGER ) - + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 49 AS col0 FROM tab1 AS cor0
----
2646
2793
4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-9125
SELECT col2 + col2 DIV col1 + col1 DIV col1 AS col2 FROM tab1
----
104
57
63

skipif mysql # not compatible
query I rowsort label-9125
SELECT col2 + col2 / col1 + col1 / col1 AS col2 FROM tab1
----
104
57
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9126
SELECT + CAST( NULL AS SIGNED ) * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT + CAST ( NULL AS INTEGER ) * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 88 + + col2 AS col0 FROM tab2 AS cor0
----
114
115
126

query I rowsort
SELECT - 98 * + col1 AS col1 FROM tab0 cor0
----
-8428
-8918
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
60

query I rowsort
SELECT + col0 * - 33 FROM tab0 AS cor0
----
-1155
-2937
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9131
SELECT - col2 * + CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9131
SELECT - col2 * + CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col2 * + 89 - 12 * col1 * ( col2 ) AS col2 FROM tab0
----
-1075
-31119
-82246

onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT + col2 + 41 DIV col1 - col0 col1 FROM tab2
----
-39
-52
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9133
SELECT + col2 + 41 / col1 - col0 col1 FROM tab2
----
-39
-52
21

query I rowsort
SELECT DISTINCT col0 + + col2 * 27 - col1 * + col1 FROM tab2
----
-225
-2701
816

query I rowsort
SELECT + - col1 * - col0 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 * + col2 - cor0.col1 * ( - col2 ) FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT - + ( col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9138
SELECT DISTINCT CAST( col0 AS SIGNED ) + cor0.col2 FROM tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT CAST ( col0 AS INTEGER ) + cor0.col2 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + cor0.col1 + - col2 col0 FROM tab0 cor0
----
7363
8199
9408

query I rowsort
SELECT ALL - col0 + 17 FROM tab0 AS cor0
----
-18
-7
-72

query I rowsort
SELECT 88 - + 30 AS col2 FROM tab1 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + - col2 col2 FROM tab0 AS cor0
----
-33
16
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9143
SELECT ALL CAST( col1 AS SIGNED ) * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL CAST ( col1 AS INTEGER ) * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT col1 * 25 AS col2 FROM tab1
----
250
325
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-9145
SELECT col0 DIV - 83 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT col0 / - 83 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * + col1 * col2 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - + 87 AS col0 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT - col0 * + ( + cor0.col2 ) - cor0.col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ( 30 ) * col0 FROM tab1 AS cor0
----
1920
2400
90

query I rowsort
SELECT DISTINCT - 89 * col0 AS col0 FROM tab2 AS cor0
----
-623
-6942
-7031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9151
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( col1 ) * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( col1 ) * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + ( + cor0.col2 ) + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + - cor0.col1 - col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - col0 + col0 * col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL + 8 * 63 * col2 FROM tab0 AS cor0
----
16632
41328
504

onlyif mysql # use DIV operator for integer division
query I rowsort label-9157
SELECT + col0 + tab0.col0 - + col1 DIV col1 AS col2 FROM tab0
----
177
47
69

skipif mysql # not compatible
query I rowsort label-9157
SELECT + col0 + tab0.col0 - + col1 / col1 AS col2 FROM tab0
----
177
47
69

query I rowsort
SELECT ALL - 49 - + col2 FROM tab2
----
-75
-76
-87

query I rowsort
SELECT - col1 * col2 - + col1 * tab0.col2 FROM tab0
----
-14924
-194
-5676

query I rowsort
SELECT + - col2 - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL col1 * 65 + tab0.col0 + + 53 AS col0 FROM tab0
----
5667
6057
6393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( tab0.col1 ) ) * + col1 + col2 col0 FROM tab0
----
-7363
-8199
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9163
SELECT DISTINCT + + col2 + CAST( NULL AS SIGNED ) * + 70 + col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + + col2 + CAST ( NULL AS INTEGER ) * + 70 + col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - ( cor0.col0 ) + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9165
SELECT ALL + col2 * + ( col2 ) + - cor0.col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + col2 * + ( col2 ) + - cor0.col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 - col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + col0 + - ( + col2 * col1 ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col1 * 47 + + col0 * col2 FROM tab0 AS cor0
----
11575
4594
4834

query I rowsort
SELECT + tab0.col1 * tab0.col0 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL col1 * + col2 + ( - col0 ) FROM tab2
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab0
----
28
28
28

query I rowsort
SELECT ( - 17 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT ALL - 40 * col1 FROM tab0
----
-3440
-3640
-3880

query I rowsort
SELECT DISTINCT 52 FROM tab1, tab2, tab1 AS cor0
----
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9175
SELECT ALL + 30 * col2 + tab1.col1 DIV + col1 FROM tab1
----
1621
1711
2881

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + 30 * col2 + tab1.col1 / + col1 FROM tab1
----
1621
1711
2881

query I rowsort
SELECT 66 * + 92 * + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d4b708cdae8fdb3f65fae1af489f3ca6

query I rowsort
SELECT + cor0.col1 + 73 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to bb55bb7a7028c5833a465ed3eb1d8971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col1 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col0 * - col2 * col1 + + col1 + + col0 FROM tab2 AS cor0
----
119789
51130
5897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9180
SELECT + + col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT + + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 * + ( 56 * - col0 ) + - col2 FROM tab1 AS cor0
----
-229433
-358496
-558

query I rowsort
SELECT ALL - + col0 * col1 * + 78 + + col1 FROM tab2 AS cor0
----
-104737
-16895
-358897

onlyif mysql # use DIV operator for integer division
query I rowsort label-9183
SELECT DISTINCT + col2 DIV + ( 7 ) FROM tab2 AS cor0
----
3
5

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + col2 / + ( 7 ) FROM tab2 AS cor0
----
3
5

query I rowsort
SELECT - col1 * - ( 64 ) AS col2 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT ALL 53 * col1 FROM tab0
----
4558
4823
5141

query I rowsort
SELECT ALL - - cor0.col2 * col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + - 86 * col1 FROM tab1 cor0
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT + + col2 + col0 * 20 FROM tab1 AS cor0
----
114
1337
1696

query I rowsort
SELECT + 7 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

onlyif mysql # use DIV operator for integer division
query I rowsort label-9190
SELECT ALL - col1 + col1 * ( - 75 ) * col0 + + CAST( col0 AS SIGNED ) * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-154862
-254687
-607427

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL - col1 + col1 * ( - 75 ) * col0 + + CAST ( col0 AS INTEGER ) * col2 / col2 AS col1 FROM tab0 AS cor0
----
-154862
-254687
-607427

query I rowsort
SELECT ALL col2 - cor0.col2 * - ( col2 * - col2 + col0 ) FROM tab1 AS cor0
----
-157248
-181488
-876960

query I rowsort
SELECT - col0 - + 81 FROM tab1 AS cor0
----
-145
-161
-84

query I rowsort
SELECT + col0 * 56 AS col0 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT + col1 + - ( - col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col0 * ( + col1 ) + + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - - col0 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col0 * ( + col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - - col2 * + 78 + - col1 AS col2 FROM tab1 AS cor0
----
4186
4436
7475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - 30 col1 FROM tab2 cor0
----
-3
-4
8

query I rowsort
SELECT - + col1 + + col1 * + cor0.col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 + col1 + + 80 * + ( tab1.col1 ) FROM tab1
----
1149
2160
867

query I rowsort
SELECT DISTINCT + col1 * 40 AS col2 FROM tab0 AS cor0
----
3440
3640
3880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9205
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col1 - + 43 FROM tab2 AS cor0
----
246
3438
918

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col1 - + 43 FROM tab2 AS cor0
----
246
3438
918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9206
SELECT DISTINCT + - col2 * - col0 * cor0.col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + - col2 * - col0 * cor0.col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * 48 * - col1 FROM tab2 AS cor0
----
-10416
-220896
-64464

query I rowsort
SELECT ALL 68 + - col2 FROM tab0 AS cor0
----
-14
35
67

query I rowsort
SELECT + + 40 * - col2 FROM tab0 cor0
----
-1320
-3280
-40

query I rowsort
SELECT ALL + 90 * 83 FROM tab2 AS cor0
----
7470
7470
7470

onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT DISTINCT cor0.col1 DIV col1 col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT cor0.col1 / col1 col1 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9212
SELECT DISTINCT + 75 * col0 DIV + col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + 75 * col0 / + col0 FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL 22 * 28 AS col0 FROM tab0 AS cor0
----
616
616
616

onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT - - CAST( col0 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9214
SELECT - - CAST ( col0 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL - col1 * cor0.col2 + + col1 * col0 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + + col2 * 51 AS col0 FROM tab2 AS cor0
----
1385
1408
1955

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9217
SELECT CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + 38 * - col0 + col1 FROM tab2
----
-204
-2846
-2968

query I rowsort
SELECT DISTINCT - + 29 AS col1 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT - + ( + col1 ) * cor0.col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - 14 * col0 AS col0 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT 82 * col2 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT - ( - col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + ( - 95 + + col0 ) FROM tab1
----
-15
-31
-92

query I rowsort
SELECT + ( - 27 ) AS col0 FROM tab2
----
-27
-27
-27

query I rowsort
SELECT - cor0.col2 * + col0 * ( - col2 ) FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + - ( 7 ) col2 FROM tab1 AS cor0
----
162
669
93

query I rowsort
SELECT 52 * + col1 AS col1 FROM tab2 cor0
----
1612
3068
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col1 FROM tab0
----
89
89
89

query I rowsort
SELECT + - 29 * col0 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT ALL - 41 + cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ae903d1b3ddb229f5d33987c27b69bca

query I rowsort
SELECT + tab1.col2 * tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT ( col0 ) DIV - 52 + + col0 * + col2 * - col1 AS col2 FROM tab2
----
-119653
-51035
-5859

skipif mysql # not compatible
query I rowsort label-9233
SELECT ( col0 ) / - 52 + + col0 * + col2 * - col1 AS col2 FROM tab2
----
-119653
-51035
-5859

query I rowsort
SELECT ALL tab1.col1 + tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1a063bfb694f348122cd0739295ca641

onlyif mysql # use DIV operator for integer division
query I rowsort label-9235
SELECT - col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9235
SELECT - col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - tab0.col1 + 93 * - col1 AS col0 FROM tab0
----
-8084
-8554
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 55 col2 FROM tab0 cor0
----
-31
-36
-42

query I rowsort
SELECT ALL + col1 + ( col1 ) * col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - col0 * - tab1.col1 AS col0 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + cor0.col0 ) * col1 * + ( col1 ) col1 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT ( cor0.col0 ) + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col0 * cor0.col0 * - col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9244
SELECT ALL - cor0.col0 * CAST( + col1 * - col2 AS SIGNED ) + ( cor0.col0 ) DIV col2 - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
32833
4050
92160

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - cor0.col0 * CAST ( + col1 * - col2 AS INTEGER ) + ( cor0.col0 ) / col2 - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
32833
4050
92160

onlyif mysql # use DIV operator for integer division
query I rowsort label-9245
SELECT ALL + + cor0.col2 DIV + ( cor0.col1 ) - + col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL + + cor0.col2 / + ( cor0.col1 ) - + col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - col0 + col2 * - col0 * col1 AS col0 FROM tab2
----
-119730
-51113
-5866

query I rowsort
SELECT ALL + col1 + 90 * 24 + + col2 AS col0 FROM tab0
----
2258
2279
2333

query I rowsort
SELECT DISTINCT col1 + - col1 + col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 - + 80 * + col1 col1 FROM tab1
----
-2077
-736
-960

query I rowsort
SELECT ALL col2 * col2 + 66 AS col2 FROM tab1
----
2982
3315
9282

query I rowsort
SELECT + col1 * - ( col2 ) - col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL col2 * - col1 - 45 AS col0 FROM tab1 AS cor0
----
-1293
-1449
-615

query I rowsort
SELECT DISTINCT + 81 * + 98 AS col0 FROM tab1, tab0 cor0
----
7938

query I rowsort
SELECT ALL - tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 + col0 ) col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT - 18 * - col0 FROM tab0 AS cor0
----
1602
432
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + cor0.col1 col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col2 + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - 20 + + col0 FROM tab0 AS cor0
----
15
4
69

query I rowsort
SELECT - 47 * - col0 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT ALL + ( col1 ) * - col2 + ( - col1 ) * 23 + 46 AS col0 FROM tab1 AS cor0
----
-1501
-1956
-754

query I rowsort
SELECT DISTINCT 5 * col1 - 79 * - col0 AS col0 FROM tab1 AS cor0
----
367
5106
6385

query I rowsort
SELECT ALL + 32 + + col0 * - ( 29 ) FROM tab2 AS cor0
----
-171
-2230
-2259

query I rowsort
SELECT - + 7 AS col2 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT 43 + col2 AS col0 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT - - 61 * + col1 FROM tab0 cor0
----
5246
5551
5917

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9267
SELECT ALL + ( col2 + + CAST( NULL AS SIGNED ) ) / tab2.col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL + ( col2 + + CAST ( NULL AS INTEGER ) ) / tab2.col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 31 * col0 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT + 35 * - col0 FROM tab2 cor0
----
-245
-2730
-2765

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 + - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9271
SELECT - col2 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-9271
SELECT - col2 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9272
SELECT ALL + - col2 * + col0 + - cor0.col2 DIV + col1 - - col0 col1 FROM tab2 AS cor0
----
-182
-1950
-2925

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL + - col2 * + col0 + - cor0.col2 / + col1 - - col0 col1 FROM tab2 AS cor0
----
-182
-1950
-2925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 88 col0 FROM tab0 cor0
----
-53
-64
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 41 col2 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT + ( col1 ) + + col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT + 84 * tab2.col1 * col0 + + col1 * - col2 AS col2 FROM tab2
----
112166
17391
385034

query I rowsort
SELECT + col2 + col0 * - ( + tab2.col1 ) FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT tab0.col1 * - col0 - - col1 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + 63 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT - col2 + + col1 * col0 * col0 FROM tab2 AS cor0
----
106059
1492
358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-9282
SELECT + - col0 * + col0 + cor0.col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-48
-6083
-6240

skipif mysql # not compatible
query I rowsort label-9282
SELECT + - col0 * + col0 + cor0.col0 / + col0 AS col2 FROM tab2 AS cor0
----
-48
-6083
-6240

query I rowsort
SELECT ALL - 84 + col2 FROM tab1 AS cor0
----
-27
-30
12

query I rowsort
SELECT ALL ( col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 56 * + col1 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT ( + col0 ) * + col1 + + col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + + col0 * - 8 FROM tab1 cor0
----
-24
-512
-640

onlyif mysql # use DIV operator for integer division
query I rowsort label-9288
SELECT DISTINCT - - col0 DIV col1 + col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - - col0 / col1 + col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT ALL - - 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-9290
SELECT ALL CAST( NULL AS SIGNED ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL CAST ( NULL AS INTEGER ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + 72 FROM tab1 AS cor0
----
46
59
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9292
SELECT + col0 + - 58 DIV cor0.col0 AS col2 FROM tab2 cor0
----
-1
78
79

skipif mysql # not compatible
query I rowsort label-9292
SELECT + col0 + - 58 / cor0.col0 AS col2 FROM tab2 cor0
----
-1
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9293
SELECT ALL CAST( + col0 AS SIGNED ) * cor0.col2 * 49 AS col0 FROM tab1 cor0
----
178752
376320
7938

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL CAST ( + col0 AS INTEGER ) * cor0.col2 * 49 AS col0 FROM tab1 cor0
----
178752
376320
7938

query I rowsort
SELECT 55 AS col1 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT DISTINCT - CAST( + ( - col2 ) AS SIGNED ) DIV ( col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - CAST ( + ( - col2 ) AS INTEGER ) / ( col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9296
SELECT DISTINCT + CAST( 81 AS SIGNED ) + + col0 * - col2 FROM tab0
----
-711
-7217
46

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT + CAST ( 81 AS INTEGER ) + + col0 * - col2 FROM tab0
----
-711
-7217
46

query I rowsort
SELECT + ( col2 ) - - col1 AS col2 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9298
SELECT ALL 93 * - 31 / - tab2.col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL 93 * - 31 / - tab2.col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 49 FROM tab2 cor0
----
108
66
80

query I rowsort
SELECT ALL col1 + 69 * + tab2.col0 AS col1 FROM tab2
----
514
5441
5468

query I rowsort
SELECT ALL 85 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT col2 + + 29 * 49 FROM tab2 AS cor0
----
1447
1448
1459

query I rowsort
SELECT DISTINCT 40 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
40

query I rowsort
SELECT ALL + cor0.col1 - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 57 col1 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT tab0.col1 * + 94 + - col2 AS col2 FROM tab0
----
8051
8472
9117

query I rowsort
SELECT 84 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9308
SELECT DISTINCT col1 * col2 DIV col1 col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT col1 * col2 / col1 col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 * 85 AS col2 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab1 cor0
----
40

query I rowsort
SELECT ALL col2 + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-9312
SELECT col0 DIV 64 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9312
SELECT col0 / 64 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9313
SELECT - CAST( - 41 AS SIGNED ) FROM tab2 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-9313
SELECT - CAST ( - 41 AS INTEGER ) FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - + ( - col1 ) * col0 AS col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9315
SELECT ALL - cor0.col2 DIV ( - col0 ) FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL - cor0.col2 / ( - col0 ) FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - 65 AS REAL ) FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT + col0 * + col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + col1 * col0 * + 74 - - col2 * - col2 AS col1 FROM tab0 AS cor0
----
151647
251229
592602

query I rowsort
SELECT DISTINCT - 28 * + col0 AS col2 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT ALL - col0 * + col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT + + 79 + - col0 * col2 FROM tab2 AS cor0
----
-110
-1949
-2923

query I rowsort
SELECT DISTINCT + 31 * col1 AS col0 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT - + cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 + - col0 * col2 AS col1 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + 35 + - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-2803
-62
-7427

query I rowsort
SELECT ALL col0 + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9328
SELECT col1 + col0 + CAST( NULL AS SIGNED ) * col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT col1 + col0 + CAST ( NULL AS INTEGER ) * col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 37 + 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT tab0.col0 * tab0.col0 + col0 AS col0 FROM tab0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 + + ( + col2 ) / - col1 + - CAST ( 81 AS REAL ) col1 FROM tab2 cor0
----
-3
-4
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9332
SELECT + - col1 * + CAST( NULL AS SIGNED ) + col0 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT + - col1 * + CAST ( NULL AS INTEGER ) + col0 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * col2 + col1 * col2 + 87 AS col2 FROM tab0 AS cor0
----
14273
185
4014

query I rowsort
SELECT - - col1 + - ( + cor0.col2 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + + col2 * - ( + col1 * col2 ) + ( - col1 * + col1 ) + ( 63 ) FROM tab0 AS cor0
----
-100987
-620102
-9443

query I rowsort
SELECT - + col0 * 70 + col0 AS col0 FROM tab2 cor0
----
-483
-5382
-5451

query I rowsort
SELECT + col1 * - 2 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - col2 * 56 AS col1 FROM tab0
----
-1848
-4592
-56

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9340
SELECT ALL + col2 * - CAST( col1 AS SIGNED ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + col2 * - CAST ( col1 AS INTEGER ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab1, tab1 cor0
----
-26

query I rowsort
SELECT DISTINCT cor1.col0 + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b7e2a7b66ad60562d4872f7ae5eab2b

query I rowsort
SELECT 10 * - tab2.col1 AS col0 FROM tab2
----
-170
-310
-590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 66d12b13327233058113a26801f3f4bd

query I rowsort
SELECT 39 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - 25 * + tab2.col0 AS col0 FROM tab2
----
-175
-1950
-1975

query I rowsort
SELECT 15 * cor0.col0 + + 58 * - ( + col0 ) - - col2 FROM tab1 AS cor0
----
-2695
-3344
-75

query I rowsort
SELECT col2 + - col0 + - col2 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9349
SELECT DISTINCT 33 DIV + tab1.col1 AS col0 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT 33 / + tab1.col1 AS col0 FROM tab1
----
1
2
3

query I rowsort
SELECT DISTINCT - col2 * col1 * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT ALL + - col1 * col0 DIV - cor0.col2 + ( + col2 ) + - 13 AS col1 FROM tab1 AS cor0
----
42
55
93

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL + - col1 * col0 / - cor0.col2 + ( + col2 ) + - 13 AS col1 FROM tab1 AS cor0
----
42
55
93

query I rowsort
SELECT + + ( - col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9353
SELECT DISTINCT + col1 * + col0 + CAST( NULL AS SIGNED ) * + 98 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + col1 * + col0 + CAST ( NULL AS INTEGER ) * + 98 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 61 + cor0.col1 - + ( 13 ) * col2 FROM tab1 AS cor0
----
-1296
-737
-792

query I rowsort
SELECT + + 63 * col1 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT col2 + col1 * 72 FROM tab0 AS cor0
----
6225
6634
6985

query I rowsort
SELECT - 18 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1026
-1728
-972

query I rowsort
SELECT DISTINCT - 47 + - cor0.col2 * - col0 FROM tab2 AS cor0
----
142
1981
2955

query I rowsort
SELECT DISTINCT col1 + + col1 * col2 * - col2 FROM tab0 AS cor0
----
-611793
-93568
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9360
SELECT ALL col1 + - ( + col0 ) DIV - col0 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL col1 + - ( + col0 ) / - col0 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT ALL + + cor0.col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + ( + cor1.col1 ) + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cdd61993e198773b18d4b6827ca81a9e

query I rowsort
SELECT - col0 + + tab0.col1 * - col0 * + col0 FROM tab0
----
-118860
-49560
-720900

query I rowsort
SELECT ALL 39 * - 42 + + cor0.col0 * + 20 * col2 AS col0 FROM tab1 AS cor0
----
151962
1602
71322

query I rowsort
SELECT - 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT 9 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
9

query I rowsort
SELECT + 73 - + col0 AS col1 FROM tab2
----
-5
-6
66

query I rowsort
SELECT col1 + 24 * col2 FROM tab0
----
121
2059
878

query I rowsort
SELECT ALL + ( + col0 ) * + col2 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT DISTINCT + ( + col2 ) DIV col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + ( + col2 ) / col0 FROM tab1
----
0
1
18

query I rowsort
SELECT + 84 * col0 AS col1 FROM tab2 AS cor0
----
588
6552
6636

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) - col0 * col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + 49 AS col0 FROM tab0
----
49
49
49

query I rowsort
SELECT + - col2 + - 54 * col1 FROM tab0 AS cor0
----
-4677
-4996
-5239

onlyif mysql # use DIV operator for integer division
query I rowsort label-9375
SELECT + col0 DIV + 64 - col2 FROM tab1
----
-54
-56
-95

skipif mysql # not compatible
query I rowsort label-9375
SELECT + col0 / + 64 - col2 FROM tab1
----
-54
-56
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9376
SELECT DISTINCT cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9377
SELECT ALL + ( col2 ) + + cor0.col1 + + col2 DIV + col2 FROM tab1 AS cor0
----
110
68
81

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL + ( col2 ) + + cor0.col1 + + col2 / + col2 FROM tab1 AS cor0
----
110
68
81

query I rowsort
SELECT DISTINCT + + 45 - cor0.col1 FROM tab1 AS cor0
----
19
32
35

query I rowsort
SELECT ALL 89 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
128516
60164
64881

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT 60 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT - col1 * col1 * col0 FROM tab2 cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT + 50 DIV 59 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9384
SELECT + 50 / 59 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - 93 + + 51 FROM tab0, tab0 cor0
----
-42

query I rowsort
SELECT ALL + col1 * - tab2.col2 + 65 FROM tab2
----
-1469
-581
-772

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 - 79 FROM tab0 AS cor0
----
-46
-78
3

query I rowsort
SELECT ALL col0 * - 8 - + ( col0 * - col1 ) FROM tab1 AS cor0
----
128
400
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-9390
SELECT col1 DIV col2 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1091
6725
98

skipif mysql # not compatible
query I rowsort label-9390
SELECT col1 / col2 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1091
6725
98

query I rowsort
SELECT ALL - + col0 - - col1 * 58 AS col2 FROM tab1 AS cor0
----
1505
516
674

query I rowsort
SELECT - - col2 * col2 * col0 + col2 FROM tab0 AS cor0
----
26169
36
598518

onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT ALL col0 + col2 DIV col1 col2 FROM tab2 cor0
----
7
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL col0 + col2 / col1 col2 FROM tab2 cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * - col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + ( + col2 ) + cor0.col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9396
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - cor0.col2 - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + + 23 * + cor0.col2 + + col0 FROM tab0 AS cor0
----
1975
58
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-9399
SELECT ALL + ( + col1 ) DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + ( + col1 ) / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + col1 ) + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9401
SELECT - - col1 + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9401
SELECT - - col1 + col1 / col1 AS col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT - + cor0.col0 * col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - col1 + + 85 * col2 AS col2 FROM tab2 cor0
----
2151
2264
3213

query I rowsort
SELECT DISTINCT - col0 - col1 * - cor0.col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col0 * cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT - col0 + + col0 + cor0.col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + col1 - + 25 AS col0 FROM tab0 AS cor0
----
61
66
72

query I rowsort
SELECT ALL - col0 - - 53 FROM tab0
----
-36
18
29

query I rowsort
SELECT ALL + - 95 * ( col1 ) * col0 FROM tab1 AS cor0
----
-60800
-7410
-98800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + - col2 col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + 26 * + ( + col2 * - ( + col1 ) + - col2 ) FROM tab2 AS cor0
----
-17784
-22464
-40560

query I rowsort
SELECT DISTINCT + tab0.col1 - + ( col2 * col2 ) FROM tab0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9414
SELECT col1 DIV 57 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9414
SELECT col1 / 57 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 79 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT + 23 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT - ( - col1 ) * col0 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9418
SELECT col0 + CAST( NULL AS SIGNED ) * - tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT col0 + CAST ( NULL AS INTEGER ) * - tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 * tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
630
7020
7110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - 27 * + tab2.col1 + + col0 * col1 + col0 AS col0 FROM tab2
----
-613
3087
963

query I rowsort
SELECT 3 + cor0.col1 FROM tab0 AS cor0
----
100
89
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9423
SELECT + col2 * + col0 * col1 + - 55 DIV col0 FROM tab2 AS cor0
----
119652
51034
5852

skipif mysql # not compatible
query I rowsort label-9423
SELECT + col2 * + col0 * col1 + - 55 / col0 FROM tab2 AS cor0
----
119652
51034
5852

query I rowsort
SELECT ALL col0 + + ( col1 + ( - col1 ) ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 * - tab1.col2 + - col1 FROM tab1
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-9426
SELECT ALL - ( col0 ) DIV col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL - ( col0 ) / col0 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col0 * col0 + ( 52 ) + col1 FROM tab2 AS cor0
----
-5973
-6172
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9428
SELECT - - col1 + - col0 + - 61 * ( col2 * - CAST( + 36 AS SIGNED ) + col0 ) FROM tab0 AS cor0
----
123
174645
71066

skipif mysql # not compatible
query I rowsort label-9428
SELECT - - col1 + - col0 + - 61 * ( col2 * - CAST ( + 36 AS INTEGER ) + col0 ) FROM tab0 AS cor0
----
123
174645
71066

onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT DISTINCT + col0 + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + col0 + col1 / col2 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - 2 + col2 FROM tab0 AS cor0
----
-1
31
80

query I rowsort
SELECT ALL - - 87 AS col1 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT ALL col0 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + cor0.col1 + + col2 - + col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - + col1 + + cor0.col2 * col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - col0 * - col2 * tab1.col1 AS col0 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9436
SELECT col1 DIV + col2 col0 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9436
SELECT col1 / + col2 col0 FROM tab0
----
1
2
97

query I rowsort
SELECT - 98 * + col2 - ( + col0 ) FROM tab2 AS cor0
----
-2626
-2653
-3803

query I rowsort
SELECT + col2 * + col1 - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9439
SELECT - tab0.col2 - col0 DIV - 72 FROM tab0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-9439
SELECT - tab0.col2 - col0 / - 72 FROM tab0
----
-1
-33
-81

query I rowsort
SELECT + col0 * + 63 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
6320
658
9516

query I rowsort
SELECT DISTINCT + - col1 + col2 + col2 AS col1 FROM tab2 AS cor0
----
-7
23
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9442
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 * 26 - - cor0.col0 FROM tab2 AS cor0
----
1612
521
813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9444
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) + 9 * col1 col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) + 9 * col1 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( 19 ) AS col1 FROM tab1
----
19
19
19

query I rowsort
SELECT - + col2 + 97 FROM tab2 AS cor0
----
59
70
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT col1 * - 48 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT - 14 AS col2 FROM tab1 cor0
----
-14
-14
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9450
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + 25 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0 AS cor2
----
81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540

query I rowsort
SELECT - + cor0.col1 * col1 + 70 * + col2 AS col2 FROM tab1 AS cor0
----
3104
3890
6551

query I rowsort
SELECT DISTINCT col1 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col0 * + 14 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT - + cor0.col0 * - col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - ( - col1 ) * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL ( + cor0.col1 ) + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - col1 * - 29 AS col2 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT DISTINCT col2 * + 8 AS col0 FROM tab0
----
264
656
8

query I rowsort
SELECT - col2 * + 86 + tab1.col0 * col2 * col0 AS col0 FROM tab1
----
-4158
228570
606144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9461
SELECT - CAST( cor0.col0 AS SIGNED ) * col1 + 70 * + 38 AS col0 FROM tab0 AS cor0
----
-5439
-735
596

skipif mysql # not compatible
query I rowsort label-9461
SELECT - CAST ( cor0.col0 AS INTEGER ) * col1 + 70 * + 38 AS col0 FROM tab0 AS cor0
----
-5439
-735
596

query I rowsort
SELECT ALL + 21 + - col1 FROM tab1 AS cor0
----
-5
11
8

query I rowsort
SELECT DISTINCT - 20 - col1 FROM tab1 AS cor0
----
-30
-33
-46

query I rowsort
SELECT DISTINCT + 77 * col0 AS col2 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT ALL + - 88 FROM tab0, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT - 36 * tab0.col1 FROM tab0
----
-3096
-3276
-3492

query I rowsort
SELECT DISTINCT + + col0 * + 13 FROM tab0 AS cor0
----
1157
312
455

onlyif mysql # use DIV operator for integer division
query I rowsort label-9468
SELECT - + col2 + - 31 DIV 21 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-9468
SELECT - + col2 + - 31 / 21 FROM tab2 AS cor0
----
-27
-28
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * - col1 col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL 44 + col1 FROM tab2
----
103
61
75

query I rowsort
SELECT ALL col0 * col1 + - col2 + - 71 AS col1 FROM tab2
----
119
1234
4505

query I rowsort
SELECT DISTINCT - tab1.col0 * - col0 + 95 FROM tab1
----
104
4191
6495

query I rowsort
SELECT col2 + - col1 * col1 AS col0 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT col1 * + 33 AS col2 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT ALL + col1 + ( + col2 ) * col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT - ( 48 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + - col1 + - ( ( - cor0.col0 ) ) * + col1 FROM tab2 AS cor0
----
1326
186
4543

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT DISTINCT col2 DIV - CAST( - 54 AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT col2 / - CAST ( - 54 AS INTEGER ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT - 70 + 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT col0 * col1 + ( - col1 ) * + col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 + + 50 FROM tab0
----
136
141
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-9483
SELECT col2 + col2 + tab1.col0 DIV col1 FROM tab1
----
108
120
198

skipif mysql # not compatible
query I rowsort label-9483
SELECT col2 + col2 + tab1.col0 / col1 FROM tab1
----
108
120
198

query I rowsort
SELECT ALL - col1 * + 89 + - col0 AS col2 FROM tab2
----
-1592
-2766
-5329

query I rowsort
SELECT DISTINCT tab0.col2 + - col2 + col1 * + tab0.col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col2 + + col2 * + 87 AS col0 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT col1 * + col0 + col1 * col1 + - 94 * + col2 FROM tab0 AS cor0
----
12710
6358
8672

onlyif mysql # use DIV operator for integer division
query I rowsort label-9488
SELECT ALL - col2 DIV - 86 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - col2 / - 86 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + 68 * 87 + - col0 FROM tab2 AS cor0
----
5864
5875
5936

query I rowsort
SELECT col2 * ( + col2 * - col0 ) FROM tab0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT - + col2 DIV - ( - col0 * col1 ) AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT - + col2 / - ( - col0 * col1 ) AS col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( col1 ) col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9493
SELECT DISTINCT + col1 DIV - 46 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT + col1 / - 46 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - ( + col0 + col1 ) AS col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT + col1 - - 86 FROM tab1
----
112
96
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9496
SELECT CAST( - col1 AS SIGNED ) - col0 AS col1 FROM tab1
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-9496
SELECT CAST ( - col1 AS INTEGER ) - col0 AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT + ( - cor0.col1 ) * col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + 74 AS col2 FROM tab2
----
74
74
74

query I rowsort
SELECT col1 + + 19 * col2 FROM tab2
----
544
553
739

query I rowsort
SELECT - col2 * - col1 - + 97 AS col0 FROM tab0 AS cor0
----
0
2741
7365

query I rowsort
SELECT + 74 * + col1 + - 33 FROM tab0 AS cor0
----
6331
6701
7145

query I rowsort
SELECT ALL + - col1 * + col1 + cor0.col0 AS col0 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT 14 * col0 + 57 + col1 FROM tab2 AS cor0
----
1180
1208
186

query I rowsort
SELECT - col0 - - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + col1 * + col2 * - cor0.col1 + 85 AS col1 FROM tab2 AS cor0
----
-12341
-26591
-91097

query I rowsort
SELECT ALL 36 + - col2 FROM tab2 AS cor0
----
-2
10
9

query I rowsort
SELECT ALL - - 40 + + col2 FROM tab0 cor0
----
122
41
73

query I rowsort
SELECT DISTINCT + col1 * col2 + - col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT + 82 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
2078
763
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-9510
SELECT ALL col1 + col0 + col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
109
131
179

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL col1 + col0 + col0 / - col0 AS col2 FROM tab0 AS cor0
----
109
131
179

query I rowsort
SELECT - 80 * - col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT ALL - - col1 * col2 + - col2 + - col0 FROM tab0 cor0
----
2781
61
7291

query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 + - ( + cor0.col2 ) + ( col2 * col2 ) FROM tab1 AS cor0
----
2859
3128
9040

onlyif mysql # use DIV operator for integer division
query I rowsort label-9515
SELECT DISTINCT col0 * col2 DIV col2 AS col2 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT col0 * col2 / col2 AS col2 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL cor0.col1 + - col0 AS col0 FROM tab0 cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * + col1 - col2 col2 FROM tab0 AS cor0
----
3407
3558
3879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab0
----
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9520
SELECT + CAST( 9 AS SIGNED ) FROM tab0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-9520
SELECT + CAST ( 9 AS INTEGER ) FROM tab0
----
9
9
9

query I rowsort
SELECT + ( + 35 ) - col2 AS col2 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT - - cor0.col0 * - col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + + 1 + 75 * + col1 AS col0 FROM tab2 AS cor0
----
1276
2326
4426

query I rowsort
SELECT + - ( + 56 ) * + col0 AS col0 FROM tab1 AS cor0
----
-168
-3584
-4480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 - col1 col0 FROM tab1 AS cor0
----
14
27
30

query I rowsort
SELECT + col0 * col2 + col0 + + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
14849
167
3654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + + col1 col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - col1 * 36 AS col0 FROM tab0
----
-3096
-3276
-3492

query I rowsort
SELECT col1 * col0 + + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL 77 * - col2 * + col0 + - col2 FROM tab1
----
-12528
-280953
-591456

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 9 AS REAL ) + - col1 / ( + col0 ) FROM tab0
----
6
7
8

query I rowsort
SELECT ALL - tab2.col1 * + col2 + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT col2 + col2 * cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT DISTINCT + cor0.col2 * ( + 75 ) DIV cor0.col0 + - col0 * cor0.col1 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-22
-95
17

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT + cor0.col2 * ( + 75 ) / cor0.col0 + - col0 * cor0.col1 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-22
-95
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT cor0.col0 DIV + cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9536
SELECT cor0.col0 / + cor0.col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT col0 * col1 + ( col0 ) + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
15650
3527
4926

onlyif mysql # use DIV operator for integer division
query I rowsort label-9538
SELECT ALL - col0 DIV - col0 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - col0 / - col0 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - 89 + + col1 AS col2 FROM tab2
----
-30
-58
-72

query I rowsort
SELECT + 4 * - col2 * - 38 - - col1 AS col2 FROM tab0
----
12555
249
5102

query I rowsort
SELECT 77 + tab2.col2 FROM tab2
----
103
104
115

query I rowsort
SELECT + col1 + - 77 + col2 * tab2.col1 FROM tab2
----
1516
586
791

query I rowsort
SELECT + tab0.col0 * - tab0.col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 * col2 * 38 AS col0 FROM tab2 AS cor0
----
24548
31806
58292

query I rowsort
SELECT DISTINCT cor0.col1 * + 81 AS col0 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT + col2 + ( - tab2.col0 * - col0 ) AS col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT + 48 * col2 + col0 FROM tab2 cor0
----
1303
1326
1903

query I rowsort
SELECT ALL tab1.col2 * + 0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + tab1.col2 + + tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2

query I rowsort
SELECT 30 + ( col1 ) - tab1.col0 FROM tab1
----
-24
-37
53

query I rowsort
SELECT + cor0.col0 * col2 - + col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-9552
SELECT ( col1 ) DIV col0 col2 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9552
SELECT ( col1 ) / col0 col2 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col2 FROM tab1
----
78
78
78

query I rowsort
SELECT - + 41 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL - col1 + col2 - + cor0.col1 FROM tab2 AS cor0
----
-35
-92
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab1 cor0
----
81
81
81

query I rowsort
SELECT - 0 * + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + - col0 * + col1 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT + ( col1 ) * - tab0.col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - 82 + col1 - - col0 FROM tab0
----
28
50
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9561
SELECT DISTINCT col0 * - col0 - col1 * CAST( + col0 AS SIGNED ) * - tab1.col1 FROM tab1
----
2019
2304
7120

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT col0 * - col0 - col1 * CAST ( + col0 AS INTEGER ) * - tab1.col1 FROM tab1
----
2019
2304
7120

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 * - col0 AS col1 FROM tab2
----
-312
-474493
-493022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 + - col2 col1 FROM tab2 cor0
----
-83
-84
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9564
SELECT ALL - col2 * + col1 + + CAST( + cor0.col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - col2 * + col1 + + CAST ( + cor0.col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - - 13 + - cor0.col2 * + 80 FROM tab2 cor0
----
-2067
-2147
-3027

query I rowsort
SELECT - col1 * cor0.col2 + col0 FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9567
SELECT ALL CAST( NULL AS DECIMAL ) * col0 + - tab1.col0 * 2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL CAST ( NULL AS REAL ) * col0 + - tab1.col0 * 2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9568
SELECT ALL - col2 DIV - tab2.col0 + col0 + col2 AS col1 FROM tab2
----
104
117
37

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - col2 / - tab2.col0 + col0 + col2 AS col1 FROM tab2
----
104
117
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT + col2 DIV + col0 + - col2 + 91 * col0 AS col1 FROM tab0
----
2152
3184
8017

skipif mysql # not compatible
query I rowsort label-9569
SELECT + col2 / + col0 + - col2 + 91 * col0 AS col1 FROM tab0
----
2152
3184
8017

query I rowsort
SELECT + ( - col2 ) + col0 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - tab1.col1 + col0 * + tab1.col0 * - 17 + 11 * + col0 FROM tab1
----
-107933
-146
-68938

onlyif mysql # use DIV operator for integer division
query I rowsort label-9572
SELECT ALL + tab0.col0 + + col1 DIV + tab0.col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL + tab0.col0 + + col1 / + tab0.col0 FROM tab0
----
27
37
90

query I rowsort
SELECT ALL - + 49 + col0 AS col0 FROM tab1 AS cor0
----
-46
15
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * col2 + 72 col1 FROM tab0 AS cor0
----
169
611956
93726

query I rowsort
SELECT ALL - 50 * col1 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT DISTINCT 79 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
112
161
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT + + col1 DIV col1 + col1 * 30 * + cor0.col1 col1 FROM tab1 AS cor0
----
20281
3001
5071

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9577
SELECT + + col1 / col1 + col1 * 30 * + cor0.col1 col1 FROM tab1 AS cor0
----
20281
3001
5071

query I rowsort
SELECT ALL - cor0.col2 + + col0 * - col2 * 49 AS col2 FROM tab0 AS cor0
----
-1716
-357684
-38841

query I rowsort
SELECT - + col0 * + col1 + + 95 FROM tab0 AS cor0
----
-1969
-3300
-8004

query I rowsort
SELECT - 52 * - col1 AS col2 FROM tab2 cor0
----
1612
3068
884

query I rowsort
SELECT DISTINCT + + 0 * + col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 15 * col1 * + col0 FROM tab1 AS cor0
----
-1170
-15600
-9600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9583
SELECT ALL + col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 + ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-9585
SELECT DISTINCT - - col0 * col1 + + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT - - col0 * col1 + + col1 / - col1 AS col2 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT ALL + col1 * + col2 - col2 * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 34 FROM tab0, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
34

query I rowsort
SELECT + 34 + - 98 AS col0 FROM tab2 AS cor0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + cor0.col0 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - - cor0.col0 + - col1 * + col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT - 35 * + cor0.col2 + - col0 FROM tab2 AS cor0
----
-1409
-952
-988

query I rowsort
SELECT - - cor0.col0 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL - + 20 + - col0 - - col2 FROM tab1 AS cor0
----
-27
-4
31

query I rowsort
SELECT + 24 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col1 + cor0.col2 * + col0 col1 FROM tab2 AS cor0
----
193
2061
2981

onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT cor2.col2 DIV 30 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to ddf31312b92d682347b790f1d859a4e7

skipif mysql # not compatible
query I rowsort label-9596
SELECT cor2.col2 / 30 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to ddf31312b92d682347b790f1d859a4e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + - 5 col1 FROM tab0 AS cor0
----
-29
-40
-94

query I rowsort
SELECT ALL - - col0 * - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT 45 * + col2 AS col2 FROM tab1 AS cor0
----
2430
2565
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT + 49 DIV col0 FROM tab2
----
0
0
7

skipif mysql # not compatible
query I rowsort label-9601
SELECT + 49 / col0 FROM tab2
----
0
0
7

query I rowsort
SELECT ALL - ( 28 ) + col0 * col2 FROM tab1 AS cor0
----
134
3620
7652

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9603
SELECT ALL + + CAST( - col2 AS SIGNED ) - + col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + + CAST ( - col2 AS INTEGER ) - + col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL cor0.col2 + col2 + + col1 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ALL + - col0 * + 76 + col0 - 7 AS col2 FROM tab2 cor0
----
-532
-5857
-5932

query I rowsort
SELECT - + 97 * - col1 + - col1 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT + 82 * - col2 FROM tab1 AS cor0
----
-4428
-4674
-7872

query I rowsort
SELECT col1 * cor0.col1 - 59 AS col1 FROM tab1 AS cor0
----
110
41
617

query I rowsort
SELECT DISTINCT col0 * col0 - - col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT + col2 + col2 * + tab1.col2 AS col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT ALL ( + col1 ) + - tab1.col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 * 91 AS col0 FROM tab1 AS cor0
----
4914
5187
8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-9614
SELECT ALL + cor0.col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + cor0.col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab0, tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT 96 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
96

query I rowsort
SELECT - 45 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT DISTINCT col2 + col1 + ( - col1 * col1 ) AS col1 FROM tab2
----
-234
-3396
-903

query I rowsort
SELECT + tab0.col0 * col2 - + col1 * - col0 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT + + col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col2 * col1 + col2 AS col0 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 * tab1.col2 col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - - col1 * 99 - cor0.col1 AS col0 FROM tab2 AS cor0
----
1666
3038
5782

onlyif mysql # use DIV operator for integer division
query I rowsort label-9625
SELECT + col0 - col0 DIV + col2 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-9625
SELECT + col0 - col0 / + col2 FROM tab0 AS cor0
----
0
24
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9626
SELECT - + col0 + 65 * col2 DIV col1 FROM tab1 AS cor0
----
132
306
400

skipif mysql # not compatible
query I rowsort label-9626
SELECT - + col0 + 65 * col2 / col1 FROM tab1 AS cor0
----
132
306
400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9627
SELECT - col1 * col1 DIV + col2 AS col0 FROM tab0
----
-100
-224
-9409

skipif mysql # not compatible
query I rowsort label-9627
SELECT - col1 * col1 / + col2 AS col0 FROM tab0
----
-100
-224
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT cor0.col2 DIV + col1 + + col0 - + col0 * - 78 FROM tab0 AS cor0
----
1896
2765
7031

skipif mysql # not compatible
query I rowsort label-9628
SELECT cor0.col2 / + col1 + + col0 - + col0 * - 78 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT - - col0 * cor0.col0 - + col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT - col2 * 83 - col1 FROM tab0 AS cor0
----
-180
-2825
-6897

query I rowsort
SELECT ALL 40 * + ( - col0 + - col2 ) * 74 FROM tab2
----
-100640
-307840
-346320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 * - col1 col0 FROM tab2 cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9633
SELECT ALL 97 DIV col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL 97 / col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ( + col1 * + col1 ) FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ( - 46 ) * col1 AS col2 FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT - ( col0 ) * - 31 FROM tab0 AS cor0
----
1085
2759
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 63 * col1 col1 FROM tab1 AS cor0
----
1638
630
819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9638
SELECT + ( col0 ) + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-9638
SELECT + ( col0 ) + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-1482
-605
-857

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 * - col0 + cor0.col2 FROM tab0 AS cor0
----
15661
8221
9445

query I rowsort
SELECT - col2 * + 94 AS col1 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT + - col0 * - ( col1 * - col0 ) FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col0 + - ( col0 ) * col1 FROM tab1 AS cor0
----
-1280
-156
-2080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col1 FROM tab2, tab1, tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 49 * - col1 AS col1 FROM tab0
----
-4214
-4459
-4753

query I rowsort
SELECT ALL + col0 + 56 * col1 FROM tab1
----
1459
624
808

query I rowsort
SELECT + ( 85 ) * - col0 + cor0.col0 - 88 * cor0.col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-183648
-301700
-720188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9651
SELECT col0 * CAST( - col0 * col2 AS SIGNED ) col1 FROM tab0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9651
SELECT col0 * CAST ( - col0 * col2 AS INTEGER ) col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT - ( ( - col2 ) ) * + 45 FROM tab0
----
1485
3690
45

query I rowsort
SELECT - 85 + - col2 AS col2 FROM tab1 cor0
----
-139
-142
-181

query I rowsort
SELECT - cor0.col0 + - 42 + + col2 FROM tab0 AS cor0
----
-33
-49
-76

query I rowsort
SELECT - col0 + - 31 AS col2 FROM tab2 AS cor0
----
-109
-110
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 + tab0.col1 col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col0 + + col2 * col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL tab0.col0 + + col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col1 + tab0.col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN col1 + + col2 * col2 AND ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9661
SELECT ALL col0 + + col2 DIV col1 AS col0 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL col0 + + col2 / col1 AS col0 FROM tab1
----
5
69
87

query I rowsort
SELECT - tab1.col0 + tab1.col2 + - col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + col0 * col0 * tab0.col2 + + col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT - col0 * col0 * + col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL - tab1.col0 + col0 * col2 + - col0 FROM tab1
----
156
3520
7520

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col0 + tab2.col1 + - tab2.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9667
SELECT tab0.col1 * - col1 DIV col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9667
SELECT tab0.col1 * - col1 / col1 FROM tab0
----
-86
-91
-97

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col0 * - col2 * + col1 + col1 + + tab0.col2 )
----

query I rowsort
SELECT col0 + col0 - col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 * - col0 col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT tab2.col0 * + col1 * - col0 AS col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT col1 + + col0 * - col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col1 * col1 * + tab1.col2 AS col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col2 + col2 FROM tab1
----
-111
-3655
-7664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 + col2 col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL col0 * + col2 * + col2 AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + col2 * + col2 + - col0 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT ALL + tab0.col1 * tab0.col0 + - col1 * col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT col1 * + col2 + col2 AS col0 FROM tab0 WHERE NOT ( - col1 * + col1 ) >= col1
----
2871
7544
98

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) >= + tab1.col1
----

query I rowsort
SELECT ALL cor0.col1 * cor0.col2 + col1 * - col2 * col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-21769
-23981
-38428

onlyif mysql # use DIV operator for integer division
query I rowsort label-9684
SELECT ALL col0 DIV + col0 + col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL col0 / + col0 + col2 FROM tab2 AS cor0
----
27
28
39

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col0 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col2 col2 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 12 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL col2 * - ( - col0 ) + col2 - + col1 * - col2 AS col1 FROM tab1 AS cor0
----
1620
4275
9024

onlyif mysql # use DIV operator for integer division
query I rowsort label-9690
SELECT ALL cor0.col1 + ( + cor0.col2 ) DIV col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL cor0.col1 + ( + cor0.col2 ) / col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT - cor0.col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col0 * - 1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col1 + 16 AS col1 FROM tab2 AS cor0
----
33
47
75

query I rowsort
SELECT ALL + col1 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9695
SELECT DISTINCT + col0 + CAST( 63 AS SIGNED ) FROM tab0 cor0
----
152
87
98

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT + col0 + CAST ( 63 AS INTEGER ) FROM tab0 cor0
----
152
87
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT ALL + col2 * + col0 + col1 DIV cor0.col1 FROM tab2 cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + col2 * + col0 + col1 / cor0.col1 FROM tab2 cor0
----
190
2029
3003

query I rowsort
SELECT ALL col2 * 45 + col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - 89 * + 6 + col0 * + 26 * 72 FROM tab1 AS cor0
----
119274
149226
5082

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9700
SELECT - CAST( NULL AS SIGNED ) + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT - CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 42 * cor0.col1 + + col0 * + 31 FROM tab1 AS cor0
----
1185
2404
3026

query I rowsort
SELECT + ( + 94 ) AS col1 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT 14 * col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT + + col0 + + col2 + - cor0.col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9705
SELECT DISTINCT + + col1 + - col1 * col1 DIV - col2 FROM tab1 AS cor0
----
11
14
38

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + + col1 + - col1 * col1 / - col2 FROM tab1 AS cor0
----
11
14
38

query I rowsort
SELECT + 69 * + col2 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT + cor0.col0 * col1 * col1 + ( col2 ) AS col1 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT ALL - cor0.col0 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT col2 + col0 * + col2 * col2 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT - + cor0.col0 + - cor0.col0 * 9 AS col2 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT DISTINCT col0 * - col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + + cor0.col0 - 63 FROM tab1 AS cor0
----
-60
1
17

query I rowsort
SELECT - + col2 * 42 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL col0 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT DISTINCT col0 DIV - col1 AS col0 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT col0 / - col1 AS col0 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT - col0 * - col1 * col2 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL tab2.col0 * col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - 60 + - col1 FROM tab0
----
-146
-151
-157

onlyif mysql # use DIV operator for integer division
query I rowsort label-9719
SELECT + col2 + col0 * col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-9719
SELECT + col2 + col0 * col0 / + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9720
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9721
SELECT ALL - col0 DIV - 37 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL - col0 / - 37 AS col0 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL 48 AS col2 FROM tab0
----
48
48
48

query I rowsort
SELECT ALL 49 * - col2 FROM tab2
----
-1274
-1323
-1862

query I rowsort
SELECT DISTINCT - col1 + + 79 * col2 FROM tab1 AS cor0
----
4240
4493
7571

query I rowsort
SELECT 28 * col0 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT + ( ( col1 ) ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT + tab1.col2 * 63 DIV + 11 FROM tab1, tab1 AS cor0
----
9 values hashing to 2323cd01a42a129548460a7c97c05f8c

skipif mysql # not compatible
query I rowsort label-9727
SELECT + tab1.col2 * 63 / + 11 FROM tab1, tab1 AS cor0
----
9 values hashing to 2323cd01a42a129548460a7c97c05f8c

query I rowsort
SELECT DISTINCT ( + 91 ) AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
91

query I rowsort
SELECT ALL tab2.col2 * - col2 * - col0 + - col2 * col1 * col2 FROM tab2
----
-17496
12844
89528

query I rowsort
SELECT - - col0 * col0 - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - col1 * + col0 + - 60 FROM tab0 AS cor0
----
-2124
-3455
-8159

query I rowsort
SELECT DISTINCT col0 * col2 + col0 * + 56 FROM tab2 cor0
----
581
6396
7426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col0 FROM tab0, tab1 cor0, tab0 cor1
----
92

query I rowsort
SELECT ALL + 18 + col2 FROM tab2 AS cor0
----
44
45
56

query I rowsort
SELECT + col1 * + 70 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT ALL - + cor0.col0 - + col0 * - 78 * col0 AS col1 FROM tab2 cor0
----
3815
474474
486719

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT col0 * + col0 + + 72 FROM tab1 AS cor0
----
4168
6472
81

query I rowsort
SELECT DISTINCT col2 + + 90 * - col0 + + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1332
-7670
-8516

query I rowsort
SELECT ALL - col0 + + ( col1 ) * - col0 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT + col0 + 87 AS col2 FROM tab1 AS cor0
----
151
167
90

query I rowsort
SELECT DISTINCT 60 + col2 FROM tab0
----
142
61
93

query I rowsort
SELECT ALL tab0.col1 * - col2 * col1 + col0 AS col0 FROM tab0
----
-244044
-678953
-9374

query I rowsort
SELECT col2 + - 89 FROM tab2 cor0
----
-51
-62
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-9745
SELECT - col1 DIV + ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9745
SELECT - col1 / + ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9746
SELECT - col2 * CAST( 56 * col2 AS SIGNED ) + + col1 * col0 AS col2 FROM tab2 AS cor0
----
-33254
-40607
-79521

skipif mysql # not compatible
query I rowsort label-9746
SELECT - col2 * CAST ( 56 * col2 AS INTEGER ) + + col1 * col0 AS col2 FROM tab2 AS cor0
----
-33254
-40607
-79521

query I rowsort
SELECT ALL col0 + col1 * + col2 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL col0 * tab1.col1 + col1 * + col1 AS col0 FROM tab1
----
1209
740
754

query I rowsort
SELECT - col2 - + col0 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT - col2 * col2 * col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT col1 * + col0 * cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
119730
51113
5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT + col0 DIV col1 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6085
6245

skipif mysql # not compatible
query I rowsort label-9752
SELECT + col0 / col1 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6085
6245

query I rowsort
SELECT + col0 * col0 + col0 * col0 FROM tab2 AS cor0
----
12168
12482
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * col0 * col1 + col2 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT col0 * col2 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT DISTINCT col0 * col2 + col1 * - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-117624
-48032
-5670

onlyif mysql # use DIV operator for integer division
query I rowsort label-9758
SELECT + cor0.col1 + + cor0.col0 DIV col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-9758
SELECT + cor0.col1 + + cor0.col0 / col2 FROM tab0 AS cor0
----
132
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col0 + cor0.col0 * col2 col0 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT - 24 + col0 AS col0 FROM tab1 cor0
----
-21
40
56

query I rowsort
SELECT - 3 * + cor0.col0 - col0 * col2 * - col2 AS col1 FROM tab0 AS cor0
----
-70
26064
598169

query I rowsort
SELECT - + col0 - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT + 5 * col2 AS col0 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT tab2.col2 * - col1 * - tab2.col1 FROM tab2
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT ALL - col2 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - col2 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 90 * + col1 + 35 col1 FROM tab0 AS cor0
----
-7705
-8155
-8695

query I rowsort
SELECT ( - tab2.col2 + + 53 ) AS col2 FROM tab2
----
15
26
27

query I rowsort
SELECT ALL + - ( col0 ) + ( + col1 ) FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - cor0.col2 - + col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT 0 * col2 + ( + col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col1 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-9773
SELECT ALL + cor0.col1 * col0 DIV - col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL + cor0.col1 * col0 / - col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9774
SELECT ALL - col2 DIV + col2 + CAST( - col0 + - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-122
-177
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - col2 / + col2 + CAST ( - col0 + - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-122
-177
-58

query I rowsort
SELECT ALL col1 * - col0 + + 46 + col1 * - col0 FROM tab0 AS cor0
----
-16152
-4082
-6744

query I rowsort
SELECT ALL + col2 + - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - col0 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9778
SELECT DISTINCT col0 - + CAST( 71 AS SIGNED ) * col2 * + 47 AS col2 FROM tab0 AS cor0
----
-110097
-273545
-3302

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT col0 - + CAST ( 71 AS INTEGER ) * col2 * + 47 AS col2 FROM tab0 AS cor0
----
-110097
-273545
-3302

onlyif mysql # use DIV operator for integer division
query I rowsort label-9779
SELECT + col1 * 61 + ( col0 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
5246
5551
5917

skipif mysql # not compatible
query I rowsort label-9779
SELECT + col1 * 61 + ( col0 ) / - col1 AS col1 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 + col0 FROM tab1 cor0
----
-156
-3520
-7520

query I rowsort
SELECT DISTINCT - col1 + 92 * 61 FROM tab0 AS cor0
----
5515
5521
5526

query I rowsort
SELECT - + cor0.col1 + - 34 FROM tab1 AS cor0
----
-44
-47
-60

query I rowsort
SELECT ALL + col2 + 52 AS col0 FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT col2 * - col1 * cor0.col2 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-23560
-24837
-43365

query I rowsort
SELECT ALL col1 * - 11 + + 54 FROM tab1 AS cor0
----
-232
-56
-89

query I rowsort
SELECT ( col1 + 27 * ( + col2 ) ) AS col2 FROM tab0
----
124
2305
977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9787
SELECT 44 + + col0 * + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
2072
233
3046

skipif mysql # not compatible
query I rowsort label-9787
SELECT 44 + + col0 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
2072
233
3046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col0 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 + + 16 FROM tab1 AS cor0
----
26
29
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-9790
SELECT + cor0.col1 + - 19 DIV + col1 + 57 AS col2 FROM tab2 AS cor0
----
116
73
88

skipif mysql # not compatible
query I rowsort label-9790
SELECT + cor0.col1 + - 19 / + col1 + 57 AS col2 FROM tab2 AS cor0
----
116
73
88

query I rowsort
SELECT ALL cor0.col0 * - col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col1 + 96 * col2 AS col2 FROM tab2 cor0
----
2437
2561
3631

onlyif mysql # use DIV operator for integer division
query I rowsort label-9793
SELECT DISTINCT + 78 DIV 98 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + 78 / 98 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col1 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9795
SELECT + + CAST( NULL AS SIGNED ) * - 75 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT + + CAST ( NULL AS INTEGER ) * - 75 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 61 * 1 * - col1 AS col0 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT 44 + + col0 + - col0 * col2 * + col0 AS col2 FROM tab2 AS cor0
----
-1272
-158062
-237035

query I rowsort
SELECT - - 93 * + col2 + col1 FROM tab2 AS cor0
----
2477
2542
3551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + 73 col1 FROM tab1 AS cor0
----
47
60
63

query I rowsort
SELECT DISTINCT + + col2 - - col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col1 * + 82 FROM tab1
----
1066
2132
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT - - col0 DIV col0 + + col1 col1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9802
SELECT - - col0 / col0 + + col1 col1 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT - col2 * col0 DIV + ( + ( col0 ) ) + ( col0 ) * col0 FROM tab2 cor0
----
22
6058
6203

skipif mysql # not compatible
query I rowsort label-9803
SELECT - col2 * col0 / + ( + ( col0 ) ) + ( col0 ) * col0 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT - - col0 * - col0 + 70 AS col0 FROM tab1 AS cor0
----
-4026
-6330
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 * + col0 col1 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - ( 76 ) FROM tab0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col0 + + 40 AS col1 FROM tab1
----
104
120
43

query I rowsort
SELECT + ( - col2 * 38 ) AS col1 FROM tab0
----
-1254
-3116
-38

query I rowsort
SELECT ALL 87 AS col2 FROM tab1 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * - col2 col0 FROM tab1 AS cor0
----
-1620
-1710
-2880

query I rowsort
SELECT ALL + ( + col1 ) * - col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab1 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - col0 col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT tab1.col0 * - tab1.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 91af1085835c3ef572d2dbd91480f658

query I rowsort
SELECT ALL + col2 + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col0 + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - cor0.col1 + col0 * 17 * col0 FROM tab1 AS cor0
----
108787
127
69622

query I rowsort
SELECT + ( + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT DISTINCT + col1 + - col2 DIV col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + col1 + - col2 / col1 FROM tab1
----
24
5
6

query I rowsort
SELECT ALL col2 + + col0 * col1 FROM tab0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9821
SELECT cor0.col1 * CAST( NULL AS SIGNED ) - 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) - 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 + ( + col2 ) + cor0.col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT - - col2 * - ( col2 ) + col1 AS col1 FROM tab1 cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-9824
SELECT col0 DIV + cor0.col2 + + 30 FROM tab0 AS cor0
----
30
31
65

skipif mysql # not compatible
query I rowsort label-9824
SELECT col0 / + cor0.col2 + + 30 FROM tab0 AS cor0
----
30
31
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 + cor0.col0 col1 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 12 col0 FROM tab0 AS cor0
----
13
45
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9827
SELECT ALL col1 DIV col0 + col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL col1 / col0 + col1 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT - col1 * 26 FROM tab0
----
-2236
-2366
-2522

query I rowsort
SELECT col0 * ( + col1 ) AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + + 71 + 95 AS col1 FROM tab1 cor0
----
166
166
166

query I rowsort
SELECT DISTINCT col0 + col0 + + col2 AS col1 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT col0 - + 1 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col2 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) AS col2 FROM tab2
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-9835
SELECT - - col0 DIV 4 AS col2 FROM tab1 AS cor0
----
0
16
20

skipif mysql # not compatible
query I rowsort label-9835
SELECT - - col0 / 4 AS col2 FROM tab1 AS cor0
----
0
16
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9836
SELECT - ( + col0 ) * - cor0.col1 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT - ( + col0 ) * - cor0.col1 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 79 AS col1 FROM tab2 cor0
----
157
158
86

query I rowsort
SELECT + col0 * - col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - + col2 * col1 + col1 * col1 AS col2 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT DISTINCT - 39 FROM tab1, tab1 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * col1 col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT - + col2 * - col1 - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 + col0 col1 FROM tab1
----
110
126
49

query I rowsort
SELECT 13 AS col1 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT 99 + - col2 AS col1 FROM tab2
----
61
72
73

query I rowsort
SELECT + 89 * + tab1.col1 AS col1 FROM tab1
----
1157
2314
890

query I rowsort
SELECT 64 * col0 * ( col0 ) FROM tab1
----
262144
409600
576

query I rowsort
SELECT ALL + col2 + col2 * - col0 AS col1 FROM tab2
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 - + col2 col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL col2 + cor0.col1 * + 71 AS col0 FROM tab2 AS cor0
----
1245
2228
4215

query I rowsort
SELECT col2 * cor0.col2 * + col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT col2 * - col2 + ( - col2 ) FROM tab2 AS cor0
----
-1482
-702
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 61 + + 23 col2 FROM tab1 AS cor0
----
206
3927
4903

query I rowsort
SELECT DISTINCT + col2 + - 3 * - col0 AS col1 FROM tab2 AS cor0
----
260
275
48

query I rowsort
SELECT - ( col0 + col1 ) * + col0 * + col2 FROM tab0
----
-1313640
-4620
-87120

query I rowsort
SELECT ALL - tab1.col0 + - 53 + col2 FROM tab1
----
-2
-37
-60

query I rowsort
SELECT ALL + col2 + - 14 AS col2 FROM tab1
----
40
43
82

query I rowsort
SELECT tab1.col2 - 65 AS col2 FROM tab1
----
-11
-8
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT ALL + + col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9860
SELECT + + col0 * + CAST( NULL AS SIGNED ) + - col2 * col1 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT + + col0 * + CAST ( NULL AS INTEGER ) + - col2 * col1 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col2 * tab2.col1 * - col2 + ( + col2 ) * + col0 FROM tab2
----
-21546
-22410
-37856

query I rowsort
SELECT 59 + + col0 AS col2 FROM tab0 cor0
----
148
83
94

query I rowsort
SELECT + - 99 * + col1 AS col0 FROM tab1 AS cor0
----
-1287
-2574
-990

onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT + 72 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-9864
SELECT + 72 / + col0 AS col1 FROM tab1 AS cor0
----
0
1
24

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab1, tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + 3 * + col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL - + ( cor0.col1 ) * - col2 - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 * col1 * 5 col2 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT + col1 * col2 * 87 + col2 AS col1 FROM tab1
----
108672
122202
49647

query I rowsort
SELECT ALL + col0 * - 14 + col1 AS col1 FROM tab2
----
-1033
-1089
-67

query I rowsort
SELECT DISTINCT col1 + + 82 FROM tab0
----
168
173
179

query I rowsort
SELECT DISTINCT col0 * - 27 AS col1 FROM tab2 cor0
----
-189
-2106
-2133

query I rowsort
SELECT DISTINCT 28 + - cor2.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
-10
1
2

query I rowsort
SELECT - cor0.col0 + - col1 AS col0 FROM tab0 cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * + col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + - col2 * + col0 * + col0 FROM tab0 AS cor0
----
-16944
-641423
2170

query I rowsort
SELECT DISTINCT + 58 + col2 FROM tab0 AS cor0
----
140
59
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9878
SELECT DISTINCT CAST( ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT CAST ( ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col1 + + 63 * cor0.col0 FROM tab0 AS cor0
----
1426
2108
5516

query I rowsort
SELECT ALL - + col0 + + col0 - - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 78 * col0 * col1 AS col1 FROM tab1 cor0
----
49920
6084
81120

query I rowsort
SELECT - - col2 * 23 FROM tab2 AS cor0
----
598
621
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-9883
SELECT DISTINCT + col2 DIV + 55 + + col2 + 33 * col1 FROM tab0 AS cor0
----
2871
3086
3202

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT + col2 / + 55 + + col2 + 33 * col1 FROM tab0 AS cor0
----
2871
3086
3202

query I rowsort
SELECT ALL + col0 + + col1 + col1 AS col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT ALL tab0.col1 + + tab0.col1 * col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - cor0.col2 + 56 + + col0 AS col2 FROM tab1 AS cor0
----
40
5
63

query I rowsort
SELECT - ( col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + ( 19 ) FROM tab1 AS cor0
----
19
19
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT + 31 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
0
31

skipif mysql # not compatible
query I rowsort label-9889
SELECT + 31 / + col2 AS col0 FROM tab0 AS cor0
----
0
0
31

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col2 + - 47 FROM tab0 AS cor0
----
-129
-48
-80

query I rowsort
SELECT - + col2 * 82 FROM tab1 AS cor0
----
-4428
-4674
-7872

query I rowsort
SELECT ALL + + col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col0 * - 55 * cor0.col1 FROM tab0 AS cor0
----
-113520
-186725
-445445

query I rowsort
SELECT + + col2 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + cor0.col1 * cor0.col0 + - col1 + col0 FROM tab0 AS cor0
----
2002
3333
8097

query I rowsort
SELECT DISTINCT 78 * - tab0.col2 + + 36 AS col2 FROM tab0
----
-2538
-42
-6360

query I rowsort
SELECT + 1 * + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL 85 * col2 + + 23 FROM tab2 cor0
----
2233
2318
3253

query I rowsort
SELECT + - col2 * + col2 + 51 * + col1 FROM tab1 AS cor0
----
-1590
-2739
-8553

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + col2 * 4 AS col1 FROM tab2 AS cor0
----
-137
-3377
-853

query I rowsort
SELECT ALL - ( col0 ) * col0 + col2 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL 83 * + col0 AS col0 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT ALL + 71 + col1 AS col2 FROM tab1 AS cor0
----
81
84
97

query I rowsort
SELECT + + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT - 2 * - col1 + 10 FROM tab1 AS cor0
----
30
36
62

query I rowsort
SELECT - - col0 * - col1 - ( col1 ) FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - + cor0.col0 + col2 + + cor0.col2 FROM tab2 AS cor0
----
-26
-3
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9910
SELECT ALL - 95 * col2 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - 95 * col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + ( + col1 ) * + col0 col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT col2 * + 30 AS col0 FROM tab0 cor0
----
2460
30
990

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 + - cor0.col0 * + col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT - - cor0.col1 + 79 * col0 * col0 AS col2 FROM tab0 cor0
----
45590
625850
96872

query I rowsort
SELECT col0 * + col2 * - col0 + - col2 * - col1 + ( col1 ) AS col2 FROM tab0
----
-1031
-16084
-641969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9916
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9916
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - col1 * - col2 * 89 FROM tab2 AS cor0
----
136526
57494
74493

query I rowsort
SELECT DISTINCT + cor0.col1 * + 72 AS col1 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT + col1 + + ( col0 ) + col0 * + 15 AS col1 FROM tab1 AS cor0
----
1034
1293
74

query I rowsort
SELECT cor0.col0 * - 45 FROM tab0 AS cor0
----
-1080
-1575
-4005

onlyif mysql # use DIV operator for integer division
query I rowsort label-9921
SELECT col1 DIV - col0 + 23 + + col0 FROM tab2 cor0
----
101
102
26

skipif mysql # not compatible
query I rowsort label-9921
SELECT col1 / - col0 + 23 + + col0 FROM tab2 cor0
----
101
102
26

query I rowsort
SELECT ALL + cor0.col2 * 20 AS col1 FROM tab2 AS cor0
----
520
540
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 + col1 * - col2 col1 FROM tab1 cor0
----
-1417
-2080
-670

query I rowsort
SELECT DISTINCT - col0 * + col1 + - 65 FROM tab2
----
-1408
-282
-4667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + tab0.col1 * + col1 col0 FROM tab0
----
636056
753571
912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-9926
SELECT 12 DIV + col0 FROM tab1
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9926
SELECT 12 / + col0 FROM tab1
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9927
SELECT + + col2 * 35 - - col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
1898
1995
3360

skipif mysql # not compatible
query I rowsort label-9927
SELECT + + col2 * 35 - - col1 / + col0 AS col1 FROM tab1 AS cor0
----
1898
1995
3360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9928
SELECT - col1 * col1 + + col0 * - col1 + CAST( + 28 + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-12775
-16270
-9399

skipif mysql # not compatible
query I rowsort label-9928
SELECT - col1 * col1 + + col0 * - col1 + CAST ( + 28 + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-12775
-16270
-9399

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9929
SELECT DISTINCT - col2 * - col0 + 29 + col2 * CAST( - col0 + col1 AS SIGNED ) AS col1 FROM tab0
----
126
2867
7491

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT - col2 * - col0 + 29 + col2 * CAST ( - col0 + col1 AS INTEGER ) AS col1 FROM tab0
----
126
2867
7491

query I rowsort
SELECT col2 + + tab1.col0 * - col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL 15 FROM tab2, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + col0 * + col2 * 50 + col2 AS col1 FROM tab1
----
182457
384096
8154

query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9934
SELECT col0 + CAST( 21 AS SIGNED ) + col1 FROM tab2
----
117
158
59

skipif mysql # not compatible
query I rowsort label-9934
SELECT col0 + CAST ( 21 AS INTEGER ) + col1 FROM tab2
----
117
158
59

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

query I rowsort
SELECT ALL 74 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col2 * col2 * + ( - col2 ) FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT 61 + col2 FROM tab1 cor0
----
115
118
157

query I rowsort
SELECT 20 + col2 * col1 FROM tab1
----
1268
1424
590

query I rowsort
SELECT ALL col2 + tab1.col1 + + 82 FROM tab1
----
149
162
191

query I rowsort
SELECT ALL + col0 + tab0.col0 * ( col1 * col1 ) + + col0 * 34 AS col2 FROM tab0
----
178344
330540
740124

query I rowsort
SELECT ALL 16 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL - ( - col1 ) + 32 FROM tab1 AS cor0
----
42
45
58

query I rowsort
SELECT ALL - 8 AS col2 FROM tab2 cor0
----
-8
-8
-8

query I rowsort
SELECT ALL col2 * cor0.col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + - 58 * + cor0.col1 - - col2 * + 31 AS col0 FROM tab0 AS cor0
----
-2736
-3965
-5595

query I rowsort
SELECT ALL + ( col2 ) * + 97 AS col1 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT DISTINCT + - 19 FROM tab2 cor0
----
-19

query I rowsort
SELECT ALL ( + 81 ) * + col0 AS col0 FROM tab0
----
1944
2835
7209

query I rowsort
SELECT col0 * - 72 - col2 * + 22 * 27 FROM tab2 cor0
----
-16542
-21060
-28260

query I rowsort
SELECT + 53 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
1670
3153
939

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9953
SELECT + - col0 - 43 * col1 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT + - col0 - 43 * col1 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col1 * + col0 + col0 * - 49 + - col1 AS col0 FROM tab0 AS cor0
----
-12551
-3326
-5207

query I rowsort
SELECT 89 * 17 FROM tab0
----
1513
1513
1513

onlyif mysql # use DIV operator for integer division
query I rowsort label-9957
SELECT col1 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9957
SELECT col1 / cor0.col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT + 9 * col2 + ( - 37 ) FROM tab1 AS cor0
----
449
476
827

query I rowsort
SELECT DISTINCT - + col1 * 39 AS col0 FROM tab1 cor0
----
-1014
-390
-507

query I rowsort
SELECT + 31 + + ( col0 ) FROM tab2 AS cor0
----
109
110
38

query I rowsort
SELECT ALL - col0 * - ( col0 ) AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - - 52 - - col1 AS col1 FROM tab0 AS cor0
----
138
143
149

query I rowsort
SELECT + + col2 + col0 * cor0.col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - col0 - col0 * + col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL - 37 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT ALL - + 67 + col0 + col1 FROM tab1 cor0
----
-38
26
7

query I rowsort
SELECT ALL - 92 * - 7 + + col1 FROM tab0 AS cor0
----
730
735
741

onlyif mysql # use DIV operator for integer division
query I rowsort label-9969
SELECT ALL - col2 * ( + col1 ) DIV 21 FROM tab0 AS cor0
----
-135
-355
-4

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - col2 * ( + col1 ) / 21 FROM tab0 AS cor0
----
-135
-355
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT - 11 DIV tab1.col0 FROM tab1
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9970
SELECT - 11 / tab1.col0 FROM tab1
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 26 col0 FROM tab1
----
260
338
676

query I rowsort
SELECT - col2 * - 79 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-9974
SELECT ( 35 ) DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9974
SELECT ( 35 ) / col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT col0 * + col0 + col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT col0 * + col0 + col2 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 FROM tab1, tab2, tab1 cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

onlyif mysql # use DIV operator for integer division
query I rowsort label-9977
SELECT + - col2 + - ( - 22 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-9977
SELECT + - col2 + - ( - 22 ) / + col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT DISTINCT col1 + ( + 39 ) FROM tab1 cor0
----
49
52
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab2, tab1, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + 42 * - col2 AS col1 FROM tab1
----
-2268
-2394
-4032

query I rowsort
SELECT ALL ( col1 + - tab0.col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 * + tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3e351fdfa2fd88779f2d7b6136dc00d1

query I rowsort
SELECT ALL - 74 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT ( + ( - tab1.col0 ) ) FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT - col0 DIV col1 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1440
675
729

skipif mysql # not compatible
query I rowsort label-9985
SELECT - col0 / col1 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1440
675
729

query I rowsort
SELECT - cor0.col0 * + ( - col0 ) FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT DISTINCT + col0 DIV cor0.col0 AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT + col0 / cor0.col0 AS col2 FROM tab1 cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT col2 * col2 + + col2 AS col1 FROM tab1
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-9991
SELECT DISTINCT + tab0.col2 DIV + col1 + - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT + tab0.col2 / + col1 + - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL col2 + - col0 + col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 * tab2.col2 + tab2.col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-9994
SELECT DISTINCT + col2 DIV col1 + - col1 FROM tab2
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT + col2 / col1 + - col1 FROM tab2
----
-15
-31
-59

query I rowsort
SELECT DISTINCT + col1 * col0 * col1 AS col1 FROM tab0 WHERE NOT col2 * + col2 + + col1 <> col0 + - col2
----

query I rowsort
SELECT DISTINCT + col2 * col2 * col0 AS col2 FROM tab1
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * tab0.col1 + + col0 * col0 col0 FROM tab0
----
16020
2640
4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-9998
SELECT ALL col2 + col2 DIV col2 AS col0 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL col2 + col2 / col2 AS col0 FROM tab1
----
55
58
97

query I rowsort
SELECT col2 * tab0.col2 FROM tab0 WHERE NOT col1 + col2 * + col2 + col0 * + col1 * - col2 < col1
----